TranceAddict Forums

TranceAddict Forums (www.tranceaddict.com/forums)
- Chill Out Room
-- I think I need the help of a flash guru..


Posted by Boomer187 on Feb-03-2005 20:55:

I think I need the help of a flash guru..

SO here I am in my 2nd year of grad school and I need to run an experiment for my masters thesis. well I was gonna have this chick make one up in Authorware, however she is a n00b and I doubt she can get it done anytime soon.


so i was wondering if the few programmers out there can help me out. There are two seperate things I need programmed, each have to be a total of 10 minutes, after that I need it to quit or direct the person somewhere else, like a webpage which id have questions.



Now for one experiment I just need a picture to pop up for a 3 second duration after either 15 seconds or 3 minutes (i figure this can be a variable I assign a value at the beginning of the program or a seperate programs for each time can be made).



For the other one I need a picture to pop up for 3 seconds in duration when the space bar is pressed after either a 15 second or 3 minute duration. If the space bar is not pressed nothing happens, if it is pressed before the time length nothing happens. After the picture is displayed the process starts over and they have to wait either 15 seconds or 3 minutes.



the hardest part I found using other programs is the 10 minute overall time limit. It has to stop no matter where it is at after 10 minutes.



I believe this can be done in flash, which would be cool cause I almost understand a little of it. Plus I can put it on a webpage easily and direct the subjects easily. But i am open to any solutions.






Cliff Notes, I need an experiment programmed, if your not a programmer, you missed out. if you do program and you need cliff notes, get back to work.


Posted by igottaknow on Feb-03-2005 21:40:

You don't need a programmer per say you need a multimedia interactive designer. You'll have a difficult time finding someone who knows Authorware. Look for a Marcomedia Director or Flash developer. You also can look into javascript driven test tools such as Courseware.


Posted by trance85 on Feb-03-2005 21:45:

Yea I'm pretty sure Flash actionscript can get that job done well enough, not sure about the specifics about it though.


Posted by SID133 on Feb-03-2005 21:49:

what class is this for?

for what you want director is your best bet ill look over what you want when i get home again and ill tell you if i can help


i currently going to school for multi media stuff so this is what i do in school


Posted by Boomer187 on Feb-03-2005 21:51:

quote:
Originally posted by SID133
what class is this for?

for what you want director is your best bet ill look over what you want when i get home again and ill tell you if i can help


i currently going to school for multi media stuff so this is what i do in school




Kick ass, its not for a course, it is for my Masters Thesis. I have to run this experiment and then write about it.


Thanks for the replies.


Posted by Leon on Feb-04-2005 01:55:

I'm a Multimedia/Graphic Designer, but I don't like you Boomer kthx nyaaa ;]


Posted by Leon on Feb-04-2005 01:58:

Jokes, what do you need I still don't understand


Posted by tribu on Feb-04-2005 02:01:

Ive got what you need. Give me a second and ill post a global pause function in actionscript, and also a timer. Youll need to use a movie clip and the

onClipEvent(EnterFrame){} command to check every frame for the 10 minute mark.

I recommend running at at least 15 FPS


Posted by tribu on Feb-04-2005 02:10:

GLOBAL PAUSE FUNCTION


_global.gPause = function (sec:Number){
var target:Number;
var time:Number;
time = getTimer();
target = time + (sec * 1000);

do {
time = getTimer();
}while(time < target)
}

[I]You can call this anywhere onbce its been declared with : gPause(10);




ON 10 MINUTES END

onClipEvent (load){
_gloabl.now = getTimer();
_global.target = now + 600000;
}

onClipEvent (EnterFrame){
_global.now=getTimer();

if (now < target){
}
else if (now >= target){
this.gotoAndPlay(LAST.FRAME.NUMBER(OR LABEL).GOES.HERE);
}

}


This one declares global variables when the movie clip is loads on the screen. It then checks to make sure the current time (in milliseconds) is less than the target (startup + 10 minutes) end time. Once the target time is reached or exceeded, The movie clip goes to the last frame, which should have the command:

stop();

This will end the movie.


One thing to note is that if this clip is loaded multiple times, the script will not work. Make sure this movie is only loaded once, and that it is done first.


I blame any errors in my script to extreme exhaustion.


The keyboard thing is a bit harder. Im working with it now.


Posted by tribu on Feb-04-2005 02:20:

ok, this should provide a nice scripting base for your Space Bar requirement:

//this will go in your globals layer,
//or in your first loaded movie clip. Either way, make sure it is only executed once!!

_global.StartTime = getTimer();



//this will go in the main stage's movie clip


on (keyPress "{Space}!!These curly brackets are really Greater than/less than signs that dont show up on these forums!!"){
var CurrentTime:Number = getTimer();
if (CurrentTime < (StartTime + VARIABLE)){
//Variable here refers to
//either 3 mintues or 15 second. Remember, getTimer is based on
//milliseconds, and must be expresssed that way!
}
else{
_root.PICTUREOBJECT._visible = true;
//its past the time limit, it shows the picture thing.
//Probably also helpful here would be a
//this.gotoAndPlay(# or label) which would run through
//a predefined period of time before hiding the picture
}




If you need help further implementing it, telling you wtf i mean, or helping in general, pm me.


Posted by Boomer187 on Feb-04-2005 02:40:

whoa.

thats freakin sweet. I might wait until I am not under the influence of alcohol to try to implement it.

i appreciate the help.


Posted by tribu on Feb-04-2005 02:45:

I just made a few error corrections. Like I said, code may not be fool proof, but should be at least 85% accurate. If you need help with the actual design/implementation, and I have some free time, I will donate to your project in exchange for your help beta testing a flash game i am making this quarter.


Posted by beats and beeps on Feb-04-2005 02:45:

make sure it has robots.

and singing.

and colin mochrie.


Posted by Boomer187 on Feb-04-2005 03:02:

quote:
Originally posted by tribu
I just made a few error corrections. Like I said, code may not be fool proof, but should be at least 85% accurate. If you need help with the actual design/implementation, and I have some free time, I will donate to your project in exchange for your help beta testing a flash game i am making this quarter.



that sounds like a solid deal...i get to play games for a thesis experiment.



Powered by: vBulletin
Copyright © 2000-2021, Jelsoft Enterprises Ltd.