ActionScript 2.0 :: External SWF Files - Movie Does N0t Go To The Next Scene?

Apr 5, 2006

I have each page broken out into scenes. Intro, Step1-19, and outro. Here is what i have in scene 2. Keep in mind the swf file i am calling was generated with Macromedia Captivate and i dont have a way of editing through flash that I am aware of. I need some time of code that tells scene 2 to go to scene 3 when the external swf file is done playing at 737 frames. Ok here is what i have: all on one frame

1. stop action

2. a label for navigation purposes

3. preloader action:

var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);[code]....

Problem 1. I am using actionscript to call the external swf file. I have a preloader that is working somewhat. It preloads the movie with a bar and when it reaches around 60%-70% it starts playing the movie too soon and the bar doesnt go away till it is full. So you see the movie playing with the bar still loading for a bried time.

Problem 2 (bigger problem that 1). After the movie plays it stops and doesnt go to the next scene because I had to put a stop action on the first frame for the preloader to work. So it plays the external file in the container but doesnt move on to the next frame or scene.

I had a friend try this approach and got an error: Make a MC that has an action script that says..

onClipEvent(enterFrame)
{
if (_root.step2_container._currentframe >= 737)[code]....

That sounds like logical but isnt working. The error I am getting is: **Error** Symbol=loader_helper, layer=Layer 1, frame=1:Line 1: Clip events are permitted only for movie clip instances

onClipEvent(enterFrame)

Total ActionScript Errors: 1 Reported Errors: 1

View 10 Replies


Similar Posts:


ActionScript 2.0 :: Have A Main Scene, Then Sitting In The Root Scene Have 2 Movie Clips.1)?

Dec 28, 2009

No..not that type of parenting ;DOK,I have a main scene, then sitting in the root scene I have 2 movie clips.1)centro2)fotoIn the first movie "centro" there is a menu btnI want this menu btn to call up mclarge + its frame (1) thats housed 3 levels inside the foto mc in root.

Main scene - (1) centro (banner which houses menu btn)
(2) foto_mc
- Main_boy_mc (<---works if menu btn houses in here)

[code].....

View 0 Replies

ActionScript 2.0 :: Make The Movie Jump From Scene 1 To Another Scene By Clicking On A Button?

Apr 17, 2004

I have a movie with 4 or 5 scenes. How can i make the movie jump from scene 1 to another scene by clicking on a button?

View 5 Replies

ActionScript 2.0 :: Load A Movie At A Particular Scene Rather Than It Launching Into The First Scene Automatically?

Mar 5, 2004

is at all possible to load a movie at a particular scene rather than it launching into the first scene automatically? Or is this impossible?

View 1 Replies

ActionScript 2.0 :: Loading External .txt Files Into Movie?

Oct 10, 2003

I can't seem to figure out how to load an external .txt file into my movie. I can get it to work onPress, but not for a frame script.

Anyone got a quick script to display an external .txt in a dynamic text box in flash?

View 1 Replies

ActionScript 2.0 :: Controlling Movie Through External Files?

Apr 30, 2005

im new to flash programming stuff. im was searching something for a project,ok basically i need something like this..:lets say there is and image file.. or php or asp file.. if someone tries to see this image over the browser, or file... under any condition, my flash movie, for ex. starts to play, so i think i need something like external data to control flash?

View 1 Replies

ActionScript 1/2 :: Preloader Scene With Main Movie Scene

May 7, 2009

I can get by and make nice flash sites, but I'm still learning what goes where and am still borrowing code to get by.I've laid the problem out in some detail as I am sure that will save a lot of questions later on, but feel free to ask if you want more info.Problem is as follows: I've built a two scene flash site using open source code for the preloader scene:[code]The main scrolling menu scene works great when it's a one scene movie and the preloader code works fine with a load of other sites I've built, but when I put them together on this site (the code for the scrolling menu precludes the addition of a preloader directly into that scene so separate scenes are a necessity) everything goes to pot.When testing the site (both as a standalone SWF file and when embedded in an HTML file) the preloader works fine and the main scene appears correctly, but when you click on any button to move back or forth along the menu/timeline it jumps and jerks along very roughly and stops short of its designated point.

