Is There A 'wait' Function In Flash?
I've just created something and realise i haven't left enough time for something to be read. I don't want a "continue" button though, so is there a 'wait' function in flash, so i can tell it to wait for 3 seconds and then go to certain frame?
Thanks.
Ultrashock Forums > Flash > Flash Newbie
Posted on: 2002-07-23
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Wait Function In Flash
Hi.
I have looked for a wait() function in flash, but i can't fint any. The ony thing i can find is setIntervall(), but it's not the same.
Let say i have this pice of code:
Code:
function doSomething() {
for (i=0; i<5; i++) {
gotoAndStop(i)
}
}
This wont work, you can't se whats acualy happens. Then you have to do something like this:
Code:
function doSomething() {
for (i=0; i<5; i++) {
gotoAndStop(i)
wait(10); //wait 10 ms
}
}
This would do it, but theres not such function. The same is if you wanna do a routine that waits for a mc to get to a certin frame, let say frame 60. Then it shuld look something like this:
Code:
function doSomething() {
gotoAndPlay(1)
while (this._currentframe < 60) {
}
return
}
But this does NOT work, it freezes the entire Flash debugger, to much CPU load. Here it would be execelent to use a wait() function like this:
Code:
function doSomething() {
gotoAndPlay(1)
while (this._currentframe < 60) {
wait(1); //Wait 1 ms
}
return
}
Just 1 ms would free LOTS of CPU power to leet the mc continue without freezing everything, and wait until it got to frame 60, then continue. But i havn't found a way to do this, it's quite usefull to have.
Anyone know anything about this?
-- Mike
Flash 4: Wait Or Pause Function?
Hi all.
My current movie is really lagging and slowing down because
i have about 8 looped animations over the top.
I need to know if rather than have each movie play for a
real long time to serve its loop, i could have them just
wait on a frame for a few secs.
could have sworn i saw this somewhere a year or two ago?
Flash 4 only please.
cheers.
www.stayinwonderland.com
Flash 4: Wait Or Pause Function?
Is there a way to get Flash 4 to wait on a frame for a number of
seconds/specified time?
If so could someone explain (i'm not the brightest when it
comes to actionscript)
This would really help guys
thanks
Function That Wait's 5 Seconds And Runs Anothr Function
hy...I want to make a function that waits 5 seconds, after that to run another function that changes the content (changeContent) to the next label
this is all i managed to do...I hope it's wright
function autorun() {
if (button_label = 0) {
changeContent(1);
} else if (button_label = 1) {
changeContent(2);
} else if (button_label = 2 ) {
changeContent(3);
} else if (button_label = 3) {
changeContent(4);
} else if (button_label = 4) {
changeContent(5);
} else if (button_label = 5) {
changeContent(0);
}
}
I need this in AS2.0....
Can someone help me? Thanks!
Wait Function? Or Something
Hello. I've developed a .mp3 player, and would like it to continue to the next song as it plays through the music. Here is a link: audioPlayer.
I need to figure out how to make the timeline wait on one frame a number of seconds before it executes the next script. Any help would be appreciated.
Thank you,
John
Function() { Do This, Wait A Second And Then Do This? };
Does anybody have an idea how I can write this statement to have it do the ' _parent.vocab.play();' wait a second or two and then finish the statement?
reflective.onPress = function() {
_parent.vocab.play();
_parent.vocab.vocab1.vocab_nav.gotoAndStop("reflec tive");
_parent.vocab.vocab1.vocab2.gotoAndStop('reflectiv e');
};
Thanks!
Mike
Wait-function With Actionscritping
When codign actionscripts, I sometimes need a pause before continuing with the script, like a waitstatement or something. But i'm not able to find any?! Is there any support in Flash for a waitstatement? Using FOR loops dosn't do the work, the pause then depends on the speed of the machine, and that isn't relieble.
-- Mike
Wait Inside A Function?
Is there a way to wait inside a functino code until something happens?
Basically I have a function that loads an xml. however, since it takes certain time, my function returns the control even before onLoad is called.
How do I make the function wait for that onload call and proceed to return?
thanks
-Mav
Wait, Then Execute A Function
What I want to happen is to make a function the waits x milliseconds, then runs another function.
Like this:
Code:
function1 = function(x){
//wait x
function2()
}
Intervals ran the function ran the first time without wait the x milliseconds, so that didn't work. Any ideas?
Wait For Function To End To Start Another
okay, having a little problem and im sure its a very simple solution.
basically i have a series of buttons which bring in and out different scenes. well, to transition the scenes in and out im declaring functions which contain all of the tweening for each transition.
that way, in my code, i can just on button press call out the individual functions and keep the code short and clean.
no problem with that. now i want once that function is complete another function to be called and start. i tried using onMotionFinished but cannot get it to start the 2nd function.
Code as i have it :
Code:
_root.Navbar.mainNavBar.navPrint.nav_hittest.onRelease = function() {
arrowmove();
neighborbarsout();
frontpageout();
//
// - need this part to wait till previous one is done before it starts
//
bottlesout();
};
so... as you see when btn is released - it calls out a function to move an arrow and another to move some bars and then another function which transitions out each element on screen. i need to have it wait till that last function is done, before starting the 4th to bring on the new content (bottles).
thanks guys, i know its something stupid and simple, but i just cant get it to work for some reason.
Make A Function Wait...
Hiya,
Im developing a simple top trumps game (nearly done: www.head-spun.co.uk/guildwars/ ).
As you can see from the link above, when you play against the computer, it whizzes through its turns so the human player cant see what is going on. So I was wondering if there is any way of getting a function to wait before carrying out the next instruction...
function myFunction(){
computerTurnOverCard();
waitFor(3);
computerChooseAttribute();
waitFor(3);
completeTurn();
}
kinda thing? I cant think of hw to do it with code. I know I could call for a blank movie Xseconds long to play, then when it stops, call another function, but that way seems messy to me.
Thanks
Abi
Wait For Function To Finish
Hi
There is probably a very simple solution to this, but i just cant think of it!
I have a method that populates an object, after it has finished it will then proceed onto the next method to get stuff on stage.
However, i dont want the 2nd method to start until the 1st has finished.
Is there a way to delay the 2nd method until the 1st has finished?
Would returning a boolean from the first one be the answer?
I would rather not use events if it can be helped.
Thanks
Execute A Function And Wait 1 Second
I have an event that i want to be dispached, run some code and then wait 1 second to get out of the event function.Is it possible to do it with timer and how?The reason i want to do this is because the event runs alot of times and the programs stuck during the execution proccess (a directory file listing is loaded and then for each mp3 in the directory an ID3 event is executed to load the id3 to xml)
Wait Until Function Is Finished...
Hi,
I've been searching the web for the answer to this without luck...
I have a function that is going to call another function (excecuting an animation) and I want the first function to wait with the rest of the function (or start a new function) until the animation is complete.
Is there an easy way to do this?
I know I could probably put the first function into an onEnterFrame = function(){} loop and continually check if a certain parameter is set or not. The animation function simply sets that parameter when finished.
Or when the animation is finished I could call a new function proceeding with my actions...
But is there an easier way?
Perhaps have the first function wait for a value to be returned???
Wait, Then Execute A Function
Basically what I am trying to do is to make a function, wait x milliseconds, then execute another function.
Example:
ActionScript Code:
function1 = function(x){
//wait x
function2()
}
I tried using intervals, but they executed the function right as I set it. Can anyone help?
How To Wait Until A Function Has Finished
Im calling a function but i don't want to continue until it has finished. This is my code.
So i want to wait to enable the menuUp button until fadeInButton function has finished.
Attach Code
menuDown.onPress = function() {
if (!menuUp.enabled) {
fadeInButton(menuUp);
menuUp.enabled = true;
if (firstLook) firstLook = false;
}
}
function fadeInButton(argButton:Button) {
this.onEnterFrame = function():Void {
argButton._alpha += fadeInSpeed;
if (argButton._alpha>=100) {
delete this.onEnterFrame;
argButton._alpha = 100;
}
};
}
Cancelling A Wait Function
I have this wait function applied to a frame:
function wait() {
stop();
var myInterval = setInterval(function () {
play();
clearInterval(myInterval);
}, 26*1000);
}
wait();
and I would like to cancel this wait function, when a button is clicked. This is a skip button that takes you to a frame label, but I need to somehow cancel that wait function or it still takes affect in the movie. Could someone help with the code that needs to be added?
Thanks.
HELP With Wait Function SetInterval
FYI: I am really, really new to action script.
I have a movie clip symbol that is place on my main time line. I want the movie clip to display frames for (x) seconds then go to the next frame. I have a chunk of code that works by itself but when placed into my flash site it is causing some strange problems. Such as navigating to a label (page) prior to the movie clip that has the wait function code, freezes the flash. I am wondering if I need _root or a this in there somewhere.
The reason I want to do this is so I don't have to add a bunch of frames to get the pause time I need.
Is there a way to use the code below and not have it cause problems with the rest of my time line?
Here is the wait function code
stop();
i = 1;
function Wait() {
i++;
if (i == 7) {
gotoAndPlay(1);
} else {
nextFrame();
}
// or whatever script you would like...
// clearInterval(WaitInt); // to use the interval only once
}
WaitInt = setInterval(Wait, 5000);
// change to 5000 for 5 sec..
Here is a link where I downloaded the sample code
http://www.kirupa.com/forum/showthread.php?t=90221
Thanks for any help.
Is There A Wait Function Like SetTimeOut In Javascript
is there a wait function like SetTimeOut in javascript ...
on (release, releaseOutside) {
for (i=0; i<13; i++) {
setProperty ("Snd1.handle", _y, i/12);
// and here i want to wait 500 miliseconds//
}
}
i tried it with a onClipevent in side this on(release) action but that doesn't work ,
What's The Function That You Use To Wait For A Set Amount Of Time?
Searching this board for some keywords I'd think would be helpful, I came across setInterval(), but I can't seem to make it do what I want. Also, I seem to have to put a function as one of its parameters, whereas I simply want to insert a number into it and have it wait that long.
All I want to do is just make my code wait a while, then continue. So, basically, I'm looking for something like delay(3000); to wait 3000 milliseconds.
If you want some context on what I want to do, my Script creates a new movie clip, which scrolls onto the screen, where I want it to wait a few seconds, and then it continues off the screen.
[F8] Wait Until A Function Completes Processing
Hi all,
I’ve got two functions that need to process. I need the second one “nowGoDoSomeMoreStuff” to wait until the first one “goDoABunchOfStuff” is done processing. goDoABunchOfStuff’s processing time can vary from half a second to about 30 seconds so I can’t do a simple timed delay. Anyone know how to do it? Thanks…
Code:
goDoABunchOfStuff();
//I need flash to wait until the first function completes processing
nowGoDoSomeMoreStuff();
function goDoABunchOfStuff()
{
ABunchOfStuff
}
function nowGoDoSomeMoreStuff()
{
SomeMoreStuff
}
Make Function Wait For Variables
Plz help...
I need a function (that is called from a button) to pause in midstream until 2 variables are defined in another timeline. Currently, the function executes fully before the 2 variables get defined. I've tried adapting responses to similar forum questions, but can't get them to work in my project.
Basically, what happens is:
ActionScript Code:
button.on(release) {
_root.functionList();
}
function functionList() {
func1
func2
//func3 requires 2 variables defined on the "movieClip" timeline
func3
}
function func2() {
//do bunch of math to get x;
movieClip.gotoAndStop(x);
}
Make Function Wait For MySQL
I am new at AS3...
I got an example of ASQL from http://asql.mooska.pl/
Now I am trying to create a function that can be called and return the Data from the database.
Problem is the function returns a value before the SQL is loaded.
Can anyone help? Here is the code:
Code:
package src{
import flash.display.Sprite;
import flash.events.*;
import src.mysql_query;
public class logon_main extends Sprite {
private var Data:Array = new Array;
private var my_query:String = new String;
public function logon_main() {
btnSubmit_1.addEventListener(MouseEvent.CLICK, btnSubmitclick);
}
function btnSubmitclick(m:MouseEvent):void {
my_query = ( "SELECT * FROM users u where userName='"+edtName_1.text+"'" );
Data = mysql_query.getData(my_query);
trace(Data[0].passWord);
}
}
}
Code:
package {
import pl.mooska.asql.*;
import pl.mooska.asql.events.*;
public class mysql_query {
public function mysql_query() {
}
public static function getData(my_query:String):Array {
var connector:Asql=new Asql;//creating instance of asql
var Data:Array=new Array;
connector.addEventListener(SQLEvent.CONNECT,handleConnect);
connector.addEventListener(SQLError.SQL_ERROR,handleError);
connector.addEventListener(SQLEvent.SQL_DATA,handleData);
connector.connect("MySQL-Server","User","Password","db_name",3306);//connecting to the server //arguments are host, user, pass, database, and port
function handleConnect(evt:SQLEvent):void {
trace("ASQL is connected");
connector.query(my_query);//The query
}
function handleError(evt:SQLError):void {
trace("Error catched " + evt.text);
}
function handleData(evt:SQLEvent):void {
trace("Final data received");
Data = evt.data;
connector.disconnect();
}
return Data;
}
}
}
AS 3.0 - Need To Let Getter Function Wait Until Variable Def
Ok - I am a bit new to the whole OOP in Actionscript thing. However, I am now writing a Bandwidth detection class. The problem is this:
I have a property (_bandwidthMode) which contains the bandwidth mode that is set from the Bandwidth Detection (which is done in the constructor). I have getter/setter functions for _bandwidthMode (which are called bandwidthMode). However, I want to make the calling class wait to GET the _bandwidthMode value until the value has been set (and is not NULL). The code below was my feeble attempt at that - and I know that is produces two errors.
What I am looking for is a better way to do it.
Code:
public class BandwidthConnection extends Sprite {
import flash.utils.getTimer;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
private var _startDownload:Number;
private var _loader:URLLoader;
private var _bandwidthMode:String;
private var _streaming:Boolean;
public function BandwidthConnection() {
_loader = new URLLoader();
var request:URLRequest = new URLRequest("http://www.mindmillmedia.com/p2.swf?" + (new Date()).getTime());
_loader.load(request);
_loader.addEventListener(Event.OPEN, onStartDownload);
_loader.addEventListener(Event.COMPLETE,onCompleteDownload);
}
private function onStartDownload(event:Event):void {
_startDownload = getTimer();
}
private function onCompleteDownload(event:Event):void {
var totalTime:Number = getTimer() - _startDownload;
var bytes:uint = _loader.bytesTotal;
var seconds:Number = totalTime / 1000;
var kilobits:Number = bytes * 8 / 1000;
var kbps:Number = kilobits / seconds;
if(kbps >= 600) {
_bandwidthMode = "high";
} else if(kbps >= 200 && kbps < 600) {
_bandwidthMode = "medium";
} else if(kbps <= 200) {
_bandwidthMode = "low";
} else {
_bandwidthMode = "undetermined";
}
}
public function get bandwidthMode():String {
if(_bandwidthMode == null) {
addEventListener(Event.ENTER_FRAME, onEnterFrame);
} else {
return _bandwidthMode;
}
}
public function set bandwidthMode(setValue:String):void {
if(setValue == ("high" || "medium" || "low" || "undetermined")) {
_bandwidthMode = setValue;
}
}
private function onEnterFrame(event:Event):void {
bandwidthMode();
}
}
Any ideas?
[F8] I Said Wait Dammit Function Called Prematurely
Heita bafowethu,
Actionscript can be so impatient...
I have the following lines code:
code:
var grantAccess:Boolean = checkAuth (studentCode);
if (grantAccess) {
var save:Boolean = checkChanges ();
exitScreen (save, persDetails);
} else {
customAlert.alert (36);
}
the variables declared basically catch the return from the function.
my function "checkChanges ()" prompt a user interaction but the "exitScreen()" function fires before "checkChanges ()" has returned the user's choice.
How do I make the "exitScreen()" function wait for the user interaction?
Can A Function Stop In The Middle To Wait For An Event?
I want to have my object A request info from object B. Object B will return the info if it has it. If object B doesn't have it, then it will load it from a database and then return it.
So I have a function in object B that performs that logic and has a return value that gets sent if the data is there. I understand the basics of how events work. But, how do I get the function in object B to stop and wait for the load before returning the info? Can a function stop in the middle to wait for an event?
If there is something simple I am missing I would greatly appreciate any help.
Thanks,
B
Wait Until Complete Some Function And Return Result
Hello,
I am new comer in as and flex, My problem is next
:during invoking some function I should get data from server side and
then return result
override flash_proxy function getProperty(name:*):* {
this.remoteObject.source = BOOK_SOURCE;
var callOperation:AbstractOperation =service.getOperation(LOAD_METHOD);
callOperation.addEventListener(ResultEvent.RESULT, resultMethodLoad);
callOperation.send();
return result;
}
private function resultMethodLoad(e:ResultEvent):* {
return (e.result as ArrayCollection);
}
how I can to stop current thread invoking while get information from server and return result of resultMethodLoad
without looping
Thanks
Is It Possible To Create A Wait Function Pausing AS Execution?
What the title says. Sometimes AS just doesn't register when two function calls or loadMovies or whatnot are executed in quick succession. This is my problem right now - I'm calling loadMovie and in the very next code line checking how much has loaded. The flash player doesn't realize so soon that it has in fact been told to load the movie, so it reports getBytesTotal() as nada. It's not a big deal to circumvent this problem so I'm not asking for your help in that respect - I can fix that. However, I would love if I could just tell the AS interpreter to pause 10ms at will. It would just be handy (even though it could prove somewhat unstable in this very scenario).
I tried this code:
ActionScript Code:
function wait(time) {
delayInterval = setInterval(delayFunc, time);
function delayFunc() {
clearInterval(delayInterval);
return;
}
}
but the AS interpreter keeps executing the subsequent code lines while waiting for the interval. Is there a way of "trapping" the interpreter inside a function and making this work?
Any advice would be most welcome
Terpentine
Can I Make A Function Wait For A Period Of Time?
Hey everyone
I just wanted some idea's on how best to tackle this problem in actionscript.
All I want is that when a button is pressed it fades out the current page and then fades in the new page to be displayed. How ever when trying to fade out the current page i doesn't because it goes to the label and starts to play but the next part of the script tells it to go straight to the label to load the new page. Does anyone have a clever way of making it wait till the current page is faded out?
If worse comes to worse can I just make it wait a set period of time before fading in the new page?
Ive attached a bit of the current code and comment it with where the current page is faded out.
Thanks in advance for any help
Gaunt
Attach Code
function homeClick(event:Event):void {
if(prevPage != "home")
{
if(prevPage == "advertising")
{
// Here is where the current page is told to fade out
MovieClip(this.parent).pages_mc.gotoAndPlay("advertisingEnd");
}
else if(prevPage == "websites")
{
// Here is where the current page is told to fade out
MovieClip(this.parent).pages_mc.gotoAndPlay("websitesEnd");
}
MovieClip(this.parent).pages_mc.gotoAndPlay("homeStart");
prevPage = "home";
}
}
Tell A Function To Wait Till MC Reachs Frame 20 To Work
Hi, guys!
I´ve got this button that, once clicked, calls a function that loads an external SWF into a MC called "ani_holder" and tells that MC to play.
I am looking for a way to make the function "wait" till this "ani_holder" reachs frame (let´s say) 20 in its own timeline to get executed...
I´ve tried to do the following, with no success... Created a variable "gone" inside "ani_holder" and gave her a value 0. On "ani_holder" last frame, I´ve set "gone" value to 1.
So, in the function, I´ve added an "If" statement... If gone = 1, execute itself...
Anyway... it didn´t worked... These are the codes:
>>On "ani_holder" timeline:
frame 1
var gone:Number = 0;
frame 20
var gone:Number = 1;
>>In the function
function unReleased() {
delete this.onRelease;
if (ani_holder.gone=1) { //<----------------------------HERE!
for (var i = 0; i<numOfItems; i++) {
var t:MovieClip = home["item"+i];
ani_holder.myLoader.unloadMovie();
cabLoader.loader.unloadMovie();
iconLoader.unloadMovie();
ani_holder.gotoAndPlay(91);
ani_rodape.gotoAndPlay(81);
waves.gotoAndStop(1);
//Aqui é onde manda as bolas ressurgirem
if (t != this._parent) {
var tw:Tween = new Tween(t, "_xscale", Strong.easeOut, 0, t.theScale, 1, true);
var tw2:Tween = new Tween(t, "_yscale", Strong.easeOut, 0, t.theScale, 1, true);
var tw3:Tween = new Tween(t, "_alpha", Strong.easeOut, 0, 100, 1, true);
var tx6:Tween = new Tween(_root.holder.txt_home, "_alpha", Strong.easeOut, t._xscale, 100, 1, true);
} else { //Aqui é onde manda a bola escolhida voltar para o lugar
var tw:Tween = new Tween(t, "_xscale", Strong.easeOut, 20, t.theScale, 1, true);
var tw2:Tween = new Tween(t, "_yscale", Strong.easeOut, 20, t.theScale, 1, true);
var tw3:Tween = new Tween(t, "_x", Strong.easeOut, t._x, t.xPos, 1, true);
var tw4:Tween = new Tween(t, "_y", Strong.easeOut, t._y, t.yPos, 1, true);
var tw5X:Tween = new Tween(t, "_alpha", Strong.easeOut, 0, 100, 1, true);
tw.onMotionStopped = function() {
for (var i = 0; i<numOfItems; i++) {
var t:MovieClip = home["item"+i];
t.icon.onRollOver = Delegate.create(t.icon, over);
t.icon.onRollOut = Delegate.create(t.icon, out);
t.icon.onRelease = Delegate.create(t.icon, released);
t.onEnterFrame = mover;
}
};
}
}
}
}
Any help will be really appreciated.
Thanks in advance!
Wait Script Or Wait On This Frame Required
hey,
i want my movie clip to stop and wait on a definied frame for a definied amount of seconds...
(...without adding the right number of "empty" frames after the key-frame...)
how can i script an easy funktion() to make my movie-clip wait for some seconds on a key-frame??
can somebody help me on this???
thanks
Getting Flash To Wait For A Key Input
I'm trying to write an actionscript that will allow my swf movie to ask the user a multiple choice question and then accept a key input (a, b, or c) and then figure out if they picked the right answer. i've stored my questions in the array questionArray, and output the questions to some dynamic text boxes.
**the next step is to have my main loop wait for a user inputed key and then store that key to a var.**
i've tried several ways to do this with a do while loop and just a while loop, but they all crash flash. gah! i'm not sure if this is even the right way to approach the problem. anybody know what i should be doing differently?
this script is all stored in the first keyframe of my movie,
ultimatly this key will be compared to an array of answers, a score will be updated and the main loop will start again with the next question in questionArray.
questionArray = [
"what is this?",
"a: asdf",
"b: gbad",
"c: bsas",
"what is that?",
"a: lkbja",
"b: bha",
"c: bda"
];
for(i=0; i*4<questionArray.length; i++) {
j = i*4;
question = questionArray[j];
answerA = questionArray[j+1];
answerB = questionArray[j+2];
answerC = questionArray[j+3];
do {
keydown = true
if (Key.isDown(65)) {
keydown = false;
}
} while( keydown );
}
How Do I Make Flash Wait
I am creating a navigation bar which scrolls down, when you press a sub level link the movie scrolls back up again and then goes to the url. Well, that is the theory anyway. At the moment the page jumps staight to the url before the menu closes. Is there any way to make flash wait until the movie finishes playing before reloading the page?
Making Flash Wait
Is there a way to attatch a script to a button so that it starts, pauses for a second or two, then resumes? without having to put another script at the end (as I am sending all the buttons to frame 50 and then they go to the respective links)
for example:
on (release) {
gotoAndPlay (50);
//I want it to pause before moving to the next line, giving the animation time to play
getURL ("/index.html", "_self");
}
Make Flash Wait
hello,
i need to crate a slideshow that loads jpgs dynamically from a certain location.
I found something on http://www.macromedia.com/support/fl...slideshow_xml/
Does anyone know how I could add a fade transition effect to this and an autoadvance button that cycles through the slides in 4second intervals...? I have some basic experience in flash but when it comes to higher action script it easily frustrates me
I don´t know how to make flash wait simple 4 seconds...arrrgh...
I tried so many different things but I just can´t figure out how to make flash wait for 4 seconds and my transition effect looks weird because the image pops up for a moment and then starts fading in.#
Thanks for any help...
Aloha from hawaii
Attila
Do I Wait For Next Version Or Use Flash 8?
I everybody,
I have a quite simple question about flash 8.
Is this version of flash a temporary version. By that, i mean, is this a transition version between old flash and new flash ?
If i start learning flash 8 with it's new class and method of doings things
like the flash.geom.ColorTransform and others, willl i loose my time because next version of flash, with version 3 of actionscript, will be totally different ?
Is next version of flash (9), with as3, will be the continuity of flash 8 ?
I have read about AS3 supporting regular expression. Since regular expression will render obsolete alot of string, search, data manipulation method, is it usefull to develop class or components using current actionscript ?
And because of the regexp, will internal structure of class/functions/methods/property will be changed from flash 8 and minor version ?
I just want to hear what you think about it.
I am wondering myself about taking time to use this version.
thx
Wait For Flash To Finish?
Hi All,
I'm developing a page where I have a lot of interaction with JavaScript.
I seem to have a problem that my Flash movie only seems to update when I go and put some JavaScript alert() popups in my code.
Is there a way to tell if Flash has finished processing a request? Or does anyone have any ideas? Thx
Getting Flash To Wait A Set Number Of Seconds
does anybody know how to make flash wait a set number of seconds, without using the timeline?
i'm pretty sure in javascript you can tell it something like:
wait(3000);
but how do you do this is flash? i haven't been able to find anything like the wait command... do you have to use getTimer()?
i am using flash 5.
any help is greatly appreciated. thanks in advance.
-jlatg
How Do I Make Flash Wait Until A .jpg Is Loaded
I'm loading in dynamic .jpgs and I want to get the width of one after it is loaded. The only problem is I have to click my button twice and load the pic twice for flash to recognize the width. The first time my trace returns zero. I know i need to setup some kind of function to check that it is loaded and then get the width, but I'm not sure how to check if something is loaded.
[F8] Flash Won't Wait For PHP To Process.. ITS ANNOYING =[
myData = new LoadVars()
myData.load("weather.php")
myData.onLoad = function(success){
if(success){
trace(this.weather);
} else trace("Error loading data")
}
onMouseDown = function(){
trace(myData.weather);
}
/////// PHP //////////
Php reads Weather.com using file_get_contents, parses it out, then echos
"weather=" whatever here it parsed out and then "&"
So eventually , if PHP ran alone, it'd read
weather=[temp]47[/temp][low]32[/low]&
Thats all well and good, but the damn Actionscript doesn't wait for it to parse it out and stuff, it just comes back with an Undefined unless I remove the actual work the PHP is doing which would make it pointless..
this is driving me mad, can anyone help?
Php/ Flash...wait For MySQL Response ?
Hi,
I have made a .swf that sends data to a php file which again retrieve/ validates data in mySQL table ie. username and password.
In case the user is granted access I want the .swf to go to let's say frame 2 otherwise it should be frame3.
How do I send this 'action' to the fla/swf ?
Best regards
.....code accessing tables/ database.......
//see if there's an EXACT match (username/ password)
$num = mysql_num_rows( $result_1 );
if ($num == 1){
print "&mess=you have access.";
// Here I would like to go to frame2 in my fla/swf
} else {
print "&medd=you have no access.";
// Here I would like to go to frame3 in my fla/swf
}
Php/ Flash...wait For MySQL Response ?
Hi,
I have made a .swf that sends data to a php file which again retrieve/ validates data in mySQL table ie. username and password.
In case the user is granted access I want the .swf to go to let's say frame 2 otherwise it should be frame3.
How do I send this 'action' to the fla/swf ?
Best regards
.....code accessing tables/ database.......
//see if there's an EXACT match (username/ password)
$num = mysql_num_rows( $result_1 );
if ($num == 1){
print "&mess=you have access.";
// Here I would like to go to frame2 in my fla/swf
} else {
print "&medd=you have no access.";
// Here I would like to go to frame3 in my fla/swf
}
:: Wait On Another Flash Movie To Play ::
Hi there
Ive encountered this problem the other day, im trying to have a little flash anim wait on another flash anim to end to start playing, thing is.. these are different .swf files , and they're located in different frames even..
is there a way to point to a frame withing a different .swf within a different html frame?
thanks a million.. im pretty sure it can be done. I will keep looking anyway.
thanks
oO Matt Oo
How To Make Flash *wait* For Smth ?
hey, there, i've got a problem with flash communicating to outer scripts
i use the PHPObject http://ghostwire.com/go/28
and it's all good, but if for some reason the code in the php scripts is too slow to execute, the flash doesn't receive what it needs and it all ****s up..
so, i'm raising flags and if it's not ready i make the flash go looping.. but actually it's not so bright idea, because the calling to the method starts again etc..
so, may be there is a way to tell the flash 'stay here intil this and that happens?
any suggestions are welcome...
cheers
|