Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Server-Side Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-20-2001, 09:43 PM   #1
Roadkill
Flash Guru Wannabe
 
Join Date: Mar 2001
Location: Norman, OK
Posts: 12
Exclamation

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
Roadkill is offline   Reply With Quote
Old 03-21-2001, 08:28 AM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

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.
Jesse is offline   Reply With Quote
Old 03-21-2001, 02:48 PM   #3
Roadkill
Flash Guru Wannabe
 
Join Date: Mar 2001
Location: Norman, OK
Posts: 12
Default

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.
Roadkill is offline   Reply With Quote
Old 03-22-2001, 01:04 AM   #4
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

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.
Jesse is offline   Reply With Quote
Old 03-22-2001, 05:31 AM   #5
Roadkill
Flash Guru Wannabe
 
Join Date: Mar 2001
Location: Norman, OK
Posts: 12
Default

Thanks - You the Man

Jesse
Roadkill is offline   Reply With Quote
Old 03-22-2001, 04:03 PM   #6
Roadkill
Flash Guru Wannabe
 
Join Date: Mar 2001
Location: Norman, OK
Posts: 12
Default

How do you do a 10 second pause?

Thanks,
Jesse
Roadkill is offline   Reply With Quote
Old 03-22-2001, 11:51 PM   #7
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

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.
Jesse is offline   Reply With Quote
Reply


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

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

Forum Jump

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


All times are GMT. The time now is 02:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.