Flex 4 Beta 2 spark: 'loadStyleDeclarations' has been deprecated since 4.0., IStyleManager2 ?

Hi there,
switching some code from Flex 4.0.0 Beta1 to Flex 4.0.0 Beta2 (build 12412), I need help to convert the following to the new syntax/approach:
          var myCssModuleStyleEvent:IEventDispatcher = StyleManager.loadStyleDeclarations(
                                                                CONFIG_PATH+"fonts_glb.swf",
                                                                true,
                                                                true
          myCssModuleStyleEvent.addEventListener(StyleEvent.ERROR, loadCurrPresStylesErrorHandler, false, 0, true);//BECAUSE OF OFFICIAL BUG weak reference is used here http://bugs.adobe.com/jira/browse/SDK-14699
          myCssModuleStyleEvent.addEventListener(StyleEvent.COMPLETE, loadCurrPresStylesHandler);
I find nowhere my answer thank you for you help.
Best Regards.
maddec

Download the AIR 2 SDK, make a new copy of the Flex4 SDK (or whichever Flex SDK you want to use) and copy the AIR SDK over it. (If you are on the Mac, you have to be careful that the directories themselves aren't overwritten -- just the files inside them.) You then add the combined SDK to the list in the Flash Builder project properties dialogs.

Similar Messages

  • OAWebBeanFactory has been deprecated

    Hi,
    I'm new to OA Framework as well as java.. I'm trying to dynamically create a submit button on a standard page.. I'm using getWebBeanFactory.).createWebBean(pageContext,"BUTTON_SUBMIT") to create this in the processRequest of the Custom page controller and using personalization replace the standard page controller with the custom one.. I get this warning when i compile my custom controller class..
    "warning: createWebBean(oracle.apps.fnd.framework.webui.OAPageContext,java.lang.String) in oracle.apps.fnd.framework.webui.OAWebBeanFactory has been deprecated"..
    Here is my code from the processRequest
    ============================
    OASubmitButtonBean oasb= (OASubmitButtonBean)pageContext.getWebBeanFactory().createWebBean(pageContext,"BUTTON_SUBMIT");
    oasb.setID("xxWorkOrderRepButton");
    oasb.setUINodeName("xxWorkOrderRepButton");
    oasb.setEvent("xxWorkOrderRepButton");
    oasb.setText("PrintWorkOrder");
    webBean.addIndexedChild(oasb);
    ====================================
    Can you please explain why this is happening?
    Thanks in Advance,
    Shree.

    Hi Abhishek,
    Thank you so much for taking your time and replying. I really appreciate it.
    I am sorry to bother you again, however, I have few questions.
    I have tried personalization to add the message Check Box to the standard page but every time I add the item, it gets applied to Multiple pages. I have heard that the Self Service OTL page is very complicated.
    If you are familiar with the OTL page. First you go the resp. and then click "CREATE TIME CARD" and then the user inputs the hours and then clicks Continue and finally comes to the REVIEW page and this is the Page where I need to put the Message Check Box. However, when I add the item, it gets applied to both the REVIEW page and the one before that.
    Could you please advice on that and also being a beginner, I would request if you could also send me may be a sample code as to how to handle the partial page render event in pfr.
    I did try doing the whole thing programmatically, like Initially disabling the SUBMIT button and then Adding a Message Check Box to the same Region but its just getting complex.
    Your approach seams much better and simpler.
    Sorry again if I am bothering you, but I would really grateful for all your help.
    Thanks again,
    Raj.

  • My iphone has been frozen since yesterday. How do I fix it?

    My iphone has been frozen since yesterday. I've tried turning it on and off. It just stays at the screen with the apple logo on it. Can someone tell me how to fix it? I've even tried resetting it, but nothing happens. It just stays at the apple logo.

    I'm not sure exactly what you are trying to describe as a "false" tone. Could you try and explain a little better?

  • Error : Period dimension 'Period' is missing a Base Time Period member 'Jun' that has been deleted since the last deployment. Base Time Period members cannot be deleted once the dimension is deployed

    HI,
    I am using V11.1.2.2 Hyperion Planning. I am currently getting an error:
    Error : Period dimension 'Period' is missing a Base Time Period member 'Jun' that has been deleted since the last deployment. Base Time Period members cannot be deleted once the dimension is deployed
    This is what i got when i tried to add alternate hierarchy to my shared dimension. I tried to delete it and it messed up.
    NOw it wont deploy my application.
    Can any one suggest.
    Thanks in advance
    Cheers,
    XXX

    EPMA!!!!! EPMA!!!!
    I'm playing around with it to write a blog post and it is crazy. Only possible workaround (till now i'm not able to figure out a solution to it) is to copy the application and deploy it as a new one. Take copy of all objects (forms, tasklist etc). Delete the corrupted application and rename the new one to old.
    Regards
    Celvin
    http://www.orahyplabs.com

  • AddRequestObject has been deprecated while adding a resouce to a request

    Hi Friends,
    I have created a schedule task to create a request and to add users to it and also to provision a resource to the user. It is creating a request and adding a user successfully.
    But while adding resource to the request by using the correct request key and object key, I am getting a compilation error.
    This is the statment I am giving "requestIntf.addRequestObject(reqkey,objkey);"
    I am getting the compilation error as "addRequestObkect(reqkey, objkey) in Thor.API.Operations.tcRequestOperationsIntf has been deprecated"
    Did research in google but did not find anything. Can you please let me know what I am doing wrong.

    Using API : - you can use tcFormInstanceOperationsIntf api method setProcessFormData
    setProcessFormData
    public void setProcessFormData(long plProcessInstanceKey,
    java.util.Map phAttributeList)
    throws Thor.API.Exceptions.tcAPIException,
    Thor.API.Exceptions.tcInvalidValueException,
    Thor.API.Exceptions.tcNotAtomicProcessException,
    Thor.API.Exceptions.tcFormNotFoundException,
    Thor.API.Exceptions.tcRequiredDataMissingException,
    Thor.API.Exceptions.tcProcessNotFoundException,
    tcAPIException
    Sets the process data associated with an instance of a process in the system. If the process data already exists, then it updates the data with the specified values. In the case of a first-time save, all the required data must be provided. In the case of subsequent saves, only data being updated need be provided.
    Parameters:
    plProcessInstanceKey - The key of the process instance in the system.
    phAttributeList - An array of tcMapping objects, each used to specify the attribute name-value pairs to be used to save data to the form
    Throws:
    tcAPIException - an error code of DOBJ.USR_PASSWORD_DOES_NOT_MATCH_POLICY might be set within this exception. If that's the case, one or many password policy rules were not met for password field in the form.
    tcInvalidValueException
    tcNotAtomicProcessException
    tcFormNotFoundException
    tcRequiredDataMissingException
    tcProcessNotFoundException

  • Javax.faces.el.ValueBinding in javax.faces.el has been deprecated

    hi jdev experts,
    am using jdev 11.1.1.5.0 - adfbc-oracledb10g
    my compiler always. please see this warning.
    how can i ignore. may i know the reason of occurence warning. here?
    Warning(4,22):  javax.faces.el.ValueBinding in javax.faces.el has been deprecated
    Warning(922,5):  javax.faces.el.ValueBinding in javax.faces.el has been deprecated
    Warning(922,42):  createValueBinding(java.lang.String) in javax.faces.application.Application has been deprecated
    Warning(989,5):  javax.faces.el.ValueBinding in javax.faces.el has been deprecated
    Warning(989,42):  createValueBinding(java.lang.String) in javax.faces.application.Application has been deprecated
    Warning(1005,5):  javax.faces.el.ValueBinding in javax.faces.el has been deprecated
    Warning(1005,42):  createValueBinding(java.lang.String) in javax.faces.application.Application has been deprecated
    Warning(1020,5):  javax.faces.el.ValueBinding in javax.faces.el has been deprecated
    Warning(1020,42):  createValueBinding(java.lang.String) in javax.faces.application.Application has been deprecated

    A short look into the javadoc reveals javax.faces.el.ValueBinding Deprecated. This has been replaced by ValueExpression.So you are using the wrong class to get to a value using EL inside one or more of your bean classes.
    Timo

  • Warning: [deprecation] getRealPath in ServletRequest has been deprecated

    I have extended class HttpServletRequestWrapper for custom implementation I have neither overriden the method getRealPath(java.lang.String) nor has this method been used/accessed anywhere. I still get following warning
    [javac] /home/pangav1/dev/upgrade/webapps/common/src/minimed/ddms/webapp/common/filter/LocaleFilter.java:222: warning: [deprecation] getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated
    [javac] public static class HttpRequest extends HttpServletRequestWrapper {
    [javac] ^
    Can anyone tell me the reason why compiler shows the warning message?

    It should certainly not be ignored, especially if you don't understand the reason of deprecation and don't know the alternatives, which is the case of the topicstarter. In any case of deprecated classes/methods, the reasoning of deprecation and any alternatives should already be described in the API docs.
    [Here is the API doc of ServletRequest#getRealPath()|http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getRealPath(java.lang.String)]

  • Package oracle.apps.fnd.framework.webui.beans.layout has been deprecated

    Hello All,
    I am having the foll. code
    OADefaultTableLayoutBean oadefaulttablelayoutbean = (OADefaultTableLayoutBean)webBean;
    OAMessageLovInputBean lov = (OAMessageLovInputBean)oadefaulttablelayoutbean.findIndexedChild("HrUsJobTitle");
    if (lov != null || !lov.equals(""))
    String l = pageContext.getParameter("JobName");
    pageContext.writeDiagnostics(this, "Lov Value" +l, 3);
    lov.setValue(pageContext,p);
    When i compile, i get the foll compilation warning
    Warning(50,7): class oracle.apps.fnd.framework.webui.beans.layout.OADefaultTableLayoutBean in package oracle.apps.fnd.framework.webui.beans.layout has been deprecated\
    Warning(50,60): class oracle.apps.fnd.framework.webui.beans.layout.OADefaultTableLayoutBean in package oracle.apps.fnd.framework.webui.beans.layout has been deprecated
    Thanks
    Rakesh

    Use OAMessageComponentLayoutBean instead.
    --Prasanna                                                                                                                                                                                                       

  • Jclient 10.1.2 - method setBaseErrorHandler has been deprecated ????

    I receive the following error from the Jclient statement :
    JUMetaObjectManager.setBaseErrorHandler(new JUErrorHandlerDlg());
    Warning(100,27): method setBaseErrorHandler(oracle.jbo.uicli.binding.JUErrorHandler) in class oracle.jbo.uicli.mom.JUMetaObjectManager has been deprecated
    We attempted to correct this looking at the default boot strap code the wizard creates but it uses the same call. Can someone tell me how to modify the boot strap code ?
    It causes strange behavior in the client with no errors being reported back to the client at all with its current method.
    thanks,

    Rob,
    its only a deprecation warning and should not bear any functionality loss because the class is still available and functional.
    The correct call is
    JUMetaObjectManager.setErrorHandler(new JUErrorHandlerDlg());
    Frank

  • SetUrl has been deprecated

    Hi,
    I have an advanced table and depending on the value returned I am setting a link for the messageStyledTextBean. When I run the page it runs correctly but I am getting the below warning:
    Warning(88,26): method setUrl(java.lang.String) in class oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean has been deprecated
    Will this cause any problems in the future? or is there another method I should be using?
    Many Thanks
    Martin

    Use setDestination(String url) api, as setUrl(java.lang.String) is depricated.
    --Mukul                                                                                                                                                                                                                                   

  • Constructor has been deprecated

    Hi ,
    I'm getting the following warning...because of this piece of code
    Date dtExpiryDate = new Date(strExpiryDate);
    Warning(149,33): constructor Date(java.lang.String) in class java.util.Date has been deprecated
    Can some one help me how to resolve this issue..
    Thanks,
    Mahesh

    mahesh
    i had this peice of code for dates conversion somewhere...i dont know your requirement .. so here is my sample code ...try it and see if it fits yours
    CO-
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import oracle.jbo.domain.Date;
    import oracle.jbo.domain.Number;
    in processformrequest()
    if ( pageContext.getParameter("checkdate") != null)
    Date str_date = castToJBODate(pageContext.getParameter("startdate"));
    System.out.println("start date = " + str_date);
    Date end_date = castToJBODate(pageContext.getParameter("enddate"));
    System.out.println("end date = " + end_date);
    if(str_date.dateValue().after(end_date.dateValue()) )
    System.out.println("start date less than end date ");
    String msg ="start date cant be greater than end date ";
    throw new OAException(msg, OAException.ERROR);
    public oracle.jbo.domain.Date castToJBODate(String aDate)
    DateFormat formatter;
    java.util.Date date;
    if(aDate!=null)
    try {
    formatter = new SimpleDateFormat("dd-MMM-yy");
    date = formatter.parse(aDate);
    java.sql.Date sqlDate = new java.sql.Date(date.getTime());
    oracle.jbo.domain.Date jboDate = new oracle.jbo.domain.Date(sqlDate);
    return jboDate;
    catch (ParseException e)
    e.printStackTrace();
    return null;
    }

  • ReadLine() in java.io.DataInputStream has been deprecated

    Hi,
    I am using the following code :
    File f=new File(filePath);
                   FileInputStream fis=new FileInputStream(f);
                   BufferedInputStream bis = new BufferedInputStream(fis);
    dis = new DataInputStream(bis);
                   while((record=dis.readLine())!=null){
    upon compiling this i am getting the following warning:
    warning: readLine() in java.io.DataInputStream has been deprecated
                   while((record=dis.readLine())!=null){
    ^
    1 warning
    Can anyone tell me what should I use instead of readline()?

    Read the API. It says you should make use of BufferedReader instead of DataInputStream to use readLine()

  • When i download a file from the web i get "Anti-Virus Program not found " message. This has been happening since I change anti-virus programs for CA etrust to Sophos. How do I get Firefox to recognise my new Anti-virus program?

    every time i download a file from the web (ie. a PDF file) i get "Anti-Virus Program not found " message. This has been happening since I changed anti-virus programs for CA etrust to Sophos. How do I get Firefox to recognise my new Anti-virus program?

    That is a very good warning provided by the Download Statusbar extension. Something like that should been built into Firefox. I filed this Bug report a couple of years ago, about the lack of a warning like that. <br />
    https://bugzilla.mozilla.org/show_bug.cgi?id=480855 <br />
    I have looked everywhere that I can think of to find a list of '''IOfficeAntiVirus providers''' ''(as mentioned in the Bug report)'' that will work with Firefox, so I can't answer that for you.
    You might want to ask the developer of the Download Statusbar extension about it. He might know which AV programs are compatible with the Windows API that Firefox uses for the download scan. <br />
    http://dlstatusbar.proboards.com/index.cgi? <br />

  • Weblogic 8.1 SP4 - weblogic.utils.AssertionError has been deprecated???

    Hi All,
    My web application has been running great all these years with WebLogic 7.0 SP2. I am upgrading it to Weblogic 8.1 SP4.
    Few classes have the following code snippet:
    throw new weblogic.utils.AssertionError("impossible case: " + idx);
    Here idx is int.
    This code snippet never gave any trouble with WebLogic 7.0 SP2. Now when I am building the application with WebLogic 8.1 SP4 and JDK 1.4, it gives the following warning at the build time:
    [javac] warning: weblogic.utils.AssertionError in weblogic.utils has been deprecated
    [javac] throw new weblogic.utils.AssertionError("impossible case: " + idx);
    I am trying to identify, if this class has been deprecated in WebLogic 8.1, then what is the alternative class which I can use?
    I searched in all BEA documentations, but did not get any reference.
    Can some one help me, if you know about it.
    I would highly appreciate it.
    Thanks,
    Ashish.

    Hi,
    As you are using WLS8.1 It means your JDK will be JDK1.4 and there is a Bug already available with JDK1.4 for the Same issue ... Please find the below link:
    http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4705373 (For Sun JDK1.4)
    AND
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6373059 (For Sun JDK 1.5.0_05)
    Please try to switch to JRockit JDK.
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com/weblogic (WebLogic Wonders Are Here)

  • My little brother has placed a lock on my ipad and since he doesn't remember the exact password, the device has been disabled since last year. what do i do

    my little brother has placed a lock on my ipad and since he doesn't remember the exact password, the device has been disabled since last year. what do i do?

    See the User Guide for instructions for restoring when the passcode has been forgotten.

Maybe you are looking for