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




Get The Size Of An Empty MC After Loading An Image, How?



Hi!
I have an empty MClip which loads a jpg image. Once it's loaded, I'd like to know the resulting size of the MClip.
However, whenever I trace it, it always returns 0.
This is what I'm doing:
I load my jpg image to my empty MC called DummyMC.

loadMovie(JPGimage,"DummyMC");

If now I trace the width or height, it returns 0:

trace (DummyMC._width);
trace (DummyMC._height);

I guess it's easy to solve...can anybody give me some light please?
Thank you!



FlashKit > Flash Help > Flash ActionScript
Posted on: 05-23-2007, 01:59 PM


View Complete Forum Thread with Replies

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

Loading Image Onto Empty Movie Clip
hey all
just a quick question.
shown in the code below i am dynamically creating buttons. the buttons load an image and text into another clip above. what i need help with is; i need the image to ALSO be displayed on the button. :confused
so instead of the button filling with it's color (CCCCCC) i need it to fill with the corresponding image or part of the corresponding image.
any ideas?
thanks in advance!!


PHP Code:



// create a blank text box and set its parameters// first is movie depth, second is x coordinate, third is y coordinate, then width followed by height_root.createTextField("theTextBox", 20, 100, 110, 245, 75);theTextBox.background = true;theTextBox.border = false;theTextBox.backgroundColor = 0xFFFFFF;// whitetheTextBox.multiline = true;theTextBox.wordWrap = true;theTextBox.html = true;theTextBox.scroll = true;theTextBox.scrollbar = true;theTextBox.variable = "myText";// load our textloadVariables("welcome.txt", "_root");//set up dynamic buttons and parameters//for(i=1;i<11;i++) where i<8 represents max number of buttons (so 10 buttons total)//_x=i*37 where 37 represents width of button plus space between buttons (so 27+10=37)for(i=1;i<11;i++){    _root.createEmptyMovieClip("button"+i, 100+i);    _root["button"+i].beginFill(0xCCCCCC, 100);        _root["button"+i].moveTo(-25, -10);        _root["button"+i].lineTo(25, -10);        _root["button"+i].lineTo(25, 10);        _root["button"+i].lineTo(-25, 10);        _root["button"+i].endFill(-25, -10);        _root["button"+i]._x=i*37;        _root["button"+i]._y=215;        _root["button"+i]._width=27;        _root["button"+i]._height=27;        //create, add, delete buttons}button1.onRelease=function(){    loadVariables("text1.txt", "_root");    loadMovie("showcase1.jpg","imageHolder");}button2.onRelease=function(){    loadVariables("text2.txt", "_root");    loadMovie("showcase2.jpg","imageHolder");}button3.onRelease=function(){    loadVariables("text3.txt", "_root");    loadMovie("showcase3.jpg","imageHolder");}button4.onRelease=function(){    loadVariables("text4.txt", "_root");    loadMovie("showcase4.jpg","imageHolder");}button5.onRelease=function(){    loadVariables("text5.txt", "_root");    loadMovie("showcase5.jpg","imageHolder");}button6.onRelease=function(){    loadVariables("text6.txt", "_root");    loadMovie("showcase6.jpg","imageHolder");}button7.onRelease=function(){    loadVariables("text7.txt", "_root");    loadMovie("showcase7.jpg","imageHolder");}button8.onRelease=function(){    loadVariables("text8.txt", "_root");    loadMovie("showcase8.jpg","imageHolder");}button9.onRelease=function(){    loadVariables("text9.txt", "_root");    loadMovie("showcase9.jpg","imageHolder");}button10.onRelease=function(){    loadVariables("text10.txt", "_root");    loadMovie("showcase10.jpg","imageHolder");}// create variable graphic content holder_root.createEmptyMovieClip("imageHolder", 377, 88);imageHolder._x=15;imageHolder._y=15;loadMovie("showcase_default.jpg","imageHolder");imageLoaded=true; 

[MX04] Loading Preloader And Image Inside Empty MC
I'm creating a photogallery, and I'm thinking of creating the thumbs of an array.
Now doing this would be rather simple with using loops and creating empty movieclips and just puttting the images inside them. But what do I do if I want custom preloaders for each thumb?

