Solved

open new swf

Posted on 2003-11-11
2
240 Views
Last Modified: 2010-04-03
I have created swf files and I want to be able to click a button within one that will open another swf file in the same window.  Is this possible?  I'm using 'getURL' now, but that opens it in a browser window, and I want it to open in the swf viewer window.
0
Comment
Question by:stephaniesb
2 Comments
 
LVL 27

Expert Comment

by:negatyve
Comment Utility
getURL("page.html", "_self");

or

loadMovieNum("movie.swf", 0);
0
 
LVL 1

Accepted Solution

by:
text_problems earned 50 total points
Comment Utility
you need to create a holder clip

// create movie on the root called "swfHolder" at level 500
_root.createEmptyMovieclip("swfHolder", 500);
// move it to the right place
_root.swfHolder._x = 20;
_root.swfHolder._y = 20;
// load you new swf into this holder
_root.swfHolder.loadMovie("your_new_file.swf") ;

defualt alignment is (0, 0) in the holding clip so in this example the swf will load at (20, 20) - just move the holder around to change this. your new swf must be in the same directory or you will have to change the path when you load the movie.

is that what you needed?
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now