Can't use compiler constant to set source for embed tag in ASC2.0

Hi.
I'm poring an application to ASC2.0. The code I'm talking about is being compiled as a flash movie, but I'm sure it applies to AIR also.
So we have some code like this:
class Test
  [Embed(source=CONFIG::FILE,mimeType="application/octet-stream")]
  private var TextClass:Class;
  public function test():String
    var ba:ByteArray = new TextClass();
    var str:String = ba.readUTFBytes(ba.length);
    return str;
CONFIG::FILE is set as compiler options like this
    <define append="true">
      <name>CONFIG::FILE</name>
      <value>'../../../../TEXT.txt'</value>
    </define>
This code compiles, but at runtime, the TextClass is null. If I replace the embed line with this, it works.
[Embed(source="../../../../TEXT.txt",mimeType="application/octet-stream")]
If I change the source string location, compilation fails. If I change the content of the compile constant, it does not fail, regardless if it points to a correct location or not.
Seems like another ASC2.0 bug. I suggest to open a forum that deals with ASC2.0 specifically.

OK. I know why. Its because although i create the version entity before i called the SQL. the new version entity hasn't been stored in the database, its still in the container. My colleague and me checked this by setting up a timestamp in the Version table and compared it with the time in the log. when i called SQL, the entry hasn't been created!

