views:

16

answers:

1

Ok, so I've been toying with using Flash SWFs in Flex objects as icons and the like. I can embed it just fine, but I would like more control over certain flash Actionscript 3 properties WITHIN the embedded icon - for example, to change the size of the icon (icon used in two spots, one should be small, the other large).

Once I get that figgured out, I also need to apply this to a TreeListItem's folderClosedIcon. That, however, is kindof secondary at the moment.

Thank you for any attention.

A: 

The most straightforward way is to pass properties via the flashvar property on your embed. This can also be done by passing the variables through the URL this way : "my.swf?buttonSize=20".

However if you need to communicate with the SWF after it's been loaded you can initialize a javascript-swf bridge thanks to ExternalInterface.

Theo.T