If Flash animation is player 8 or earlier, you need to set up
localconnections to talk to it.

 

If you are using Flash for player 9, you can access properties of the
SWF.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of kelpmike
Sent: Friday, April 06, 2007 10:02 AM
To: [email protected]
Subject: [flexcoders] Loading and Controlling a Flash Animation within a
Flex Application

 

I am working on an educational game that essentially asks questions
and plays animations depending on the user's answer.

When the user selects the correct answer they should be shown a random
animation for their character, that has optional closed captioning and
the ability to be repeated if the user's clicks a button in my
application.

I am able to load the SWF animations fine within Image/SWFLoader
components as expected, but I'm having trouble stopping the animation
from looping, knowing when it has ended so i can show the repeat
button, or turning closed captioning on/off.

The closed captioning is inside the SWF files with an instance name of
"closedCaptions" with the hope that I could simply do something like:
swfloaderId.content.root.closedCaptions._visible = false; from flex to
hide them as necessary. This also gives them the necessary control for
timing the text, etc.

Could someone enlighten me a little better on how to perform this
interaction? Does anyone have an example of this kind of interaction?
It seems like it should be pretty simple, but maybe I am missing
something.

Thanks in advance for any help,
Mike.

 

Reply via email to