Loading external SWF into entire stage doesn't hide Buttons

  • soumik
  • Novice
  • Novice
  • No Avatar
  • Joined: Apr 24, 2007
  • Posts: 29
  • Status: Offline

Post May 25th, 2007, 5:16 am

I am loading a external SWF (Movie1) into a parent SWF (Movie2). When I load it using a button release, it perfectly loads into it.

But the problem, is that I need to hide all the buttons/links in the parent SWF while viewing external SWF. I do not have any links on external swf, only a jpg. And it hows hand curstor to the parent swf buttons whenever pointing on them.

Any suggestion of how to proceed would be great.

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

Post May 25th, 2007, 5:16 am

  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 27, 2007
  • Posts: 275
  • Status: Offline

Post May 25th, 2007, 6:23 am

can u post ur script
http://shankarthapa.wordpress.com/
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post May 25th, 2007, 11:14 am

turn off the buttons. Just because you put something over the top of them doesn't mean the button isn't there.

Think of flash like a bunch of pieces of paper stacked on top of each other. If you load an external movie (add another piece of paper to the stack) the other layers are still there. This is always the case unless you tell flash to remove a layer or disable parts of the layer. so to turn off buttons you would...

Code: [ Select ]
buttonInstanceName.enabled = false;


just remember you have to turn the buttons back on again by setting that statement to true
  • soumik
  • Novice
  • Novice
  • No Avatar
  • Joined: Apr 24, 2007
  • Posts: 29
  • Status: Offline

Post May 27th, 2007, 9:10 pm

graphixboy,

Your idea is good. It will work in that sense. But since I am having so many movies loading externally it will be hard to make it enabled again for at least 12 buttons I have in the parent movie.

I am moving the timeline to a state with all the same graphics and buttons where buttons do not have any actionscript and then performing the movie load. It worked in this way.

Thank you though for your very good thought. Btw, do you know how do I target a parent movie while I am inside a loaded external movie?
  • classified
  • Expert
  • Expert
  • User avatar
  • Joined: Dec 23, 2005
  • Posts: 540
  • Loc: Bahrain
  • Status: Offline

Post May 27th, 2007, 11:15 pm

use loop ...

Code: [ Select ]
for(i=0 ; i< totalbuttons ; i++) {
         buttonInstanceName+i.enabled = false;
}
  1. for(i=0 ; i< totalbuttons ; i++) {
  2.          buttonInstanceName+i.enabled = false;
  3. }


name them accordingly buttonInstanceName0 ,buttonInstanceName1 ,buttonInstanceName[N]


for targeting .. u can use
Code: [ Select ]
this._parent.targetName
m0o , where <<Less is More>>
http://www.zainals.com
http://www.zainals.com/blog
  • coolingmongkee
  • Born
  • Born
  • No Avatar
  • Joined: Jun 21, 2007
  • Posts: 1
  • Status: Offline

Post June 21st, 2007, 4:15 am

i just want to ask too, want if the swf u want to load in your main.swf xml generated? because my problem is i load my second.swf to main.swf using xml the problem is the buttons on my second.swf is disable or not active..

Post Information

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

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