ActionScript 3.0 :: Load Frame In Main Scene From A Button In Child Movieclip?

Sep 11, 2010

I wanted to create a portfolio in flash, so I designed the layout in photoshop, with different webpages in different groups. So groups i created: home, about, porfolio, contact, affiliates, topbar, menu.I use Creative Suite 3 or CS3I then imported the groups into flash as movieclips, using the import to stage function. here is the image of the main scene in the flash. (SEE IMAGE 1st thumbnail)I created a new layer on top of all the layers and used labels at equal intervals to differentiate between pages.here's the image depicting the same.(SEE IMAGE 2nd thumbnail)Now in the home movie clip, i made all the text layers as movie clips to make button animations and assigned sounds and actions to them i.e. rollver, rollout andclick events. here's the swf.(PM ME FOR SWF)I want to know the code or method to load the frame labelled ''about'' in the main scene when i click on the movieclip button 'about' which is in the movieclip 'home'. Here's the code i tried for the first 'about' button, but it returns error "1120: Access of undefined property event."

code:
ActionScript Code:
var OverSound:roll_over = new roll_over();

[code].....

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Get A Button Inside A Movieclip Link To A Frame In Another Movieclip On The Scene?

Feb 16, 2010

How can I get a button inside a movieclip link to a frame in another movieclip on the scene? I tried this code:

function gotoCenter(event:MouseEvent):void {
MovieClip(root).centermc.gotoAndPlay(2);
}
skruetest.addEventListener(MouseEvent.CLICK, gotoCenter);

..where "skruetest" is the button, "centermc" is the movieclip where I want to go to frame 2. I don�t get errors with this code, but nothing happens when I click the button. What can I do?

View 4 Replies

ActionScript 2.0 :: Preloader - Load A Movie Clip After Pressing A Specific Button In The Main Scene

Jan 2, 2005

I wrote this AS for my preloader which schould be able to load a movie clip after pressing a specif button in the main sceene:

[Code]....

1) The problem is that to be able to target a movieclip I will need to give it a instance name. Where can i find this function in MX ?

2) I cannot understant how I schoul put a loadBar being a small movieclip on the main timeline, I think( the same timeline the container clip is at ) or maybe not ? well I am bit confused now..

Well I have done already a sceene preloader for my site and it works perfectly and i did not experience any problems as Im having now with this new kind of preloader.

View 2 Replies

ActionScript 2.0 :: Movieclip In Frame 1 Scene 1 To Finish Before Skipping To Frame 2 Scene 1

Dec 24, 2003

I want the movieclip in Frame 1 Scene 1 to finish before skipping to Frame 2 Scene 1 im using gotoAndStop("Scene 1", 2); at the end of the MC

View 1 Replies

Professional :: Creating Button On Main Timeline To Go To Frame In MovieClip

Feb 5, 2010

In AS2 I need code for a button, on the main timeline, to go to a frame in a mc off the main time line. I have attached a picture of the time lines in case I have not articulated my needs well.

View 5 Replies

ActionScript 3.0 :: Error #2109: Frame Label <BUTTON INSTANCE NAME> Not Found In Scene <SCENE NAME>.

Sep 2, 2011

I'm getting this error in the OUTPUT window, when I PREVIEW (COMMAND + RETURN) my SWF:
  
ArgumentError: Error #2109: Frame label nGallery_btn not found in scene Scene 1.
at flash.display::MovieClip/gotoAndStop()
at BrookBrovazMusic004_fla::MainTimeline/pageSelect()
 
- The funny thing is that the SWF works the way I want it to. You can view it here:  http://brookbrovaz.com
  
- I just don't like the idea that something's wrong, according to the OUTPUT window anyway.

[Code]...

View 3 Replies

ActionScript 3.0 :: Code The Button Inside The Movieclip To GotoAndPlay To Frame 1 On The Main Timeline?

May 11, 2011

ive made a simple game for a uni project, when you get game over a movieclip comes up and inside the movie clip there is a button to restart the game. how to i code the button inside the movieclip to gotoAndPlay to frame 1 on the main timeline?

[Code]...

View 4 Replies

ActionScript 3.0 :: Load Swf From A Child MovieClip Button Into A Holder On Parent Stage

Apr 10, 2011

I am trying to load a swf into a holder movie clip from the child movieclip.It's parent has a holder that i want to load a swf into.I am navigating from within a child clip.It would be nice to have the swfs load from an external xml file but it isn't mandatory.

View 3 Replies

ActionScript 3.0 :: GotoAndPlay Frame In Main Scene

Feb 13, 2010

I have a mc INSIDE one of the layers in main scene, how to make it go to specified frame back on the main scene, when finished playing? Flash, cs4, as3.

View 1 Replies

Professional :: Tell The Movie Clip To Go To  The Main Scene Frame 1?

