Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Placement Problem With Dynamically Scaled And Placed Images



Here is a link with both the .fla and the .swf.
http://66.80.155.45/ex.htm

I am trying to scale, then place 3 colored clips and I want the clips to stack on top of each other.

I have the scaling part worked out right, but I am still having problems getting the correct placement. The actionscript for the placement is on the bottom half of the as on the 3rd frame.



PHP Code:



yeller1._y = 553.1 - yeller1._height;
    blue1._y = yeller1._y - _root.blockPadding - blue1._height;
    green1._y = blue1._y - _root.blockPadding - green1._height;



FlashKit > Flash Help > Flash ActionScript
Posted on: 09-18-2003, 04:58 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Can New Images Be Created From Scaled Images
Hi,

I have scaled some images pulled from a database. Can they now be saved in their new size?

thanks

Gavin

Antialiasing Of Scaled Jpg Images
hello folks,

I'm quite sure you've seen this question before but I've searched for quite a while now and no hints found.

My problem is like found in the attachment. I am using an imported jpg, and I have to tween it. To the left is a screenshot from the flash interface, the image is scaled for 75 percent or something. To the right is the same shot in the actual movie (well.. same image, same scaling factor) and the antialiasing looks horrible. (I enlarged some text for your convenience).

Any clues on how to fix this? I want the same as in the flash interface.

I am using flash 8 but not since yesterday, I had the problem in MX too.

thanks!

Dynamic Scaled Images
Hi,

Is it possible to dynamically scale a jpeg that has been loaded into a movieclip as the movieclip is scaled?

For example I have a thumbnail sized movieclip at say 20% of its full size, I need to load a jpeg into this then scale it to 20% to fit and then when this movieclip is clicked both the clip and jpeg scale up to 100% and then back when another is clicked etc...

If it can be done how so?

Cheers!

Importing Images Being Scaled Down.
Hi, I have been haveing some issues with Flash MX on a Mac in latest version of OSX. When importing images (apple R) images (.jpg) are being scaled down to 57.6 %.
I have tried new documents, but same result.
Anyone ever have the same issue?
Thanks Tom

Images Not Being Scaled To Specified Size On Load...?
Hello.

I am using the loader component to dynamically load images (I am developing in the "Flash Form Application" mode).

When the application loads, the images often times appear in their original size. This happens randomly - sometimes they are scaled to the size I specify, but sometimes they load at their original size.

How do I ensure that the images are scaled 'EVERYTIME'?

I am not that advanced, so if you could provide a code sample, I would be most thankful.

Thanks.

Images Not Being Scaled To Specified Size On Load...?
Hello.

I am using the loader component to dynamically load images (I am developing in the "Flash Form Application" mode).

When the application loads, the images often times appear in their original size, and not scaled to specified size. This happens randomly - sometimes they are scaled to the size I specify, but sometimes they load at their original size.

How do I ensure that the images are scaled 'EVERYTIME'?

I am not that advanced, so if you could provide a code sample, I would be most thankful.

Images Not Being Scaled To Specified Size On Load...?
Hello.

I am using the loader component to dynamically load images (I am developing in the "Flash Form Application" mode).

When the application loads, the images often times appear in their original size. This happens randomly - sometimes they are scaled to the size I specify, but sometimes they load at their original size.

How do I ensure that the images are scaled 'EVERYTIME'?

I am not that advanced, so if you could provide a code sample, I would be most thankful.

Thanks.

Images Not Being Scaled To Specified Size On Load...?
Hello.

I am using the loader component to dynamically load images (I am developing in the "Flash Form Application" mode).

When the application loads, the images often times appear in their original size, and not scaled to specified size. This happens randomly - sometimes they are scaled to the size I specify, but sometimes they load at their original size.

How do I ensure that the images are scaled 'EVERYTIME'?

I am not that advanced, so if you could provide a code sample, I would be most thankful.

Fullscreen Images Scaled To Exact Browser Dims
Hey all,
I have a question, I have a large image say 1600x1200 in my flash file, it is basically a background for teh page, i have the export properties set up as follows:

Diminsions: percent 100x100
window mode: window
scale: no scale

