ActionScript 2.0 :: LoadMovie Versus LoadMovieNum Preloader?

Sep 25, 2005

I've been using the snazzy preloader for a while now, but now I've come to a fork in the road, and it's forking got me baffled. The most annoying thing is I'm sure it's just a basic targetting problem.

The preloader works fine if the external .swf is loaded in by LoadMovieNum, but I tried placing it in on a lower layer in my main movie, hence the LoadMovie (into an empty MC container).

View 5 Replies


Similar Posts:


ActionScript 2.0 :: LoadMovie And LoadMovieNum

Jun 21, 2004

Hi,

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:



PHP Code:

var number_of_images = 9;
var speed = 5;
var alpha_standard = 50;
for (n=0; n<=5; n++) {
    eval("con"+n).movienum = Math.ceil(Math.random()*number_of_images);
    loadMovie("/images/portfolio/"+eval("con"+n).movienum+".swf", "con"+n);
    eval("con"+n)._y = 44;
    eval("con"+n)._alpha = alpha_standard;
    eval("con"+n).onRollOut = function() {
        this.rollover = false;
        trace(this.rollover);
    };
    eval("con"+n).onRollOver = function() {
        this.rollover = true;
        trace(this.rollover);
    };
    con1.onEnterFrame = function() {
        if (this.rollover == false) {
            /*
              -- alpha fading -- 
            */
            this.alpdiff = (this._alpha-alpha_standard);
            this.ualpdiff = this.alpdiff/speed;
            this._alpha -= this.ualpdiff;
            /*
               -- width fading --
            */
            this.normwidth = 76;
            this.newwidth = this.normwidth+((this.normwidth/100)*20);
            this.wdiff = (this._width-this.normwidth);
            this.uwdiff = this.wdiff/speed;
            this._width -= this.uwdiff;
            /*
               -- height Fading --
            */
            this.normheight = 62;
            this.newheight = this.normheight+((this.normheight/100)*20);
            this.hdiff = (this._height-this.normheight);
            this.uhdiff = this.hdiff/speed;
            this._height -= this.uhdiff;
        } else {
            /*
               -- alpha fading -- 
            */
            this.alpdiff = (100-this._alpha);
            this.ualpdiff = this.alpdiff/speed;
            this._alpha += this.ualpdiff;
            /*
               -- width fading --
            */
            this.normwidth = 76;
            this.newwidth = this.normwidth+((this.normwidth/100)*20);
            this.wdiff = (this.newwidth-this._width);
            this.uwdiff = this.wdiff/speed;
            this._width += this.uwdiff;
            /*
               -- height Fading --
            */
            this.normheight = 62;
            this.newheight = this.normheight+((this.normheight/100)*20);
            this.hdiff = (this.newheight-this._height);
            this.uhdiff = this.hdiff/speed;
            this._height += this.uhdiff;
        }
    };
}

con1._x = 50;
con2._x = 181;
con3._x = 312;
con4._x = 443;
con5._x = 574; 


Thanks in advance to anyone who replys

-Matt "Deviant" Lloyd

View 1 Replies

ActionScript 2.0 :: Loadmovienum() Works But Loadmovie() Does Not?

Jun 28, 2010

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!!

View 9 Replies

ActionScript 2.0 :: Difference Between LoadMovie And LoadMovieNum?

Oct 15, 2005

difference between loadMovie and loadMovieNum.

View 3 Replies

ActionScript 2.0 :: Success With LoadMovie And LoadMovieNum?

Mar 23, 2004

I've had great success with loadMovie and loadMovieNum, but occasionally I see something in the posts about attachMovie. Is there a difference between attach and load, or is one left over from a previous verion of Flash?

View 2 Replies

ActionScript 2.0 :: LoadMovie Vs LoadMovieNum For Restarting A Clip

Dec 18, 2011

when running an SWF some variables are being changed and objects created.If I wanted to restart the clip I have to restore all the variables to their starting values, clear all Intervals if any and destroy the objects created at runtime.If instead I load the clip into itself using [code]

1. what is the difference between loadMovie(swf_file_name, this) and loadMovieNum(swf_file_name, 0) in this context and which one is preferable?

2. Both obviously reset the values. But do these functions perform rubbish collection, i.e. free memory of the objects created at previous run-time, clear Intervals etc to prevent memory leak and processor clogging ?

View 0 Replies

ActionScript 2.0 :: Direct A Loadmovie To Start At Particular Frame When Use LoadMovieNum?

Oct 2, 2003

Is there any way to direct a loadmovie to start at a particular frame when you use loadMovieNum?

I have an introduction frame i'd like users to avoid. I loaded the movie into 0 level so that it could function with all the processing speed. alone. however when the user returns to the main movie i'd like them to skip intro and go to frame 15.[code]...

View 3 Replies

ActionScript 3.0 :: Preloader (multiple Swf) Versus External Video On The First Frame?

Dec 16, 2009

I have a preloader and 10 swf that needs to be cache. My problem was that when the preloader started, it was not only caching the swf, but a lot of .flv and a lot of the same player skin (flvplayback component). I don't need and don't want to preload or cache those .flv. They need to be load only when someone is on the page not before (in real time, not preload).

But the problem is that the videos (flv) are on the first frame of every swf cause I need the video to start when they enter the page. So when the preloader start, it starts to preload the videos too (since they are on the first frame).Is there a solution to change the behavior of the preloader or restrict what he can load ?Is there a better way to make my video start on enter frame without putting it on the first frame ? Something that would not be preload and cache but that would start when the user enter the page ?

View 1 Replies

LoadMovie And Preloader - CS3?

Jul 23, 2009

I am really stuck with a loadmovie action that I cannot find the solution to. I have a website that I had to split up as the loading time was too long. I have used a loadMovie function and it loads the external movie but the problem is that the external movie requiring a little bit of time to load I want a preloader to come first.

I have attached screenshots of this (wssmain liks to the arch_mc1) . The problem is that the movie loads but the preloader doesn't play. Anybody has any ideas why?

The first screenshot shows the wssmain whereas the second (preloader2) shows the arch_mc1. If the fla files are required I will make them available for download.

[Code]...

View 2 Replies

ActionScript 2.0 :: Preloader For LoadMovie?

Jun 4, 2011

First things first, please don't recommend I change to AS3 for this. I know, but It's far too late for that and not my project to be dictating..So I'm loading some external swfs in with the loadMovie command, in the normal manner with a button:

Code:
on (release) {
loadMovie("swfs/example-1.swf", _root.container);
}

But what I need, is to wedge a preloader in there somehow. As the swfs are around 1mb each.I'm already using the following as a preloader for the main file, so an adaptation of it would be very welcome so I can co-ordinate the graphics.With this on frame 1:

Code:
var amountLoaded:Number = _root.getBytesLoaded() / _root.getBytesTotal();
preloaderText.text = Math.round(amountLoaded * 100) + "%";
And this on frame 2:[code].....

View 1 Replies

ActionScript 2.0 :: FMX = Preloader Does Not Come Out On Loadmovie

Mar 3, 2003

When i load an swf, it does not show my preloader which is a movie clip. How can i fix this?

View 7 Replies

ActionScript 2.0 :: Preloader Not Working But LoadMovie Is?

Sep 19, 2009

I've got a strange problem with my new flash website. I've been able to code a preloader for loading in different .swfs into my main .swf file. This works fine locally and even when I simulate the download in Flash. But when I've uploaded it to my website the preloader no longer works. Basicly the swf file does load into the current swf but without the loading bar and percentage reading.