The way I'm doing it now is that inside flash each thumb is a different movieclip that loads in the image "full with preloader" via actionscript. Now this is ok for 10 or so pictures, but when filling the gallery with about 100 images, it's very timeconsuming...

so basically I'm aksing how do attach custom made preloaders into empty movieclips and having that preloader preload another loaded image...
If I made enough sence and if it's even possible?

Loading Image And Then Checking Size
Hello. I have this little piece of code that runs onEnterframe watching for an image to be loaded. When it is loaded it is supposed to check the width and height of the image then center it under a mask. Every once in a while the centering deal doesn't work, as if the file didn't load 100 percent before the height and width values were polled. Could somebody look at this snippet and tell me is they see anything weird. Maybe the way I'm checking to see if the image is loaded? I don't know.

Thanks in advance.

if ((this.thumbNail.getBytesLoaded() == this.thumbNail.getBytesTotal()) && (this.thumbNail.getBytesTotal() > 0) && (this.thumbNail.getBytesTotal() ne "undefined")) {
this.littleLoader.removeMovieClip();
this.createEmptyMovieClip("maskThumbClip", this.getNextHighestDepth());
this.maskThumbClip.beginFill (0x0000FF, 50);
this.maskThumbClip.lineStyle (5, 0xFF00FF, 100);
this.maskThumbClip.moveTo (0, 0);
this.maskThumbClip.lineTo (0, 50);
this.maskThumbClip.lineTo (50, 50);
this.maskThumbClip.lineTo (50, 0);
this.maskThumbClip.endFill();
this.thumbNail.setMask(this.maskThumbClip);
var moveX = Math.round((50 - this.thumbNail._width)/2);
var moveY = Math.round((50 - this.thumbNail._height)/2);
this.thumbNail._x += moveX;
this.thumbNail._y += moveY;
this.thumbNail._alpha = 0;
this._visible = true;
}

FMX - PLEASE HELP ME - Loading An Image To Fit A Specific Size Using XML
Ive been searching high and low to find out how i can dynamically load an image into a container [i.e. im using the xml_photogallery tut. template] and setting it so that it scales to fit specific dimensions.

At the moment Im having to resize images in photoshop so that it fits with in the container/webcontents dimensions. Otherwise different images with different sizes will bleed on main body of the site.

Any help would be much appreciated and im sure the answer is out there somewhere...

FMX - PLEASE HELP ME - Loading An Image To Fit A Specific Size Using XML
Ive been searching high and low to find out how i can dynamically load an image into a container [i.e. im using the xml_photogallery tut. template] and setting it so that it scales to fit specific dimensions.

At the moment Im having to resize images in photoshop so that it fits with in the container/webcontents dimensions. Otherwise different images with different sizes will bleed on main body of the site.

Any help would be much appreciated and im sure the answer is out there somewhere...

Resize Movie At Image Size (while Loading) ?
Hello you all...

I was wondering if there is a sample out there or if someone could help me out. I am trying to load a single image into a swf, while it loads the height and length of the movie will resize itself to the image. I want to use this for friend of my that loads his images up to his webpage without copyright protection but he really needs some...
Although I know something about actionscripting but this is going over my head for now... Still learning though!

Hopefully someone can help me out with this one i'd be greatly thankfull!

Many thanks in advance...

Dennis

What's The Problem Here- Image Size And Loading Text
Help Me please

THis is my first flash site ever and there are so many bugs to work out. I have two major problems
1) when my site is visited the preloader starts and then jumps tothe next scene and the image is to large on the stage, however when you click the refresh button every thing shows up normal.
2) when you click on the buttons the first time (left panel) the move clip loads but the text that should load in the scroll pane dose not, yet again if you click that button again it loads properly.

here's the site CS Solutions.

any help will be greatly appreciated

Obtaining The Size Of An Image Using Loader Without Actually Loading It
Hi,

Does anyone know a method of figuring out the size of the target of an instance of the Loader class without actually loading it? For example, if I create the following code:


