Been trying to post this all day, but no luck. 

How do I access the sprite/movieClip instance (not sure which it is,
since this is in the image class) of an image loaded into image tag and
then pass that to an actionscript method?

Basically, I have a repeater that loads dynamic images (based on XML
data) into an <mx:Image> tag. That works fine. I also have a Reflection
class (currently porting it from AS 2.0 to 3.0) which applys a
reflection effect to a movie clip's bitmap data, which also works fine
in plain old Flash. However in Flex, I know how to import the class, but
not how to tie the rendering of the different dynamic images in my MXML
with the Reflection class. I read the help docs on mx.controls.image,
and it seems like the image might be loaded into a sprite instance, but
how to I send that sprite instance to my actionscript method right after
the image loads? 

Any ideas? Also, in general, how to do you access sprites or movie clips
on the stage created with MXML from Actionscript? 

 

Jason Merrill 
Bank of America
Learning & Organizational Effectiveness 
  
  
  
  

Reply via email to