Feb 8, 2012

I am working with an iMAC running 10.6.8.I have created a flash file with only the main scene, which has a List button and a Home button. The List button has 20 links as a scroll list, each link installs a movie clip from the library.The problem I am having is the List button works fine until I add the Home button, then the Home button works fine, but the List button only works on the frame that the action is on. Each button is on it's own layer, and runs the whole length of the show, which is 220 frames. I have a stop label at each place a movie clip is to play.
 
If I remove the Home button from the main scene and put it into each movie clip, how do I tell the movie clip to go to  the main scene frame 1?

View 7 Replies

Jump Out Of A Movieclip To The Main Scene?

Apr 11, 2009

I have a movieclip in my main scene. Inside the movieclip, there's a button. I wanted to so if I click on the button, it takes me out of the movieclip's timeline and play on the main scene's timeline. I tried gotoAndPlay("Scene 1", 1), but it just take my back to the first frame of the movieclip, not first frame of the main scene (scene 1)

View 4 Replies

ActionScript 3.0 :: Main .swf To Load And Unload Scene.swfs

Aug 11, 2009

I've just recently made the leap from AS2 to AS3 and after several days of reading the CS4 help and searching posts here, I'm still at a loss how to get my first AS3 project off the ground.I'm working on an illustrated choose-your-own-path story with each step split into seperate swfs to speed up loading time.I've got a main file loading a scene swf using.[code]The loading works fine (although I've just found a post that suggests I should wait until the swf loads before adding it as a child), but how would I then get the buttons in the loaded swf to tell the main swf which swf to load next?I'm stumped firstly by that, and additionally by how I should then UNload the swfs. Is it not common practice to refer to objects by their '.name' in AS3? Should I be loading the swfs into an array?

View 1 Replies

ActionScript 3.0 :: Main Fla In A First Scene With A Simple Movieclip?

May 11, 2010

Have this code in main fla in a first scene with a simple movieclip.Seems not to work and cant figured it out

[Code]...

View 1 Replies

ActionScript 2.0 :: Load/unload A Movie Located On The Main Scene?

Feb 25, 2003

How can I load/unload a movie located on the main scene, from a movie clip, or vice versa. Right now I can only load/unload a movie if located in the same timeline.

View 2 Replies

ActionScript 2.0 :: Property Defined In A Movieclip Is Not Seen From The Main Scene, Except OnPress

Sep 10, 2011

In my FLA file (FLASH-8, AS-2)? in the library I have a movieclip named "mc" which is just one frame and in it specifies a property "price" like this: this.price="three";

In the main scene I have this code:

attachMovie("mc","t1",1)
t1.onPress=function(){trace(t1.price)}; //returns the correct value "three"
trace(t1.price); //returns "undefined"

Why the first trace(t1.price) returns the correct value and the second one returns "undefined"?And how do I make this property available without using onPress? The objective is to output the pictures of a set of movieclips and place the price of each picture under it using a dynamic textfield

View 4 Replies

ActionScript 3.0 :: Seek Frame-by-frame The MovieClip Timeline And Use The CurrentFrame To Control All Motion Child?

Jul 16, 2010

i'd like to control MovieClip timeline witch contain several DisplayObject (like Sprite, Button, ...) these DisplayObject have Motion (AnimatorFactory). How can i do seek frame-by-frame the MovieClip Timeline and use the currentFrame to control all Motion child.

[Code]....

View 18 Replies

ActionScript 2.0 :: Put A Button In A Movie Clip To Control Actions In The Main Scene?

Nov 19, 2004

I put a button in a movie clip to control actions in the main scene. Shouldn't that work? For some reason it doesn't.

View 11 Replies

ActionScript 3.0 :: Targetting Main Scene Labels Within Button Thats Inside Movie Clip

May 2, 2009

i have movie clip named serviceMenu which is instance of menuAll in Scene 1

scene 1 have 8 labels:

serv1 - serv2 - serv3 - serv4 - serv5 - serv6 - serv7 - serv8

inside serviceMenu i have 8 buttons

when i doubleclick serviceMenu it take me inside

menuAll which have 3 layers

1- 1 keyframe actions

2-1 keyframe for the button

here is the code for one of the buttons

servSix_btn.addEventListener(MouseEvent.CLICK, goServ6);
function goServ6(event:MouseEvent):void
{
serviceMenu.gotoAndStop("serv6", "Scene 1");
trace("button Clicked")
}

and here is the error: "1120: Access of undefined property serviceMenu."

am trying to target scene 1 labels

View 3 Replies

ActionScript 2.0 :: Command External SWF-file To Play Outside Of The Main Movieclip Via Button From Main?

Jan 17, 2012

I Have a flashmovie thats almost done and will soon hit the internet, but I want to add some animations into the website it�s two gears that I�m about to put at the bottom of the page and when a button releases in the main flashmovie the two bottom gears will turn a few frames and just stand still.These three movies are all separate (main movie, first gear and second gear).

It's a homepage designed in HTML and flash that has this "main flashmovie" in the middle of the screen, the size is about 1500(width)X800(height). And the gears is about 800wX200h placed at the left and right side bottom of the page. Dont worry the site is easy to apply to any screen resolution.I have been looking everywhere for any soul out there who suffering from the same problem but no success. Is it possible to script a button in the main movie to launch two separate movies in their own contents?

View 2 Replies

ActionScript 3.0 :: Controlling Movieclip From Main Timeline & Child?

Sep 26, 2010

This code is currently contained within my "mc_1" movieclip. I want to be able to have this code on my main timeline, however no matter what I try I constantly get errors, multiple different versions. I've tried adding mc_1 infront of everything, but that just gives an output error about a Sprite.Also, I'm currently using visible to control whether the back image to the textbox should show - What I'd really like to do is control it using a child, but they're movieclips not buttons, so when I try to addChild within the function it errors saying I'm trying to control a movieclip within a simplebutton function.

import flash.events.MouseEvent;
stop();
mc_textbox.visible = false;

[code].....

View 12 Replies

ActionScript 3.0 :: Remove A Child From The Main Timeline From Within A Movieclip

Feb 3, 2010

Someone the other day provided me with this code to a remove a child from the main timeline from within a movieclip.

parent.removeChild(MovieClip(parent).mc1);

This works fine, but how can I write an if statement to test if its in the display list before removing it?

As I'm getting an error if I try to remove it once its already been removed.

View 4 Replies

Actionscript 3 :: Load An External Swf To Main Stage From Instanced Child Class?

Apr 15, 2010

I am trying to get an instance of a class to the load an external swf and show it.So far I have the following:

1) I wrote a class that uses the Loader class to load an external swf "loadExtSWF".
2) I have a fla named "MainSWF.fla" that uses a document class "MainSWF.as".
3) I have the MainSWF.as file that instances "loadExtSWF" and calls loadExtSWF.startLoad to load the swf.