Similar Messages

  • Can you use SQL as a data source for a project in the same way you can in Excel?

    Excel allows you to create a data source that executes a SQL stored procedure, display that data as a table in a spreadsheet and have that data automatically refresh each time you open the spreadsheet. Is it possible to do the same thing in MS Project, displaying
    the data from the stored procedure as a series of tasks?
    Here's what I'm trying to do - I have a stored procedure that pulls task data meeting a specific criteria from all projects in Project Server. We're currently displaying this data as an Excel report. However, the data includes start dates and durations so
    it would be nice to be able to display it as a Gantt Chart. I've played around with creating a Gantt chart in Excel and have been able to do a very basic one, but it doesn’t quite fit our needs.

    No, You can not use sql as a data source for a project.
    You have 3 options to achieve it:
    1. You can create a Sharepoint list with desired column ,fill desired data in that list then you can create a MS project from Sharepoint List.
    2. You can create a SSRS report in which you can display grantt chart Joe has given you that link.
    3. You can write a macro in MPP which will take data from your excel. In excel you will fetch data from your stored procedure. write a schedule which will run every day to update your data or
    create an excel report in which will update automatically and write macro in mpp which will fetch the data then publish it so that it would be available to team members.
    kirtesh

  • I need to back up my imac running Tiger (no time machine) so that we can upgrade OS. It is set up for multiple accounts.  How do I capture all files in each account using newly purchased USB external hard drive?

    I need to back up my imac running Tiger (no time machine) so that we can upgrade OS. It is set up for multiple accounts.  How do I capture all files in each account using newly purchased USB external hard drive?  Thanks!

    Backup Software Recommendations
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    Synk Pro
    Tri-Backup
    Others may be found at VersionTracker or MacUpdate.
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files.
    Or you can simply use the Restore option of Disk Utility to clone the drive to the backup:
    Clone using Restore Option of Disk Utility
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.

  • How can I use dns-sd to set up a priner to work with AirPrint?

    How can I use dns-sd to set up a priner to work with AirPrint?
    The priner is an HP LaserJet 1200 connected to the network with an HP JetDirect.

    Some of the third-party apps like "handyPrint" are able to configre the HP JetDirect to work with AirPrint.
    I am trying to work up my own solution.
    SyBB

  • [svn] 3148: You can now use CSS styles to set the default text format for TextView.

    Revision: 3148
    Author: [email protected]
    Date: 2008-09-08 15:01:15 -0700 (Mon, 08 Sep 2008)
    Log Message:
    You can now use CSS styles to set the default text format for TextView. It no longer has any formatting properties. It supports the entire set of Gumbo text format styles.
    SkinnableComponent and Group now also support all these styles. However, skins such as ButtonSkin, TextInputSkin, and TextAreaSkin continue for now to specify instance styles on their TextBox, TextGraphic, and TextView, in order to give them a Gumbo look rather than a Halo look. So if you try setting, for example, the fontSize on the Application, it doesn't yet affect the text format of a Button, TextInput, TextArea, etc. unless you remove the instance style in the skin.
    Reviewer: Glenn
    Bugs: -
    QA: Lots of new stuff to test!
    Doc: No
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextArea.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextInput.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextView.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/SkinnableComponent.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicEle ment.as

    Nevermind guys - I did it using the 'rb_on.selected' command on the "on" radio button if the .txt file variable was "on", else the "off" radio button is selected.
    Thanks for taking a look though!
    Shaun

  • Hi, can i use a battery operated set of mp3 speakers with my ipod touch?

    hi, can i use a battery operated set of mp3 speakers with my ipod touch?
    or will i damage it..
    any help much appreciated

    if you mean speakers which you connect your ipod to using the earphone socket, then yeah. i've done that for years with all of my three ipods, and had no problems.

  • SB Audigy 2ZS Plarinum Pro: setting source for recording

    Hello!
    I am having problems setting the source for recording. I want to set the recording source from 'Wave' (default) to 'Line-In /Mic'. After doing so with the mixer or the MediaSource Player it resets to 'Wave' after some time. Why? Can I force the software to make 'Line-In /Mic' the default setting? It really dri'ves me nuts to see that the source has changed without me being notified. I want to have the source changed only by myself and not by some cozmic radiation, God's will, voodoo magic and whatnot.
    Greetings
    ClustalW

    <Re: SB Audigy 2ZS Plarinum Pro: setting source for recording? Okay ClustalW, I understand the "Default" problem you are having. So can you go to control panel, and sound and there look at your recording devices and tell me what do you see? If your desired device is there, you can choose it as the default and then throughout the rest of windows, this will be THE global default recording device or the first choice, when you are in other programs to record from. Also, make sure your device is plugged in when making this change. On my system with that board, a few years ago, I could make the choice, but it would always pick something else when the source was unplugged. For example, if I were using the front bay inputs as recording, when I would unplug them and reboot, my system picked the next thing as default.
    Next go into to your Creative Control panel and do the same thing there. Theoretically your choices should be linked, but this is not always the result. I can choose mine in Vista and windows 7, but lastly I always go to the Creative mixer applet and do it there and that works best. For me, my default is my front panel Mic or Microphone FP but as soon as I unplug it, it wants to make my back mic jack the default.

  • How can I use a pic from iPhoto as a background for a page, How can I use a pic as a background for a page

    How can I use a pic from iPhoto as a background for a page, How can I use a pic as a background for a page

    cd,
    Insert the picture and position it as you desire
    Make sure the picture is set to Floating in the Wrap Inspector
    Arrange > Send Objects to Background
    Regards,

  • Can I use songs in my  music library for ringtones?

    Can I use songs in my music library for ringtones if so how?

    There are plenty of places on the internet to dind the exact details, but yes you can.
    Pick a song
    Get Info and set the start and end points to less than 30 seconds (undo this step when you're finished)
    Make an AAC copy by right-clicking in your list view
    Drag the AAC copy to your desktop
    Rename it from m4a to m4r
    Drag it back into your iTunes Library

  • I can't remember the password I set up for Certificate-based signatures. How do I request this password?

    I can't remember the password I set up for Certificate-based signatures. How do I request this password?

    The password is yours to keep and remember. Adobe do not have any backdoor to get it back -- because if there were a backdoor, hackers would use it.

  • HT1386 how can i use my itunes music as ringtones for my contacts

    how can i use my itunes music as ringtones for my contacts. I have a ton of music in my Itunes library, but cannot figure out how to set up my ringtones for my contacts.

    http://techtips.salon.com/use-itunes-music-ringtones-iphone-3547.html

  • Multiple iphones each with an apple id - can i use the same laptop and itunes for back up, restore and updates?

    We have two iphones each with a different apple id - can i use the same laptop and itunes for back up, restore and updates without risking having my apps overwritten.  Basically does itunes keep the two iphones as two separate entities ?  Does iTunes differentiate between the two devices and keep two different SYNCs ?

    Yes, you can use the same computer for BACK UPS, RESTORING AND UPDATING. But that is it.
    You cannot, however, use it to sync the different devices. iTunes will only recognize one device to sync with and if you sync any other devices with that iTunes library, it will replace what is on the phone with whatever is in the library. It cannot differentiate between devices. At most, it will jsut recognize that the phone has been synced with a different iTunes library.
    So if you would like to use the same computer for backing up, restoring and updating, just make sure to turn of Automatic Syncing in your iTunes Preferences.

  • I have 2 iCloud accounts. Can I delete one account so I can make use of additional space I purchased for the secondary account? Also iPhoto seems to only connect to the primary account? How do I send files to the secondary account?

    I have 2 iCloud accounts. Can I delete one account so I can make use of additional space I purchased for the secondary account? Also iPhoto seems to only connect to the primary account? How do I send files to the secondary account?

    Both accounts are completely independent from each other. In order to use the space that you have purchased for your secondary account, you must change it to become your primary account. Yes, as you said, services like photo stream only work with the primary account. Unfortunately, there is no comfortable way to just transfer data from one account to another one, but you can do it via a third party application e.g. via Dropbox: e.g. for photos: photos stored with your current primary account > manual transfer to dropbox > after you made your secondary account to the primary account,  transfer the photos back to your new primary account etc.

  • I have a Ipod Nano and want to get another one , and use both. Can I use the same computer and library for both?

    I have a Ipod Nano and want to get another one , and use both. Can I use the same computer and library for both?

    Yes

  • Can i use technical system type 'third party' for r3 system in idoc2file sc

    Hi,
          i am doing a sample out bound scenario (idoc 2 file), distributing idoc from sap system to csv file (in same network). in this can i use thchnical system type 'third party' for R3 system. will the scenario work properly or not.
      And some times some of the business systems in SLD are not visible in ID, when assigning business system in ID.can any one tell reason for this.
      can any one suggest me,........ Thanks in advance & would be appreciated.
    Regards
    Rajesh

    Hi,
    <i> can i use thchnical system type 'third party' for R3 system. will the scenario work properly or not.</i>
       --- No u can't use this...Ur technical system must be "WebAS ABAP" only.  For file system you use 3rd party system. means ur technical system like follows.
    sender
    R/3  -- WebAs ABAP
    Receiver
    File  - 3 rd pary system
    <i>And some times some of the business systems in SLD are not visible in ID, when assigning business system in ID.can any one tell reason for this.</i>
      Click "Clear SLD cache" repeatly for some time in ID, it will come.
    regards,
    Ansar.

Maybe you are looking for

  • How to read the content of MS Word document?

    Hello Experts, I need to upload ms word document and fetch its content to an internal table. Is there any function module or class which is suitable to my requirement? Regards DNR Varma

  • Stored procedure call fails

    Hi, I have a very peculiar problem. I use Oracle 8i, and I use Oracle 8i for my development. My call to stored procedure is successfull for the first time. The second time I call it, it does not work. I am not able to reproduce it in a stand alone co

  • Dump when using Drag and Drop in Transportation Cockpit.

    Hi Experts. I am working on Transportation cockpit in TM 9.0. When I am dragging from Freight Unit stages and dropping on to vehicle Resource, the systems giving a 500 SAP Internal Server Error. ERROR: The current application triggered a termination

  • Dll-in-jar access by java2/1.2 applet

    Given the new security mechanisms of Java2/1.2, is it possible for an applet loaded from the network to access a dll in a jar? TIA, Reggie

  • Unable to install software

    Please can you advise, Recently the scanner stopped working on my HP B109NZ all in one printer. The error message says that another program has control of the scanner. After reading the HP blogs I uninstalled the HP software from my system  using Uni