basically what it does is shows flash elements outside of the flash stage. simple concept i know, but here is my issue. I need to ensure that the background image is scaled to exactly the width and height of the browser so it shows all. I have tried alot of different things but none seem to work to grab the browsers dims. any ideas?

here is the code that i have dev'd so far:


Code:
var syscheckX = System.capabilities.screenResolutionX;
var syscheckY = System.capabilities.screenResolutionY;
var calcedImgX= (924/syscheckX)*100
var calcedImgY= (924/syscheckY)*100
img_mc._xscale=calcedImgX;
img_mc._yscale=calcedImgY;

trace("calcedImgX: "+calcedImgX)
thanks,
derek rudd

Dynamic Placement Of Images
In the code below, I am loading in multiple images from based on an xml file. I am looking for a way to dynamically place the images depending on how many results are brought back. I have the starting points for the first image in each section in the code, I am trying to basically add about 40 pixels to those numbers for each image. Can anyone help me with this.


Code:
var xml = new XML();
xml.ignoreWhite = true;
Root = this
overText._visible = false;
xml.onLoad = function(success){
if(success){
NumOfCloth = this.firstChild.childNodes.length;

for (i=0; i<NumOfCloth; i++) {
Top = this.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
Catagory = this.firstChild.childNodes[i].childNodes[2].firstChild.nodeValue;

if(Catagory == "Woolrich Upholstery Wool"){
var clip = Root.attachMovie(Top+"Btn", Top, Root.getNextHighestDepth());
clip.ivar = Top;
clip._x = "104"
clip._y = "133"
//clip.onRelease = detailed
//clip.onRollOver = quickOver
//clip.onRollOut = quickOut

}else if(Catagory == "Pre-Washed Denim"){
var clip =Root.attachMovie(Top+"Btn", Top, Root.getNextHighestDepth());
clip.ivar = Top;
clip._x = "104"
clip._y = "217"
//clip.onRelease = detailed
//clip.onRollOver = quickOver
//clip.onRollOut = quickOut

}else if(Catagory == "10 oz. Dry-Finish, Waxed-Cotton Canvas"){
var clip =Root.attachMovie(Top+"Btn", Top, i);
clip.ivar = Top;
clip._x = "105"
clip._y = "299"
//clip.onRelease = detailed
//clip.onRollOver = quickOver
//clip.onRollOut = quickOut

}else if(Catagory == "10 oz. Berber Fleece"){
var clip =Root.attachMovie(Top+"Btn", Top, i);
clip.ivar = Top;
clip._x = "105"
clip._y = "384"
//clip.onRelease = detailed
//clip.onRollOver = quickOver
//clip.onRollOut = quickOut
}else if(Catagory == "10 oz. Heavyweight Cotton Duck Canvas"){
var clip =Root.attachMovie(Top+"Btn", Top, i);
clip.ivar = Top;
clip._x = "105"
clip._y = "468"
//clip.onRelease = detailed
//clip.onRollOver = quickOver
//clip.onRollOut = quickOut
}else if(Catagory == "8 oz. Cotton Twill"){
var clip =Root.attachMovie(Top+"Btn", Top, i);
clip.ivar = Top;
clip._x = "105"
clip._y = "552"
//clip.onRelease = detailed
//clip.onRollOver = quickOver
//clip.onRollOut = quickOut
}
}
}else{
trace("Error");
}
};
xml.load(XML File);

Placement Of Images From Xml To Flash
Hi,
I created a slideshow using xml data to load my images. They load fine. The thumbnails are the correct size and position, but the large images are not. How can I make it so the images show where I want them to show? They are different sizes...I want them centered in the window they come into, but they are justified to the left. I tried to specify in the code, but it is not working. Any thoughts?

