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:


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.


_root.menu_mc.fotosBtn_mc.onRelease = function() {

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?

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1252
  • 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 5 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-2017. Ozzu® is a registered trademark of Unmelted, LLC.