Can't display image contextMenu on Linux.

I'm writing an Flex 3 (same issue in Flex 2)application where
right clicking on an image should display my customized
ContextMenu. The contentMenu is NOT displayed whenever I execute
this application in Firefox on a RedHat Enterprise 4 Linux system.
This issue doesn't occur on Windows based system (Firefox or IE).
Attached is my sample application. Can anyone please help? Thanks
<?xml version="1.0" encoding="utf-8"?>
<mx:Application initialize="init(event)" xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Image;
import mx.managers.PopUpManager;
import mx.core.UIComponent;
private var square:Sprite = new Sprite();
// Image
[Embed(source="../asset/images/pie-chart.png")]
static public var iconClass:Class;
public function init(event:Event):void
square.graphics.beginFill(0000000);
square.graphics.drawRect(0,0,100,100);
square.graphics.endFill();
var newComponent:UIComponent = new UIComponent();
//must set the UI component to wrap the sprite - so set
width and height
newComponent.width = 100;
newComponent.height = 100;
var menuItem:ContextMenuItem = new ContextMenuItem("Change
Color");
menuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,changeColor);
var customContextMenu:ContextMenu = new ContextMenu();
//hide the Flash menu
customContextMenu.hideBuiltInItems();
customContextMenu.customItems.push(menuItem);
var _imgObj:Image = new Image();
_imgObj.source = iconClass;
_imgObj.width = 25;
_imgObj.height = 25;
_imgObj.contextMenu = customContextMenu;
newComponent.addChild(_imgObj);
myPanel.addChild(newComponent);
public function changeColor(event:ContextMenuEvent):void
{square.transform.colorTransform = getRandomColor();}
public function getRandomColor():ColorTransform
{return new ColorTransform(Math.random(), Math.random(),
Math.random(),1,(Math.random() * 512) - 255, (Math.random() * 512)
-255, (Math.random() * 512) - 255, 0);}
]]>
</mx:Script>
<mx:Panel id="myPanel"></mx:Panel>
</mx:Application>

After much fiddling with display resolutions and TV setting, and several calls to Apple help, problem was found to have a really basic solution: replace the RCA connector cable. The old one was shot.

