ActionScript 2.0 :: Going To The Correct Frame W/ 2 Scenes?

Apr 23, 2007

I have two scenes, 'Preloader' and 'Scene 1The preloader works fine. It is when I want to go to a frame using gotoAndPlay that the problem exists. The preloader is only 2 frames long.The frame I want to goto is frame 40 in 'Scene 1'All the buttons will do this, but for this examples use he "Resume" button on the swf files.if I use _root.gotoAndPlay(40) it will go to 2 frames prior to the one I want. I.e. Frame 38 in Sceneif I use _root.gotoAndPlay("Scene 1", 42) it does nothing as well.if I use gotoAndPlay(40) it does nothingif I use gotoAndPlay(42) it does nothingif I give the frame a label and use that label such as _root.gotoAndPlay("Resume") it will have the same behavior as _root.gotoAndPlay(40), however on the second click it will go to the correct frame. As in here: "resume" once and it will go to the contact info, click it again it will go to the correct frame. Click it a third time and it will go back to the incorrect frame.

if I use _root.gotoAndPlay(42) it works and goes to frame 40, but if that button is clicked a second time it will go to 2 frames after the frame I want. Here ttp://www.blackonyx.net/ Click Resume once it goes where I want. Click it again and it goes two frames ahead and starts to play, which isn't what I want it to do.

View 2 Replies


Similar Posts:


Flash :: AS2 Acts Randomly When Changing Scenes On The First Frame

May 15, 2010

I have a flash movie containing to scenes: scene1, scene2. I have chosen the order so that scene1 starts first, I was requested to add a functionality to allow flashvars to be passed, if fv_change equals one then scene2 should be the first to appear when the movie is loaded. I have included the following code in scene1 first frame of some layer:

[Code]...

View 2 Replies

Actionscript :: Go From The Last Frame To The First Within The First Scene When Have Multiple Scenes In Flash?

Aug 18, 2011

I have 3 scenes in my flash, so when I run the movie it goes through all scenes, however I have a button which send you to the next scene.

When he is not pressed I want that just first scene( in my case Scene 1 ) is looping. I mean I have 30 frames in Scene 1 and when it is on frame 30 I want to go to frame 1 of Scene 1.

How to do that using ActionScript2.0?

View 1 Replies

ActionScript 3.0 :: Controlling Eksternal Swf (Scenes, Frame) From Main Swf?

Jan 8, 2011

Am gonna create an encyclopedia program, consist many of Chapter. I have difficulties about **controlling external swf inside my Main swf**. This is my Main.as in Actionscript 3

