Easy to fix for you, not for me. 2 small syntax errors.

My code is:
private var soundsVector:Vector.[sound1, sound2, sound3, sound4, sound5, sound6, sound7]
The error message says:
1086: syntax error: Expecting semicolon before rightbracket
1084: syntax error: Expecting identifier before leftbracket.
Can anyone help me by showing what changes i need to make? Thanks.

How about this:
private var soundsVector2:Vector[sound1, sound2, sound3];
Other sample code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
     creationComplete="init()">
<mx:Script>
    <![CDATA[
private var soundsVector1:Vector;
private var soundsVector2:Vector[sound1, sound2, sound3];
private var sound1:Sound = new Sound();
private var sound2:Sound = new Sound();
private var sound3:Sound = new Sound();
private function init():void{
     soundsVector1 = new Vector([sound1, sound2, sound3]);
    ]]>
</mx:Script>
</mx:Application>

Similar Messages

  • [svn:fx-trunk] 10877: Fix a small syntax error in Path bounds calculations that could result in wrong bounds for edge cases involving MoveSegments .

    Revision: 10877
    Author:   [email protected]
    Date:     2009-10-05 15:23:37 -0700 (Mon, 05 Oct 2009)
    Log Message:
    Fix a small syntax error in Path bounds calculations that could result in wrong bounds for edge cases involving MoveSegments.
    Thanks go to Min for noticing the bug!
    QE notes: None
    Doc notes: None
    Bugs: None
    Reviewer: Deepa
    Tests run: checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.as

    orangekay wrote:
    That is absolutely unreadable.
    I agree completely. How about also providing a link to a set of input files so that we could actually run the code ourselves? Otherwise, there is no chance to debug the source code, it is just a mess.
    You might have better luck with an older version of the file. To quote the comments:
    // Modified on March 31, 2005. Initialized maxchange in nonlinvoltra() as
    // INFTY. Replaced crnmbr() by a similar, but faster routine interior().
    // Many thanks to Stuart Anderson for pointing out this shortcut.
    I suspect that the "interior" function is just plain incorrect. It doesn't matter if it runs on some other OS. Something about it is wrong and the code is so cryptic that it can't be deciphered.

  • Error (-45054) for WINDOWS not for a mac

    For the past three days i have been trying to download app updates via the iTunes WINDOWS software program without success due to the error -45054. I have done many a search but can only find answers on how to fix the problem on mac computers. I am running windows 8 (yes i know it ***** you don't have to tell me)
    There are a total of two users on the computer in question. However the error only occurs in the account of one of the two users. User #1 has no problems whatsoever and is a administrator. User #2, also listed as a administrator always gets the -45054 error.
    Files are all set as shared with everyone with full control.
    i have tried to remove iTunes and reinstall but still no help. Any suggestions are appreciated as long as they are for WINDOWS not for mac

    I tried submitting this same problem as a feature request and/or bug report.
    Unfortunately, and somewhat disconcertingly, the Captivate Bug Report form also doesn't work. No matter how thoroughly I entered my request, I got these error messages:
    The following error(s) must be corrected before this form can be completed:
    Please enter your name
    Please enter your E-mail address
    Please select if it is feature request or the bug report.
    Please select a product
    Please enter the issue description

  • I want to be the only one who can access my profile, so how to create passwords for profiles (NOT for websites) ?

    I want to be the only one who can access my profile, so how to create passwords for profiles (NOT for websites) ?
    thanks

    Maybe use the portable Firefox version on a USB stick if you want to prevent access to your profile.<br />
    Solutions that use an extension can easily be bypassed by starting in [[Safe mode]].<br />
    Otherwise you need to locate the Firefox profile folder on an encrypted drive.
    See http://portableapps.com/apps/internet/browsers/portable_firefox

  • Set file filters in flex for save, not for browse

    How can i set file filters in flex for save, not for browse?
    Right now i am using filereferce class for saving purpose but i could
    not able to set filter. We can easily do it for browse.

    You can try to delete [http://kb.mozillazine.org/mimeTypes.rdf mimeTypes.rdf] in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    * http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions
    Create a new profile as a test to check if your current profile is causing the problems.
    See:
    * [https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile Basic Troubleshooting: Make a new profile]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See:
    * http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Infotype only for pa40, not for pa20/30 ???

    Hello,
    How to set an infotype to be available only for pa40, not for pa20/pa30?
    J can programm it in PBO and check the transaction code, but I look for another solution, maybe in spro.
    Regards,
    Piotr

    Hi.
    I have got a doubt after reading ur question.
    PA40 is for Personnel Actions.
    PA30 is to maintain master data.
    PA20 is to display master data.
    so is it possible to set infotypes only for PA 40, and not for PA30/20

  • Looking for patch note for 3.1

    anyone has the link for patch note for v3.01?

    http://support.apple.com/kb/HT3754
    or
    http://www.pcworld.com/article/169432/applepatches_iphone_sms_vulnerability.html?tk=relnews
    Message was edited by: deggie

  • Installed application works fine for administrators, not for users - LV7.1.1

    Hi,
    Someone must have posted this before, but I can't find it anywhere after much searching of the knowlege base and user forums. Feel free to point me in the right direction...
    I have an application that loads and plays a wav file, and applies a filter while playing it back. The user may select the filter being used from the control panel. Filtering is done in1/8 second chunks, so changes in the filter appear instantanious.
    I'm using LabView 7.1.1  (i.e. 7.1 with the 7.1.1 maintainence release applied). Filters have been created with the Digital Filter Design tool in the Signal Processing toolset.
    I have created an installer using the application builder in LabVIEW. The runtime engine is included in the installation, as are the filter files.
    Once installed on a target machine the application works fine for anyone logged on with administrator rights/privileges. For anyone with user or guest privileges the filter either doesn't re-load or isn't applied to the wav file regardless of the user's efforts on the control panel.
    The audio file is however loading and playing back.
    This problem is seen on W2k, WinXP Pro SP1 and Win XP Pro SP2. I can't comment on other O/S, that's all I have available to test on. 
    This is tricky to debug, as in the installed application you can't view or step through the source code.
     Your ideas and observations much appreciated.
    Bandit

    You're right Sacha, it takes almost no time to rate an answer. Only 4* for you, as the info is interesting and relevant, but in this instance I wanted to stick with read only access. These filter files are an integral part of my application, and I certainly don't want users changing them .
    A little further investigation has provided the ideal fix for my needs. Burrowing down into the Read DFD coefficients.vi provided in the signal processing toolset I found the files are opened for read & write. The mode isn't actually wired, so read & write is selected as it's the default. As Windows only allows read access in this location to those with user privileges the files won't open. 
    I now have a modified version of Read DFD coefficients.vi that has the files opened for read only (this has to be done in 2 places).  I have tested this on Win2k and XP SP2, and it works exactly as I require. This is different to the user in your other thread Sacha, as they specifically want everyone to be able to write to their files.  
    Perhaps it's a question for the LV developers - should the Read DFD coefficients.vi be changed to only give read access? (assuming it hasn't been changed already in V8). I'm in no place to assess the impact on other users. As the .vi is only a read function, which opens the file, reads the coefficients and closes the file again I can't see how it would be a problem though - the write access isn't required.
    Thanks to all for their help on this. Problem solved, and I'm a happy bunny .  (Thinks - what about some bunny smilies on the forum?)
    Bandit

  • How to create requirement for BOM, not for its components?

    Dear gurus,
    I have never worked in PS module before. Now I have the following task:
    There is Project, Network and WBS. I inserted material for operation in WBS and exploded the material.
    Now the system must create requirement for this material but NOT for components of BOM. How can I configure the system?
    P.S. We don't use MRP and we can't change Material Master Data.
    Edited by: Azat Fayzullin on Dec 8, 2009 12:44 PM

    Have you read SAP help on PS
    also check this forum for similar posts
    If you have never worked on PS module I am not sure if you will be able to configure the system
    please attend some courses in PS from your local SAP academy course names are PLM200, PLM210, PLM220, PLM230, PLM240
    for your specific requirements I would recommend PLM200 and PLM220

  • Users group for View not for publish

    Hi guys,
    Does anybody can tell me how can I creat users group for view
    and not for publication?
    It's something like to create Contribute roles, but is not
    related with the permission levels to publish, but with the
    visualization permissions for exclusivy content, for ex.:
    Home (open for all users)-------- IT Dept--------Directory
    Dept ---------Support Dept
    - Johny - Johny - Joseph - Isaac
    - Jack - Jack - JJ - Jason
    - Rose - Rose - Robert
    - Joseph - Lisa
    - JJ
    - Isaac
    - Jason
    - Robert
    - Lisa
    Please somebody help me, It's very, very important!!!
    Thanks in advance for who can help me.
    San.

    Sandra Bercke wrote:
    > Hi guys,
    > Does anybody can tell me how can I creat users group for
    view and not for
    > publication?
    > It's something like to create Contribute roles, but is
    not related with the
    > permission levels to publish, but with the visualization
    permissions for
    > exclusivy content, for ex.:
    >
    > Home (open for all users)-------- IT
    Dept--------Directory Dept
    > ---------Support Dept
    > - Johny - Johny - Joseph
    > - Isaac
    > - Jack - Jack - JJ
    > - Jason
    > - Rose - Rose
    > - Robert
    > - Joseph
    > - Lisa
    > - JJ
    > - Isaac
    > - Jason
    > - Robert
    > - Lisa
    >
    > Please somebody help me, It's very, very important!!!
    >
    > Thanks in advance for who can help me.
    >
    > San.
    >
    You cannot restrict on the users to view a particular folder
    (say IT
    dept) using contribute. Infact there is a setting in IIS
    Webserver which
    allows you to set an Authentication mechanism where users
    when browsed
    to any site on your webserver will be prompted for username
    and password.
    But you might want to try something like this.. not sure if
    this will
    help you...
    1. Create 4 connections in contribute
    a) first connection to "Open for all users" directory on
    your webserver.
    b) second connection to "IT Department" directory on your
    webserver.
    c) third connection to "Directory dept"... etc
    2. This way you can administer 4 sites and send connection
    keys to them
    accordingly...
    Hope this helps.

  • Loads for admin, not for anyone else

    We have recently purchased Adobe Design Premium (CS4) and I
    have taken the route of installing each component individually. We
    are a school and have machines networked, so students can access
    the software.
    When dreamweaver is installed, it will load and work fine for
    administrator users (have full access), but returns an "AMT
    Subsystem Failure" when loaded up by staff or students (whose
    access to the computer is limited).#
    Is there a specific file or folder on the local machine that
    needs security changing for this to work? I see the error we get is
    often related to licensing issues, but given it works fine for
    admin users with no mention of this, I doubt that being the
    problem.
    Cheers,
    Dave

    dsmith444 wrote:
    > When dreamweaver is installed, it will load and work
    fine for administrator
    > users (have full access), but returns an "AMT Subsystem
    Failure" when loaded up
    > by staff or students (whose access to the computer is
    limited).#
    This is a question for Adobe technical support. This is only
    a
    user-to-user forum. You might get an answer from another user
    who is in
    a similar situation, but Adobe should be able to help more
    effectively
    with installation issues.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • $LS_COLORS stopped working (for user, not for root)

    Good day.
    Some time ago,  "ls" stopped paying attention to my color settings when coloring output for my user, while still working for root. For both root and my user, I set $LS_COLORS through ~/.bashrc as "eval $(dircolors -b)" but while this works fine for root, it at some point stopped working for my user, simply since the "eval" doesn't seem to work anymore. That is, what could be the reason for the below behavior?
    (note: I also have colored ls output without $LS_COLORS; just not the colors that I want, and which root does have).
    ===
    [rene@e600 ~]$ echo $LS_COLORS
    [rene@e600 ~]$ dircolors -b
    LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:';
    export LS_COLORS
    [rene@e600 ~]$ eval $(dircolors -b)
    [rene@e600 ~]$ echo $LS_COLORS
    [rene@e600 ~]$
    ===
    bash is 4.2.045-5 (coreutils is 8.21-2)
    Regards,
    Rene

    I happens to have the same problem of yours after logging in to Gnome but i didn't test for root.
    I've followed what comment #40 says at
    https://bugs.launchpad.net/ubuntu/+sour … bug/549727 and the problem
    seems to gone.
    try removing ~/.gconf/desktop/gnome/peripherals/touchpad ?

  • Simple for you, hard for me

    I have 3 arrays:
    Array A
    Array B
    Array C
    I want to read through a text file. e.g.
    hello
    my
    name
    is
    goofy
    and
    i
    like
    to
    eat
    pies
    for
    dinner
    as
    well
    as
    drinking
    water
    I want to place the 1st line in Array A, the 2nd line in Array B, then the 3rd line in Array C
    Then I want to place the 4th line in to position 1 in Array A, then I want to put the 5th line into position 1 in Array B, then I want to put the 6th line into position 1 in Array C
    And so on until I have the following:
    Array A Array B Array C
    hello my name
    is goofy and
    I like to
    eat pies for
    dinner as well
    as drinking water
    Can someone tell me the most basic way to do this. By basic, i mean the easiest to get my young head around

    editing some simple int should work fine.
    int whateverYouWannaCallIt = 0;
    FileInputStream fin = null;
    String     line;
    StringBuffer s = new StringBuffer();
    try
      fin = new FileInputStream(filename);
    catch (Throwable e)
      System.out.println("Unable to open " + filename);
    BufferedReader dis = new BufferedReader(new InputStreamReader(fin));
    try
    while ((line = dis.readLine()) != null)
      if(whateverYouWannaCallIt == 0)
        ArrayA = line;
      else if(whateverYouWannaCallIt == 1)
        ArrayB = line;
      else if(whateverYouWannaCallIt == 2)
        ArrayC = line; 
      whateverYouWannaCallIt ++;
      if(whateverYouWannaCallIt >= 3)
        whateverYouWannaCallIt = 0;
    fin.close();
    .honestly, this prolly isn't the best method. This works nicely if you know for a fact that you will only have 3 arrays. But if you want it to dynamically account for how many ever arrays there are..I'd advise using a 2D array, still iterating your "whateverYouWannaCallIt" variable and using that as the first index of your 2D array..then just increment it the same way, and change the check from if it >= 3 to if it >= numOfArrays or something...

  • Ready for Sale / Not for Sale

    My book has been in ready for sale status on iTunes Connect for a month now—but not for sale in the iBookstore.
    I've sent 5 queries via iTunes Connect support as to why my book isn't in the iBookstore with no acknowledgement or response.
    Any suggestions are appreciated.

    That's the problem. There is no way that I can find other than through iTunes Connect.
    Thanks anyway.

  • Activation of ABAP not possible due to wrong syntax error

    Hi All,
    I copied some FORMs in a new include, to keep the "old" includes as they are after testing the bugfix.
    Now I face the syntax error, that all of this copies methods are already there "a FORM already exists with this Name..."
    BUT: This is not true, each copied FORM only exists once in the program. All includes are active, just the newest I created. I cannot activate it.
    Even If I reneame the FORMs, then I get the error for the new name, I've never used before.
    Do you have any suggestions, what to do?
    regards
    Volker

    Hi Volker ,
    Either you replace old include program with New include  then your new FORM will be cativate and if you cahnge Form Name with different then please check where  old perform was there and change perform name also in  your include program then it will be work.
    Regards,
    Prasenjit

