We help IT Professionals succeed at work.
Get Started

how to change size of embedded movie clip.

1,017 Views
Last Modified: 2013-11-11
I have finally figured out how to embed an external swf (a rotating slideshow/banner) in my flash file, however, for some reason the embedded swf is blown to an extremely large proportion. How do I set the loaded swf movie clip size? The slideshow is in a movieclip that some actionscript on the main timeline opens the external swf in. Here is that script...

var imageLoader:Loader;
var ldr:Loader = new Loader();
ldr.load (new URLRequest("slideshow.swf"));
ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ldError);
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, ldComplete);
slideshow.addChild(ldr);
stop()
function ldComplete(ev:Event)
{
}
function ldError(ev:Event)
{
}

That is on the slideshow movieclip first frame on main timeline. When I was using an as2 based slideshow the embedded swf was the right size...now that I have switched to as3 to get everything functioning correctly the slideshow is blown way out of proportion. How would I set the proportion of slideshow.swf back to what they should be(569x163)? Could I simply modify the above code? How would I? That seems like the place to do it because when I play the slideshow alone it is the correct size.

Thanks ahead of time for the help!
Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE