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


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

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 2.0 :: LoadMovie Half Works?

Jun 5, 2009

ive got a movie loading in an external one..and in flash its all good..but once i run it in browser it dosent work.. any suggestions as to why?this is the code on the fram that loads in movie, its followed by a gotoAndplay this frame again..

[AS]
if(!wooeee){
wooeee=true;

[code]....

View 1 Replies

ActionScript 2.0 :: LoadMovie Works In Player But Not In HTML?

May 7, 2008

I'm publishing to Flash 8 Player and even though I can load one movie into another within Flash, when I publish the HTML all I can see is the container SWF - the loaded SWF is invisible. I've tried this with more than one loader movie and the result is the same. Here's my HTML for Flash:

Code:
<script language="JavaScript" type="text/javascript">
<!--
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {

[Code]....

View 1 Replies

ActionScript 2.0 :: Replace Movies With LoadMovie Works 2 Times And Then Fails?

Jun 8, 2009

I have a menu which is a external Swf, It consists of 6 swf files.These menu's are loaded dynamically containing info from XML.When you click on of one the 6 buttons I want to use loadMovie to load'one of the swf files specified on the button' into a container called 'Scroller'.The idea is that it replaces the loaded swf with another one when you click another button.I gave everything instance names including the scroller.When i test the movie It does load when i click on button1.When i click on button 1 again, it even loads again.If I Click on button 2 (or 3,4,5,6) after i clicked on 1 it replaces the first swf.But after that nothing else works. When i click on one of the other buttonsthe trace doesn't even come up.

Code:
movieclip.button1.onRelease = function(){
trace("movieload");

[code].....

View 4 Replies

LoadMovie Works But Sounds Don't Play When New Movie Loaded In Next Level?

Jan 10, 2010

Im using loadMovie within a .swf on level 1 to load an external movie into level 2. But when this happens the sound function doesnt work. The 2nd movie being loaded has the newsound defined and everything within itself. It plays if i run that swf seperately or using ctrl+enter. Yet when the 1st movie calls the 2nd movie onto level 1 at runtime.The sound in the 2nd movie doesnt play. But its button sounds all seem to be working.

View 1 Replies

ActionScript 2.0 :: Loadmovie Works But Causes Whole Stage To Shift Left Of Screen?

Jan 11, 2011

I load my movie with loadmovie and when the swf plays on the frame, the whole website shifts to the left. My code is very simple

stop();
myMC.loadMovie("youtubeplayer.swf");
myMC2.loadMovie("hyper_youtube_version.swf");[code].....

When I load the myMC2.loadmovie Hyper_youtube_version.swf, the whole website shifts to the left. Plays fine but I cant figure out why its doing that. When I load a regular player....it works but but the new player I got hyper_youtube_version.swf is loaded, it doesnt seem to work.

View 0 Replies

ActionScript 2.0 :: Using Drag And Drop Works Until Content Added To Movie Clip Using Loadmovie

Apr 21, 2008

I have a blank movie clip on the stage with drag and drop capabilities and it works fine!!

That is, until i call the loadmovie() function and attach an image into the empty movie clip.

why the movie clip is no longer draggable when content is loaded into it?

Code:
function downloadImage(file:Object):Void {
var Pic = "./files/" + file;
loadMovie(Pic, "_root.imageLoader");

[Code]....

View 1 Replies

ActionScript 3.0 :: "loadmovie" Works In Flash But Not Website

Mar 8, 2009

I bought a website that uses a Templatesbox flash template. I am trying to get the page content to show, and this is acchieved by using the loadmovie command. However it works I do "test movie" in Flash CS4 but when I upload both swf files to my website it only displays index.swf, and does not load the page content, home.swf. I thought it was something like it could not find the file, but both are in the same folder and labeled the same. Is there a reason it would work in the flash editor, but not online?

The site is [URL]

View 1 Replies

ActionScript 3.0 :: Movie Clip ROLL_OVER Only Works Once But MOUSE_OUT Works Infinitely

Apr 11, 2011

I have a movie clip (with instance name rectangle_mc) on the stage. Within this movie clip there are two separation animations on the timeline. The ROLL_OVER animation starts on frame "over" and the MOUSE_OUT animation starts on frame "off." If I roll over the movie clip, the initial animation plays, and when I mouse out the other animation plays to restore it to it's initial state. However, once the rollover animation has played once, it will not play again when I roll over it again, but for some reason the MOUSE_OUT plays every time.

[Code]...

View 1 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

ActionScript 2.0 :: Center A LoadMovieNum Swf To The Browser?

Sep 23, 2009

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:

Code:
Stage.align = "TL";
Stage.scaleMode = "noScale";

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

View 0 Replies

ActionScript 2.0 :: LoadMovieNum - Navigating Between Different Movies

Oct 27, 2010

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);

View 1 Replies

ActionScript 2.0 :: Eval LoadMovieNum Is Not Working?

Aug 16, 2011

i'm new to flash programming. the code below is not working.[code]

View 3 Replies

ActionScript 2.0 :: [FMX] Action Following LoadMovieNum Won't Execute

Jul 20, 2005

This is my as:

[Code]...

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.

View 3 Replies

ActionScript 2.0 :: Combining LoadMovieNum And GotoAndPlay

Aug 12, 2005

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.

[Code]....

View 2 Replies







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