Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 11th, 2003, 10:18 AM
Anousha Anousha is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 Anousha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
html/flash layering problem!!!

I am relatively new to web design/programming. I have created a flash movie file that serves as homepage to a site (the remainder of which is written in visual basic) and I am having great difficulty with the login segment. This part (username/password) is checked using an .asp file, and then redirects user to the relevant part of the site (not written in flash). I couldn't figure out how to incorporate this into actionscript, so it was suggested that instead I incorporate the flash home page movie file into an already written html code that contains the working simple login (only textboxes and enter button). Yet my problem remains layering the movie file and the html login. I need help placing the html login over the movie file- I have tried <LAYER> and <DIV> but these don't seem to work. Thanx!

Reply With Quote
  #2  
Old August 11th, 2003, 02:27 PM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 592 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 1 h 55 m 17 sec
Reputation Power: 17
there's no reason you can't do the login with flash - it will be easier and more reliable than combining flash with dhtml layers, which is not well supported across platforms/browsers....

create two input text fields - if you're not sure how to do this, click on the text tool in the tools bar then select text type to be input text in the properties inspector. Use the properties inspector to name one of them username_txt and the other password_txt. While you have password_txt selected, change line type to *password* (the drop down box that begins with "Single Line") - that will mean that the user input is hidden with asterisks.

then you need to make a submit button of some kind - do that the way you would normally make a button and name it submit_btn. The put this code on the main timeline:

Code:
submit_btn.onRelease = function() {
var my_lv = new LoadVars();
my_lv.username = username_txt.text;
my_lv.password = password_txt.text;
my_lv.send("login.asp","_self");
}

which will be the equivalent of sending an html form to the script login.asp. You can add a bit of validation to the form by making it check whether the form has been filled in:
Code:
submit_btn.onRelease = function() {
var u = username_txt.text;
var p = password_txt.text;
if(u.length > 0 && p.length > 0) {
var my_lv = new LoadVars();
my_lv.username = u;
my_lv.password = p;
my_lv.send("login.asp","_self");
}
}

Reply With Quote
  #3  
Old August 14th, 2003, 11:15 AM
Anousha Anousha is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 Anousha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thank you, i tried this but when i test the flash movie the username textbox has _level0.user written in it and the password textbox has ********* in it, what could be the cause of this? I checked the syntx and it contained no errors.....please help

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > html/flash layering problem!!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway