Why can't I use a Date in a component?

When I try to use the Date class in a component I get an
error:
1046: Type was not found or was not a compile-time constant:
Date. zForm.mxml Zilch/components ...
How can this be? Is there an import I need to use?

Common coding convention is that your variables should start
with lower-case and classes should always start with upper-case.
You just found the EXACT reason. :)
private var date:Date = new Date();
Robert.

Similar Messages

  • Why can't I use cellular data on my iPad to download my purchased tv shows from iTunes to my iPad?

    I purchased some tv shows onto my iTunes account to download onto my iPad, but it won't let me? Just wanted to know if there was anyway to do this or will I not be able to do so?

    There is a 50 meg download limit per file over 3G/4G, so if they are larger than that then you will need to find a wifi network - the limit can only be raised by Apple with the agreement of the phone companies.

  • What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?

    Hi All,
    I am new to TestStand. Still in the process of learning it.
    What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
    Thanks in advance,
    LaVIEWan
    Solved!
    Go to Solution.

    Hi,
    Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
    Regards
    Ray Farmer

  • Why can't I use data connection for FaceTime on iPhone 4

    My iPhone 4 says I have to use wifi in order to use my FaceTime and I was wondering why can I just use my AT&T data connection instead.Every other iPhone could use their FaceTime but the 4 cant.We have an update to be able to use both ?

    As already provided:
    "I believe AT&T requires that you be on one of the "shared" data plans in order to do FaceTime over cellular. If so, either change your plan or complain to AT&T, as this has nothing to do with Apple."

  • Why can't I use iCloud for exchange of data - like I could with MobileMe?

    Why can't I use iCloud for exchange of data - like I could with MobileMe?
    Oder auf Deutsch, warum kann ich keine Daten mehr in iCloud speichern bzw. zum Austausch bereitstellen, wie das bei MobileMe noch ging?
    Danke für die Hilfe
    Thanx in advance!

    The purpose of iCloud is to sync data between your devices.
    There is no "web address" to your files and no way to "share" them with others (except photos).

  • Hi, why can't I use the iMessage on my iPhone? I've already had my apple id email on it but it keeps saying "waiting for activation" always like that. No progress. Could anybody help me on this? Cheers

    Hi, why can't I use the iMessage on my iPhone? I've already had my apple id email on it but it keeps saying "waiting for activation" always like that. No progress. Could anybody help me on this? Cheers

    I have an old iPod Touch with old software that can no longer be updated:
    iOS version 6.1.6
    I've been searching for a solution to my iMessage login problem for months and tried everything from those frustrating links and all the tips from other users.
    Here is what finally worked:
    1) Settings > Privacy > Location Services > On
    2) Settings > General > Date & Time > Set Automatically > On
    3) Reboot device until Apple logo appears
    4) Settings > Messages > Sign In

  • Why can't we use GUI_Download in background mode...........

    Hi experts as per the requirement my program should run at specific time in background mode, it need to upload the Personal numbers from the input file and for those personal numbers extract the data from multiple tables. but this report shd run in background.
    and download the output in the form of flat file.
    as i'm running in background mode can't use the F.M GUI_Download and GUI_Upload.
    can any one guide me how to solve this issue and why can't we use these F.M. if we can't use then what is the alternative to run in background mode.

    A program that runs in background mode doesn't have any connection to a frontend. After all, you can schedule it to run at a time where your frontend computer is not running.
    In this case you have to load your files on the application server (or a mount point) and use the FMs C13Z_FILE_DOWN(UP)LOAD_ASCII(BINARY)
    Regards
    Frank

  • Why can't I use the function of menu item 'issue delivery output'?

    why can't I use the function of menu item 'issue delivery output' in main screen of delivery note?
    And at the same time I can't use the button of printing in main screen of delivery note.
    the main screen of delivery note I mean above is in screen of maintaining shipping data instand of the first screen of VL02N.
    TKS in advance.

    Hi,
    Because delivery will be having header level output and item level output. So if u try to print through main screen then system will not know whether it is header related or item related. That is the reason it is only print output at header level or item level but not in main screen.
    I think u may have doubt like how billin will be issued output through Main screen. Because for billing both header and item level data are same..
    Regards
    Sankar

  • Why can´t I use inport VI in win xp even when I have used userport aplication?

    why can´t I use inport VI in win xp even when I have used userport aplication for enabling port reading in this plattform?, I´m getting data from the parallel port in epp mode, my pc´s pararell is ok bcs I can read data in c++

    If you have an older LabVIEW (6.1 or earlier) you will need to exchange the in port and out port VIs that came with LabVIEW with different ones and install a DLL. The reason is documented here . This link (which is the first link returned when you search ni.com for "in port") explains basically that the OS won't let you until you have kernel level access. The devzone link at the bottom of the refered page will include all of the code that you need to install (VIs and DLL) to make it work.
    >
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Hi, my MacBook Air is not working anymore if it's not connected with the power cable. It's pretty new so I can't imagine that the battery is dead already. Why can't I use my MacBook Air without the power cable even though I charged it for hours?

    Hi, my MacBook Air is not working anymore if it's not connected with the power cable. It's pretty new so I can't imagine that the battery is dead already. Why can't I use my MacBook Air without the power cable even though I charged it for hours?

    Please take the Mac to  Apple store to have it checked out.
    Genius Bar reservation
    http://www.apple.com/retail/geniusbar/
    Best.

  • Why can't I use my mid 2010 macbook pro with 8GB memoir and NVIDIA GEForce GT 330M 256MB to run 3D in photoshop CC?

    Why can't I use my mid 2010 macbook pro with 8GB memoir and NVIDIA GEForce GT 330M 256MB to run 3D in photoshop CC?

    3-D is very memory intensive.
    System requirements | Photoshop
    Mac OS
    Multicore Intel processor with 64-bit support
    Mac OS X v10.7, v10.8, or v10.9
    2 GB of RAM (8 GB recommended)
    3.2 GB of available hard-disk space for installation; additional free space required during installation (cannot install on a volume that uses a case-sensitive file system or on removable flash storage devices)
    1024x768 display (1280x800 recommended) with 16-bit color and 512 MB of VRAM (1 GB recommended)**
    OpenGL 2.0–capable system
    Internet connection and registration are necessary for required software activation, membership validation, and access to online services.*
    ** 3D features are disabled and some Mercury Graphics Engine enhanced features may not work with less than 512 MB VRAM. Read the Help article.
    Bottom line, you don't have enough VRAM
    Nancy O.

  • Why can't we use iTunes gift cards with family sharing? After Christmas, we now have lots of account credit we can't use. Very frustrating.

    Why can't we use iTunes gift cards with family sharing? After Christmas, we now have lots of account credit we can't use. Very frustrating. There is no option found for using account credit.

    I just logged out of my daughter's account and back in, and now it works. Deducted from gift card account balance. So I hope this is resolved.

  • HT4061 Why can't I use face time on 3G internet

    Why can't I use FaceTime on 3G internt

    This feature will only be available when the new update ios6 comes out in sept or october and will only be for the iphone 4s or the new ipad if havent got one of these devices then facetime will only work over wifi the reason apparently the older devices are unable to handle it requires more processing power.

  • Why can't i use my visa on my iphone ?

    why can't i use my visa card?

    I dont know?  what happens when you try?  visa is an acceptable payment method.

  • Why can't I use Emoji keyboard on my IOS7?, Why can't I use Emoji keyboard on my IOS7?, Why can't I use Emoji keyboard on my IOS7?

    Why can't I use the Emoji keyboard on my IPad Air?

    u need to set up 1st the Emoji keyboard. How ?
    setting>keyboard>keyboards>Add new keyboard>select Emoji

Maybe you are looking for

  • Can you select multiple contacts all at one time when composing an email?

    Would like to know if there's a way to select multiple contacts when composing a large blast email to family etc. I really don't want to create a separate group I would rather just select from contacts as I go. This list changes depending what I'm em

  • Air Application not installing included folders on Win 7

    Hi All i have a really strange problem. I have made a native air installer. I have included a folder in the included files panel before publishing. When I publish it publishes fine. And when I install the air app it installs the only problem is When

  • Automatic replacement in Pages 5.0 ?

    I've just updated my Page 09. to Page 5.0 and I can't find any more the thing I prefered : Automatic Replacement. "we" => "week end"... Previously, you could find it with : Cmd + ; If anyone has found out where this feature is, please help me.

  • Two Libraries one iPhoto 4.

    I'm running short on space on my internal hard drive. Is it possible in iPhoto 4 to have two iphoto libraries? One iphoto library on my internal hard drive for recent and beloved photos and a second library on and external drive for older and less be

  • 1:8, 1:16 Zoom

    Working with 21mp files, at 1:4 zoom, on a 26" display at 1920x1200, the images are larger than the available viewing area, with the default panels shown.  The smallest you can view an image is 'Fit'. I prefer to view the images smaller than this.  W