ActionScript 2.0 :: Change Size Of Swf File After Loadmovie?
Jan 15, 2011I'm at a frame inside has a button. once i click it will load a swf file[code]...
View 1 RepliesI'm at a frame inside has a button. once i click it will load a swf file[code]...
View 1 RepliesNow 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. How can i do it?
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.
View 5 Repliesi 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?
View 1 RepliesI 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)
var tfNum_mc:MovieClip = tl.attachMovie("tfID","tfNum_mc_",tl.getNextHighestDepth());
If I'm to assign the above code to a dragDrop action. Is there a way to change the font size of tfNum_mc_.tf? I've tried;
tfNum_mc_.tf.size = 12;//did not work
var format1:TextFormat( = new TextFormat();
format1_fmt.size = 12;
tfNum_mc_.tf.setNewTextFormat(format1);//did not work
I am trying to change my radiobutton size and label size in pure as3...
searchRB = new RadioButton();
searchRB.name = "search";
searchRB.group = rbg;
[Code]....
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?
View 3 RepliesI 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):
ActionScript Code:
setProperty(_root.dimension_preview, _width, Number(_global.dimension_width));
setProperty(_root.dimension_preview, _height, Number(_global.dimension_height));
Now when I load an image into this it actually magnifies it by the amount the user entered, is there anyway to prevent it doing this?
If it is easier, I can upload the bits and pieces.
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?
View 3 RepliesWe 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?
knapp.onRelease = Function(); {
minRamme = this.createEmptyMovieClip("clip",0);
minRamme.loadMovie("ann kristin.swf");
[Code]....
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.
View 2 RepliesWhen 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?
View 9 RepliesWhen 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?
View 2 RepliesI 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.
View 5 RepliesSo I've been staring at my screen all day, my client getting increasingly irate trying to work out what's going on.
I'm on Flash CS3, AS 2.0
Here's my code:
Actionscript Code:
//set stage for FBFStage.align = "TL";Stage.scaleMode = "noScale";loadMovie("image.jpg", pic, 'GET');//define dynamic aspect ratiospicHeight = new Object ();picHeight = pic._height / pic._width;picWidth =
[Code].....
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.
View 5 RepliesIf 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)
View 5 RepliesI 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.
View 0 Repliesi want to open up a swf file using loadMovie. when i load the movie i would like to send it a number & tell it to gotoandstop at that key frame.
View 3 RepliesI'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?
View 2 RepliesI want to change frames instead of Size. How can I revise this?
s1.addEventListener(MouseEvent.CLICK,changeSize);
s2.addEventListener(MouseEvent.CLICK,changeSize);
s3.addEventListener(MouseEvent.CLICK, changeSize);
s4.addEventListener(MouseEvent.CLICK, changeSize);
[code]....
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.
View 1 RepliesI 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.
View 2 Repliesmy 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.