Code:
var url:String = "http://www.somewebsite.com/pic.jpg";
var image:Loader = new Loader();
var request:URLRequest = new URLRequest(url);
Is there anyway to find out the size of pic.jpg without assigning an event listener to image.contentLoadInfo for Event.OPEN/COMPLETE and calling image.load(request)?

Thanks in advance,
J

Changing The Display Size Of An Image While Loading Into Flash
I would like to load JPGs into my movie (using ‘loadMovie’) the JPG’s might not be in the size I need them on the screen. so I would like to determine they’re size in the Flash movie.

Is there a way to do it ?

Thanks.

[F8] My First Scene's Size Is Too Big, Even When Its Empty...
Hi, first im so excited dat i could join this forum coz the posts are really give me something...

Ive been developing a fash web site for the company where i work. The file is about 700kb and i know its realy big to be published on the web, so i created the preloader on the first scene. But when i tested the movie, the bandwith profiler show me that my first scene's size is about 230kb.... How could my first scene's size is so big...?
Even when i changed my preloader into a simple loading bar with percentage counting and the action script was only about 4 lines of code that only count the percentage of downloaded size, it still show the same size... So how could the first scene's size can be so big when i only put a simple things...?
Even when i deleted the preloader (so the first scene is now empty), it still shows as 230kb size...

Im so confused rite now, can somebody help me with this problem...?

P.S.: so sorry if my english is so poor... ^^v
and so sorry i cant attach the file coz its too big (700kb) and its my company's privacy...

Load Swf Onto Empty Mc, Regulate Size?
hi all!

i have a page that loads up with buttons on it that will open swf movies when a button is pressed.

i would like the movie to open up at a specific size on the page, how do i tell the movie where and how big to open up?
i would like to use an empty movie clip to load the swf onto, but how do i regulate the window/playing size of the swf?

also, if possible, could i have a script that when the viewer clicked on the swf movie that it would open up to full size???

thanks!

Empty Movie Clip Size
hi, i want to ask if it is possible to set a movie clip to a specific size, and therefore resizing the image i'm sending to the flash movie, thanks

Need To Instantiate An Image In An Empty Mc Within A Button
Hi,

I dont know why I cant access an instance of a mc within a button.

I have an empty mc called "theEmpty" and another one containing a image called "theImageA" (exported to ActionScript). I have a button called "theButton" too.

I instantiated the mc "theEmpty" within first frame of "theButton" and named its instance as "TheEmpty1".

Then, I instantiated "theButton" in the first frame of the timeline and named its instance as "TheButton1".

In the first frame of the timeline, I coded the following:


theButton1.theEmpty1.attachMovie("theImageA","theI mageA1",2);


The idea should load the mc "theImageA" in the mc "theEmpty" that is within the button "theButton". Why it dont works????

Thanks!

Load Single Image Into Empty MC Using XML
Hey I just wanted to know if anybody can point me to a tutorial or code I can use to load a single image into an empty MC from an XML file, I already tried altering code from slideshows available at kirupa, but can't get it to work.

For your help Thanks

Easing A Empty Mc With A Dynamic Image
I've worked on this for far to long to know success and it's probably something really simple that I am forgetting

I currently have a empty movieclip created that loads the image from the url. This image_mc is given a actionscript tween from left to right. The problem is that it doesn't move left to right. When you take of the loadMovie function it works as it should. any help would be appreciated.


Code:
this.createEmptyMovieClip("image_mc", this.getNextHighestDepth());
image_mc.loadMovie("http://www.macromedia.com/images/shared/product_boxes/80x92/studio_flashpro.jpg");

var currentFrame = 0;

image_mc.onEnterFrame = function() {
currentFrame++;
this._x = currentFrame*11;
if (currentFrame>50) {
delete this.onEnterFrame;
}
};

Empty Movieclip Properties (image Holders)
Hi Everyone

I am developing a scrollable image viewer. The user clicks the thumb and the main image is displayed in an empty movie clip called holder. How do I code it so the images fade in rather than appear straight away. Do I need to convert the images to swf's or can I assign actionscript to the movieclip named holder.

Thanks in advance

