Variable embed source

Dear,
I will make a variable Embed source. I tried several things
but not getting it worked. What I want is the following:
Attached code
How can I do something like that?
I want use a flash var for the image ID.
Your sincerely,
Marten-it

Adobe Newsbot hopes that the following resources helps you.
NewsBot is experimental and any feedback (reply to this post) on
its utility will be appreciated:
Flex 3 - Embedding asset types:
When embedding an SVG image, Flex defines imgCls as a
reference to a subclass of the mx.core.SpriteAsset class, which is
a subclass of the flash.display.
Link:
http://livedocs.adobe.com/flex/3/html/embed_4.html
Exporting Flex image as PNG image - Flex India Community |
Google:
Sep 19, 2007 ... import flash.utils.*;. and declare crcTable
and crcTableComputed .... So, I want to write a code to which can
convert the flex image in PNG
Link:
http://groups.google.com/group/flex_india/browse_thread/thread/519598c7fcba6447
Flex 3 - Image control:
... a delay when you use the images and load them into Adobe
Flash Player or AIR. .... By preserving the aspect ratio of the
image, Flex might not draw the
Link:
http://livedocs.adobe.com/flex/3/html/controls_16.html
Preloading Image | Flex.org - Rich Internet Application
Development:
Flex.org is built with Drupal. Integrate Flex and Drupal with
the Services module. ... Flash and Silverlight: 3D Image Rotation.
10 hours 11 min ago
Link:
http://flex.org/software/component/preloading-image
mx.controls.Image (Flex 2.0.1 Language Reference):
Note: Flex also includes the SWFLoader control for loading
Flex applications. ...... Image. Inherited. deactivate. Dispatched
when Flash Player loses
Link:
http://livedocs.adobe.com/flex/201/langref/mx/controls/Image.html
15+ Free, powerful and easy to integrate Flash image gallery
- Ntt.cc:
Ajax both have their pros and cons, we know that both Flex
and Ajax have ... Following are some free but powerful flash image
gallery which I collected.
Link:
http://ntt.cc/2008/04/10/over-15-free-powerful-and-easy-to-integrate-flash-image-gallery.h tml
Disclaimer: This response is generated automatically by the
Adobe NewsBot based on Adobe
Community
Engine.

