Show .swf file in a popup window

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
klevis miho
Forum Contributor
Posts: 413
Joined: Wed Oct 29, 2008 2:59 pm
Location: Albania
Contact:

Show .swf file in a popup window

Post by klevis miho »

How to show a flash file in a popup window?
I managed to show images in a popup, but not flash files.

Any help would pe appreciated.
pbs
Forum Contributor
Posts: 230
Joined: Fri Nov 07, 2008 5:31 am
Location: Nashik, India
Contact:

Re: Show .swf file in a popup window

Post by pbs »

User below given flash object and replace SWFPATH with you .swf file path. Also set width, height

Code: Select all

 
<object codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="300">
            <param name="quality" value="high">
            <param name="wmode" value="transparent">
            <param name="movie" value="SWFPATH">
            <embed src="SWFPATH" width="300" height="300" wmode="transparent"></embed>
        </object>
 
klevis miho
Forum Contributor
Posts: 413
Joined: Wed Oct 29, 2008 2:59 pm
Location: Albania
Contact:

Re: Show .swf file in a popup window

Post by klevis miho »

Thnx for the code, but It doesn't display me anything.
I am using this one to preview the flash:

Code: Select all

<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=7,0,2,0" height="250">
     <param name="src" value="media/file.swf">
     <embed src="media/file.swf" pluginspage="http://www.macromedia.com/shockwave/download/"      height="250">
</embed>
</object>
I basically want to see a thumbnail and when I click on in, a popup with the full dimensions of the flash file will open.
klevis miho
Forum Contributor
Posts: 413
Joined: Wed Oct 29, 2008 2:59 pm
Location: Albania
Contact:

Re: Show .swf file in a popup window

Post by klevis miho »

Sorry sorry pbs, it is working quite good thnx, my bad :)
klevis miho
Forum Contributor
Posts: 413
Joined: Wed Oct 29, 2008 2:59 pm
Location: Albania
Contact:

Re: Show .swf file in a popup window

Post by klevis miho »

But I noticed another problem:

I have one swf file that has links in it, and when I click on the swf file(to open the popup), the popups opens but also the link that is inside the swf file.
I also noticed that when my mouse is over the swf file, the pointer doesnt switch to a clickable pointer.

Is there any parameter to avoid this?
Post Reply