Multiple scenes?

Hi!
I'm wondering - in flash, i could use Scenes or frames, to
divide an application. Is there any possibility to do similar thing
in flex?

I would suggest a combination of custom components and view
states. You can create each of what would be a scene as a custom
component. Then you could place a master navigational bar on your
application and when a users selects a various option that could
trigger the view state to change and then load a different
component (scene). With all of this you would only have one swf to
deal with as the components are all compiled together into the main
application swf.
Hope that helps.

Similar Messages

  • Multiple scenes not working on any computer except my own.

    HI everyone,
    I try to run a swf or html file of my fla file and it only works on my machine but not on my laptop. I have the latest flash player installed but it still doesn't work.  Can anyone advise. My laptop works for single scenes swf and html but not for multiple scene file.
    Aron

    it just sits there and nothing moves or comes on when I hit the play button in my application.  I have tried running a swf file through firefox and an html publications of my file but they don't seem to work on my lap top except for on the original computer I created the app on.
    Could you or anyone please tell me if these links work http://dl.dropbox.com/u/307778/Gemoro%20BovoMetzia%2023b-1-9%20Scenes.html
    http://dl.dropbox.com/u/307778/Gemoro%20BovoMetzia%2023b-1-9%20Scenes.swf
    Thanks for your help
    Aron

  • Using a function in multiple scenes

    I have a .fla project being created under CS4, using
    ActionScript 3.0, that consists of multiple scenes.
    In the code attached to the first scene, I define some
    functions that are used as methods on buttons:
    function MouseDown(TheKey:Object):void
    TheKey.alpha=0.6;
    function MouseUp(TheKey:Object):void
    TheKey.alpha=1.0;
    function AlphaPoint6(event:MouseEvent):void
    MouseDown(event.currentTarget);
    function AlphaonepointO(event:MouseEvent):void
    MouseUp(event.currentTarget);
    And I use a couple of the functions as EventListener methods
    on buttons
    Key1.addEventListener(MouseEvent.MOUSE_DOWN,AlphaPoint6);
    Key1.addEventListener(MouseEvent.MOUSE_UP,AlphaonepointO);
    So far so good.
    Then, I create a second scene in which I have some other
    buttons.
    When I try using the same functions as eventlisteners on
    these buttons, in the code for the second scene:
    Key11.addEventListener(MouseEvent.MOUSE_DOWN,AlphaPoint6);
    Key11.addEventListener(MouseEvent.MOUSE_UP,AlphaonepointO);
    then, I get the error messages
    1120: Access of undefined property AlphaPoint6
    1120: Access of undefined property AlphaonepointO
    BUT, if I try declaring these functions again with the script
    of the second scene, I get the error message
    1021 Duplicate Function definition
    So, I seem to be stuck between a rock and a hard place. On
    the one hand, when the compiler parses the second scene, it
    believes those functions are defined (as it is not happy if you try
    defining them again). On the other hand, the compiler does not
    think they are defined. as it considers them to be undefined
    properties.
    Does anyone have an idea about how to resolve this conumdrum?

    One option is to not use scenes. Just take what you have as
    scenes and either place them in the one timeline, or convert them
    into movielcips. In my own design work, I have never used scenes.
    When I first encopuntered them via someone else's design, I
    immediately disliked them because it meant I had to search thru
    inobvious places to find things that needed to be revised. Other
    folks that help in these forums have their own reasons for
    promoting not using scenes... troublesome, unreliable, outdated,
    etc

  • Combining .fla files with multiple scenes

    I understand how to combine a simple flash file into another,
    but my problem is the files I am trying to combine have multiple
    scenes. How would I do this?

    I'm doing a short 20 second animation that I've developed in
    4 different chunks. Now I'd like to string them all together into
    one big project, but I have no idea how.
    Help!

  • Is there a way to make multiple Scene Menus?

    I am using Premiere Elements 8.0 to make a DVD of different slideshows. I was wondering if there is a way to make multiple Scene Menus from a single Main DVD Menu. I want to be able to link to a second scenes menu not connected to the first one, almost like a Deleted Scenes or Special Features option on a DVD.
    Thanks for all the help!!

    Not directly in PrE. The Menu Sets are designed to automatically generate the necessary Scene Menus, based on the DVD Markers, and linked from the Main Menu.
    One can use an authoring program, like Sony's DVD Architect to do what you want. One would Export/Share the Timeline, and then Import that into DVD Architect.
    There are some tutorials, and also a link to Steve Grisetti's book on Sony DVD Architect on the Muvipix site.
    Hope that this helps, and good luck,
    Hunt

  • Sound in multiple scenes

    How do I get a single audio clip to play through multiple scenes in a flash project?

    Hi Marie,
    Using Actionscript would allow greater control as Ned suggests, but even otherwise you should be able to play and control your audio clip through multiple scenes.
    Can you please elaborate what exactly you wish to do and where are you getting stuck. In general, an audio with Sync property set as Event or Start plays across scenes as well.

  • Multiples scenes?

    Hello,
    I need to do an application with multiples scenes but i don't know how to change the scenes ? Thanks.
    Edited by: CristianKhalil on Apr 20, 2010 7:47 PM

    You can find a simple example in [Next-back button wizard|http://forums.sun.com/thread.jspa?threadID=5432368].

  • Multiple scene interface in javafx

    Hi,
    How can i achieve multi scene interface under single stage with common menu bar in javafx ?
    i.e,multiple scenes should change in single stage and Menu bar should be common for every scene.
    I am using javafx scene builder to build Gui’s.

    i believe the answer is that Adobe is following Windows Programming User Interface Guidelines, that Microsoft itself doesn't always follow.

  • Using an mc to control the main timeline with multiple scenes

    OK, I have a main timeline that has 27 different scenes.  I have a movie clip that is an "on call" navigation menu for the main timeline.  I can call the menu once, and it will go to the first place I want it to go.  However, I cannot seem to figure out how to get it to go away to be able to call it again.  I get the "must be child of caller" error.  Any thoughts on how to get rid of it each time I use it?

    A button is clicked which calls the following AS3 code:
    MovieClip(this.root).addChild(myMenu);

  • Preloader for multiple scenes

    Hi, I'm trying to make a web site, I have 7 scenes and everything is working perfect. But here's my question.
    When I try to make 1st scene as a preloader nothing happens. Preloader never shows up and it jumps directly to 2nd scene "Main"
    Here's my code:
    stop();
    this.addEventListener(Event.ENTER_FRAME, loading);
    function loading(e:Event):void {
              var total:Number = this.stage.loaderInfo.bytesTotal;
              var loaded:Number = this.stage.loaderInfo.bytesLoaded;
              bar_mc.scaleX = loaded/total;
              loader_txt.text = Math.floor((loaded/total)*100)+ "%";
              if (total == loaded) {
                        gotoAndPlay(1,"Main");
                        this.removeEventListener(Event.ENTER_FRAME, loading);
    Also if I delete my contents in the "Main" scene and leave a single image, code works perfect.
    Preloader shows up and then loads my "Main" scene.
    How can I code it, as it first calculates my whole scenes, and shows my 1st scene "preloader" at the beginning.

    I followed the tutorial, here's the code he suggested.
    var l:Loader = new Loader();
    l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS. loop);
    l.contentLoaderInfo.addEventListener(Event.COMPLETE. done);
    l.load(new URLRequest("main.swf"));
    function loop(e:ProgressEvent):void
              var perc:Number = e.bytesLoaded / e.bytesTotal;
              percent.text = Math.ceil(perc*100).toString();
    function done(e:Event):void
              removeChildAt(0);
              percent = null;
              addChild(l);
    When I try to export this, flash gives me an error with line 2 and line 3.

  • Moving multiple scenes in to one timeline

    Is there a way to do this?  I am just now hearing of (and experiencing) all the downfalls of using scenes to create an interactive website.  I may have to start the whole thing over at the mid point if there isn't a way to convert it into one.  Any ideas?  It will save a week's worth of work!  Thanks.

    you can copy all the frame in a scene and paste them into any movieclip, including the main timeline.

  • Multiple Scenes using Nebeans 7.2

    Hi,
    I have created 2 scene's using NetBeans IDE 7.2, I have added 2 FXML files and using the same controller.java, Can someone provide me a simple example to switch between 2 scene's in the controller.java code.
    public class TestFXMLController implements Initializable {
    @FXML
    private AnchorPane anchorpane1;
    @FXML
    private AnchorPane anchorpane2;
    How do I modify Stage to show scene from anchorpane2 ? (belonging to second fxml file)
    Thanks

    I don't do my toggling at the stage level, but instead use a containing 'node'.
    For example, I have a HBox I use as a parent, and I use FXML includes to include the two anchor panes:
    <fx:include source="SourceTab.fxml" />
    <fx:include source="CitationTab.fxml" />
    ...In the init function I make sure to keep a reference to each child pane, then remove all the child panes but one:
            mainHBox.getChildren().remove(sourcetab);
            /*mainHBox.getChildren().remove(citationtab);*/When the user makes a selection (button in this case) , I simply remove the 'top' pane and insert the selected one
            mainHBox.getChildren().remove(1);
            mainHBox.getChildren().add(1, sourceTab);
            mainHBox.getParent().requestLayout();As I think back, I am wondering why I removed the panes instead of hiding them, but I think it was spacing issues. I don't seem to have performance issues though.
    Hope this helps.
    Edited by: edward17 on Oct 16, 2012 4:55 AM

  • Multiple Scenes problem

    Hello all,
    Currently i'm writing a game and i need to change the scene (or stage??): between the
    welcome scene, the game scene, level-change scene etc...
    Now, maybe i'm doing it in the wrong way, but what i did so far, is that i wrote a very simple scene manager that handle MyScene classes (which extends Scene) and everything works fine... except for one thing: objects that i expected to be deleted when no one has references to them anymore, are
    apparently NOT being deleted
    It looks like running Timelines are not cleared or even stopped, even if no one refers to them and the scope where they were created is just "dangling" in the air.
    What i did, is to explicitly clear the obsolete scene's content (content=null) and all "nullify" all it's members. It helped with the objects - but the timelines still
    running. i can, of course, explicitly stop the timelines, but i feel that all the C++ style manual deletion is not exactly the right way to do it.
    What am i doing wrong?
    Thanks!
    Edited by: dharmax on Sep 7, 2009 7:30 AM

    i think i found out the root of the problem (it's just a theory):
    1. When a timeline instance is created, it may have two owners (two entities that reference it): one is the general runtime context and the optional second, is the object within which it was created.
    2. Now, the timeline also reference the object within which it was created. Thus, as long as the timeline instance exists, that object will also live.
    3. Even if the scene where the objects where originally placed in is gone, these objects will live as phantoms, held by virtually circular referencing (virtual, because the timeline is still associated with the general runtime context).
    Conclusion: maybe it is a feature, but to me it looks like a mis-feature: having the general runtime context as one of the timeline's owner.
    Proposed solutions:
    - Option A: the active scene or stage should take the general context's job as the parent of the timeline
    - Option B (maybe better): if a timeline was created within the scope of another object - this object should be its soul owner.
    In my specific application, i found no solution except doing it brute force and i don't like unclean code...

  • Multiple Scenes and Labels

    Basically what I'm trying to do is use the "page up" button to navigate to different labels on the timeline. The problem is that the labels are in different scenes (for example label_5 is in Scene 3). So each time I go to a label outside the scene, I get an error message.
    var myLabels:Array = [ "label_1", "label_2", "label_3", "label_4", "label_5"];
    var nextLabel:String;
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
    function keyPressed(evt:KeyboardEvent):void
    switch(evt.keyCode)
    case Keyboard.PAGE_UP :
        var inc:int = myLabels.indexOf (currentLabel);
        inc = inc < myLabels.length-1 ? inc+1 : 0;
        nextLabel = String(myLabels[inc]);
        gotoAndStop(nextLabel);
        break;
    Is there an easy way to fix this?
    Thanks so much in advance.

    Scenes have never been a good idea - but if you must use them you'll need to do this different. Either use two arrays - one with the frames like you have now, and a second one with scene names. Or modify the array you have now to consist of an array of arrays - with the sub arrays containing frame,scene values. I'd probably use two arrays though as it's less to modify... something like so should do it.
    var myLabels:Array = [ "label_1", "label_2", "label_3", "label_4", "label_5"];
    var myScenes:Array = ["scene1", "scene1", "scene2", "scene3", "scene3"];
    var nextLabel:String;
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
    function keyPressed(evt:KeyboardEvent):void
    switch(evt.keyCode)
    case Keyboard.PAGE_UP :
        var inc:int = myLabels.indexOf (currentLabel);
        inc = inc < myLabels.length-1 ? inc+1 : 0;
        nextLabel = String(myLabels[inc]);
        gotoAndStop(nextLabel, myScenes[inc]);
        break;
    PS - no need to cast nextLabel to a string like you have - it already is a string in the array.

  • How can I make Navivation buttons remain coded through different scenes?

    Ladies and Gents,
    I am working on a flash website for an artist with a lot of work. In order to maintain my timeline clean and organized I have created multiple scenes to display the artwork.
    There is a home button and a a main navigation bar (present in every scene)
    there is also a sub navigation bar that leads to the artwork.
    The code is very simple and constant for all the buttons:
    btnHome.addEventListener(MouseEvent.CLICK, home);
    function home(evt:Event):void{
        gotoAndPlay(1, "Home");
    This works only in the scene where I first placed the code (Scene "Art"). The rest of the scenes give me this error
    ArgumentError: Error #2108: Scene Home was not found.
        at flash.display::MovieClip/gotoAndPlay()
        at Susan_Giles_MultipleScenes_Scene1999_fla::MainTimeline/home_1999()
    I am very confused because flash can find the scene "Home" and the other 11 scenes from the scene ART, but it cannot locate them from any other scene.... what am I doing wrong?
    I will appreciate all help.
    Thanks in Advance.
    J.

    One way would be to make the movieclip clickable.  That would make it block the other objects behind it...
         mc.onRelease = function(){ }
         mc.useHandCursor = false; // to hide the hand cursor
    Another way would be to disable the buttons while the movieclip is present...
         btn.enabled = false;
    Another way would be to build conditional code into the button clicking code to not work if the movieclip is visible.
         btn.onRelease = function(){
              if(!mc._visible){
                    // okay to do stuff

Maybe you are looking for

  • Spry Menus on Spry Tabbed Panels?

    Hi, I'm designing a site that has major tabs at the top, each of which takes the visitor to an appropriate section of the site... each with a default section overview page and a horizontal nav menu that's appropriate for that section. (This design is

  • Setting default slide zoom in navigator view

    Hi all, One of my pet annoyances since moving over from PPT to using Keynote on a regular basis is having to rescale presentations every time I open them up in the navigator. By default Keynote seems to select 100% as the view scale, which probably w

  • CS5 Win7 Networking Help Please

    I'm a home-based designer who needs nework help. I have CS5 Master Collection on a Win7 (Home Prem) computer which is peer-to-peer networked with 2 other Win computers (98 & XP). Win Exporer has no problem navigating anywhere on the network from any

  • How can I use iDVD to burn movies I legally purchased online?

    Please help, I have an older macbook pro with updated iDVD program. I am new to making DVDs so I have been watching and reading and trying to find any info on how to burn a dvd that can be played on any dvd player. I have purchased movies through itu

  • Foots from iphone do no appear in fotos app at Mac

    Hello, I am currently uploading my foto library to the cloud. Photos that I made with my iphone today to not appear in the photos app on my Mac. Strange, if I put the same photos in a stream that works fine. Whats the problem?