Custom button skin with scaleGrid 9 slice image does not appear in Design Mode

So in a custom button skin I have a nine sliced image, and then throw that onto an MXML page. In design view, I cannot get the component to show the image that I've thrown on it. Unless I do a hack on the MXML page by adding the image in it's scaleGrid form to the page somewhere. Then it seems to act as like a preloader for the image so it actually displays. But I don't want to do this hack on every page that uses this component. Is there a work around?
Here's the button skin:
<?xml version="1.0" encoding="utf-8"?>
<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    width.disabled="296" height.disabled="73">
<!-- host component -->
<fx:Metadata>
                    [HostComponent("spark.components.Button")]
                    [Embed('assets/art/shared/[email protected]', scaleGridTop=20, scaleGridBottom=85, scaleGridLeft=40, scaleGridRight=60)]
</fx:Metadata>
<!-- states -->
<s:states>
                    <s:State name="disabled" />
                    <s:State name="down" />
                    <s:State name="over" />
                    <s:State name="up" />
</s:states>
          <s:Group width="100%" height="100%" >
  <s:Image width="100%" height="100%" smooth="true" source="@Embed('assets/art/shared/[email protected]', scaleGridTop=20, scaleGridBottom=85, scaleGridLeft=40, scaleGridRight=60)"/>
</s:Group>
<!-- text -->
          <s:Label id="labelDisplay" left="10" right="10" top="2" bottom="2" horizontalCenter="0"
                               maxDisplayedLines="1" textAlign="center" verticalAlign="middle" verticalCenter="1"
                               color="#FFFFFF" >
  <s:filters>
                              <s:DropShadowFilter distance="0" angle="90" color="0x000000" alpha="1" blurX="2" blurY="2" strength="16" quality="3" />
  </s:filters>
</s:Label>
</s:Skin>
And then I throw that button into an MXML page. The image doesn't show up in design view.
<s:Button x="330" y="94" width="134" height="57" label="Button" skinClass="features.shared.NineSliceButtonSkin" />
This hack, fixes the button! And all other buttons that use that skin.
<s:Image width="100%" height="100%" smooth="true" source="@Embed('assets/art/shared/[email protected]', scaleGridTop=20, scaleGridBottom=85, scaleGridLeft=40, scaleGridRight=60)"/>
<s:Button x="330" y="94" width="134" height="57" label="Button" skinClass="features.shared.NineSliceButtonSkin" />

Looking for an answer too!

