Tip: Playing flash (.swf) files in PIE

Search This thread

tweakradje

Senior Member
Hi,

Figured this out a while ago but I (and other) realy like this.
So this is your bedtime story for today ;O)

Install MacroMedia Flash player 6 for ppc. Or better don't just now.
and read everything below.
There is a bug in the selfregistering section of flash.dll. Better unpack
the .cab file first (winzip or winrar wil do it). Open the (renamed) flash.dll in Resource Hacker and open the registry section of this file.

The comment that is entered there screws up your registry section: HKCR\MIME\Content\Database. After installing the flash.dll the comment from the selfregistering section shows up here in bits and pieces. Very clumsy MacroMedia!@
So after installing you will have todo some cleaning up here.

Still with me? Now we take a look at this part with Resource Hacker:

NoRemove MIME
{
NoRemove Database
{
NoRemove 'Content Type'
{
//
// HACKHACK! [cpeterso 10/30/2002]
// Bug 39844 - PPC AX: Loading a SWF into PIE hangs the browser
//
// The CLSID {698E3FCA-70C3-11D0-81E8-00A0C90AD20A} specified
// below is not a Flash Player CLSID. It is the CLSID of the PPC
// IE Browser (PIE). Due to a bug in PIE, full-page mode (SWFs
// loaded directly using a SWF URL instead of an HTML page) will
// freeze the browser. To workaround this fact of life, we want
// to stop PIE from loading full-page SWFs.
//
// If we remove EnableFullPage and the .swf MIME types, PIE will
// display an ugly dialog box asking the user if they would like
// to download the SWF. However, if we specify a bogus CLSID
// (such as the PIE Browser CLSID), then PIE will attempt to load
// the SWF and then give up silently because the given CLSID
// simply ignores the SWF file. This hack is nice because it does
// not display any ugly dialog boxes or freeze PIE. :)
//


NoRemove 'application/futuresplash'
{
NoRemove val Extension = s '.spl'
val CLSID = s '{698E3FCA-70C3-11D0-81E8-00A0C90AD20A}'
}
NoRemove 'application/x-shockwave-flash'
{
NoRemove val Extension = s '.swf'
val CLSID = s '{698E3FCA-70C3-11D0-81E8-00A0C90AD20A}'
}
}

With all good intentions of the programmer who did this: this is stopping you from playing SWF in PIE. Replace {698E3FCA-70C3-11D0-81E8-00A0C90AD20A} with {D27CDB6E-AE6D-11cf-96B8-444553540000} (like it is on your PC's registry in you installed flash)
and remove all the comment. Save it with Resource Hacker and you have a proper flash.dll for future use (use regsvr_arm.exe to reregister this new flash.dll on your ppc)
Or do it by editting the registry:

[HKCR\MIME\Database\Content Type\application/x-shockwave-flash]
"CLSID"="{D27CDB6E-AE6D-11cf-96B8-444553540000}"
"Extension"=".swf"

[HKCR\MIME\Database\Content Type\application/futuresplash]
"CLSID"="{D27CDB6E-AE6D-11cf-96B8-444553540000}"
"Extension"=".spl"


The second part is getting .swf files to open in PIE:

[HKCR\ShockwaveFlash.ShockwaveFlash\Shell\Open\Command]
"Default"="iexplore.exe file:%1"


Now you don't need an external 3rd party Flash player anymore.

Good night,

Tweakradje
 

doortodoorsalesman

Senior Member
this seems a little too technical for me at the moment, I'm still relatively new
(newbie).
Any chance you could post the fixed cab file or is that not possible.
That would be verynice , If not could you let me know where I can get the tools to edit the files please.

thanks in advance.

DAZ
 

angel1st

Member
Feb 18, 2006
11
0
www.agilebs.com
Hi All,
I am completely agree with doortodoorsalesman - I appreciate tweakradje efforts, but explanation is too technical. Besides, I have got flash player as exe file, so it is not possible to find dll file in it. If it is possible to have that repaired version of flash player cab file somewhere on the ftp, it will be most appreciated,
Regards,
Angel
 

Oat

New member
Dec 29, 2005
3
0
Attached is the fixed DLL. I just followed tweakradje's instructions and removed the comment and corrected the CSLIDs. Now, replace the DLL file under Windows/Macromedia with the fixed one and with regsvr_arm.exe from http://www.pocketpcdn.com/articles/regsvr.html, re-register the DLL file. The only step left is to edit the registry:
[HKCR\ShockwaveFlash.ShockwaveFlash\Shell\Open\Command]
"Default"="iexplore.exe file:%1"

Then when you tap a .swf file, it'll open in PIE. All of my .swf files just give me a blank PIE screen, but I'm hoping it's because the Flash player is too outdated for the files I'm using. Hope this helps someone.
 

Attachments

  • flash.zip
    445.8 KB · Views: 422

ady

Retired Forum Moderator
Nov 15, 2005
436
19
Vancouver
hi,

I did exactly as you wrote but it didn't work on my universal.

I'm attaching the modified cab file which does all the steps automatically

see if it works for anyone else
 

Attachments

  • activex.cab
    878.1 KB · Views: 461

tweakradje

Senior Member
ady said:
hi,

I did exactly as you wrote but it didn't work on my universal.

I'm attaching the modified cab file which does all the steps automatically

see if it works for anyone else

Thanks,

You did not change the the selfregister section of flash.dll. Use the one above to integrate in your cab file. Then it will work.

For example see attached bmp.

Cheers
 

Attachments

  • flash_dll.gif
    flash_dll.gif
    25.2 KB · Views: 289

tweakradje

Senior Member
Dunno what MacroMedia wants with Flash for ppc. First they withdraw their version 6 player, then restore it and now even upgrade to version 7.

Whatever, here it is: Flashplayer 7 for WM2003se/5

I will check if the previous nags are corrected in this version.
Will come back on that.

Edit: reported problems are also in this version. I cannot make a new cab file but I will attach the corrected version 7 dll. Perhaps some can...

Edit: as said above don´t forget to re-register this dll and create the iexplore links (see first post in this topic)

Cheers

ps: the memory usage of this version 7 is bigger than version 6. Beware.
 

Attachments

  • flash7_corrected.zip
    659.8 KB · Views: 287

Midget_1990

Retired Moderator
Mar 4, 2006
1,733
13
34
Worthing
I have repackaged the above dll and all the needed registry entries into the origional flash player .cab all you need do is intall this cab, nothing else.

EDIT: forgot a reg entry :oops:
 

Attachments

  • fp7_ppc_en_fixed.cab
    1.4 MB · Views: 799

jok3sta

Senior Member
Mar 8, 2006
834
48
ok i need a lil help. i install the above cab to my mda and it says it cannot be installed. it doesnt work but it takes away like 2-3 megs from my storage space. how do i get rid of it, or make it work