| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Flash Guru Wannabe
Join Date: Mar 2001
Location: Norman, OK
Posts: 12
|
I saw another post about using the LoadVariablesNum in a Flash .exe file to check a connection and setting active to true through a text file. Well I did this and it works but right after I have an if statement that is used to go to a different frame if they don't have an active connection. This is used to display an email button if there connection is active. Preferably I would like it to continue checking and switch between the the two frames.(In case they sign on there connection while the Flash program is running.)
Thanks For Your Help, Jesse |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
How about making an MC which runs through and every 10 seconds or so checks for the Inet connection then.. I don't really get your question...
Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
|
|
#3 |
|
Flash Guru Wannabe
Join Date: Mar 2001
Location: Norman, OK
Posts: 12
|
I am creating a order form that is going to go on a demo cd, if the user has an active internet connection I want to give them the choice of emailing the form to us. If they do not have a connection there only choice will be to print the form out. I want to continousily check for an active connection. If the connection is active the email button will also be active. But if there is no connection the only choice they will have is to print.
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
I see. SO have a looping MC which checks every 10 seconds using LoadVariables. Your email button can be an MC with 2 frames. First frame is a greyed-out version of the button, 2nd is the real button. If at any stage you get an active connection you can send the email-MC to the 2nd frame and they can click it...
Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
#5 |
|
Flash Guru Wannabe
Join Date: Mar 2001
Location: Norman, OK
Posts: 12
|
Thanks - You the Man
Jesse |
|
|
|
|
|
#6 |
|
Flash Guru Wannabe
Join Date: Mar 2001
Location: Norman, OK
Posts: 12
|
How do you do a 10 second pause?
Thanks, Jesse |
|
|
|
|
|
#7 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
Assuming youw ant to begin the first pause when the movie starts:
Int he first frame of your movie set the variable _root.wait to 10 (to wait 10 seconds). Then create an MC and add this code: onClipEvent (enterFrame) { if (_root.delay) { if (Math.floor(getTimer()/1000) == _root.lastTime+1) { _root.delay = false; } } else if (Math.floor(getTimer()/1000) == _root.lastTime+_root.wait) { _root.count = _root.count+1; _root.lastTime = Math.floor(getTimer()/1000); // YOUR ACTIONS TO OCCUR EVERY 10 SECONDS GO HERE _root.delay = true; } } Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| swf to swf Local Connection | inkwell | ActionScript 1.0 (and below) | 13 | 02-14-2009 12:30 AM |
| how to check a network connection status by flash? | LEARNING_FLASH | ActionScript 1.0 (and below) | 2 | 06-01-2005 07:19 PM |
| Basic: SQL Connection | flashrm2 | Server-Side Scripting | 8 | 02-24-2005 06:08 PM |
| MX Suite Requests Connection... | jayouk | Other Flash General Questions | 3 | 04-23-2003 08:41 AM |
| local connection goto frame | srlem | ActionScript 1.0 (and below) | 3 | 03-06-2003 01:17 PM |