Similar Messages

  • Curtain image does not appear in Curtain Mode

    Although, ARD 3 has been touted to put up a nice red curtain image in place of a lock whenever Curtain Mode is implemented, for some weird reason, all I keep getting is the lock image.
    Is it just me, or is everyone experiencing this?
    Does anyone know a solution..?
    Thanks to Steve I've managed to overcome the custom Locked Screen Picture issue in ARD 3 (http://discussions.apple.com/thread.jspa?messageID=2221150&#2221150) but it would be nice to see the curtain as well.
    Thanks in advance!
    PowerBook G4   Mac OS X (10.4.3)  

    ARD does not put a curtain up. It will only put a lock up. Butl the curtain idea is still there in that it will let you still work on the computer so the user can't see what you're doing.
    I was at Apple HQ this week and they demo'd this feature and the demo didn't have the curtain either. I think they just didn't implement the curtain image.
    There may be a hack to implement it but I haven't been pressed to figure it out yet. An idea would be to replace the lock image resource with a copy of the curtain image resource and call it the same name as the lock image resource. It may not work and might show up incorrectly. (not full screen)

  • About Help image does not appear

    RoboHelp X5.2 Webhelp output
    A logo created as a jpg to be used as an About Help button
    will only appear when compiled on my hard drive.
    I got rid of the powered by Robohelp button and created a
    company image in jpg format for the About Help button.
    In my project I double-clicked on the skin, and then the
    About Button, selected the jpg for the About Button image, selected
    a gif to use in the About Help dialog box, added company
    information, company name, etc.
    Part of skin code ----------------
    <toolbaritem mode="Logo Mode" type="built-in-logo"
    id="7">
    <name>About</name>
    <image>selected:napa_logo_blue.jpg?</image>
    I compiled to my local drive. Everything works. The jpg logo
    appears on the top right-hand side, and when you click on it, the
    About Help dialog box opens with the gif image and other
    information.
    However, the development team compiled the help along with
    the application to one of their test boxes. The jpg image does not
    appear. Instead, a small white box with a red x and the words About
    Help appears. When you click on this the About Help dialog box
    opens with all the correct information including the gif image.
    Both images reside in the skin folder on my hard drive. When
    I compile the project they reside in the main folder with all the
    htm files and js files.
    Not sure how to resolve this.
    DM

    I am also having this problem. I've just converted a project
    from RH X5 to RH v7. In X5 the .gif file attached to the About
    button worked fine. In RH 7 nothing appears. I've tried adding the
    .gif to the Baggage files but it's still broken. Any other
    suggestions?

  • Image does not appear across all browsers

    On the main page, just below the "Available soon for..." there is an order now button. It only appears with Safari. I've tried Firefox, Chrome and IE and the image does not appear on any of those. The thing that gets me is that the image was there before and worked fine, all I did was make it bigger and relink it, so I'm confused why all of a sudden it doesn't show up.
    Thanks in advance for any assistance.
    http://turtlecell.com
    Message was edited by: hcblue

    when you say "Re-upload the image", do you mean reinsert it, or re-link it?
    Neither.
    Re-upload it to the web server from your local hard drive. In DW, click on the image file in the Files panel then click the Up arrow to Put the image to the server.
    If that does not work, do as Nancy suggests and re-create the image in your image editor then re-upload.

  • Image does not appear in applet.

    I am reading the book, Teach Yourself Java in 21 Days.
    There is an example in Ch.11 that shows how to load an image into the applet.
    I have tried to use the code provided as is along with an image as defined in the code. I have also uploaded the html, class and image to a folder on the web. Unfortunately, the image does not appear in the applet. The image does have an image that I created using ms paint.
    Here is the code I am currently using from the book:
    import java.awt.Graphics;
    import java.awt.Image;
    public class LadyBug2 extends java.applet.Applet {
         Image bugimg;
         public void init() {
             bugimg = getImage(getCodeBase(),
                 "ladybug.gif");
         public void paint(Graphics g) {
             int iwidth = bugimg.getWidth(this);
             int iheight = bugimg.getHeight(this);
             int xpos = 10;
             // 25 %
            g.drawImage(bugimg, xpos, 10,
                iwidth / 4, iheight / 4, this);
             // 50 %
             xpos += (iwidth / 4) + 10;
             g.drawImage(bugimg, xpos , 10,
                  iwidth / 2, iheight / 2, this);
             // 100%
             xpos += (iwidth / 2) + 10;
             g.drawImage(bugimg, xpos, 10, this);
             // 150% x, 25% y
             g.drawImage(bugimg, 10, iheight + 30,
                 (int)(iwidth * 1.5), iheight / 4, this);
    }I tried placing the image in an images folder and I also tried changing the code to getImage(getDocumentBase(), "ladybug.gif")
    as well as tried getImage(getCodeBase(), "ladybug.gif") in order to try and grab the image from the same directory as the class file and the html file.
    The image file's name is: ladybug.gif
    The code in the html file:
    <HTML>
    <HEAD>
    <TITLE>Lady Bug</TITLE>
    </HEAD>
    <BODY>
    <P>
    <APPLET CODE="LadyBug2.class" WIDTH=1024 HEIGHT=500>
    </APPLET>
    </BODY>
    </HTML>
    I have gotten previous applet examples from the book to work. One of them did have an error in the author's code which I fortunately was able to overcome. This time, I am afraid, the error eludes me.
    Thanks in advance.
    I do see that there is no start/stop/run in this version, but I believe this should still work because of the init. I am guessing that maybe the problem lies somewhere in there.
    Message was edited by:
    gnikollaj

    According to the javadoc:
    getImage
    public Image getImage(URL url,
    String name)Returns an Image object that can then be painted on the screen. The url argument must specify an absolute URL. The name argument is a specifier that is relative to the url argument.
    This method always returns immediately, whether or not the image exists. When this applet attempts to draw the image on the screen, the data will be loaded. The graphics primitives that draw the image will incrementally paint on the screen.
    Parameters:
    url - an absolute URL giving the base location of the image.
    name - the location of the image, relative to the url argument.
    Returns:
    the image at the specified URL.
    I am confused as to how to use the name after the url.
    Should it read something like:
    bugimg = getImage("http://g.jtrusty.com/JavaApplet/", "LadyBug.gif");
    EDIT: I still get the same error, cannot find symbol at getImage.
    Message was edited by:
    gnikollaj

  • SVG image does not appear in mobile version but does in desktop version

    Hi,
    I am new to using Muse and have created only one site before in Muse. I have taken screenshots to show the problem I am having.
    I have used Illustrator to create the following logo image that I save out as an SVG file:
    As you've probably guessed, I have used clipping mask to insert the marbly purple image into the shapes and text (this may be relevant to the problem, I don't know).
    I then save it out as an SVG with the following details as advised by Adobe:
    Then moving into Muse, I File > Place the SVG file. 'Unable to generate thumbnail' comes up in both desktop and phone versions:
    Regardless, I uploaded to FTP post to my website. While the SVG appears perfectly on my desktop browser, it does not show at all on my phone browser:
    This is not only happening on my phone, I have visited the same website on multiple phone devices and still the SVG image does not appear. Any ideas why this is happening?
    Have I totally missed something about file formats for mobile browser versions in Muse?
    Also- in illustrator, I saved the SVG logo for the mobile version as a SMALLER SVG than the one I saved for the desktop version.
    Thanks

    Use a PNG file. I see nothing in your logo that would warrant using anything else. You're not scaling it, there is no interaction and all you are doing is masking out some data that is pixels already. Pardon me, but using an SVG makes no sense at all. Beyond that one would need to see the file, but my guess would be that the "responsive" setting once again embeds some garbage data. Wouldn't be the first time...
    Mylenium

  • LR 4 - image does not appear in Preview and will not print`

    The selected image appears on the main/center panel but not in the preview screen.  Printing results in a white sheet of paper with no image at all.  The image has been updated to LR 4 - but made no difference.  I've served help and the forums (where i saw mention of similar problems, but no comments or guidance on the problem).  What am I doing wrong?

    The problem began with the installation of LR4. I print directly from LR4 to my HPZ3100. I routinely select "print preview" in the print dialogue box. Now the first print I see the preview and then it prints. If I select a second print job and use the "print preview" the print preview screen comes up blank and never loads. If I try to delete the print job, it just never responds (resolves) so I have to turn off the computer and the printer and restart to clear the print job. if I don't use the print preview, it prints just fine (except that I'm not able to check what's about to be printed). Thanks for any thoughts you have on this.
    Date: Tue, 10 Jul 2012 16:01:47 -0600
    From: [email protected]
    To: [email protected]
    Subject: LR 4 - image does not appear in Preview and will not print`
        Re: LR 4 - image does not appear in Preview and will not print`
        created by Brett N in Photoshop Lightroom - View the full discussion
    Bill, if this is only happening some of the time, then we are probably looking at a resource issue. Any pattern in when things won't print? e.g. Certain file type won't but others will? Or is it more of a timing/order thing? e.g. First file prints fine, second does not? VStromee, do no files print for you? Or is it like Bill and sometimes the print and other times they do not? Did you install any new software recently or have any updates to the OS or any application that has printing capabilities?
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4549692#4549692
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4549692#4549692. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Lightroom by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Product Branding Image does not appear

    Hi,
    I created a simple OA page.
    Added 'productBranding' to the 'PageLayoutRegion'.
    I set the value of Image URI to FNDTAPPBRAND.gif as mentioned in the "Search" Tutorial.
    When I run the page,the image does not appear.
    Only the image associated with the Corporate Branding apear on the page
    How can I solve it?

    You need to check the profile FND : Branding Size, if it is set to Regular or Medium we render the product branding image. If it is set to small then you need to define a formatted text which will be displayed to save the space. There are other ways of setting branding, read the Branding information in the dev guide.

  • Firefox menu bar appears- file/edit/history etc but the actual page with the search bar does not appear and is blank

    when clicking firefox icon to open the internet, all that appears are the options along the top of the page. the rest of the screen does not appear revealing the desktop picture. The firefox page with the search bar does not appear.
    http://imageshack.us/photo/my-images/214/screenshot20120303at155.png/

    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Poster image does not appear in IE

    I am having another problem with the poster image feature.  In IE7 & 8, the poster image does not appear at all when the player is first loaded. If the page is cached and loaded, the poster image appears fine.
     I think this is a bug, but can anyone confirm seeing this or fixing it? 
    Thanks!

    According to the javadoc:
    getImage
    public Image getImage(URL url,
    String name)Returns an Image object that can then be painted on the screen. The url argument must specify an absolute URL. The name argument is a specifier that is relative to the url argument.
    This method always returns immediately, whether or not the image exists. When this applet attempts to draw the image on the screen, the data will be loaded. The graphics primitives that draw the image will incrementally paint on the screen.
    Parameters:
    url - an absolute URL giving the base location of the image.
    name - the location of the image, relative to the url argument.
    Returns:
    the image at the specified URL.
    I am confused as to how to use the name after the url.
    Should it read something like:
    bugimg = getImage("http://g.jtrusty.com/JavaApplet/", "LadyBug.gif");
    EDIT: I still get the same error, cannot find symbol at getImage.
    Message was edited by:
    gnikollaj

  • HT4623 person contact image does not appear while on a call,why?

    person contact image does not appear while on a call,why?

    when you say "Re-upload the image", do you mean reinsert it, or re-link it?
    Neither.
    Re-upload it to the web server from your local hard drive. In DW, click on the image file in the Files panel then click the Up arrow to Put the image to the server.
    If that does not work, do as Nancy suggests and re-create the image in your image editor then re-upload.

  • Folio Producer Thumbnail List Thumbnail image does not appear.

    Folio Producer Site > Folio Producer Editor
    Thumbnail view from the list,
    Thumbnail image does not appear.
    Why is that?

    HTML articles and InDesign articles that use JPEG or PNG image format display thumbnail images in the Folio Producer Editor. However, no thumbnails appear in articles that use the PDF image format.
    http://help.adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60-12e05bfc12f6c86d767-7 ffe.html

  • After editing in photoshop cs6 my photoshop edited image does not appear in Lightroom 4

    after editing in photoshop cs6 my photoshop edited image does not appear in Lightroom 4 can anyone help?

    In Library, set your sort order to Filename instead of Added order and see if the files show up, then. 
    How are you doing the Save in PS, using Save or Save As—one will show up, one won’t, I think, but I don’t remember which.

  • HT201401 While calling a contact his image does not appear it appears only when he calls me

    While calling a contact his image does not appear on the screen but when the same contact calls me his image appear on the screen

    Hello,
    I never drag the group list to mail.
    I just type it's name and Mail brings it automatically.
    I really don't see the point of starting do what you suggested as it complicate the work flow (using 2 applications to achieve a missing feature...)
    I think the point is to simplify things and not complication them.
    I need Mail to be flexible, so I can add as many groups or one by one contacts without having the need to use another application and drag from there.
    How come no one has thought about that?
    very strange and frustrating to know it's not existed in mail.
    but thanks anyhow
    by the way,
    when such a feature missing, does it goes to apple features requests?
    shlomit

  • TS3147 I seem to have lost fax capability with Snow Leopard. Does not appear in Print as before. Cant find fax in system Preferences. No drivers for fax found Bob Wines.

    I seem to have lost fax capability with Snow Leopard.
    Does not appear in Print as before. Cant find fax in System Preferences. No drivers for fax found.
    Initially said it was downloading software but no longer does this. Fax test works on HP site.
    Using HPC410aHP Photosmart Premium
    Any help would be appreciated.
    Bob Wines.

    Thanks for your detailled description of the faxmodem installation!
    I've tried this with Mac OS X v10.8 Mountain Lion and it works fine.
    I've to type "cupsctl WebInterface=yes" in terminal to see the interface.
    Does anybody know, if send faxes are saved somewhere?

Maybe you are looking for

  • Why does the menu get cut off even if the project is widesrcreen?

    I made a widescreen project in iMovie, exported it to iDVD, and chose a widescreen theme. It looked fine on my computer but when I burned it and played it on my home DVD player, the words were cut off. I also noticed that when played on some TVs, my

  • IWeb 09 and Slideshow

    Is there a way to adjust the length of time images appear in the slideshow?

  • Servlet applet communication

    I'm having a problem getting a servlet to answer a call from an applet...in the applet I do something like: String servlet = "http://192.168.123.148/root/MyServlet.class"; url= new URL(servlet); conn = url.openConnection(); conn.setUseCaches(false);

  • Could anyone tell me how too change the mouse cursor to the waiting mode?

    Could please anyone tell me how too change the mouse cursor to the waiting mode while my applet is processing? Well i have 3 combos in my applet.....and in my actionPerformed code i have: public void actionPerformed(ActionEvent e) { if (e.getSource()

  • Premier Elements 10 install/uninstall problems (including upgrades)

    Unfortunately, Premier elements 10.0 has several installer bugs as it relates to machines wiht previous versions of Premier Elements installed. 1. It doesn't upgrade the old version of Premier Elements. Doesn't notice. Doesn't tell you. Doesn't warn