Function Consolidation Help

Okay,
I know there has to be an easier way to write this.
Can someone please point me in the right direction?
There has got to be a way to use 1 function and some type of
variable to make to add the new sprites from an array with a for
statement. I just don't know how. Any help would be greatly
appreciated.
Thanks,
Wayne

I have the fla file posted in another forum that I asked help
for and someone asked me to post it but never replied back after I
did.
Here is the link. This will probably answer some of your
questions better than I can.
http://www.actionscript.org/forums/attachment.php3?attachmentid=24206&d=1191129053
The fla file will have my working code in it. I took this
same file which has my code in it and replaced it with your code.
Hope that helps.
Wayne
I also added some more code as well just in case this
matters.
I plan on adding a script in there that detects what webpage
you are on from FlashVars. I have this working already however it
is not in that fla file.
You can see an example here:
Flash
Vars Example
I am using a PHP page to detect the webpage. I am storing
that into a FlashVar and passing that Flash. I am then using that
information to see what webpage we are currently on and placing the
corresponding button into a down position.
Here is that PHP and AS3 code as well if you need it. (I
don't know that you will but just in case).

Similar Messages

  • Search function in Help not working in any application

    The Search function is not working in any application's Help. Upon entering the terms I need help for I get a hang at "Searching..." but never any result. This problem started sometime in the last year or so. Prior to that the search function in Help worked fine. My network connectivity is excellent.
    I recently reinstalled OS X 10.5 but I'm sure the problem existed before that and persisted after the reinstall.
    The reinstall was due to upgrading to 10.7 and only then finding that I had lost needed functionality, but I don't think this has anything to do with the current problem. All other aspects of Help seem to be working fine
    I don't find any reference to this problem anywhere so I'm hoping someone can help with my Help(!) problem. Thanks in advance.

    Try running your Leopard install disk again, as well as the 10.5.8 combo updater. This might reinstall any 'missing bits'.
    You can do this without deleting the hard drive, just install straight over your existing system, but close all applications and external devices first.
    Or you could also do this via an Archive and Instal:
    How to Archive & Install:
    http://support.apple.com/kb/HT1710
    and this also:
    http://support.apple.com/kb/HT2196?viewlocale=en_US
    This document explains how to correctly reinstall a prior version of Mac OS X in the event that other troubleshooting does not resolve an issue:
    http://docs.info.apple.com/article.html?artnum=25404
    BUT: Don't install older versions of Mac OS than what came with your computer:
    http://support.apple.com/kb/HT2186?viewlocale=en_US

  • Mac mini 2009 mavericks won't boot. Blank display no logo,etc. Tried all keyboard boot functions, no help. replaced RAM w/known good. No help. Removed HD mounted in external enclosure and ran permissions and repair. No help. Upgraded HD to Yosemite a

    Mac mini 2009 Mavericks won't boot. Chimes and power light comes on. USB ports have power. Blank display no logo,etc. Tried all keyboard boot functions, no help. Replaced RAM w/known good. No help. Removed HD and mounted in external enclosure and ran permissions and repair. No help. Upgraded HD to Yosemite and was able to boot another mini from HD mounted in external enclosure, reinstalled HD still no boot. Any ideas on how to proceed appreciated.

    - Make an appointment at the Genius Bar of an Apple store. You have a hardware problem.
      Apple Retail Store - Genius Bar

  • Is there any way to block the shutdown of the device is protected by password? This function would help in case of theft with the issue of the find my iphone app.

    is there any way to block the shutdown of the device is protected by password? This function would help in case of theft with the issue of the find my iphone app.

    Device experiences issues, locks up.
    I need to do a reset.
    How would I do that with a pass code lock in place?
    Wait until the battery dies?
    Apple's changes in iOS 7 are smarter.
    "Losing your iOS device feels lousy. Thankfully, Find My iPhone can help you get it back. But if it looks like that’s not going to happen, new security features in iOS 7 make it harder for anyone who’s not you to use or sell your device. Now turning off Find My iPhone or erasing your device requires your Apple ID and password. Find My iPhone can also continue to display a custom message, even after your device is erased. And your Apple ID and password are required before anyone can reactivate it. Which means your device is still your device. No matter where it is."
    http://www.apple.com/ios/whats-new/

  • My Macbook pro,s Airdrop isn't functional  plz help me to use it

    Hi everybody.
    My Macbook pro,s  Airdrop  isn't  functional  plz help me to use it.

    Mac Basics: AirDrop helps you share items with others nearby

  • HT201210 hi i dropped my iphone3 it landed on its back screen is not broke but all i get now is white screen no apps no functions please help regards

    hi i droppoed my iphone3 screen not broke just stays white no apps no functions need help regards

    Sounds like you broke it. Get it replaced for $149 or buy a new phone.

  • I misplaced my ipad, so I remotely erased it.  Then I found it, but now I cannot use all of the options in the settings.  I have restored from backup, but it still is not letting me use all functionality.  Help!

    I misplaced my ipad, so I remotely erased it.  Then I found it, but now I cannot use all of the options in the settings.  I have restored from backup, but it still is not letting me use all functionality.  Help!

    Would throwing it in Recovery mode and restoring as new clear it up?
    (same for Ipad)
    Step 1: Turn off the iPhone. To do this press and hold the power button till you see the “Slide to Power off” screen. Now slide the button to turn it off.
    In case your iPhone is stuck in an infinite loop and the previous option is unavailable, press and hold the Power and Home button till the screen goes off. Remember to leave both the buttons as soon as the screen goes off and before the Apple logo appears again.
    Step 2: Connect the iPhone’s USB cable to your computer but not to your iPhone yet.
    Step 3: Now hold down the Home button and while you are holding it connect the USB cable. Keep holding the Home button till you see the Connect to iTunes screen on your iPhone(Screenshot shown below). iTunes will show an alert saying a device in recovery mode has been detected.
    Here’s what your iPhone screen will look like once its in the iPhone Recovery Mode.
    Read more: http://www.callingallgeeks.org/15018/how-to-put-iphone-or-ipod-touch-into-recove ry-mode/#ixzz296y04ygX
    Under Creative Commons License: Attribution No Derivatives
    THEN RESTORE THE DEVICE AND SETUP AS NEW. JUST YOU WILL HAVE TO DOWNLOAD YOUR APPS AGAIN(FREE) ETC....
    LEAST THE SECURITY WORKS HAHA!!! I also wouldnt get upset, be thankful you found it.

  • Which function will help to get occurence of perticulat text

    Hi all ,
    pls tell me which function will help to get occurrence of perticulat text
    suppose is have text "Discussion" here i Occurred 2 times
    Regards

    Like this..?
    sql>select 'Discussion' txt,length('Discussion') -length(replace('Discussion','i','')) count_of_i
        from dual;
    TXT COUNT_OF_I 
    Discussion  2                                                                                                                                                                                                                                                                                                                                                               

  • Brand New Iphone 5c can't send or receive text messages of any kind!? I've tried everything, why does no one have a solution for this? There's no way we're keeping a phone that can't even perform one of it's most basic functions. Help!

    Got the new Iphone 5c from Verizon today and was really happy with the phone until we realized it is unable to send or recieve text messages AT ALL. We've tried everything, searched the internet for hours, I've tried live chatting with Verizon and Apple ALL DAY and somehow keep getting "disconnected" even though my internet is working perfectly. The phone is pretty much useless if it's unable to perform one of it's main functions and it's really dissapointing to add a line, get the phone, only to discover a major problem with seemingly no solution whatsoever. Is there any fix for this? Because a phone that is incapable of sending or receiving a simple SMS message is pretty much useless. It's too bad too because I really love the phone if not for that. Does anyone have a legitimate way to solve this problem? We've done everything, network resets, turning imessaging on and off, factory reset, etc. etc. etc. and nothing works. Please help.

        Hello Idkallday!
    I know your device sends and receives text messages! Let's get to work on this! Did you port your service from another carrier, or is this a new number? Is your previous device still powered on?
    I also want to ask if you are able to use iMessaging, and if you see any error message when sending?
    Please test it by sending a message to your own mobile number, and keep us posted!
    ChristinaB_VZW
    Follow us on Twitter @VZWSupport

  • CASE Statement error in function -- Please help!

    Hi All,
    I created a function in my report.
    It has a SQL query similar to the one below. The query works fine in SQL plus.
    It has a CASE statement. I am getting error at line4 at the select statement. Error is: "Encountered symbol 'SELECT'....."
    Can we use CASE statements like this in reports that use SELECT statements for RETURN EXPRESSIONS. Do we have to do any special?
    Can someone help me out of this trouble?
    THanks in advance.
    SELECT PARENT_id,
         CASE WHEN EXISTS (SELECT PARENT_id FROM CHILD CH1 WHERE CH1.PARENT_id = PARENT.PARENT_id AND UPPER(CH1.description) LIKE '%ABC%') THEN
              (SELECT CH2.MOD_id FROM CHILD CH2 WHERE CH2.PARENT_id = PARENT.PARENT_id AND UPPER(CH2.description) LIKE '%ABC%')
         ELSE
              (SELECT MOD_id FROM
              (SELECT MOD_id,PARENT_id FROM CHILD CH3 ORDER BY started) MOD2 WHERE MOD2.PARENT_id = PARENT.PARENT_id AND ROWNUM = 1
         END
    ) MOD_ID
    FROM PARENT;

    take out the parentheses after the PARENT_ID and see
    like below
    SELECT parent_id,
           CASE
              WHEN EXISTS (
                     SELECT parent_id
                       FROM CHILD ch1
                      WHERE ch1.parent_id = PARENT.parent_id
                        AND UPPER (ch1.description) LIKE '%ABC%')
                 THEN (SELECT ch2.mod_id
                         FROM CHILD ch2
                        WHERE ch2.parent_id = PARENT.parent_id
                          AND UPPER (ch2.description) LIKE '%ABC%')
              ELSE (SELECT mod_id
                      FROM (SELECT   mod_id, parent_id
                                FROM CHILD ch3
                            ORDER BY started) mod2
                     WHERE mod2.parent_id = PARENT.parent_id AND ROWNUM = 1)
           END AS mod_id
      FROM PARENT;       

  • HELP MENU FUNCTION-URGENT HELP PLZ.

    Hello there. I've been trying to design a GUI providing the users with help function as well. I create the html file, map file(in .jhm format) and HelpSet (in .hs format) and run the help menu via hsviewer. The first problem is that when the hsviewer runs the application a blank help window appears on the screen. The second one is that when I try to make a link between the help menu and the GUI I have written by using the sample code given in javahelp's pdf file I see a few error messages on NETBEANS' screen. Could anyone help me solve the problems I have faced so far? In addition, aint there any other method, like a template help menu, that I could use to compose my own one?

    * stop multi-posting
    * stop SHOUTING
    * whenever you see error messages and have some problem, those two are probably related
    * whenever you ask for help and have error messages post the error messages!

  • Help menu function plz help:)))

    Hello there. I've been trying to design a GUI providing the users with help function as well. I create the html file, map file(in .jhm format) and HelpSet (in .hs format) and run the help menu via hsviewer. The first problem is that when the hsviewer runs the application a blank help window appears on the screen. The second one is that when I try to make a link between the help menu and the GUI I have written by using the sample code given in javahelp's pdf file I see a few error messages on NETBEANS' screen. Could anyone help me solve the problems I have faced so far? In addition, aint there any other method, like a template help menu, that I could use to compose my own one?

    Quit multi-posting questions: http://forum.java.sun.com/thread.jspa?threadID=5271252&tstart=15

  • Photoshop CS6 Stops Functioning Please Help

    System Information
    Windows 8 x64
    AOC 2243fW 1920x1080 monitor (x2)
    Processor: Intel Core i3 2120 3.40GHz (Dual Core)
    Ram: 6GB
    GPU: nVidia geForce GTX 760 TI 2GB DDR5
    Notes:
    Photoshop is up to date.
    Performance settings in photoshop are set correctly.
    Monitor Profiles are not defective.
    Images/Files are not corrupted.
    Issue:
    After a fresh restart of my PC Photoshop will function as normal for a short while (1hr appx.) after that it ceases to import/export or do any of it's intended functions. I CANNOT import ANY files. I am not presented with any error messages and it simply doesn't work. Buttons appear to highlight and the toolbars are still accessible, however I cannot continue with my work. If I then restart my computer it will function for a short while again then this will happen.
    Things I have done:
    Reinstalled Photoshop CS6
    Deleted Preferences (Multiple Times)
    Contacted Adobe Support in which case they failed to fix the problem.
    I am at a null and I don't know what to do and it is costing me money. Someone please help.

    Do you have any third party plugins? Have you tried disabling them?
    What utility programs and system extensions are you using? Have you tried disabling them?
    The fact that it requires you to restart the system means that the problem is almost certainly at the system level (utilities, drivers, system extensions, etc.).

  • Making Checkbox complete a function? HELP

    First and foremost, forgive me if I do not explain this in technically correct fashion. I have enough knowledge to understand, but not enough to be dangerous. In other words, I probably have no clue what I am talking about!
    I am working with Adobe Xi Pro. I have a form that I have four fields. 1. CostVehicle 2. Trade 3. Rebate 4. TaxValue
    I have discovered how to calculate the TaxValue box to where CostVehicle-Trade-Rebate will give me the Taxable Value
    However, I want to add a checkbox behind the Taxable Value. The scenario I would like to happen is as follows:
    If the check box is selected noting an AOD (act of donation) then the TaxValue field will either equal 0.00 or state AOD but when the checkbox is NOT checked then I would like my calculation to remain the same from CostVehicle-Trade-Rebate
    Is this possible? I have done some searching and feel like a javascript would be what I need to write to make this function to happen. However, again I am not sure whether to javascript or not to javascript?!
    Any information would help!
    Many thanks,
    Angela
    Message was edited by: aboseman

    Hello David,
    You can definitely achieve this using F4IF_INT_TABLE_VALUE_REQUEST & you have to pass MULTIPLE_CHOICE = 'X'.
    This will allow the user to select multiple values from the hit list.
    TABLES spfli.
    SELECT-OPTIONS: s_carrid FOR spfli-carrid NO INTERVALS.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_carrid-low.
      TYPES: BEGIN OF ty_line,
               carrid   TYPE spfli-carrid,
               carrname TYPE scarr-carrname,
             END OF ty_line.
      DATA: it_list TYPE STANDARD TABLE OF ty_line,
            w_return_tab TYPE DDSHRETVAL,
            i_return_tab TYPE STANDARD TABLE OF DDSHRETVAL,
            v_repid TYPE sy-repid,
            v_dynnr TYPE sy-dynnr.
      v_repid = sy-repid.
      v_dynnr = sy-dynnr.
      SELECT carrid carrname
                  FROM scarr
                  INTO TABLE it_list.
      IF sy-subrc = 0.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield        = 'CARRID'
            dynpprog        = v_repid
            dynpnr          = v_dynnr
            dynprofield     = 'S_CARRID-LOW'
            value_org       = 'S'
            multiple_choice = 'X'
          TABLES
            value_tab       = it_list
            return_tab      = i_return_tab
          EXCEPTIONS
            parameter_error = 1
            no_values_found = 2
            OTHERS          = 3.
        IF sy-subrc = 0.
          s_carrid-sign = 'I'.
          s_carrid-option = 'EQ'.
          LOOP AT i_return_tab INTO w_return_tab.
            s_carrid-low = w_return_tab-FIELDVAL.
            APPEND s_carrid.
          ENDLOOP.
        ENDIF.
      ENDIF.
    BR,
    Suhas
    Edited by: Suhas Saha on Mar 9, 2010 11:04 PM

  • Problem with CLIENT_OLE2 functions, please help

    Hi all,
    I´m trying to create a new excel document on client side, filled with data from database tables.
    When server tries to execute the following line:
    aplicacion     := CLIENT_OLE2.CREATE_OBJ('Excel.Application');
    it hangs up and in the Java console appears the following trace:
    "Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError
    at oracle.forms.webutil.ole.OleFunctions.create_obj(OleFunctions.java:513)
    at oracle.forms.webutil.ole.OleFunctions.getProperty(OleFunctions.java:218)
    at oracle.forms.handler.UICommon.onGet(Unknown Source)
    at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
    at oracle.forms.engine.Runform.processMessage(Unknown Source)
    at oracle.forms.engine.Runform.processSet(Unknown Source)
    at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
    at oracle.forms.engine.Runform.onMessage(Unknown Source)
    at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
    at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
    at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)"
    I think webutil configuration is right, because other webutil functions like "client_get_file_name" work correctly... and the same code worked fine in my test server.
    More info:
    Test server: Windows XP, Oracle 10g, Forms 9.0
    Final server: Unix, Oracle 10g, Forms 9.0
    Any help?
    Thanks in advance.

    Have you got the Jacob files installed on the application server? These are not part of webutil, you will need to do a web search to find them.
    See section 2.3 of the Webutil Users Guide.

Maybe you are looking for

  • Can't move an application out of the applications folder to a different location?

    I had a couple of applications in the applications folder that I thought would be better suited on the desktop, but evertime I tried dragging the application to the desktop (or any other location on my Mac for that matter) it only seemed to create a

  • A55M-P33 - Win 7 Pro x64 - 8.00GB (3.49 GB usable)

    Hello! After a few hours of google searching i've decided to ask for help. Search of this forum did yeald one post similar to mine: https://forum-en.msi.com/index.php?topic=161010.msg1180013 But there was no solution. Problem is very weird. Win 7 Pro

  • SM Portal display issue while creating incident classification with child items

    Hii,, We need to create some incident classification with child items. After creating classification with child items, portal is not showing the classification properly and the page display not showing properly. i.e. showing a block with drop down in

  • IPod has a problem charging.

    OK so I found my iPod last month after having been m.i.a. for 7 months. So I plugged it into my computer and let it charge. It's been charging for over a month now and when I unplugged it and tried to listen to some music it said that the battery was

  • Plug-ins that use the internet

    Hello Community, I am interested in writing a Premiere plug-in that can upload/download files to a URL from Adobe Premiere. Is there API functionality that lets me do this? More generally, is it possible to write this into a plug-in? Thanks much. Bes