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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INPUT TEXT BOXES NOT WORKING WHEN FTP 3

Status
Not open for further replies.

natedeia

Technical User
May 8, 2001
365
US
I have a prob with my new project of input boxes. It works fine on my computer, I open the swf or use the html file and works great. Then the same file is put on the net and it does not work, meaning the TAB prob i had is fixed but not fixed since i ftp it and does not work. Anyone out there with similar problems???????!
 
Link?
new.gif
 
don't test directly through the ftp nat..i found that certain things will not work while you are in the ftp page still testing from there..log off that page and call the file through it's url in a new browser window..

might work..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
I am actually using geocities to test it for now. Here is the link


Just now I tested it and what happens is that when the swf is recalled by the html then the TABing to each box in the correct order does not work, but if you just open the swf then it works fine. Man I do not understand what is happening, weird. Any suggestions?
 
In my browser (IE6.0) it is tabbing randomly(no logical order)in both swf and in html. Ya' Gotta Love It!
sleepyangelsBW.jpg
 
That is what happens when I ftp it to geocities or open it with the html file. Here is a link to a zip file that contains the swf and html. If the swf is opened it acts fine but when the html recalls the swf then it acts up. Maybe it is just my computer or some freak thing. Can someone try it for me, thanks!

 
The above link is not working properly for me, I have to copy and paste it in the address bar. Maybe my computer is just screwing up!
 
You all seemed to have forgotten some basics!

First that the <tab> key is already used in browsers, to navigate, when, for instance, not using the mouse. Thus a first source of possible conflicts! Notice on your link how a first press of the <tab> key will highlight the address bar in NS or IE! That's probably also, why this works wonderfully in the Flash player, but fails through an html, which is in fact a browser window.

Second problem (can't really verify if it's your case, 'cause you haven't given us access to your .fla), is that if you start off your movie with this, focus is yet not set on the movie and the keyboard will not respond until the movie has been clicked. I can get to set focus on the movie with IE, through javascript, but have failed until now to achieve, the same results with NS. Will work on that!
I further believe that this is even more complicated by the use, in this case, of the onClipEvent action, rather than sticking with the first link ( I liked that anonymous reference to me!), I gave you that used an invisible button instead. Sorry Wang and Bad, the onClipEvent action sometimes just doesn't do it!

Anyways, the easiest way to give focus to the movie and to input fields in this case, is still to use a simple enter or start button, the user has to press to initiate the whole thing. That's what I did here, using that first script I referred you to, and it all works wonderfully well in NS or IE!


Regards,
new.gif
 
OldNewbie... I noticed you used _level0 as opposed to _root in the setFocus actionscript

Code:
Selection.setFocus(&quot;_level0.firstname&quot;);

I changed your code to _root.firstname and it works just as well...

can you give me a brief explanation on this? Ya' Gotta Love It!
sleepyangelsBW.jpg
 
Tulsa... Just copied & pasted the code on Flashkit ( but anyway, since there are no other external movies envolved here, _root and _level0 are basicly the same thing. Every external .swf has it's own _root level, so you can target it from a within loaded movie on another level.
In other words, if from a loaded movie on level 5 of myswf2.swf, which in turn is loaded on level 2 of myswf1.swf, I'm targeting the main timeline of myswf1.swf, I would use _level0, otherwise, if I used _root, I would be targeting the _root level of myswf2.swf. You can thus have sort of &quot;several _root levels&quot; within one movie, but you'll allways have but one _level0.

Is that your vote? Wasn't expecting it from you, if it is, but thanks!

Regards,
new.gif
 
Thanks Old... I was just curious. and yes, I did give you a big pink one for being helpful;-) Ya' Gotta Love It!
sleepyangelsBW.jpg
 
I attempted to do it the other way, which is the way you recommended and some reason did not turn out, have an old copy of and will have to look at it.

Thank you so much, you always come through!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top