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


Similar Posts:


ActionScript 2.0 :: Direct LoadMovie To Start At Particular Frame

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.
on (release) {
loadMovieNum("introd.swf", 0);
}
Is it possible?

View 3 Replies

ActionScript 2.0 :: Loadmovie Into A Container Specifying A Frame Label To Start

Jan 5, 2006

After i look in kirupa foruns(and others) i found lots of information about how to load a movie into a container, making that the movie starts in a specific frame label.

I have 2 movies, the fist one "main.swf" contains the "container", the 2nd "teste.swf" contain the frames labeled like "F1", "F2" "F3" "F4" and "F5".

View 2 Replies

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

Professional :: Start The Html Page With LoadMovieNum?

Aug 29, 2010

how do I tell an html page to open with a swf item on level 50, so that when I call another item into level 50, it REPLACES the original item. Right now, when I call another item, it just goes over the top and stuff shows. I'm using loadMovieNum, AS 2 Flash CS3

View 2 Replies

ActionScript 2.0 :: Start Button Needs To Start Timer And Move To Another Frame?

Apr 24, 2011

I'm trying to broaden my horizons with it and so I'm trying to do an update of a quiz program my employer has. Everything has worked well, except for the timer. The button that starts the game has two options, "study" or "exam"; if the study is selected, there is no countdown, just the score keeper. If the exam option is selected, the timer is show (counting up). But, press "Start" and while the quiz begins, the timer, in either case, does not.

I'm going to post the actionscript for the timer that was already there, as well as the start button. I'm hoping someone can explain how this timer is supposed to work and why it's not; and where the disconnect lies in pressing the start button and making it run.The timer is embedded in a movie clip, with two dynamic text boxes, that are for some have no instance name; and actionscript spread out over several frames.Frame 1:

Minutes = "00";
Seconds = "00";
Centiseconds = "00";

[code]....

View 8 Replies

ActionScript 2.0 :: Use The GotoAndPlay To Direct The The Main Timeline To Goto Frame 2

Sep 30, 2004

After the HitTest, How do I use the gotoAndPlay to direct the the main timeline to goto frame 2, and not frame 2 of _root.circle MC? with _parent?

I know this might be a simple question, but my brain hurts from the previous 'debugging'.....

both of these give me the same results.

