Solved

open new swf

Posted on 2003-11-11
2
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
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.

738 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