Calling functions in the order I want?

In a Layer I have 2 functions, function1() and function2().
I am trying to call these function from an another Layer, in
following order:
function1();
function2();
But no matter what I do, Actionscript choose to call
function2() before function1(). I find this very strange.
Something is wrong. Do you know what?
Thank you all for your help!

Well, the evidence is pretty simple.
In Layer A I write:
function myFunction1(){
trace(“test1”);
function myFunction2(){
trace(“test2”);
In Layer B I call these functions
_root.myFunction1();
_root.myFunction2();
I should expect:
test1
test2
No matter what I do, "test2" appears before "test1".
When you are testing this, make sure that you are calling the
functions from different Layer. Read the link myIP has posted!

Similar Messages

  • PSE 3, Can't burn DVD in the order I want

    This may sound like the easiest thing to do but I cannot burn a DVD of jpgs in the order I want. I have file of photos taken on two different cameras at slightly different times. I re organized all the photos in a collection but I cannot figure out how to burn a DVD of these jpgs in that order. I select all teh photos in the collection but when I go to File-Burn it wants to burn the catalog, not the collection. I tried creating a slide show but that doesn't seem to get me anywhere either.
    HP, Vista Home Premium, 2GB ram, HP light scribe burner

    Absolutely fantastic. Export did it just like your instructions above. When I view the DVD as a slide show all the photos are where I want them to be which is now the new order on the disc. PSE usually has a solution for most everything but if you don't what it is you don't know where to go.
    By the way. I got a new laptop and desk unit about a year ago both with Vista HP. I loaded my PSE3 on both and have not had a problem with either one as far functionality. Bear in mind though I don't consider myself to be an expert user so there may be some things that don't work as they should. Thanks again.

  • How do I make sure AddInstance adds the extra pages in the order I want?

    My project is nearly complete. All thats left is to get the add instance button at the bottom of the second page to function in the way I want. Currently it's set on click with the following script.
    statcardform.frontpage.instanceManager.addInstance(1);
    statcardform.backpage.instanceManager.addInstance(1);
    When I click the button it adds a copy of the frontpage after the original frontpage, and a copy of the backpage after the original backpage. This is not what I had in mind. I need it to keep each front and backpage together, and add each repeated front and back page after the backpage so if you were to click the button multiple times you would get several copys of the same two page form.
    frontpage
    backpage
    frontpage
    backpage
    frontpage
    backpage
    etc...
    Currently what it does is this
    frontpage
    frontpage
    frontpage
    backpage
    backpage
    backpage
    How can I fix this so it works the way I want?
    The binding tab for each page is set to "Repeat Subform for each Data Item" and an initial count of "1" with no minimum and no maximum.

    Why not wrap the front and back page into another subform (I will call it doc). Then you woudl only have to repeat doc.
    Make sense?
    Paul

  • I have a PC. When I upload more than one photo I need to move them to where they print in the order I want them to print. How can I do this?

    I have a PC. When I bring my uploaded photos from my computor into the organizer, I want to rearrange them so when I print them they come out in the order I want them to print. Any reccomendations on how to do this?  I need rearrange them and need to print about four photos per page.

    Anyone?

  • In IPhoto I have edited the order of my images. When I play the album on Apple TV the order reverts back to the time stamp. Any suggestions on how to get the images to play on my TV in the order I want?

    Apple TV won't play back my album images from IPhoto in the edited order I want. The order seems to revert back to the time stamp for the photos. I have combined the photos from 3 different cameras and they had slightly different clock settings. I am working on an edited presentation of about 1500 Pics from travels in Turkey this summer and sometimes the order makes more sense if I move some of the images quite a ways. Is there any solution short of changing the time stamp on every single image?

    Using the 'adjust date and time' setting is the best way to syncronise the photos from all your cameras. However as you say this merely puts them all in the correct order chronologically.
    If there are photos that you feel would be best somewhere else in an album other than in date order, it may depend on how many as to which is the best option for you. If it's only a few you may wish to adjust the date/time on these few manually so they fit in with the rest where you want them.
    If you have a lot of photos you want in a different order to the order by date, or you really don't care about what date/time is used and just want them in the order you want them in, then 'batch change' is the best option.
    From the view menu, select 'sort photos - manually', drag the photos around until they are in the order you want, select all of them. Now select the batch change option and choose 'Date' from the 'set' options, type in a date and time for the first photo, it can be anything but it's probably a good idea to choose something close to the original date, then check the box 'Add'. You can keep the value set at 1 minute or enter any value you want, it may be more realistic to divide the length of your holiday by the number of photos you have to calculate a value, but it really isn't necessary. Clicking OK will adjust all the dates without affecting the title or description and the photos will now show on the Apple TV in that order.
    Just to be sure iTunes is updated, you may want to go to the advanced menu/choose photos to share in iTunes and deselect the album, apply, reselect the album and apply again.

  • I want my songs to be in a specific order but they transfered to the ipod in a different order. it looks as if they are in alphabetical order by artist. how can I get them in the order I want?

    I want my songs to be in a specific order but they transfered to the ipod in alphabetical order by artist. how can  I get them in the order I want?

    Hey ellenkk
    The best way to get the songs in the order that you want is to make a playlist and then sync it over. Once the playlist is set, all you have to do is set to sync playlist in the music tab.
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12313
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • How can I get the photos from iPhoto copied to a disk in the order I want?

    How can I get the photos from iPhoto copied to a disk in the order I want??

    To ensure a custom ordering, sort the files in an album and rename the files with a sequentially numbered filename.
    File > Export > Version/Originals
    Then use "Filename > Sequential"
    or "Filename > Album name with index"

  • When I sync music to iPod how ca I get it to sync in the order I want the playlist verse the radom rder it keeps putting it in?

    When syncing music why will it not sync in the order I want the playlist instead of this random way it puts it on the ipod?

    this worked for me on my iphone and ipad
    make sure that all your software is up to date
    turn phone on airplane mode
    uncheck all music
    sync
    this will erase all music on your phone
    recheck music you want from your libary
    apply

  • I want to make a CD that is NOT in alphabetical order, not in artist alphabetical order and not in album alphabetical order... I want to make it the order I want.  Can this be done? How?  thanks in advance for all your help.  Mona

    I want to make a CD that is NOT in alphabetical order, not in artist alphabetical order and not in album alphabetical order... I want to make it the order I want.  Can this be done? How?  thanks in advance for all your help.  Mona

    cjam732 wrote:
    Ed - by sequence of numbers, are you talking about the rectangle with the arrow that sorts by track number?  I've tried to follow your directions to Mona but my playlist still gets burned to CD in alpha order.  driving me crazy.  any other suggestions?   thanks, Chris
    Chris, The sequence number is the first column of numbers, to the left of the Name column.  It always goes 1, 2,3  etc.  It is not the same as the Track Number, which has its own column.
    As a precaution before burning, make sure that Shuffle is tunred off, and that you right-click the playlist name and choose 'Copy to Play Order"  (although technically they should not affect the burn).

  • When i burn a playlist, why does it automatically alphabetize my list? how do i kburn it in the order i want?

    when i burn a playlist, why does it automatically alphabetize my list? how do i kburn it in the order i want?

    What format disc? MP3? Audio?
    iTunes 10 for Mac: Create your own MP3 CDs - http://support.apple.com/kb/PH1748
    iTunes 10 for Mac: Disc burning overview - http://support.apple.com/kb/PH1746
    iTunes: How to set the play order of songs on an MP3 CD - http://support.apple.com/kb/HT2455

  • Itunes will not list my songs in the order i want.

    about 5 minutes ago it was working... and now itunes somehow jumbled up all my songs on "My Ipod". and now it won't even give me the option of dragging them into the order i want. what went wrong?
    Thanks- Shannon

    SINCE UPGRADE
    I have encountered the same problem and now have over 6000 songs jumbled up, each with their own coresponding album cover even though they belong to one specific album.. when clicking at 'quickly browse your itunes library' it displays the albums correctly but with the songs listed alphabetically rather than in the order the artist put them down on the album originally!
    Is there any solution?

  • How to call function behind the button and update only specific record

    Greetings,
    1 - i wnat to ask few things as i m new to apex, i am using apex 4.1, and created 3 select list and a button in seleting of parameter,
    1 select list : select area
    2 select list: select product
    3- select list - size of the product
    i want to generate Ids for the follwing. for that i created query for INSERTING RECORD FROM ONE TABLE TO ANOTHER , generation the ids when button pressed "Generate" after selecting parameters,
    Now where i call that QUERY on button ? because when i create button its gives me option to submit, defined dynamic action, etc, pls gudie me where i call the function name id_generation when button pressed?.
    2- second thing i creared tabular " select user_id, product_name, product_type from product".
    by defualt check box list are create delete submit button are created, first when i insert record it saves that was fine, e.g i entered 50 records and afterward i want to update only one record, e.g there is a record product name = box, if i change it to box small and click submit then it saves all the page means all 50 records,
    i want to submit only that record that i changed, for that i use the logic that only those records should be updated which are checked but the user. how will i do this ? where to use the preocess , please guide
    Edited by: Omzz on Oct 2, 2012 11:28 PM

    If I understand what you are trying to do is correct you could possibly do this by:
    Creating and AFTER INSERT trigger on the table based on the tabular form which inserts the record into a seperate table after the record is inserted something like:
    CREATE OR REPLACE TRIGGER copy_records
    AFTER INSERT ON table a
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    BEGIN
    INSERT INTO table b
    VALUES :NEW.col1, :NEW.col2 etc......
    END;
    There is also a way that you could do it within the form using a cursor on the tabular form with APEX_APPLICATION.G_ ......
    Chris

  • Calling functions of the inner class in .java code file

    Hello,
    I created a .java code file in Visual J#.Net and converted it into
    the application by adding the "public static void main(String args[])"
    function.
    I have created the two classes one extends from Applet, and the other
    extends from Frame. The class which I inherited from the Frame class becomes
    the inner class of the class extended from the Applet. Now How do I
    call the functions of the class extended from Frame class - MenuBarFrame
    class. the outline code is
    public class menu_show extends Applet
    ------init , paint action function---------
    public class MenuBarFrame extends Frame
    paint,action function for Menu
    public static void main(String args[])
    applet class instance is created
    instance of frame is created
    Menu , MenuBar, MenuItem instance is created
    and all these objects added
    I have Created MenuBarFrame class instance as
    Object x= new menu_show().new MenuBarFrame
    ????? How to call the functions such as action of MenuBarFrame class - what
    should be its parameters??????
    }

    Here's how I would do it:
    interface Operation {
        public int op(int y);
    class X {
        private int x;
        public X(int x) {
            this.x = x;
        private class Y implements Operation {
            public int op(int y) {
                return x+y;
        public Operation createOperation() {
            return new Y();
        public static void main(String[] args) {
            X app = new X(17);
            Operation f = app.createOperation();
            System.out.println(f.op(-11));
    }Your code, however, has some serious "issues". You typically don't
    instantiate an applet class -- that's the job of the applet viewer or Java plugin
    your browser is using. If you instantiate the applet directly, you're going
    to have to supply it an AppletStub. Do you really want to go that way?
    Again, use an applet viewer or browser, or better yet, why write applets at all?

  • Calling function on the basis of parameter passing in oracle discoverer

    Hi,
    In my report i want to pass parameter for currency and want to call a function. Is it possible in oracle discoverer to call function created in oracle database.

    Hi Rod,
    e.g i have report. While i run the report parameter wizard dialog box open. i have different parameter like Module, Country, Date etc right now, not using currency.
    The report shows me the following fields
    Actual Sales, last yr Sales, Target
    1000 5666 100000
    etc. And all Dara in Currency SAR by default.
    Now,
    There is one another parameter i.e. Currency and i entered the value for currency as INR. and also enter the other parameters
    I want that as this currency INR enter,it call that currency conversion function and convert the data in INR.
    and when i click the OK button in Parameter wizard I want to see the same data in INR currency.
    If the above is possible then please tell my by steps.
    if you can share your email id so that i can show you the report, and clear my requirement.
    Thanks
    kam

  • I am trying to burn a DVD from an iphoto album, I placed it in the order I want , but it does not burn in that order, and has picked up other photos not in the album

    I have created an album of phots, moved into order I want to burn, cd and dvd. It burned out of order in album and also added pictures not in Album highlighted to burn. Also was hard to view all pictures and move more quickly into order to view. I am use to using powerpoint and shows all slides at 1 time small thumnails so easy to move

    Re the order on the DIsk:
    When you export from iphoto you are in the Finder and that doesn't have the same sorting options as iPhoto. There is no "manual" sorting in the Finder, for instance.
    Here's one (of several) way(s) to do what you want:
    Make an Album of the photos, then drag the pics into your preferred order.
    Then Photos Menu: Batch Change -> Set Title to Text "John's Birthday", for instance, and tick the box to append a number to each Photo. Now your photos are titled 'John's Birthday 001, John's Birthday 002 ... etc'
    Then File -> Export and in the Export dialogue set the Filename to "Use Title"
    Sort on Filename in the FInder and you end up with a folder full of images in the same order as the Album in iPhoto.
    Burn that to the disk.
    I'm sorry but I haven't a clue what the rest of your query is about.
    Regards
    TD

Maybe you are looking for

  • If condition in Flex?

    Dear Friends, iam trying to crate a contineous check boxes using repeater command, and connecting an array as data provider. <mx:Repeater id="rp" dataProvider="{ac}" startingIndex="1"> <mx:CheckBox id="chk" label="label1" color="0xffffff" height="20"

  • Launching scripts from windows task

    Hi group I need to launch some scripts from a Windows Task, they are included on .bat file but when I execute it, it only stay on the first line (SQL> connected). Please help sqlplus sys/********@MERIDIAN as sysdba; column date_column new_value today

  • Display current time and date

    How to display current date and time together in pl sql block i have written code below but it gives me error SET SERVEROUTPUT ON DECLARE TODAY DATE; BEGIN SELECT CURRENT_DATE || TO_CHAR(CURRENT_DATE, 'FM HH:MI:SS AM') INTO TODAY FROM DUAL; DBMS_OUTP

  • Multiple sections in detail

    Hi, It's the details that kill me sometimes... I have a report with 5 groupings. I have a detail line that contains values Da1 and Da2.  Da1 need to be summed (conditionally) at group 5; Da2 needs to be summed (conditionally) at group 4. I have a two

  • Safari not opening on Start Up

    I've set Safari to open on start-up of the computer. It worked fine for many years but has now stopped. Safari opens but no pages load. I just have the Safari Menu Bar at the top.  I've removed it from Prefs/Accounts/Log-In Items and then re-added it