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

  • maario
  • Novice
  • Novice
  • User avatar
  • Posts: 17

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

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

Post 3+ Months Ago

wait untill menuFotos.swf is loaded (preload it),
then: _root.menu_mc.holder_mc.dif = something;
_root.menu_mc.holder_mc.avan = something;

Post Information

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