Jump to content

Setting priority to Active X Container(swf)


Recommended Posts

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.

Link to comment

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.

Link to comment

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 :D

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 :D

BabyEspades.

Link to comment

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 :D

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.

Link to comment

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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.