This almost works. The instance of loadExtSWF loads the external swf, but the swf is not displayed.If I replace the fla's document class with loadExtSWF (this has an empty constructor) instead of MainSWF, and run loadExtSWF.startLoad, then the external swf is loaded and displayed.[code]

View 1 Replies

ActionScript 3.0 :: Using Child Navigation To Load AddChild Main Time Line

Jan 23, 2009

Using Child Navigation to load main time line.I am new to AS3 and have done pretty well but have been caught up this area.I have been loading swfs into a loader (imageLoader) which has been added to the stage using addChild. Then with buttons and functions I load other swfs into the same loader which replace each other. I now have an swf "testProject3a.swf" loaded into (imageLoader) which has icons for navigation and when each icon is clicked I need it to load another swf into (imageLoader) and replace it's self "testProject3a.swf" with "portalB.swf".I've tried adding removeChild code to the loaded swf but it removes the original (imageLoader) and the other buttons have nothing to load into.[code]

View 3 Replies

ActionScript 3.0 :: Event Handler - From Child To Main Button

Feb 26, 2010

How do I get a button event handler to refer back to the main timeline from within it's movie clip inside another movie clip?

View 1 Replies

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 3.0 :: Click The Button And Go To The Next Scene Frame 1

Jun 24, 2009

It's the simplest thing: I have a button. I want to click the button, and go to the next scene frame 1. I made my own button. AS 2.0 was so simple with it's code. I having a very difficult time with the code. I'm an artist, not a code guy.

View 3 Replies

ActionScript 2.0 :: Create A Scene Or A Frame With A Button?

Aug 13, 2003

I need to create a scene or a frame with a button.When I click on the button the Game should start to play.Since I am not able to upload the file please use this below link to access the FLA file.This is What I did: I tried 1 space on the 1st key frame It didnt work.I also made a new scene created a button gave a action-script (go to) It didnt work.

When I created the button (action-script go to next frame or next scene) and modifying the frame number in the action-script on the actual game key frames.This is the Problem I am facing: It doesnt go to the last frame of the game (Last Frame - Click to play again)

My level in action-Script (Beginner- intermediate)

View 14 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 2.0 :: Calling Frame Label In MovieClip On Second Scene

Dec 28, 2004

I am in a second scene... and am trying to call a frame label in an mc in scene 2 is there a such thing as...
on(release) {
_thisScene.mymc.gotoAndStop("framelabel");
}
this scene?

View 5 Replies

Button To Load New Scene?

Jul 1, 2009

I have a button which i'm trying to load a new scene but have no idea how to link it !

View 1 Replies







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