[MX04] Changing Original External Swf Size In The Main Movie?
I have an external swf that loads into my main movie using loadMovie. The original .swf that is being loaded is larger than what I'd like to appear in the main movie. Is it possible to tell the movie clip that the external is being loaded into, to reduce the size of the loaded .swf? --edit--
found it!
bug_mc._xscale=50 bug_mc._yscale=50
FlashKit > Flash Help > Flash Newbies
Posted on: 09-21-2006, 01:24 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Changing Original External Swf Size In The Main Movie?
I have an external swf that loads into my main movie using loadMovie. The original .swf that is being loaded is larger than what I'd like to appear in the main movie. Is it possible to tell the movie clip that the external is being loaded into, to reduce the size of the loaded .swf?
any input????
note:
I tried a
scaleContent = true;
but nothing happened.
[MX04] Preloaders For External Swfs Loading Into Main Movie
i have found a similar tutorial here
http://www.senocular.com/flash/tutor...animations.zip
i am trying to slowly change all info to match my symbols and instances but i dont know what the preloader_mc is, i cant find it in the library and i am not sure if is a variable or a function
function preloadContainer(){
var bytes_loaded = container_mc.getBytesLoaded();
var bytes_total = container_mc.getBytesTotal();
container_mc.stop();
container_mc._visible = false;
if (bytes_total > 0){
var percent_loaded = bytes_loaded/bytes_total;
preloader_mc.value = percent_loaded;
if (percent_loaded == 1){
container_mc.play();
container_mc._visible = true;
preloader_mc.removeMovieClip();
delete onEnterFrame;
}
}
}
Changing A Variables Value In An External .as Class From The Main Movie
hello, ive put this in another thread already after a different question but thought it might get ignored!
my first frame
Quote:
var picnumbers = 1;
butGo.onRelease = function()
{simpleSearch.doSearch(tag.text);
}
simpleSearch is a movie which the external class is linked to
my button which i wish to use to increment picnumbers and change the value in my external file
Quote:
on (release) {
picnumbers = picnumbers * 4;
myTextbox.text = picnumbers;
simpleSearch.doSearch(tag.text);
}
the first few lines of the external class file i am using, flashr.
i need NUM_RESULTS to be associated with picnumbers from the main movie somehow and im a bit stuck!!
Quote:
*/
class com.kelvinluck.flashr.example.FlashrSimpleSearch extends MovieClip
{
public static var NUM_RESULTS:Number = 10;
private var _flashr:Flashr;
private var _flashrResponse:FlashrResponse;
private var _numResults:Number;
private var _photos:Array;
Change Instance Without Changing Original Movie Clip?
I have a scrolling text box that loads text from a text file. The text box is a movie clip that I downloaded from this site. Actionscript identifies the text file to load into the text box. I want to use the same text box several times in the same movie, but have text from different text files loaded in each one. How do I do this? I have tried several things that haven't worked. Whenever I change the action script to identify a different text file, it changes the action script for every instance of the movie clip. Any help is appreciated.
[MX04] Size Changing Box Upon Button Click
Ok, here is my situation. I have a movie consisting of nine buttons and a white 'box' acting as a border that will change depending on what button the user clicks. The idea is when the user clicks on a button and opens a new page, the box will resize itself to the dimentions of this new 'page'. The catch is the movement will be different from say page A -> B and page A -> C as pages B and C will have different sizes. The only way I can think to do this would be to make a series of shape tweens for each movement, ie: A to B, A to C, A to D, etc then do B to A, B to C, B to D, etc and have the appropriate variable/goto command... however, seeing as I have 9 different buttons/pages, this just doesn't seem practical and I'm betting there is an easier way.
...did that make any sense, do you understand what I mean? Please, any help would be greatly appreciated.
How To Load A Movie At A Percentage Of Its Original Size?
Hi!
I'm trying to load a movie (screensaver.swf) into my main movie - but I ideally want to load it at a fraction of its original size (say around 20%) within the main page so it appears as a thumbnail image.
I know that to load it this will work:
loadMovieNum ("screensaver.swf", 1);
-but is there any way to load it and specify at what percent of its original size it should be loaded at?
Also, is there any way to specify co-ordinates it can be loaded at?
Cheers! - Tosca
Resizing A Flash Up To The Original Size Of The Movie.
I try to make movies small enough to fit on every concievable browser and screen. However, sometimes I need to make bigger movies and then put them scaleable in the browser window.
This of course works fine, i just make it 100% width and height. But how do i make it only fill out 100% when the screen is smaller than the flash movie? Because if you have a big screen and you browse fullscreen, the movie is going to be huge, the jpegs are going to be crappy and its going to be slooooow.
Just in case I'm not making myself clear I made this little demonstration for you, to illustrate what I mean.
How do I get the movie to stop getting bigger at the point where it has reached its original size?
http://home.no.net/praxiz/demonstration.html
Thank you.
- prax
Making A Loaded Movie Its Original Size In A Stretched Movie
lo all is it possable to make a loaded movie [via loadmovie()] display at its origan size in a stretched movie?
i tryed this:
Mheight = Stage.width;
Mwidth = Stage.height;
/// loads the movie into an empty movie clip
mainMovie.loadMovie("main.swf");
// moves the movie clip to the center and resises it to the original size
mainMovie._x = -0;
mainMovie._y = -0;
mainMovie._width = Mwidth;
mainMovie._height = Mheight;
but it doesnt load the movie for some reason! aggh! flash!!
any ideas how i can do this?
cheers guys
How To Keep An Internal Movie The Original Size When The Parent Movie Is Scaled?
What I am trying to do is to make my own scrollbar component. I have made them before but always have to custom build it. What I would like to do is to build a component.
The problem I can't seem to find an answer to is that when you stretch the component in author mode, the buttons (movies) stretch, I don't want them to stretch. Actually, don't care if they stretch in author mode, but what them the original size in runtime.
I have torn apart the original scrollbar, but can't see where it solves that problem..
anyone got an answer to this one?
Jim
How To Retain Original Document Size Of Nested Movie
Hi,
I've been trying to figure this out for the past day and I'm at my wits end.
My main swf file is 800x600 in size and I have imported a movie using "loadMovie" into a container movieclip. The imported movie's original size is 300x400 but when I import it into the main swf the movie's contents seem to extend past its original size.
For example, in the imported movie I have text and images that fly into the main document area from outside the document in the grey space. When I save the swf file as a 300x400 movie and load it into an html doc everything looks fine; you do not see the starting position of the text and images. However, when I load the movie into another swf file of a larger size and render the swf, the imported movie does not retain its original size of 300x400 and you see the starting positions of my text and images.
Is there a way to fix this problem. Am I making sense? I can post screenshots if it would help. Thanks!
Flash Player Doesn't Detecting The Original Size Of The Movie At Run Time
I've a movie that using flash UI Component scrollbar with a dynamic text area. I've rendered the text by including an external .as file. The content for the scroll bar is written in the .as file and that .as file included #include "myfile.as"
The problem is that I can't make a correct preloader for the movie. Because the flash player detects the size of the movie before the text is being rendered. The text is being rendered only in the run time from the external .as file. So again I've to wait a bit more time to load the content after loading the swf file.
I've converted the file to exe. But the problem still exists.
Anybody to help
abhilash
Flash Player Doesn't Detecting The Original Size Of The Movie At Run Time
I've a movie that using flash UI Component scrollbar with a dynamic text area. I've rendered the text by including an external .as file. The content for the scroll bar is written in the .as file and that .as file included #include "myfile.as"
The problem is that I can't make a correct preloader for the movie. Because the flash player detects the size of the movie before the text is being rendered. The text is being rendered only in the run time from the external .as file. So again I've to wait a bit more time to load the content after loading the swf file.
I've converted the file to exe. But the problem still exists.
Anybody to help
abhilash
[MX04] External Swf Loaded Into Main Swf But Not Working
Hi all,
I have use loadmovieclip to load an external swf into my main swf. but the external is not working after loaded into the main.. it is a guestbook that i found on the internet but i got the source files. the guestbook doesn't work BUT it DOES load into my main swf.
Do i have to change anything in the guestbook.swf in order for it to work? their values are all referenced by _root.xxxxxx = xxxxx.
Thanks in advance.
[MX04] Getting Size Of External Pic?
Hey
In a loop, I am creating a bunch of empty movieclips and loading jpegs into them. I want to line them up side by side, but the problem is, that some of the pictures is vertical and some horisontal... So I can't just give a specific number to _x the movieclips. Is there some way I can detect how wide my loaded pictures are, or what can I do?
- Rune
Change Movie Clip Size Without Changing Whole Swf Size?
ok this is kind of hard to phrase this question... but i have a movie clip and there is stuff in the movie clip i dont want to be seen... i thought about hidding it behind a white background but that doesnt work because it covers up other movie clips that i have.. so is there a way to set what can be seen in a movie clip
HitTest From Frame 1 Of Main Movie[mx04]
My fla is too big to upoad here, but can someone take a look
http://www.scaeriefaerietails.com/fla/L_Web.zip
What I was trying to do is to get the animation on 'bt', or 'b1'( they are stacked on top of each other) to gotoAndPlay "_over" when it hits the lower red dot(instance 'oneHT') and then gotoAndPlay "_out" when it hits the second higher red dot(instance 'twoHT'), and then do the same for each windmill blade as it passes the red dots during it's rotation.
When I attach script to the movieclip it works, but I'd like to just keep all the actionscript on the main timeline so I dont' forget where I put things. I think the problem is that I'm targeting them wrong, but I'm not sure.
Pleeeeaase help
[MX04] Droptarget Action Not Working When MC Imported To Main Movie
Excuse the repost but my last attempt to get some help with this seemed to fall on deaf ears...(hmm guess that phrase doesn't work with forum posts...blind eyes mebbeh?)
This time though I have attached the movie, so maybe this will encourage people to reply and be better able to see where I might be going wrong.
As you can see from the attachment, it's a simple drag and drop interface I am making with just at the moment coloured blocks to represent selections. You drag a coloured square and drop it into the black rectangle and this triggers the movement of the timeline. This all works as a standalone movie, however when I import the .swf into my main movie the drags work but the actions that shift the timeline (and also the MC visibility) stop working.
I surmise that this is due to the target paths I am using to assign the action are fine for the standalone movie, but when imported they are not pointing to the correct MC, thus not triggering. Anybody able to tell me how I should be writing my target syntax, if indeed this is the problem?
Many thanks for any kind replies and help along with any suggestions to optimize or better handle the swap depths too
[MX04] Issue: Buttons On Main Movie Are Still Active Beneath Loaded MC
Basically, I have a small interface (a large square for instance) with main and sub navigation contained in it. Using a loadMovieNum action on a button to "View More Photos", it loads a pop-up Image Viewer MC (that covers the entire large square) and presents a new mini interface and a "Close Window" button. Simple enough.
The problem is the buttons beneath the loaded MC are still active when I roll over the new interface.
Should I be using an empty MC instead? Is it an issue of transparancy?
[MX04] Changing Attributes Of Movie Clips In Other Frames
Hi there,
I have a problem in changing an attribute of a movie clip (in frame 1) using an on(release) command from a button in another frame(frame 2).
I have adapted an example in the attachment for this post. Notice the code on frame 2 button doesnt work.
Any help appreciated.
Thank You
Changing Movie Size
help!
Is there a way in Flash 4 if you have created a movie and afterwards need to change the size of the movie to do this without having to redo the hole thing again?????????? I really need some help on this one. Please if anyone can help.
Changing Movie Size
any one know a way of manipulating movie size by adding javascript or something to be in relation to the screen size eg screen.availHeight?
Changing Movie Size
I started a project at the default movie size and now want to change it. Is this possible? I know I can change it, but I need to scale everything up, not just the border of the movie.
Changing Movie Size
I changed my movie height from 440 to 420. I recentered everything, and republished. The HTML that it generates still has height=440. Why is it doing that? Its like it still remembers the old height...
Changing Movie Size
Ok so lets say your client wants to change the size of you're movie after the project is done and you have over 2700 frames in the movie. They want to take about 50 pixels off the top which would be great but it seems that Flash only changes size from the bottom up. For example you know in Photoshop how you can change canvas size but it gives you the option to crop from either side? So seeing that this is probably not an option that Flash offers does anyone have any ideas on how to movie my entire movie up 50 pixels so that I can change the size of my movie without cropping anything out? I tried grabbing the whole timeline but that doesn't work either, unless I'm doing it wrong. Any help would save me I'm assuming 3 days of wasted time.
Changing Movie Size?
Hi,
I have a Flash movie with several layers and several elements. My client asked if I could make the movie smaller in dimension. I said sure, however, I found that I have to move every keyframe of every element on every layer in order to fit the new specifications. Pure tedium. I've tried marqueeing around all the frames and using the arrow tool to move them, but there's always stray frames leftover. In addition, I tried selecting multiple frames via Edit Multiple Frames button and moving them with arrow keys on the keyboard. Still, there's always elements that are left behind. This seems like it should be a relatively simple task, shouldn't it? I just want to move several elements higher up the page so I can reduce the movie size. Any suggestions will be greatly appreciated.
Thanks,
Dan
How To Get Original SWF Size?
OK. So I have some flash files that I need put on my site but I downloaded them without knowing the actual dimensions of the flash file...
Anyway I can just do auto-size or something? I'm using SWF Object.
Thanks,
Pants.
[MX]Host Movie Changing Size Of Loaded Movie
I have got 3 different size movies one of which will be loaded into a main movie dependant on the result of a browser setting query executed by: System.capabilities.screenResolutionX;.
The problem I am having is getting the movies loaded into the host movie to retain their original dimensions. Although I have set the “Dimensions” setting to “Match Movie” in the movie to be loaded, it always scales up to the size of the stage in the host movie?
I had thought about loading the movie into a clip & then scaling that, but the partial example in a reference book that i'm using, although not explaining the whole process, does load a swf into a host movie not a clip.
Changing The Size Of A Movie Clip
i want to be able to place a movie clip instance on the main timeline and instead of using motion tweening be able to change the size of the movieclip slowly as if motion tweening.
so far have figured out this withe a movieclip 35px x 35px if :
onClipEvnet (enterFrame) {
SetProperty ("_root.ballMC, _xscale, "500);
SetProperty ("_root.ballMC, _yscale, "500);
changes the size of the mc but this changes the size almost immediately - is there a way of doing this slowly as in changing the x poistion of the movie clip
onClipEvnet (enterFrame) {
if (this._x <400) {
this._x += 10;
}
}
in this script if you change '10' to a different number it changes the speed of the motion
i want to create a wintry scene and zoom out from it ie. make all the elements of the scene fade into the distance but do this slowly and beleive that using actionscripting would help keep the file size low.
any ideas on this???
much appreciated
Changing Movie Size Dynamically?
hi,
please help. i would like to know if its possible to dynamically change a movie size from a start HTML page. for example, if i want my movie to be completely seen on a 15" and a 19" monitor. i place 2 buttons on my HTML start page saying if you click here, you will get the 15" monitor version of my flashsite. if you click here you will get the 19" monitor version. and i only have one flashsite version which i want to dynamically change the size of from the HTML page. possible? not possible? if its not possible, then i have to make 2 version of my movie to fit 2 screen sizes...yuck!
thanks in advance!
kat
Changing Size Of Load Movie
when u load a movie using target is there a way to size the movie being loaded and is there also a neat trick to using masks with the load movie... i can't seem to get any of these to work.
thnx
Changing Movie Size In Browser.
Is there any way to dynamically modify (through Flash) the size of the window it is encased in? i.e. modify it's height using the browser.
Changing Movie Clip Size
I have a simple script that does not work:
ActionScript Code:
on (press) {_root.map._xscale+10;}
but this script works
ActionScript Code:
on (press) {_root.map._xscale++;}
how can I get the first script to work and increase the size of the map (MC)
?
Changing The Size Of A Movie Clip
Alright, I'm very new to Flash and Actionscript, so I need a little help. I am making a sliding menu bar, I have used this tutorial which has helped me a lot (http://www.kirupa.com/developer/mx2004/menu_with_slider.htm). However, I need one more fix to it. Here is my problem, my buttons above the slider are different sizes, how do I make the slider change to the size of the button when the visitor rolls over that button? My actionscript is the same as what is given in the tutorial (except for the different names for buttons). Thanks for your help!
Changing Movie Clip Size
i am using loadMovie to load a jpg file into a movie clip. is there any way i can resize the jpg once it has been loaded, to stretch to the size of the movie clip it is being placed in?
any help would be greatly appreciated.
gkc
Changing Movieclip Colors Back To Original
Im trying to set some movieclips back to their origianl - multicoloured state - does anyone know a way? I.e. I can use the "setRGB" command, but this tints the movieclip to a new color, is there a way of removing this in actionscript or anything? help!
Changing Original Html Page From Flash Pop-up
hey people,
im working on a website where there's a link to a flash pop-up. from the flash pop-up there's a link thats tells the html page that had the link to the flash pop-up to go to another page.
i've been using getURL("page.html","originalWindow"); which i know is correct. the problem is that i dont know how to name the browser window so i can reference it from flash.
is there a way to name a browser window (that isn't a pop up window) so that the url can be changed in flash. The html page i want to name is the index page of the whole site.
any help would be greatly appreciated.
erase
Original Window Size
I've made a Flash movie that is a specific size, lets say 300 x 500. When i view it as a Flash movie, it opens to the appropriate size, however when I publish it to the web, it opens in a full size browser. Can I control this? If so, how can I get a browser to open to the specific size of my flash movie?
Thanks
Original Size Of Picture
Is it possible to get "original size of a picture" in flash?
I am making a program where you can zoom and move picture. When picture is loaded, it is scaled down.
Prog works pretty well, but when you move picture maxright and zoom out the picture does move too far left and background becomes visible.
Moving is "smooth" and differences in picture scale and location is tracked all the time.
If I try to calculate correct size via xwidth and xscale, it doesnt work - oh well, it does, but too late. This sucks. I really dont want to give every pics width and height in pixels.
If I would know what is the original size of picture in pixels (scale ratio 100) I would have the information to prevent the pictures movement out of the area.
I suppose that if I make "fixed" +zoom and -zoom buttons the problem could be solved...
Changing Stage Size Midway Through Movie
Hi
I have downloaded a Flash movie from a library which I want to use as part of a larger movie. The downloaded Flash movie is 300 pixels square, while the movie I want to use it in will be 765 x 100 pixels. The downloaded movie has a number of layers and is around 100 frames in length.
Is there a way of selecting all the elements on the stage and then a) reducing them all in size, which would be 33 percent of original size and b) moving them so they are centered on the stage?
Or am I better working on a larger stage (would have to be 2295 x 300 pixels) and then publishing at 33 per cent of actual size? Does one way have a benefit over the other in terms of finished file size? If I do it this way, I'm still going to have to move all the elements across the stage as a group (if this is possible).
Many thanks for any help.
Changing The Size Of A Single Movie As It Plays
I don't know if this is new in Flash CS3 or not, but I just started noticing it - web pages that are flash from top to bottom. No matter where you right-click the pop-up menu tells you it is Flash. And the whole thing resizes along with the browser's window. How does one do this? And then to baffle my mind even further, there is a site where the movie changes size - causing the browser scrollbar to increase or decrease. I thought that you had to define the movie's size and that was what it was going to be from beginning to end. So if you click on a button, the text may be twice as long - going off the bottom of the page.
I have nothing at all to do with this site, I think it was presented in Adobe's Flash newsletter. But notice - it's all Flash!! and if you click on a side button the browser scrollbar changes (the movie changes size).
http://www.jamesmartinchef.co.uk/pc.asp?xpath=&xpathid=&lang=eng
Someone please give me a clue as to how to do this!
Back To Original Screen Size
Next action set the screen full.
fscommand("fullscreen", true);
Then, after setting the screeen full by the above action,
How can I make the screen back to original size?
Thanks in Advance
|