Is it possible to addChild on a specific frame?

If I have a symbol and I want to add that child to the stage at the symbol's second frame, is it possible to use addChild to do this? How?

yes and no.
you can create an on-stage movieclip in the 2nd frame of your symbol and apply addChild to that d.o.container.

Similar Messages

  • HT201304 Is it possible to restrict access to specific IOS apps based on the WIFI profile that a user has connected to?

    Is it possible to restrict access to specific IOS apps based on the WIFI profile that a user has connected to?

    you might be able to block it if the app uses Internet access
    and depending on your wireless you might be able to block a specific user
    accessing the backend host that the app uses
    some firewalls offer application filtering but I'm not aware of any that work with ios apps

  • Is it possible to start JSON Service specific to the user session?

    Is it possible to make JSON service to start different sessions of BusinessLogic Code in short - Is it possible to start JSON Service specific to the user session?
    Here is what I'm trying to do. I have a created a Configuration Model which contains the business logic. I want to start this model as a JSON service, and the user will interact with this model via mobile App developed using ADF Mobile. The JSON sevice has two calls
    /startConfiguration/{model_id}
    /getConfiguration
    Both of them return the string that indicates the BusinessModel being started by JSON service.
    When invoked " /startConfiguration/{model_id} " from two different browsers (Chrome - started first, FF - started second) for the same model_id (simulating the scenario of two user accessing same model), it did returned two different 'configuration' object strings, indicating that each call started its own Configuration.
    However, when I validated that the session started is user specific by calling "/getConfiguration"  it return same 'configuration object string - which is the second call from FF. Thus indicating that I cannot have JSON service tied individually to each user session. 
    My goal is to have JSON service specific to each user session. Is this possible?

    Hi,
    what is a JSON service? JSON is an object notation used with REST services. So I assume you have a REST services that returns JSON and you now want to obtain the same identifier for a specific input string? REST services - like all Web Services - are stateless and if you want to associate a request with a specific context then you need to pass a token or similar with the request so the context can be re-established. In your case I would have a look at the code mapped to startConfiguration/{model_id} to verify if the method checks for an existing configuration with the provided ID. Chances are that its the code returning the wrong ID. In general I would go with a token approach.
    Frank

  • Is it possible to load an external swf at a specific frame?

    Hey! I've got a flash file which acts as the main menu for a
    program I'm developing. Everything works fine from the main menu
    however when you click to return to the main menu the whole main
    menu file reloads. Is it possible to use loadMovieNum( ) to go to a
    specific frame within the main swf file? If not, is there a way to
    do this?
    Here's the button code I'm using now:
    on (release) {
    unloadMovieNum(0); //unloads the current movie so we can
    reload the main menu
    loadMovieNum("DemoMainMenu.swf", 0); //reloads the main menu
    Thank you for whatever help you can provide! :)

    mcommini wrote:
    > Hey! I've got a flash file which acts as the main menu
    for a program I'm
    > developing. Everything works fine from the main menu
    however when you click to
    > return to the main menu the whole main menu file
    reloads. Is it possible to
    > use loadMovieNum( ) to go to a specific frame within the
    main swf file? If
    > not, is there a way to do this?
    First let me clarify one thing with you. Level zero is the
    main level on the flash
    player. By loading things in level zero you will remove
    current content and replace
    it with the new one. This is not a good idea because it works
    like purge, clears the
    player and from there on you can't maintain any functionality
    unless you reload the
    whole html document over again. Also, do not unload and load
    in the same time in the
    same level. Flash can hold single SWF per level, once you
    load content, whatever previously
    loaded will be automatically replaced, so just the loadMovie
    action and you all set.
    Good practice is to have the main level (zero) an empty base
    and than load and unload
    things in above levels, 1 and so on...
    > Here's the button code I'm using now:
    > on (release) {
    > unloadMovieNum(0); //unloads the current movie so we can
    reload the main menu
    > loadMovieNum("DemoMainMenu.swf", 0); //reloads the main
    menu
    > }
    >
    In regard to the load and go to. Yes it is possible but no
    matter what frame you want to
    go to,you need to load the whole movie first. I will come
    back to that in a second.
    While you execute the loadMovie action, you can set up a
    variable, for example:
    loadMovieNum("file.swf", 1);
    Variable="mcommini_01";
    Than in the loaded movie you have preloader which makes sure
    that the movie is loaded before
    playing and once done loading, make it jump to frame which
    has IF ELSE condition in some kind
    of loop, using setInterval or Enterframe. That condition
    checks for the variable value and based
    on it proceed to particular frame.
    That's why I told you not to clear level zero, if you set
    variable and load movie in that level
    in the same time, all the information will be gone and you
    have totally no reference point to
    get the variable from.
    You could as well use shared object which is native form of
    Flash's cookies. Write SOL file into
    user drive temp folder, than read it from the other file and
    go to frame based on the given value.
    Best Regards
    Urami
    Beauty is in the eye of the beer holder...
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Going to a specific frame in a clip on another page

    As may be self evident I am not an expert..... Is it possible
    for a button (or series of buttons) on one page which, when
    clicked, opens another html page with an embedded swf movie and
    then goes to a specific frame in that movie ???
    If that makes sense

    no - simply put, if the html page/SWF and frame isn't loaded
    when button is pressed - there isn't a
    way because it doesn't exist yet.
    Chris Georgenes / mudbubble.com / keyframer.com / Adobe
    Community Expert
    LindnArden wrote:
    > As may be self evident I am not an expert..... Is it
    possible for a button (or
    > series of buttons) on one page which, when clicked,
    opens another html page
    > with an embedded swf movie and then goes to a specific
    frame in that movie ???
    >
    > If that makes sense
    >

  • How link from html page to a specific frame in flash cs5 as3

    Hi!
    I'm kinda new around here. I am interested in knowing how to link from a specific html page to a specific frame in flash cs5 as3.
    I have a website that I originally began to design in flash but later started developing new pages for it in html. The flash part of it has several pages on different frames and I have created links from the flash part to the other html pages, but, I can only link the html pages back to the main flash home page, and not the other pages in the flash part of the website.
    I have read that in cs3 it was possible using the flashvars skip variable, but I don't know how to do it. I have not yet seen any working examples and I could not find any instructions / tutorials online for cs5.
    Can someone help here?

    add a query string, to the swf's embedding html, with variable/value indicating the frame you want to display in your swf.  add a javascript function to return the query string (or entire url), call the javascript function from flash using the externalinterface class.  and finally add code to your swf to parse the returned url or query string, parse it and then direct your timeline to the appropriate frame.

  • Linking to a specific frame from html?

    Hello all:
    Does anyone know if it is possible to have an html page that
    links to a swf file, but ALSO goes to a specific frame or label
    within that file? I'm trying to avoid having to start the Flash
    file from the very beginning, but I can't say that I've ever seen
    this done.
    Thanks,
    Wayne

    The simplest way:
    in the HTML you expand the two occurences of "movie.swf" (in
    the object and embed tag) to "movie.swf?jump=50", where "jump" is
    the variable name and "50" is the frame somewhere in the middle of
    your movie.swf that you want to start with.
    In the first frame of movie.swf you have actionscript
    if(this._framesloaded<jump) {
    this.gotoAndPlay(1)}
    else {
    this.gotoAndPlay(jump)}
    Of course, this doesn't check for error conditions and has
    other weaknesses, but I hope you get the point.
    Good luck
    Wolf

  • GotoAndPlay specific frame in external swf from main swf

    I have a main swf that loads 2 external swfs.
    I click on button to see content of external swf #1 and see stuff. I do something that causes external swf to show other stuff (i.e. not at beginning state)
    In the main swf I click on button to see content of external swf #2. External swf #1 content is made invisible and I see content of external swf stuff.
    NOW, if I click on button to take me back to see external swf #1, I see it's content in current state. I want to force it to start over again at frame #1 which will reset content.
    However, no matter what I try, I can't seem to control which frame to go to in external swf using gotoAndplay.
    Here is code in frame #1 of main swf to load external swfs:
    //load academic movie
    var swfLoader1:Loader = new Loader();
    container1.addChild(swfLoader1);
    var url1:URLRequest = new URLRequest("academic.swf");
    swfLoader1.load(url1);
    //load wisdom movie
    var swfLoader3:Loader = new Loader();
    container3.addChild(swfLoader3);
    var url3:URLRequest = new URLRequest("wisdom.swf");
    swfLoader3.load(url3);
    Here is code in frame 2 of main swf that checks button to see where to go in external swf:
    //academic button clicked
    function academicClick(event:MouseEvent){
       container3.alpha = 0;
       container3.visible = false;
       container1.visible = true;
       container1.gotoAndPlay(1); //this is where I am trying to force it to start at frame 1
       container1.alpha = 1;
    I don't want to reload the external movie to force it to start over.
    Any help would be much appreciated.

    You can easily control this by making the external swf to load with your movieclip, The below is the code snippet that clear on accessing the specific frame on external swf.
    //Loading clips content
    var ldr:Loader;
    var mcExt:MovieClip;
    //Loading
    loadswf("external.swf");
    function loadswf(tmp:String):void{
        unloadSwf();
        ldr= new Loader();
        ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);
        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
        ldr.load(new URLRequest(tmp));
        function progressListener (e:ProgressEvent):void{
            ploader.visible=true;
        function swfLoaded(e:Event):void {
            mcExt = e.target.content as MovieClip;
            ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
            mcExt.addEventListener(Event.ENTER_FRAME,onEnterfn);
            ploader.visible=false;
            addChild(mcExt);
    //UnLoading
    function unloadSwf():void{
        if (ldr!=null){
            ldr.unloadAndStop();
            removeChild(mcExt);
            mcExt=null;
    //Intervals (The part you work on the specific frame within the external swf
    function onEnterfn(e:Event):void{
        var num:int=mcExt.currentFrame;
        if (num==1) mcExt.play();
        if (num==9) {
                mcExt.skipmc.addEventListener(MouseEvent.CLICK,skipfn);
                function skipfn(e:MouseEvent):void{
                    mcExt.stop();
                    mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
                    gotoAndStop("help");
        if (num==mcExt.totalFrames){
            mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
            gotoAndStop("help");
    hope it solve

  • Print Specific Frames and Dynamic XML content

    Hello, I am trying to print specific frames of my Flash movie
    with the dynamic text loaded from an XML file. The code below only
    prints the current frame I am on and does not print the XML text.
    The dataOK that is commented out is a function I have before that
    loads the XML content. The XML content is loaded to dynamic text
    boxes. Any help on this would be greatly appreciated.

    I am still having difficulty loading the XML data and the
    frameNum parameter does not seem to work. Argghhhh....
    function printTut(myevent:MouseEvent):void{
    var myPrintJob:PrintJob = new PrintJob();
    var mySprite:Sprite = new Sprite();
    var printArea:Rectangle = null;
    var options:PrintJobOptions = null;
    var frameNum:int = 2;
    mySprite.addChild(stage);
    mySprite.rotation=90;
    mySprite.scaleY=.80;
    mySprite.scaleX=.80;
    myPrintJob.start();
    myPrintJob.addPage(mySprite,printArea,options,frameNum);
    myPrintJob.send();
    print_btn.addEventListener(MouseEvent.CLICK,printTut);

  • Can PrE do multiple specific frame searches?

    I'm trying to find a not too expensive editing program, possibly PRE 10, that will allow me to do a search in a video for specific frame locations based on criteria within a frame. I've done exhaustive searching on web to no avail so far. I've been using Corel Videostudio which doesn't have anything like that.
    Specifically I want to search the infamous Norwegian Bergne/Oslo train ride video, all seven hours of it. The video consists of the uninterrupted train ride, which by itself is great to watch except for one thing.
    Every time the train passes into a tunnel, or reaches a town, a blue sign drops down from the top of the screen with the location's name. That's not so bad, but then someone has inserted a very loud gong sound at that moment, totally destroying the relaxing ambience of the video.
    What I want to do is find each occurrance of this event, which is about four seconds long, and replace the audio gong sound with either silence or filler. The bad part is that there are easily a hundred plus of these, probably over 200.
    So I'm hoping that some program, somewhere, would be able to either find all of them at once, or quickly 'step' forward to each so I don't have to slowly play the video, stop, insert, hoping I don't miss one, etc. It would search keying on either something in the video frame like the big blue sign, or the sound, it really doesn't matter what.
    I've broken the video up into 30 minute segments to make editing easier and faster.
    Any advice or recommendations would be greatly appreciated!
    Thanks!

    I know of no NLE program, that offers the ability to match, or search frames. While I have not used them all, and some many versions ago, I do not recall such a function in AVID (Liquid, or Composer), PrPro, Pinnacle Studio, Magix MovieEdit Pro or CyberLink's PowerDirctor.
    There might be some forensic programs, that can do this, but not sure that anyone, outside of law enforcement would have access to it.
    Maybe others know of such software.
    In PrE, about the best that I can think of is to use the Jog Shuttle in the Program Monitor, and visually watch, as the footage goes by very quickly, stopping when one reaches a tunnel, or town.
    Good luck,
    Hunt

  • How to play a soud at specific frame?

    I have the loading audio file at frame one. However, I want to play the audio only at specific frame or frame lable. How do I do that? Below are my codes:
    //start of sound section is for sound
    var soundReq:URLRequest = new URLRequest("FlashFiles/audioFiles/mySoundmp3");
    var sound:Sound = new Sound();
    sound.load(soundReq);
    sound.addEventListener(Event.COMPLETE, onComplete);
    //end of sound section
    function onComplete(event:Event):void
        sound.play();
    The above plays the sound as soon as the .swf file is loaded. But I want to play at certain point in time, say frame number or frame lable.

    Okay, here are my code in frame one:
    //start of sound section is for sound
    var soundReq:URLRequest = new URLRequest("FlashFiles/audioFiles/Alma Mater plus roc.mp3");
    var sound:Sound = new Sound();
    sound.load(soundReq);
    //sound.addEventListener(Event.COMPLETE, onComplete);
    //end of sound section
    this.addEventListener(Event.ENTER_FRAME, playSound);
    function playSound(e:Event)
        if(e.currentLabel == "lblStartSound")
                this.removeEventListener(Event.ENTER_FRAME, playSound);
                sound.play();
    this.btn_Skip.addEventListener(MouseEvent.MOUSE_DOWN, skipFlash);
    function skipFlash(event:MouseEvent):void
        gotoAndPlay("frm_Ending");
        sound.stop();
    Errors I got are:
    1119: Access of possibly undefined property currentLabel through a reference with static type flash.events:Event.
    Source: if(e.currentLabel = "lblStartSound")
    1061: Call to a possibly undefined method stop through a reference with static type flash.media:Sound.
    Source: sound.stop();
    Eventually, if the user click the skip button, I want to stop the sound.

  • Hotspots on specific frames

    hi all
    i am a newcomer to fireworks, and i am having fun working
    with it, but i am having the newbie problem of knowing the
    limitations of the app. here's my problem:
    i'm creating my homepage with a nav bar on the left, swapping
    out images in a slice to its right. i want to add hotspots to
    various places in these images that come up in the right slice, but
    when i do they are active in other frames that get swapped into the
    slice. after a bit of research it seems that this might not be
    possible in fw and that i should add this in dreamweaver, but i
    thought i would check. is there a way to associate a hotspot with a
    specific frame or image within a slice? or is that hotspot always
    associated with the slice? i began playing with adding layers of
    slices within the one area, but this seemed to be a confusing and
    inelegant way to do this. i could do this quickly in flash, but i'm
    trying to keep my text "hot" so that it can be selected and found
    by search engines. i'm sure there's a boneheaded thing i'm doing
    wrong....
    thanks
    bruce

    Allowing FW to apply hotspots to images gives one the
    mistaken impression
    that the hotspot is somehow part of the image. It is not. The
    hotspot only
    exists in the HTML that is exported by you when you export
    your slices.
    Since most people who use FW HTML get bitten by using a
    graphics editor to
    write HTML (unless they already know enough HTML to feel
    comfortable with
    it), I don't recommend you use this procedure.
    Export your graphics from FW and use DW to build your page,
    including your
    hotspots. This answer may clue you to the fact that you
    cannot apply a
    unique hotspot to anything other than the space which an
    image occupies on
    the HTML page.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "btovsky" <[email protected]> wrote in
    message
    news:[email protected]...
    > hi all
    > i am a newcomer to fireworks, and i am having fun
    working with it, but i
    > am
    > having the newbie problem of knowing the limitations of
    the app. here's my
    > problem:
    > i'm creating my homepage with a nav bar on the left,
    swapping out images
    > in a
    > slice to its right. i want to add hotspots to various
    places in these
    > images
    > that come up in the right slice, but when i do they are
    active in other
    > frames
    > that get swapped into the slice. after a bit of research
    it seems that
    > this
    > might not be possible in fw and that i should add this
    in dreamweaver, but
    > i
    > thought i would check. is there a way to associate a
    hotspot with a
    > specific
    > frame or image within a slice? or is that hotspot always
    associated with
    > the
    > slice? i began playing with adding layers of slices
    within the one area,
    > but
    > this seemed to be a confusing and inelegant way to do
    this. i could do
    > this
    > quickly in flash, but i'm trying to keep my text "hot"
    so that it can be
    > selected and found by search engines. i'm sure there's a
    boneheaded thing
    > i'm
    > doing wrong....
    > thanks
    > bruce
    >

  • HI Im trying to make my as3 start on a specific frame but for some reason I just cant find a solutio

    THe below is the AS and i am trying to make it start on a specific frame, can anyone help me please?
    package
    import fl.controls.Button;
    import flash.display.Bitmap;
    import flash.display.Loader;
    import flash.display.MovieClip;
    import flash.net.FileFilter;
    import flash.net.FileReference;
    import flash.text.TextField;
    import flash.text.TextFieldType;
    import flash.events.MouseEvent;
    import flash.events.Event;
    public class BitmapLoader extends MovieClip
      private static const _MAX_WIDTH: Number = 640;
      private static const _MAX_HEIGHT:Number = 410;
      private var _fileRef:FileReference;
      private var _fileFilter: FileFilter;
      private var _loader: Loader;
      private var _bitmap:MovieClip;
      private var _browseBtn:Button;
      private var _staticTxt:TextField;
      private var _browseTxt:TextField;
      public function BitmapLoader( )
       _init( );
      private function _init( ):void
       _staticTxt = new TextField ( );
       _staticTxt.type = TextFieldType.DYNAMIC;
       _staticTxt.x = 10;
       _staticTxt.y = 10;
       _staticTxt.height = 21;
       _staticTxt.text = "Select a Video:";
       addChild( _staticTxt );
       _browseTxt = new TextField ( ) ;
       _browseTxt.type = TextFieldType.INPUT;
       _browseTxt.x = _staticTxt.x + _staticTxt.width + 4;
       _browseTxt.y = 10;
       _browseTxt.height = 21;
       _browseTxt.width = 200;
       _browseTxt.border = true;
       _browseTxt.background = true;
       addChild( _browseTxt );
       _browseBtn = new Button ( ) ;
       _browseBtn.label = "Browse";
       _browseBtn.name = "browse";
       _browseBtn.x = _browseTxt.x + _browseTxt.width + 4;
       _browseBtn.y = 10;
       _browseBtn.useHandCursor = true;
       _browseBtn.addEventListener(MouseEvent.CLICK, _handleMouseEvent);
       addChild( _browseBtn );
       _fileFilter = new FileFilter("clips","*.swf;*.flv;*.f4v;*.mov;*.mp4");
      private function _handleMouseEvent( evt : MouseEvent ):void
       switch ( String ( evt.target.name ))
        case "browse" :
         _fileRef = new FileReference ( ) ;
         _fileRef.browse( [_fileFilter]);
         _fileRef.addEventListener( Event.SELECT, _onImageSelect);
         trace( "Browse" );
         break;
      private function _onImageSelect( evt : Event ):void
       _fileRef.load( );
       _fileRef.addEventListener(Event.COMPLETE, _onDataLoaded);
       _browseTxt.text = String(evt.target.name);
      private function _onDataLoaded(evt:Event ):void
       var tempFileRef:FileReference = FileReference(evt.target);
       _loader = new Loader( ) ;
       _loader.contentLoaderInfo.addEventListener( Event.COMPLETE, _onImageLoaded );
       _loader.loadBytes( tempFileRef.data );
      private function _onImageLoaded(evt:Event ):void
       _bitmap = MovieClip(evt.target.content);
       _bitmap.smoothing = true;
       _bitmap.x = 5;
       _bitmap.y = _browseTxt.y + _browseTxt.height + 5;
       addChild( _bitmap );
       if (_bitmap.width > _MAX_WIDTH || _bitmap.height > _MAX_HEIGHT)
        _resizeBitmap( _bitmap );
      private function _resizeBitmap( target : MovieClip ):void
       if (target.height > target.width)
        target.width = _MAX_WIDTH;
        target.scaleY = target.scaleX;
       else if (target.width >= target.height )
        target.height = _MAX_HEIGHT;
        target.scaleX = target.scaleY;

    I'm confused. It looks like you're placing everything through ActionScript, so it would seem you don't really have a timeline involved. If you do have a timeline involved that's not reflected in your code, have you tried gotoAndPlay(someFrame)? I don't see anything like that in your code.

  • Removing a Button Event Listener on a Specific Frame and Reactivating it on Next Frame

    Hi , i am trying to develop a Slideshow where Next Button needs to behave in a certain way on a specific Frame , lets say a Specific Condition is met only then Next Button would work , I have been able to achieve that but problem is the Button Retains its Event Listener even on the next Frame , whereas  i have already included removeEventListener on the next frame with a new Function for the button , but its doesnt take it like that.
    Can anyone help please ?

    Hello Ned,
    I have fixed the issue with few Frame , but where we have the conditions to be met on two consecutive frames , I am not able to achieve that.
    here is the Code on my first Frame.
    FRAME1
    stop();
    slidecounter.text = String(this.currentFrame - 1 + "/" + indexframe);
    mc_prog.width = 0;
    //LIBRARIES TO BE IMPORTED ///////////////////////////////////////////////////////////
    import flash.events.MouseEvent;
    //VARIALBLES INITIATED
    var score:Number = 0;
    var questions:Number = 0;
    var qtotal:Number = 11;
    var attempt:Number = 0;
    var indexframe:int;
    indexframe = this.totalFrames - 1;
    var notes:Array = new Array();
    var count:int;
    count = 0;
    var backcounter:int;
    backcounter = 0;
    var count2:int;
    count2 = 0;
    var backcounter2:int;
    backcounter2 = 0;
    var count3:int;
    count3 = 0;
    var backcounter3:int;
    backcounter3 = 0;
    // MOVIE CLIPS INITITATED ////////////////////////////////////////////////////////////////
    var volbutton1:volcontrol;//VOLUME BUTTON ROLLOVER MOVIE CLIP
    volbutton1 = new volcontrol();
    var clist:courselist;//VOLUME COURSE LIST ROLLOVER MOVIE CLIP
    clist = new courselist();
    var pop1:Mc_slide9 = new Mc_slide9;
    pop1 = new Mc_slide9;
    var pop2:Mc_slide13 = new Mc_slide13;
    pop2 = new Mc_slide13;
    var pop3:Mc_slide17 = new Mc_slide17;
    pop3 = new Mc_slide17;
    //BUTTONS INITIATED
    btn_nxt.addEventListener(MouseEvent.CLICK, fl_ClickToGoToNextFrame);//NEXT SLIDE BUTTON
    btn_bck.addEventListener(MouseEvent.CLICK, backbtn);//BACK BUTTON
    btn_loc.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage); //LIST OF COURSES BUTTON
    btn_notice1.addEventListener(MouseEvent.CLICK, loadnotice1);
    pop1.closebtn.addEventListener(MouseEvent.CLICK, unloadbtn1);
    btn_notice2.addEventListener(MouseEvent.CLICK, loadnotice2);
    pop2.closebtn.addEventListener(MouseEvent.CLICK, unloadbtn2);
    btn_notice3.addEventListener(MouseEvent.CLICK, loadnotice3);
    pop3.closebtn.addEventListener(MouseEvent.CLICK, unloadbtn3);
    //VOLUME BUTTON ROLL OVER FUNCTION EVENT LISTENERS ///////////////////////////////////////
    btn_vol.addEventListener(MouseEvent.ROLL_OVER,vol);
    btn_vol.addEventListener(MouseEvent.ROLL_OUT,volout);
    btn_loc.addEventListener(MouseEvent.ROLL_OVER,coursel);
    btn_loc.addEventListener(MouseEvent.ROLL_OUT,corlist);
    // FUNCTIONS INITIATED /////////////////////////////////////////////////////////////////
    function fl_ClickToGoToNextFrame(event: MouseEvent): void
      nextFrame();
    function backbtn(event:MouseEvent):void{
       prevFrame();
    function fl_ClickToGoToWebPage(event: MouseEvent): void {
      navigateToURL(new URLRequest("https://www.onlineinduction.com/fmgl/courselist.php?ist=2&type=Vendor Employee Inductions"), "_self");
    //VOLUME BUTTON ROLLOVER EFFECT FUNCTION
    function vol(e:MouseEvent):void
      addChild(volbutton1);
      //popup_instance.width = 675;
      //popup_instance.height = 300;
       if(this.currentFrame == 2)
        volbutton1.x = 150;
        volbutton1.y = 528;
       else{
        volbutton1.x = 278;
        volbutton1.y = 528;
      function volout (e:MouseEvent):void {
        removeChild(volbutton1);
       function coursel(e:MouseEvent):void {
       addChild(clist);
        if(this.currentFrame == 2)
         clist.x = 85;
         clist.y = 532;
        else if(this.currentFrame == 5){
         clist.x = 115;
         clist.y = 325;
        else{
         clist.x = 175;
         clist.y = 532;
      function corlist (e:MouseEvent):void {
        removeChild(clist);
    function loadnotice1(Event:MouseEvent):void//FRAME 9 FUNCTION FOR IMPORTANT NOTICE
      if ( count == 1 && stage.contains(pop1))
       removeChild(pop1);
        if(count == 1)
         nextFrame();
        else
         addChild(pop1);
         pop1.x = 40;
         pop1.y = 120;
         count = 1;
      trace("Counter Value:" + count);
    function loadnotice2(Event:MouseEvent):void//FRAME 9 FUNCTION FOR IMPORTANT NOTICE
      if ( count2 == 1 && stage.contains(pop2))
       removeChild(pop2);
        if(count == 2)
         nextFrame();
        else
         addChild(pop2);
         pop2.x = 40;
         pop2.y = 120;
         count2 = 1;
      trace("Counter Value:" + count);
    function loadnotice3(Event:MouseEvent):void//FRAME 9 FUNCTION FOR IMPORTANT NOTICE
      if ( count3 == 1 && stage.contains(pop3))
       removeChild(pop3);
        if(count == 3)
         nextFrame();
        else
         addChild(pop3);
         pop2.x = 40;
         pop2.y = 120;
         count2 = 1;
      trace("Counter Value:" + count);
    function nextframe9(event: MouseEvent): void
        if(count == 1 && stage.contains(pop1) )
           removeChild(pop1);
        if(count == 1)
         nextFrame();
        else
         addChild(pop1);
         pop1.x = 40;
         pop1.y = 120;
         count = 1;
    function nextframe13(event: MouseEvent): void
        if(count2 == 1 && stage.contains(pop2) )
           removeChild(pop2);
        if(count2 == 1)
         nextFrame();
        else
         addChild(pop2);
         pop2.x = 40;
         pop2.y = 120;
         count2 = 1;
    function nextframe17(event: MouseEvent): void
        if(count3 == 1 && stage.contains(pop3) )
           removeChild(pop3);
        if(count3 == 1)
         nextFrame();
        else
         addChild(pop3);
         pop3.x = 40;
         pop3.y = 120;
         count3 = 1;
    function backbtnscript1(event:MouseEvent):void
       if(stage.contains(pop1) )
          removeChild(pop1);
          backcounter = 1;
          trace("back" + backcounter);
          prevFrame();
    function unloadbtn1 (e:MouseEvent):void {
      removeChild(pop1);
    function backbtnscript2(event:MouseEvent):void
       if(stage.contains(pop2) )
          removeChild(pop2);
          backcounter2 = 1;
          trace("back" + backcounter2);
          prevFrame();
    function unloadbtn2 (e:MouseEvent):void {
      removeChild(pop2);
    function backbtnscript3(event:MouseEvent):void
       if(stage.contains(pop3) )
          removeChild(pop3);
          backcounter3 = 1;
          trace("back" + backcounter3);
          prevFrame();
    function unloadbtn3 (e:MouseEvent):void {
      removeChild(pop3);
    //SLIDE COUNTER
    and here is the Code on all the Frames where I need to call in specific Listeners
    FOR EXAMPLE ON FRAME 8,9,10,
    Here Is the Code ,
    FRAME 8
    stop();
    slidecounter.text = String(this.currentFrame - 1 + "/" + indexframe);
    count = 0;
    backcounter = 0;
    btn_nxt.addEventListener(MouseEvent.CLICK , fl_ClickToGoToNextFrame);
    btn_bck.addEventListener(MouseEvent.CLICK, backbtn);
    btn_bck.removeEventListener(MouseEvent.CLICK , backbtnscript1);
    btn_nxt.removeEventListener(MouseEvent.CLICK , nextframe9);
    pop1.closebtn.addEventListener(MouseEvent.CLICK, unloadbtn1);
    //btn_notice1.addEventListener(MouseEvent.CLICK , loadnotice1);
    FRAME 9
    stop();
    slidecounter.text = String(this.currentFrame - 1 + "/" + indexframe);
    //POPUP FUNCTION
    count = 0;
    btn_nxt.removeEventListener(MouseEvent.CLICK , fl_ClickToGoToNextFrame);
    btn_bck.removeEventListener(MouseEvent.CLICK, backbtn);
    btn_bck.addEventListener(MouseEvent.CLICK , backbtnscript1);
    btn_nxt.addEventListener(MouseEvent.CLICK , nextframe9);
    btn_notice1.addEventListener(MouseEvent.CLICK , loadnotice1);
    FRAME 10
    stop();
    slidecounter.text = String(this.currentFrame - 1 + "/" + indexframe);
    count = 0;
    backcounter = 0;
    btn_nxt.addEventListener(MouseEvent.CLICK , fl_ClickToGoToNextFrame);
    btn_bck.addEventListener(MouseEvent.CLICK, backbtn);
    btn_bck.removeEventListener(MouseEvent.CLICK , backbtnscript1);
    btn_nxt.removeEventListener(MouseEvent.CLICK , nextframe9);
    pop1.closebtn.addEventListener(MouseEvent.CLICK, unloadbtn1);
    I am repeating this Pattern on each frame set where I need these Listeners ,
    Problem is with the next one where I have two consecutive frames have different conditions to meet, any ideas how would I disable and enable listeners respectively on these frames ?
    I hope I am not confusing this very much ?;(

  • Getting a FLV to loop back toward a specific frame using Netstream (as3)

    To preface this my knowledge of AS3 is quite novice. As the thread titled reads, I'm trying to get an FLV to play through it's entireity and then loop back towards a specific frame and keep replaying from the point endlessly. After a lot of digging I found a video tutorial using AS3 that worked! Here's my situation now though, I cannot find the right code to insert to make the video loop back to the frame that I want. The FLV just stops and doesnt rewind at the end of the video. Here is my code so far:
    var video:Video = new Video(1980, 1020);
    addChild(video);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    var meta:Object = new Object ();
    meta.onMetaData = function (meta: Object)
              trace(meta.duration);
    ns.client = meta;
    video.attachNetStream(ns);
    ns.play("All.flv");
    Ultimately, the video needs to play all the way through only on the first load and then loop back to frame 319 and play toward the end and loop back again to frame 319 infinitely. I think I'm almost there, I just need some assistance with getting my code working appropriately. I done this before using "gotoAndPlay()" but the loop isnt seamless thus it yields a one second pause before looping back. I'm hoping using a Netstream function that this will be resolved. I would appreciate any help!

    Okay let me try and get this checked through you before I attempt to implement what you've recommend for a seamless loot at the aformentioned time in the previous post:
    var video:Video=new Video(1980,1020);
    addChild(video);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream=new NetStream(nc);
    ns.addEventListener(
    var video:Video=new Video(1980,1020);
    addChild(video);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream=new NetStream(nc);
    ns.addEventListener(Event.ENTER_FRAME,);  <-----not too sure about the rest of the syntax here
    ns.client = this;
    video.attachNetStream(ns);
    ns.play("All.flv");
    function onMetaData(obj:Object):void{
        trace(obj.duration);
    function netStatusF(e:NetStatusEvent):void {
            switch (e.info.code) {
                  case "NetStream.Play.Stop":
                  ns.seek(10.6106);
                  break;
    Hmmm, curious about where the"loop" and ns.time syntax should be placed.

Maybe you are looking for

  • Adobe muse - how to upload images in photo gallery in the admin console?

    Question from Adobe Muse beginner - I can't figure out how images can be uploaded in a slideshow/photo gallery in the admin console? I can edit or delete images but not upload additional images?

  • Error 7 occured at Open VI Reference in

    The error is actually displayed after each and every Printer VI like SetMagins, PageSize, AddField, CloseReport but NOT after the NewReport.vi Call!

  • TS2771 help the home button on my ipod touch is stuck

    the circle home button on my ipod touch is stuck. There was trouble charging it but now it will charge just the button is stuck. Does anyone know how to help?

  • Includes in BridgeTalk object

    Hi all, I'm writing a module to execute scripts from InDesign to Photoshop. I used bridge talk and the module works until now I would like to include a library in the photoshop script but this script in executed in the photoshop context so I cannot u

  • How to handle scrap occured during processing

    Hi all, I am facing problem with handling the scrap occured during processing. The case here is i want to scrap the material eg ABC, and want to sell the same material with different material no., unit of measurement. The present process is as below,