so if the store number is wrong it should go through the ASP page right?
It doesn’t matter whether the store number is correct or incorrect… You HAVE TO send that data to ASP so that ASP can check if it is valid or not…
i can make probably a dynamic text box i dunno how to hide unhide things,
You will have to create a movieclip first and then put the text box within it if you were to create your own message box and change the _visible property of it to hide/unhide it…
flash componets 2? are avaiable at macromedia right?
Yes… It should be in the Macromedia Exchange…
i haven’t done any updates yet.
If you haven’t done any, check out the document updater from the Macromedia web site, which will update your Flash help file too… I don’t have the URL with me so you will have to search the Macromedia site with that term…
if (store.text == null) { blah blah }
where u have blah bha is there a way to make a javascript?
so it says Put new number in
…if Null loadvar(javascript) ?
this isn’t for the form validation… this is if they forget to put a value in the store thing u thin it’s possible…
Um… JavaScript to do what??? You can only call JavaScript functions from the Flash via getURL() function…
Yeh what i meant was
Instead of saying " Sorry U forgot a store number "
if ( store.text= null){ getURL( javascript. blah blah)
Oh… If you are talking about JavaScript’s alert() function, you don’t have to use that… You need to use message box instaed…(The one you create or the component one…)
The script will be something like this…
if (store.text == null)
{
yourMessageBoxInstance._visible = true;
)
Please don’t make me answer all your questions… This stuff has been brought up many times… Please do some searching…
anyway thanks for the help
Ijsut did a basic movie clip dynamic box withthe server return a true or fasle answer,
thanks for the help
John
goodnight
No problem… Good night…
yourMessageBoxInstance
when u have that
i put what i ever named my box right?
Yes… with the proper path of course…
hey before i go
i am trying this out, so ican get a pop in IE>
fscommand(“call_alert”, “Please enter store number”);
where do u think in my script i would put this command
?
cause honestly I got no freaking clue sorry
i was going to put it here
Send.onRelease = function() {
if (store.text != “”)
//right here
myLVs = new LoadVars();
myLVs.store = store.text;
but i get errors through out the script…?
Um… I don’t think you have read what I said right…
You won’t be able to know if the store number is correct or not UNTIL you get the feedback from the PHP script…
So, that code should go into the onLoad handler of the myLVs object and you have to use sendAndLoad() function to get the value back…
Oh… You are not supposed to use fscommand to call a function… Why fscommand???
oh no hehe i think u read what i wrote wrong this is a differnt this not this…“You won’t be able to know if the store number is correct or not UNTIL you get the feedback from the PHP script…”
what i am trying to do is, ehhe, let’s say a person forgets to put a store Number, the form doesn’t 'send, But a little Reminder pop up to fill the Store Number
like u know how u go to some email forms, and If u press enter but if u forget ur email address or phone number
it says Please enter Phone number
Yeah… I think I will neeed to get some sleep after all… It’s past 5am here…
*Originally posted by lastdon *
**else
{
trace(“Store number is missing…”);
}
what does this do if u dont mind my asking?**
Remeber this post??? This is where you should put the code into… else code block…
Instead of saying ‘Store number is missing…’ into the output window, you will need to use some sort of message box movieclip or component…
last night all the talk, and i forgot to ask u the important question i guess i should be staying up pass 5 anymore.
[AS]on (release) {
myLVs = new LoadVars();
myLVs.load(“lrm.asp”);
myLVs.onLoad = function(success) {
other.text = myLVs.other;
[/AS]
this is part of the actionscript u helped me with.
for the Retrieve portion…
what i wanted to do though is, with the Store Field it’s an input box
i want the teacher to type in number 7855 and hit retrieve and load all her info just for store number…
I know i have to use this.
sendAndLoad(“whatever.asp”,___________,“POST”);
but how do i make it send the store ?
do i haveto call it a variable?
or something?
cause i was reading one thing online and got confuseded
help again
please probably the last time hehe
Yes… You will have to define it before you send the LoadVars() object…
whateverLVs.storeID = store.text;
whateverLVs.sendAndLoad("whatever.asp", whateverLVs, "POST");
This will send the variables including whateverLVs.storeID that are defined previously to the ASP script and get the result back from ASP script to this whateverLVs object…
hey man questoion…
[AS]on (release)
{
myLVs = new LoadVars();
myLVs.load(“lrm.asp”);
myLVs.onLoad = function(success)
{
other.text = myLVs.other
details.text = myLVs.details [/AS]
so do i take out the myLVs.Load(“lrm.asp”)??
or what?
Leave it as it is if you do not want to get the value from the ASP page… Exchange it if you do need to get the value from the ASP page…
[AS]on (release)
{
myLVs = new LoadVars();
myLVs.load(“lrm.asp”);
whateverLVs.storeID = store.text;
whateverLVs.sendAndLoad(“whatever.asp”, whateverLVs, “POST”);
myLVs.onLoad = function(success)
{
other.text = myLVs.other
details.text = myLVs.details
[/AS]
well this is what will happen, I need to be able to type in store example 7855, then this will go through an ASP page to check ACCESS database if the value exist it will load the check marks etc?
will this work??
Nope…
First of all, you have used two LoadVar() object’s instances in your code… I am not saying that you cannot use two at the same time, but in your case, you do not need two…
Also, you cannot have load() function and sendAndLoad() function at the same time… You SHOULD only have one…
on (release)
{
myLVs = new LoadVars();
myLVs.storeID = store.text;
myLVs.sendAndLoad("whatever.asp", myLVs , "POST");
myLVs.onLoad = function(success)
{
other.text = myLVs.other
details.text = myLVs.details
Something like this might work…