Loading Dynamic Images & Placement
i am loading images dynamically on button press. (the jpgs just sit in a folder on my server, they aren't embedded into flash).

this all works fine, but I want to specify where they appear on the stage...i can't seem to figure out how to get it to work...

here is an example of the code I am using to call the images:

on(press) {
loadMovie("gallerypics/bouquets/image1.jpg",1);
}


Thanks in advance!

Non-scaled Embedded Swf In Scaled Container?
hey all, i have another strange question that may or may not be possible (im hoping you all know)

i have a table cell in a site im working on that is a set height, but can grow based on percentage horizontally. Id like to have a flash file in the cell that is set to either Exact Fit or No Border.
So far no problem, but heres my wrinkle: id like to have a secondary swf either overlaying that one or embedded in that one that will only scale PROPORTIONALLY (i dont want it to stretch horizontally). what im trying to acheive is a background that is always filled, but with foreground content that is always centers within that space.

is that possible?

How Dynamically Change The Image In Dynamically Created Row Of Images?
Hi everybody,
I am wondering if someone can help me to find out on how to replace the images in row of dynamically loaded images. I need on Press of an icon from the row of images replace the image of this icon to new one. Below is the code of creating the images row based on array and XMl data. I create an array based on data taking from XML.

Code:
var numOfImages:Number;
var thumbHeight:Number = 8;
var thumbSpace:Number = 100;
var thumbTotalDistance:Number = thumbHeight+thumbSpace;
var xCounter:Number = 5;
var thumbsCollectionHeight:Number;
var currentImage:Number = 0;
var moveOutDist:Number = 10;
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
var IM_Img:Array = new Array();
var IM_Title:Array = new Array();
//==================================================================================================================
//=============================== THUMBS IMAGE LOADER ==========================================================
//==================================================================================================================

var thumbImgLoader2:MovieClipLoader = new MovieClipLoader();
var thumbImgListener2:Object = new Object();

thumbImgListener2.onLoadProgress = function(target:MovieClip):Void {

};
thumbImgLoader2.addListener(thumbImgListener2);
thumbImgListener2.onLoadComplete = function(target_mc:MovieClip):Void {

};

//==================================================================================================================
//=============================== XML ==================================================================================================
//==================================================================================================================

var totalXML:XML = new XML();

totalXML.ignoreWhite = true;
totalXML.onLoad = function(success) {

var TNnode = this.firstChild.childNodes[1].childNodes;
numOfImages = TNnode.length;

//---------------- ATTACHING THUMBS -----------------
//===========================================================================================================

for (i=0; i<numOfImages; i++) {
var mc:MovieClip = imCollection_mc.thumbs_mc.attachMovie("mcThumb_IM", "thumb_" + i, i);
mc._y = 0;
mc._x = xCounter;

xCounter = xCounter+thumbTotalDistance;
thumbImgLoader2.loadClip(TNnode[i].attributes.thumb,mc.loader_mc);


IM_Title.push(TNnode[i].attributes.title);
imCollection_mc.thumbs_mc["thumb_" + i].mc_title.title_txt.text = IM_Title[currentImage];

mc.id = i;
trace (mc.id);

mc.onPress = mc_im_onPress;

mc.xx = mc._x;
mc.yy = mc._y;

}
};

//-------------------------------------------------------------------------
totalXML.load("images.xml");
Here is onPress event where I was thinking to add this functionality:

Code:
function mc_im_onPress() {

mcToSelect = this;

if(this.id==8){
//here I need to tell to replace the image from mc8 to new image from array to image#34 from xml
}
}
Any advice is highly appreciated. Thanks.

Dynamically Loading Images Into Dynamically Loaded MovieClips
I'm read through many of the posts and found several on this topic, none, however, that addressed all that I need addressed. I've tried several of the suggestions but so far nothing seems to work.

What I want to do is alter the width of images loaded dynamically into a dynamically loaded set of movieclips. all of the widths of the images are different, but i want them set to the same width. The width seems to stay at zero, however, and I cannot seem to change it.

Here is my code:

for (var i:Number = 0; i < 8; i++){
var mc = attachMovie("rect_mc", "r" + i, this.getNextHighestDepth());
mc._x = 90 + (i * (mc._width+5));
mc._y = 375;
mc.img_txt.text = "image" + (i+1);
mc.img_mc.loadMovie("myPic" + (i+1) + ".jpg");

mc.img_mc._xscale = mc.img_mc._yscale = (50/mc.img_mc._width) * 100;
};

The last line is the one that does not function properly.

I'd appreciate any help anyone can provide. thanks.

Skipping Missing Images For Dynamically Loaded Images?
Hey all,

I'm creating a image viewer for a photography studio.

I have it dynamically load the images. I'm using a text file to tell flash how many pics there are, the starting number, and the prefix and suffix for the file name ie. Ahp1234.jpg. Im using a simple counter when a person clicks on the "next" button it will add an increment to the starting number. My problem is photography studios often throw out images that didn't come out right, so there is a jump in numbers, and hence I get an error when trying to load an image that isn't there. I was wondering if there was a way to tell if an image has loaded properly using loadMovie. Or perhaps a better method than what I'm using?

I tried

square = new loadMovie;
square.load (_root.Filename);
square.onload = function (success){
if (success) {
//coding
}else{
counter++
}
}

If any one has any insight I would appreciate it.

Thanks.

Dynamically Add Images
I have a flash / coldfusion chatroom. I am trying to get it to replace a text base smiley with a . This seens like it whould be easy but i just cant figure it out.

The chatroom is at :
http://www.gayleandwil.com/bluecruiser/

Any help will be apreciated it.

BTW. if you log into the chat..make sure no one is around when you click the Final Word Button.

Also Hold the Girlies button down to see the show


Thanks in advance

Dynamically Generated Images
Hey,

I'm about to design a site that has a very large art gallery section. Does anyone know if Flash can dynamically import images (.jpg or .gif) using ColdFusion and/or JavaScript?

Any suggestions would be appreciated.

thanks,
Janet

Dynamically Importing Images
Can you dynamically import images into flash. ie. Someone can choose an image from a folder on their own computer then put it into a flash movie?

Dynamically Loading Images?
Coincidentally, I have two clients who are both wanting photo gallery type applications for their sites...

Is there a way to dynamically load images into your movie from a directory (i.e. without putting them into your .swf beforehand)?

I'm pretty sure there isn't, but I wondered if anyone else had thought about it...

Dynamically Importing Images From A DB
I'm looking for ideas on how to dynamically swap an image with another image called from a database?

One suggestion I got was to use this method:

Flash_object.SetVariable(name,value); ---->
Flash_object.SetVariable(pictureName,'fred.swf');

This method uses jpegs that have been saved as swf files. The 'fred.swf' could also be a variable that would be pulled from a database rather than explicit.

It seems like a solid method but I'm not too sure how to impliment the entire concept.

Is there anybody out there that gets what I'm talking about and could offer a few more details for me?

Dynamically Loading Images.... Help
Thanks for coming in.

Pardon my inquiry if this is a common question, but I searched the forums and didn't get an answer.

How do I dynamically load images by themselves? This as always something that amazed me about MX but I have no clue how to do it and all my help and supports don't list it (at least where I'm looking).


