Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash Buttons problems

Status
Not open for further replies.

cbhead

Technical User
Jul 31, 2002
31
GB
I have two problems:-

1. When using frames if I have a flash button in one frame (e.g. at the bottom of the window) that has as its action to load a URL how can I make the URL open in a different frame from the one in which the button is located?(e.g in the top of the window)

2. When a flash movie loads up how can you stop it from coming up as a white block while it is loading?

Thanks,
Chris Bushnell
 
1. you are trying to load another flash movie or another web page?...you said URL but i'm asking anyway.

2. make a preload scene to it. Regards,
Dragos.


 
I am trying to load another web page.
The flash button is in a different frame from where I want the web page to appear.
 
You need to use the "_target" attribute then like this:

on (press) {
getURL ("page.htm", "main");
} Regards
David Byng
spider.gif

davidbyng@hotmail.com
 
What is the _target attribute and how do I use it ?
 
Thanks, the link now works but I'm not sure how to make a preload scene which relates to the first question I asked.
 
From the menu: Insert/Scene and call it "preloader", then from also from the menu Modify/Scene and put the preloader scene first...it must be ahead the main scene.

Then, in the preloader scene make a new layer called actions and add this actions on the second frame:

kbloaded = int(this.getBytesLoaded()/this.getBytesTotal()*100);
if (kbloaded>=100) {
gotoAndPlay("main_scene",1);
}


and on the third frame:

gotoAndPlay(1);

...to create a loop. You can make another layer and create an animation to suggest that the main movie is loading. Regards,
Dragos.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top