Qt6 topics merged with General

A bug in Qt's flash rendering using the flash plugin

  • sorry if I'm putting this in the wrong place, but i have discovered a bug with the flash plug-in (or more likely, qt's use of the flash plug-in) that prevents it from actually loading the flash. I discovered it when i was trying to open this site : "http://magicduel.com/":http://magicduel.com/ which works just fine with the way it's coded, however when you hit login, or whatever it is it has listed there, it brings you to the login page, and if you are using a non-qt based web browser (i was able to confirm it wasn't just my code because i compiled and ran aurora) it will have a map next to the place you enter your login info into, but if you are using a qt based browser it won't load, although it will reserve the space for it in the layout. Now here is the difference between the flash on the 2 pages, on the main page it's coded

    @ <td rowspan="2" class="bgb" valign="top" width="280"><object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" height="759" width="280">
    <param name="movie" value="img/homepage/md.swf">
    <param name="quality" value="high">
    <param name="wmode" value="opaque">
    <param name="swfversion" value="">
    <param name="expressinstall" value="Scripts/expressInstall.swf">
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="img/homepage/md.swf" height="759" width="280">

        <param name="quality" value="high">
        <param name="wmode" value="opaque">
        <param name="swfversion" value="">
        <param name="expressinstall" value="Scripts/expressInstall.swf">
          <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
          <p><a href="http://www.adobe.com/go/getflashplayer" rel="nofollow"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" height="33" width="112"></a></p>
        &lt;!--[if !IE]>--&gt;


    take note of how it references the flash file, now here's the one from the login page:

    @<div id="div_worldmap"><embed type="application/x-shockwave-flash" src="../map/1_worldmap.swf" id="worldmap" name="worldmap" bgcolor="#000000" quality="high" wmode="transparent" menu="false" flashvars="spotprm0=347x521,6x5,6x5,246x422,272x275,272x275,256x191,256x191,155x266,401x317,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,367x162,447x533,432x273,504x57,504x57,543x91,558x55,558x55,617x58,617x58,617x58,617x58,617x58,617x58,617x58,617x58,617x58,&spotprm4=270x331,575x189,&spotprm1=270x331,270x331,272x275,201x146,92x186,412x457,412x457,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,619x134,619x134,617x58,617x58,617x58,617x58,617x58,&spotprm3=256x191,356x203,356x188,500x177,&spotprm10=356x188,432x273,&spotprm5=356x188,617x58," height="570" width="700"></div>

    var so = new SWFObject("../map/1_worldmap.swf", "worldmap", "700", "570", "9", "#000000");
    so.addParam("quality", "high");
    so.addParam("wmode", "transparent");
    so.addParam("menu", "false");
    so.addParam("flashvars", "spotprm0=347x521,6x5,6x5,246x422,272x275,272x275,256x191,256x191,155x266,401x317,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,367x162,447x533,432x273,504x57,504x57,543x91,558x55,558x55,617x58,617x58,617x58,617x58,617x58,617x58,617x58,617x58,617x58,&spotprm4=270x331,575x189,&spotprm1=270x331,270x331,272x275,201x146,92x186,412x457,412x457,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,356x188,619x134,619x134,617x58,617x58,617x58,617x58,617x58,&spotprm3=256x191,356x203,356x188,500x177,&spotprm10=356x188,432x273,&spotprm5=356x188,617x58,");
    //so.addVariable("spot1_y", "1");


    notice how it adds ../ in front of the reference to the flash file, and this normally works in a web browser, but it doesn't seem to want to work in qt.

    PS: The large number of variables in that flash are because it shows where every on-line player is at the moment.

    [edit: fixed link / $chetankjain ]

  • NOTE: this bug only happens on linux. the same version running on windows works fine.

  • If you are sure this is a bug, then please report it in our "bugtracker":http://bugreports.qt.nokia.com/.

    The proper people will see it in the bugtracker, I am not sure whether they are going to see it here.

  • I've just checked, it works in Rekonq (Qt-based browser) with Qt 4.7 (trunk)

  • hi 1blah111111, you can also use the link feature while posting an url

  • ivan, were you using the linux package when you compiled it? because it works fine if compiled on windows, but i'll try downloading and installing the 4.7 version, i'm using 4.6.3 currently....

  • the only thing i wish is that the max download speed of the qt server was higher.... sourceforge's max speed is about 300kbps, while qt's is only 200kbps.....

  • I compile everything KDE-related - from Qt itself to Rekonq... so no packages.

    edit: Oh, you were asking whether I'm on Linux? Yes, I don't have anything else :)

  • [OT]

    [quote author="1blah111111" date="1283624195"]the only thing i wish is that the max download speed of the qt server was higher.... sourceforge's max speed is about 300kbps, while qt's is only 200kbps.....[/quote]

    If your download link contains get.qt.nokia.com you will get your file via a "content delivery network":http://en.wikipedia.org/wiki/Content_delivery_network called "Limelight":http://uk.limelightnetworks.com/index.php (not to be confused with LimeWire!). It should be quick all around the world. Our main download links on "qt.nokia.com":http://qt.nokia.com/downloads uses this service.

    If the domain is download.qt.nokia.com or you get it via FTP from ftp.qt.nokia.com you get the file from Oslo, Norway. And it's not the center of the universe, so to speak.


  • hmmm..... well i'm using gnome..... and i just tried using 4.7 to compile, and it didn't work..... although if i compile it in wine it works :D

  • Note to all who had this problem, update Qt via the ubuntu repository, and you may or may not need to restart for it to take effect, but this bug is fixed.

Log in to reply