updating the value of a variable that is in another .swf fil

  • maario
  • Novice
  • Novice
  • User avatar
  • Joined: Nov 09, 2006
  • Posts: 17
  • Status: Offline

Post February 1st, 2007, 4:43 am

hi again.

I've a menu in my 'main' swf file, that moves according to the mouse position:

Quote:

dif = 100;
avan = 414;
_root.onEnterFrame = function() {
_root.menu_mc._x = (-dif/Stage.width*_xmouse)+avan;
};


There, when i click on a button, it opens an external .swf file.

Quote:

_root.menu_mc.fotosBtn_mc.onRelease = function() {
_root.menu_mc.holder_mc.loadMovie("menuFotos.swf");
};


In that external file, another menu will open and there, i need to update the value of the two variables (dif and avan) that will influence the position menu of the 'main' .swf file.

How can i do that?

thanks.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 1st, 2007, 4:43 am

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post February 4th, 2007, 10:11 pm

wait untill menuFotos.swf is loaded (preload it),
then: _root.menu_mc.holder_mc.dif = something;
_root.menu_mc.holder_mc.avan = something;
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 34 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.