Skip to main content
Participating Frequently
October 4, 2009
Answered

Action Script Mysteriously Changing width of Items ???

  • October 4, 2009
  • 1 reply
  • 890 views
Hello,
I am working on this website and I decided to add some flash to the front page in the form  of a little image gallery with a nifty slide effect.
The problem is this. For some reason its squishing my  images. When you look in the scripting you will see that I've set the image  width to the full width of the stage, but when you test the movie they are  getting squished to about 3/4th's the width of the stage (ive double checked the image size as well).
Hopefully you will see something I have  missed.

Thanks for your help, this is  bugging me to no end!
-Brian
This topic has been closed for replies.
Correct answer Ned Murphy

While the problem has nothing to do with the actionscript, you posted this in the wrong forum since the file uses AS2.

The problem has to do with having modified the scale of the movieclips into which the images are loaded.  If you open the imgscroller movieclip, select all of the little white squares in the upper left (clip1 thru clip7), and select Modify -> Remove Transform, it will restore them to normal scale.

1 reply

Bob_Dahlberg
Participating Frequently
October 5, 2009

I can't open the fla (probably not the same flash-version, I'm using CS3).

But some guesses that might help are setting the Stage.scaleMode to flash.display.StageScaleMode.NO_SCALE.

One other thing might be using the Stage.stageWidth instead of Stage.width.

If this doesn't help I do have to look at the code..

//Bob

Brian_W1Author
Participating Frequently
October 5, 2009

Here is a CS3 version.

Also I tride setting the scale mode even though its not an issue witht he movie scalling, just a certain element of the movie, and it didnt change anything.

Ned Murphy
Ned MurphyCorrect answer
Legend
October 6, 2009

While the problem has nothing to do with the actionscript, you posted this in the wrong forum since the file uses AS2.

The problem has to do with having modified the scale of the movieclips into which the images are loaded.  If you open the imgscroller movieclip, select all of the little white squares in the upper left (clip1 thru clip7), and select Modify -> Remove Transform, it will restore them to normal scale.