Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable/getURL help 1

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
I want a client to be taken to their protected area when they enter their username on my site. I am getting some wacky results.

This produces: 1.#QNAN
Code:
on (release, keyPress &quot;<Enter>&quot;) {
    user = userName;
    trace (&quot;[URL unfurl="true"]http://www.domain.com/protected/&quot;+&quot;user&quot;);[/URL]
}

This produces: 0
Code:
on (release, keyPress &quot;<Enter>&quot;) {
    user = userName;
    trace (&quot;[URL unfurl="true"]http://www.domain.com/protected/&quot;+user);[/URL]
}

The field is properly defined and referenced. I have tried a bunch of ways, but it seems to me that this second example should work.

Maybe not?
 
I tried that right after I posted and it works now. I should have posted a follow.

Thanks for your help.

frozenpeas
 
Sorry but add is deprecated in Flash 5.

You can use + to concatenate strings.

Try this (if you feel like it)

on (release, keyPress &quot;<Enter>&quot;) {
user = userName;
trace (&quot; _level0/:user);
}

It should work...

Hope it'll help ;-)
Have Fun...

Sharky99 >:):O>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top