Center Image Within Empty Movie Clip?
Hello, I have been following this tuorial for creating a dynamic photo gallery using xml.

right now, when loaded, the top left hand corner of each image is aligned to the 0,0 coordiante of the empty movieclip. My images vary in size and shape so I would rather that they were aligned centrally to the 0,0 coridinate. is this possible?

I hope I've explained myself ok, any help would be greatly appreciated

Here is the actionscript.


Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}

[F8] 'Centering An External Image To Empty MC' Problem.
Hi everyone,

I'm working on customising an open source Flash/XML gallery, and I've almost got it how I want, but seem to be stuck on what I think could be a very simple problem, which I'm hoping some kind soul here will be able to point out, so I can slap my forehead in a d'oh kind of way.

I'm trying to get the empty MC called 'holder', to instead of the default top/left corner, to load the image in it's centre. I can get the 'clicked' images to do so, but it's just the initial/first image that still loads the default way.

I've copy/pasted the part of the code which I think is the place to look. And I've RoyalBlue'd the part of the code I changed to make the 'clicked' image to do what I want.


Code:
imageWidth = 55;
imageHeight = 50;

var cx = holder._x;
var cy = holder._y;

clickAction = function (_arg2) {
loadMovie (_arg2.large, this.holder);
this.info_mc._alpha = 0;
this.holder._alpha = 0;

if (holder._width) {
holder._x = cx-holder._width/2;
holder._y = cy-holder._height/2;
}

this.info_mc.info = _arg2.txt;
this.info_mc.num = (_arg2.i + " af ") + total;
};
loadMovie (large[0], this.holder);
this.info_mc.info = txt[0];
this.info_mc.num = "1 af " + total;
i = 0;
Many many thanks in advance for any help given.

'Centering An External Image To Empty MC' Problem.
Hi everyone,

I'm working on customising an open source Flash/XML gallery, and I've almost got it how I want, but seem to be stuck on what I think could be a very simple problem, which I'm hoping some kind soul here will be able to point out, so I can slap my forehead in a d'oh kind of way.

I'm trying to get the empty MC called 'holder', to instead of the default top/left corner, to load the image in it's centre. I can get the 'clicked' images to do so, but it's just the initial/first image that still loads the default way.

I've copy/pasted the part of the code which I think is the place to look. And I've RoyalBlue'd the part of the code I changed to make the 'clicked' image to do what I want.


Code:
imageWidth = 55;
imageHeight = 50;

var cx = holder._x;
var cy = holder._y;

clickAction = function (_arg2) {
loadMovie (_arg2.large, this.holder);
this.info_mc._alpha = 0;
this.holder._alpha = 0;

if (holder._width) {
holder._x = cx-holder._width/2;
holder._y = cy-holder._height/2;
}

this.info_mc.info = _arg2.txt;
this.info_mc.num = (_arg2.i + " af ") + total;
};
loadMovie (large[0], this.holder);
this.info_mc.info = txt[0];
this.info_mc.num = "1 af " + total;
i = 0;
Many many thanks in advance for any help given.

Positioning Empty Movie Clip External Image Loader
Hello (again),

I am building a gallery for a photographer.

The setup: one large mc loader on mainstage (myLoader_mc). Several movie clip thumbnails contained in one large movie clip. You click on the thumbnail, large image loads into myLoader_mc. I am using a purchased component from extend studios for my transitions.

The problem: my jpgs are of different height and width. I want to keep using the same movie clip to load the images (myLoader_mc) but position the loader with different x and y coordinates for each loaded image so that it is centered on the stage. I am using the following script but the loader clip is stuck in the position defined by the first thumbnail. the script is in layer 1, frame 1 of the movie clip containing all of the thumbnail movie clips.

th1_mc.onRelease = function(){
_parent.myLoader_mc.loadMovie("/assets/family/1b.jpg");
myLoader_mc._x = 162;
myLoader_mc._y = 5;
}
th2_mc.onRelease = function(){
_parent.myLoader_mc.loadMovie("/assets/family/2b.jpg");
myLoader_mc._x = 282;
myLoader_mc._y = 5;
}

