Your AS file can be a transition, an object/class for which you pass
the Image once it is loaded. When the image finishes you may use an
event handler to call your new Reflection Class file to handle your
reflection effect.
private function onImageLoadComplete( event:Event ):void
{
// call your reflection class here and pass to it (event.target)
// or the name of the image if it is specified.
}
<mx:Image .... complete="onImageLoadComplete( event )" />
Good Luck.
LD
--- In [email protected], "Merrill, Jason"
<[EMAIL PROTECTED]> wrote:
>
>
> How do I access the sprite/movieClip instance (not sure which it 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 (I'm making it AS 3.0 compliant) which applys a
> reflection effect to a movie clip's bitmap data, which also works fine
> outside of Flex . 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? Thanks.
>
> Jason Merrill
> Bank of America
> Learning & Organizational Effectiveness
>