PDA

View Full Version : loading and scaling external swf


gotgear
04-09-2003, 01:52 AM
I am trying to get an extternal swf to play and scale to a specific size within my movie, below is my best effort to explain what I am trying to do.

First button script:

on (release) {
tgtClip.attachMovie("adSlideshow", "tgtClip", 2);
}
This loads an internal movieclip called “adslideshow”. Inside that movieclip is a second button.

Second button script:

on (release) {
tgtClip.loadMovie("assets/cadence.swf");
setProperty(cadence.swf, _height, 300);
}

This button pulls an external SWF called “cadence.swf”. I want to control the scale of this external swf. Unfortunately I do not have the source FLA of “cadence.swf”. Instead of just scaling the height of “cadence.swf” it is also scaling the movieclip “adslideshow”.

How can I get it so only the SWF is scaled?


Any help would be greatly appreciated. thanks in advance



-creativity is a bloodsport-

gotgear
04-09-2003, 07:25 PM
Yes, I am replying to my own post.

I found a way to do what I was trying to do.

Instead of setting the height and width of the swf, I set the xscale and the yscale. It works great.

thanks for looking.



-creativity is a bloodsport-