all groups > flash actionscript > september 2007 >
You're in the

flash actionscript

group:

Variable from subdomain??


Variable from subdomain?? Zac.T
9/30/2007 6:23:15 PM
flash actionscript:
Hi! I saw somewhere a way where a subdomain made a variable in flash. Eg, if i
had a site called mysite.com - and anyone can come and put
http://blablabla.mysite.com - and a variable on my flash file would be
blablabla. Is that possible?

Ps, I use flash 8 with actionscript 2
Re: Variable from subdomain?? kglad
9/30/2007 7:48:43 PM
Re: Variable from subdomain?? Zac.T
10/1/2007 4:06:19 PM
Re: Variable from subdomain?? Zac.T
10/1/2007 4:44:59 PM
Re: Variable from subdomain?? kglad
10/1/2007 5:17:03 PM
:



Re: Variable from subdomain?? Zac.T
10/1/2007 6:03:15 PM
Thanks so much! ;-)

Re: Variable from subdomain?? Zac.T
10/1/2007 6:22:32 PM
That doesn't work to single out the subdomain.

it's @ http://zacturner.com/subdomain.html

if you go to blablabla.zacturner.com/subdomain.html , it gives you the full
address, not just the subdomain.
Re: Variable from subdomain?? kglad
10/1/2007 6:44:55 PM
that's what you said you wanted in your first message.

Re: Variable from subdomain?? Zac.T
10/1/2007 7:04:03 PM
It's not though.

I said, if i had http://bill.zacturner.com/subdomain.html (it's a real site,
and it should be working), instead of the variable to be
http://bill.zacturner.com/subdomain.html , I want it to just be Bill. Is that
possible?

Sorry for any misunderstanding.
Re: Variable from subdomain?? kglad
10/1/2007 7:29:42 PM
Re: Variable from subdomain?? Zac.T
10/1/2007 7:35:06 PM
hmm, it doesn't seem to work

http://zacturner.com/subdomain.html

Re: Variable from subdomain?? Zac.T
10/2/2007 4:07:47 PM
Re: Variable from subdomain?? Zac.T
10/2/2007 4:52:47 PM
Thanks KGlad for your help, I am halfway there! ;)

Re: Variable from subdomain?? Zac.T
10/7/2007 9:09:30 PM
Anyone?

Re: Variable from subdomain?? Zac.T
10/8/2007 6:55:16 PM
Hello?

Please?

Anyone?

Sorry about being impatient, but I'm only 11.

Re: Variable from subdomain?? kglad
10/8/2007 7:10:28 PM
Re: Variable from subdomain?? GWD
10/8/2007 7:31:36 PM
typo I think it should be:

yourVAr = this._url.substring(this._url.indexOf("//")+2, this._url.indexOf("."));
Re: Variable from subdomain?? Zac.T
10/8/2007 8:13:56 PM
Thanks!

It works perfectly now!

AddThis Social Bookmark Button