Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-10-2004, 09:58 PM   PM User | #1
ACJavascript
Regular Coder

 
Join Date: Jun 2002
Location: FL, USA
Posts: 734
Thanks: 0
Thanked 0 Times in 0 Posts
ACJavascript is on a distinguished road
Angry Flash and PHP help

Hello All,

Okay I am wanting to pull in the total Number of members on our website through flash. (so as I can animate the number)

Now, I can pull the info in but the problem is the script takes about 1-2 seconds to pull the info of the MYSQL database, and by the time it is put into the dynamic text field in flash that animation is half over.

I downloaded a Poll in Flash that worked with PHP and MYsql so that I could see how they did it, but to no avial I cannot get it to FIRST load then display. So could you please help me!!! Anybody!

This is what I have now:

Frame 1 Starts to load the script to get variables (code I use):

loadVariables("flash_getMembers.php","dummy","GET");
stop();

On Frame 1 I have some text saying loading. This text I turn into a Instance named dummy - I then put this code in the instance:

onClipEvent(data){
_root.nextFrame();
}


on Frame 2 I place the text field that should display that data from the script.


Please is there a problem with any of this code, or somthing you can suggest??

Thanks for anyones help!
__________________
CYWebmaster.com - See why we dot com!!
ACJavascripts.com - Cut & Paste Javascripts!
SimplyProgram.com - Personal Blog
ACJavascript is offline   Reply With Quote
Old 02-11-2004, 10:56 PM   PM User | #2
StupidRalph
Senior Coder

 
Join Date: Mar 2003
Location: Atlanta
Posts: 1,037
Thanks: 14
Thanked 30 Times in 28 Posts
StupidRalph is on a distinguished road
What program are you using to create your flash movie? I've seen some pretty good tutorials on:

http://www.swish-db.com

Although they have a lot of SWiSH tutorials there, the scripting should be the same. They also have some help support for .fla files.

Hope this helps..I'll see what I can dig up.
__________________
Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.
StupidRalph is offline   Reply With Quote
Old 02-12-2004, 12:10 AM   PM User | #3
ACJavascript
Regular Coder

 
Join Date: Jun 2002
Location: FL, USA
Posts: 734
Thanks: 0
Thanked 0 Times in 0 Posts
ACJavascript is on a distinguished road
Hey Ralph,

I am using FLash 5.


Thanks I will check that site out!
__________________
CYWebmaster.com - See why we dot com!!
ACJavascripts.com - Cut & Paste Javascripts!
SimplyProgram.com - Personal Blog
ACJavascript is offline   Reply With Quote
Old 02-12-2004, 12:25 AM   PM User | #4
ACJavascript
Regular Coder

 
Join Date: Jun 2002
Location: FL, USA
Posts: 734
Thanks: 0
Thanked 0 Times in 0 Posts
ACJavascript is on a distinguished road
Hey I found the perfect example

check this site out, and you will see them loading the data then they go to it.

http://www.loopkit.com/
__________________
CYWebmaster.com - See why we dot com!!
ACJavascripts.com - Cut & Paste Javascripts!
SimplyProgram.com - Personal Blog
ACJavascript is offline   Reply With Quote
Old 02-13-2004, 04:42 PM   PM User | #5
ACJavascript
Regular Coder

 
Join Date: Jun 2002
Location: FL, USA
Posts: 734
Thanks: 0
Thanked 0 Times in 0 Posts
ACJavascript is on a distinguished road
HEY!

I figured out a script to do it! hehe.

BUT now I am having another problem Please help hehe


How can I take to variables and pase them to two different dynamic fields in flash.

For example my code is(in php):
echo "NB="Members: " . $variable2;
echo "NB2="Members2: " . $variable3;

But in flash it shows this in the field NB:

Members: 135 NB2="Members: " .$variiable3;

How can I get it so that it doesn't do the above.


Any help is appreciated!
__________________
CYWebmaster.com - See why we dot com!!
ACJavascripts.com - Cut & Paste Javascripts!
SimplyProgram.com - Personal Blog
ACJavascript is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:32 PM.


Advertisement
Log in to turn off these ads.