Go Back   xda-developers > General discussion > General

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th February 2006, 10:06 PM
tweakradje tweakradje is offline
Senior Member
 
Join Date: Mar 2005
Location: wm2003se
Posts: 269
Default Tip: Playing flash (.swf) files in PIE

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\Comm and]
"Default"="iexplore.exe file:%1"


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

Good night,

Tweakradje
Reply With Quote
Sponsored Links

  #2  
Old 18th February 2006, 11:28 PM
doortodoorsalesman's Avatar
doortodoorsalesman doortodoorsalesman is offline
Junior Member
 
Join Date: Jan 2005
Location: England
Posts: 29
Default

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
__________________
Free Sales Training
for Direct Sales People

www.doortodoorsalesman.com
Reply With Quote

  #3  
Old 19th February 2006, 09:49 PM
angel1st angel1st is offline
Junior Member
 
Join Date: Feb 2006
Posts: 11
Default

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
__________________
________________________________
QTEK9100
ROM 1.6.7.1 WWE
Radio 01.13.10
ExtROM 1.6.7.101
Reply With Quote

  #4  
Old 20th February 2006, 12:58 PM
jamps jamps is offline
Junior Member
 
Join Date: Aug 2004
Posts: 17
Default

Posting the fixed flash.dll might help as a start? :mrgreen:
Reply With Quote

  #5  
Old 21st February 2006, 04:51 PM
Oat Oat is offline
Junior Member
 
Join Date: Dec 2005
Posts: 3
Default

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:
Quote:
[HKCR\ShockwaveFlash.ShockwaveFlash\Shell\Open\Comm and]
"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.
Attached Files
File Type: zip flash.zip (445.8 KB, 356 views)
Reply With Quote

  #6  
Old 22nd February 2006, 08:00 AM
jamps jamps is offline
Junior Member
 
Join Date: Aug 2004
Posts: 17
Default

Oat,

Thx bro!
Reply With Quote

  #7  
Old 22nd February 2006, 11:11 AM
ady's Avatar
ady ady is offline
Senior Member
 
Join Date: Nov 2005
Location: Calogary, AB
Posts: 320
Default

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
Attached Files
File Type: cab activex.cab (878.1 KB, 432 views)
Reply With Quote

  #8  
Old 22nd February 2006, 11:32 AM
nolovelust's Avatar
nolovelust nolovelust is offline
Senior Member
 
Join Date: Dec 2005
Location: TR
Posts: 245
Default

god! :@ im still cleaning it !
__________________
Need a social mobile site?
http://mobile.web.tr

Need a mobile site?
http://phn.me

100s of internet radios
http://mobilust.net/shoutcast

Waptoplist
http://waptrack.net

Mobile bookmarks
http://mobilust.net/bookmarks

Short url service with country based redirection
http://rdr.cc
Reply With Quote

  #9  
Old 22nd February 2006, 12:09 PM
victoradjei victoradjei is offline
Senior Member
 
Join Date: Nov 2004
Posts: 1,005
Default

Cleaning what? :twisted:
Reply With Quote

  #10  
Old 22nd February 2006, 05:25 PM
tweakradje tweakradje is offline
Senior Member
 
Join Date: Mar 2005
Location: wm2003se
Posts: 269
Default

Quote:
Originally Posted by ady
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
Attached Images
File Type: gif flash_dll.gif (25.2 KB, 264 views)
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:21 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.