Advertisement

03.17.2008 at 08:45AM PDT, ID: 23247380
[x]
Attachment Details

Resize MovieClip Loader AS3

Asked by ksbunger1 in Macromedia Flash

Tags: Adobe Flash ActionScript 3.0

I am trying to open up external (swf's and jpg's) within a flash window once I press a button. I have created a loader and open the file within a MovieClip. The problem is... It does not scale the external swf or image to the size of my movieclip. How can I force the loader to resize no matter what I open to a set size? I have tried using "loader.width=300;" but once I use that, my external .swf does not show at all in my movieclip. Here is my code that I am using to open the file using the loader. I am using ActionScript 3.0Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
player.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
    var loader:Loader = new Loader();
    loader.load(new URLRequest("movie.swf"));
    movie.addChild(loader);
}
);
[+][-]03.17.2008 at 09:24AM PDT, ID: 21143653

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Macromedia Flash
Tags: Adobe Flash ActionScript 3.0
Sign Up Now!
Solution Provided By: aneeshchopra
Participating Experts: 1
Solution Grade: A
 
 
[+][-]03.17.2008 at 10:42AM PDT, ID: 21144412

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628