Thanks,
-Kac

How Can Load The Images Dynamically
How can i use the dynamic image in my movie. In the whats new setion of flash mx these guys are telling that now we can load the image dynamically but they havent provide any tutorial for this.
PLease tell me how to do this.

cheers
Ritesh

Dynamically Importing Images?
Can I download an image from the web and place it dynamically in flash? (meaning not actually adding this file to a movie and loading the movie)

if so, how?

thanks, billy
http://www.frostytomato.com

Dynamically Loading Images
I know how to dynamically load a jpeg image using the loadMovie() function, but is there a way to load .gif or .png images dynamically?

Thanks.

Dynamically Loaded Images (.jpg Only?)
I'm loading images from outside my movie using the load movie action. Everything I've read and tried myself so far implies that you can only load .jpgs... Is this correct? I want to load .gis or .pngs so that I can have a transparent background. Any ideas?

thanks

Dynamically Load Images
this may OR may not sound difficult but
if anyone has a link to a tutorial on
loading images dynamically to a flash
movie I would appreciate the direction.

The general problem is this;

To have a menu for images and as is obvious
after a link is pressed on the menu, the image loads,
BUT,
If the owner of the site wants to add new images
daily, then, all he would have to do is upload
the images to the server and the Menu would be updated
and the pic along with the menu item would be accessable.

About the menu, I am going to take care of that myself,
About the images, I will direct the owner of the site
to specifically name each new pic that he uploads,
so that Flash can go through the file each time it loads
and determine if there is another image in the file,
basically it would just loop once and count the number of images. so again, that is not my problem,

