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]

Similar Messages

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

  • [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?

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

  • [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 : (

  • .png transparency- problem with underlying layer control

    I have an opaque orange rectangle with a clear uneven square cut into it through which I am displaying a slideshow (Spry Image Slideshow) and it works fine except that I cannot control the slideshow with my cursor. I can control the slideshow fine when it is on top of the rectangle, but I want the cutout to act as a frame on top of the slideshow.
    Is the transparency in the .png akin to a sheet of glass? If so can I access the controller somehow through the "glass" with some added code?

    Hi
    You cannot place a 'layer' over the slideshow, as this 'layer', (Is this an ap div?) will then 'have focus' above the slideshow and anything underneath this, (the slideshow controls) will not be selectable.
    You could program your own event handlers in javascript to control the slideshow, but this will require you to have a reasonable understanding of javascript programming.
    PZ

  • PNG Display Problem in DW CS3

    Does anyone else have a problem with DW CS3 displaying PNGs
    with 8 bit
    colour and no transparency? I'm seeing them corrupted whether
    they're
    made in Fireworks or Corel PhotoPaint. They display correctly
    in all
    other programmes that can view PNGs.
    I've done a test to show the problem at
    www.reeddesign.co.uk/dw-png/.
    The top table shows the real PNGs and below is a screen grab
    from DW
    Design View showing the same table with the corruption
    problem in the
    top two.
    Roy

    Are you not flying any more, Roy? 8)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Roy Reed" <royreed@_NOSPAM_reeddesign.co.uk> wrote in
    message
    news:f3kiq8$p40$[email protected]..
    > Does anyone else have a problem with DW CS3 displaying
    PNGs with 8 bit
    > colour and no transparency? I'm seeing them corrupted
    whether they're
    > made in Fireworks or Corel PhotoPaint. They display
    correctly in all
    > other programmes that can view PNGs.
    >
    > I've done a test to show the problem at
    www.reeddesign.co.uk/dw-png/.
    > The top table shows the real PNGs and below is a screen
    grab from DW
    > Design View showing the same table with the corruption
    problem in the top
    > two.
    >
    > Roy

  • PNG Import Problem

    A relatively new user here having problems with importing
    files to FreeHand. I'm trying to import a high resolution PNG file
    to a large page (~36 x ~60inches) for plotting. When importing this
    file I geet a large x-box instead of the image preview, and when I
    plot this page on an "HP 1055CM Plus" plotter using the standard
    (not postscript driver) the x-box actually prints. I have used this
    method with other PNG's of 36 x 36 inches and it works fine. Any
    advice would be appreciated.

    thx Chris for your reply,
    please find my original post below:
    I am having a serious problem importing PNGs into Flash CS3.
    I am importing a 320x240 32Bit PNG sequence rendered out of
    Adobe AfterEffects 7.0 into Flash CS3, and all the PNGS are being
    imported with the size of W:907084.8 px and H:680313.6 px, and when
    scaled down there's a major defect in the PNGs.
    I've tried to render all types of PNGs (24Bit, 32Bit, wiht
    all types of Alpha) and still got the same result.
    On the other hand Flash 8 or any previous version import that
    same PNG without any problem.
    Now the interesting bit is I open that same PNG, rendered in
    afterEffects, in photoshop CS2, save to web as png 24Bit and Flash
    imports it perfectly.
    Flash also imports fine 32bit PNGs rendered straight out of
    3d studio max, so far only PNGS saved out of AfterEffects 7 have
    the defect.
    I never had this problem with any of the previous versions of
    flash and importing massive sequences of PNGs rendered out of
    AfterEffects 7 was never an issue. This only happened with Flash
    CS3.
    If someone had the same problem and found a solution please
    let me know.
    PS: a friend of mine reported the same incident at his work
    same as many other users.
    I've already posted at this link without any success, and
    many users seem to have that same problem
    http://www.kirupa.com/forum/showthread.php?t=260921
    Please help!
    cheers.

  • Compiling a java source in pl/sql developer - problems

    Hi,
    i'm using pl/sql developer and i created a javasource like this:
    import net.sf.jasperreports.engine.JRException;
    import net.sf.jasperreports.engine.JasperFillManager;
    create or replace and compile java source named Test as
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.view.JasperViewer;
    import persistencia.JdbcDaoFactory;
    * @author igor.simoes
    public class ProcessoRelController {
    the problem is: when i compile the source, an error is displayed(canno't find symbol) in the first line (import net.sf.jasperreports.engine.JRException;)
    i wanna know how can i make the oracle JVM see the package(.jar) that contains net.sf.jasperreports.engine.JRException class, and the others classes in the import statement..
    thank's
    Igor Simões

    Hi,
    Refer the 'Implementing the report service' section in the following article: http://java.dzone.com/articles/java-reporting-part-2
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.util.HashMap;
    import net.sf.jasperreports.engine.JRException;
    import net.sf.jasperreports.engine.JRExporterParameter;
    import net.sf.jasperreports.engine.JasperCompileManager;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.export.JRXlsExporter;
    public static Connection establishConnection()
    Connection connection = null;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String oracleURL = "jdbc:oracle:thin:@localhost:1521:mySID";
    connection = DriverManager.getConnection(oracleURL,"username","password");
    connection.setAutoCommit(false);
    catch(SQLException exception)
    exception.printStackTrace();
    return connection;
    -Priyanka

  • Source System between 2 systems : problem!

    Hi experts,
    I have 2 BW : test (BWD) and production (BWP).
    I have one ODS dataflow, and the BWD must be referes to SAP R/3 (600).
    The problem is that the dataflow refers the source system  SAP R/3 (100)!  Because before, we had 2 source system: 100 and 600. But now I only want the 600.
    The majory of the objects referes to 600 now, exept the ODS dataflow.
    What I have to do to transform the dataflow from 100 to 600 in BWD system? I have to transport from BWP to BWD?
    Did u understand me?
    thanks a lot!

    Hi Vera,
                          Can you go to the RFC that you are using for creation of system in rsa1 and see if you are able to do a remote logon?
    sometimes, the user may be locked. If the authorization check for the user works fine, you should be able to create the system.
    This might solve the issue. In case you have any other trouble shooting method. Please share.
    Thanks!
    Rahul.

  • Source Code Control - Check in problems

    Some of my vi's have been marked as "Server copy has changed" and some have even been marked with "both local and server copies have changed". When this is the case I cannot find any way to check in my VI without getting an error. Looking for a work around - help.

    kh,
    Which version of LabVIEW are you using? Built-in SCC have been rewritten from 6.0 to 6.1 and there are different issues related to each version.
    With 6.0 I have encoutered a bug that wrongly checked most of my VIs as "local copy has changed" as soon as they are in memory with panel closed. I worked with NI Support and we found no workaround. Unfortunately, this behavior stayed even when the VIs were upgraded in 6.1 so that my problem was a dead end. I switched with great success to CVS, another source code control software.
    I do not use 6.1 but if you do, make a search on NI's site and you'll find hits that address a SCC bug. If I remember correctly, checking out a VI, making a small change and checking it in again often solved the problem.
    G
    ood luck.
    LabVIEW, C'est LabVIEW

  • Is there a single  reference source for IPad 1 user problems?

    I am a new IPad user and have not found using it as easy as I thought  (from listening to ipad users saying how simple  it is) and  being used to Windows for the past 15 years.
    In particular, since I did the recommended up date to 5.1 , my iPad has become very noticeably slower to respond - from connecting to the Internet to lag in typing and frequent crashes . Have tried factory reset which has improved it a little - but not enough to stop me powering up my ancient laptop which is definitely quicker!
    I have tried browsing the support community but found trying to wade through a single thread of 40 pages relating to this problem overwhelming  .  Through google i have found some (allegedly) expert advice on solving this problem from 'non apple sources' but would prefer to trust apple sources.
    Is there a single source of expert information or advice relating to specific problems such as the above exist anywhere and if so please could you point me towards it?

    iPad User Guide (For iOS 5.1 Software)Mar 15, 2012 - 15 MB

  • No Transparency on PNG image problem

    I'm trying to create an ImageIcon that uses a transparent PNG image. I have set a particular colour on the image itself to be transparent in Corel PhotoPaint, and when i view the .png image that is output this colour is transparent.
    However, when i then load this png image into my Swing app, using it as an ImageIcon, the transparent colour is no longer transparent, and the original colour can be seen in its place.
    Anyone have any ideas?
    Cheers

    I'm trying to create an ImageIcon that uses a transparent PNG image. I have set a particular colour on the image itself to be transparent in Corel PhotoPaint, and when i view the .png image that is output this colour is transparent.
    However, when i then load this png image into my Swing app, using it as an ImageIcon, the transparent colour is no longer transparent, and the original colour can be seen in its place.
    Anyone have any ideas?
    Cheers

  • Source registration-successful with one  problem with other

    Hi everyone,
    I have two schemas icecube_cur_ownr and icecube_his_ownr.
    I can access the two schemas from SQL plus,toad.The TNS entries are as follows
    icecube_cur_ownr=
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xx.xx.xx)(PORT = 1521))
    (CONNECT_DATA =
    (SID = PRIMARY)
    icecube_his_ownr=
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xx.x.xx.xxx)(PORT = 1521))
    (CONNECT_DATA =
    (SID = CADS)
    Also I am able to register the icecube_cur_ownr as a source and succesfully import the tables in OWB through design centre
    The problem is with icecube_his_ownr.During the registration process,when I try to test the connection it pops me an error in the test results
    ORA-12170 :TNS:connection timeout occurred
    Ignoring the error,I proceeded to import the tables and the error message popped up is as follows
    SQL exception
    Reporsitory error:SQL exception
    Class Name:cacheMediator
    Method Name:getDDentry from DB
    Repository error message:ORA-12170 :TNS:connection timeout occurred
    Wondering why the connection is successful for one source and failing for the other as I have followed the same procedure for both the cases.
    Could you please guide me to solve this.
    Thanks Much
    Sridh

    Hi,
    it's different because you connect to diffferent instances.icecube_cur_ownr=PRIMARY, icecube_his_ownr=CADS.
    Did you use the same TNS-Entry to connect with the CADS per sqlplus? If you have several oracle_homes you cannot be not really sure what tnsnames.ora the owb uses.
    So look for some other tnsnames.ora files on this machine and verify the entries for icecube_his_ownr. Perhaps they differ.
    Or use the host/port/Service-method to create the source location to icecube_his_ownr, not the tns option.
    Regards,
    Detlef

Maybe you are looking for

  • How to print PDF under Java control

    Hi, all - thank you for reading this message. I'm working with Java 1.4.2_12 and Tomcat but planning to migrate upward Real Soon Now. We are running on Windows Server 2003 (customer's choice). My application, using iText, creates a PDF, which compris

  • Can't get my macbook to display on airplay after macbook sleeps

    When my macbook pro goes to sleep I can't establish my airplay connection without restarting my macbook. My macbook shows it's connected to airplay but win't disconnect. I try from the airplay menubar icon and from the display settings. I click disco

  • Deserialization failure when using JWS

    Hi folks, I have an application which works fine without being launched from JWS, but when I tried to use JWS to open it, it somehow failed a critical deserialization procedure in my program. This happens inside a thread: public void run(){ XMLDecode

  • What am i loooking for?

    i'm looking to buy a flat screen tv/monitor for my mac mini. i'm planning on using the normal style display lead to connect the mini to the tv/monitor which you would normally use for any normal monitor/crt etc. what specs am i lookinng for on the tv

  • Delete of Requests in PC takes a long time

    I have a process chain where the old request is being deleted out of the cube after the new request has been loaded.  The requests are full loads from CCA. Sometimes (not all the time), the delete step just sits there and hangs for hours on end.   Th