Skip to main content
October 16, 2007
Question

Info in URL

  • October 16, 2007
  • 32 replies
  • 2207 views
Heres my story

So i have a flash file that has a text box with a scroll bar
thats all the flash file is...just a text box with a scroll bar attached

well i would like to do two different things, totally different
lol

heres number 1:
i have seen in many flash countdowns and stuff that is embeded, the url looks like this, for example:

http://i93.photobucket.com/albums/l80/bigrollerdave/flash/countdownred.swf?da=03&mo=01&words=bday"

If you look after the file is located, it says countdownred.swf?...
it has the extra info that gives the countdown what it needs
For my flash file, i would like to have something like that that would give the flash file the text it needs to be put in the flash file.
so the url would be like:
http://mysite.com/scrollbar.swf?text=this text appears in the scroll bar"


the second thing i would like to do it make a text file with the text, and make the text file in the url so that the text in the text file would be what appears in the scroll bar
so it would be somethin like:
http://mysite.com/scrollbar.swf?text=http://mysite.com/text.txt"
This topic has been closed for replies.

32 replies

October 30, 2007
hey, how can i have a uilscrollbar on 2 different frames?
it works on one but not the other!

wait nvm i figured i out!
i just put it on 2 different layers!
October 29, 2007
ohhh i guess thats it
i deleted that part and then tried it and it doesn show up now!
thanx!
October 29, 2007
if that means the "var" property
then yes:
_root.url
October 29, 2007
Nothing in the code you've posted would be doing that, it must be something else in your movie. Does the dynamic textfield have a value set to the "variable" property?
October 29, 2007
okay so when i open the flash file in for example firefox
the first thing it does is look for the url
but if i dont have one set, then it goes to the default:
http://manlaws.tripod.com/manlaw.txt

well when it loads, it actually shows the link:
" http://manlaws.tripod.com/manlaw.txt"
and then it loads the text in the txt file

here, check out what i mean
when it first loads, it shows the url to the text file
then it loads it:

http://manlaws.tripod.com/manlaw.swf
October 29, 2007
> lol sorry i just read it and i guess i didn explain it correctly
>
> its what i was talking bout a couple posts ago
>
> it shows the text file that its trying to load and then loads the actual text in the file
> im not sure why its doin that

I still don't understand what you mean.

> and i actually have a randomly different question
> do you know stuff about php?

Only a tiny bit, you should start a new thread on a PHP forum. This one works great for me:
http://www.devnetwork.net/

For best results, try using at least half way decent writing when asking your question there, PHP gurus can be a little less tolerant of bad grammar than I am. ;-)
October 28, 2007
lol sorry i just read it and i guess i didn explain it correctly

its what i was talking bout a couple posts ago

it shows the text file that its trying to load and then loads the actual text in the file
im not sure why its doin that

and i actually have a randomly different question
do you know stuff about php?
October 27, 2007
That code looks all correct to me.

> but it still says the url to the txt file and then load it
Sorry, I totally do not understand what you are trying to say here.
October 27, 2007
Your problem is this line:
my_txt.text = man_laws.load(" http://manlaws.tripod.com/manlaw.txt");

Now, why are you using my_txt.text = ? You don't do that in the other place, you only call the man_laws.load() method, and the onData event handles the text.
October 27, 2007
k so theres my code
is that right?

but it still says the url to the txt file and then load it
idk why though

do you want a link to the fla file?
October 27, 2007
> but there are a couple things
> when it first loads, it shows:
> " http://manlaws.tripod.com/manlaw.txt"

You must be loading in that txt file somewhere else in your code, or else you have that text in Flash to begin with.

> and then the other thing
> is in the url i put:
> .swf?url=http://manlaws.tripod.com/oops.txt
>
> for example, and i dont have a text file called "oops" so it says "unable to load
> external file"
>
> when/if it does that, i would like it to go to the defaul text file, the manlaw.txt
>
> how can i do that!?

Okay, think about it. Look at your code. It's already checking to see if the text file exists or not. Right now, if the text file doesn't exist, it just sets my_txt to say "Unable to load external file." Instead, you should make it do another load() call, this time to your default text file.
October 27, 2007
okay so i looked in the text box, and theres no text, i have a second keyframe but its different and it says stop(); so it should matter

and theres my code, i think i figured it out!
it loads the default one intead of showin that error

but no, when i load the yo txt file, it shows " http://manlaws.tripod.com/yo.txt" and then it shows "true" and THEN it loads whas in the txt file

why does it show true?