the problem is simply loading the data remotely...

Thanks in Advanced everyone

Loading Images Dynamically
Hello! there
i am trying to Load images Dynamically on Square Graphic,Which was created dynamically.
like,i got horizontal scrolling Slides,on each slide .Jpg Images has to be loaded dynamically.
If you are not following what I am trying to say,here i am sending FLAa & SWF Files,please take a look and send me the solution for this

Thanks
Sridhar

Loading Images Dynamically
I just read something about loading images dynamically - does that mean that the images will load only when referenced? I have a file that contains a lot of images, and I don't want them all to load right away - the file takes far too long to load. Is it possible, then, to have the images load only when called on? In other words, have an image load only when the user clicks the button that is referencing the image?

Thanks,
Michelle

Dynamically Import Images
I have a list of images that I want to scroll through .... but its an ever growing list ... I want to make a text file to house all the images and then import them one at a time ... when I need them ... (using next / previous buttons) can any one help me ...

Thanks alot

Load Images Dynamically
pls can someone tell me how i can upload images dynamically & also to have a motion for each image i upload.
is there a tutorial which i can go through as well

thanks

Dimuth

Dynamically Importing Images
HELP!!!

I'm trying to make a small app that can load images of various types. In MX, the loadMovie method allows you to import jpg's but there doesn't seem to be a way to do a dynamic import of other image types... not even freehand images... You'd think Macromedia would give its own file types a little more support, no!? Well, if anybody out there has any ideas, I'd sure owe you one!

Thanks in advance!

Generate Row Of Images Dynamically
Hi, could anyone suggest any good tutorials/point me to some source code to do this...

I have a row of thumbnails which make up a strip along the bottom of a page. They scroll horizontally depending on where mouse is hovering (you know the sort of thing).

Anyhow, I need to be able to upload new images into a directory, and then add their file-names into a database. From this, the images need to automatically appear in the flash movie.

My action scripting is not too good, so a fairly gentle explanation would be great.

Many thanks for your time.

Is It Possible To Load Gif Images Dynamically...?
Hi...
Can any one tell me if I can load gif files dynamically from a folder?

Loading Images Dynamically?
Hello... Thanks for any help in advance.

I am trying create a slide show type of thing for my website. The problem is I do not want to keep opening up the Flash movie and re exporting it everytime I need to add a picture. Is there any way that I can create an Object that will hold the place of the picture and then point it to the directory with the pictures in it? Then it (the action script or something) would just look for more picutres or something in the folder? Im sure there is aname for this..


Apologies for my dumbness... Im a musician not a programmer.

Thanhs again

Dynamically Loading Images
So I tried to do a tutorial for dynamically loading images from a UI List.

but the tutorial was outdated and I'm using MX 2004.
Apparently, Macromedia changed the syntax around a bit, and some things are different.. thats why I need help

In Flash MX, there was Change Handler for the UI List, in MX 2004 there isn't one, what do I do now?


Also, .getSelectedItem isn't recognized, but .getSelected is, is it the same thing?

Dynamically Importing Images
Can someone tell me the procedure for dynamically bringing images into a movie from a folder.

I am producing a flash site for a photographer and I want the images to sit in a folder that he can update. The swf will then look in the folder and display the image accordingly.

Is this possible and how do you do it? I've seen things about XML floating around but they don't explain how to do this particlar problem.

Dynamically Loading Images
Hey,
First of all, i apologise if this has been posted elsewhere (which im sure it has been) but i cant find it

Ive made an image gallery with various thumbnails on, and when i roll over a thumbnail i want it to load the larger image into a textbox with variable and instance name 'image'

The button actionscript is as follows:

on (rollOver) {
title="title_1";
number="image 1";
image.htmlText="<img scr='./image_1.jpg'>";
}
on (rollOut) {
title="";
number="";
}

the settings for the textbox are:

dynamic
render as html
multiline, no wrap

the title and image variables there are just other text boxes...

thanks for any help

-Ross

Importing Images Dynamically
Hello,
I want to import some images into various holders, but I want to do it dynamically.

I have some images, like "image1.jpg" "image2.jpg" etc.

