Pass object as parameter

  • jfbaro
  • Born
  • Born
  • jfbaro
  • Posts: 4
  • Loc: Liverpool

Post 3+ Months Ago

Hi!

We need to send some transition parameters through a localConnection... it could be passed as a string, xml or maybe an object... but it only works if we put the parameters "hard coded". We need something like the code below:


Code:

listeningLC.transition = function(pTranstionsParams:Object){ var tm:TransitionManager = new TransitionManager(mc_xyz); tm.startTransition({type:mx.transitions.Zoom, direction:0, duration:2, easing:mx.transitions.easing.None.easeNone, param1:empty, param2:empty}); }


The part {type:mx.transitions.Zoom, direction:0, duration:2, easing:mx.transitions.easing.None.easeNone, param1:empty, param2:empty}
should be passed as a parameter because it might be changed at runtime... but we have tried a lot of different things, but we didn't get through it...

Could any one give any clue?

Best Regards
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

did u try to send it as a string and then get all the info u need out of it?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.