Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / August 2008



Tip: Looking for answers? Try searching our database.

How to have a flash pop up file?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ducati1 - 27 Aug 2008 02:58 GMT
Hey guys.
I want to have a button scripted to load a small swf file over the current swf file. For example a button is clicked and a small promo pic comes up. Where can I find the script for this?
gausim - 29 Aug 2008 15:10 GMT
Hi  Ducati1,

U didnot mention clearly that u want to override  ur current swf with new swf
or u want to load new swf on some part of ur current swf.

if u want to totally over ride ur current with new swf, then
first u give instance name to ur button that u want to click , say "my_Bt"

and then u can write the code in main timeline frame

my_Bt.onRelease = function()
{
    _level0.loadMovie("swf2.swf");

}

but in this case u ll not  able to click ur button again  coz it  will
override totally.

and if u want to load the movie on current swf , then u have to create
emptyMovieClip and then load ur  new swf on it..
Like this

_root.createEmptyMovieClip("loader",100);
my_Bt.onRelease = function()
{
    loader.loadMovie("swf2.swf");
    }
I hope it will help U..

Gaurav S.
ducati1 - 31 Aug 2008 23:28 GMT
Hi and thanks for your reply.
Yes I want to load a new swf over the top of the main swf, it is to load a
little "about us" video when a button is clicked.
I tried putting in the script you said but have error messages.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.