Loading And Scaling Movies In A Layer
Our team has developed several movies that were designed to be loaded into a higher level of a main flash movie. These are all going to be external swf files. The problem is that through a communications goof some developed their movies at 800 X 600 and the others including the main movie are 760 X 540. When we use the code
Code: loadMovieNum("movieName.swf," 10);
the ones built at 800 X 600 run off the right and bottom edges. Is there any way to scale a movie that is being loaded into level without having to load it into a container movie clip? All of these external movies were created with code that breaks if we try that. Any help would be greatly appreciated. Thanks!
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Scaling External Movies Upon Loading
How to force an external movie to expand upon loading so as to 'Exactly Fit's the stage?
As explained in another thread, I'm loading 3 external movies: M1, M2 and M3 into levels 1 to 3 respectively, using a dummy movie (DM) as loader.
M1 dimensions are less than stage dimensions of other movies that all have same dimensions. When I used stage.Mode="exactFit" in frame1 of M1, it worked but following movies (M2 and M3) suffered. Setting that from Dreamweaver didn't help either.
Then tried expanding M1 via altering its _xscale and _yscale in frame1 (e.g setProperty(M1,_yscale,"132")) but that also affected M2 and M3 although being in different levels!
Not sure, but for some reason, setting _width and _height of M1 didn't work?
Any suggestions?
Cheers,
Loading Movies In Layer With Posisiton?
I need help on how i can position (x, y cordniates) loaded movies into the main timeline. I know i can do loadmovienum. But then what?
Any help is appreciated. Thanks
Loading Multiple Movies -- How To Layer Them?
Hello I have a very simple question that Im sure all you AS Guru's could answer in a second. I have a main_mc calling multiple movies including my nav-- I use this to pull in the seperate mc's into the main_mc
Code:
this.createEmptyMovieClip("clip", 1);
this.clip.loadMovie("player.swf");
this.createEmptyMovieClip("clip2", 2);
this.clip2.loadMovie("player.swf");
I use this on the nav to pull in different pages into the main_mc
Code:
on (release) {
unloadMovie(1);
loadMovie("home.swf",1);
}
My problem is that I everytime i use loadMovie -- it loads it above my nav which is being called into the main MC. Is there a way to assing order level of each mc. In other words use code to layer is mc one on top of the other. I appreciate any help you guys can provide thanks.
oz
Loading External Movies Into Layer 1 On Load
I have a movie that i load other movies into or onto. Main movie is layer 0 and all others are loaded on layer 1.
when layer 0 starts I want one of these external files to load automaticly on load up of layer one.
Any ideas how to do that?
To get an idea what im doing go to http://www.devilsarmada.com
thanks in advance
Trouble With Code For Re-scaling A Layer
I know that this is an AS3 forum, but I couldn't find a JSFL forum, and this is the closest.
I need to re-scale half of an entire layer because the client wants the objects a little bigger.
Below is what I wrote to achieve that, but some frames are twice the size they should be. They seem to occur at the end of a series of keyframes, but not always.
//simplifying variables
var doc = fl.getDocumentDOM();
var tmLn = doc.getTimeline();
var curLayer = tmLn.currentLayer;
var curFrame = tmLn.currentFrame;
var frmArray = tmLn.layers[curLayer].frames;
var n = frmArray.length - 40;
//lock all the other layers
tmLn.setLayerProperty('locked', true, 'others');
//code to run through the frames of the current layer and rescale
for (i = curFrame; i < n; i++) {
if (i==frmArray.startFrame) { //check to see if the frame is a keyframe. needed? correct?
doc.selectAll();
doc.setTransformationPoint({x:369, y:269.9}); //scale from the same point.
doc.scaleSelection(1.61, 1.61); //scale
TmLn.currentFrame = i + 1; //next frame
}
}
Thanks for helping.
Scaling Problem Using Masked Layer In Component Skin
Hi,
My artist is fond of making clips with a masked layer where the animation in the mask layer is larger than the mask.
I'm having problems using these effectively as component skins, because the component logic wants to scale the skin so that it is the same size as the component. To do this it's basically taking the height and width of the skin and scaling it so it matches the size of the component.
The problem with these masked clips is that the total height/width of the skin is apparently determined by that big masked layer, not the actual visible size of the mask. It seems weird because the actual symbol's height and width matches the visible size, not the size including the masked layer. But for whatever reason, the component logic uses that "hidden" size for its scaling, with the result that the skin shows up visibly smaller than I want it to be.
This may be hard to understand from the written description, so I've made a demo FLA. The hidden masked layer is roughly twice the width of the mask. When used as a progress bar skin, it only fills up about half of the progress bar track when bar is full. (Enter 10 in the text box for a full bar.)
(I posted this demo FLA on a different forum that allows file attachments, so you can grab it from there: Masking Skin Demo FLA)
Anyone know a way to work around this problem?
Scaling Movies For Export
hi there. how can i influence the size (in pix) while exporting a movie. what i want: opening the browser, typing a certain adress http://www.fffff.com and then a movie in a 200x200 pix sized seperate window should start. perhaps with a javascript openwindow()- function? would this help?
Scaling Flash Movies, Advice
Hi everyone,
I would like to have a flash movie scale only when a browser window is below a certain size, say 800x600. At all other times I'd like the flash movie to stay at 100%, in other words, to not scale if the window is big enough to display the entire movie at full size.
Another way to put it: I'd like to specify a minimum size for the browser window to have to be before the movie scales down in size.
Anyone have any ideas? The closest I've found is something like this but instead of scaling down, it adds scrollbars.
Many thanks
Duplicated Movies Layer Problem
I'm using the following code to duplicate a movie =
for (i=0;i<my_array.length;i++){
duplicatemovieclip ("myMovie", "myMovie"+i, i)
The original movie is on a layer which has a masked layer, I was of the belief that mask layers mask all movieclips on the masked layers. Hang on, doesn't sound like it makes too much sense: -
maskLayer - layer with mask (big rectangle)
mcLayer - layer with original movieclip (which gets duplicated)
Any ideas why the duplicated movieclips aren't being masked?
Cheers
Scale Swf Whithout Scaling Loaded Movies?
Hello.. How can I resize a flash movie without resizing the loaded movies that I have in it?
I mean.. I have a main scalable swf ("movie A"), that contanis another movie ("movie B") whith an specific size. I need to resize "Movie A" when I resize the browser window, and keep "movie B" same size.
I need to center "Movie B" automatically inside "Movie A" also...
Could anyone help me whith that?
Thanks in advance!
Scaling Specific Movies To Browser Window
Can anyone tell me or point me in the direction of a tutorial on how to get specific movie clips to fit to a certain point within the brower window or to stretch to the size of the screen without scaling the content inside?
I'd like learn how to get movie clips to enter onto the screen from all sides of the browser window no matter what size the view has the browser at.
I hope this make scense. Here are some examples of what i mean..
http://neovision.jp/#pageNum=1&mode=...&keyword=NEOS&
http://www.dopeawards.com/
http://www.pflock.com/
Thanks in advance
Scale Swf Whithout Scaling Loaded Movies?
Hello.. How can I resize a flash movie without resizing the loaded movies that I have in it?
I mean.. I have a main scalable swf ("movie A"), that contanis another movie ("movie B") whith an specific size. I need to resize "Movie A" when I resize the browser window, and keep "movie B" same size.
I need to center "Movie B" automatically inside "Movie A" also...
Could anyone help me whith that?
Thanks in advance!
Layer Problem When Load Movies Into Container...
Using Flash8;
Hello,
I searched the forums and did not find anything to help with this issue!
I am trying to create multiple MC's in a "containerMC", for my background, buttons and text. All of the MC's work and are visible, but two don't show up.
Here is my process:
I create a blank MC on the first scene on the first layer and drop it on stage, coordinates, (0,0), giving it an instance name of "contents".
Then using actionscript, I create EmptyMC's inside "contents" to hold everything else. Using this code:
//////////////MC's to hold additional content
var mc:MovieClip = _root.contents.createEmptyMovieClip("mc_name", _root.contents.getNextHighestDepth());
I have 6 differnent MC's I create this way within the "contents" MovieClip and 4 of the 6 show up, no problems with the layering or whatever, some are .jpg's loaded and some are textfields.
However, 2 of the 6 MC's don't show up at all. I'm not sure if the layers are bad? or what? Since I am using "_root.contents.getNextHighestDepth()" for each depth, I would think it would be ok?
The 2 which do not show up use the same exact code as the ones which do show up, just different variables and MC names.
I have attached my code here as a text file.
Does anyone have any suggestions or help?
Thanks, Dave.
Random Flash Movies Inside A Layer
here's the question, I've got 3 flashmovies that I want to be randomly loaded into a specific layer on my site everytime the page is loaded,
does anyone know how this is done..any help would be great
Playing External Movies One By One When I LoadMovie One Time In First Layer?
Hi alll,
I am a newbie here.
I have problem with loading external movies like this:
+ 2 of my external movies is quite big so if I wanna load two of mine (movie a + movie b) in first frame. After loaded, I wanna play the movie a the play the movie b in my time line. I(s is possible for me to do it?
Can someone help me?
Thanks alotz
Misa
Layered Flash Movies: Bottom Layer Not Working
I asked this on the "Client Side" board as a css z-layer question, but the more I think about it, I'm pretty sure this is a flash issue...
I have 2 movie clips on top of each other.
The top layer is a half-transparent colour.
The bottom layer is a button.
The mouse over works, BUT
1. The 'hand' icon which tells you it is a button does not appear.
2. You can't actually click the button.
It's like the top layer of flash is completely blocking the bottom layer. (Everything, except the mouse over)
I'm using safari3/ff2 on mac.
Any ideas would be greatly appreciated!!!
Playing External Movies One By One When I LoadMovie One Time In First Layer?
Hi alll,
I am a newbie here.
I have problem with loading external movies like this:
+ 2 of my external movies is quite big so if I wanna load two of mine (movie a + movie b) in first frame. After loaded, I wanna play the movie a the play the movie b in my time line. I(s is possible for me to do it?
Can someone help me?
Thanks alotz
Misa
Loading Movies Inside Other Movies In An Ext Movie Holder?
Here's one for you:
I've got my main movie that has a movie holder on it (entitled movieholder.) The buttons on the left control what goes in the movie holder. In one of the movies there is a list of songs that are actually buttons. These buttons call up another movie(with MP3s). How do I get the MP3 movies to go into "movieholder" when they are being called by a button inside 'movieholder'
I'm using MX
Hope that made a slight bit of sense!
Thanks for any help,
Graeme
Loading Movies Into Movies With Scroll Bars O_O
I have a site where I'm showcasing my talents (Obviously figuring scripting out won't be one of them) and I load movies into the central area by using simple commands, and it all works. Now I need to have of of those movie to scroll around, because I'm showcasing banners and have more than 400 pixels of height can fit.
I was thinking of using the same textField system that I used for my news section, but replacibng the textField part was a different thing for Movies.
There's got to be an easier way though. Can anyone help me?
Ummm... Loading Movies Inside Movies.... Help?
I posted a question about this a month or so ago, but now (I've had to work out problems on other sites in the meantime) I'm totally ready to figure this out!
I have a VERY large Flash Web site. So, it was suggested that I chop up the site into a few smaller movies. From there, I would set up a main page with a ["target"?] movie clip nested in it. Then, when a button has been pushed, the corresponding swf loads inside the movie clip. I think I can handle that... (although a nice tutorial would be great!)
The problem I'm having is... These swf's can be 'called' from each other, meaning the same buttons will be in each movie. However, the buttons will trigger different frames in each movie, depending on which movie you're already in. I'm betting this is confusing...
EXAMPLE: Every page has 4 buttons, "Who We Are", "Success Stories", "Portfolio", and "Contact". From the Home page you can push any of these buttons and it will go to the first frame of the corresponding movie and a quick, little animation displays as it takes you into the page. That's great. The problem is that, if you were in the "Who We Are" page and clicked "Contact" it should NOT go to Frame 1 of that movie... It should go to Frame 30, because there is a specific animation that connects "Who We Are" to "Contact" that is not the same as the connection animaton between "Home" to "Who We Are". So how do I get the code to be more specific?
HELP!
~Vik
http://www.explorecore.com/index3.html
Dynamically Loading Movies Into Movies With Variables
This might be a kinda tough one. I'll explain the best that I know how.
I want to load jpg images into a movie/button (movie clip with a button instance inside of it with another movie clip inside the button), but I need to do it dynamically.
I was thinking about naming all of the files the same but just change the numbering at the end. Then I can just use an i value to obtain the next file.
Code:
for(i=1;i<5;i++){
loadMovie("something"+i+".jpg","mv_btn_"+i)
}
so, basically I have 5 buttons with 5 images to import. The buttons already have the proper numbers on them, I just need to import the clips into the corresponding button.
Sound Linkage When Loading Movies Into Movies
I have an intro.swf file that is basically a movie with sound that is exported for actionscript but not exported in the first frame. I just stuck it in a movie on my timeline and it works great and the preloader works because it doesn't load the sound before the preloader. I use :
musicSound = new Sound();
musicSound.attachSound("music");
musicSound.start();
to play the sound in intro.swf.
However, now this intro.swf gets loaded into an index.swf and everything works fine and the sound plays as long as I have the sound included in BOTH the intro.swf and the index.swf and the sound is exported on the first frame in the index.swf. I was hoping I could remove the sound entirely from my index.swf since it already loads into the intro but so far I haven’t been able to figure out how without breaking the sound. Any advice or help would be greatly appreciated.
Frustrated With Loading Movies Inside Movies.
Ok here's my sight:
http://www.fantim.org/811/index2.html
This is my second attempt at making an all flash site. I got two questions.
1. Lets say I have three movies. Movie1.swf Movie2.swf and Movie3.swf
Movie1.swf has Movie2.swf loaded inside of it. Is there anyway to make Movie2.swf load Movie3.swf inside Movie1.swf ? Does that make sence?
2. Is there anyway to load only certian parts of a movie into another movie? For example:
I have this file http://www.fantim.org/fantimshow/movies/movies.swf (Don't mind the chopiness of it) As you can see it has excess stuff on the sides. Is there anyway to load this within another movie without showing this excess stuff?
Any help would be appreciated.
Thanks
Loading/unloading Movies In Loaded Movies :|
Yeah, I know that sounds confusing. Lemme explain:
- interface.swf it's my main movie;
- interface.swf load section1.swf in a specific container called containerMC (duh! );
- section1.swf load other movie, section1a.swf;
- I need a button in section1.swf that load section3.swf in the same main container (containerMC in interface.swf), unloading section1.swf and section1a.swf.
Well... I need some tips about the action of my 'overloaded' button
Sorry about my english
[]'s
Edu
Frustrated With Loading Movies Inside Movies.
Ok here's my sight:
http://www.fantim.org/811/index2.html
This is my second attempt at making an all flash site. I got two questions.
1. Lets say I have three movies. Movie1.swf Movie2.swf and Movie3.swf
Movie1.swf has Movie2.swf loaded inside of it. Is there anyway to make Movie2.swf load Movie3.swf inside Movie1.swf ? Does that make sence?
2. Is there anyway to load only certian parts of a movie into another movie? For example:
I have this file http://www.fantim.org/fantimshow/movies/movies.swf (Don't mind the chopiness of it) As you can see it has excess stuff on the sides. Is there anyway to load this within another movie without showing this excess stuff?
Any help would be appreciated.
Thanks
Scaling Jpg's After Loading
I have this image loader that I want to apply, to a forum with an upload feature. I do not want to set a limit to my users for a specific size, and therefore I need flash to resize for me and even with no distortion of the images.
Is it possible with some action script to let all images loaded scale to the size of the movieclip they are loaded into?
plese help!
kind regards
stb2
Loading And Scaling Swf Into A Fla
I have a problem, I want to load an external swf file into my fla, but my fla is 800*400, and the swf is 400*200, and I want the swf scale to 800 *400 like the fla, Can you help me please???
Loading Mpegs And Scaling To Fit
Hi,
Im trying to find out if it is possible to load an exteranal Mpeg, have it align centred and expand to scale proportionately to fit within this clip calling it.
Or even better scale to full screen of the monitor resolution.
Is this do-able???
Kind thanks for any guidance.
Cheers Cylon
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
Scaling Masking And Loading
OK heres the deal
I have menu that adjusts the scale of a movie clip with easing. I want this movie clip to be a mask for jpegs that i load externally. Once I make the movie clip a mask it no longer works. What can I do. The source is at
http://www.zephn.com/scaler.zip
Thanks
Andrew
Do Flash Movies Always Require The Top "layer" On HTML Pages?
I am working on creating a Flash file that will go on a page similar to:
http://www.kochind.com/about/default.asp
The Flash file will be in the main white area, just under the orange menu bar (with the drop down menus). However, the Flash file always takes the top layer, thus forcing the dropdowns in the background. Is there a way to fix this problem?
Thanks.
Michelle
Loading Swf Into Specific Layer?
how do i load an external flash movie into a specific layer in the main timeline?
right now i'm loading external swf through an empty mc into lavel 1 like this:
loadMovieNum ("flash/intro.swf", 1);
but i've got navigation on layers above the empty mc which are showing up underneath the loaded movie.
thanks in advance.
yjk
Loading Into A Specific Layer
can someone give me advice on how to load an external swf into a specific layer of a timeline?
my problem is that i have a mc which contains my submenu navigation which the user can reveal and hide ... but when i load a movie into _level1, a lot of the elements in that external swf are in front of the menu. of course loading it into _level0 just replaces the shell swf.
at this point, i am forcing the external movie to "hide itself" every time the menu is being revealed by the user and then to "reveal itself" again once the user puts the menu away ... but theres gotta be a better way ... click below to see current version...
thanks.
Loading A Mc On A Diferent Layer
hello, guys, i need to load an external mc into my main movie, and i need to load it into a bottom layer. My problem is that its always loaded into the top layer. Can anyone help me please?
thanx.
Loading A Imageloader Into A Particular Layer?
i have my site where im loading my external mc (portfolio) using buttons using the imageloader method
if u check http://www.xartwork.co.uk u'll know what im on about.
the problem is that i've made another button (the arrow on the right) so that when the mouse is over it, it shifts the buttons to the left to view more buttons.
it also shifts the portfolio (via imageloader) as well.
i just want to know is there a way just to load an external mc into a particualr layer in my flash file?
if ur baffled i will kindly elaborate more, but check the site then u'll know what im on about
x
Loading Layer Location
I'm loading a move into layer 99. Cna i set the layers display location on the screen. I don't want to make a movie clip and load it into tha because i don't have time to change my code. NAy ideas?
Loading URL Inside Layer
I'm curious how I can load an HTML page inside a layer similiar to how you would with frames.
on(release){
getURL("www.google.com", "mainFrame");
}
How can I do this inside a layer and keep everything else from loading on a new window?
thanks
marshall
Loading A Movie Into A Different Layer
This is dumb, and I should be able to get it, but I cant and Im running on sugar right now.
I have a movie with 8 layers. I am trying to click on a button in layer 2 and have it load into layer 1.
It should just be a simple
PHP Code:
on (release) {
loadMovieNum("test.swf", movie);
}
right?
Whats going on?
Loading URL Inside Layer
I'm curious how I can load an HTML page inside a layer similiar to how you would with frames.
on(release){
getURL("www.google.com", "mainFrame");
}
How can I do this inside a layer and keep everything else from loading on a new window?
thanks
marshall
Loading A Url Into A Div Layer From Flash
Hey all,
new to the forums.. looks like a great spot for info though!
was wondering if anyone knows how or has ever done this before?..
i have the swf file in a table.. i made the flash file transparent.. and stuck a div layer onto of the swf file... now the content inside of the div layer.. needs to change when the user presses a button inside of the flash file...
so pretty much... i need to load a url into the div layer from the flash file..
does that make sense?
THANKS FOR THE HELP!!
Loading Movies Within Movies Question
Hi,
I have 2 questions.
I'm making a flash website, about 20 pages, right now contained in one movie. Since the file is up to about 400 K , I'm wanting to break out some of the pages into separate movies, and then load them up with the loadmovie command when someone clicks on a link.
1) is IS possible to have a new movie load within a first movie right?? I want to have all of the navbars and stuff in the base movie, and then when you click on something, it loads up that pages' movie onto the base. this IS possible right??
2) what happens if I don't want to unload the loaded movies, and just keep them hidden and available in the base movie, so that if the user clicks on a link twice, it doesn't have to reload it, but just diaplays it? will the accumulation of movies slow down a user's computer or crash a browser?
As I said, the whole thing totals about 400K, and there is no rocket science scripting or anything, it's all pretty straight forward.
Any insight from you Flash wizards would be GREATLY appreciated!!
Mucho Garcia!
Z33man
Loading All Movies, Even Movies To Be Loaded
hi guys.. how do u do that?
see, i have a main movie and the other movies are called later on byu loadMovie, but they have their separate loading times. what if i want to load it all in one go?
can any1 help me?
Loading Movies On Top Of Loaded Movies
I'm trying to load a movie on top of a loaded movie. For Example:
I have an interface with 4 buttons on it. Each button loads an external swf above the buttons. The loaded movies fade in on top of the lower level. I want it so that when you click button 1, it loads "movie01" and then if you click button 2 it loads (fading in) "movie02" on top of "movie01". Instead, it unloads "movie01" first, then loads "movie 02". I want it to look like the movies fade in on top of each other no matter what order you press the buttons.
I have them all loading in at level 1, is that my problem?
Preloaders For Loading Movies Within Movies
I have a main movie and within that movie other movies are loaded, but it takes too long to load. Is it possible to preload a movie within a movie? An example is at www.henrycraig.net
thanks for any help
Henry Craig
hcraig4@hotmail.com
Loading Movies Inside Of Movies
Hey Guru's,
I am trying to figure out something with flash. I am working on making my site not so big by creating multiple movies of each page therefore making the movie smaller and loading in sections instead of loading the whole thing at once. I was wondering if you knew how to do this? Do I need to create a movie that lives on level0 and then load each movie inside of that when they click one of the topics on the page? How do I go about making that load in and then once they click to a differnt topic it loads another .swf? Can i make it so that the top bar stays or anything of that nature? I am just confused on how levels work and how to get it to work for me. Any advice or references I could possibly get would be appreciated!
Loading Movies, Real Movies
okay so i know Flash can load external JPGs, and external MP3s..but what about video? can it load like quicktime .mov??? what other video formats can flash AUTOmatically load?!
Loading Movies, Real Movies
okay so i know Flash can load external JPGs, and external MP3s..but what about video? can it load like quicktime .mov??? what other video formats can flash AUTOmatically load?!
Unloading And Loading Movies Within Movies
Hi, I've been using flash for a while, but never had a need for this function before. I'm trying to create a movie with an interface resembling a vintage radio.
I need to have a set of buttons, each loading a different movie (which will consist of only audio), and also unload the movie that previously was playing. The desired effect is to resemble switching channels on the radio.
Is this difficult to do?
|