?
Solved

open new swf

Posted on 2003-11-11
2
Medium Priority
?
250 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 200 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

777 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