Jump to content
Dataton Forum
fdoeve

Get info on aux timelines into flash

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)

 

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

ok, time for me to admit i have absolutely no idea what i'm doing..

 

Can't seem to figure this out..

 

Is there anyone that does understand AS3 who can tell me how to do this?

I'm lost...

Share this post


Link to post
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..?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

ah thanks so much Mike!

 

i was close... just made an error with the calling of the var...

 

looks like it should do something, but nothing so far.. but no errors either... so thats weird...

Share this post


Link to post
Share on other sites

I've downloaded them and am trying to distill what i need out of them, but i'm just not that good at AS3 (yet)... but i'll finally get there, i'm sure!

Thanks for your help so far Mike!

Share this post


Link to post
Share on other sites

Just to revive an old problem...

 

I'm breaking my brain here...

 

Still can't seem to figure out what i have to do different for AUX timelines... can't get anything to react...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×