I also have the holders on the flash document as:
"mv_btn1 . btn1 . mv_holder1" (no spaces)

I've checked my code on a test holder, but that one was placed on the _root timeline, not inside of a bunch of movies and buttons.

This is my code:


Code:
for(i=1;i<=5;i++){
loadMovie('button' + i + '.swf', '_root.mv_btn_'+i+'.btn_'+i+'.mv_btn_'+i+'_holder');
_root.mv_test
trace("loadMovie('button" + i + ".swf', btn_"+i+".mv_btn_"+i+"_holder);")
}
I'm wondering if I might just be calling the movie holders wrong, or if I need to tell them that they have that name. I've found that unless you give the clip a name in the property inspector then you can't call it dynamically.

Thanks for your help.

Sizing Images Dynamically
I have a question about sizing an image as it comes in from the data base into a flash movie. Right now the code is written...
smallPicX = 0;
smallPicY = 0;
smallPicW = 218;
smallPicH = 153;
so an image from the database comes in and sizes to 218w x 153h. However this creates white space above and below or on the sides if the image is not the same proportion. Can the code be written so the shortest pixel dimension is either 218 or 153. This way the image comes into a mask and crops so it fits.

Guessing but can you set a variable to the min image px dimensions then write if/else statement?


Thanks

Dynamically Loaded Images
Hi, I am working on a product display module for a client.

I have 10 images of the product in a movie clip and am using action script to enable the visitor to rotate the product and zoom in and out.

When I place the images within the flash movie, I get a very smooth transition.

But when i load the images dynamically using load movie, there is a delay before each of these images are displayed giving the rotation feature a very shabby and broken effect.

Please let me know if a smooth transition can be achieved when i use dynamically loaded images and if so, Please guide me on how to do it.

Any help will be sincerely appreciated.

Thanks in Advance.

Dynamically Fading Images.
The concept behind the following code is similar to that on www.Neave.com except that instead of fading in colors, I want to fade in images when I roll over a section.

I'm currently using this function to call my sections:

PHP Code:



function myRollOverFunction () {
    _global.sectNum = this.index;
    string = "javascript:document.getElementsByTagName('body')[0].background='bg" + this.index + ".gif';void(0);";
    getURL (string);
}
function myRollOutFunction () {
    _global.sectNum = 0;
    getURL ("javascript:document.getElementsByTagName('body')[0].background='bg0.gif';void(0);");
}
for (var i = 1; i <= 6; i++) {
    this["mc" + i].index = i;
    this["mc" + i].onRollOver = myRollOverFunction;
    this["mc" + i].onRollOut = myRollOutFunction;
}




And I'm using this one to control the fade:

PHP Code:



_root.onEnterFrame = function () {
    while (_global.sectNum != 0) {
        if (this["mcpic" + _global.sectNum]._alpha < 101) {
            this["mcpic" + _global.sectNum]._alpha++;
        }
        else {
            this["mcpic" + _global.sectNum]._alpha = 100;
        }
    }
    while (_global.sectNum == 0) {
        for (i = 1; i < 6; i++) {
            if (this["mcpic" + _global.sectNum]._alpha > 0) {
                this["mcpic" + _global.sectNum]._alpha--;
            }
            else {
                this["mcpic" + _global.sectNum]._alpha = 0;
            }
        }
    }
    trace ("sectNum " + _global.sectNum);
    trace ("Picture " + _global.sectNum + " is active: " + this["mcpic" + _global.sectNum]._alpha);
};





This last code seems to be causing me an error and is definately not the way to go about doing this. Both traces work fine. I just need an easy way to change the _alpha of each image so that the one corresponding to _global.sectNum fades to 100, and the rest fade to 0.

Any help would be appreciated.

Thanks,
DaVuLf

Dynamically Loaded Images - Help Please
HI, I'm trying to build a portfolio in which each image loads dynamically, a movie clip resizes to the dimensions of the image being loaded, the image fades in and out again when a new image loads. I have had no problem with any of this except getting the dimensions of the images as they load and centering the images. I want the 'holder_mc' clip to tween from "w"(the current width of 'holder_mc') to "a"(the width of the loaded jpg) and I want them to be centered inside the clip i load them into. Below is the script I have used so far. An example of what I'm trying to acheive is at the address: http://www.iso50.com/iso50.html . Any ideas?



