Solved

open new swf

Posted on 2003-11-11
2
241 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
ID: 9723967
getURL("page.html", "_self");

or

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

Accepted Solution

by:
text_problems earned 50 total points
ID: 9786308
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

943 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

4 Experts available now in Live!

Get 1:1 Help Now