Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How load full page external swf in fixed size swf

Posted on 2011-02-23
3
Medium Priority
?
564 Views
Last Modified: 2013-11-11
I have centred flash webpage 980px x 480px, but now I need on button click load external full pages swf (resizable photo gallery as3, xml )

How can I load it?
 
0
Comment
Question by:robizs
[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
3 Comments
 
LVL 5

Accepted Solution

by:
gingermoleman earned 500 total points
ID: 34966274
Hi,

2 methods. You can add a UILoader in the GUI. Under the button click you need:

var url:URLRequest = new URLRequest("http://pathtoswf");
loader.load(url);

where loader is the instance name of the UILoader

or you can add the loader dynamically by not having the UILoader at all by having this under your click:

var loader:URLLoader = new URLLoader();
var url:URLRequest = new URLRequest("http://pathtoswf");
loader.load(url);
addChild(loader);

GMM
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 35221217
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

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 come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
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 what frame rate is, how to control it and what effect it has on the video.

610 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