This causes the whole scene to fail as the designated timeframe for each button contains a movie instance that won't function until the specific timeframe is reached.It's odd behavior and I'm stumped as both chunks of code work fine separately.I've even tried a much simpler preloader that doesn't display percentage or anything, it just cycles between frame one and two until the movie loads and then plays it (just like this one, but with no bells or whistles).Unfortunately my lack of actionscript knowledge prevents me from even finding a simple term to sum up the problem so I've failed to find any similar issues on any forums or Google.

View 3 Replies

ActionScript 2.0 :: Load External Swf Files In A Main Movie?

Sep 20, 2010

I am trying to load external swf files in a main movie.I have created 3 different movies. Main movie is named "Container". Another 2 movies are named "movie1.swf" and "movie2.swf".Main movie "Container" is having some navigation buttons and template sort of thing in it. On the lowest layer in main movie I have created an empty movie clip in which I am trying to load "movie1.swf".Now problem is when I load "movie1.swf" instead of loading the external movie in target mc, it clears all the contents in main movie.

View 3 Replies

ActionScript 2.0 :: Loading Multiple External Movie Files?

Nov 15, 2007

I have been working on this script that currently loads 2 external files into two separate areas inside my application. the 2nd file loaded is supposed to have several buttons that control the 1st movie clip. Like go to next frame, etc. My problem now is the 2nd file loaded, is not controlling the 1st anymore ( i had this all sitting in one file before).

So the action script to load the files is;

