Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint Tips, Tricks & Hacks    More flash - mtx communication

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Hey I've been looking through the forums and found the way to communicate from flash to the mtx and vice versa however i'm having a problem on somethign that should work fine...

<MTSTimeElem Type="SWFView" Name="control" On="0" PostAnimator="1" Path="xxx.swf"/>

<MTSInteractor>
<MTSHandle Event="allin" Action="loadAction" />
</MTSInteractor>

<MTSAction Name="loadAction" >
<MTSAssignProperty Target="MTSTimeElem.control.SWF._root.here.setDone()" Value="" />
</MTSAction>


In flash i have:
function setDone()
{
gotoAndPlay(3);
}

stop();

However nothign happens...i'm using flash 7, and scene version 311
 
Posts: 38 | Registered: July 04, 2006Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
Hello,

All actions must appear above interactors in the mtx code. Basic structure for mtx code should look like this:

<MTSScene>
<MTSInstance/>
<MTSAction/>
<MTSTimeElem/>
<MTSInteractor/>
</MTSScene>

The example you posted is probably not working because your action is below your interactor. The action must be above the interactor(s) that is(are) calling it.

Regards
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint Tips, Tricks & Hacks    More flash - mtx communication