Code:
public class utama extends MovieClip {
var loader:Loader;

[code]......

View 1 Replies

FLA To MOV - Unable To Get The Correct Frame Rate?

Dec 22, 2009

I have a problem exporting a flash movie to a Quicktime movie with the correct frame rate. When I try to transfer it to a DVD that will play in loop, the video is jerking. I really need to get a 30 fps video.
 
I'm using Flash CS3 on Mac OS X. I built my flash animation with photos and text only (no SWF or movies linked or embeded, no actionscript, no sound, one scene only). The frame rate I specified in my flash movie is 30 fps. My scene format is 1360 x 768 pixels (16:9).
 
I need to export my flash movie in an almost uncompressed format to bring it to a DVD.

[Code]...

View 2 Replies

Actionscript 3 :: Controlling External Swf(Scenes, Frame) Inside Main Swf?

Jan 8, 2011

Am gonna create an encyclopedia program, consist many of Chapter. I have difficulties about controlling external swf inside my Main swf. This is my Main.as in Actionscript 3

public class utama extends MovieClip {
var loader:Loader;
var urlReq:URLRequest;[code]........

Am using eksternal page as a Chapter, and A Chapter consist of many Pages (it using Scene)
For an example :

Chapter 1 --> Page 1 it will be represented as hal1.swf-->Scene 1
Chapter 1 --> Page 2 it will be represented as hal1.swf-->Scene 2

Now, How to control it, I still didn't get it ??

View 1 Replies

Professional :: Navigate To One Frame Or Another Depending On Whether There Is A Correct Or Incorrect

Jul 13, 2010

how to navigate to one frame or another depending on whether there is a correct or incorrect answer for the learning interaction. I am using the CS3 drag and drop.

View 2 Replies

Make A Movie With Multiple Scenes - Streaming Sound And Scenes Sync

Jul 3, 2009

whenever I set my sound to stream and continue to make a movie with multiple scenes. The audio and video get disgustingly out of sync sometimes even off by 30 seconds. I just started an animation its only 10 seconds long with two scenes and the AV is already off by about 5 seconds. Ive worked around this by avoiding scenes altogether but i really don't want to have another 5000 frame scene. I discovered this problem in Flash MX and Im quite annoyed that it still has't been fixed 3 years later!

View 1 Replies

ActionScript 3.0 :: Event Listeners Disappearing - Movie To The Correct Frame That The Corresponding Content Is On?

Feb 23, 2010

I am using Adobe Flash Professional CS4 with all the latest updates. The FLA is an Actionscript 3.0 file. I am creating a basic flash site with several pages that change when the user clicks links on a left side navigation bar. on the pages are sub tabs that change out different content(text) based on what the user clicks on the current page. when they click a button it triggers an event listener, the event listener runs its function which changes the definition of an already defined (String) variable, and the page goes on to a frame checks what that variable is and then leads the movie to the correct frame that the corresponding content is on.

here's the issue: it works perfectly the first few times, and then the event listeners stop working, first one of them, then all three once i click one of the two available. i started this site before i even knew what a class was(regretably), and all the code is on the timeline in different frames.

[Code]...

View 2 Replies

ActionScript 3.0 :: Using Buttons To Go Between Scenes - Showing Errors : Frame 2, Line 5 1021: Duplicate Function Definition?

Apr 21, 2011

I'm making an interactive website using ActionScript 3 and no matter what I try and do I keep getting the following error messages:

Characters, Layer 'actions', Frame 2, Line 5 1021: Duplicate function definition.

Characters, Layer 'actions', Frame 2, Line 12 1021: Duplicate function definition .Characters, Layer 'actions', Frame 2, Line 19 1021: Duplicate function definition.

I don't really understand what I'm doing wrong because it says "duplicate function" yet they aren't the same functions. Here is the ActionScript I've used for the first page:

stop();home.addEventListener(MouseEvent.CLICK, goHome);function goHome(evt:MouseEvent):void{ gotoAndPlay("Home", 1)}characters.addEventListener(MouseEvent.CLICK, goCharacters);function[code]....

View 1 Replies

ActionScript 3.0 :: Basic Buttons - Advance User To Correct Frame Labels And Stop

Sep 13, 2010

I have a flash site that has a presentation page it has a menu of two buttons (1) to take you to a slide show and (2) that takes you to the gallery. These are the only two buttons that seem to work in control test movie, I get no errors. The only button that is connected is the slideshow button (I haven't done the gallery yet). This button takes you to frame two. Where I have the main website. It has its own menu that spans across the entire website which is 25 frames.

Each frame represents a new page. I have mini menus at frames 3, 5, and ten. That are supposed to just advance the user to correct frame labels and stop. The only buttons that work are the ones in the first frames. The rollovers appear to work on all the pages when I advance the movie using the [ . ] key but I get no trace statement which means that it is not being acknowledged, all my buttons are named properly I believe so here is the code as well, all is in frame one:

stop();
//handle events for buttons...
Gallery.addEventListener(MouseEvent.CLICK, clickSection);
Home.addEventListener(MouseEvent.CLICK, clickSection);
Location.addEventListener(MouseEvent.CLICK, clickSection);
Guest.addEventListener(MouseEvent.CLICK, clickSection);
Lodging.addEventListener(MouseEvent.CLICK, clickSection);
[Code] .....

View 10 Replies

Professional :: Animating Step Through One Frame At A Time And Move The Linkage Rod And Piston Into The Correct Position

Dec 19, 2010

how to animate a piston like the one above in flash cs5? Should I use bones? if so how? At the moment the only way I can see to do it is to step through one frame at a time and move the linkage rod and piston into the correct posistion.

View 2 Replies

ActionScript 3.0 :: Get The Depths Of All The Blocks To Be At The Correct Levels At The Correct Times

Dec 30, 2009

I'm trying to get the depths of all the blocks to be at the correct levels at the correct times so that the 3d effect is maintained. I've tried many things, but have had little success. All the instances of the blocks are stored in an array, but since it's adding them in accordance with when they're added to the stage, it doesn't help me locate them to swap depths. Is there a way to arrange them by location on the board?

View 4 Replies

ActionScript 2.0 :: CS3 On Variable="Correct" Go To Frame 147?

Feb 24, 2010

I have the following code which basically drags this circle around and if put on the right symbol "bow", then variable answer1="Correct" and this is displayed in a dynamic text field.

Now I also need to make it so if variable answer1="Correct", in other words if the circle was dragged to the right location, to go to frame 147 or just resume playing. I don't care about what happens to the dragged circle afterwards. I'm using the following code:

[Code]...

View 2 Replies

ActionScript 1/2 :: Track Scenes Viewed And Display Image A Or Image B Based On Scenes Viewed

Feb 26, 2011

I have an interactive story divided into scenes. At the end of each scene a button appears. This occurs on a frame on the timeline.
 
There are two different buttons that might appear based on whether a prior scene has been viewed or not.
 
For example, there are Scene_1 and Scene_2. At the end of Scene_2 one of two buttons will appear. The buttons will be either "Go see Scene_1" or "Return to Main Menu".
 
If the user has already seen Scene_1, Flash will know that and automatically go to the frame in Scene_2 that contains the button "Return to Main Menu".
 
Conversely, if the user has not seen Scene_1, Flash will know and automatically go to the frame in Scene_2 that contains the button "Go see Scene_1".
 
I imagine there would be an action frame at the end of Scene_2 that will contain the as2 code to enable this action.
 
Perhaps something like, but probably not at all like the following:
 
if ("Scene_1", last frame == true){gotoAndPlay("frame#");}else{gotoAndPlay("frame#");}

View 1 Replies

Flash Load ALL Scenes Of A Movie Or Does It Load The First Scene And Then Load The Other Scenes?

Jun 2, 2010

I am working with a project that has many scenes. Each scene has a movie clip attached to it. The first scene is simple...just a couple of buttons and that is it. My worry is that when I add all of the videos that correspond with each button and publish the SWF will be a huge file. THE QUESTION: Does flash load ALL scenes of a movie or does it load the first scene and then load the other scenes when the user needs to view them?

My ultimate goal is to just have the first scene load and then when the user clicks on the buttons contained within that scene that only upon release does the corresponding scene load. Maybe I am doing this completely wrong and should look at doing it another way.

View 6 Replies

ActionScript 3.0 :: Currentframe For All Scenes?

Feb 9, 2010

I am coding this loader that requires multiple Scenes because of long swf presentations. My loader swf is using a timeline scrubber and I am having problems when dealing with Scenes because the currentframe goes back to "0" when a new scene starts and scrubber goes back to the beginning.

View 1 Replies

Buttons Will Not Go To Previous Scenes

Mar 2, 2010

I am having a very unique problem: I am creating a simple flash website, and I have a series of buttons that link to a series of frames. There are 27 buttons, and each proceed to a separate labeled frame. Each of the frames is a short animation 13 frames long. The buttons are all versions of this:

[Code]....

Then, 13 frames into the animation I just have a stop(); command. My issue is that if you click on any button in the series, none of the buttons that go to frames before the current one work. If I click button 20 and go to the 20th animation in the set, buttons 1-19 don't work, but 21-27 still do.

What's more, from moving the actions around to see if they needed to be in the same key frame as the button, I found that if the actions are in a single key frame in any of the animations, the animation stops on the frame that the actions are in. I also found that each button will only work once.

View 2 Replies

ActionScript 3.0 :: Navigation Bar For All Scenes?

Jul 17, 2010

ActionScript 3 is just too tough for me, so here's a probably very simple question: How do I manage to create a navigation bar across all Scenes (6) and Frames (125 per Scene)? how to create the button and the AS, but it's only valid for one single frame then...

How I did it:

Code:
land.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_11);
function fl_ClickToGoToScene_11(event:MouseEvent):void

[Code]....

Search function here keeps crashing or not loading, is that normal?

View 2 Replies

Flash :: How To Preload With 8 Scenes

Jun 8, 2009

I am having a movie with 8 scenes and being in Thailand where the internet is slow I would like it to preload before it opens because now, after it opens a lot off the stuff ain't there yet like buttons and animations that are built into different scenes.

View 2 Replies

Professional :: Scenes Broken In CS4?

Mar 19, 2010

I've just started working with CS4, and admittedly I'm new to Flash, but I can't get the Scene functionality to work as described in the docs. The class MovieClip has a currentScene property that should return a Scene object. The Flash 10.0 docs give this code as an example :import flash.display.Scene;var scene:Scene =mc1.currentScene;trace(scene.name + ": " + scene.numFrames + " frames"); However, if you create a new ActionScript 3.0 fla file, create a MovieClip instance, name it mc1, and put this exact code in one of the frames, it returns a Scene object with no name and only 1 frame.Changing the name of the scene in CS4 does not . Am I missing something?

View 15 Replies

Professional :: Scenes Won't Reorder AS2

Jun 23, 2010

I'm building a portfolio site and I've renamed the secenes and reordered them but when I test the movie it defaults to what was originally scene 1. I'm working in AS2. If the mods will allow the web site is [URL]. There is an intro page which was scene 6 which is now renamed "intro" and draggd to the top of the pile but it doesnt show when I preview or upload.

View 2 Replies

Professional :: Separate Scenes Or Not?

Sep 27, 2010

I'm building a simple interactive video/animation in Flash. I have a sample from the company that I'm going follow and they use separate scenes for different sections of the video. I've read there are disadvantages to using Scenes but I haven't seen any advantages. In fact I haven't found much about Scenes at all. Most people seem to build their stuff in one scene, just labeling frames so they can jump to them to make scenes that way. I also have been looking up tutorials and I can't find anything about using the Scenes palette and how to connect the scenes together. Is there any reason I should use this Scenes palette and not do my whole video in one scene?

View 7 Replies

ActionScript 2.0 :: Communicating With PHP From Different Scenes?

Nov 30, 2009

I seem to be having issues with sendAndLoad() from different scenes.When I load the .swf (ctrl+enter) the communication is fine, when I naviget to scene2, the same code doesn't seem to execute at all...

Code:
//--------HERE WE SEND THE DATA--------//
var myLv:LoadVars = new LoadVars();

[code].....

View 1 Replies

ActionScript 3.0 :: 3 Buttons Which Should Each Go To 3 Different Scenes?

Jul 28, 2011

I am doing a project for work and haven't used scenes in 3 years so I am a little rough around the edges.

What I am have is 3 buttons which should each go to 3 different scenes. The scene names are "home", "twoPortlands" and "portlands" and then each scene has a layer with the Frame Label of "home", "twoPortlands" and "portlands" I want the first button to go to and play "home" I want the second button to go to and play "twoPortlands" and then the third button to go to play "portlands"

I have the following code on the first frame of home (which is the main interface)

[Code]...

View 2 Replies

ActionScript 3.0 :: Same Objects In Different Scenes?

Sep 16, 2011

I have 2 scenes. Scene 1 and Scene 2. When i click on some thing in Scene 1 it adds to the invetory. Then i click and move to Scene 2 but that thing is not in Scene 2. I just want to have that thing in every Scene...

View 5 Replies

Flash :: IDE - CS4 - Navigate Through The Scenes

Apr 14, 2010

I upgraded to Flash CS4 and found out i dont like actionscript 3. i have an older flash site I opened in CS4 and all the actionscripts work on the scenes. I began a new flash file and created scenes with the actionscript 2, but it wont let me enter the script in the actionscript window. Here is an example of what i am using to navigate with buttons. Can someone chime in and show me a simple method to navigate thru the scenes with actionscript 3 or how to continue to use actionscript 2.

[Code]...

View 2 Replies

ActionScript 2.0 :: Seamless Transitions Between Scenes ?

Mar 9, 2003

I am creating my first Flash Web site, learning ActionScripting as I go. I think my most recent problem requires some simple scripting, but I haven't found a solution on the Board, so I decided to post this message.

Basically, I am trying to make the transitions between each section of my site seamless, and in absence of any HTML-like jumps in which the page just cuts to another. For example, when you click on a button from the main navigation area of my portfolio site, you are taken to another section (separate scene),and the content area changes.I want the previous scene to fade out, after the button is clicked, before the new scene loads. Another words, I need to figure out how to tell the timeline to do this for each button:

When I click the Graphics navigation button,FIRST play frames 300-310 of the current scene (fading out animation)THEN take me to the frame label graphics.Heres the code attached to my Graphics button currently (it nested inside a movie clip, hence the _.root part). How would I change this to get it to play frames 300-310 of the current scene before it takes me to the graphics page?

on (release) {
_root.gotoAndPlay("graphics");
}

View 14 Replies

Convert A Flash Presentation To Scenes?

Mar 12, 2009

Is there a way to convert a flash presentation to scenes?

also is there a way to copy frames and paste them in place without things getting shifted weird?

View 5 Replies

AdobeFlash : Using Scenes To Switch 1 Scene To Another

Mar 19, 2009

i do not possess any knowledge in using of scenes and i got a proj which requires me do so and i been using the alpha-ing and tweens to do the button switching its really tiring and confusing

so can anyone enlighten me on how to use scene to do switching of 1 scene to other along by using a 'next button' and 'previous button'

View 1 Replies







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