Code:
this.myBtn.onRelease = function() {
//load render 1 into viewer
this._parent.viewer.createEmptyMovieClip("clipHold", this.getNextHighestDepth());

[Code]....

View 1 Replies

ActionScript 2.0 :: Load A Movie Scene Per Scene?

Jan 8, 2005

how can i load a movie scene per scene.I dont want to load the hole movie at the beginning

View 1 Replies

ActionScript 2.0 :: Loading External Files Into A Container Movie Clip?

Aug 28, 2008

I have some buttons that load an external flash file into the container movie clip with this code:

[code]...

So it plays the tweening out animation of the file that's already loaded, then loads the new file, playing the tweening in animation. However, currently the container movie clip is empty when the flash movie is played. I want to be able to have some content already loaded in it, but when I use the container .loadMovie("start.swf") code, it just keeps loading start.swf into it when any of the other buttons are clicked. Is there a way I can have content load when the flash movie is started, but when any of the buttons are clicked, for it to tween out, and basically, never reappear?

View 2 Replies

ActionScript 3.0 :: Converting Navigation In Main Movie That Loads External Swf Files

Aug 19, 2009

I am diving in to learn AS3 and converting my site over to AS3. The majority of my code is for my navigation in my main movie that loads external swf files. Here is what I have and I don't know where to start to convert it. I know I need to do this in steps. So the audio is not important now or my other swf files.

[Code]...

View 10 Replies

ActionScript 2.0 :: Loading External Files Onto Movie Clip Derived Classes?

Oct 28, 2009

I'm attempting to use the movieClipLoader to load a file onto an instance of a class derived from movieclip. For some reason, this doesn't seem to work, because after it successfully loads, the array that contains these derived class instances suddenly become movie clips and lose all their derived variables (tracing them resutls in 'undefined').So I thought there must be another way. Perhaps there is a way to copy the image data from one movie clip to another, or someone suggested taking a snap shot of the first movie clip and then applying it to the second as a bitmap.

View 1 Replies

ActionScript 2.0 :: Buttons And Transitions - Load External Swf Files Into An Empty Movie Clip?

Jan 11, 2004

I have a problem with buttons and transitions.I have two buttons onstage (they're inside a movie clip) inside the movie, on the button one I have the following code:

on (release) {
if (_root.externaltwo._currentframe == 7) {
_root.externaltwo.gotoAndPlay(8);[code]....

I have similar code on button two and this does indeed make the buttons move into place as required. My problem is this, I need to load in external swf files into an empty movie clip on the main stage called container. These External SWF files have transitions and this is where my problem is. If I place a normal button on the stage it works but not if the button is inside a movie clip and has actions applied as above. The code next is what I have believe should also be placed on the button to make swf transition one load in.

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "externalone";[code].....

Obviously a similar code would be placed on button two so the transitions could take place.I am uploading my file so you can see exactly what I am talking about. Also in this file will be a folder containg a version that works but without the buttons moving up and down which is the effect I wish to have

View 4 Replies

ActionScript 2.0 :: Buttons And Transitions - Load In External Swf Files Into An Empty Movie Clip On The Main Stage Called Container

Jan 11, 2004

I have a problem with buttons and transitions and it is similar to a problem I had a couple of days ago that I posted and that was sorted out. I have two buttons onstage (they're inside a movie clip) inside the movie, on the button one I have the following

[Code]....

I have similar code on button two and this does indeed make the buttons move into place as required. My problem is this, I need to load in external swf files into an empty movie clip on the main stage called container. These External SWF files have transitions and this is where my problem is. If I place a normal button on the stage it works but not if the button is inside a movie clip and has actions applied as above. The code next is what I have believe should also be placed on the button to make swf transition one load in.

[Code]....

View 4 Replies

Merging .fla Files - Bring One Of Them Into The Other As A Scene

Jul 11, 2009

I have two .fla files. I would like to bring one of them into the other as a scene. I copy and paste frames into the new scene..... but there are a bunch of .wav files that don't come over with it. What is the proper way of merging two .fla files?

View 1 Replies

Flash :: Make A Button Navigate From Scene 1 To Scene 2 Without Displaying Both Scene Content In Scene2?

Jan 27, 2011

ive made a button in the scene 1 which i have managed to navigate to scene 2 but when i click the button it goes to scene 2 but displays everthing that is in scene 1 in scene 2, how can sort this out so upon the button click in scene 1 it goes to scene 2 and only display content in scene2.

[Code]...

View 1 Replies

ActionScript 1/2 :: Swf Files Will Not Stop Playing When I Go To Next Scene

Jun 11, 2009

I dynamically loaded swf files through loadmovie, into a main movie which has six scenes. I made a button to go from scene 1 to scene 2, and when I go to scene 2, the swf continues to play from scene 1. How can I stop the swf from playing before it goes go to the next scene. I need to stop the swf when it exits scene. What's the easiest way this can be done. I'm using Actionscript 2.0.

View 3 Replies

Playing FLV Files On The Timeline In Secondary Scene?

Nov 2, 2009

I'm currently working on a project where I mix animation sequences with short videos. My project also has two scenes and the FLV will be placed on the main time line of the second scene. The problem I am having is, if the movie is previewed from the first scene, or exported, the FLV on scene 2 won't load. the timeline on the playhead will just spin. I'm currently using "Load external video with playback component" as the method for importing the flv file.I have already worked with this video multiple times in other flash files and have never had a problem loading the video. Is there a limitation to FLV playback in multiple scene movies?

View 5 Replies

ActionScript 3.0 :: Possible To Load Large Files Behind The Scene?

Feb 13, 2010

Is it possible for in a website to start loading a file after it's loaded the initial setup, so that when the user clicks to see the larger file, it's already loaded, or at least part of it's started loading, all without totally stopping other basic rollover functions and so on that appear with the initial setup?

View 3 Replies

ActionScript 2.0 :: Passing Parameters - Swf Should Open A Particular Scene Called 'Scene 2' Rather Than Scene 1

Sep 13, 2004

Check out this code:

[CODE]...

everything here is fine. It opens finely. But... i want to pass parameters where if i click a button in html page My.swf should open a particular scene called 'Scene 2' rather than scene 1. i tried

[CODE]...

View 2 Replies

ActionScript 3.0 :: Protect Files (make External Then Unopenable Such As .lib Files)

Jul 19, 2011

I'm working on making a pretty chunky game engine for games I plan on making, but I was wondering if you make external AS files unopenable such as .lib files, so that if I give it to a friend that wants to use it, he/she cannot change my code. Is there anyway to make external AS files unopenable? Also, obfuscation isn't an option for this problem as it only stops the people who hack the finished product, not stopping people who have access to the actual files.

View 2 Replies

ActionScript 2.0 :: External Text Files Wont Load Into External Swf File?

May 28, 2007

Structure: There is 1 main file that loads external SWF files depending on what is clicked on.One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.I made that particular SWF on my mums computer running Flash MX 2004The flash file itself uses the Scrollbar component from MX.Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.

View 4 Replies

Flash :: Loading / Unloading External SWF Using Buttons From Loaded External Files

Feb 23, 2011

I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:

[Code]....

View 1 Replies

Going Directly To A Scene From An External Webpage?

Dec 6, 2005

I have a Flash website with an online shop. The shop part uses javascript and cgi in separate html pages. I want to insert a link to a URL from these web pages back to "scene 3.0 (home)" in my main .swf file. The .swf is embedded in an index.html file so a link to the URL [URL] starts the flash movie back from the start with the intro and everything. I want it to skip the intro (scenes 1.0 and 2.0) and go directly to the "scene 3.0 (home)" scene.

View 2 Replies

ActionScript 2.0 :: Loading An External Txt Into A Different Scene?

Aug 3, 2003

having a problem loading an external txt file into my movie from a different scene I have got the text file to load in with no problem on scean 1 but if I copy the code etc to scene 2 it does not work Okay this is what I have got on scenea. text field with the var: textbob. a blank movie clip that loads an external button with the following code appended to it

onClipEvent (enterFrame) {
if (_parent.message <> "") {
_parent.textbox = _parent.message;

[code].....

View 14 Replies

ActionScript 2.0 :: Display Random Files - Where To Store All These Movie Files

Nov 29, 2007

my question is to diplay random files , and i have given the code as

[Code]....

one more question is "where i need to store all these movie files. either in samefolder where the flash file is placed. or make it as a seperate folder and or in the flash file library". and one more thing is "how can i place these 20 files in a order like declaring the dimensions on the screen. do i need to put in a CSS.

View 1 Replies

ActionScript 2.0 :: Loading An External Movie Through An External Movie To The Main Movie?

Apr 30, 2003

I am creating a full site in flash. The main movie has an empty movie clip in the middle of the movie to load external movies as the user clicks on the links. Everything has worked good so far as the linking has only gone 1 level deep. However, when I created a new external movie, and had buttons on it for another external page, but yet to open in the main movie, I can't get anything to work. Example.... In the main movie, the user clicks on the archive link, and the external archive movie is loaded into the main movie. Now, on this archive movie, there is a button on it that links to a another movie (say text effects.swf). However, when they click this button for text effects, I can't get it to load into the main movie clip and replace the archive movie that was currenlty there.

View 14 Replies

ActionScript 3.0 :: Loading External Swf That Loads Other External Files?

Apr 24, 2010

Lets say I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any limitation or setting preventing external swfs loading other content?

View 2 Replies

ActionScript 3.0 :: Unload External Swf That Was Loaded In A Previous Scene?

Jul 1, 2009

i have designed a flash projector using as3 in which I have successfully loaded an external swf onto frame 2 of my first scene called "start". i want to include a Restart button in a later scene called "intro", which will unload the external swf as well as restart the entire presentation from frame 1 of my "start" scene. my problem is that I can't figure out how to tell my Restart btn, located in the "intro" scene, to look in the "start" scene to unload the external swf - i need to eliminate the "1120: Access of undefined property..." error when working in multiple scenes.

View 7 Replies







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