The image loaded by thumbnail 2 is stuck in position on thumbnail 1. Need to change this dynamically no matter which thumb is clicked.

Any help is appreciated and I hope I have explained this clearly enough. If you help me solve this, i will toast my next drink to you.

Loading Swf Into Empty Mc
I want to load swf's into an empty mc. On the root timeline I have an empty mc (instance name - swfholder) and on one of my buttons I have my AS

on (release) {
_root.swfholder.loadMovie("gallery.swf",10);
}

which I want to load in gallery.swf, However nothing happens any idaes please

[F8] Loading SWF Into Empty MC
Hey there,

Quick question: I need to load an external SWF into my main movie. The SWF to be loaded has smaller dimensions than the main movie and needs to placed at specific x/y co-ordinates. I have used the following:-

createEmptyMovieClip("container", 1);
loadMovie("loaded.swf", "container");
container._x = 70 ;
container._y = 0 ;

This is working, only the BG color of the loaded SWF is not displaying.

Can anyone suggest what I need to do/ adjust please ?

Many thanks

Q.

Loading In An Empty MC
I have a main movie:

main.swf

main.fla

and a navigation system that I need to load into the top:

nav.swf

In the first frame of main I have some actions:


---------------------------------------------------------

_root.nav.loadMovie("nav.swf");


---------------------------------------------------------



_root.nav is the instance name for the empty MC.

NOW - I know it loads - cos when I moved it around I obscured some objects on the main.swf stage. BUT none of the content runs!? Try running nav.swf for yourself and see - there's plenty of it there!

There must be a really simple answer to this............please....someone help

Jay.

Targeting Thumb Nail Image In Image Scroller To Full Size In Middle Of Screen
Hi people....

Thanks for your time....I`m basically looking for ideas on how to do the following. Most of the work is done all I need I hope is a little actionscript... ( I hope)

I`m building a scrolling picture gallery for someone where they want the thumbnail images, once clicked upon to scale very large in the middle of the screen on top of the image scroller. When the image is clicked it zooms back down to where it was clicked upon in the scolling image gallery. The site that best describes this is http://www.chris-bailey.com.

I can do the scrolling image gallery (well, thanks to other friendly flask kit people) and get the user to click the image buttons to load a movie above the scrolling gallery but its targeting the moving images in the scroller to target to the middle of the screen and stop moving and then go back down to the moving scroller.... All the images in the scroller are seperate movies that are obviously easy to scale but I need to turn off the scrolling action when they start scaling into the main movieso they remain still to view. Any ideas please? Using Flash MX.

Thanks.... Angus

Load Image Using LoadMovie - Can You Dynamically Change The Image Size?
Hello,

Is it possible to dynamically change the size of an image that is loaded into flash using the loadMovie function?

loadMovie("/images/tripOne/image1.jpg", "image1MC");Regards
Rob

[F8] Swapping New Image In As Movie Clip - How To Clear Size Of Old Image?
I'm loading in a jpg with the MovieClipLoader object. After the initial load, the movie clip _width property accurately reflects the width of the jpg loaded. Subsequent reloads show the width of the initial image. i need to get the width of the jpg i just loaded so i can properly size it for display. Is there a good way to clear out the initial jpg?

Loading Swf's In Empty Clip
Hi

I have a question regarding loading swf's in an empty clip. I was able to load my swf into an empty Movie Clip in the main movie, and the postioning is fine. When I test the main movie which is larger than my loaded swf the loaded swf file doesn't crop to the size of the stage I created it initially. Example Main Movie stage size is 550 x 400 pixels and the Swf stage size is 220 x 80 pixels(with moving elements starting off stage). It seems to show parts of the swf movie that start moving off stage, all I really want it to show is the stage and not the off stage items. When I test the loaded swf on its own it seems to be cropped to the stage size.

Any help on this would be greatly appreciated!

Thanks

Loading Images Into Empty Mc
I need to know if I can load a image into my empty mc. The images have to be in the same directory as the fla. But can I test this with out uploading swf to server. And also, can I unload that image and repeat with new image. Help on the script would be nice, thanks. PS using MX