onClipEvent (enterFrame) {
if (_root.circle.hitTest(_root.box1)) {
gotoAndPlay(2);
;

[Code].....

View 4 Replies

ActionScript 2.0 :: Direct That Movie To Go Back To Frame 299 Once It Is Finished Playing / Can Choose Different Button?

Nov 3, 2009

what happens is I have a movie that play out to a lets say frame 299 then 3 buttons will show up on the stage. now when I press button 1 it will start playing a movie starting on frame 300. How can I direct that movie to go back to frame 299 once it is finished playing so I can choose a different button?I know I can add another button at the final frame to do that but I'm not sure if I want to go that route.

View 1 Replies

ActionScript 2.0 :: Looping - Make The Movie Loop Direct To Frame Two And Miss The Preloader?

Apr 17, 2006

Have used the preloader at [URL] and it seems to work fine however after the last frame of the movie it appears to flick (quickly) back to the preloader info, note I want the movie to loop continually. Is there a way I can add something that will make the movie loop direct to frame two and miss the preloader?

View 1 Replies

ActionScript 3.0 :: Start Frame And End Frame For Keyframes

Oct 11, 2010

I'm having a problem looping through my timeline, I want to use JSFL to hit each keyframe, perform an action (in this case breakapart, but thats a different question on a different thread) and then go to the next keyframe.

[Code]...

JSFL has proven to be the utter bane of my existence. I'm still relatively new to AS in general and AS3 in specific, and this is my first foray into the world of JSFL. I need to learn how to create this tool for work, and I am the only person here with any experience in javascript, so I'm pretty much on my own.

View 3 Replies

Professional :: Start The Playhead On A Frame Other Than Frame 1?

Nov 29, 2010

So I made a ridiculously long Flash animation, but now I have to break down to certain parts. It's all made in one scene.
 
My question is can I start the playhead on a frame other than frame 1. Say frame 595, I've tried gotoAndPlay(595);, but to no avail. I've searched for a good 2 hours on this too. Is something so simple not possible in Flash?

View 1 Replies

ActionScript 2.0 :: Go To Specify Frame When Using LoadMovie?

Aug 25, 2005

i have a problem, i want to go to frame 10 on movie.swf when using loadmovie,?oadMovie("movie.swf","movie_mc");

View 2 Replies

ActionScript 2.0 :: Loadmovie And Gotoandplay A Frame?

Feb 23, 2009

I have a created a menu and the pages are on a seperate swf file which is to be loaded onto the top of.

firstly i used this code but it still only went to frame 1 of the laoded movie:

on (release) {
loadMovie("a2.swf", 1);
_level1.gotoAndStop(15);
}

then i found this code. But i cant get it to work correctly. does it go on frame one of the movie or on the button instance?

[Code]...

View 1 Replies

ActionScript 2.0 :: Loadmovie And Target A Frame

Jul 17, 2009

I want to load a movie and have it start on a specific frame within that movie instead of starting on frame one. The code I have now is this:

stop();
loadMovieNum("mc2.swf", 2);

I want it to start on the frame label in the movie called "in" instead of on frame one. How the hell do I do this, I looked everywhere

View 1 Replies

ActionScript 2.0 :: Loadmovie - Goto Last Frame?

Apr 28, 2004

I have run into a snag! I cant target a specific frame after loading swf file.I m creating a continuous slideshow with five separate swfs (movie01.swf , movie02.swf... etc) which load sequentially into one empty movieclip (named - mainMCholder) on the root timeline I control the loaded swfs with 2 buttons next and previous.These buttons simply move up or down a frame (nextFrame/prevFrame) .if I load movie02. swf into my empty movieclip and I m on frame 1 (of 10) and choose to back up to the end of movie01.swf (which would be frame 10 of movie01.swf),I end up on frame 1 of movie01.swf. Unsure why I cant move to last frame of a loaded movie?

//This is the code I've used
loadMovie( movie01.swf, "mainMCholder");
mainMCholder.gotoAndPlay("lastframe");

View 2 Replies

ActionScript 2.0 :: LoadMovie Jump To Frame?

Nov 5, 2004

I know there's been a million "how do I load a movie and than jump to a specific frame" thead. Well all of those have been helpful :: HOWEVER I wouldn't be posting because I can't seem to get my script to run successfully First the background I have a nav. menu made up of seprate movies clips :: inside each movie clip is four buttons :: these buttons are shown using a rollOver, rollOut dealy

anyway when you click on one of the buttons it calls "student.swf" to load into an empty MC called content.I've tried everything :: What happens is the button will load the MC but will sit on the first frame and do nothing :: the movie clip "student.swf" is not that big so I doubt I'm waiting for it to load.

[Code]...

View 5 Replies

ActionScript 2.0 :: Loadmovie And Current Frame / Label

Aug 22, 2009

I tried this code but doesnt work properly, anyone has a solution? i need to load different swfs in the same MC depending on the frame, i have placed the simple loadmovie code in each frame with the different swfs and it works but i would prefer to keep the code in 1 frame. This would be even better if using labels instead of frames.

[Code]..

View 3 Replies

ActionScript 2.0 :: Goto A Specific Frame Using LoadMovie()

Mar 13, 2004

Anyway, I'm using loadMovie() and then trying to go to a specific frame within it:

[Code]...

When I replace "currentFrame" with a number, say 10, it doesn't work either. This should be so simple but I just don't get it.

View 3 Replies

ActionScript 2.0 :: LoadMovie To Specific Frame Label?

Dec 14, 2004

I know. This topic has been addressed several times in various posts. And I've read and tried all of them, however nothing seems to work. I'm not sure if due to the circumstances...I'll explain.

I have made 2 files: main.swf and products.swf. A button in main.swf has the following code:

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

This works great, but what I really want to do is go to frame label "Range" in products.swf. A note of explanation: I'm not trying to load products.swf into a container movieclip, I want to replace main.swf with products.swf and go to Range label.

View 2 Replies

ActionScript 2.0 :: [FMX] LoadMovie Pass Frame Label Variable?

Sep 29, 2004

Basically this script works just fine and loads the appropriate movie. The transistion exit frame also works correctly. What I am trying to do is load the movie site_services.swf and jump to frame label "database" after the preloader. I was attempting to use _root.contents.FLabel = "database"; to set the variable.

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "site_services";

[Code]....

View 2 Replies

ActionScript 2.0 :: LoadMovie() Jump To Specific Frame (another Swf.file)

Jun 19, 2007

My problem is :

A.swf : 5 frame (ie, page1, page2, page3, page4, page5)
B.swf : 2 frame (ie, page6, page7)

When click on back button in the page6(B.swf), wish to jump back to page5(A.swf) instead of page1 as normally

Script using :

back_btn.onRelease = function() {
loadMovie("A.swf",0);
};

B.swf jump to A.swf, but go to frame 5 instead of frame 1 in A.swf.

What should i do for the script to achieve what i mentioned above?

View 5 Replies

ActionScript 2.0 :: Load A Specific Frame Within A Movie Using 'loadmovie'

Jan 21, 2004

is there a way with the loadmovie function that you can load a specific frame within the movie instead of starting at frame1?

what ive been using is:-

on (release) {
loadMovie("mymovie.swf", 1);
}

but this starts 'mymovie' at frame1, is there a way to get it to load the movie and start at frame 20?

View 1 Replies

ActionScript 2.0 :: [FMX2K4Pro] LoadMovie To Specific Frame Label?

Dec 14, 2004

Okay, I know. This topic has been addressed several times in various posts. And I've read and tried all of them, however nothing seems to work. I'm not sure if due to the ircumstances...I'll explain.I have made 2 files: main.swf and products.swf. A button in main.swf has the following code:

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

This works great, but what I really want to do is go to frame label "Range" in products.swf. A note of explanation: I'm not trying to load products.swf into a container movieclip, I want to replace main.swf with products.swf and go to Range label.

View 2 Replies

ActionScript 1/2 :: Loadmovie Swf Into Flash - Plays The Frame On The Root 46 To 59 Non-stop

Apr 30, 2011

I did a MC called "bgproducts" on the root frame no:46 to 59 then stop(); and in this MC, you have an animation and stop at frame no :64 then stop(); in the frame 64, i have another an empty MC called "productsMC". when i do this code in bgproduct frame no 64 : productsMC.loadMovie("main.swf", ""); it plays the frame on the root 46 to 59 non-stop and nothing to loadmovie, and also the main.swf has a preoloader then frame 2 an load from xml file.

View 2 Replies

ActionScript 2.0 :: Loadmovie Command - Resets The Loaded SWF Back To Frame 1

Nov 19, 2003

I have this movie [URL] its for a mates building company ok here is my problem (i will explain it to the best of my abilites) i have 3 buttons which each load 1 seperate SWF into an empty movie clip eg. servicesbutton loads services.swf into contentsMC that is fine that is working fine my problem occurs when the loaded movie button is clicked on again... it resets the loaded SWF back to frame 1... how can i make the loadmove command abit more cleverer? like dont load the movie if its already loaded?

View 5 Replies







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