AS Help Img tween and Load
- Started
- Last post
- 2 Responses
- murmur
I'm at my whit's end.
Here is the scenario.
I am loading an image into a container_mc
The container_mc has a background graphic
so it looks like this:img_mc.container_mc
img_mc contains the background graphic and container_mc is on the stage of img_mc
img_mc.container_mc.loadMovie(ex...
The flow goes.
*button click -> call tween function to resize img_mc using the _width and _height properties.When image container is resized, load the new image into the container_mc
The process works with one horrible exception, The image appears improperly scaled and the container_mc is not the dimensions I set it to.
The most critical problem is of course the image appearing with the wrong proportions.
Any help please.. I'm drowning in code.
- System-Idle0
why dont you set the _visible of container_mc to 0
then load the image, when the image is loaded scale the bg mc and make container_mc visible
- murmur0
The problem would be best illustrated visually:
http://www.unidentifiedmedia.com…
You have to resize the browser window to get everything aligned. (I haven't set the default yet) Give it a kick and you should see that the scaling is doubled on the loaded image...
Also, would changing the _visible property to 0 make the container_mc immune to rezising while it is "invisible"?