Jump to content

Get info on aux timelines into flash


fdoeve

Recommended Posts

Hey guys!

 

I'm trying to get something that's new to me to work in Flash, but im not certain if it's possible...

 

The situation:

I have a WO show running, with some Aux timelines, one of them is triggered by a MIDI note.

Other Timelines are triggered from a Flash show.

 

What i would like to do is make the Flash change, the moment the Aux Timeline that gets triggered by the MIDI note starts running, so a new view opens up in the Flash.

 

I think i would have to use the PlayState() of Playing() fuctions, but im confused about how to make the flash keep an eye on the WO so it knows whan to react...

 

Anyone have an idea?

 

Thanx!

Frank Doeve

The Netherlands

 

P.S. 

Im running WO 5.5 and Flash CS5 (AS3)

 

 

Link to comment
Share on other sites

I assume you're using the WATCHMan Flash API:

 

http://academy.dataton.com/sites/default/files/docs/WATCHMan/AS3/index.html?com/dataton/watchout/WATCHMan.html&com/dataton/watchout/class-list.html

 

If so, first call GetAuxTimeline to get a proxy or the auxiliary timeline. The returned AuxTimeline object can then be used to learn about interesting events, as the docs say. In your case, you'd add an event listener to the returned AuxTimeline object for the PlayingChanged event, which will be fired when the timeline starts/stops.

 

Hope this helps.

 

Mike

Link to comment
Share on other sites

hmm well so far i got this piece working, making Flash listen to the main timeline of Watchout:

 

 

 

import com.dataton.watchout.*;

import flash.events.MouseEvent;
import flash.events.KeyboardEvent;
import flash.events.EventDispatcher;
import flash.utils.Timer;
import flash.net.SharedObject;
import flash.display.DisplayObject;
import flash.events.Event;
 
 
var wo : WATCHMan = new WATCHMan("192.168.1.221");
 
 
wo.addEventListener(WATCHMan.KEvt_PlayingChanged, function(evt : Event) {
 
if (wo.Playing)
gotoAndStop(10);
else
gotoAndStop(1);
});

 

But i can't seem to figure out how to get the GetAuxTimeline thing to fit in something like that...

 

Anyone..?

Link to comment
Share on other sites

Something like this

 

 

var wo : WATCHMan = new WATCHMan("192.168.1.221");

var auxTL : AuxTimeline = wo.GetAuxTimeline("MyAuxTimelineName");

auxTL.addEventListener(AuxTimeline.KEvt_PlayingChanged, function(evt : Event) {
  if (auxTL.Playing)

    gotoAndStop(10);

  else
    gotoAndStop(1);

});

 
 

 

(writing from memory, so take the above with a grain of salt)
 
Mike
Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...