Similar Messages

  • How can I display images that are not included in any collection?

    How can I display images that are not included in any collection (some filter or smart collection)? A smart collection with parameters "Collection - contains - empty field" does not work. Lightroom 5.

    Thank you! Good idea! I ordered letters of the alphabet (space separated), and it works.

  • How can I display images in drop down.

    Hi All,
    How can I display images in drop down.
    <select><option>image here</option></select>
    please reply soon.
    anser please
    Thanks

    I have not found html forum..That's just incredible.
    where can i find it ?Sorry, I'm still recovering from that remark.
    please reply soonEvery time you end a post with this, or "urgent" or other such keywords, the forum automatically introduces a 5 minute delay so that will actually make the whole process slower (not faster).

  • How can i display image in RTF template when Oracle Apps running in Windows

    Can any body help how can i display image in RTF template when oracle apps running in Windows Server.
    Thanks
    Ravi

    Hi Ravi,
    You can add images into your rtf template using MS Word Insert Picture feature.
    Did you try this method?
    Thanks
    Ravi
    [email protected]

  • I have selected not to load images automatically in OPTION of firefox, and i want to keep this option as it is. now can i display images of particular page without changing DONT LOAD IMAGE AUTOMATICALLY?

    i have selected not to load images automatically in OPTION of firefox, and i want to keep this option as it is. now can i display images of particular page without changing DONT LOAD IMAGE AUTOMATICALLY? for example if i trust that image on particular page doesnot contain any adult material and safe to see that page from home, can i temparory view image on page?

    -> Tap '''ALT''' key or press '''F10''' to show the Menu Bar
    -> go to Tools Menu -> Options -> Content -> click '''Exceptions...''' button infront of '''Load images automatically''' -> type the address of the website on which you want to load images e.g. yahoo.com and click '''Allow''' button -> click Close
    -> Click OK on Options window -> Restart Firefox
    Check and tell if its working.

  • How can i Display images with may own table

    Hi
    I want display images with my own table. How can I use in this query.
    SELECT    '<a href="#" onclick="javascript:'
           || 'getImageHeight(''my_img'
           || '#ROWNUM#'');javascript:redirect'
           || '(''f?p=&APP_ID.:212'
           || ':&SESSION.:DISPLAY:NO::P212_IMAGE_ID:'
           || ID
           || ''');">'
           || '<img src="#IMAGE_PREFIX#edit.gif" '
           || 'alt="Edit"></a>' ID,
              '<img id="my_img'
           || '#ROWNUM#" src="#WORKSPACE_IMAGES#'
           || filename
           || '"/>' image
      FROM wwv_flow_filesThanks
    Nr
    Edited by: user10966033 on Sep 28, 2009 1:41 PM

    You don't use #workspace_images# since that is for STATIC files, not images in a table..
    see this thread for help: Re: Display image from blob
    Thank you,
    Tony Miller
    Webster, TX

  • How can i display image in mx:TextArea Component?

    I found display img tag in htmlText of mx:TextArea component
    is very difficult in Flex Air
    I new a simple air project in flex builder, put the code
    below in it, i put a glad.png file in the src folder, every thing
    is OK, when i run it, image cannot be displayed. why this happend,
    I search the google for the solution, it seems there is a bug in
    air, and told me to use mx:HTML coponent, but that component still
    can not display img tag.
    could any one help me with this?
    <mx:TextArea width="100%" height="100%">
    <mx:htmlText>
    <![CDATA[
    <a href='
    http://www.adobe.com'><img
    src='glad.png'/></a>Click the image to go to the Adobe
    home page.
    ]]>
    </mx:htmlText>
    </mx:TextArea>

    I ran into a similar problem and wasn't able to find a way to have regular Flex components (like Text and TextArea) display <img> tags in their htmlText.  Everything works find in a web-based Flex application, but once the same code was used in AIR, the images just wouldn't display.
    I changed my display to use the mx:HTML component and everything worked fine (I was using only external images).

  • Can We Display Image on Hieararichal Report on Each Line item

    Dear Gurus ,
                         I have a Strange Requirement from the Client . They want to display Image on each line item of report with regard to Material in Hierarchal Sequential Report . Is there any solution for the same .
    Thanks in advance
    regards
    Shankar

    I am having a path which is stored in SAP database which i have fetched in the reported in both alv heriarchal and also in Alv Grid . The Image is stored from DMS . Now what i am doing is i am trying to load a excel file from program BCALV_BDS_UPLOAD and when i run my report and go to view and select Microsoft Excel option the I am getting an error Bad file format .
    The Path is : SAPR3://SAPR3CMS/get/200/DMS_5FC1/DE72B28A5B76F0F1AF0000215E54283E/FM1E1085XX18W-001E.jpg
    Can you please help me out in this .
    Regards
    Shankar

  • JSON content - can't display image after click

    Hi to all,
    I am trying to to load a JSON file and load images with text information.
    I have a problem when i click the thumbnail, the large image can't displayed, i am receiving the following error:
    Failed to load resource: the server responded with a status of 404 (Not Found)
    my code in compositionReady:
    $.getJSON("content.json",
              function(data){
                        for(var i=0; i<=data.length; i++){
                        var s = sym.createChildSymbol("template","content");
                        s.$("title").html(data[i].title);
                        s.$("description").html(data[i].description);
                        s.$("seira").html(data[i].seira);
                        s.$("imageholder").css({"background-image":"url('"+data[i].image+"')"});
                        s.$("imageholder").click("click", function(e){
                                                                sym.getComposition().getStage().$("finte").css({"background -image":"url("+$(this).data('largeimage')+")"});
    And the JSON File:
                        "title": "Titlos 1",
                        "description":"Descrpt 1",
                        "seira": "Number 1",
                        "image": "images/wheel.png",
                        "largeimage": "images/1.png"
                        "title": "Titlos 2",
                        "description":"Inter description 2",
                        "seira": "test",
                        "image": "images/wheel_cool.png",
                        "largeimage": "images/wheel_cool.png"
    I tried also with this code:
    $.getJSON("content.json")
       .success(
              function(data){
                        console.log("incoming data: ", data);
    $.each(data, function(index, item){
              var s = sym.createChildSymbol("template","content");
              s.$("title").html(item.title);
              s.$("description").html(item.description);
              s.$("seira").html(item.seira);
              s.$("imageholder").attr("src",(item.image));
                        s.play();
              s.setVariable( "largeimage", item.largeimage)
    and at the element that hold's the thumbnail image, I added on the click event :
    sym.$("finte").css({"background-image":"url("+$(this).data('largeimage')+")"});
    I believe that somewhere on +$(this).data('largeimage')+") is the mistake. But I can't find it.
    Your help is needed.
    Moreover, how, the thumbnails, can be displayed as a table of 4x5?
    Thanks in advanced.

    Hi Zoze
    you missed some lines, try this, i think this should work for you
    $.getJSON("content.json",
              function(data){
                        for(var i=0; i<=data.length; i++){
                        var s = sym.createChildSymbol("template","content");
                        s.$("title").html(data[i].title);
                        s.$("description").html(data[i].description);
                        s.$("seira").html(data[i].seira);
                        s.$("imageholder").css({"background-image":"url('"+data[i]. image+"')"});
                        s.$("imageholder").data('Large', data[i].largeimage);
                        s.$("imageholder").click("click", function(e){
                                                                sym.getComposition().getStage().$("fint e").css({"background-image":"url("+$(this).data('Large')+")"});
    if you had problem again, let me know
    Zaxist

  • Can a display image field be changed with javascript

    I have a select list (P3_RECON_CONDITION). when it changes It triggers javascript..
    in that javascript I would like it to change a Display Image field (P3_RECON_COLOR) without having to refresh the whole page..
    P3_RECON_COLOR is a Display image filed that gets its image from a blob from SQL:
    select color from projstat.condition_color, projstat.project where condition_color.condition = nvl(:P3_RECON_CONDITION,'W') and project.job_piece = :P3_JOB_PIECE
    the display field works now, but only for what the P3_RECON_CONDITION is when the page is loaded..

    yes, I tried that, but couldn't figure out how to do the: " dynamic action refresh the item P3_RECON_COLOR"
    I have
    Event: Change
    Selection Type: Item
    Item: P3_RECON_CONDITION (the select list)
    no condition
    TRUE ACTION: Refresh
    Fire when True:
    Selection Type: Item
    Item: P3_RECON_COLOR (the display image)
    (if I change the action to submit page.. it does fire.. but the refresh item does nothing..)

  • How can I display images in tables?

    My images that I have put into tables in my iBook are visible in iBooks Author. However, when I preview it on my iPad, I cannot see the images in the tables. Any ideas anyone?

    Are you sure the images are embedded in the table and not just sitting on top? You can test by nudging the table slightly to see if the image/s move with the table. Also in the Inspector, an image in a selected table cell will show in Inspector as a background to that cell.
    I haven't tested whether the image in the background of the table cell will actually display in the previewed iBook but am interested in the result that you get. I found that the only way I could get an image into a table cell was by copying it to the clipboard and then selecting the cell and pasting. I also found that none of the sizing options in Inspector worked and that the image shrank to fit the cell and was centred in it by default.

  • Can I display images simultaneously in CS4

    The only-see-one-image doesn't work for me. Can I change this?Thanks

    In Preferences > Interface, uncheck "Open Documents as Tabs".
    This will allow multiple files to open in their own windows.
    Alternatively, you can choose "Float All in Windows" from the Arrange Documents button drop-down menu in the Application Bar at the top of the screen. While you're there, experiment with the N-up feature that allows you to choose how to arrange multiple open files on the screen.

  • How can i displayed image in titlewindow?

    Hi,
    i one one.mxml.It contain one text field and preview button is present.The text field contains the image path.
    My question is wen i clicked on the preview button the image will be didplayed on titlewindow(two.mxml).
    i have written logic for how to crete title window in preview button handler.i have written image tag in
    two.mxml.
    Regards
    D.Mahesh babu

    you can set image path for pop-up window as
    titleWindowInstance .imageId.source = textInput.text;
    & then PopUpManager.centerPopUp( titleWindowInstance );

  • Can't display image on TV from MacBookPro (using DVI to video adaptor)

    I purchased the apple "DVI to Video Adapter" to be able to use my TV as a display, but it isn't working despite help from the Apple help desk.
    I'm using a standard TV video cable that plugs into the yellow video input jack, with is a Hitachi full multi-system C2578FS that works anywhere in the world. Before my iBook died last year, I used to watch movies from it on the same television using a similar setup (just VGA instead of DVI adaptor).
    The television is not receiving the signal in any way. My MacBookPro is: the 'detect displays' when activated in my MacBook Pro's menu bar shows a display it calls "NTSC/PAL" which is the television, and I've tried each of the different settings to no avail.
    Any ideas on how I might finally watch a movie or slideshow on my television?
    Kind regards in advance,
    -ck-

    After much fiddling with display resolutions and TV setting, and several calls to Apple help, problem was found to have a really basic solution: replace the RCA connector cable. The old one was shot.

  • Can longer display images just by star rating in Adobe Bridge CC.  Any ideas?

    One day this functionality just stopped working.  Any ideas to fix?

    Try opening in Chrome or Firefox and inspecting the elements. You can turn easily locate the CSS that's driving the background and experiment with settings. You get there by right clicking on an element and select Inspect Element from the options. It's much easier than trying to go through all of that HTML code without a style sheet to go along with it.

Maybe you are looking for

  • SBO - How to use two different Stock Account within the same Item Group

    Hi, I'm currently stuck within one of my implementation. I'm deploying the same solution worldwide which worked pretty well until now. All the items are connected to an item group, with a unique GL account, supposed to book at the same time the good

  • Maintaining mics through pi sheet

    Hi Gurus, i have assigned process inst cat QMRES in o10c to destination and after creation of the process order, i observed that this process inst cat is not copied in order/ phase. also after creation of control recipe- there is no mics are shown in

  • How I Change Apple ID and iPhone account together?

    I am closing my Yahoo address and opening my Gmail address.  I wanted to redirect mail from Yahoo to Gmail.  In the attempt I changed my Apple ID to [email protected]  My iPhone didn't follow.  How do I fix it?

  • Cannot install iTunes or Quicktime

    hello all, after downloading iTunes i get a dialog box saying "unknow editor, execute?". After saying yes, nothing happens, it's as if i hadn't clicked the installer at all... i tried all the suggestions in the support section, including installing q

  • Firefox 4 doesn't open in a homepage, but rather opens the last page I visited, which I HATE!!!!!!!!!!!!!!!!!!

    So far the Firefox upgrades are nothing but trouble to me and my computer. Where is the homepage. Why when I open Firefox from the desktop shortcut do I not get a homepage, but rather the last page I visited. I was doing bills, and finished but could