Keep package functions from starting automatically

hey everyone! this should be simple.
i've got a movie clip which i "exported for actionscript" inside of the properties dialog.
this is the code inside of the package that was created to go along with it (MovieClipName.as)
package
     import flash.display.MovieClip;
     import flash.utils.Timer;
     import flash.events.TimerEvent;
     import flash.events.Event;
     import flash.display.Loader;
     import fl.transitions.Tween;
     import fl.transitions.easing.*;
     import fl.transitions.TweenEvent;
     import flash.net.URLRequest;
     import flash.display.Bitmap;
     import flash.trace.Trace;
     public class cont extends MovieClip
          public var mCONTENT:Array=new Array();
          public var mUBTIL:Array=new Array();
          public var NOBAR:Boolean = false;
          public var MASTER:Timer = new Timer(5000,1);
          public var p:Number = 0;
          public var q:Number = 1;
          public var ChurnerI:Tween;
          public var ChurnerII:Tween;
          public var lod:Loader = new Loader();
          public function startSlideshow()
               trace("CONT IS ACTIVE!!!")
               NOBAR=false;
               MASTER.addEventListener(TimerEvent.TIMER, reportProcessComplete);
               MASTER.start();
               loadSequentialPictures();
               function beginSlideshowLoop()
                    if (NOBAR != true)
                         MASTER.start();
                         loadSequentialPictures();
               function reportProcessComplete(e:Event)
                    p++;
                    if (p == 2)
                         p = 0;
                         movePics();
               function reportMovementComplete()
                    wrapper();
                    beginSlideshowLoop();
               function wrapper()
                    q++;
                    if (q == mCONTENT.length)
                         q = 0;
               function loadSequentialPictures()
                    if (mCONTENT.length > 1)
                         if (mCONTENT[q] is Bitmap)
                              mCONTENT[q].y = 0;
                              mCONTENT[q].width = 857;
                              mCONTENT[q].height = 512;
                              mCONTENT[q].x = 857 + 2;
                              stage.addChild(mCONTENT[q]);
                              reportProcessComplete(null);
                         else
                              loadSeqPic();
               function loadSeqPic()
                    var request:URLRequest = new URLRequest("http://www.jawilsonarchitects.biz/portphot/" + mCONTENT[q]);
                    lod= new Loader();
                    lod.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, seqLoaded);
                    lod.load(request);
               function seqLoaded(e:Event)
                    var JohnIII:Bitmap = Bitmap(lod.content);
                    mCONTENT.splice(q,1,JohnIII);
                    mCONTENT[q].y = 0;
                    mCONTENT[q].width = 857;
                    mCONTENT[q].height = 512;
                    mCONTENT[q].x = 857 + 2;
                    stage.addChild(mCONTENT[q]);
                    reportProcessComplete(null);
               function movePics()
                    ChurnerI = new Tween(stage.getChildAt(0),"x",Regular.easeInOut,stage.getChildAt(0).x,-857 - 2,15,false);
                    ChurnerII = new Tween(stage.getChildAt(1),"x",Regular.easeInOut,stage.getChildAt(1).x,0,15,false);
                    ChurnerII.addEventListener(TweenEvent.MOTION_FINISH, reset);
               function reset(e:Event)
                    stage.removeChildAt(0);
                    reportMovementComplete();
most of the code shouldn't matter. i'm new to packages and i just want to know how to keep startSlideshow() from triggering when a new instance of this movieclip is created. i would prefer if something like ThisMovieClip.startSlideshow() had to be triggered. please excuse my dorky labels, etc. thank you!
EDIT: oh! and it would be helpful if you could tell me how to add things to the inside of the movieclip from this package. i assumed adding it to the stage would do the trick but i haven't been able to test to find the right method yet. from the timeline i could just use Movieclip.addChild(picture) but i don't know how to do it from within the package. thanks again.
Message was edited by: JohnFour

Nested functions are those functions inside another function.
In your case, all functions are inside you main function.
This is bad because you can't reach them from the outside of the wrap function (the function that have functions inside), and for another infinity set of things
And about the initial problem, did you solved it putting the missing parenthesis?
If you want your class being instantiated AND run right from the start, put a constructor function (a function with the same name of the class) on it.
If not, just don't do this.
(Confusing answer, I know!!)
And to address your edit, can you specify a little?
Do you want add images to this class or put the class on your stage?

