Jump to content


Photo

Get info on aux timelines into flash

AuxTimelines Flash

  • Please log in to reply
9 replies to this topic

#1 fdoeve

fdoeve
  • Member
  • PipPipPip
  • 38 posts
  • LocationNetherlands

Posted 27 October 2014 - 02:08 PM

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)

 

 



#2 Mike Fahl

Mike Fahl

     

  • Dataton Partner
  • PipPipPip
  • 597 posts

Posted 28 October 2014 - 09:08 AM

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



#3 fdoeve

fdoeve
  • Member
  • PipPipPip
  • 38 posts
  • LocationNetherlands

Posted 28 October 2014 - 10:00 AM

*Puts on learning cap and dives into AS3 books*

I know i should be able to figure this out...

 

Thanks for your  quick answer Mike!  :)



#4 fdoeve

fdoeve
  • Member
  • PipPipPip
  • 38 posts
  • LocationNetherlands

Posted 28 October 2014 - 11:34 AM

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...



#5 fdoeve

fdoeve
  • Member
  • PipPipPip
  • 38 posts
  • LocationNetherlands

Posted 28 October 2014 - 05:59 PM

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..?



#6 Mike Fahl

Mike Fahl

     

  • Dataton Partner
  • PipPipPip
  • 597 posts

Posted 29 October 2014 - 09:52 PM

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


#7 fdoeve

fdoeve
  • Member
  • PipPipPip
  • 38 posts
  • LocationNetherlands

Posted 30 October 2014 - 05:32 PM

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...



#8 Mike Fahl

Mike Fahl

     

  • Dataton Partner
  • PipPipPip
  • 597 posts

Posted 31 October 2014 - 08:29 PM

You may want to download a complete, working example and start from there:

 

   http://academy.dataton.com/recipe/basic-flash-controller

 

There's some more elaborate examples included with the Flash-based Systems Manager:

 

   WATCHMan_1.1.zip

 

Mike



#9 fdoeve

fdoeve
  • Member
  • PipPipPip
  • 38 posts
  • LocationNetherlands

Posted 03 November 2014 - 09:11 AM

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!



#10 fdoeve

fdoeve
  • Member
  • PipPipPip
  • 38 posts
  • LocationNetherlands

Posted 17 February 2017 - 03:57 PM

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...