Where is the Vector class? Can't use it.

Hello!
I've downloaded Flex Builder 3 Trial from Adobe's website.
Now I want to use the Vector class, but this code for example:
  var v:Vector.<String>;
  v = new Vector.<String>();
Gives me this error:
1046: Type was not found or was not a compile-time constant: Vector.
At the IDE, going to
  Window -> Preferences -> Flex -> Installed Flex SDKs
I can see that I have Flex 3.2 SDK.
Even more than that: When I search for "Vector" in the help ("Adobe® Flex™ 3 Language Reference") I can see all the details about Vector.
What can I do?
I'd like to avoid installing any newer SDKs due to all the bugs I see listed here in the forums.
Thank you!

It looks like you are trying to type Java code in Flex Builder.  Flex applications are generally built using ActionScript.
These docs might help you learn ActionScript:
http://www.flexafterdark.com/docs/ActionScript-Language
http://www.flexafterdark.com/docs/ActionScript-vs-Java
I hope that helps...
Ben Edwards

Similar Messages

  • How can I extend the Vector class?

    Hi All,
    I'm trying to extend the Vector class so I can get add a .remove(item:T) method to the class.  I've tried this:
    public class VectorCollection extends Vector.<T>
    That gives me the compile error "1017: The definition of base class Vector was not found"
    So then I tried:
    public class VectorCollection extends Vector
    Which gives me the compile error "1016: Base class is final."
    There must be some way to extend the Vector class, though, as on the Vector's official docs page it says:
    Note: To override this method in a subclass of Vector, use ...args for the parameters, as this example shows:
         public override function splice(...args) {
           // your statements here
    So there must be a way to extend the Vector class.  What am I doing wrong?

    No. AS3 doesn't currently have full support for generic types; Vector.<T> was added in an ad-hoc ("ad-hack"?) way. We are considering adding full support in a future version of ActionScript.
    Gordon Smith
    Adobe Flex SDK Team

  • Help wanted: which class can be used to add some effects on the text

    Hi, all:
    Does anyone can tell me which Java class can be used to add some effects(e.g. emboss, shadow, underline etc.) on the text which will be printed on the screen?
    If you know the class, pls tell me and thanks in advance!
    he

    hi,
    i think you are looking for JTextPane. but that's not all, you have to use document(or inherited classes), Style, StyleConstants, AttributeSet(or inherited classes).
    And all this you have to combine.
    I wish you much fun :-) and good luck.
    regards

  • Where does the java classes go?

    I normally use IntelliJ which automatically puts the java class and the jsp where they are meant to go.
    Can some help me.
    Can someone please tell me where to put the java class, i have put the jsp pages in the webapps\ROOT but where does the java classes go?
    Edited by: Tinkerbelle on Jul 24, 2008 1:46 AM

    Tinkerbelle wrote:
    sorry being stupid i do that sorry,
    If i change the class to type (as someone said in a previous post)That would only work if you already put the bean in the session scope.
    Did you try what PaulOckford wrote?
    >
    i get this error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 6 in the generated java file
    Only a type can be imported. com.database.contactDB resolves to a packageDo you have a package structure that looks like this:
    com
    com/database/ <-- This is where contactDB.class is located
    com/database/contactDB/
    Because that is what the compiler is saying. Though it may be thrown off by case (see below)
    P.S. If you use the jsp:useBean you do not need the import statement which appears to be where the error occurs. (One of the things that makes JSPs so hard to debug is the fact that the error line in the generated java file as referenced above is never the same as the line in the JSP file).
    >
    An error occurred at line: 3 in the jsp file: /login.jsp
    database.contactDB cannot be resolved to a type
    1: <%@ page import="com.database.contactDB" %>
    2:
    3: <jsp:useBean id='db'
    4: scope='session'
    5: type='database.contactDB'/>
    6: <html>
    And to be ultra clear - you did compile contactDB from a .java file to a .class file, and the class is called contactDB and not ContactDB correct? The class name is case sensitive and should be the exact same case in the useBean and import statements as in the real class name.
    >
    An error occurred at line: 3 in the jsp file: /login.jsp
    database.contactDB cannot be resolved to a type
    1: <%@ page import="com.database.contactDB" %>
    2:
    3: <jsp:useBean id='db'
    4: scope='session'
    5: type='database.contactDB'/>
    6: <html>
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
    Apache Tomcat/5.5.26Edited by: stevejluke on Jul 24, 2008 7:33 AM
    Fixed compile from .class file to a .java file to compile from a .java file to .class file

  • I want to copy and past 58 links from my IE favorites into the bookmarks toolbar...not one at a time. where's the folder i can copy these too?

    i want to copy and past 58 links from my IE favorites into the bookmarks toolbar...not one at a time. where's the folder i can copy these too?
    == This happened ==
    Not sure how often
    == i want to copy and past 58 links from my IE favorites into the bookmarks toolbar...not one at a time. where's the folder i can copy these too?

    Firefox doesn't store the bookmarks as separate files in a folder, but uses a sqlite database file with the name places.sqlite.
    You will have to export those favorites in IE to an HTML file and import that file in Firefox.
    Bookmarks > Organize Bookmarks > Import & Backup > Import HTML : "From File"
    See http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox

  • HT1386 In the new iTunes where is the sync options?  I used to see an icon.

    In the new iTunes where is the sync options?  I used to see an icon on the left side while the sync was happeneing, then click on it to make changes.

    If you  have iTunes 11 turn on the Sidebar. Go to iTunes>View and click on Show Sidebar. You can also do a Crtl+S to show the sidebar and Control+B to show the Menu bar
    To sync to your iPod go to iTunes>Help>iTunes Help>Sync your iPod....>Sync You Device>Set up Syncing and follow the instructions.

  • Where is the member class?

    Hi,
    I am Ryan.
    Here is a small piece of code.
    <pre>
    if( error.getClass().equals( SoftErrorException.<b>class</b> ) )
         throw new JspException();
    </pre>
    Can somebody tell me where is the member "class" referred in the object SoftErrorException. I checked in the class "Object" and "Class". I also checked in the Java documentation index. I still could not find it.
    Thanks in advance
    Ryan

    Can somebody tell me where is the member "class"
    referred in the object SoftErrorException. I checked
    in the class "Object" and "Class". I also checked in
    the Java documentation index. I still could not find
    it.
    Thanks in advance
    Ryanclass is not a member. This is part of the language. Also, SoftErrorException is not an Object it is a class. I'm also having a problem finding the documentation for this. I assume it is part of the JLS. ClassName.class is the same as InstanceOfClass.getClass().

  • Where is the "firefox button" that is used to change tab location ("click on the Firefox button, go over to the Options... arrow and uncheck Tabs on Top. ")

    Where is the "firefox button" that is used to change tab location ("click on the Firefox button, go over to the Options... arrow and uncheck Tabs on Top. ") (from article).
    The "Tools" menu has an "Options" selection, but I cannot find in any of those menus a selection controlling the location of the tabs. Where is the "Firefox Button" referred to in the article "Why are tabs on Top?"

    If you turn on the classic menu bar, that replaces the orange Firefox button. To get the Firefox button back, right-click the menu bar to display the toolbars list, and uncheck Menu Bar.
    You can always temporarily display the classic menu bar by tapping the Alt key or pressing F10.
    The toolbar list pop-up also lets you control Tabs on Top.

  • Bought my 4s in the UK but can't use it with a dutch SIM

    My UK bought 4s (Carrier Orange) seems to have a kind of country lock. I want to use it in the Netherlands with a dutch T-Mobile Sim but it doesnt appear to work.
    Does anyone have an idea on how to solve this?
    Cheers
    Martin

    Did you purchase the phone from Orange in the first place?  If so, then the phone will be locked to Orange and if this is the case, then you'll need to go to Orange and get them to unlock the phone for you.
    Actually, if your carrier is Orange anyway and regardless of where you purchased your phone, you'll probably need to contact Orange to see what the state of play is and the reason you can't use a Dutch sim card in your phone. Your carrier is the only one who could solve this for you, especially if your phone is locked in any way.

  • HT204053 My wife just got this iPad mini and I want to copy the address book on my iPad 2 over to the mini. Can I use iCloud to do this?

    My wife just got this iPad mini and I want to copy the address book on my iPad 2 over to the mini. Can I use iCloud to do this and what are the steps. The 2 devices have different Apple IDs.

    Download the "My Contacts Backup" app from App Store to your iPad 2. Make a backup and send it by email to your wife's address. Open this email from iPad mini and tap the attachment to import the contacts into iPad mini Contacts app.
    Message was edited by: cheonweb

  • HT203175 I have no problem signing on to iTunes my issue is once on the site I can not use the "search". It says there is a runtime error R6025 pure virtual function call. Has anyone had this problem and how do I fix it. Thanks

    I do not have a problem getting in the iTunes stores. My issue is once on the site I can not use the "search". It says there is a pure virtual function call R6025. How can I solve this problem? Do I have to create a new account? Do I have to uninstall and re-install? Thanks

    Thanks so much for your feedback. I really appreciate any input here.
    If someone from Adobe could GUARANTEE that this problem would go away if I
    purchased CS4, I would pony up the cash and do it. However, I'm skeptical
    about that because I just saw someone else post a message on the forum today
    who is running CS4 and getting the exact same runtime error as me.
    I'll try un-installing and re-installing as Admin, and if that doesn't work,
    maybe I can find a used copy of CS3.
    In the meantime, I'm also wondering if a Photoshop file can carry any sort
    of corrupt metadata inside it once it has errored out? Reason I ask is, I
    had to port all of my old PSD files to the new computer, and I only seem to
    be getting this error when I attempt to work on one of the files that
    previously got the runtime error when they were sitting on my XP machine.
    When I create new files from scratch on this new computer, they seem to be
    working just fine (at least, for now).
    If so, I would probably be smart to never open those troublesome
    "errored-out" files again.

  • HT3986 I have a pc that is one year old and the hard drive is crashing we use it only for quick books to run our small business I would like to buy amac and install the OS  forom the pc to the apple product i will not use the pc after can i use the OS off

    I have a pc that is one year old and the hard drive is crashing we use it only for quick books to run our small business I would like to buy a macmini and install the OS  from the pc to the apple product i will not use the pc after, can i use the OS off the pc or do I have to purchase another?

    I think you can get Windows 7 for around $99. Install the 64bit version as the 32bit version will not be able to use all your new computer's ram if you have more than about 3.5gb.
    Back up your quick books data now before the old hard drive dies. You can copy your data over to your new installation of Windows and quick books.
    By the way, there is quick books for Mac http://quickbooks.intuit.com/mac/?sc=BNR-000-COR-quickbooks&priorityCode=4902000 000&cid=ppc_google_QB-Intuit-Core-Brand-Mac_quick-books-for-mac_exact&site=&ad_i d=9347918288&raw_keyword=quick%20books%20for%20mac
    So you may not need to install Windows at all.

  • Amount in Bar Code is incorrect;Amount in the line item can be used instead

    We have a problem in our Brazil company code.
    When we have a document with value higher than 5,000.00 BRL it is subject to Pis/cofins tax. In the Boleto (paper) document the amount is after tax deducted. But we see the full amount in the Vendor line item in SAP
    When the system reads the bar code and saves this code in the vendor line item during the document change we get a warning message no."8B797: Amount in Bar Code is incorrect;Amount in the line item can be used instead".
    And the amount in the Barcode line automatically adjusts itself to the line item amount which is the pre-tax amount (full amount).
    Example: Amount in the SAP Invoice doc is R$ 6,268.72   
                   Amount in Boleto (paper) R$ 5,977.22   (after deducting PIS/COFINS) - This amount appears in the bar code but once we press enter after the warning message it automatically adjusts to R$ 6,268.72 .
    We tried few notes like 784748 to apply but it says it is obsolete. We are on ECC 6.0 Release level 11.
    Regards.,
    Raj/

    answered through SAP note 784748

  • When i plug in my charger to my macbook and have it charged all the way i can only use it for an hour before it dies on me again. what is wrong with my macbook? what can i do to fix it?

    when i plug in my charger to my macbook and have it charged all the way i can only use it for an hour before it dies on me again. what is wrong with my macbook? what can i do to fix it?

    Go to the Apple in the upper left corner and select About This Mac, then click on More Info (and then System Report in 10.7), then select Power from the left hand column of the System Profiler. Copy and paste the Battery Information back here.
    Also it would help to know which one of the 9 different models of MacBook you have. To see which model you have go to the Apple in the upper left corner and select About This Mac, then click on More Info (and then System Report in 10.7).When System Profiler comes up check the Model Identifier.

  • I am in the UK. Can I use the iPad Mini when on holiday in Sri Lanka?

    I am in the UK. Can I use the iPad Mini when on holiday in Sri Lanka?

    Sure.  Wifi is wifi the world over, so you can use any free wifi you can find at hotels, restaurants, and so forth.
    If you have a wifi+cellular iPad mini, you can use a SIM card from a local carrier if there is one there that offers iPad data plans.

