03-03-2012 05:00 PM
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.
Thanks.
-Matt
03-05-2012
05:37 PM
- last edited on
05-28-2025
03:53 PM
by
Content Cleaner
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.
03-05-2012 08:11 PM
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
03-06-2012 05:06 PM
Hi Matt,
I was talking about the invoke node for ShockwaveFlash: