Re: [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser?

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103466
interpreted = N
texte = Pat I am new enough at all things flash, that I am glad to see your input; I never know what I'm going to need to learn from.. but I think you missed what I need most right now; I already had html pages that were successfully playing swf files.. and I am already successfully protecting those pages with a custom webdna (cookie/db) protection scheme.. (users need to be members to see the swf files), .. But what I don't have is a way to keep clever users from looking at the source html of the page and sending the link to the actual swf file to a non- member friend who can then simply enter that URL in his browser and so bypass my protection scheme. Thus (thanks to Dan Strong) I tried using that [returnraw] code (see below) which allows me to first check with webdna (on the same page) if the user is a member, and if so then just dump the swf file (located in ^Globals, unaccessible directly) to the user with [returnraw].. . BUT that code (as I posted, see way below) only prompts the user to either save the file to disk or else open with another application.. rather than what I want - to just start playing in the browser window. If there is a way to translate what you just posted into what I need to stick in the [returnraw] context, then I humbly admit I don't have that skills set yet. Do you know how? -Govinda > Hi Govinda, > > Try using and to put .swf files in your web pages > like this: > > codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version > =10,0,0,0" width="1004" height="810" id="my_movie" align="middle"> > > > > > > > > > menu="false" quality="high" wmode="transparent" width="1004" > height="810" name="my_movie" align="middle" > allowScriptAccess="sameDomain" allowFullScreen="false" > type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer > " /> > > > Adjust the file names, paths, dimensions and settings to match your > swf file. One cool tip - you can set the background color to > transparent, which means that irregular shapes with drop shadows > will float over your background images. > > Pat > > On Aug 25, 2009, at 7:53 PM, Govinda wrote: > >> Does anyone know how to modify this code so that it plays the >> shockwave movie file in the browser window directly, as opposed to >> what it does now - prompt to either download to disk, or open with >> a chosen app. ?? >> >> (Sorry if this is too OT.) >> >> [text]theFullPathtoFile=^path/to/your/file/in/globals/theFile.swf[/ >> text] >> [text]theFileName=theFile.swf[/text] >> [text]line_ending=%0D%0A[/text] >> >> [ReturnRaw binarybody=[theFullPathtoFile]][!] >> [/!]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!] >> [/!]Status: 200[unurl][line_ending][/unurl][!] >> [/!]Content-Type: application/octet-stream[unurl][line_ending][/ >> unurl][!] >> [/!]Content-Disposition: attachment; filename="[theFileName]"[unurl] >> [line_ending][line_ending][/unurl][!] >> [/!][/ReturnRaw] >> > ------------ Govinda govinda.webdnatalk@gmail.com Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Govinda 2009)
  2. [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? ("Terry Nair" 2009)
  3. Re: [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Govinda 2009)
  4. Re: [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Govinda 2009)
  5. Re: [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Patrick McCormick 2009)
  6. Re: [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Govinda 2009)
  7. [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? ("Terry Nair" 2009)
  8. [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Govinda 2009)
Pat I am new enough at all things flash, that I am glad to see your input; I never know what I'm going to need to learn from.. but I think you missed what I need most right now; I already had html pages that were successfully playing swf files.. and I am already successfully protecting those pages with a custom webdna (cookie/db) protection scheme.. (users need to be members to see the swf files), .. But what I don't have is a way to keep clever users from looking at the source html of the page and sending the link to the actual swf file to a non- member friend who can then simply enter that URL in his browser and so bypass my protection scheme. Thus (thanks to Dan Strong) I tried using that [returnraw] code (see below) which allows me to first check with webdna (on the same page) if the user is a member, and if so then just dump the swf file (located in ^Globals, unaccessible directly) to the user with [returnraw].. . BUT that code (as I posted, see way below) only prompts the user to either save the file to disk or else open with another application.. rather than what I want - to just start playing in the browser window. If there is a way to translate what you just posted into what I need to stick in the [returnraw] context, then I humbly admit I don't have that skills set yet. Do you know how? -Govinda > Hi Govinda, > > Try using and to put .swf files in your web pages > like this: > > codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version > =10,0,0,0" width="1004" height="810" id="my_movie" align="middle"> > > > > > > > > > menu="false" quality="high" wmode="transparent" width="1004" > height="810" name="my_movie" align="middle" > allowScriptAccess="sameDomain" allowFullScreen="false" > type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer > " /> > > > Adjust the file names, paths, dimensions and settings to match your > swf file. One cool tip - you can set the background color to > transparent, which means that irregular shapes with drop shadows > will float over your background images. > > Pat > > On Aug 25, 2009, at 7:53 PM, Govinda wrote: > >> Does anyone know how to modify this code so that it plays the >> shockwave movie file in the browser window directly, as opposed to >> what it does now - prompt to either download to disk, or open with >> a chosen app. ?? >> >> (Sorry if this is too OT.) >> >> [text]theFullPathtoFile=^path/to/your/file/in/globals/theFile.swf[/ >> text] >> [text]theFileName=theFile.swf[/text] >> [text]line_ending=%0D%0A[/text] >> >> [ReturnRaw binarybody=[theFullPathtoFile]][!] >> [/!]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!] >> [/!]Status: 200[unurl][line_ending][/unurl][!] >> [/!]Content-Type: application/octet-stream[unurl][line_ending][/ >> unurl][!] >> [/!]Content-Disposition: attachment; filename="[theFileName]"[unurl] >> [line_ending][line_ending][/unurl][!] >> [/!][/ReturnRaw] >> > ------------ Govinda govinda.webdnatalk@gmail.com Govinda

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Shipping formula problem (1997) Trouble creating a temp database (2000) name of file (2002) Database Updates (1997) Access Denied! But why? (1997) Location of Browser Info.txt file (1997) Help! WebCat2 bug (1997) Creating folders and deleting files (1997) Fun with Dates - any progress? (1997) where to put code (1998) ServerQuestion (2000) [WebDNA] How to code a 301 redirect (2008) Encrypted items in DB (2001) Error: Can't open order file. (2005) hideif glitch (2003) Setting up the server (1997) Help formatting search results w/ table (1997) Mac GUI editors (1997) WebCatalog 4.0 has been released! (2000) upgrade? (1997)