Loading A .jpg Into Empty Mc Distorts .jpg
HI!

I am loading .jpgs in to a empty movie clip that is on top of a small animation. when the .jpgs get loaded they seem to shift a bit back and forth slightly with the animation that is under it. when I preview it within flash its ok. when i publish and view it thru my browser(IE5.1 Mac) i get the shift. what is happening here? it is a browser/plug-in issue and is there a way around it?

thanks..

Loading External .SWF Into Empty MC
I've working on a site w/ thumbnails that when clicked load an external swf file into an empty MovieClip.... I've been able to get this to work no problem until I pushed the site up to the server...
Now the external swf loads only after the thumbnail is clicked TWICE. Initially this was working on the first click....

Any advice?

Here's the site:
www.isaacpierro.com

(some of the imagery is a little dark, so don't visit if you're easily offended)

Thanks in advance...

Loading Swfs In Empty Mc's
I've loaded a swf into an empty mc. This works great, but I want to load other swfs as well. In order to load others, do you create an empty mc for each external swf? How do I go about this?

Thanks

Loading A Movie Into An Empty MC
I have created some flash movies that will be the pages to a website.

I have them load into an empty movie clip when the corresponding menu button is clicked.

I created an intro and an outro to each page.

How do I tell the empty MC to load the next movie once the current movie is done playing its outro?

Loading Library MC To An Empty MC
I'm trying to load a MC from the library to an empty movie clip on the main swf.
Its triggered by a button and I cant make it work ....it will load external jpgs but not a MC .......any help with the code would be great.
thanxs

Trying To Load My Flv Loading Swf Into An Empty Mc. HELP
I'm trying to play a swf which loads an flv. I'm trying to load that swf into an empty movie clip. Assume that movie clips name is empty_mc, where do I put it? Under tight deadline so any help would be great. Thanks!!!
here's the error:
level = error
code = NetStream.Play.StreamNotFound

here's the code...

my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.play("my_movie.flv");

my_ns.onStatus = function(info) {
for (var i in info){
trace(i+" = "+info[i]);
}
if(info.code=="NetStream.Buffer.Empty" && waitingForEmpty==true){
//display a play button because the video is done
replay_btn._visible=true;
}
if(info.code=="NetStream.Play.Stop"){
waitingForEmpty=true;
}

};

waitingForEmpty=false;
replay_btn._visible=false;
replay_btn.onPress=function(){
replay_btn._visible=false;
waitingForEmpty=false;
my_ns.play("my_movie.flv");
}

Frozen Swf Upon Loading On Empty Mc
Hello:

I load a swf with 3 scrolling images on an empty mc and the swf stays frozen on the first image. Does anyone know what is the problem? I have included the fla which was prepared using Flash MX.

Thanks in advance.
Cheers,
Marco

Loading Swf Into Empty MC Scaling
I have a external swf that I am loading into a empty movie clip. This swf is 504x360 but the MC is smaller 260x186 .. How can I make this fit into the MC.. When I test this it is larger than the entire stage. I am using MX 2004 Pro..
This empty MC is inside another swf, that is loaded into a main swf.

thanks

Loading Swf Into Empty Movieclip
i`m having trouble loading a swf into an emprty movieclip.
I`ms using a button:
on (release) {
_root.contents.loadMovie("thumbnail_final.swf");
}

it just doesn`t load...

i`m going insane with this stupid problem pls help!

Loading MCs From Library Into Empty MC
Hi all,

I have inherited a file from the previous designer that has alot of separate movie clips that are targeted from a main navigation(buttons) list.

Is there a way to load the movie clips from the library (i.e. not have them on stage) into an empty "container" movie clip when a user selects its button form the main nav list?

(f8) Question About Loading Empty M.c.'s
hi all!

got a question about loading empty m.c.'s. my new site will be 1 frame with m.c.'s nesteled within. so the loading m.c.'s (3-4) will all be of varying sizes to make up the whole page dimensions. so the question is about the m.c.'s that will be loaded, do i:
-make the m.c. full sized (1024x768) and just make the content fit the space (1024x200) where you plan to use it...or
-make the m.c. the actual size that will fit the intended space.