Similar Messages

  • [Embed(source='font.ttf')] suddenly failing in AIR 13.0

    Hi all,
    I have an app for iOS and Android that we've been testing for about 6 months with no problem.  It uses Embed code to define 5 different fonts used throughout the app, like this:
    [Embed(source='fonts/Feijoa_Medium.ttf', fontFamily="_Feijoa", fontWeight=FontWeight.NORMAL, advancedAntiAliasing="true", embedAsCFF="false")]
      public static const FeijoaClass : Class;
    // Sometime later
    Font.registerFont( FeijoaClass );
    This has been working perfectly in AIR 3.9
    I recently upgraded the AIR version to 13.0 (Edit: also happens in 14.0) and first received this error message:
    Build failed: Warning. The constant 'FeijoaClass' was not initialised
    On a whim, I changed the variable to private static var like this:
    [Embed(source='fonts/Feijoa_Medium.ttf', fontFamily="_Feijoa", fontWeight=FontWeight.NORMAL, advancedAntiAliasing="true", embedAsCFF="false")]
      private static var FeijoaClass : Class;
    The project now compiles, but I get the following run-time error on the Font.registerFont call:
    [Fault] exception, information=TypeError: Error #2007: Parameter font must be non-null.
    And sure enough, all my embedded classes are null.
    The path to the font is correct.  However, another weird thing is that if I deliberately change the path to the font to be incorrect, I do not receive any sort of error (I'm sure i used to in AIR 3.9 if the path was incorrect).
    Any ideas?  Scratching my head at this one!

    Ok, this turned out to be a problem with my IDE.
    I use FlashDevelop and had recently updated to 4.6.2
    I reinstalled an older version (4.5.2) and embeds are working again!

  • flexlib:MDICanvas backgroundImage="@Embed(source='/imgFolder/imgFile.png')/ compatability problem

    Dear all,
    We have a project that doing migration from flex 3 to flex 4. We use flexlib the latest version of
    flexlib - 2.5 - flex4.zip.
    However we confronted problems that several of attributes that flex 4 doesn't support:
    Constraints are listed as follows:
    1) <flexlib:MDICanvas backgroundImage="@Embed(source='/imgFolder/imgFile.png')/>
    2) <flexlib:MDICanvas backgroundSize="auto"/>
    3) <mx:ApplicationControlBar barColor="#000000">
    original error message:
    ====================================================
    Description    Resource    Path    Location    Type
    The style 'backgroundImage' is only supported by type 'flexlib.mdi.containers.MDICanvas' with the theme(s) 'halo'.    MainView.mxml    /osss/flex_src/hk/gov/labour/osss/view    line 242    Flex Problem
    Description    Resource    Path    Location    Type
    The style 'backgroundSize' is only supported by type 'flexlib.mdi.containers.MDICanvas' with the theme(s) 'halo'.    MainView.mxml    /osss/flex_src/hk/gov/labour/osss/view    line 242    Flex Problem
    Description    Resource    Path    Location    Type
    The style 'barColor' is only supported by type 'mx.containers.ApplicationControlBar' with the theme(s) 'halo'.    MainView.mxml    /osss/flex_src/hk/gov/labour/osss/view    line 227    Flex Problem
    Regards,
    Man Pak Hong, Dave
    manpakhong
    [email protected]

    We find the answer.
    The problem is that the project theme is using spark as default. But the MDICanvas use Theme Halo. So that we need to change the theme from Spark to Halo.
    Doing this by:
    Right-click the Project --> Flex Theme --> Choose Halo from "Adobe Themes - Halo"
    Man Pak Hong, Dave
    manpakhong
    [email protected]

  • How to use variable in source path of an image  in flex

    hello
    i just want to know that how to use variable in source path
    of an image in flex

    I am doing exactly that with data binding at the moment. This
    is my Image element
    <mx:Image width="50" minHeight="50" height="76"
    source="{Application.application.parameters.api}/rest/entity/{data.Slug}/Image"
    />
    Note the curly brackets
    HTH
    Pat

  • [Embed(source="...   And dispatching events and trace commands not working

    Hi,
    I have a main swf that Embeds another swf.  In the embedded (child) swf I have trace commands and it dispatches events. 
    I embed the child swf like this:
    [Embed(source="../assets/child.swf", symbol="ChildMC")]
    public var ChildMC:Class;
    var child_mc = new ChildMC();
    child_mc.addEventListener(Event.COMPLETE, childComplete);
    addChild(child_mc);
    function childComplete(event:Event):void
    at the end of the timeline in the child swf I have: dispatchEvent(new Event(Event.COMPLETE));
    When I test the main swf, I can see the child swf, but the main swf can't catch any of the dispatched events and I don't get any trace commands from the child swf.
    How can I catch events from an embedded swf?
    thanks!

    I did a quick sample with two fla's.
    The first loads in a child swf and then calls a funtion on the main timeline:
    var url:String = "loadTestChild.swf";
    var urlRequest:URLRequest = new URLRequest(url);
    var loader:Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loader_complete);
    loader.load(urlRequest);
    addChild(loader);
    function loader_complete(evt:Event):void {
       evt.currentTarget.content.callMeFromParent();
    The child swf has this code on the main timeline:
    function callMeFromParent ():void {
              trace ("called from parent whoop");
    Running the parent, the trace is called.
    So with this you should be able to call any function you have in the child from the parent.

  • Does [Embed(source="assetname")] work in Flash or just Flex?

    Does [Embed(source="assetname")] work in Flash or just Flex?
    Thanks!

    Thanks for the link.  But that sucks.  When I import a mp3 file into the flash library there is a slight delay when it loops.  But if I bring in a AIFF file into the library and let Flash encode it then there is no delay.  I was hoping to not have to have Flash encode my music loops every time I test my game.  Many game sites don't want external assets, everything has to be in one swf.  I could load external swfs with linked music loops, but like I said, most game sites want everything in one swf.  I wish Adobe would either fix this very old loop bug or allow the flash IDE to use Embed : (

  • [EMBED (source="????")] - using dynamic source?

    dynamic button skinning - I can't believe I've spent so long trying to do this..............
    I have my spark Button loading an icon using the embed metadata tag:
    [Embed(source=("icon1.png"))]
    private var _icon:Class;
    yay - that works!!!
    However, I'm not entirely sure how to get the embed tag to recognise my file reference as a dynamic/concatenated string:
    var myFilePath:String = imgPath+"icon"+varNum+".png";
    [Embed(source=myFilePath)]
    private var _icon:Class;
    That doesn't work:
    'myFilePath' does not have a recognized extension, and a mimeType was not provided IconButton.as /Copy of IconButtonDemo/src line 22 Flex Problem
    Unable to transcode myFilePath. IconButton.as /Copy of IconButtonDemo/src line 22 Flex Problem
    How does one go about creating that file reference for the embed tag to read properly???  I'm going to need it, so I can build the file path from dynamic data and looping, etc.
    As always, thanks in advance... I'm learning alot from reading here today.

    Ah.... so the EMBED tag is for compile time only... not runtime loading....
    Despite this, I'd still like to know if it's possible to concatenate the embed source.
    Also, is there also any way to get an asset into a button component dynamically at runtime?

  • Retrieve Data for the Variables from Source System in Target System

    hello...i created a variable in the source system in the table: TVARVC and I would like to get the data from this table in the source system and used this in the infopackage calendar day in the BW target system. Can anyone suggest any useful way to do this? How to take the data from this table TVARVC which is not in the same box, is a different box.
    THANKS alot =)

    Hi  FluffyToffee,
    Try to create a RFC function module to read values in source table. Use this FM in infopackage selection routine.
    Hope it Helps
    Srini

  • Possible to define variables outside source code?

    Hello everyone,
    I'm using the coldfusion encryption functions (like decrypt()) to save some credit card info on a database. However, the problem is that the password is in plain sight as part of the coldfusion code.
    So my question is, is there a way to define an Application.level variable from the Coldfusion Administrator, and then access that variable from my coldfusion code?
    Could it be possible to pass the variable as a JVM argument? If yes, how would I specify it and how would I read it from Coldfusion code?
    This seems like a no-brainer thing for coldfusion to have, but I cannot seem to find this feature in the documentation.
    - JC

    You know you can encrypt/obfuscate your CF source code so that its run-able on the server, but appears as gibberish for anyone viewing the CFM file via a text editor.  Do a google search for "encrypt CF template"
    Of course, if you are storing sensitive information on a server but don't trust the people who have physical access to the machine then you may have bigger issues to deal with...
    Hope that helps!
    -Michael

  • Binding Shared Variable to Source

    Dear all,
    I'm currently working on a project that requires the use of shared variables. The shared variables will be network published and programmatically created using properties nodes. However I encounter one error and one problem in the process of doing so.
    1) I programmatically bind the shared variable directly to the fieldpoint channel (data item) by writing the URL \\10.0.0.1\FP\1AIO\00 when i create the shared variable. The shared variable can be created successfully but when i deploy it, it generates an error which seems to tell me "it is out of range". Can anyone help me to rectify this problem?
    2) The 2nd question will be, as my fieldpoint is connected to a DHCP server. At the start when i create the shared variable programmatically, i could bind the shared variable directly to the data item by writing the URL to its property. However, during the process of deployment, the dynamic IP address assigned to my fieldpoint may change . How can I ensure that the shared variable continue to bind to the right fieldpoint channels respectively? even though the IP address changes?
    - Or is there any method that I could view all the network data items in a table? a list? or an array? so that I can link them to the URL.
    I tried using the data socket URL.vi, I can only select the data item one by one.. this will be tedious for 100 or 200 I/O points..
    Will greatly appreciate for any advice and help. Thanks in advance.

    Try this.
    Give your fieldpoint controller a computer name through MAX.  Then instead of referencing it by 10.0.0.1 in the URL's of the shared variables reference it by computer name.  So  \\MyFPmachine\FP\1AIO\00 instead of  \\10.0.0.1\FP\1AIO\00.
    Dynamic IP's can definitely cause headaches, and it would be best to use static IP's if possible, but doing this method should help.  It seemed to work for me.  I found when you browse for the channel in LV, it wants to give it the IP address by default, but it was possible to edit the string and paste in the computer name.
    Message Edited by Ravens Fan on 01-10-2007 11:01 AM

  • Debugging in Eclipse does not work (no variables, "No source availab")

    Hello!
    I have setup Eclipse for doing some very easy C projects.
    The code runs fine if I click the "Run" button, but I can't get the debugger working.
    First of all I can't see the values of the variables. And after passing the first breakpoint I get this message:
    Any ideas?

    Well, the code itself is homework, yes. But since our school is pro-microsoft we are "recommended" to use Visual Studio (Which is working great).
    But since I'm here, I don't think I need to say that I'm not a huge fan of windows.
    I haven't changed any settings in Eclipse, so its all at default settings. I have followed several tutorials, and non of them has said anything about changing any settings for getting debugging to work.
    I'm using "scanf" to read the value, so I guess that I have to enable debugging in stdio.h in some way then?
    I spoke to my teacher today however, and he suggested that I tried codeblocks.
    And In codeblocks everything works as expected (Actually easier than MS VS i think). And since we are only doing some basic labs in a few weeks, I'll be fine with it.
    But thanks for the answer anyway!

  • Help with first flash game?

    Hi. My name's Rory.
    I am an artist.
    http://www.youtube.com/profile?user=PimpOfPixels
    http://roaring23.cgsociety.org/gallery/
    I am learning action script and Flash so that I can make
    games.
    I am not a complete novice in programming. I am proficient in
    Java and in MaxScript (3DSMAX embedded language).
    I have been making some progress in action script and I have
    a functional (although incomplete) game in the works. You can view
    it here:
    http://secure2.streamhoster.com/~rlu...orniverous.swf
    The idea is it's a color game
    red beats green, green beats, blue beats red. Think paper
    scissor rock.
    The idea is to change the entire circle into one color.
    The graphics are place holders BTW.
    I am using FlexBuilder 2.0 and Flash CS3, and I have come
    across a problem not covered in either of my books.
    I'd really appreciate any help that you guys can offer.
    I have gotten this far on my own.
    My #1 question (and I have many more) is:
    How do you through Flash specify animation segments for a
    MovieClip Symbol?
    Notice how the red creatures occasionally open their mouths.
    I want to have a walk, an attack, an absorb, and a bounce animation
    on the same timeline and trigger the appropriate one depending on
    which color the creature collides with. I do not know how to go
    about this problem. I’ve just been trying to get the walk
    animation to loop without playing the attack animation so far.
    I've tried frame-labeling in flash, with scripts on the key
    frames of a second layer that specify when to stop or repeat the
    animation... No dice.
    I have a symbol named RedShot in the library of a flash
    project named "graphics"
    In my timeline I have 2 animation segments, and I have a
    second layer denoting two corresponding frames named "walk" and
    "attack" from the properties menu.
    On the final frames of the animations I have scripts.
    Code:
    gotoAndPlay("walk");
    and
    Code:
    gotoAndPlay("attack");
    respectively.
    Im my library I have linkage options specified as such:
    Class:RedShot
    BaseClass:flash.display.MovieClip
    export of actionscript#CHECKED
    export on 1st frame#CHECKED
    on the main stage of my flash project I have actionscript for
    2 functions:
    Code:
    function walk(){
    red_shot.gotoAndPlay("walk");
    function attack(){
    red_shot.gotoAndPlay("attack");
    I export the project and the opened window has the "walk"
    animation looping properly.
    In my FlexBuilder project I embed the symbol
    Code:
    //Inside class global variables:
    [Embed(source="../graphics.swf", symbol="RedShot")]
    public var RedShot:Class;
    private var _shot:MovieClip;
    Code:
    //and in my buildShot function:
    _shot = new RedShot();
    addChild(_shot);
    When I build the project the characters appear, and they
    animate. The only trouble is that there are no breaks in the
    animation. The animation loops right through the frames where I
    have specified that the animation should "gotoAndPlay" from a
    different part.
    What's weirder is that I can call
    Code:
    "gotoAndPlay("attack");"
    without an error and it will go to and play from that point.
    The only trouble is that it will begin to loop the entire animation
    again without stopping at the gotoAndPlay events stored in the
    frames of the timeline.
    It seems like all embedded actions are ignored, add I can't
    think of another way to controll the animation.
    Any thoughts?

    After hours of searching the internet I finally got this
    blasted question figured out.
    How to you export a symbol from Flash for use in a Flex
    Builder project without destroying actionscript stored within the
    frames of the Symbol's timeline?
    That's a long winded way of saying: "In FlexBuilder, how do
    you control MovieClips from Flash". I'm trying to make games, and
    this was a particularly important question for me :).
    Here's how:
    1) You need a hotfix from Adobe.
    [HTML]http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401493&sliceId=2[/HTML]
    This allows Flash CS3 to export a SWC file.
    2)You have to set the linkage properties for your various
    symbols in the flash library panel.
    a)right click on symbol in library panel
    b)choose "linkage"
    c)"Class:" = (pick a name)
    d)"Base class:" = flash.display.MovieClip;
    e)"Export for ActionScript" = CHECKED
    f)"Export in first frame"=CEHCKED
    3)If you want to have multiple segmented animations as I
    certainly did you'll want to create frames and actionscripts within
    the symbols timeline to define where these animations are.
    a) in the symbol's timeline make a second layer. We'll name
    that layer "labels" for the sake of not having this get too
    confusing.
    b) on that layer create a new frame for each of the animation
    segments that you'd like to define and stretch them to the length
    of the corresponding animations.(I'm assuming that you have a
    keyframe animation on the 1st layer... otherwise what's the point
    of all this :P?)
    c)in the properties panel name the frames in the "labels"
    layer accordingly ie. "walk" "run" shoot" etc.
    d)Define whether the various animations play once or loop by
    adding a script to the last frame of the animation. If you want the
    animation to loop add
    [CODE]gotoAndPlay("name-of-the-animation");[/CODE]
    if you want the animation to play once and stop add
    [CODE]stop();[/CODE]
    if you want the animation to play once and then return to a
    different animation add
    [CODE]gotoAndPlay("name-of-a-different-animation");[/CODE]
    4) now you can export the symbols to an SWC file. Note: you
    do not get this option unless you have installed the hotfix.
    [HTML]http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401493&sliceId=2[/HTML] .
    a)rightclick on a symbol in the library panel
    b)choose "exportSWCfile..."
    c)export the file to a logical place such as the root of your
    FlexBuilder project.
    5) Now you have to tell flexbuilder about the new SWC file.
    Note: Once this file is added to the FlexBuilder library you can
    instantiate classes from it as though they were included using the
    "include" function.
    a)Right clicking on the root of the project in the Navigator
    view.
    b)going to properties.
    c)Going to library path. (2nd tab)
    d)and pressing the "Add SWC" button
    Now you're done and you can instantiate any of the symbols
    from your library while preserving any actions from your symbols
    timeline just as though you had imported it as a class from a
    typical library.
    Sweet huh?
    Thanks to the countless people and internet resources I found
    on the subject. Hopefully it will be easier for anyone who finds
    this post.
    Here's an adobe video which covers the basic process.
    https://admin.adobe.acrobat.com/_a300965365/p75214263/

  • New to flash actionscript, making a game.

    Hi. My name's Rory.
    I am an artist.
    http://www.youtube.com/profile?user=PimpOfPixels
    http://roaring23.cgsociety.org/gallery/
    I am learning action script and Flash so that I can make
    games.
    I am not a complete novice in programming. I am proficient in
    Java and in MaxScript (3DSMAX embedded language).
    I have been making some progress in action script and I have
    a functional (although incomplete) game in the works. You can view
    it here:
    http://secure2.streamhoster.com/~rlu...orniverous.swf
    The idea is it's a color game
    red beats green, green beats, blue beats red. Think paper
    scissor rock.
    The idea is to change the entire circle into one color.
    The graphics are place holders BTW.
    I am using FlexBuilder 2.0 and Flash CS3, and I have come
    across a problem not covered in either of my books.
    I'd really appreciate any help that you guys can offer.
    I have gotten this far on my own.
    My #1 question (and I have many more) is:
    How do you through Flash specify animation segments for a
    MovieClip Symbol?
    Notice how the red creatures occasionally open their mouths.
    I want to have a walk, an attack, an absorb, and a bounce animation
    on the same timeline and trigger the appropriate one depending on
    which color the creature collides with. I do not know how to go
    about this problem. I’ve just been trying to get the walk
    animation to loop without playing the attack animation so far.
    I've tried frame-labeling in flash, with scripts on the key
    frames of a second layer that specify when to stop or repeat the
    animation... No dice.
    I have a symbol named RedShot in the library of a flash
    project named "graphics"
    In my timeline I have 2 animation segments, and I have a
    second layer denoting two corresponding frames named "walk" and
    "attack" from the properties menu.
    On the final frames of the animations I have scripts.
    Code:
    gotoAndPlay("walk");
    and
    Code:
    gotoAndPlay("attack");
    respectively.
    Im my library I have linkage options specified as such:
    Class:RedShot
    BaseClass:flash.display.MovieClip
    export of actionscript#CHECKED
    export on 1st frame#CHECKED
    on the main stage of my flash project I have actionscript for
    2 functions:
    Code:
    function walk(){
    red_shot.gotoAndPlay("walk");
    function attack(){
    red_shot.gotoAndPlay("attack");
    I export the project and the opened window has the "walk"
    animation looping properly.
    In my FlexBuilder project I embed the symbol
    Code:
    //Inside class global variables:
    [Embed(source="../graphics.swf", symbol="RedShot")]
    public var RedShot:Class;
    private var _shot:MovieClip;
    Code:
    //and in my buildShot function:
    _shot = new RedShot();
    addChild(_shot);
    When I build the project the characters appear, and they
    animate. The only trouble is that there are no breaks in the
    animation. The animation loops right through the frames where I
    have specified that the animation should "gotoAndPlay" from a
    different part.
    What's weirder is that I can call
    Code:
    "gotoAndPlay("attack");"
    without an error and it will go to and play from that point.
    The only trouble is that it will begin to loop the entire animation
    again without stopping at the gotoAndPlay events stored in the
    frames of the timeline.
    It seems like all embedded actions are ignored, add I can't
    think of another way to controll the animation.
    Any thoughts?

    After hours of searching the internet I finally got this
    blasted question figured out.
    How to you export a symbol from Flash for use in a Flex
    Builder project without destroying actionscript stored within the
    frames of the Symbol's timeline?
    That's a long winded way of saying: "In FlexBuilder, how do
    you control MovieClips from Flash". I'm trying to make games, and
    this was a particularly important question for me :).
    Here's how:
    1) You need a hotfix from Adobe.
    [HTML]http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401493&sliceId=2[/HTML]
    This allows Flash CS3 to export a SWC file.
    2)You have to set the linkage properties for your various
    symbols in the flash library panel.
    a)right click on symbol in library panel
    b)choose "linkage"
    c)"Class:" = (pick a name)
    d)"Base class:" = flash.display.MovieClip;
    e)"Export for ActionScript" = CHECKED
    f)"Export in first frame"=CEHCKED
    3)If you want to have multiple segmented animations as I
    certainly did you'll want to create frames and actionscripts within
    the symbols timeline to define where these animations are.
    a) in the symbol's timeline make a second layer. We'll name
    that layer "labels" for the sake of not having this get too
    confusing.
    b) on that layer create a new frame for each of the animation
    segments that you'd like to define and stretch them to the length
    of the corresponding animations.(I'm assuming that you have a
    keyframe animation on the 1st layer... otherwise what's the point
    of all this :P?)
    c)in the properties panel name the frames in the "labels"
    layer accordingly ie. "walk" "run" shoot" etc.
    d)Define whether the various animations play once or loop by
    adding a script to the last frame of the animation. If you want the
    animation to loop add
    [CODE]gotoAndPlay("name-of-the-animation");[/CODE]
    if you want the animation to play once and stop add
    [CODE]stop();[/CODE]
    if you want the animation to play once and then return to a
    different animation add
    [CODE]gotoAndPlay("name-of-a-different-animation");[/CODE]
    4) now you can export the symbols to an SWC file. Note: you
    do not get this option unless you have installed the hotfix.
    [HTML]http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401493&sliceId=2[/HTML] .
    a)rightclick on a symbol in the library panel
    b)choose "exportSWCfile..."
    c)export the file to a logical place such as the root of your
    FlexBuilder project.
    5) Now you have to tell flexbuilder about the new SWC file.
    Note: Once this file is added to the FlexBuilder library you can
    instantiate classes from it as though they were included using the
    "include" function.
    a)Right clicking on the root of the project in the Navigator
    view.
    b)going to properties.
    c)Going to library path. (2nd tab)
    d)and pressing the "Add SWC" button
    Now you're done and you can instantiate any of the symbols
    from your library while preserving any actions from your symbols
    timeline just as though you had imported it as a class from a
    typical library.
    Sweet huh?
    Thanks to the countless people and internet resources I found
    on the subject. Hopefully it will be easier for anyone who finds
    this post.
    Here's an adobe video which covers the basic process.
    https://admin.adobe.acrobat.com/_a300965365/p75214263/

  • How do I use Embed with an environment variable in an Actionscript AIR project Flash Builder 4.7

    I am using Flash Builder 4.7 to build an Actionscript AIR project.  The project embeds a number of png files from my local directory and I have been using absolute paths which all works fine.
    I have a laptop with which I want to start developing the same project - I set up a git repository that both the laptop and main pc can pull from and so I can get the source where I need it and push it back to the central repository.
    My problem is that the absolute paths for the embed commands don't work on the laptop as it has a different filesystem setup (Windows 8 with one drive as opposed to Windows 7 with a SSD and a data drive).  I thought the solution would be as easy as using an environment variable to specify the path which could then point to a different physical directory on both machines, i.e:
    [Embed(source = "DEVELOPER_RESOURCES/graphics/are/here.png"]
    I did a bit of research and there was quite a lot mentioned about setting up resource directories using path variables which I worked through but I just can't get it to compile.  The Actionscript compiler just won't find the png files however I specify the path.  I tried something with a FLEX project and the compiler didn't complain but I think this is because the compiler for FLEX uses a different convention.
    [Embed(source ="/Project Name/DEVELOPER_RESOURCES/graphics/are/here.png"]  works with FLEX but not Actionscript.
    So does anyone have a recipe for using the Embed command referencing assets using an environment variable that works across multiple machines with different file structures?

    I managed to find a solution on Windows which was to use symlinks and absolute paths.  You an basically point one directory to another so I did something like:
    mklink c:\developer_resources c:/the/local/path/to/my/resources
    and then reference all resources as c:\developer_resources\...
    Now as long as a developer machine has the right link (from c:\developer_resources to the place where the resources are kept) then it seems to work. 
    This doesn't however work for Mac and certainly isn't a solution for passing files between Mac and windows

  • 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!

Maybe you are looking for

  • Photoshop CC will not open any files nor create new ones.

    The program itself opens, and I can select different tools to use, but it will not let me make files or open old ones. My Photoshop is purchased through my school for my college classes.

  • Wpa enterprise help

    I have a MacBook, that is running leopard. I am having trouble connecting to my schools wpa enterprise wireless. I am regestered to access the wireless, but am having trouble connecting. I think my problem is that i dont know how to tell the computer

  • BI production down

    Hi, While starting BI production server we are getting the following error in sapstart.log (770176) Starting: local se.sapFBP_DVEBMGS23 pf=/usr/sap/FBP/SYS/profile/FBP_DVEBMGS23_fbpci-db -F (811034) Starting: local ig.sapFBP_DVEBMGS23 -mode=profile p

  • Bootcamp.What is it and How do I get rid of it?

    I accidentally initiated the Bootcamp option on my Imac, and cannot get rid of it. What is it and how do I get rid of it? Thanks.

  • Quicktime X does not recognize Chapter Markers

    I am exporting media in Quicktime format with H.264 codec. I have three markers labeled as Encore Chapter Markers. When I open the rendered .mov file in Quicktime Player 7, there are three chapters at the correct timecodes (0:03, 0:18, 0:33). When I