Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | RE: FLASH: just a part of url |
| From: | Wang, Andy |
| Date: | Tue, 8 Feb 2000 18:10:33 GMT |
Hello Andrea,
I had to deal with that problem lately. And I wrote a loop where searched
through the entire text string and grabed the chuck that i needed. It went
something like this:
Set Variable "index" = length(STRING)
Loop While (index gt 0)
Set variable "check" = Subtring(STRING, index, 1)
{this will grab the 1 character per the {INDEX} number of text in the whole
string. what you can do now, is to comapre the character with something u
want to find. Like if you STRING is "http://www.test.com/home" and you want
the "home" part. I would try to search backwards and find the first "/"
character. so u would use something like the above loop. with this,
IF( Check eq "/")
Set Variable "Save" = Substring(STRING, (index+1), 4)
Set VAriable "Index" = length(STRING)+1
Else
Set Variable "Index" = INdex-1
SOmething like that. This way, it'll check each character for the "/", and
when it finds it, it grabs the 4 characters after the "/" character, which
is "home" and stores it in the SAVE variable. OR if its not "/" it'll
decrease the INDEX count and search the previous character to see if its
"/".
Basically its a loop search for character kinda of actionscript, hope it
helps..
-----Original Message-----
From: Andrea Guida [jidanet
Sent: Tuesday, February 08, 2000 1:55 AM
To: flasher
Subject: FLASH: just a part of url
please,
I need to bring a variable from the url... but just a part of this (for
example: a text variable that display just 'home' and not
http://www.test.com/home)... anyone knows how can I make it?
perhaps with substring...
thanks in advance
jida
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 help
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 help
Replies
FLASH: How To Read in an & from an exter, David Doggett
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

