ActionScript 1/2 :: Change Size Of Swf File After Loadmovie?
Aug 11, 2009
i'm at a frame inside has a button. once i click it will load a swf file flashmov.onRelease = function(){flash_mc.loadMovie("animation.swf");}but i have problem which is my animation.swf is way too big (800x550)and my flash_mc doesn't have anything inside.I want to resize to 480x330.
but i have problem which is my animation.swf is way too big (800x550)and my flash_mc doesn't have anything inside..I want to resize to 480x330. How can i do it?
i created a flash website but the problem is the size is to large to fit on screen i have imbeded buttons, Movies clips, masks, and about 7 different scenes in this 13 mb movie what do i do to make the physicle size of the objects on screen so i can view it on my sceen?
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);
I am looking to add some code to my xml file that will change the final font, size and colour in Flash Action Script 2. I want to be able to have the choice of a few font sizes, styles and colours. Below is the AS2 script so far, and the XML.
stop(); var myGalleryXML = new XML(); myGalleryXML.ignoreWhite = true;[code].......
I have this problem: in my swf on frame 100 is a code:
Code: loadMovie("second.swf", _root.clip1);
I have mc with isntance name: clip1 The movie second.swf loads into the position of clip1 but it's originally very big and I want it to make it smaller so it will fit to my site, if possible i would also like it not to be resizeable (so when someone will have smaller browser window it wouldnt move)
I want to reduce the size of Swf using the size mentioned in the object tag of html. Same swf file size can be different for different request.
The problem is this if we reduce the size all control in swf reduced according to the change in swf size. But we want the buttons and one more graphics remain same size for any change in size of swf file. How can we make it ..
I have loaded a .swf into my main timeline, but it's quite large. I am trying to get it to fit in the constraints of my current movie. I have read that by putting it into a movie clip, it will constrain to that dimension. How do I accomplish this?
I am using loadMovie to load an image that a user has uploaded. If I have the loadMovie target as a movie clip of size 300x300 and the user loads an image of size 600x600 it does not restrict and scale that image down to fit within the 300x300 box.
Is there anyway to restrict this? Like setting the properties of the uploaded image to fit within the movieclip?
Another issue is that I am using the following code to edit the size of the preview pane (according to a users input):
I have loaded jpegs into instances on my stage using loadMovie()See here:However the pictures (which have a greater height than the instance) in the thumbnail buttons extrude further than the height of the targeted instance (because the jpeg size is larger) but I want it to crop to the size of the targeted instance.Is it normal for the jpeg to fill the stage from the position of your instance, independent of the instance size it is targeted for?
We have used loadMovie to load some small SWF files on a home page we have made. The swf files are in different sizes and we need to be able to set the size. How do we do this? We hoped the problem was solved with the following code, but this code only sets the size of the variable "minRamme", the contents are still to big, resulting in only a part of the swf file being visible. Anyway the following code ignored the onRelease command, so the swf file started playing at once. How come?
I am loading swf A into a mc within swf B. loadMovie(dir/A.swf,target_mc); How do I constrain the width of A so it is its' normal size? It wants to span the width of swf B. I tried adding "_width=470" but my syntax is not right and/or working. I am using Pro 8.
I have some external .swf's of different dimensions. I'd like to know if there is a way to load an external swf to the stage and force it to fit to 100% the size of the stage it is loading into?Also, is there a way to handle the antialiasing of the scaled clip to ensure smoothness / clarity. The swf's contain both vector and jpg's and when scaled down appear jaggy.
When I preview my flash file it says that the filesize is 29kb. However when I look at the properties of the outputted swf it's coming in a t 36kb. Which is the correct size? Also what extra information is being added to push it up by 7kb?
When I preview my flash file it says that the filesize is 29kb. However when I look at the properties of the outputted swf it's coming in a t 36kb. Which is the correct size? Also what extra information is being added to push it up by 7kb?
I made a preloader for my single scene movie and although the preloader is about 16k, when placed into frame 1 of the movie and tested, the frame is shown to have about 256k, which is larger than the movie it's loading. I've gone through all the files and made sure that export in frame 1 is not checked and made sure the publish settings also are set to export in frame 1.
My problem is my client wants to be able to change image.jpg occasionally, to ones of different size ratios. If the "pic" movieclip has a box of the right size ratio inside it I have no problem unless I change the image, which I need to be able to do. If there is nothing inside the movieclip when I load it, the image always appears on its side, and I can't seem to get it rotate to the correct position!
i want to know how did the creator of otradesign accomplish the effect in his site like the menu and the main contents change size and the menu position according to the size of main contents.
If I published several separate SWF files from several FLA files (because they were too large to work in one FLA document) is there a way to play them automatically one after the other? I looked online and somebody suggested www.swfmergeI tried placing on the last frame of each FLA file the actionloadMovie but I don't know how to define it so that once one SWF file is done, the next one starts.I just open the SWF with explorer on windows so that I can view them full screen (they are for a slide presentation, architecture and I am showing a little bit of animation)
I have a template that have some buttons in the header. I add one button because my client needs one more section in the SWF. When the movie loads the behave of the intro is to load the first button running from flag fotogram "s1", but it's not working properly. The button get's stuck and it's not behaving like it should. When I rollOver or rollOut is not doing what it should do. Why is happening this? I'm loading another swf with loadMovie but it's _lockroot = true. I tried not loading that flash but the button is still not working fine.
I'm wondering whether it's possible to change the size of a flash application at runtime?
I know I can scale the SWF with HTML/JavaScript, but I'm not talking about scaling here. I want to change the actual size, not just enlarge it visually. Let's say my SWF is 400x300 pixels. At runtime, I want to change it to 500x400. All the elements inside the SWF (buttons or whatever) should remain the same size. It's the Stage itself that should change.
how to show variable from swf file with loadmovie?if main.swf loadmovie mc1.swf mc1.swf can sent variable in input text to main.swf?if it can how to show variable from mc1.swf in dynamic text in main.swf?
i mean..i dont want my user to maximize or minimize the file..like u ppl must have seen the softwares setups..their window file size cannot be changed.
I have a flash file with the stage size 800x600Now I change the stage size to 1024x768 but all the constant ( movie clip, images, buttons..) do not fit with the new stage size.
my next experiments consist on loading a movie/ or gotoframe on a hyperlink with html text that i load from a .txt file.i mean this such type of html code
Code: visit the site<a href="http://test.com" target="_self"><font color = "#FF9933"> for more info so basicly my intention is, to refer to a hyperlink but just go to a "frame" or load a movie. where you have in your FLA some more info about the site you are going to enter again, i am just experimenting with these things, it has no real purpose but it would be considered nice if it really could work.