Maybe you are looking for

  • Upconverting Receiver?

    Hello, I seem to be confusing myself with a home theater set up. I recently bought a Samsung 46" (LN46B640 - I don't believe this model runs 5.1 surround via optical) and I am trying to understand what I need to put together a decent home theater sys

  • In XL Reporter  the report template ER-1 is not working,

    In XL Reporter  the report template ER-1.ixr given by SAP is not working, Error message displayed: "Error in Expansion" how to correct this problem please give me the solution or mail me ER 1.ixr if you got working file, thank you Regards krish mail

  • How to resolve the runtime portal error which occurs during entering a room

    Hi All I have created a room of type "Sap_Team_Room" and then assigned it to one role when i am trying to enter room it is giving me the following error "Portal Runtime Error An exception occurred while processing a request for : iView : pcd:portal_c

  • CAN'T DOWNLOAD MUSIC TO MY LAPTOP

    I bought an album from my Ipad and now I can't download the album to my computer, It just says purchased next to all the songs when I use Itunes store on my laptop (I'm using the same Itunes account). How can I download the music to my computer?

  • Configuration doc for 1240AG web GUI

    hi! I am using web GUI to configure this AP but can not locate configuration guide for web GUI. there are plenty of them for CLI version is 12.4(10b)JDA Where can I find configuration guide based on web GUI? any help is appreciated!