ActionScript 3.0 :: Size Can Not Exist On Loaded Swf
Jul 2, 2009I have loaded one swf file. Now I want to resize propositionally . When i specify width and height it does not display any more.[code]...
View 1 RepliesI have loaded one swf file. Now I want to resize propositionally . When i specify width and height it does not display any more.[code]...
View 1 Repliesi want the swf or jpg that i load into an empty clip in my main movie to scale to the size of the stage. How do i get the height and width of the jpg/swf being loaded?
i was thinking i could take that info and do a little ratio action and scale it to fit.
i have external swf with a size of 750x500, then it loads to main swf where it size is 750x700 now i want my external swf loads to main with its fix size which is 750x500, how should i do that?i've tried stage.stageWidth etc and swfLoader.width etc, but doesnt work.
View 14 RepliesI have a MC on stage with instance name of holder.I load a swf into holder. I want the swf which is bigger than holder to have the same height and width as holder.var myLoader:MovieClipLoader = new MovieClipLoader(); myLoader.loadClip("contact.swf", holder);
View 2 RepliesI'm using Loader to load an external swf into my swf and adding that loaded swf to the stage using event.target.content.If i set the width and height of the loaded swf I actually resize the movieclip inside my loaded swf. What I wanna do is change the stage size of the loaded swf.
View 1 RepliesI'm loading images from xml file. I want the images to have standard width when they are displayed.
Here are the snippets of the code that do the image processing:
var allThumbs:MovieClip = new MovieClip();
addChild(allThumbs);
allThumbs.width = 200;
allThumbs.height = 200;
[Code].....
this lines, where I wanted to resize the images before they show up in the ScrollPane.
I need to establish size of picture (*.jpg) loaded in swf file. I used this script for load the picture:
_root.createEmptyMovieClip(picture, 9876);
loadMovie(obrazok.jpg, 9876);
trace(picture._width);
but traced number is always 0 however the real size of picture is 256 x 192. How should I change the script for it works?
I have a main index SWF that preloads an external video SWF... when i test it offline it works fine..when i test it online it doesnt work fine... Weird observation: Online it worked when the external swf was only 10-20 kb But when i tried with bigger file size about 3.5 mb (which is the actual video i want to load), it doesnt work.... on the preloader it says NAN%... Now...could anybody try to explain to me what the hell is going on? I am attaching the Flash files in CS4 and CS3 format...
View 5 RepliesCan someone help me out and tell me how i can set the size of an external swf i have loaded into a target movieclip.ive got the external swf loading into the target ok but its too big.
View 3 RepliesI am loading an external swf, but when the swf is loaded, its height is correct, but it's width is not. Why is this?
"Block9.swf" is a simple MovieClip with a width of 100 and a height of 120.
But when the swf is loaded, its width output is 169. But the height is correct at 120.
Code:
var swfLoader:Loader = new Loader();
addChild(swfLoader);
var swfRequest:URLRequest = new URLRequest("Block9.swf");
[Code]....
I am creating an empty movieclip and loading a jpeg into it. The mc does not seem to resize to account for the jpeg's size, also the parent mc (thisClip) which is also created dynamically (with attachmovie), is set at 500 why:
thisClip.createEmptyMovieClip("theJpeg", 2);
thisClip.theJpeg.loadMovie(url);
thisClip.theJpeg.onEnterFrame = function(){
[Code]...
I'm Loading an image into a MC based on an XML file. I'm setting the initial alpha to 0, loading the image, then setting the alpha to 100 once I see that it is fully loaded. The problem is that I want the image to be resized, which is not working. Every time I check the size of the MC once the image is loaded I get 0x0. Here preload code.
Code:
function preload(num) {
eval("image"+num).loadMovie(url[num],1);
eval("image"+num).onEnterFrame = function() {
[Code]....
hare is the line I use to load image to movie clip IMG:
Code:
IMG.loadMovie("photoz/"+LPIC[DAIKTYNAS[preinuse][b]]);
ignore the details..
[code]......
how i can set the size of an external swf i have loaded into a target movieclip ive got the external swf loading into the target ok but its too big.
View 2 RepliesI have a picture gallery that loads a few thumbnails into a holder via xml and AS3. When you click on the thumbnail it loads the full-size image into a Loader.How could I add a description from the xml to the to the full size image.[code]
View 4 RepliesI'm using UILoader to load SWF files which I have no source for. These SWF files were created in AS2. They use masks. Width and height return unmasked values.
I'm trying to find the visible width and height of the clip so I can scale it properly.
For example I want a SWF to fit within a 50x50 space. The visible SWF is 65x65 (but I don't know this) and the unmasked size is 100x100. If I set the width and height of the loaded movieclip to 50x50, Flash scales the clip based on the unmasked portion, and I get a clip scaled much too small. Keep in mind I have no control of the SWF content, so I can not override width/height, or get mask size.
Anyone know how to maintain the original stage size of a externally loaded swf in as3 FP10?
View 2 Repliesmc.loadMovie("01img.jpg",0);
i use a mc load a pic i want the pic can auto fit the mc's width and heigth
I have a picture gallery that loads a few thumbnails into a holder via xml and AS3. When you click on the thumbnail it loads the full-size image into a Loader.How could I add a description from the xml to the to the full size image.
View 2 RepliesIf you load an external swf and after it is totally loaded give it as to change size properties. the file jumps from his size exactly to the pretended.
View 1 Replieshow I can find the original stage size of an SWF that has been loaded into a parent clip via MovieClipLoader? In the child clip, there are a number of elements that extend beyond its stage, so when I check the _width and _height properties, then they include the stage overlap.
I tried using mc.getBounds(), but it doesn't seem to give me what I'm after.
If you load an external swf and after it is totally loaded give it as to change size properties. the file jumps from his size exactly to the pretended. How do one give code to do this in a progressive way.
View 1 RepliesIm having problems with assessing the size of an image after having loaded it into a movieclip using MovieClipLoader.Im trying to use the onLoadComplete-method to determine when the image is completely downloaded into the imageholder-mc, but Im just getting the original size of the mc, not the image's.[code]
View 3 RepliesI have a stage with an external SWF loaded onto it. The stage scales dynamically to fill the size of the window.
Two problems: - I want certain items inside that loaded SWF to scale horizontally and vertically to fill the size of the stage.
- I want other items inside that movieclip to stay the same size, but be "attached" to the top and left of the stage.
how to retrieve information about size (in pixels) of loaded FLV file? Video object returns 2 pairs of parameters (width,height) which are useless because returns always parameters passed in constructor of Video() object. Another pair is (videoWidth,videoHeight) which is always (0,0). I gave up...
I need this information to scale proportionally video clip to size of area designed to display this video.
I wonder if any of you can point me in the right direction. In my stage I have a movieclip where I want to load several images with different sizes. This mc called "container" adds the loader to the stage so I'm asking for the loader width and height once has finished loading and then passing these to the width and height of the mc container so it resizes accordingly. But...it doesn't work. Here is my code:
[CODE]
var pic:Loader;var totalImages:int = 10;for (var i:uint = 0; i<totalImages; i++){ pic = new Loader() container.addChild(pic) pic.load(new
[code].....
i try to implement a preloader for my site but i have the following problems:once the preloader is finished it opens my external swf but this one appears below the preloader and very little in the window (almost smaller than my preloader size)
package classes
{
import flash.display.MovieClip;
[code].....
I have successfully loaded an external swf file into my own one. now what i want is to change the size of the loaded file.
the loaded file is an image and its height:500 and width:500 but what i want is to resize it to 200x200
How can i do that.
here is my code to load external image
var peelawayimage = _root.createEmptyMovieClip("peelawayimage", 7);
var mcImage = new MovieClipLoader();
mcImage.loadClip(_root.video_image, peelawayimage);
Im having problems with assessing the size of an image after having loaded it into a movieclip using MovieClipLoader.
Im trying to use the onLoadComplete-method to determine when the image is completely downloaded into the imageholder-mc, but Im just getting the original size of the mc, not the image's. I using the MovieClipLoader incorrectly somehow?
Code:
var MCL = new MovieClipLoader();
MCL.loadClip("IMAGE.jpg", mc_ImageHolder);
MCL.onLoadComplete = function (targetMC) { // perhaps 'targetMC' should be used?
trace (mc_ImageHolder._width); // outputs mc's original size, not image's size
}
I have a few text based pages on a site i am trying to build which contain dynamic text (contained within a database, which can be changed from elsewhere). These are loaded into a dynamic text box of a fixed size that fits within my page. This all works great. I have created two scroll movieclips (which act as buttons, one for up, one for down) which when clicked cause the textbox to scroll up or down as relevant. These work fine as well.
The problem i'm having is I only want the scroll buttons to appear if they are required (ie if the text within the text field is larger than its height so you need to scroll to read it all), but i cannot work out how to find the height of the actual content (as opposed to the height of the predefined dynamic text box). I can obviously create the textbox as autosized, then find it's height, then compare it to the desired height and (if it's larger) manually change it's height and display the scroll buttons, however i cannot imagine this is the most effective way to do it at all?I'm sure there is a standard, logical way to do this but i cannot seem to find any reference to it online or in the forums, but maybe because i'm searching for the wrong thing?