stop();
_root.homecontent.loadshowreel._xscale = 1;
_root.homecontent.onEnterFrame = function() {

[code]....

View 4 Replies

ActionScript 2.0 :: Loadmovie Preloader Is Not Working

Nov 15, 2009

i tried to load an image into my stage. with clicking a button so i put actionscript for the button as such :on (release)[code]but the loader is not working the % which has to count to 100 then show the picture doesnt work and the picture appears with out loading..

View 5 Replies

ActionScript 2.0 :: Make [MX] LoadMovie Preloader?

Apr 3, 2003

I posted this earlier yet it seems to have gone somewhere????!!I have a main movie which a number of other swf will load into.These are the actions on each of my menu buttons:

on (release) {
_root.contents.loadMovie("cv.swf");
}

[code].....

View 3 Replies

ActionScript 2.0 :: Preloader Using LoadMovie Kills Framerate?

Mar 1, 2005

I am building an intro for a website. When I publish the swf with html and upload it straight to the server, i get a great framerate (~30 fps). However, when I plug the intro into my preloader, the framerate drops, and the flash player automatically sets the first part of the intro to low quality. I am using a preloader that uses a loadMovie command rather than the traditional preloader on frame 1, content on frame 2.[URL](if your machine is really fast, the one with a preloader might not kick it down to low quality, but it does on my athlon 2000 machine)

View 3 Replies

ActionScript 2.0 :: Using LoadMovie To Load A Movie With A Preloader?

Apr 17, 2004

I am using loadMovie to load a movie that has a preloader, but the preloader will not work?

Code:
var total = _root.getBytesTotal();
var bytesLoaded = _root.getBytesLoaded();
var perc = (bytesLoaded/total)*100;

[Code].....

View 6 Replies

ActionScript 2.0 :: Loadmovie Won't Load Movie With Preloader?

Oct 23, 2002

My flash site is created similar to that of the one in Kirupa's full flash site tut. When I click the home button, the

_root.contents.loadMovie("welcome.swf");

action loads in the welcome section (to a blank movieclip). However, "welcome.swf" consists of two scenes - the contents, and a preloader. It was working fine BEFORE I added the preloader scene. Now, all I get is a quick glimpse of my preloader animation (for "welcome.swf"), then my intial movie (navbar) starts over agin.

CODE USED FOR PRELOADER SCENE (IN "WELCOME.SWF"):

1ST FRAME:

total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
if (loaded>=total) {

[Code].....

View 2 Replies

ActionScript 2.0 :: Preloader Using LoadMovie Kills Framerate

Mar 1, 2005

I am building an intro for a website. When I publish the swf with html and upload it straight to the server, i get a great framerate (~30 fps). However, when I plug the intro into my preloader, the framerate drops, and the flash player automatically sets the first part of the intro to low quality. I am using a preloader that uses a loadMovie command rather than the traditional preloader on frame 1, content on frame 2. Does anybody else know anything about the loadMovie command causing deplorable frame rates?url... (if your machine is really fast, the one with a preloader might not kick it down to low quality, but it does on my athlon 2000 machine)

View 3 Replies

ActionScript 2.0 :: LoadMovie - Make A Preloader Load Everything Up Front?

Nov 7, 2008

I have been working on a site of mine, and I wanted to make a 360 rotation view thing with some pictures (12 shots all from different angels around the same axis). I need to make a preloader load everything up front, so there wont be any legging.

My best guess was making a slide show kinda thing, with an rotation and zoom bar. And before the slide show, a frame that holds the preloader. But the preloader doesn't loads the right images. I load my images from an XML file, and then parse them into an array (something I got from here I believe). That parts seems to work all fine, but when I load the images using a "container.loadMovie(image[i]);" code, it isnt loading anything, except for an error :s

[Code]...

There are some loose ends (like the gotoAndPlay(3) things, but that is because I may wanted to add a thumbnail gallery in frame 3... )

View 3 Replies

ActionScript 2.0 :: Make A Preloader That Shows Percentage/bar For A Movie Loaded In With LoadMovie?

Jan 28, 2005

How can I make a preloader that shows percentage/bar for a movie loaded in with LoadMovie?I've tried using a normal preloader (the one from Kirupa) in the "to load" movie, but it doesn't work.Is there a way to have the preloader assess how big the movie to load is, how a bar etc. and have the movie hidden until 100% is loaded (as seen on the bar)?

View 2 Replies

LoadMovieNum Swf Keeps Looping

Apr 15, 2009

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.

View 3 Replies

Why Swf With Loadmovienum - Cannot Work In Ppt

May 20, 2009

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.

View 1 Replies

Professional :: LoadMovieNum In AS3?

Jul 5, 2010

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..

View 2 Replies

ActionScript 3.0 :: LoadMovieNum Not Working?

Aug 23, 2009

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?

View 1 Replies

ActionScript 3.0 :: LoadMovieNum() Equivalent?

Mar 1, 2012

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.

View 2 Replies

ActionScript 2.0 :: LoadMovieNum Not Working?

Apr 5, 2003

I have tried redoing this for the second time and I still can't get the LoadMovieNum script to work for me when any button is clicked.

View 4 Replies

ActionScript 2.0 :: LoadMovieNum(); To A New SCENE?

May 29, 2003

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?

View 5 Replies

ActionScript 3.0 :: Use LoadMovieNum() From AS2 Swf Contained Within It?

Sep 19, 2007

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.

View 5 Replies

ActionScript 2.0 :: LoadMovieNum From Different Levels?

May 19, 2008

MainMovie = level 0
Navbar = level 10
submovies = level 2

In MainMovie I load my navbar in level 10. Then from the navbar I load the submovies into level 2 (that way, the navigation is always on top)

My questions is, This works find locally, but when i upload the submovies won't appear when clicking the navbuttons.

I have tried relative paths, absolute paths, keeping it in the same folder, etc..

View 7 Replies

ActionScript 2.0 :: Flash 5 LoadMovieNum() ?

Feb 7, 2002

Something as simple as

on (release) {
loadMovieNum ("puppy.swf", 1);
}

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.

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved