LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use ActiveX to send variables to Adobe Flash?

Hi,

I would like to embed an Adobe Flash animation in Labview and use Labview to send values to the animation to control graphical elements in the animation.

 

I have read some posts and reviewed some code that gets me part of the way there.

The attached code uses ActiveX to embed a flash object in Labview and then assigns a subvi to communicate with Flash object.

In this example the vi only receives information from Flash.  It doesn't send information.

 


Can anyone help me figure out how to create a simple flash file with a red circle in it, and then use labview to control the size of the circle?

I find it interesting that these ActiveX containers exist, yet there doesn't seem to be any documentation online that explains how to put them to use.

From what I understand I need to use the ExternalInterface command in the Flash ActionScript.Example Code

 

Thanks.

-Matt

0 Kudos
Message 1 of 4
(3,367 Views)

Hi Portland Matt,

 

Although there aren't too many examples of ActiveX calls for flash using LabVIEW, the calls shouldn't be too hard to make. Here is a Community post explaining the basics of ActiveX for your reference: https://forums.ni.com/t5/Developer-Center-Resources/Calling-ActiveX-Code-from-LabVIEW/ta-p/3522394

 

In addition, if you want to use external APIs in LabVIEW with the ExternalInterface commands, take a look at this reference which explains how it's done in LabVIEW: https://www.ni.com/docs/en-US/bundle/labview/page/calling-external-apis.html

 

Finally, to draw the circle, you are correct in calling Flash ActionScript: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7dc...

 

I looked at our Flash methods and I didn't see something that would be able to control a circle and resize it. So these previous two suggestions are my best recommendations.

 

Let me know if you have any additional questions, I hope this info helps.

 

 

 

Aldo A
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,338 Views)

Aldo,

Thanks for the links.  I will study up.

 

In your post you mention looking at Flash methods.

Where can I find the latest version these?

 

Are these what I am using in my code (in image).

If so, mine are outdated.

 

Thanks.

 

-Matt

0 Kudos
Message 3 of 4
(3,334 Views)

Hi Matt,

 

I was talking about the invoke node for ShockwaveFlash:

 

InvokeNode ShockwaveFlash.png

 

 

Aldo A
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,317 Views)