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:

Listfiles (1998) WebCat2b15MacPlugin - showing [math] (1997) pipe delimited crconvert database (2002) Version f1 status (1997) New Guestbook Source (1997) Help formatting search results w/ table (1997) [Webcat 2]Next (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) required fields (1999) Which [index]? (1997) [WebDNA] XML error? (2015) Frames and WebCat (1997) [movefile] create stationery files (1998) [WebDNA] Lookup, Whois etc. (2009) Problems with [Search] param - Mac Plugin b15 (1997) WebDNA & HTML Problems (2003) inetinfo.exe (1999) what servers are supported for Typhoon? (1997) WebCatalog can't find database (1997) Gil's in the lead (1999)