I need some help starting a function.

Hello.
Im new to flash im tring to make my first website after some tutorials but im stuck
I have this codes on 2 MC's pages
on first:
import flash.events.Event;
import fl.transitions.*;
import fl.transitions.easing.*;
import fl.motion.MotionEvent;
import fl.events.*;
var myString1:String = "My text 1";
var myArray1:Array = myString1.split("");
var myString2:String = "My text 2";
var myArray2:Array = myString2.split("");
addEventListener(Event.ENTER_FRAME, maint1);
function maint1(event:Event):void{
    if (myArray1.length > 0) {
        var moveTween:Tween = new Tween(startarrow_mc,"x",Elastic.easeOut,startarrow_mc.x,27,2,true);
        main_t1.appendText(myArray1.shift());
    }else {
        removeEventListener(Event.ENTER_FRAME, maint1);
        addEventListener(Event.ENTER_FRAME, maint2);
function maint2(event:Event):void{
    if (myArray2.length > 0) {
        main_t2.appendText(myArray1.shift());
    }else {
        removeEventListener(Event.ENTER_FRAME, maint2);
and on second is same code as on first
Ok... the coder are working when i load the flash the text from the codes starts writing on text boxes but starts on both MCs what i want to do is to start the text only when i call that page page 1 and after that page 2.
i've tryed to add in page2_mc on first keyframe of AS3 stop(); and make anotherone labeled "start" and put there the code and on the button that calls page2_mc to add pageContainer_mc.page2_mc.gotoAndPlay("start"); but i get this error when i click the button
TypeError: Error #1010: A term is undefined and has no properties.
at Function/<anonymous>()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at fl.transitions::Tween/set time()
at fl.transitions::Tween/nextFrame()
at fl.transitions::Tween/onEnterFrame()
and the functions are not starting
Is there any other method to call maint1 from buttons that load the pages?
thank you

This is the code that i have in menu:
var p1:page1_mc = new page1_mc;
var p2:page2_mc = new page2_mc;
menu_mc.btnPg1.addEventListener(MouseEvent.CLICK, btn1Click);
menu_mc.btnPg2.addEventListener(MouseEvent.CLICK, btn2Click);
function btn1Click(event:MouseEvent):void{
    var btn1Outro:Tween = new Tween(pageContainer_mc,"alpha",Strong.easeOut,1,0,1,true);
    btn1Outro.addEventListener(TweenEvent.MOTION_FINISH, runBtn1Transition);
    function runBtn1Transition(Event:TweenEvent):void{
        pageContainer_mc.removeChildAt(1);
        pageContainer_mc.addChild(p1);
        pageContainer_mc.page1_mc.gotoAndPlay("start");
        var btn1Intro:Tween = new Tween(pageContainer_mc,"alpha",Strong.easeOut,0,1,1,true);
function btn2Click(event:MouseEvent):void{
    var btn2Outro:Tween = new Tween(pageContainer_mc,"x",Strong.easeIn,pageContainer_mc.x,-1200,1,true);
    btn2Outro.addEventListener(TweenEvent.MOTION_FINISH, runBtn2Transition);
    function runBtn2Transition(Event:TweenEvent):void{
        pageContainer_mc.removeChildAt(1);
        pageContainer_mc.addChild(p2);
        pageContainer_mc.page2_mc.gotoAndPlay("start");
        var btn2Intro:Tween = new Tween(pageContainer_mc,"x",Strong.easeOut,pageContainer_mc.x,217,1,true);

Similar Messages

  • Need some help with a function

    create or replace function do_it(p_val varchar2) return varchar2 is
    x varchar2(100);
    begin
    select 1 into x from dual
    where 'hi' in(p_val);
    return x;
    exception
    when no_data_found then
    return p_val;
    end;
    Above function works fine, except when I pass a string like:
    select do_it('''hi'',''hello''') from dual;
    At runtime, I am expecting the SQL inside the function to appear like:
    select 1 into x from dual
    where 'hi' in('hi','hello');
    I would appreciate any help. the function can take only one parameter.

    The function needs only 1 argument to execute and you are passing 2.
    If I am not wrong, the error should be of kind
    "Invalid number of arguments to function do_it...."

  • Need some help with a remove function

    Design and code a program that will maintain a list of product names. Use a String type to represent the product name and an array of strings to implement the list. Your program must implement the following methods:
    Add a product to the list
    Remove a product from the list
    Display then entire list
    Find out if a particular product is on the list.
    You need to create a command command loop with a menu() function. The program must continue asking for input until the user stops.
    This is the assignment and this is what I have so far. I need some help writing the remove function.
    Thanks
    * Title: SimpleSearchableList.java
    * Description: this example will show a reasonably efficient and
    * simple algorithm for rearranging the value in an array
    * in ascending order.
    public class SimpleSearchableList {
         private static String[] List = new String[25]; //These variables (field variables)
         private static int Size; //are common to the entire class, but unavailable
         //except to the methods of the class...
         public static void main(String[] args)
              String Cmd;
              for(;;) {
                   Menu();
                   System.out.print("Command: ");
                   Cmd = SimpleIO.inputString();
                   if(Cmd.equals("Quit"))
                        break;
                   else if(Cmd.equals("Fill"))
                        FillList();
                   else if(Cmd.equals("Search"))
                        SearchList();
                   else if(Cmd.equals("Show"))
                        ShowList();
                   else if(Cmd.equals("Remove"))
                        Remove();
         //Tells you what you can do...
         public static void Menu()
              System.out.println("Choices..................................");
              System.out.println("\tFill to Enter Product");
              System.out.println("\tShow to Show Products");
              System.out.println("\tSearch to Search for Product");
              System.out.println("\tRemove a Product");
              System.out.println("\tQuit");
              System.out.println(".........................................");
         //This method will allow the user to fill an array with values...
         public static void FillList()
              int Count;
              System.out.println("Type Stop to Stop");
              for(Count = 0 ; Count < List.length ; Count++)
                   System.out.print("Enter Product: ");
                   List[Count] = SimpleIO.inputString();
                   if(List[Count].equals("Stop"))
                        break;
              Size = Count;
         //This method will rearrange the values in the array so that
         // go from smallest to largest (ascending) order...
         public static void SearchList()
              String KeyValue;
              boolean NotFoundFlag;
              int Z;
              System.out.println("Enter Product Names Below, Stop To Quit");
              while(true)
                   System.out.print("Enter: ");
                   KeyValue = SimpleIO.inputString();
                   if(KeyValue.equals("Stop")) //Note the use of a method for testing
                        break; // for equality...
                   NotFoundFlag = true; //We'll assume the negative
                   for(Z = 0 ; Z < Size ; Z++)
                        if(List[Z].equals(KeyValue)) {
                             NotFoundFlag = false; //If we fine the name, we'll reset the flag
              System.out.println(List[Z] + " was found");
                   if(NotFoundFlag)
                        System.out.println(KeyValue + " was not found");     
         //This method will display the contents of the array...
         public static void ShowList()
              int Z;
              for(Z = 0 ; Z < Size ; Z++)
                   System.out.println("Product " + (Z+1) + " = " + List[Z]);
         public static void Remove()
    }

    I need help removing a product from the arrayYes. So what's your problem?
    "Doctor, I need help."
    "What's wrong?"
    "I need help!"
    Great.
    By the way, you can't remove anything from an array. You'll have to copy the remaining stuff into a new one, or maybe maintain a list of "empty" slots. Or null the slots and handle that. The first way will be the easiest though.

  • Ok i have indesign CS6 and all files are stored on a 10.7.5 MAC server.  This just started happening.  When I open a file indesigns is creating a textfile in the same folder?  I need some help on this.

    Ok i have indesign CS6 and all files are stored on a 10.7.5 MAC server.  This just started happening.  When I open a file indesigns is creating a textfile in the same folder?  I need some help on this.

    Ask in the ID forum and be much more specific about your configuration. there could be any number of reasons why manifests, temp files or restore files are created.
    Mylenium

  • The backup disk image "/Volumes/Data/David Witkowski's Mac Pro.sparsebundle" is already in use.  Whenever Time Machine starts to backup to Time Capsuel I get the previous error message. I need some help to fix this.

    The backup disk image “/Volumes/Data/David Witkowski’s Mac Pro.sparsebundle” is already in use.  Whenever Time Machine starts to backup to Time Capsuel I get the previous error message Where can I find this disk image?. I need some help to fix this.
    Thanks,
    David W

    There are multiple answers and solutions if you look just to the right under the heading of More Like This.

  • Need some help! My iPhone 4 cannot play music through it's built in speaker, only with headphones. I also cannot adjust volume, it only shows "ringer". I really do not know when it starts. I already clean the jack and dock,reset it. Update it to IOS 7.1.1

    Need some help! My iPhone 4 cannot play music through it's built in speaker, only with headphones. I also cannot adjust volume, it only shows "ringer". I really do not know when it starts. I already clean the jack and dock,reset it and still cannot be fixed. I updated it to IOS 7.1.1 recently only, does it have connection with the inconvenience I am experiencing right now? What should I do? Thanks!

    Hi Melomane1024,
    If you are still having issues with your iPhone’s speaker, you may want to look at the steps in this article -
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/TS5180
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • I need some help. im getting error -69 when trying to sync my ipod. i dont kno what to do. ive tried googling as much info as i can on this but i cant seem to find a answer to get me off to a good starting point. i back all my music up on a hard drive.

    i need some help. im getting error -69 when trying to sync my ipod. i dont kno what to do. ive tried googling as much info as i can on this subject but i cant seem to find a answer to get me off to a good starting point. i back all my music up on a external hard drive.

    If the file was not originally from iTunes, you'll need to redownload it from it's original source or rerip it from the CD.  Files can sometimes go bad and become corrupted.  As to how or why that happens, there are a number of ways.
    What format are the problematic tracks in? Have you tried converting them to another format in iTunes?
    iTunes: How to convert a song to a different file format
    B-rock

  • Totally Clueless & Need some help!

    Ok so i have my first Macbook Pro... im not a computer wizz and really know nothing about them. So i need some help!
    I have tried to install Snow Leopard and the installation finishes but nothing has changed? I dont have any of the new functions im still running on the normal Safari not Safari4, I have tried to download Safari4 but it says "Safari cannot be installed on this disk, this update requires Mac OS X 10.5.8 or newer"
    I went into the apple menu and into 'about this mac' and it says im running on OS X 10.6.
    Its like it has installed SL.. but nothing has been actually installed properly!
    HELP! And dumb it down for me!!! LOL

    Thank you for your help. One more if I may.
    If I open my MacBook Pro 10.6 SL in the normal manner then go to About This Mac > More Info > Software, the System Software Overview among other things shows. 64-bit Kernel and Extensions: No.
    If I Restart my computer holding down the 6 and 4 keys the answer then becomes Yes.
    My question is do I really have to concern myself about this or, can I just start my computer in the normal manner and forget the No or Yes?

  • Need some help in creating Search Help for standard screen/field

    I need some help in adding a search-help to a standard screen-field.
    Transaction Code - PP01,
    Plan Version - Current Plan (PLVAR = '01'),
    Object Type - Position ( OTYPE = 'S'),
    Click on Infotype Name - Object ( Infotype 1000) and Create.
    I need to add search help to fields Object Abbr (P1000-SHORT) / Object Name (P1000-STEXT).
    I want to create one custom table with fields, Position Abb, Position Name, Job. Position Abb should be Primary Key. And when object type is Position (S), I should be able to press F4 for Object Abb/Object Name fields and should return Position Abbr and Position Name.
    I specify again, I have to add a new search help to standard screen/field and not to enhance it.
    This is HR specific transaction. If someone has done similar thing with some other transation, please let me know.
    There is no existing search help for these fields. If sm1 ever tried or has an idea how to add new search help to a standard screen/field.
    It's urgent.
    Thanks in advace. Suitable answers will be rewarded

    Hi Pradeep,
    Please have a look into the below site which might be useful
    Enhancing a Standard Search Help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/daeda0d7-0701-0010-8caa-
    edc983384237
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    During the input help process, a number of timepoints are defined that each define the beginning of an important operation of the input help process.
    If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these timepoints. If required, the search help exit can also influence the process and even determine that the process should be continued at a different timepoint.
    timepoints
    The following timepoints are defined:
    1. SELONE
    Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This timepoint can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.
    Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next timepoint.
    The timepoint is not accessed again if another elementary search help is to be selected during the dialog.
    2. PRESEL1
    After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this timepoint in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).
    3. PRESEL
    Before sending the dialog box for restricting values. This timepoint is suitable for predefining the value restriction or for completely suppressing or copying the dialog.
    4. SELECT
    Before selecting the values. If you do not want the default selection, you should copy this timepoint with a search help exit. DISP should be set as the next timepoint.
    5. DISP
    Before displaying the hit list. This timepoint is suitable for restricting the values to be displayed, e.g. depending on authorizations.
    6. RETURN (usually as return value for the next timepoint)
    The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.
    It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.
    7. RETTOP
    You only go to this timepoint if the input help is controlled by a collective search help. It directly follows the timepoint RETURN. The search help exit of the collective search help, however, is called at timepoint RETTOP.
    8. EXIT (only for return as next timepoint)
    The EXIT timepoint should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.
    9. CREATE
    The CREATE timepoint is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.
    The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.
    10. APP1, APP2, APP3
    If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these timepoints are introduced. They are accessed when the user presses the corresponding pushbutton.
    Note: If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at timepoints SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other timepoints the search help exit of the selected elementary search help is called.
    If the F4 help is controlled by an elementary search help, timepoint RETTOP is not executed. The search help exit of the elementary search help is called at timepoint SELONE (at the
    F4IF_SHLP_EXIT_EXAMPLE
    This module has been created as an example for the interface and design of Search help exits in Search help.
    All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
    A search help exit is called repeatedly in connection with several
    events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.
    Hope this info will help you.
    ***Reward points if found useful
    Regards,
    Naresh

  • Need some help in ARCHITECTURE level for upgrading SAP BW 3.5 to SAP BI 7.0

    HI all,
    I am a consultant in a small company, i am curently handling upgradation project i need some help in ARCHITECTURING this complete project, please share me your knowledge, like process flows what information i need to get from clients before starting the project, what is pre upgradation checks, post upgradation cheks  ...............
    Thanks in advance.............

    Hi,
    You need to confirm the downtime during the upgrade activity.
    Check for Space and resource allocation.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8d1a0a3a-0b01-0010-eb82-99c4584c6db3
    https://wiki.sdn.sap.com/wiki/display/BI/UpgradefromBW3.XtoBI7.0+%28SP13%29
    https://wiki.sdn.sap.com/wiki/display/BI/Migrationof3.xobjectstoBI7.0
    You need to make sure some OSS notes should be applied, check the below link for the same:
    https://wiki.sdn.sap.com/wiki/display/BI/UpgradetoNetWeaverBI7.0%28SAPNotes+%29
    http://wiki.sdn.sap.com/wiki/display/BI/BIUpgradation-HelpfulOSSnotesfromEDWperspective
    Hope this helps...
    Rgs,
    Ravikanth.

  • Need some help...in need of a different way.

    Hi, I'm new to Java and need some help. I have 2 questions that are similar in nature.
    1st Question:
    In a program that I'm writting I have a do-while loop which at the end brings up a dialog box that asks the user to enter '1' for 'Yes' or '2' for 'No' to continue.
    I would rather have the option of having the user enter 'y' or 'Y' for Yes and 'n' or 'N' for No.
    Here is what I have currently:
    int x;
    String data;
    do{
    //Blah blah code
    data = JOptionPane.showInputDialog(null, "Enter 1 for Yes or 2 for No");
    x = Integer.parseInt(data);
    }while(x == 1);
    x++;
    2nd Question:
    In another part of my program I have a Case statement that asks the user to enter a number or a letter from a list of choices. They can enter '2' , 't', or 'T'.
    I would rather have all of this in an if-else chain. Is this possibe? if so, how would I do it.
    Thanks.

    I would rather have the option of having the user enter 'y' or 'Y' for Yes and 'n' or
    'N' for No. You can test the first letter of whatever the user inputs like this:String response = JOptionPane.showInputDialog(null, "Enter (Y)es or (N)o");
    response = response.toLowerCase();
    if(response.startsWith("y")) {
        // the user entered something starting with y
    } else if(response.startsWith("n")) {
        // the user entered something starting with n
    } else {
        // what are you going to do?
    }JOptionPane also has versions that would allow yes/no buttons. Eg, see:
    http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

  • Hi! I got movies on my external hard drive that are AVI kind and won't play on my macbook pro? need some help please!!

    Hi! I got Movies on my external hard drive that are AVI kind and won't play on my macbook pro? When I start playing the movie a message pops up and says "a required codec is not available". I tried flip4mac, xvid, divx already and still not playing my video. need some help please!! thanks.

    Although vlc mentioned above is a much more powerful and better player you could try installing Perian if you insist on using the quicktime player.  It may supply the codec it needs.
    Not sure why you wouldn't be able to play straight avi files though in quicktime.

  • Need some help with downloading PDF's from the net.

    need some help with downloading PDF's from the net.  Each time I try to click on a link from a website, if it takes me to a new screen to view a pdf, it just comes up as a blank black screen?  any suggestions?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Need some help with social net site

    I need to create a site with editable user profiles, the site
    will feature sports stats that the user can update.
    I use Dreamweaver and MYSQL but I need some direction. Im
    starting from scratch here, are there any templates or free source
    code to go off of? I really need some help!!

    "Funks Da Burn" <[email protected]> wrote in
    message
    news:g1np74$eej$[email protected]..
    >I need to create a site with editable user profiles, the
    site will feature
    > sports stats that the user can update.
    > I use Dreamweaver and MYSQL but I need some direction.
    Im starting from
    > scratch here, are there any templates or free source
    code to go off of? I
    > really need some help!!
    That's not something you can do using templates or by
    dropping in a free
    script; it's pretty complicated. You need to know how to
    design a database
    and write server-side code. Dreamweaver will help you write
    the code, but
    you still need to plan and design the whole application. I'd
    recommend
    starting with a book. It sounds like PHP is going to be your
    best bet - does
    your host server support it? If so, do a search on Amazon.com
    for books on
    Dreamweaver and PHP, and/or ask for recommendations here.
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet

  • Need to try to find Pi, need some help

    I have need to try to find some of the values of Pi,
    but when i try math.PI i only get down to like 8 decimals.
    I need some help.
    Not sure were to start either!
    Message was edited by:
    Aten

    You're just adding terms together. There's a series of them, so you need a loop. Each pass through the loop could add one more term. Note that each term has a denominator that is bigger by 2, and it's either added or subtracted (or to look at it another way, you're adding negatives alternately).
    The main issue is how accurate you want it to be. You can't add the digits together forever. So you have to choose a stopping point. You can stop based on a time period (when you've run out of time, stop adding new terms) or on precision (when two subsequent values are close enough to each other, stop).
    You'll probably want to use java.math.BigDecimal.
    If you give some more details about the assignment I can make some more suggestions.
    Why don't you give it a try and see how it works?

Maybe you are looking for

  • [QUESTION] File CONOTRL.SQL is not being created!!

    Dear experts, I am doing a Java refresh from our production to our development system. I have first restored the oracle 11 database. As it is NetWeaver 7.3 EHP1, it should be possible to do a refresh or system copy using the backup/restore method, wh

  • Value in the subreport used by the main report?

    How do I make so that a value in the sub-report can be used by the main report? Is there a way to make the subreport values "global"? I am working from an older version of Crystal. Please let me know if this is self-explanatory in the newer versions.

  • Manual use of effects/transitions from themes...

    I am new to PE, just installed PE10 yesterday... I wish to use the effects/transitions that are in the instant movie (themes) manually, but they are not provided as choices from the effects/transition menus.  Is there any way to use them?  The instan

  • Migration from Designer: wrong alias for used table/view in views

    Hello, I am using SQL DM version 3.3.0.744. when importing a view from Designer, a query is build with aliases for the used tables/views which are the same as the table/view name. When using a where clause in Designer, you refer to the alias of the t

  • Require License for Information broadcasting

    Hi There, I need to know whether there is a separate license required for information broadcasting? We are in BW7. If so, where could I get the document or details on license? Thanks alot Anima