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

Input txt boxes in flash 5 2

Status
Not open for further replies.

Bignewbie

Programmer
Feb 22, 2001
351
PH
To all those who can help me,

I am working with flash 5 and my problem is that i made a form with 5 input text boxes in flash which submits its variables to an ASP file. when i have filled up the form (during run-time)the submit it, then I click BACK the form resets itself to blanks! Any idea on how can i make it reset to its old values? or should i use a file to send variables to the flash object?

Thanks and Hope to hear from u soon!



Bignewbie

ps:

Can anybody tell me what a flashforge is?
 
You should be able to keep this within your move. This may get a bit confusing, but here goes:

>>create a new movie-clip, this will be your control clip. Drag it onto the main stage where your button is and give it instance name "control" or whatever.
>>on your submit button, add actions to send the variables to the "control" mc, put the actions BEFORE the actions for the ASP (ie: use a tell target to tell the mc what the variables are and tell it to PLAY)
>>select "control" to edit it. In the first frame put a Stop action, in the second frame, rename all the variables you sent from teh Submit button, using Setvariable actions.
>>Now in order to allow time for the ASP to do its job, insert a keyframe say 15 or 20 frames down the timeline of your mc.
>>In this frame, setup actions to redirect your newly named variables BACK to your form using tell target and setvariable actions(ie:tell target(../level0) )

This should work, but if it doesn't I reckon your gonna have to fiddle with the ASP.

dave dave@davdesign.co.uk

^^^^^^^^^^^^^^^^
 
Thanks davdesign,

unfortunately, it didn't, i tried that an hour ago. Now i'm trying to figure out how does Flash get a variable from a file? most ppl here are making flash load variables from a txt file, is it possible to make flash load variables from a database? I'm putting all the form values in a database. does it always have to be a txt file?

thanks for your help. Im trying to fiddle with my ASP file a bit but i need to know just how flash gets variables from files.....


hope to hear from u soon!


bignewbie


 
Does your server allow you to use MSaccess databases. If so, you've just hit Gold, I may have exactly what you're looking for.

dave

ps: I've got to restart and re-connect just now cos I'm installing some software, back in a tick! dave@davdesign.co.uk

^^^^^^^^^^^^^^^^
 
hey dav,


just how much gold have i hit?

i have to know asap. I am using MSaccess db and i'm having difficulty. hope u will give me what u r talking about and soon, very soon, 'coz my boss is right behind me now and from the look of his face i know he wants immdeiate results.


thanks for your help so far, though i'll be monitoring this thread just to get what u mean as fast as i can!


hope to hear from u very very very soon!


thanks
biggie
 
My server sent me out a lovely package with lots of great software. One of them was a full copy of NetObjects Fusion5, which since I've only ever used trials of, I thought I would try out. Mr Dreamweaver got jealous and decided to pack in my computer! I Thought I'd lost everything there.

Oh, the Gold? Dang! If I hadn't crashed out I would have been able to tell you earlier that I was only joking! I'm in that kind of mood tonight! Sorry..........

Would I do that kind of thing.....



Your welcome
dave
 
And by the link to the bottom left I mean the one UNDER my e-mail address (doh!)

Oh and Bignewbie, if you find any glitches let me know, it's been sitting redundant for a couple of months but I just did a quick test and it seemed to work.

Adios amigo dave@davdesign.co.uk

^^^^^^^^^^^^^^^^
 
thanks dave,


one more question if u dont mind!



what is flashforge and what's it for? (i mean what does it do?)



thanks a whole lot.
I will inform you if i did succeed!



bignewbie
 

B-)
test.gif

"Dancin' for stars!"
 
FLASHFORGE>>>

Converts your published swf into a screensaver, well it converts it into an exe which when activated, automatically add tehs sxreensaver to your computer.

Copies available all over the net (and if your into cracks you'll easily find one of those too!)

DATABASE>>>

Forgot to mention one vital piece of information regarding the asp file and database file. If you open the asp file in a text editor youll see the reference to the database in teh second line (I think, I'm typing from bed just now so I cant see the monitor to check). Anyway look for where it says db/database.mdb. This is the target location of the database on my server. (ie: my server only allows databases to be held in a directory called "db" adn the html/swf/asp files are located in teh root directory. So depending where you place you files make sure you target the database correctly at this point in the asp file.

OK, you're ready to go now.

As you'll know, if you want to add more fields you just have to add the extra text-fileds in the movie, copy and alter the scripting in teh asp, and make sure you have updated the variables on all buttons and fields. (just put this note in for anyone else whos interested).

OK mate good luck with it and I'll come back and see how you've got on when I wake up (only got to bed just now. 6am, Fusion hell --computer almost dead!)

dave dave@davdesign.co.uk

^^^^^^^^^^^^^^^^
 
i think this is the end of this thread!

thanks for all the help:

old, your link was effective, subtle yet effective.

dav, thanks a lot for the db im working on it right now. hope u get a good nights rest.


i'll be in touch with the both of u ya hear?


thanks


biggie

ps:

may i know which timezones both u guys r on?

 
just a note for those who wonder: The top of the two links obviously doesn't show as a link because of the URL, so just copy and paste this into your address bar to view my sample of the file. And it ain't a typo, it does say www15.brin... just incase you were wondering.


Now I'm going to sleep, so goodnight to you all)

dave dave@davdesign.co.uk

^^^^^^^^^^^^^^^^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top