Custom BitmapButton class remains invisible!!!

I 've created a class BitmapButton:
package com.myscripts{
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.display.Graphics;
    import flash.display.Bitmap;
    import flash.display.Loader;
    import flash.net.URLRequest;
    public class BitmapButton extends Sprite {
        private var myImage:Bitmap;              
        private var _width:int = 200;
        private var _height:int = 200;
        public function BitmapButton(image:String):void {          
            this.addEventListener(MouseEvent.MOUSE_OVER, hover);
            // entry point
            var imageLoader:Loader = new Loader();
            imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoadComplete);          
            imageLoader.load(new URLRequest(image));          
            //Add useHandCursor, buttonMode, and mouseChildren if required          
            this.useHandCursor = true;
            this.buttonMode = true;
            this.mouseChildren = false;              
        private function imageLoadComplete(event:Event):void {                      
            myImage = new Bitmap(event.target.content.bitmapData.clone());
            myImage.width = _width;//button.width;
            myImage.height = _height;//button.height;
            myImage.x = 0;
            myImage.y = 0;          
            this.addChild(myImage);
            this.width = _width;
            this.height = _height;                          
        private function hover(e:MouseEvent):void {
            this.removeEventListener(MouseEvent.MOUSE_OVER, hover);
            this.addEventListener(MouseEvent.MOUSE_OUT, out);          
            this.alpha=0.7;
        private function out(e:MouseEvent):void {
            this.removeEventListener(MouseEvent.MOUSE_OUT, out);
            this.addEventListener(MouseEvent.MOUSE_OVER, hover);          
            this.alpha=1;
In the main timeline, I use it like this:
stop();
import com.myscripts.BitmapButton;
var bbtnHeight:int =200;
var bbtnwidth:int =200;
// bath button
var bathButton:BitmapButton = new BitmapButton("../customimages/bath.jpg");
addChild(bathButton);
bathButton.width=bbtnHeight;
bathButton.height=bbtnHeight;
bathButton.x=350;
bathButton.y=100;
When I run it in flash IDE, it works fine.
When I run the swf through the Browser, it works fine.
When I run the html (that flash IDE automatically produces) it works fine.
When I run it in my localsite, in an iFrame:
<iframe id="iframebath" width="100%" height="700" src=<?php echo JUri::root()."images/swfs/bath.swf"; ?>  ></iframe>
...it also runs fine...
BUT, when I use it with SWFobject in my (jjomla) local site it doesn't show anything.
It doesn't work!!
The same happens when I use embed code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="100%" HEIGHT="700" id="Yourfilename" ALIGN="">
<PARAM NAME=movie VALUE="<?php echo JUri::root().'images/swfs/bath.swf'; ?>">
<PARAM NAME=quality VALUE=high>
<EMBED src="<?php echo JUri::root().'images/swfs/bath.swf'; ?>" quality=high bgcolor=#333399 WIDTH="100%" HEIGHT="700" NAME="<?php echo JUri::root().'images/swfs/bath.swf'; ?>" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
I think something 's wrong with my class.

Well...finally the problem was in...paths:
The swf is located at : http://localhost/joomla336/swfs
I had put (for image url) the relative path "../images/bath.jpg".
With the absolute path "http://localhost/joomla336/images/bath.jpg"; it works fine!!!
Can't I use relative paths in swf?

Similar Messages

  • How do you invoke custom java classes???

    Could someone post a detailed method of invoking custom java classes that works including what files go where, settings and the way it is invoked etc.
    I have tried various ways from this forum and in the documentation without success. I am using IDM 8. I found these instructions regarding how you would do it if you were writing custom resource adaptors in the deployment tools guide:
    To install a resource adapter you’ve customized:
    1. Load the NewResourceAdapter.class file in the Identity Manager installation
    directory under
    idm/WEB-INF/classes/com/waveset/adapter/sample
    (You might have to create this directory.)
    2. Copy the .gif file to idm/applet/images.
    This .gif file is the image that displays next to the resource name on the List
    Resources page, and it should contain an image for your resource that is
    18x18 pixels and 72 DPI in size.
    3. Add the class to the resource.adapter property in
    config/waveset.properties.
    4. Stop and restart the application server. (For information about working with
    application servers, see Identity Manager Installation.)
    I tried the instructions here but placed my custom class in a folder entitled custom instead of /adapter/sample. Not sure about instruction 3 or whether it is relevent. Anyway nothings working.
    Edited by: masj78 on Nov 25, 2008 3:50 AM
    Edited by: masj78 on Nov 25, 2008 4:03 AM

    Hi,
    The way to add custom class is the same as you followed , put them in the WEB-INF/classes.
    To use the custom adapter ,
    Go To Resources - > Configure Types -> Add Custom Resource .
    Type in the fully qualified class name of the custom adapter you added.and Save.
    Now the new adapter you added should showup in the list of available adapters when you try to
    configure a new adapter.
    (Make sure that the prototype XML of your custom adapter is correct so that it displays the correct name / type for the adapter in the adapter list.
    Thanks,
    Balu

  • Custom Validator Class not found in Class Path

    I have developed a custom validator class for User Self Registration request. However, when OIM is unable to find the custom validator class and generates teh following error:
    [oracle.iam.platform.pluginframework] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oiminternal] [ecid: 76584c4849877d50:-45bb4068:13c8294bd72:-8000-0000000000001236,0] [SRC_CLASS: oracle.iam.platform.pluginframework.InternalStore] [APP: oim#11.1.1.3.0] [SRC_METHOD: getPluginInstance] Not able to load class com.infotech.tra.CustomValidator.SelfRegisterUserCustomValidator from classpath
    At what path should the jar file be placed?
    UZ

    I am running the plugin registration utility but it generates the error mentioned below. I have verified the structure of my zip file and the structure of zip file is:
    -> SelfRegisterUserCustomValidator.zip
    ->Plugin.xml
    ->/lib/SelfRegisterUserCustomValidator.jar
    ->/resources/
    Following our contents of plugin.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins>
    <plugins pluginpoint="oracle.iam.request.plugins.RequestDataValidator">
    <plugin pluginclass= "com.infotech.tra.CustomValidator.SelfRegisterUserCustomValidator" version="1.0.0" name="SelfRegisterUserCustomValidator">
    </plugin>
    </plugins>
    </oimplugins>
    Following is the error being generated:
    Enter name (complete file name with path) of the plugin file:
    /u01/oracle/Middleware/Oracle_IDM1/server/plugin_utility/SelfRegisterUserCustomValidator.zip
    [java] Java Result: 1
    [echo] Exception in thread "main" java.lang.NoClassDefFoundError: oracle/iam/platformservice/utils/PluginUtility
    [echo] Caused by: java.lang.ClassNotFoundException: oracle.iam.platformservice.utils.PluginUtility
    [echo] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    [echo] at java.security.AccessController.doPrivileged(Native Method)
    [echo] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    [echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    [echo] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    [echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    [echo] Could not find the main class: oracle.iam.platformservice.utils.PluginUtility. Program will exit.

  • How to call a custom action class present in one DC from a different DC

    Hi Experts,
    I have to implement one email functionality in my project.This functionality works fine if I use the Standard EmailAction class present in com.sap.isa.cic.customer package,but we need to change the email IDs in some cases so,we need to create a custom class.But if I create a custom Action class in Another DC(shext) and try to call this class from the config file present in the other DC(From where the Standard class was called),I am getting no Action Instance found for the declared Action(This Happens when the class is not present ).
    From the error I interpreted that the presence of the Custom Action class is not recognised by the The DC.
    Please confirm If my understanding is correct.
    I also tried adding a a new public part in shrext and tried adding the same in the used dc for the DC from where I am trying to call the class.But the activity fails and it gives me the error that the DCs are Broken.Do I need to build the DCs after adding a public part or a used DC?
    Please answer If anybody has faced the same issue or has a solution to it.
    Thanks
    Arpita Saxena
    Edited by: ArpitaSaxena on Jun 23, 2011 6:51 AM
    Edited by: ArpitaSaxena on Jun 23, 2011 7:01 AM

    Hi All,
    I was able to resolve this issue myself.
    I had to include the DC crm/isa/lwc and the DC mail in the used DCs of SHREXT .
    So,all the jars got included automatically and I was able to create a new custom class for the required functionality.
    Its working fine now.

  • Facing problem to Use a custom Java class in UCCX

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    Hi,
    We are using Communication manager 7.0.1 and UCCX version 7.0.1(Cisco Unified CCX Premium).  We are trying to call a Custom Java class file from UCCX scripting. We have followed the steps mentioned in the guide (How-To: Using a custom Java class in UCCX 5.x (SOAP Example)). See below link.
    http://www.avholloway.com/vtools/ipcc/custom-java/soap/
    After completed all the steps we have got the variable type SimpleSOAP at script but we did not found it to object constructors or object attributes (plz find the attached screenshots). We will appreciate if you plz guide us to solve the issue.
    Thanks
    Fakhrul
    LEADS Corporation Ltd.

    Hello, Fakhrul.
    I'm sorry to see you were not able to find the information or help you were looking for here in the Contact Center community forum.
    You may be able to find more help through the Cisco Developer Network.
    Also, you might want to consider engaging Cisco Advanced Services via your account team to assist with UCCX custom scripting.
    Thank you, and good luck.
    -Paulo

  • How to implement custom Model Class in Oracle ADF?

    I am using Oracle ADF for one of my project and i am using Query component of ADF. For given tables the query component creates view objects and maps the relations. ADF uses its own custom model class for this component and it should understand the DB tables. But for my project i have no access to database. All i can do is pass a string or object/query to the existing (custom) Java class/object, and this model class formulates query and queries the database and returns the value to my Java class. I have to display these results using ADF to the front end. Is There a way to achieve this? Can i replace/override the existing Model class of ADF. If so how?
    Thanks in advance for your help.

    Hi, there:
    Best thing to do is to start with the default login.html page, and then modify it. The login screen is fairly complex and it's easy to just miss a JS function you need to call. To get to default page, you would need to do one deploy (to simulator or whatever), and then look for login.html page in the temporary Xcode or Android project generated from the deployment. It should be under the "deploy" directory in your JDev workspace.
    You can also see all the framework JS files and CSS files that way as well.
    We have had customers implementing custom login screen so we know it can work, but they all had to start with the default login screen and then modify it.
    Thanks,
    Joe Huang

  • Custom style classes

    hi all,
    Is it possible to create some custom style classes and assign them to styleClass property of some components?
    And if it possible, where to place those custom classes and how to use them?
    I've tried without success.
    Regards,
    Bassam

    So this begs the question... if I wanted to change the color of a font on a af:panelHeader for example, (inlineStyle="background-color:navy;color:white;") or I set it up as a class in my css e.g. (styleClass="ph" where the css class is ph{background-color:navy;color:white;}) why doesn't the af:panelHeader component render as one would expect... with a blue back ground and white text? I'm using JDeveloper11g.

  • Use of bpelx built-in methods like getVariableData in custom java classes

    Hi,
    how can I use bpelx built-in methods like getVariableData ...
    inside custom java classes embedded with BPEL project?
    I have large java code to embed with BPEL process
    and it will be very useful ....
    It is possible to access these methods like static methods of some class?
    import com.xxx.yyy.class;
    class.getVaribleData("inputVariable","payload","/ns1:mailMessage/ns1:content/ns1:multiPart");
    Regards
    Karel

    you can access them from <bpelx:exec> activity and you can pass these returned document to underlying java class.
    Re: getVariableData in Java Exec

  • Using Custom Java Class - WorkflowRegistry.xml

    I am using a custom java class in workflow. While executing I am getting errot -
    com.waveset.util.WavesetException: Class com.LdapGroupMod is not a WorkflowApplication
    It seems from documentation that I need to add this in workflowregistry.xml file. I added the same like given below -
    <WorkflowApplication name='Workflow Name'
    class='com.LdapGroupMod'>
    <Comments>Nothing Here</Comments>
    </WorkflowApplication>Even tried restaring the application server but I am still getting same error. Any idea what needs to be done here? or I am missing smething?

    Well the first thing would be to read the workflowRegistry.xml file. The header talks about internal and external applications and so on. The crucial part is that any application registered must implement the WorkflowApplication interface (which I guess your class dont do)
    I gave up. I am totally baffled by the documentation. I admit it.
    What I did was to create an Script action in an Activity where the script used Xpress to invoke my class. It seems to work.

  • Custom Java class called from RTF template generates error

    We are running a report in BI Publisher and the report calls a custom developed Java class that is used to bind PDFs together and sent the result to another application.
    On the RTF template we have some XSLT that reads the input XML and sets a variable which is then passed to the Java class. We are however getting the following error when the report is called simultaneously 2 or more times:
    XML-22044: (Error) Extension function error: Error invoking 'JavaClassName': 'java.lang.Error: Cannot interweave overlay template with pdf input, combined number of pages is odd!
    I read this as the real cause of the error is the Java code but I'm not 100% sure. Also I don't understand what the error message means.
    Could someone help out please?
    Many thanks

    Since our this requirement is in Quotes module, its not using OAF. It is using plain JSPs and java classes.
    What i was thinking is, create the Option values as flex fields, and write a custom java class to fetch these data from the flex tables and use it in the JSP.
    The main problem we are facing now is,
    "...we wrote a simple java class, which establishes database connection, executes a simple insert & select query to our custom table. compiled & placed the class file under our new pkg structure under $JAVA_TOP eg. oracle.apps.xxx.quot.tmpl , bounced the apache."
    But when we tried to import this class in the jsp (which is being customized), the app just throwed Internal Server Error and we couldnt find any info in the Log file.
    Couldnt guess, why is this simple thing failing. Any idea ?

  • Long Text of a custom message class on a pop up screen

    Hi All,
    I have a custom message class and i have few custom messages with short text and long texts.
    Then i have a ALV report output which displays the message class and message number and my requirement is when i do F1 on the message number i want the long text to be displayed on a popup screen
    Can anyone give me an idea as how to approach this
    Thanks in advance

    hi,
    try the below code.
    DATA: HELPINFO LIKE HELP_INFO.
    DATA: LONGTEXT LIKE TLINE OCCURS 1 WITH HEADER LINE.
    DATA: EXCLUDEFUN LIKE SY-UCOMM OCCURS 1 WITH HEADER LINE.
          longtext-tdline = 'Sales Order test help'.
          append longtext.
    CALL FUNCTION 'HELP_DOCULINES_SHOW'
      EXPORTING
       CUCOL                   = 10
       CUROW                   = 3
        HELP_INFOS              = HELPINFO
       LINENR                  = 1
      TABLES
        EXCLUDEFUN              = EXCLUDEFUN
        HELPLINES               = LONGTEXT

  • Custom object class attributes are not provisioning in oID thru OIM

    Hi,
    I have connected OIM with oID user provisioning is also taking place. I have made one custom structure class with some attributes in OID.
    In form designer,in OID usr form i have made feild UD_OID_USR_Custom
    In OId .config lookup i have mentioned that custom class as well as attributes of class[in code Custom in decode name of attribute at target]
    In process form recon mapping of OID i mapped this feild name .
    Also in resource object recon mapping also i mentioned this attribute.
    But while creating user till process form value of attribute is populating and not provisiong that attribute in OID.
    Please tell me where i went wrong or exact steps of mapping in form designer,Process definition,Lookup.OID.configuration,Resource objects.
    Thanks

    process form recon mapping of OID i mapped this feild nameHave you made attribute entry in Provisioning Lookup AttrName.Prov.Map.OID ?
    Have you followed each step :
    http://download.oracle.com/docs/cd/E11223_01/doc.904/e10436/extnd_func.htm#CACICHDH

  • How can i add an custom attribute and assign it to an existing custom object class in sun ds

    I need to add an attribute to sun ds schema and assign it to an existing custom object class.
    I know how to add an attribute but how can i add the attribute to an existing custom object class.
    Please help.
    Thanks

    The objectclasses attribute is multi-valued, so you can add several values to it as long as they are unique.
    For instance, I think you can add several declaration of the same objectclass as below (note the difference is the number of spaces in the value) howewer, from a schema perspective, only 1 will be taken into account:
    objectclasses: ( 2.5.6.6 NAME 'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256' )
    objectclasses: ( 2.5.6.6 NAME   'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256    ' )
    That's the reason why it is safe to delete previous value if you want to update an existing objectclass. No problem to add a new objectclass (new oid and new name) to the schema.
    -Sylvain

  • How to create custom java class in Content Server

    Hi All,
    I want to develop a custom java class (.class) file and upload in the UCM(Stellent Content Server). The problem is that I have to use some objects like DataResultSet, SharedObjects etc in my java class file. Since these class files resides in the Content Server I am not able to create a custom java class with these objects.
    Can any one help me to solve the above issue
    With thanks and regards
    Mohan

    Hey there,
    All of the core content server class files are included in a single jar file. This jar is in one of 2 places in the 10gr3 version of UCM:
    1. If you have an unpatched content server include $IntradocDir/shared/classes/server.zip in your classpath
    2. If you have a patched content server include $IntradocDir/custom/CS10gR35CoreUpdate/classes.jar in your classpath.
    In UCM 11g the jar file is located in %MIDDLEWARE_HOME%/Oracle_ECM1/ucm/idc/jlib/idcserver.jar
    P.S. Venkat is correct, post UCM specific questions in the ECM forum.
    Hope that helps,
    Andy Weaver - Senior Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw_OTN_WCS >

  • Sql Query in Custom Java Class in OIM 9x

    Hi All,
    I m having requirement where I need to execute SQL Select Query in custom java class.
    The class is a action class ,in a method I m trying to execute SQL Query as below
         sdkDataSet = new tcDataSet();
              dataprovider =sdkDataSet.getDataBase();
                   //sdkDataSet = new tcDataSet();
                   sdkDataSet.setQuery(dataprovider, sdkQuery);
                   sdkDataSet.executeQuery();
                   logger.debug(CLASSNAME + methodName + "Query Executed");
                   if (sdkDataSet.getRowCount() > 0)
                        sdkName = sdkDataSet.getString(0);
                        logger.debug(CLASSNAME + methodName+ "The sdkName is " + sdkName);
    Error is returned in logs
    tcDataSetException    Must set a query before executing
    I hope issue is coming due to dataprovider dbrefence.
    Kindly let me know how to execute sql query in a action class.
    Regards,
    Krish

    Hi Pallavi,
    Thanks for your reply...
    OOTB class Name is com.thortech.xl.webclient.actions.ApprovalsAction
    This class will display the pending Approvals for a user.On pending approval page, I need to add one more attribute let say email of the beneficiary user.I have a query which will fetch email value based on RequestID.
    select usr.usr_email from rqu rqu, usr usr, act act  where rqu.usr_key=usr.usr_key and usr.act_key=act.act_key and rqu.req_key=1234*
    Pls let me know if there is any way to get email with or with out executing Query.
    Regards,
    Krish

Maybe you are looking for