1. #1
    Ext User
    Join Date
    Sep 2008
    Posts
    10
    Vote Rating
    0
    j-mi-jim is on a distinguished road

      0  

    Default Flash visibility

    Flash visibility


    hi
    i've got a problem with flash.
    I'm using web desktop of gxt 2.1 and i've got a window
    in the window i've an htmlPanel, and inside i put a div with the flash object
    like this

    in the htmlPanel, i set html:

    String game = "<div width='100%'><object codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#3,0,0,0' height='100%' width='100%'><param name='SRC' value='"+ urlSWF + "'> <param name='QUALITY' value='high'> <embed src='"+urlSWF+ "' pluginspage='http://www.macromedia.com/shockwave/download/' type='application/x-shockwave-flash' quality='high' height='100%' width='100%'></object></div>";
    htmlPanel.setHTML(game);

    It works fine. The problem is if i click on another shortcut, ( so it open another window), the flash object is in front of the new window !

    I've tried to use the class FlashComponent, but it's work at all using the constructor FlashComponent(urlSWF). i can see it.

    Thanks in advance.

  2. #2
    Sencha User bkraut's Avatar
    Join Date
    Nov 2007
    Location
    Maribor, Slovenia
    Posts
    402
    Vote Rating
    1
    bkraut is on a distinguished road

      0  

    Default


    Of course it is. Flash is rendered as a separate plugin within your browser.

    It will allways be rendered in the front of all the javascript.

    Anyway, you can use following:

    PHP Code:
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="601" height="252" id="florina" align="middle">
                                                    <
    param name="allowScriptAccess" value="sameDomain" />
                                                    <
    param name="movie" value="fileadmin/template/main/images/florina.swf" />
                                                    <
    param name="quality" value="high" />
                                                    <
    param name="wmode" value="transparent" />
                                                    <
    param name="bgcolor" value="#74c480" />
                                                    <
    embed src="http://www.florina.si/fileadmin/template/main/images/florina.swf" quality="high" wmode="transparent" bgcolor="#74c480" width="601" height="252" name="florina" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                                                    </
    object
    Pay attention on wmode parameter.

  3. #3
    Ext User
    Join Date
    Sep 2008
    Posts
    10
    Vote Rating
    0
    j-mi-jim is on a distinguished road

      0  

    Default thx

    thx


    thx i will test-it. Have a good day

  4. #4
    Ext User
    Join Date
    Sep 2008
    Posts
    10
    Vote Rating
    0
    j-mi-jim is on a distinguished road

      0  

    Thumbs up yess !

    yess !


    it works.
    ;-) thx

Thread Participants: 1