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 March 20th, 2003, 04:16 PM
lastdon lastdon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 4 lastdon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Help Please Question about Flash Sending and Loading..

hey i just have a question i am pretty new to flash
but i have figured a few things out.

I have retrieve button on my form, which recalls information entered. what i want to do is
when a person enters examppe 7855 it pulls up there information..

so far i have this. to demonstrate abit of my code
PHP Code:
//actionscript not php..

on (release)
{
    
myLVs = new LoadVars();
    
myLVs.load("lrm.asp");
    
myLVs.onLoad = function(success)
    {
        
other.text myLVs.other
        details
.text myLVs.details 


this only loads my data from the database,
So i have the Input box called "store" with MyLVs

do i have to use the sendAndLoad ? to send the number and then get a responce from the server?..

and if so where would i have to place it in my script and what would i change?

thanks if someone coupld help me please.

Reply With Quote
  #2  
Old March 20th, 2003, 08:43 PM
JCMerlin JCMerlin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 126 JCMerlin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 14 m 29 sec
Reputation Power: 6
Well, if its asp we are dealing with im not gonna be able to help you on that part.... the flash part is pretty simple though....
if you are using the value "7855" in your php or asp script, you DO need to sendAndLoad. for example...

Code:
scriptURL = "http://www.me@myhost.com/script.php";
myLVs = new loadVars();
// query is the variable name we will use in the php or asp script. 

myLVs.query = inputText.text;
myLVs.sendAndLoad(scriptURL, this, "POST");
myLVs.onLoad = function(){
       // we will say that the php or asp script sent back a variable named response and we are going to display it in a text field named responseText;

responseText.text = myLVs.response;

}


No matter what scripting language it is you are using, make sure that all responses to flash are structured like this....

PHP Code:
// echo is the way to send info back to the users browser in php... use the according method in other languages.... 
echo "&response=$variable"



Hope this could be of help to you. If you have any questions, feel free to ask.

Reply With Quote
  #3  
Old March 20th, 2003, 09:14 PM
lastdon lastdon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 4 lastdon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
so basically the response.Text

will be written back in the dynamic box right?


is there a way that i can make PHP or ASP

make a javascript pop up?


maybe?

Reply With Quote
  #4  
Old March 20th, 2003, 10:02 PM
JCMerlin JCMerlin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 126 JCMerlin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 14 m 29 sec
Reputation Power: 6
If php sends
PHP Code:
echo "&response=$text"


then flash's loadVars object that called the php script will recive the variable "response" with a value of "$text". To access this variable....

Code:
trace(myVars.response);


will print out the value of response.

Reply With Quote
  #5  
Old March 23rd, 2003, 04:56 AM
lastdon lastdon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 4 lastdon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
in my form i have a whole bunch of radio buttons
here are two

radioGroup.setValue(myLVs.radioGroup);
radioGroup1.setValue(myLVs.radioGroup1);

but thisis my problems becase it's tied to an asp page and access file mdb

access send asp a TRUE or FALSE value

how can i make my radio buttons recongnize this? under flash mx.
?
i dont know how to do if statements for radiogroups either can someone show me?
does it matter what the component names are for the radio buttons
? please help

Reply With Quote
  #6  
Old March 25th, 2003, 05:21 PM
bret bret is offline
flash junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: CO, USA
Posts: 172 bret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 38 sec
Reputation Power: 6
Send a message via Yahoo to bret
all you'd need to do is reference the instance name of the radioGroup or radioButton and set the setState method to set the checked value. the if statement is exactly the same as any other if statement

cheers,

bret

Reply With Quote
  #7  
Old March 25th, 2003, 05:41 PM
lastdon lastdon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 4 lastdon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
does anyone
know how to make when u press the TAB button work properly?

it jumps all over the place!!

Reply With Quote
  #8  
Old March 25th, 2003, 06:21 PM
bret bret is offline
flash junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: CO, USA
Posts: 172 bret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 38 sec
Reputation Power: 6
Send a message via Yahoo to bret
you can set the tabOrder of any MovieClip or button. i believe it's

object.tabIndex = num;

where num is any real number. You'll need to speicify for every tabable item.

cheers,

bret

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Help Please Question about Flash Sending and Loading..


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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