ActionScript 2.0 :: LoadMovieNum Does Not Work With Fixed Background
Feb 10, 2009
I have this problem with loading new movie on the same page with fixed background.Here is an example of what i want to do . I have two flash files main.swf and movie1.swf, and main.swf loads first when i open index page. On the button of this main.swf i have action
PHP Code:
loadMovieNum("movie1.swf", 0);
which should load new movie in the same window and everything works fine when i test SWF file but when i embed it in a HTM page with fixed background only first move main.swf loads fine as it should but when i click on the button in this main.swf to load new movie movie1.swf in the same page it will not load??? It starts to load and than just stops. I guess there could be something wrong with my CSS style but i have never been working with CSS as i am only beginner in web design. Could anyone help here please? Here is y CSS style.
PHP Code:
body {margin:0px; padding:0px; vertical-align:top; background:url(images/back.jpg) no-repeat top #2BA3F4;}
I have made a swf that loading another swf file,it works well alone. When i put it into a powerpoint file using shockwave flash object,it works only one time. When i close the ppt and reopen it, the swf cannot work.
I swear that this was working earlier but i must have changed something because now it isnt. I have a few clips that im trying to have load in the background without actually being visible upon initial load. To accomplish this i was going with something like this on the first frame of the main clip:
I SWEAR this same code was working just fine about 30 mins ago and now ive been playing with some other stuff and its not working anymore- the illustration clip just loads right over top of the main clip, basically ignoring my call for it to be invisible.
I'm building my first Flash website in a 1280x800 px resolution, fixed top-centered layout. I have a 1920x1080 px bitmap set as my background. I did it in 1920x1080 px size, because I want the browser to display it (the background) acording to the user's monitor resolution. The main content though buttons, images, animations, etc - are fixed (1280x800 px centered). So, how do I do this? I've been searching the web, but I only find instructions for liquid layout layouts and such, and I don't want liquid, just the background to adapt to the target monitor size.I use Flash CS5.5 (11.5.0)
Is it possible to have a single jpg (1024x768) scale up & down with the browser window (no matter the aspect ratio, stretched to 100% browser width/height), while keeping the foreground content (most likely added via loadMovie) in a fixed scale and centered on the screen? An example can be seen on the Second Story home page.
I'm trying to create a simple splash page for a site that has a scalable background animation, with a fixed size content animation that will stay centred for different sized browser windows or if the window is resized.[code]In general am I on the right track to achieve something similar to the example I posted? Is there a better method to use?
I am trying to emulate an effect like this site uses...
[URL]
and I've basically poached their script, a jQuery initiated 100% width and height background that loads into a couple of holding containers.
The thing I would like to do differently is fix the background in place so the content can scroll over it. How can I, say, write the flash movie to the BODY background or something like that? I'm not a javascript wiz and am not sure how I might do this.
I am seeking the answer form the brain trust at FK. I am making a quick flash movie.. which has an 'lcd screen' display.. that needs to have numbers/timer being displayed on it..
I have found a few of these LCD/CALCULATOR font types.. and thought I had one that would work.. but it does not. I need a fixed width font..(in hopes) so that when I animate it..
00:00 00:01 00:02 00:03 00:04...etc
will keeps it positioning! and NOT change 'alingment' when (say) a 0 becomes a 1. this shifts the whole textField. my questions are:
1.) is there a fixed width type font or other trick? (using the spacing or A/V parameter) to keep the characters in their positions? or will I need to break everything up and use individual text fields..and parse/split the numbers from the string?
I am using this code for fullscreen flash with horizontally centered content. The code I am using is working pretty well in Firefox (every once in a blue moon the background jpg won't load in firefox3) but my biggest issue is it pretty much never loads in IE. Does anyone see any problems with how I am handling this that it would be having issues in IE? Please let me know as this is pretty much driving me crazy
Anyway for some reason when i test scene the box comes up showing my flash fine but when i go and locate the .SWF in the folder that all my flash fla and swfs are then for some reason its only a graphic clip and movieclip animation that displays and the rest of the background is the background colour. I checked this by first changing it to black and preview. To which the background changed black and then did the same and changed the background colour to blue and the same thing happened, the background in the swf changed to blue aswell. I have no actionscript in the scene and the majority of the things are just art besides a graphic clip the movie clip animation.
I have a background image that I inserted into flash movie. How to make the background works as fluid page? As I reduce the size of the window, there are white borders on top and bottom. Attached is the FLA.
I'm a newbie at Flash...and have a main movie that I would like to load external movies into..for ease of modification of the different areas vice having one large swf.I'm using the loadMovieNum command to load the external swf's just fine. When I play the external swf's by themselves...they play once and stop. When they are loaded into the main movie...they loop.I've placed a "stop();" command at both the frame in the main movie...and also on the line directly after the loadMovideNum line.
how to loadMovieNum in AS3?..I know the migration that we should use the Loader type
var lala:Loader = new Loader(new URLRequest("home.swf"));stage.addChild(lala);
something like that?..But my question is if we do LoadMovieNum("home.swf",0); ""lvl 0 > Stage right""its like replace the previous stage with the new stage..whereas the 2 swf have the difference size..when i did with the Loader, thats load covered the previous SWF and the window size didnt resize automatically..
For the past 7 years I have been creating a presentation in CS3 using Flash and ActionScript2. I am using a new plug-in that requires me to use AS3. I basically have about 20 different flash files, and to link all the swf files together I used to use:
stop(); loadMovieNum("gtradial.swf", "1");
When I use this now I receive this error:
1180: Call to a possibly undefined method loadMovieNum.
what I need to add/change to make this work with AS3?
I'm setting up a multi-lesson game and using it also as an opportunity to make the switch from AS2 to AS3. It's been a bumpy road but I'm getting it but think I've hit a roadblock.Is there an equivalent to the "loadMovieNum()" parameter from AS2? I have been merrily building all the individual games assuming I'd just swap them in and out of the same level so they purge each other as we go.
i'm using the loadMovieNum(); to load external swf files into my main movie...is there any way that i could use that action and direct it to play a certain scene within the loaded movie...example... i have the main movie called main.swffrom main.swf i put a button and on the button i give the action:
on(release){ loadMovieNum("page.swf",2); }
this will load the new movie onto level two inside main.swf, right?is there anything i could ad to that to make it load the 3rd scene of page.swf... or would i have to tear the whole project up and seperate all the scenes as seperate external files?
Does anyone know if its possible to load a AS2 swf into a AS3 swf, and then have the AS2 swf load other AS2 swfs onto different levels (e.g. _level1, _level2, ect...). I'm trying to wrap an preexisting AS2 swf that manages the loading of several other AS3 swfs onto levels, with a AS3 swf.
Will not work in Mozilla, Opera 6.0, or any of the versions of Netscape. But fine and dandy in Explorer.Sometimes Netscape displays part of the swf movie, other times it doesn't show anything.My testing seems to result in that if I placed the swf file in level0 it does remove the movie that is there, but shows nothing.
Ok, first ill explain what im trying to do; Im trying to load .swf files with the names "1.swf,2.swf, etc..." which will be loaded in to container movieclips with the names con1,con2 -> con5. They are randomly generated and there is some code to do a nice roll over effect. The problem is that it loads the .swf clip fine, but the rollover effects dont get attatched. Is this because ive mis-understood how loadMovie(); works ? or are you supposed to use loadMovieNum to load in to a specific level and then work it from there. I have tried both solutions, and i either get the containers with the effect, or just the images without the effect. Here is the code i have so far:
I have a custom component that extends mx:TextArea,but when I try and apply backgroundAlpha= "0" it says The style 'backgroundAlpha' is only supported by type 'components.LabelEditor' with the theme(s) 'halo'.I don't see anywhere specifying that it is not using the Halo theme, unless it has decided to extend s:TextArea despite my not importing it.How can I make this component accept the style instructions or achieve a transparent background some other way?
I have a flash website that was made to a specific size that allowed me to have my main swf centered in the browser the whole time not needing a scrolling option. I used this code:
We need more length on the main file so that people have the option of scrolling down if need be. Adding in a footer that wasn't planned for (mainly the 800x600 crowd).
But when I do that, I can't use the 100% in the HTML code and I'm not able to have the loadMovieNum pop up video centered in the browser.
I am trying to load an external SWF into my main movie. The problem is only loadmovienum() seems to work and not other method works i have usedLoadmovie() Load Component loading using an object
I have done this many times before in other flash projects but I can't what's wrong this time . I have used the tween class for some animation and that's it. i even tried loading in the main movie even that doesn't seem to work. I don't want to use loadmovienum because then i am not able to define the placement for the SWF!!
I am working on one very big presentation which is made by around 240 different external .swf in AS2. Although I do not work with AS2, only with AS3 and I didn't make this presentation, I need to make changes to it. So every .swf have navigational buttons which are using this method: loadMovieNum ("example/example.swf", 0); to navigate between different movies.
Every swf has also a very annoying music, which I can control by putting a on/off sound button in every .swf, but when the user navigate to another .swf the music start again and the user have to push the on/off button again. Is there a way the player to remember the user choice in previous .swf, so not to have to make this choice every time he navigate between the .swfs?
Until now I control the sound like this: my_sound = new Sound(); my_sound.attachSound("mix1"); my_sound.start(0, 1000);
For some reason, the external movie I'm loading into level 5 in the first red line won't execute the action below it, to make the loaded movie play a clip on its main timeline (contentSlider) from frame 16. It just keeps going to the first frame of the movie and nothing else.
I have two movies. The first one has a button that, when clicked on, loads the second movie using loadMovieNum. I'm want to be able to jump to a specific frame (i.e. 177) in the second movie when I click the button in the first movie. I'm using the script below to load the second movie: But it don't really work.