PHP Code:



import mx.transitions.Tween;
import mx.transitions.easing.*;

my_mc.loadClip("frames.jpg", "container");

button1.onPress = function() {
    var alpha_tween:Object = new Tween(container, "_alpha", regular.easeOut, 100, 0, 1, true);
    alpha_tween.onMotionFinished = function() {
        my_mc.loadClip("frames.jpg", "container");
    };
};
button2.onPress = function() {
    var alpha_tween:Object = new Tween(container, "_alpha", regular.easeOut, 100, 0, 1, true);
    alpha_tween.onMotionFinished = function() {
        my_mc.loadClip("911.jpg", "container");
    };
};
button3.onPress = function() {
    var alpha_tween:Object = new Tween(container, "_alpha", regular.easeOut, 100, 0, 1, true);
    alpha_tween.onMotionFinished = function() {
        my_mc.loadClip("tree.jpg", "container");
    };
};

w=holder_mc._xscale
h=holder_mc._yscale
my_mc = new MovieClipLoader();
preload = new Object();
my_mc.addListener(preload);

preload.onLoadStart = function(targetMC) {
    trace("started loading "+targetMC);
    container._alpha = 0;
};
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
};
preload.onLoadComplete = function(targetMC) {
    trace(targetMC+" finished");
};
preload.onLoadInit = function (targetMC)
{
a="imported image width?";
b=="imported image height?";
trace(contentainer._xscale);

var size_tween:Object = new Tween(holder_mc, "_xscale", Regular.easeOut, w, a, 1, true);
var size_tween:Object = new Tween(holder_mc, "_yscale", Regular.easeOut, h, b, 1, true);
size_tween.onMotionFinished = function() {
   var alpha_tween:Object = new Tween(container, "_alpha", regular.easeOut, 0, 100, 1, true);
};
};

Loading Images Dynamically
Hey people! I designed a photo gallery but something tells me that there has to be a better way. I loaded 40 images onto a page and I had to link from the thumbnail to the main image.

Can anyone point me to a tutorial that will help me learn to make dynamic (actionscript) photo galleris? Thanks

Help With Dynamically Loading Images
I am making a menu that loads things dynamically. So far I have it loading a link, button title, and a short description of something. I need a background image for each of the 5 "slots" in the menu and I dont know how to load a certain image into that certain spot. I hope that is clear enough... I hope you can help me out with this!

Dynamically Loading .png Images
I'm using this tutorial and Flash MX Pro 2004:

http://www.webwasp.co.uk/tutorials/b...MX04/index.php

It works find with .jpg images ... but I have issues when trying to use .pngs they never load ... is their something special I need to know about .png images?

Resizing Images Dynamically?
I want to resize an image dynamically,

I know that this._yscale and this._xscale resize the image in percentage way.

And that this._y and this._x place the picture according to co ordinates.

and this._width and this._height resizes it according to pixels. So i should use this one to resize it. However when i try to resize it, it doesnt show up at all on the screen??????? but when i dont use this._width and this._height it does....

Any Ideas

Resize Images Dynamically
All i'm attempting to do is set a laoded file to match the size of a empty_mc located into - on the stage. Of course I alredy tried setting properties to a second clip empty_mc2.

What happens is, the movie loads & resize but, resize is either to small or to large. At any rate, the loaded clip is not matching the size of the clip properties i had assigned. I could manuall y adjust the clip to make it fit, but I'm trying to resize the images dynamically.

Thak You

function fimage(){
//empty_mc coordinates
xpos= empty_mc._x;
ypos= empty_mc._y;
//loadmovie & position to coor
loadMovie("images/image1.jpg","empty_mc");
_root.empty_mc._x=xpos+1;//115set to scale and position to ghost clip on stage
_root.empty_mc._y=ypos-1;

//scale to fit empty_mc min image size
//get size
xheight=empty_mc._height;
xwidth=empty_mc._width;

//seto size
empty_mc._height = xheight; trace(xheight);
empty_mc._width = xwidth; trace(xwidth);
//end size
}

Copyright © 2005-08 www.BigResource.com, All rights reserved