fdoeve Posted October 27, 2014 Report Share Posted October 27, 2014 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) Quote Link to comment Share on other sites More sharing options...
Mike Fahl Posted October 28, 2014 Report Share Posted October 28, 2014 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 Quote Link to comment Share on other sites More sharing options...
fdoeve Posted October 28, 2014 Author Report Share Posted October 28, 2014 *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! Quote Link to comment Share on other sites More sharing options...
fdoeve Posted October 28, 2014 Author Report Share Posted October 28, 2014 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... Quote Link to comment Share on other sites More sharing options...
fdoeve Posted October 28, 2014 Author Report Share Posted October 28, 2014 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..? Quote Link to comment Share on other sites More sharing options...
Mike Fahl Posted October 29, 2014 Report Share Posted October 29, 2014 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 Quote Link to comment Share on other sites More sharing options...
fdoeve Posted October 30, 2014 Author Report Share Posted October 30, 2014 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... Quote Link to comment Share on other sites More sharing options...
Mike Fahl Posted October 31, 2014 Report Share Posted October 31, 2014 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 Quote Link to comment Share on other sites More sharing options...
fdoeve Posted November 3, 2014 Author Report Share Posted November 3, 2014 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! Quote Link to comment Share on other sites More sharing options...
fdoeve Posted February 17, 2017 Author Report Share Posted February 17, 2017 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.