Similar Messages

  • How to execute a packaged function from within DML

    Hi
    can someone explain in how many ways can we execute a packaged function from within a DML statement.
    examples will help.
    Thanks

    Hi,
    There's no difference between using functions in DML and using functions in any other SQL statement. Almost any place where a literal is allowed, you can have any kind of expression, including a an expression involving one or more functions.
    For example, in
    UPDATE  table_x
    SET     column_a = 0
    WHERE   column_b > SYSDATE;You could use functions instead of 0, column_b, or SYSDATE. (Actually, SYSDATE is a function.) You can not use functions instead of table_x or column_a (since it is to the left of the "=" sign).

  • Stop Skype from starting automatically on Windows 7

    Hello, I have seen some information regarding how to stop Skype from starting automatically on Macs, but for Windows 7, I have yet to see any information. If someone could provide me an answer as to how to stop Skype from opening as soon as I start my computer, that would be great. Thanks.

    alex3939 wrote:
     Found a solution! I had that problem too, but found that if I sign into my account, THEN choose tools -> options, there is a general setting tab where you can unclick "start skype when I start windows". So sign in to your account first, then click tools, options, general settings, and unclick "start skype when I start windows".see post #11 in this threadhttp://community.skype.com/t5/Windows-desktop-client/Stop-Skype-from-starting-automatically-on-Windows-7/m-p/2013293#M194838 in other words, the solution is already in this thread it's probably best to read a thread in it's entirety before posting 

  • Prevent Skype from starting automatically

    I need to prevent Skype for Android from starting automatically so it will not ring when a call comes in to my Skype-In number. Most of the time I want calls to my Skype-In number to ring on my Skype phone at home only.

    I know this is an old post but this is a quite common and relevant topic with which I've spent sometime and would like to drop the solution, at least for Fedora 22 under KDE. In order to avoid skype to start at startup/login (which is quite annoying and a privacy invasion) I just deleted the file /etc/prelink.conf.d/skype.conf and that was it.(let's see if this post is up in the skype forum for long ?!)

  • How can I disable the Mail program from starting automatically on boot?

    Why everytime I start my computer, the Mail program start automatically?...how can I disable this?
    Thanks!

    Control-click its Dock icon and set it not to open at login, or remove it from the list of login items for your user account in the Accounts pane of System Preferences.
    (40415)

  • Calling Oracle Package Function from Visual Basic

    Hi,
    Oracle Client 8.04
    Oracle ODBC Driver 8.00.04
    VB 6.0
    Windows 2000
    I'm stumped here. I want to have a Oracle stored procedure run a
    query and return a result set which I can assign to a recordset
    object in VB. Based on things I've read here and on MS's site,
    here's what I've done:
    In the Oracle Schema Manager under the Packages folder I created
    the following package:
    PACKAGE test
    IS
    TYPE test_cur IS REF CURSOR;
    FUNCTION mycur RETURN test_cur;
    END test;
    and under the Package Body folder created:
    PACKAGE BODY test
    IS
    FUNCTION mycur RETURN test_cur
    IS
    c_return test_cur;
    BEGIN
    OPEN c_return FOR
    SELECT * FROM table_A;
    RETURN c_return;
    CLOSE c_return;
    END mycur;
    END test;
    They both compile without errors and in Oracle SQL Worksheet I
    can enter the following:
    variable x refcursor;
    execute :x :=test.mycur;
    print x;
    and the query results are displayed as expected.
    The problem is trying to get the result back into a VB recordset
    object.
    In VB 6.0 I have done this:
    Dim RS As ADODB.Recordset
    Dim Conn As ADODB.Connection
    Dim sConnection As String
    Dim sSQL As String
    sSQL = "{call test.mycur}"
    sConnection = "Provider=MSDASQL;UID=" & sUserID & ";PWD=" &
    sPassword & ";Driver={Microsoft ODBC for Oracle}; Server=" &
    sInstance & ";"
    Conn.Open sConnection
    RS.CursorLocation = adUseClient
    RS.Open sSQL, Conn, adOpenForwardOnly, adLockOptimistic,
    adCmdStoredProc ' or adCmdText
    but get:
    ?err.Number -2147217900
    ?err.Source Microsoft OLE DB Provider for ODBC Drivers
    ?err.Description [Microsoft][ODBC driver for Oracle]Syntax error
    or access violation
    The problem is not with the connection or permissions, since the
    query works fine when I just use the select statement in the
    package function as the string, instead of calling the function
    in the package (eg sSQL = "Select * from table_A") and can
    process the resulting recordset in VB.
    I've also tried variations using:
    Set RS = Conn.Execute("{call test.mycur}")
    or using a Command object something like:
    Dim com As ADODB.Command
    Set com = New ADODB.Command
    With Conn
    .ConnectionString = sConnection
    .CursorLocation = adUseClient
    .Open
    End With
    With com
    .ActiveConnection = Conn
    .CommandText = sSQL
    .CommandType = adCmdText
    End With
    Set RS.Source = com
    RS.Open
    But still get the same errors. Any help is appreciated. Also, in
    my package body, is it necessary to explicitly close the cursor,
    or does the function just exit when it executes the return and
    not ever hit the close statement?
    Thanks,
    Ed Holloman

    Hi
    i don't know if you got your answer, but i work with VB and
    Oracle.
    the procedure in the DB should have the cursor like you writen
    in your mail.
    to call a procedure in Oracle and get the data back
    into a recordset you shuld use a Command object like this:
    Dim conn As ADODB.Connection
    Dim cmd As ADODB.Command
    Dim rs As ADODB.Recordset
    Set conn = CreateObject("adodb.connection")
    Set cmd = CreateObject("adodb.command")
    Set rs = CreateObject("adodb.recordset")
    With conn
    .ConnectionString = ""
    .CursorLocation = adUseClient
    .Open
    End With
    'THE IMPORTENT SECTION IS THIS WHERE YOU SET THE COMMAND TO THE
    STORE PROCEDURE TYPE
    With cmd
    .ActiveConnection = conn
    .CommandText = "proc.fun"
    .CommandType = adCmdStoredProc
    End With
    'Then you set the rs to the command
    Set rs = cmd.Execute
    Set conn = Nothing
    Set rs = Nothing
    Set cmd = Nothing

  • How can I keep certain apps from starting at login?

    I have Break Reminder installed. It isn't compatible with certain accessibility tools. It isn't something that I want to start every time I use the computer. But it does start every time I use the computer. I don't tell the computer to restart apps at start up. I don't list the apps in the Login Items list. It just starts itself. How can I keep it from starting itself?

    go to system preferences / Users Groups / Login items
    (make sure your lock at bottom left side of window is unlocked) if it isn't you will be asked to insert your user password if you don't have one just hit enter (unlock)
    from there you get to choose your startup applications simply add/remove  with +/- under the windows
    once you made changes don't forget to lock the lock to prevent changes and you should be set
    good luck

  • Howto prevent Oracle XE 11g from start automatically in windows ?

    I complete the installation of OraceXE 11g in windows, noticed it start automatically on the next boot. I wonder if there is a way to run a configuration setting to let the application start on boot or not.
    Yes I can go to the services and disable, but just wondering if there was a configuration tool to make it easier.
    THX Dino.

    Hello Dino,
    you could take a look at the sc.exe, as decribed in this [url http://support.microsoft.com/default.aspx?scid=kb;en-us;251192]MS Knowledge Base Article, e.g.
    sc config OracleServiceXE start= demandNote that there really must be a blank between start= and the value for that option.
    Simply run this for any Windows service you don't like to start automatically.
    The KB-article gives you any additional information you may need.
    -Udo

  • How can I keep iPhot  09 from starting up every time I boot my Intel iMac? I am using OSX 10.6.8

    How can I keep iPhoto 09 from opening every time I boot my Intel iMac? I am using OSX 10.6.8

    IF it is opening in import mode:
    Do you have an external drive or device (iPhone, USB key) plugged into iPhoto?  If so, there are some photo files on it that make iPhoto think it has photos to import.  Remove the device, delete the photos or move the photos to another folder on the device.
    If it is not openeing in import mode, it must be in your startup items.  Drag it from there.

  • How can I stop Adobe Illustrator from starting automatically i boot

    Every time I turn on my imac, Adobe Illustrator launches automatically. It is not that big a deal, but it is annoying and I cannot figure out how to stop it. I think my 3 yo daughter did it by accident! Thanks for your feedback in advance

    Go to System Prefs>Accounts>your name and remove Adobe from the start-up items. There should also be a place in Adobe preferences that asks if you want it to launch when the computer starts, Deselect that option.

  • How do I disable Firefox from starting automatically when I restart my computer

    When I restart my computer (MacBook Pro) Firefox (18.0.2) automatically starts up.

    See:
    * https://support.mozilla.org/kb/Firefox+launches+automatically+when+your+computer+starts

  • How do I prevent Skype from starting automatically on arch linux?

    there was point in the settigs "General" folder, but now i can't see it, so how should i prevent this from autostart?I don't use pulseaudio, so i have apulse - pulseaudio emulation tool to use skype without pulseaudio and have modified my skype shortcut to run with itWhen skype autostart - it doesn't use apulse so there is no sound and i have to restart it. thats annoyingAlso i don't use skype to much so i don't need it to autostart even if i had pulseaudioSo, how will i prevent it from autostart?

    I know this is an old post but this is a quite common and relevant topic with which I've spent sometime and would like to drop the solution, at least for Fedora 22 under KDE. In order to avoid skype to start at startup/login (which is quite annoying and a privacy invasion) I just deleted the file /etc/prelink.conf.d/skype.conf and that was it.(let's see if this post is up in the skype forum for long ?!)

  • Problem calling a packaged function from an authorization scheme

    I wrote a package and body called pkg_auth with a function returning a boolean called is_authorized with 2 parameters (username and functional area).
    i.e.
    CREATE OR REPLACE PACKAGE pkg_auth
    AS
    FUNCTION is_authorized(p_username VARCHAR2, p_functional_area VARCHAR2) RETURN BOOLEAN;
    END;
    additionally i created a public synonym for it and granted execute access on it to apex_public_user and htmldb_public_user;
    i then created an authorization scheme called 'access_control_db' defined as Scheme Type 'PLSQL Function Returning Boolean' and placed the following:
    pkg_auth.is_authorized(v('APP_USER'),'DATABASE')
    in the Expression 1 field.
    and the following:
    Not permitted to edit database information.
    in the error field.
    However when I apply this authorization scheme to a buton I receive the following error when I go to the page containing that button:
    ORA-06550: line 1, column 44: PLS-00221: 'IS_AUTHORIZED' is not a procedure or is undefined ORA-06550: line 1, column 44: PL/SQL: Statement ignored
         Error      ERR-1082 Error in executing authorization scheme code.
    Any help would be most appreciated.

    Hello,
    Does putting 'return' infront -
    return pkg_auth.is_authorized(v('APP_USER'),'DATABASE')fix your problem?
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Stop application from starting automatically?

    Hi,
    I recently configured a backup utility to auto-start at 2am ET, from within the application's settings.
    Unfortunately, when I changed the time to start at a different time, it didn't work. My computer still autostarts the app at 2am.
    I've sent an email to the developers, but in the meantime, does anyone know a terminal command or 3rd party application that will let me view the auto-start times of different applications, and configure them?
    Thanks in advance,
    Eric

    there is no terminal command like that. this is specific to the application in question. what is it?

  • How to prevent cust. Functions from getting automatically deleted?!

    Hello,
    I was just going to implement a new method in MAS to handle specific events, but I just realized I am getting in conflict with the code generation functionality.
    Until now, I only used the design mode to add new event handler methods and it worked so far fine. Today I came to the point to implement a specific event handler "Private Sub mCore_beforeLoad() Handles mCore.beforeLoad", which was not listed in the design screen of the tiles.
    I basically come to the point where I have two questions
    1) Is there a way in the design mode to list & add those event handler methods?
    2) What happens if I want to create my own methods? Where do I have to place them in the code to prevent them from being overwritten?!
    I saw always a generic comment above any method, so I expect there is a specifc way to "register" those methods.
    Regards,
    Andreas

    Hi Andreas,
    In a tile in MAS you can do the following -
    1.Add code in event handlers (this includes even handlers provided by framework OR custom even handlers). If you want to write code in event handlers provided by framework, open the tile code and right click on "event handler" node and select "new". If the event handler already exists then open it and write code. For creating custom events, click on node "events" and select "new".
    Example: check tile camcdetail. There is a custom event "RefreshTree". You can raise custom events using RaiseEvent RefreshTree()
    2.Write code in methods - In a tile, you can create your own methods by right clicking on node "methods" and selecting "new".
    hope this helps.
    cheers
    Vivek

Maybe you are looking for

  • Usb flash drive - How open?

    I am new to Apple interface

  • Deleted My Music Folder

    I have lost/deleted "my music" folder from my computer, i can no longer open iTunes without it, the following error message appears when i try to open it-- The folder "iTunes" cannot be found or created and is required. The default location for this

  • How to check history what been changed in WBS/Network

    Good Day, PLease advice, is there any standard report or tcode to check who change the settlement rule whether in Network or WBS. I have tried CN60 and KOSRLIST_PR and also table CDHDR but i cannot find who change and what kind of changes user did in

  • HT201436 Why can't I make calls

    HI I've bought an iPhone 3G and it will not let me call the phone and make calls can u help me thanks Lorraine

  • Trouble with iWeb

    I'm having trouble uploading changes to look the same as what I created on the original document. Never had this problem before with iWeb. The fonts sizes and colors are all messed up now on the uploaded version and a block of color appears where it'