Make setItemIcon work with bitmap

I have for example <TreeItems><item1 label="String1"
icon="icon1embedded"/></TreeItems> inside an XmlList for a
Tree. It's working fine with [Embed(source="icon1.png")] private
var icon1embedded:Class;
But I want to supply icon with a bitmap object returned from
my loader. Something like icon=myloader.getBitmap("bitmap1");
How am I to achieve that?

"micahell" <[email protected]> wrote in
message
news:ge773o$c2g$[email protected]..
>I have for example <TreeItems><item1
label="String1"
> icon="icon1embedded"/></TreeItems> inside an
XmlList for a Tree. It's
> working
> fine with [Embed(source="icon1.png")] private var
icon1embedded:Class;
> But I want to supply icon with a bitmap object returned
from my loader.
> Something like icon=myloader.getBitmap("bitmap1");
>
> How am I to achieve that?
http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
Q11

Similar Messages

  • HT1338 where is the update for aperture to make it work with the updated os x yosemite

    where is the update for aperture to make it work with the updated os x yosemite

    The currently sold version of Aperture at the AppStore, Aperture 3.6 is compatible with Yosemite. 
    See the Release notes: Aperture 3.6 Release notes
    If you are running any version of Aperture 3, you should be able to update to this version.  Does the update not show for you?
    The update has been shown automatically for those who had upgraded from Mavericks and been running Aperture 3.5.1. Other users, who skipped Mavericks and Aperture 3.5.1 have reported problems to get the update to show and needed to contact the AppStore Support. The update did not show, if the users tried to update from an earlier version.

  • How to make this work with Firefox, HELP!

    Downloading for Real-player, after watching the full movie, I click download and it has to reread the movie from the internet. When using explorer, after downloading the movie, it reads it from memory, which makes it a fast download. How to make this work with Firefox, I like not to use Microsoft products, and I really like Firefox 7.0.1!!!! HELP!

    -> click '''Firefox''' button and click '''Options''' (OR File Menu -> Options)
    * Advanced panel -> Network tab
    * place Checkmark on '''Override Automatic Cache Management''' -> under '''Limit Cache''' specify a large size of space
    * Remove Checkmark from '''Tell me when websites asks to store data for offline use'''
    * click OK on Options window
    * Restart Firefox
    Check and tell if ts working.

  • How to make this work with Firefox, I like not to use microsoft products! HELP!

    Downloading for Realplayer, after watching the full movie, I click download and it has to reread the movie from the internet. When using explorer, after downloading the movie, it reads it from memory, which makes it a fast download. Hoow to make this work with Firefox, I like not to use microsoft products, and I really like Firefox 7.0.1!!!! HELP!

    -> click '''Firefox''' button and click '''Options''' (OR File Menu -> Options)
    * Advanced panel -> Network tab
    * place Checkmark on '''Override Automatic Cache Management''' -> under '''Limit Cache''' specify a large size of space
    * Remove Checkmark from '''Tell me when websites asks to store data for offline use'''
    * click OK on Options window
    * Restart Firefox
    Check and tell if ts working.

  • Can i make this work with a number specified in the constructor?

    Hi everyone
    I posted a couple of days ago and i have managed to advance a bit since then.
    Here i have a class called "flower" and it draws a flower with two leaves and 12 petals using the classes "petal and "leaf".
    However, ideally i would like to be able to make this work with a number of petals specified in the constructor, not just 12.
    is this possible or do i need to rewrite the entire class?
    import java.awt.*;
    import java.awt.geom.*;
    public class flower {
        private Shape circle;
        private Shape stem;
        public flower()   {
            circle = new Ellipse2D.Double(-25, -25, 50, 50);
            stem = new Line2D.Double(0.0, 0.0, 0.0, -200.0);
        public void paint(Graphics g) {
        Graphics2D g2 = (Graphics2D)g;
        g2.setPaint(Color.green);
        g2.setStroke(new BasicStroke(5)); // Line width 8 pixels
        g2.draw(stem);
        // Add the petals
        petal P = new petal(Color.red);
        // Scale, translate and rotate the petal into place.
        AffineTransform orig  = g2.getTransform();
        AffineTransform T = AffineTransform.getTranslateInstance(0.0, -25);
        for (int k = 0; k < 12; k++) {
          double angle = k*Math.PI/6.0;
          AffineTransform A =  AffineTransform.getScaleInstance(1.0, 1.0);
          A.preConcatenate(T);     // Scale, then rotate
          AffineTransform R = AffineTransform.getRotateInstance(angle);
          A.preConcatenate(R);     // Scale, translate and then rotate
          g2.transform(A);
          P.paint(g);
          g2.setTransform(orig);     // Restore original transform
          g2.setPaint(Color.yellow);
          g2.fill(circle);
          leaf L = new leaf();
          AffineTransform B = AffineTransform.getTranslateInstance(0.0, 0.0);
          B.translate(340, 425);
          B.scale(1.0, 1.0);
          B.rotate (Math.PI/6);
          g2.setTransform(B);     
          L.paint(g);
          g2.setTransform(orig);     // Restore original
          leaf L1 = new leaf();
          AffineTransform C = AffineTransform.getTranslateInstance(0.0, 0.0);
          C.translate(285, 430);
          C.scale(1.0, 1.0);
          C.rotate (Math.PI/-6);
          g2.setTransform(C);     
          L1.paint(g);
          g2.setTransform(orig);     // Restore original
    }I am tempted to make "flower into a class that extends "petal" would this make it easier for me to achieve my goal?
    Any help would be great
    Thanks Carl

    Your NewFlower class extends petal. You NewFlower constructor calls super( color, petnum ), so the petal constructor is invoked. In the petal constructor, you ignore petNum. You do nothing else in the NewFlower constructor, so petNum is ignored there as well.
    What makes you think that in this orgy of ignoring petNum, that any petNum variable will magically get set, or that your flower will now magically have the right number of petals?
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to make AEC work with external webcam?

    Hi everyone.
    What I'm trying to do is to make AEC work with external webcams. My target: flash in browser and desktop AIR app.
    I have the following situations:
    1. Laptop Lenovo S400, really not the best laptop, with MIC placed right above the speakers. But... AEC works excellent!
    2. PC with Logitech 1080p webcam (which has stereo microphones) and external speakers. But... AEC doesn't work at all. It even doesn't try to reduce any speakers sound in microphone data.
    3. The same laptop with connected Logitech camera and again - AEC doesn't work.
    In each situation I use absolutaly the same environment(Win7, target player - 11.9, Flex 4.6.0 SDK), code, compiller, etc..
    And I was unable to find any info for such situation.
    Does anybody have experience with such problem? I will be really grateful for any help.
    Here are parts of code:
    //  somwhere early...
    _microphone = Microphone.getEnhancedMicrophone();
    //  called before we attach microphone to NetStream
    private function _setMicrophoneMode():void
                _microphone.setLoopBack(false);
                _microphone.framesPerPacket = 1;
                _microphone.setSilenceLevel(0, 2000);
                _microphone.codec = SoundCodec.SPEEX;
                _microphone.encodeQuality = 10;
                _microphone.gain = 50;
                _microphone.rate = 44;
                if (_useEchoSuppression)
                var options:MicrophoneEnhancedOptions = _microphone.enhancedOptions;
                options.mode = MicrophoneEnhancedMode.HALF_DUPLEX;// using this for external webcams
                options.echoPath = 128;
                options.nonLinearProcessing = true;
                _microphone.enhancedOptions = options;
                } else
                    _microphone.setUseEchoSuppression(true);
                    trace(_microphone);

    I think that with the current state of the Adobe AIR Adobe FLash platforms, there is too much work to do to get echo cancellation to work on all platforms, and to get video to work as expected too. I think Adobe could solve many of these issues by implementing native WebRTC into the AIR platform, see this post here:
    http://forums.adobe.com/message/6232094#6232094

  • How can I make it work with my iPad?

    I bought a wireless Hp6500 all in one printer yesterday. It works with my Mac Pro laptop... Now what do I need to make it work with my iPad?

    Is it a 6500 or a 6500A?  If the former, it will not support AirPrint, if the latter it will.
    It has to be connected to your network (wired or wireless, it does not matter), not just to a computer with USB.
    Once connected to your network, enable web services from the front panel of the printer and let it check for updates.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • NI have a Braun Photo Technik slidescan 3600 and it canot make it work with Lion: Is there anybody who sorted out the same problem? thanks

    I have a Braun Photo Technik slidescan 3600 and I cannot make it work with Lion. Is there anybody who sorted out the same problem? thanks

    We sure do have a problem - this is strictly a user to user assistance forum with users helping other users use the iPhoto program as it is - no one here has any ability to change or influnence the desigh or implementation of iPhoto
    try the iPhoto menu ==> provide iPhoto feedback
    LN

  • All songs in my iTunes library are listed twice. I have two copies of my library in two different locations. How do I make iTunes work with one copy of my library?

    All songs in my iTunes library are listed twice. I have two copies of my library in two different locations. How do I make iTunes work with one copy of my library?

    That is the way the iphone works.
    You need to copy everything from your backup copy of your computer.

  • HT4623 I have iPhone 4S GSM , is there any way to make it works with CDMA SIM card ?

    I have iPhone 4S GSM , is there any way to make it works with CDMA SIM card ?

    No.

  • I cannot access to my iTunes on my computer via my Apple Tv, but it works with my daughter's macbook, how can I make it work with my pc?

    I use to be able to access all my music and videos on my iTunes  via my Apple TV, but since a few months it hasn't work. My daughter tried with her computer and apple ID and it worked, but I want my Library to be accessible. I tried starting it over, rebooting it, but nothing seems to be working.
    How can I make it work?
    Thank you!

    Check firewall and any security software installed on your system. Toggle off/on home sharing on your computer.

  • How to Create a Dynamic http address that opens the Explorer Window for a List Item When a Button Is Clicked--Currently Trying to Make this Work with Javascript

    I have created a button (via Content Editor) that uses JavaScript to open the Attachments folder of a list item in the Explorer Window in SharePoint 2010. The purpose is to have drag and drop functionality for each list item, having multiple attachments.
    The button works but opens the "Attachments" folder containing all of the other folders for each list item (one folder per item). It seems that when you add an attachment to a list item, SharePoint numbers the folder based on the item's ID. What
    I'm trying to do is take the JavaScript I have and have it run when a button is clicked in a custom form. When it runs, I'm trying to get it to open the "specific" folder for the list item. I have had success creating a hyperlink in the list that
    does this; however, the link WILL NOT work until I use the Content Editor created button that runs JavaScript, that prompts me to click OK to my profile certificate, and then opens the Attachment folder. After that occurs, I can use my hyperlinks without issue
    because I'm no longer prompted to click OK for my cert.
    So I'm trying to take the JavaScript I have and place it in a list item form (custom form) and have it run when a form button is clicked. The problem is I have very little knowledge of JavaScript (did I mention little?) and
    "don't know how to take the "http:" address I have in the script and append to it the list item ID, according to the record I have open."
    So that for any record I open, the script will grab the corresponding record ID (or list item ID) and append it.
    Here's the script I'm working with (which I didn't create but am grateful for):
    <style>
    .httpFolder {behavior:url(#default#httpFolder);}
    </style>
    <script text = "javascript">
       function fnOpenFolderView(){
       oDAV.navigateFrame("https://server/collection/site/subsite/Lists/Sublist/Attachments","_self");
    </script>
    <div id = "oDAV" class = "httpFolder"/>
    <input type = "button" value = "Open Attachment Folder" onclick = "fnOpenFolderView()"/>
    The above script, in the Content Editor, creates a button that opens the Attachments folder for the corresponding SharePoint list.
    JackSki123

    Hello Thriggle,
    Thank you for pointing that out. I appended your "GetUrlKeyValue" to the end and it worked. That said, I noticed it doesn't run as smoothly as when I simply click on the Content Editor button I created that resides on the SharePoint List
    ASPX page (not the form). The Content Editor button has the same code, minus the "GetUrlKeyValue". I click it; I get prompted to choose my cert; it opens right up.
    Now go to the ASPX Display form where I dump the code in a table cell. Button appears in cell; I click it; wait; wait; I get prompted for cert; it opens. Do I need some sort of "throttle" for the JavaScript? For instance, I thought before running
    JavaScript, you reference the library first. This code doesn't do that. I'm wondering if there's something more I need to make this run smoothly. Thank you both for getting me this far. 
    JackSki123

  • Is it possible AT ALL to make fglrx work with the ATI RV505?!

    I have an ATI X1550 graphics card based on the chipset in the topic subject... I wish my PC wasn't half-height, so I could go get a real graphics card.... but I have what I have for now, and I guess I should settle for it.
    So, the problem in question is this: is it possible -AT ALL- to make fglrx make my ATI card "go", and...
    * Work with OpenGL and not hang when OpenGL output is, more or less, "on".
    * Not epically fail with Compiz Fusion running, and #1 not draw my background, #2 not update the screen unless I switch workspaces and #3 not hand anything related to graphics updating to my CPU, rendering EVERYTHING at about 1 frame every 2 seconds.
    I don't have that card in my computer right now and probably won't for a while (unless someone can say "do XYZ, I have like exactly that card and it worked"), since despite only being 64MB my integrated graphics from Intel pwn the X1550 (which has 256MB, sigh) to bits in terms of hardware acceleration. Despite my Intel graphics (Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01)) not even having direct rendering (libGL error: dlopen /usr/lib/dri/i915_dri.so failed (/usr/lib/dri/i915_dri.so: undefined symbol: _glapi_tls_Context)).
    -dav7
    Last edited by dav7 (2008-05-08 01:10:50)

    If you're talking about streaming video and the video stalls on you, you just have to wait until the video loads enough in the cache before you start playing it or it will continue to stall on you. If you do not have a very fast Internet download speed, there's not a whole lot you can do about it other than to let the video finish loading before you start the playback.

  • Z-index, make it work with MVThemeBasedFOI and MVFOI

    Hello, I'm using MapViewer with javascript library OracleMaps.js(Ver11_B091229). I'm using circles drawn with the MVCircleTool and some layers using MVThemeBasedFOI.
    Circle :
    * circle drawn event handler
    function circleDone()
         var geom = circleTool[nbrCircle-1].getCircle();
         highlightSelection(geom, true);
         circleTool[nbrCircle-1].getCircleFOI().setClickable(true);
         circleTool[nbrCircle-1].getCircleFOI().attachEventListener(MVEvent.MOUSE_RIGHT_CLICK, rClickCircleFOI);
         circleTool[nbrCircle-1].getCircleFOI().setZIndex(999);
    As you can see I have a right click event on it(used for contextmenu).
    ThemeBasedFOI :
    function addThemeBasedFOI(themeview, maxWholeImgLvl, minClickZoomLvl, clickable)
         var themeBasedFoi = new MVThemeBasedFOI(themeview,themeview);     
         if(clickable==true)
              themeBasedFoi.setClickable(true);
              arrayThemes[cptTheme]=themeBasedFoi.getLayerName();
              themeBasedFoi.attachEventListener(MVEvent.MOUSE_CLICK, foiMouseClickEvent);
              themeBasedFoi.attachEventListener(MVEvent.MOUSE_RIGHT_CLICK, mouseRightClickFOI);
    mapview.addThemeBasedFOI(themeBasedFoi);
         //set zoomlevel click and whole img level
         themeBasedFoi.setMinClickableZoomLevel(maxWholeImgLvl);
    themeBasedFoi.setMaxWholeImageLevel(minClickZoomLvl);
         cptTheme++;
    Things work fine individually but together, the MVThemeBasedFOI is over the Circle(it's an MVFOI).
    MVThemeBasedFOI index can be changed(if it works) with the MVMapView's method setThemeIndex(MVThemeBasedFOI, index). On its side MVFOI index can be changed by setZIndex(idx) method.
    I tried 999(the maximum value) for the circle and 1 for the layer but it changed nothing, the layer is still over the circle. Layer index doesnt work the same as usual zindex(if you see code of OracleMaps.js it's seems to be index*2+130), if index is 1 it should be(if i'm correct) 132, it's under 999 but it does not work.
    Any idea on how I can make it work ?

    yes that true, changing it later will be problematic. But if we have the break points already figured out and design finalized we just then have to open it in Muse and then add the features that muse has like scrolling effects and such. life would have been really simpler if that media query handle feature from EdgeReflow is placed in Muse. On the other hand i don't mind if reflow has the scroll effects and all the cool things Muse has. Its possible to do a really nice responsive website with reflow and edge animate and then polish your site with dreamweaver and publish it to BC. Just that i like the features of Muse and the ease of designing but it lacks the true responsiveness we need, i know you can give full width and try make it look like responsive and then you have 2 more websites to finish, the mobile and tablet versions of the website. So its a lot of work, it doesn't really make it easy to keep up with this evolving web design industry. So i think i will stick with edge reflow, dreamweaver and edge animate till Muse becomes responsive fully.

  • How do i make flash work with FF26 and Win8.1?

    I understand that Windows 8.1 is now controlling Adobe Flash, but have been unable to find a way to make Flash work in FF26. All I find is a bunch of fingerpointing from each company at one of the other companies involved. There is no comprehensive explanation and nothing from any of the three to indicate a fix for the problem.
    What is going on? When is the problem going to be fixed or how do I fix it now.
    FF is the only browser I want to use, not IE.
    Please post something concerning FF stance and/or solution to being held captive by IE!

    OK, well I finally figured out how to make it work.
    Windows 8.1 would not update Flash, as it said it didn't need to be updated.
    In FF when you tried to install the plugin for Flash, Windows would block.
    I had tried to install the downloaded .exe version of flash but that was also blocked from installing, so I tried the .msi version of the plugin version of flash, and low and behold it loaded and flash now works in FF26.
    You need to download the plugin-based version with the .msi extension, make sure FF is not running before install.
    The link to the correct Adobe page is:
    [http://www.adobe.com/products/flashplayer/distribution3.html Download MSI Installer for Plugin-based Browsers]

Maybe you are looking for

  • XML - Oracle Approach

    Hi, I've a client that is in the begining of a Intranet using Oracle Portal. They are very excited about this new tool, and ask for more options to develop some custom applications, this new applications should work in Oracle Portal and be reusable w

  • My iPad is full, can I delete a tv show and still watch it in Apple TV?

    My iPad is full, can I delete a tv show and still watch it in Apple TV?

  • Source file after done editing?

    Imovie 10 -  got into today and was happy with some things, but not how they removed the ability to see the original source file Example:  I have a 10min movie of a birthday Import,  edit ,  export 3 min of footage The other 7 minutes are gone.   Wha

  • Simple rollover question

    I have a page and I add a hotspot and a simple rollover behavior on mouse over to the hotspot, and on the 2nd state in the states panel I duplicate the first state and simply add a shape on the 2nd state. When I test the page, it does not show the sh

  • Displays blank page when tried to access ORACLE Application Server Control

    Hi, I have successfully installed the Oracle SOA Suite using advance installation. But when tried to open ORACLE APPLICATION SERVER CONTROL by following the below path. start-> programs-> oracle-soa->ORACLE APPLICATION SERVER CONTROL, It displays a b