babyespades Posted October 15, 2010 Report Share Posted October 15, 2010 Hi guys, Currently, I have a shockwave (swf) inside the Active X container. And I have it listens to keystroke using ActionScripts. But when I ran LabView, the swf file that is inside the Active X container is not able to read the keystroke until I clicked on it to give it the focus/priority. Is there anyway to set the priority to the active X container once it starts running? And there another problem I encountered that I hope you guys could help me with. It related to the scaling of the swf file. The swf file have two scale option, 100% or ShowAll. Originally, I set the swf file scale to 100% to obtain the best graphic effect. However, once I place it into the Active X container. It auto sets it to showAll and it's uneditable. And there is no 100% scale option. I really have no idea how to solve. As I just started labview few months ago, and even newer towards communication between Flash & Labview. Hope you guys could help provide me with solution. Thanks alot. BabyEspades. Quote Link to comment
asbo Posted October 15, 2010 Report Share Posted October 15, 2010 And there another problem I encountered that I hope you guys could help me with. It related to the scaling of the swf file. The swf file have two scale option, 100% or ShowAll. Originally, I set the swf file scale to 100% to obtain the best graphic effect. However, once I place it into the Active X container. It auto sets it to showAll and it's uneditable. And there is no 100% scale option. If you change the ScaleMode property, you should find what you're looking for. Values from -1 to 3 are valid, I think, but I don't know what each is necessarily defined as. If I had to guess, this ActionScript doc on StageScaleMode are the descriptions. If you share your VI with the associated SWF, you may get more help the first issue. Quote Link to comment
babyespades Posted October 15, 2010 Author Report Share Posted October 15, 2010 If you change the ScaleMode property, you should find what you're looking for. Values from -1 to 3 are valid, I think, but I don't know what each is necessarily defined as. If I had to guess, this ActionScript doc on StageScaleMode are the descriptions. If you share your VI with the associated SWF, you may get more help the first issue. I couldn't really share the v.i here cause it a confidential company project I'm working on sorry. I tried clicking on the ScaleMode property. But it just wouldn't budge. As though it fixed at 0. I will try out the stage class that you mentioned, thanks for your help asbo Btw I will try to produce a identical one for problem as soon as possible to show here but in the mean time if anyone know how to solve, please help me. Thanks BabyEspades. Quote Link to comment
asbo Posted October 15, 2010 Report Share Posted October 15, 2010 I tried clicking on the ScaleMode property. But it just wouldn't budge. As though it fixed at 0. I will try out the stage class that you mentioned, thanks for your help asbo Try using a property node, not the property browser. Worked for me. As for your focus issue, controls (in general) have a KeyFocus property. That may work to give your SWF control focus at run-time. Quote Link to comment
babyespades Posted October 18, 2010 Author Report Share Posted October 18, 2010 Try using a property node, not the property browser. Worked for me. As for your focus issue, controls (in general) have a KeyFocus property. That may work to give your SWF control focus at run-time. Thanks dude! You really save my day. Without your help, I would most probably spend weeks thinking how to solve it. Babyespades. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.