Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Re: Help needed - Variable problem |
From: | Matt Wobensmith |
Date: | Mon, 31 Jan 2000 23:50:31 GMT |
You're running into a place where you need to URL encode your special
characters. The solution isn't something I can give you an exact way to
implement. However, here are some things that may help.
1. There is a TechNote on escape characters and how to substitute characters
for non-alphanumeric characters:
http://www.macromedia.com/support/flash/ts/documents/url_encoding.htm
2. A sample ActionScript that can take a variable (called "name" in this
example") and URL encode the space characters. You would need to change the
"%20" to "%5F" for underscore symbols. This is necessary when going back and
forth between the Flash movie in the browser and the server-side script.
Please note that this is only one possible solution - it may not work for
your situation. I just thought I'd include it.
Set Variable: "newname" = name
Set Variable: "length" = Length (name)
Set Variable: "count" = "1"
Set Variable: "temp" = ""
Loop While (count <= length)
Set Variable: "char" = Substring ( name, count, 1 )
If (Ord (char) = 32)
Set Variable: "char" = "%20"
End If
Set Variable: "temp" = temp & char
Set Variable: "count" = count + 1
End Loop
Set Variable: "name" = temp
Hope this helps.
-Matt
---------------
Matt Wobensmith
Macromedia Tech Support
Flash Team Lead
----------
>From: "Pinhead" <pinheadmandic [dot] com [dot] br>
>To: <flasherchinwag [dot] com>
>Subject: FLASH: Re: Help needed - Variable problem
>Date: Mon, Jan 31, 2000, 3:54 PM
>
> Hi,
>
> After some dumbness crisis I realised that I really need some help.
> I'm trying to convert an HTML form to Flash that results the following to
>be sent to the server:
>
>
>http://setiathome.ssl.berkeley.edu/cgi-bin/cgi?cmd=team_join_action&id=4717&
>email_addr=your@emailr&passwd=12345
>
> But for some reason I'm gettin this:
>
>
>http://setiathome.ssl.berkeley.edu/cgi-bin/cgi?cmd=team_join_action&id=4717?
> &cdm=team%5Fjoin%5Faction&id=4717&email%5Faddr=your%40email&passwd=12345
>
> Notice that the underscores were changed by "%5F" and I just cant fix
> it..>:(
>
> I'm using this actions:
>
> On (Release)
> Get URL ("http://setiathome.ssl.berkeley.edu/cgi-bin/cgi",
> window="_blank", vars=GET)
> Set Variable: "cmd" = team_join_action
> Set Variable: "id" = 4717
> Set Variable: "email_add" = ""
> Set Variable: "passwd" = ""
> End On
>
>
> but, of course it's wrong...can you help me to do it wright?
>
> thanx,
>pinhead.
>
>
>
>flasher is generously supported by...
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and The Flash Film Festival
> "The World�s Premier Flash Solutions Conference and Expo"
> March 27-29, Nob Hill Masonic Center, San Francisco, California
>
>-Register before Feb 25 and save $200!!-- www.flashforward2000.com
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>To unsubscribe or change your list settings go to
>http://www.chinwag.com/flasher or email helpchinwag [dot] com
>
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California
-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]