i am aware that either one of these methods will work. just looking for some feedback so i can avoid any possible pitfalls.

thanks!

Easy: Loading Into An Empty MC
Hi there,


what was the script for loading a movie into an empty MC when the main novie has finished loading?


/no on click event, just when movie finishes loading another movie loads upon the main movie/

Loading Swf Files Into Empty MC
My site has three frames, 1 is the preloader, 2 is the intro movie, and 3 is the main scene. In the main scene I have an empty MC called mainempty that covers most of the stage. The only part not covered is a small area at the top which has the nav buttons which never leave this location. In frame three of the main layer, I have an action statement which is
loadMovie ("A.swf", mainempty);

The movie loads perfectly. Three of the nav buttons changes the pages by loading different swf. files into the empty movieclip. These nav buttons are located within a button that is within a movieclip. They are part of a drop down menu. When I selected one of the buttons, I added

on (release)
_root.loadmovie ("B.swf", mainempty);

This loaded the movie but the entire stage shrunk to only the B swf. Then I tried adding an extra frame to the main stage, along with all artwork to extend it one frame (4). On the action frame of: loadMovie ("A.swf", mainempty);
I deleted it. I just left it blank. The problem is still there. The movie loads but shrinks to just the swf file. How do I load a swf file and keep the main stage there?

Loading Into An Empty Movieclip
Is it possible to load into the center of an empty movieclip? Right now when I load into the movieclip it just going top left justified.

Appreciate any help.

Easy: Loading Into An Empty MC
Hi there,


what was the script for loading a movie into an empty MC when the main novie has finished loading?


/no on click event, just when movie finishes loading another movie loads upon the main movie/

Loading Swf Files Into Empty MC
My site has three frames, 1 is the preloader, 2 is the intro movie, and 3 is the main scene. In the main scene I have an empty MC called mainempty that covers most of the stage. The only part not covered is a small area at the top which has the nav buttons which never leave this location. In frame three of the main layer, I have an action statement which is
loadMovie ("A.swf", mainempty);

The movie loads perfectly. Three of the nav buttons changes the pages by loading different swf. files into the empty movieclip. These nav buttons are located within a button that is within a movieclip. They are part of a drop down menu. When I selected one of the buttons, I added

on (release)
_root.loadmovie ("B.swf", mainempty);

This loaded the movie but the entire stage shrunk to only the B swf. Then I tried adding an extra frame to the main stage, along with all artwork to extend it one frame (4). On the action frame of: loadMovie ("A.swf", mainempty);
I deleted it. I just left it blank. The problem is still there. The movie loads but shrinks to just the swf file. How do I load a swf file and keep the main stage there?

Loading .exe Files Into Empty MC
Is it possible to load an external .exe file into an empty MC of a .exe file (just like loading external .swf's into empty MC's)?

Please Help Loading Content Into An Empty MC.AS3.
Hi!
I am using AS30 and I want to load an external swf file into an empty movie clip set on the stage and preload it.How would I do this in AS3?

Flash File With *only* One Image Double The Size If The Image?
I have a Flash file.
All I've done is to stick in one image file.
I've got the image publish setting to be 100%.

I publish the file.
The resultant SWF file is double the size of the image.
I would have thought that it should be the same or just a tiny bit bigger files size than the image.

(The image itself is an image I edited in Photoshop... and optimised for the web.)

Where am I going wrong?

Thanks.


OM

Flash File With *only* One Image Double The Size If The Image?
I have a Flash file.
All I've done is to stick in one image file.
I've got the image publish setting to be 100%.

I publish the file.
The resultant SWF file is double the size of the image.
I would have thought that it should be the same or just a tiny bit bigger files size than the image.

(The image itself is an image I edited in Photoshop... and optimised for the web.)

Where am I going wrong?

Thanks.


OM

Image Frame Resizes To Variable Image Size
Hey all, I've seen this effect on tons of sites and was wondering how hard it would be to do it myself. The effect is of an image frame that resizes to a variable image size such as at the following site:

http://www.thelotuseater.com/

Any help would be greatly appreciated. Thanks in advance.

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