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