ActionScript 3.0 :: Linking External SWF To Main Timeline?

Feb 27, 2012

keyframe one - dialogue / conversation with characters ( then a button is triggered to call an external swf [placed at keyframe two] )keyframe two - the external swf game. i want to put a button that makes you go back to the main timeline once you're done with the game and proceed to keyframe three (that's the problem. i dont know how to declare and make that button work)keyframe three - dialogue / conversation again .

keyframeone [main timeline]

Code:
...
memory_t.addEventListener(MouseEvent.CLICK, recalltraining)
function recalltraining(e:MouseEvent):void{
gotoAndStop(2)

[code]....

View 0 Replies


Similar Posts:


ActionScript 2.0 :: Linking External Sfw File In Main Timeline Lebel?

Dec 28, 2005

I am using flashmx 2004. I am creating a presentation where the main (suppose "main.swf" )movie has seven "lebels" on the timeline. I am require to link to external swf files for each lebel which I can do by using the button script :

on (release) {
loadMovieNum("externalmovie1.swf", 0);
}

[code]........

View 1 Replies

Linking Back To The Main Timeline?

Aug 26, 2010

I recently started creating a flash website from a template that was created back in 2004. I have very little knowledge of either AS 2.0 or AS 3.0. I am currently attempting to link my buttons that are in separate movieclips back to specific parts of the main timeline "scene 1". Currently when clicked, the buttons just cycle through the varying pages that have been created, "s1" , "s2" etc.

How do I link a movieclip/button back to "s8" in the main timeline?The AS 2.0(I think it's AS 2.0 anyway) that currently exists is as follows:

PHP Code:

on (rollOver) {
gotoAndPlay(2);
}

[code]....

I understand what first rollOver and rollOut commands are and they work fine, but the "On (release)" doesn't seem to go where it needs to.

View 2 Replies

ActionScript 2.0 :: Linking From One MovieClip To Another On Main Timeline

Dec 21, 2009

I have been trying to figure this out for 3 days now. Here is the structure on the timeline:
movie clip (portbtn)
inside port btn (button)
I need (button) inside (portbtn) to link to a keyframe inside of another movie clip on the main timeline called portPage.

Here is the code I have been trying to get to work and it seems like it would:
Select allusa.onPress = function() {
_root.portPage.gotoAndStop(1);
gotoAndStop ("closed")
};

Now this is what everyone else tries and it doesn't seem to work. Also I want to note that I have tried to trace the movie clip "portPage" and it says undefined which from what I have read means that the button is working but it is just not getting the right directory. I have no clue what other directory to put in there since this one seems to be the right one.

View 7 Replies

Professional :: Linking From A Swf In A Scrollpane To Positions On The Main Timeline?

Jan 30, 2010

I have a scrollpane where I have loaded a swf of many small images that are set up as buttons.How do I create the link between this swf/actionscript to the main fla/timeline that the scrollpane is contained in?

View 1 Replies

IDE :: Linking Buttons - Return To Frame 1 On The Main Timeline?

Apr 27, 2009

im creating a character sheet and all i have to do is get the character to do a few things, im using Stan from american dad, so he draws his gun, salutes, and does this guns speech, only problem is. i can get him to salute by using the code

on(release){
gotoAndPlay("2");
}

this links fine, the salute is in a movieclip on frame 2 of the timeline, and the button is set to link to this.problem starts after the movieclip finishes playing, how to return to frame 1 on the main timeline, ive tried gotoAndStop("1") amongst other things (gotoAndStop ("Scene 1", 1)ive also tried frameLables too but that didnt work, though im not sure if i was doing that right to start with.Then im having a problem with my other buttons, even when set to on(release){gotoAndPlay("3");} they still go to frame 2 (with salute on)

View 2 Replies

ActionScript 3.0 :: Linking External SWFs To The Main Flash File Error 1120

May 16, 2011

I have made a menu bar and linked each separate swf file to the corresponding button. Upon testing my main movie, all the text on the main page is disappearing, the new swf file is not loading and the message 1120 error appears for all my buttons. I have checked the instance names and they match along with publish settings and folder settings. I cant understand why its not working

[Code].....

View 2 Replies

ActionScript 3.0 :: Edit Main Timeline From An External Swf?

Mar 2, 2009

I have been going crazy all weekend trying to figure this out. All I want to do is communicate with the main timeline from a loaded external swf. So, I have loaded a external swf called "test.swf" from the main swf called "basetest.swf"So, on basetest.swf I have this code, simply loading test.swf:

var request2:URLRequest = new URLRequest("test.swf");
var loader:Loader = new Loader()
loader.load(request2);

[code].....

View 4 Replies

ActionScript 2.0 :: External SWF - Controlling Main Timeline

Mar 21, 2009

I'm having a bit of time getting this to work.
Setup like this: Main mov:
Nav1 is clicked and loads in external swf. In the swf that was just loaded there is button to call another external swf on the main movie's timeline. I'm trying make a "lightbox" effect. Where you click on the external swf and the screen darkens and a swf is loaded on top of it. Above the loaded swf. Of course on a new layer.

PHP Code:
This is handling the swfs that get loaded in
EXTERNAL SWF LOADER
_root.page_mc.preloader_mc._visible = false;
_root.page_mc.preloaderText_txt._visible = false;
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
[Code] .....

View 9 Replies

ActionScript 3.0 :: Accessing Main Timeline From An External .swf

Apr 29, 2010

I'm definitely more designer than flash developer (as most of you might know. At least those that hang in the lounge or Arena). I need to know how to allow a loaded .swf file to control the main timeline in AS3.

I have a container .swf that includes global controls (jump menu/volume control) and branding. Loading a swf for the dialogue boxes (timeline animated ... although I realize there may be better ways to handle it). Another swf for a simcity-ish illustration that has animated elements with various states. I need all to be able to communicate with each other. I was able to load the movies no problem. Even communicate with the loaded ones from the main timeline. Just need to be able to go the other way.

View 2 Replies

ActionScript 2.0 :: External Swf To Control Main Timeline?

Feb 9, 2009

I apologise because I know this has been covered but none of the code I've found seems to have sorted my problem.On my main timeline (_level0 right?) I have the following code:

var loader:MovieClipLoader = new MovieClipLoader();
this.createEmptyMovieClip("container2",2);
container2._x=28

[code]......

View 9 Replies

ActionScript 2.0 :: Control External Swf From Main Timeline?

Oct 26, 2005

I have a external SWF loading into a target on my main swf. Is there a way to control the timeline from the loaded movie from the main timeline. So , control B timeline from A. I've tried mcholder.gotoAndPlay (2); but it won't work. Also, how can I get the mumbers of frames from the external swf into the main timeline. Will a global variable work?

View 1 Replies

ActionScript 2.0 :: Reference Main Timeline From External Swf

Dec 13, 2006

im trying to tell my main movie to goto a certain movieclip in the timeline from my loaded external swf heres the code Im working with,[code]I can tell the script is executing because the external movieclip unloads itself but the main movie does nothing.

View 1 Replies

ActionScript 3.0 :: Access Main Timeline From External Swf?

Jul 16, 2007

my main application is a sprite heres my code:

package {
import flash.display.Sprite;
import flash.display.Loader;
import flash.events.Event;

[code]...

when my main app is a MovieClip (extends MovieClip) is working.but my main app is a sprite i take this message cannot convert ROOT@16b26df1 to flash.display.MovieClip.can i change this line

MovieClip(this.parent.parent).traceMe();

to something like this Sprite(this.parent.parent).traceMe();

View 13 Replies

ActionScript 2.0 :: Call Main Swf From External Swf's Timeline?

Apr 17, 2008

I've got a movie with a few buttons in it. When you click on one of the buttons an external swf opens. At the same time a large, quare, white movieclip opens at the back of the external swf (the white mc is in the main movie). Okay, so for so good.
In the external swf there is a close button. When you click the button, the external swf goes to frame 14 to show a short closing animation. The last frame contains the following code:

TweenLite.to(_level0.contentback_mc,1,{_alpha:0});
this.unloadMovie();

The first line is to make shure the large white mc becomes transparent again. The second line is - ofcourse - to unload the external swf.

The problem is that the first line doens't work. When I trace the first line from the main movie, the output contains '_level0.contentback_mc;

Oh, and the external swf is loaded in an actionscript generation container (contentback_mc).

View 1 Replies

ActionScript 3.0 :: CS4 - Communication Between Loaded External Swf And Main Timeline?

Feb 4, 2010

I'm having issues with an animation and need to get it functioning properly. I've posted two example/demo files to illustrate desired functionality.The main timeline (testMain.swf) consists of a loader, section/slide one content, and a button (bttnClick) set to load an external swf (external.swf).

external.swf contains two additional sections/slides and two 'next' buttons (bttnEnter with 'bNextOne' & 'bNextTwo' instance names) to navigate. When the second 'next' button (bNextTwo) is clicked I need the loaded external swf to fade out revealing the original main timeline (testMain.swf) and returning/stopping playhead at the 'slideOne' frame label. Does the external swf need to be unloaded even though users will most likely go back to it? What�s the best way to handle this?

If you could assist with the external swf fadeout to main timeline, the return to 'slideOne' frame label, and insight as far as the best way to return to the external swf.

View 2 Replies

ActionScript 3.0 :: External Swf Button To Move Main Timeline?

Jan 20, 2011

i made a main(parent) page that loads an swf which has a button(a1) which on click i need it to move the timeline of the parent
 
i wrote this code to the external swf and tryed many commands such as Object(root).gotoAndStop(1);
 
a1.buttonMode = true;
a1.addEventListener (MouseEvent.MOUSE_UP,a1a);
function a1a(event:MouseEvent):void { 
}

View 3 Replies

ActionScript 3.0 :: How To Preload External SWF File Into Main Timeline

Mar 19, 2009

In trying to keep file size down for download time... I have a SWF file that I have placed using the "UILoader" component (not sure if this is the correct thing to do)... what I would like to work out is how to make a preloader within my main timeline for this SWF file when it comes in. I hope that makes sense - I am very new to all this and struggling with terminology etc. I figured Actionscript would be what I need - but no clue right now...

View 10 Replies

ActionScript 3.0 :: External SWF - Jumping To Frame Of Main Timeline

Aug 10, 2011

I have an external swf (is is an intro, nade in aftereffects)..and it loads in the main timeline of the site with a preloader. Everything is ok, but, when the intro in done plating. It stops and I want do see de site. I mean from the last frame of the external swf, I want to jump to the second frame of the main timeline.

Here is the script:
stop();
var req:URLRequest = new URLRequest("intro.swf");
var loader:Loader = new Loader();
function fileLoaded(event:Event):void{
addChild(loader);
[Code] .....

View 2 Replies

ActionScript 2.0 :: External SWFs Interfering With Main Timeline?

Feb 4, 2010

I have bought a gallery template that allows me to place content within external SWFs.I have a series of buttons within the SWF templates. The problem is that the buttons are interefering with the main timeline when hit. How would I fix this.

Currently they read:
on (release) {
_root.gotoAndStop(1);

[code]......

View 2 Replies

ActionScript 3.0 :: Getting An External Swf To Be Loaded On A Page In Main Timeline?

Sep 25, 2011

I'm about 10 hours deep into getting an external swf to be loaded on a page in my main timeline. I've gotten as far as loading the external swf (within the first few hours) hahah but now, have spent twice as long trying to get the external swf to be removed when a person navigates to a different page of my main timeline.

I have a videoplayer on one frame which is my "video" page. I've gotten the external swf to load two different ways, for example, the latest code i am using to load the external is below and seems so nice, clean and simple:

var request:URLRequest = new URLRequest("VideoPlaylist_HV.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
loader.x = 180
loader.y = 50

But I would like to add a function that says on any mouse click event (navigation) close the swf that is loaded.

If any of you genius people out there can help me, please do. I thought getting it to load was going to be the hard part but I was wrong. I am very discouraged by Actionscript in general.

download what i have so far, i left alot of the content out so the file size isn't big. And yes, i am sure once you see how I work you will be sure that I am no flash expert. I can send a link to the .flas, the site won't allow me to post the link as I am new.

View 5 Replies

ActionScript 2.0 :: Loading External SWF In Empty MC On Main Timeline

Jul 8, 2004

I'm loading an external swf into an empty mc called "emptyMC" on my main timeline. That loaded swf loads another swf into an empty mc called "view2" when a button is pressed. Code:
on (release) {
loadMovie("tabletennis.swf", "_root.emptyMC.view2");
}
The above code isn't working right. I'm not sure how to target each empty MC in sequence in order for this to work.

View 4 Replies

ActionScript 2.0 :: Flash MX : Can External MC's Control Main Timeline

Nov 2, 2005

can a movie clip which is loaded from an external source control the main timeline? For example I have a set of buttons contained within a movie clip which is loaded externally onto my main timeline...can those buttons direct the swf to a specific frame on the main timeline? Also...is there any way to load an external movie clip into a specific LAYER rather than Level?

View 2 Replies

ActionScript 2.0 :: Loading An Interactive External SWF Into Main Timeline?

Dec 22, 2009

I'm loading an interactive external SWF into my main timeline. The SWF is a game and when it's completed successfully it plays an animation on the _root timeline. I'm aware that the external SWF _root action is now referring to the the main timeline, but I'm not sure how to make it refer to it's own.

View 1 Replies

ActionScript 3.0 :: Call A Function Of External Swf From Main Timeline?

Apr 30, 2010

I have 2 buttons in my main movieclip, one called "projects by client" and the other "projects by category".I have an external projects.swf which has 2 functions CLIENTS_CLICK and CATEGORIES_CLICK. The code is in the first frame of the projects.fla actions layer and not in a class.

View 1 Replies

ActionScript 2.0 :: Go To Next Frame Of Main Time If Timeline Of External Swf Ends?

Aug 3, 2009

I have a button that when pressed goes to the next frame of a external swf file loaded into a movie clip. When the last frame of the external swf is reached, I want the button to go to the next frame of the main timeline (which in turn loads another external swf and the process repeats itself over again).

I assume I have to use an if/then statement, but what exactly is the if clause?

View 1 Replies

External And Internal Links - Move To A Frame Outside The Main Timeline

Jan 3, 2010

Not sure if I'm in the right place, I apologize in advance if so. I'm somewhat proficient with html, but fairly new to flash, using cs4pro, as3. Here's my dilemma. Converting an existing html/css site to flash. Flash is main site now but a few html pages are still linked, a buy page and a form page, a few others. I can get the all the external html pages to link to a frame in the flash movie, and I can get the flash to link with all external urls.

My problem comes when I move to a frame outside the main timeline. The movie is lets say 393 frames. All symbols/content are on seperate layers, and so is the action. Once the full movie ends, I have several frames past that where I have basically created frames for additional "pages" and created anchors for those frames, new layes for content, new layers for anchor (labeled) and new layers for a stop(); on each frame, I extended the pertinant graphic frames out to 410 from the original movie.

Now when the movies runs the buttons appear at about frame 115, so in the action layer I coded a keyframe and then added frames of it out to frame 410 or so: I have attached the .fla Now I'm lost here. When you navigate the site, from home lets say to an external link (button) like members, the html member page opens, and if you click home button, back to flash frame, and all works, all buttons, on the home frame 393. But if you go to any of the external htmls, and then go back to any other frame like frame 401 the about page, and all the rest 402 403, etc, the page appears properly, but then none of the links function. the site URL is [URL]there is a flash intro too, swf in question is actually at[URL]

View 2 Replies

ActionScript 3.0 :: Control Multiple External Swfs From Main Timeline?

Jun 26, 2011

I've been trying to combine the features of two tutorials I found, one that deals with controlling external swf's from the main timeline and the other that explains how to load and unload multiple external swf's. I'd like to be able to load and unload multiple external swf's, and control these swf's buttons from the main timeline

I asked this same question on the forum of the site where I found these tutorials, and receive only one reply saying that "it shouldn't be hard to do." but they did not elaborate any further. This left me think that I was missing something very obvious and I've spent too much time now trying to work what it is now. I understand pretty much how both pieces of code work, but just can't work out how to combine them.[code]...

View 16 Replies

ActionScript 3.0 :: External .swf Files With Preloaders In Them Conflicting With The Main Timeline?

Oct 25, 2009

The problem is that when I try to click on a button it gives me this error:TypeError: Error #1009: Cannot access a property or method of a null object reference.at dyson_fla::MainTimeline/progressHandler()(progressHandler is the function that calculates bytes loaded and does all the math for the preloader; this is part of the external .swf that are loaded onto the main timeline)Here's the code for the main .swf and after I'm adding the code for one of the external .swf that I'm trying to load.

import flash.display.*;
import gs.TweenLite;
import gs.easing.*

[code].....

View 0 Replies

ActionScript 3.0 :: External Swf Button Accessing A Mc Frame In The Main Timeline?

Feb 8, 2010

I've beein digging forums everywhere but cant find the solution to my problem...

I have an external swf "advert_3.swf" loading into the main index.swf.

advert_3.swf has two buttons: one needs to go to "services" frame the other to "events" within a content_mc which is in the index.swf.

that is in the index.swf:

ActionScript Code:
var request:URLRequest = new URLRequest("advert_3.swf");
var loader:Loader = new Loader();
loader.x = 35;

[Code].....

View 1 Replies







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