08-25-2008 03:21 PM
Hello,
I am trying to embed an flash activeX component inside a labview container. I am able to load a movie, but I keep recieving an error when trying to use the invoke node with the method CallFunction. I would like to pass variables between flash and labview, trigger events from flash to labview, and to call a functions from labview to flash. Any help will be appreciated.
Thank you,
Mike
08-26-2008 02:38 AM
Hey!
Maybe we can give you some help if you would post or descripe the error you receive.
Christian
08-26-2008 06:47 AM
Hi Christian,
try
{
I have been trying to implement ShockwaveFlashObjects.ShockWaveFlashEvents method FSCommand, but I cant seem to connect it to ShockwaveFlashObjects.IShockWaveFlash , which holds the reference for the activeX container.
}
catch
{
trace( "me wasting time" );
}
That is one of the problems I am having with debugging, among many when it comes to debugging activeX. Here is the error message and error number that pops out from the CallFunction invoke node.
-2147467259
Unspecified error
in flashinteractive.vi
Also, this is the actionscript 3.0 I have far
//////////////////////////////////////////////////////
import flash.external.*;
ExternalInterface.addCallback("thecall1", callMe1);
function callMe1():void
{
..............
}
//////////////////////////////////////////////////////
I havent gone for passing variables or going from flash to labview here. It isnt much yet , but its a start.
thank you again
~Mike
08-27-2008 01:18 AM
08-27-2008 09:06 AM
THank you all, I am having much better luck with this now.
Regards,
Mike
02-20-2009 01:35 AM
Does anybody have any experience in writing or reading from Flash Variables (V3).
I have a Active X control, and can set and read one of the flash variables, but it doesn't reflect in the flash itself, i.e. I can;t see the value change, but I can read it back that it has changed.
ADL
02-23-2009 12:19 PM
Hi ADL:
How are you currently setting the variable and what are you doing to see that the variable has changed? It would be helpful to see the code you are using in your application.
07-25-2009 10:06 AM
Hi!
I`ve done a .swf using papervision3d, and try to load it using ths methods:
http://digital.ni.com/public.nsf/allkb/E1BC3EE77B51781A86256CFA005EDC84?OpenDocument
but it just doesnt loads, the activeX just stay white...
what can i do?
thnx
07-27-2009 11:34 AM - edited 07-27-2009 11:36 AM
Using the method in your linked document, I came up with the following program:
Try running this and let us know what happens. The problem could potentially be with your flash file as well. Post it if you want me to test it.
07-27-2009 11:58 AM
Thanks for your answer.
Thats exactly what I did.
Try with others ".swf" but only recognizes the ones made in AS2.
Here are my files.