Maybe you are looking for

  • Restore iTunes after data recovery

    I accidentally partitioned my external HD that contained all of my iTunes content (songs, movies, etc.). I was able to recover all the data fortunately using VirtualLabs Recovery. I didn't lose my library.xml file, either. How do now I restore my lib

  • How to link a custom ADF form to BPM workflow

    Hi All Hope you are doing well. I've a basic knowledge on BPM, but had to start off with a project. My scenario is as below. 1. User A clicks on a task in his BPM Worklist which should trigger an email to the same guy with a link in it (which is an A

  • EventHandler not executes for more of an user

    Hi Guys, I have three eventhandlers Post-Process, generator user login, associate the user manager and changer user status, from OIM 11g. When executes my HR reconciliation, and exists a new user to be created, is executed all eventhandlers normally,

  • 5 ghz with Windows 8.1

    I set up a separate band for 5 ghz with a new SSID on an EA6400 and hid it. When I select it and enter the password, I get a variety of errors which seem to occur randomly: BAD POOL CALLER; DRIVE irql NOT LESS OR EQUAL; SERVICE EXCEPTION; BAD POOL HE

  • Why does Pages take so long to load on ipad2

    Most of the time when I launch Pages on ipad2 it takes awhile for the app to load all of the files. Sometimes I have to quit the app and try it again. Sometimes again. And then, finally it comes up and I am able to get to work. Anyone know why this i