Sorry for my ignorance, but how could I do that...I'm cold on this flex-flash, I suppose this could be more easy , I mean the integration between the swf loaded and flex..How can I trigger the event from flex when the swf has the instruction or I have to be limited to set my swf just only for decorative purposes (as background animations) so forth.

Regards


Gustavo

On Nov 21, 2007, at 5:23 PM, Peter Hall wrote:

You are setting the "currentState" property on the loaded swf, not in
the parent Flex application.
Probably you can do something like
parent.parentDocument.currentState="next", but it would be much
cleaner to dispatch a custom event and listen for that in flex, then
the flex application can set the state itself.

Peter

On Nov 21, 2007 1:17 PM, Gustavo Duenas
<[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Hi I just doing an experiemtn I have a buton in a swf, with instruction to
> change state into the the flex file, but it seems difficult to me
> because the swf doesn't work with, I don't know why.
>
>
> Tyhe swf in on a swf object into the flex enviroment and this is the action
> script of the flash file (as3)
>
> stop();
> function mouseOverCalito():void{
> this.currentState="next";
> }
>
>
> this.CALITO.addEventListener(MouseEvent.MOUSE_OVER, mouseOverCalito);
>
> it seems ok, but I think I missing something but I don't know, I'm doing
> this because someone wrote about the integration between the two
> programs...any ideas
>
>
> regards
>
>
> gustavo
>
>
>
>
>
>
>



Reply via email to