Testing LoadVars
When im loading variables from a database using PHP and loadVars, In order to test if its loading them properly I have to test my swf in a web browser. Is there any way around this so i could just use the normal ctrl+enter???
Adobe > Flash General Discussion
Posted on: 03/15/2007 08:54:35 AM
View Complete Forum Thread with Replies
Sponsored Links:
LoadVars() Works When Testing, But Not On Server
when a button in the menu is pressed, a scripted animation happens (curtains closing), i do a loadVars() on an html page, the page is loaded, and the html is put into a text box, and then the curtains open. this works great when testing in flash, and when double-clicking on the html page that contains the flash on my computer. but when i upload it to my testing server (and i've tried several other servers as well), the curtains close but they don't open (so it's not getting loaded)
this is the script:
Code:
onClipEvent( load )
{
myPage = new LoadVars();
myPage.onLoad = function( success )
{
openCurtains();
_root.mcMain.section.content.attachMovie( "_" + whatToLoad, "block", 66 );
_root.mcMain.section.content.block.block1.html = true;
_root.mcMain.section.content.block.block1.htmlText = this.myPageHtml;
_root.mcMain.section.content.block.block1.autoSize = "left";
_root.mcMain.section.refreshScrollBar();
}
setToLoad = false;
whatToLoad = "";
function openCurtains()
{
targetLeftX = openedLeftX;
targetRightX = openedRightX;
}
function closeCurtains( section )
{
whatToLoad = section;
setToLoad = true;
targetLeftX = closedLeftX;
targetRightX = closedRightX;
}
baseRate = 3;
closedLeftX = 0;
openedLeftX = -250;
closedRightX = 430;
openedRightX = 772;
closeCurtains( "Home" );
}
onClipEvent( enterFrame )
{
this.curLeft._x += ( targetLeftX - this.curLeft._x ) / baseRate;
this.curRight._x += ( targetRightX - this.curRight._x) / baseRate;
if( ( this.curLeft._x == closedLeftX ) && ( setToLoad ) )
{
myPage.load( "pages/" + whatToLoad + ".html" );
setToLoad = false;
}
}
so when a button is pushed, it calls _root.mcMain.curtains.closeCurtains().
anyone know why this would happen?
View Replies !
View Related
Preloading Loadvars + Code That Uses The Loadvars
Hey everyone
I can't find out how to do this.
I have a main file with a menu. When a menu button is pressed, and external SWF with the corresponding page is loaded into a container in the main movie. I use the MovieCliploader for this
In all my external files, I have a loadVars that gets XML-output from a PHP-file. In the onLoad handler, I have a buildPage() function that takes the variables and e.g. builds a news page and so on.
My question is how I make a preloader that preloads the loadVars + all the code inside my buildPage function? I mean - on big preloader for it all?
I guess it cannot be done with my moviecliploader inside my main movie?
thanx - Rune
View Replies !
View Related
Help LoadVars.send Vs. LoadVars.sendAndLoad
OK, my understanding is that if example 1 works so too should example 2:
Example 1:var my_lv:LoadVars = new LoadVars();
my_lv.overall_score = _root.overall_score;
my_lv.send("score.php", _blank, "GET");
Example 2:var my_lv:LoadVars = new LoadVars();
my_lv.overall_score = _root.overall_score;
my_lv.sendAndLoad("score.php", result_lv, "GET");
My understanding is however clearly wrong as example 1 will pass the variable quite happily to my php script which will update appropriately. In example 2, nothing. Nada. Variables aren't availabe to php and (therefore unsurprisingly) my_lv.onload isn't picking up any return.
Where am I going wrong this time?!
Cheers,
Andrew
View Replies !
View Related
[AS1][loadVars] Scope Trouble With LoadVars
Hi everybody,
I'm new on this server !
Is there a way to attach a file to my thread ?
You would find enclosed a ".zip" file in wich there's a ".fla" file, a ".txt" file and 6 ".jpg" images.
Frame 1 of the FLA only has a "Preload" class/constructor found on another site and works well.
Frame 2 launches the graphic interface construction.
The file "externalVar.txt" has one variable "maxVin" with a value of 6.
I would like to know WHY i can't acces this variable from outside of the loadVars object's scope (i would better say from outside of its ".onLoad" methode scope).
In fact, when i trace my variable "maxVinNum" from outside of this function, flash player return "undefined". Even if i declare "maxVinNum" on the _root (_root.maxVinNum).
For information, at the start of frame 2, i have let an instruction in comment :
//var maxVinNum = 6;
When we activate this instruction, then the variable is directely declared and everything works well. This test allow us to verify that scripts are not bugged.
Here is the script of frame 2, some of you may understand quickly what's wrong :
//var maxVinNum = 6;
var vignetteVars = new LoadVars();
vignetteVars.onLoad = function(ok) {
if (ok) {
trace(this.loaded);
maxVinNum = this.maxVin;
trace("maxVinNum = " + maxVinNum);
}
};
vignetteVars.load("externalVar.txt");
//
function buildArray (arrayLength) {
FileArray = new Array();
for (var i=0; i<maxVinNum; i++){
FileArray.push ("v_"+(i+1)+".jpg");
}
trace("FileArray : " + FileArray);
};
//
function buildSlide(){
vinKern = 1;
preloadSlide = new Preloader(load_indicator);
for (var i=0;i<FileArray.length;i++){
//Construction du slide
slide.vignette.duplicateMovieClip("vignette"+i,i);
slide["vignette"+i]._x += i*(slide.vignette._width + vinKern);
// ajoute à la file du preloader
preloadSlide.insert(FileArray[i], this.slide["vignette"+i].conteneur, i,"","","okload");
}
slide.vignette._visible=0;
};
buildArray(maxVinNum);
buildSlide()
stop();
I hope my english is not too bad, and my explaination not too long and understable.
thanks a lot for your help !
View Replies !
View Related
LoadVars.send VS LoadVars.sendAndLoad
Last edited by gkcohen : 2004-04-23 at 09:19.
can someone tell me what the difference is with these two. here is my problem. i am trying to submit some info to php script. i have my variables in text file.
if if loadVars.load("textFile.txt");
and then say loadVars.send(url, "_blank", "post") then it will work. but i dont want to load the resulting php page outside of flash. if instead i do loadVards.sendAndLoad(url, dataReceiver, "post") then it will not work. my dataReceiver will return blank, or i will get an error that the variables were not sent.
i guess that you cant loadVar from a text file and then use it with sendAndLoad, is that right?
the reason for using the text file is the real problem. the php script requires a variable 'group_ids[]' with an integer for a value. apparently, flash cant read the variable with the '[]' in it. i have tried different ways to get it formatted, but it wont work. i tried do something like loadVars.group_ids + "[]" = 1 but i get message stating the the object to the left of the operand must be a variable.
my only fix was to use a text file to load this variable. it works, but only when using the send and having a php srcipt popup.
i am not too familiar with php to modify the scipt, and i think that variable needs to be an array.
i dont know what else to do. HELP
gkc
View Replies !
View Related
[AS1][loadVars] Scope Trouble With LoadVars
Hi everybody,
I'm new on this server !
Is there a way to attach a file to my thread ?
You would find enclosed a ".zip" file in wich there's a ".fla" file, a ".txt" file and 6 ".jpg" images.
Frame 1 of the FLA only has a "Preload" class/constructor found on another site and works well.
Frame 2 launches the graphic interface construction.
The file "externalVar.txt" has one variable "maxVin" with a value of 6.
I would like to know WHY i can't acces this variable from outside of the loadVars object's scope (i would better say from outside of its ".onLoad" methode scope).
In fact, when i trace my variable "maxVinNum" from outside of this function, flash player return "undefined". Even if i declare "maxVinNum" on the _root (_root.maxVinNum).
For information, at the start of frame 2, i have let an instruction in comment :
//var maxVinNum = 6;
When we activate this instruction, then the variable is directely declared and everything works well. This test allow us to verify that scripts are not bugged.
Here is the script of frame 2, some of you may understand quickly what's wrong :
//var maxVinNum = 6;
var vignetteVars = new LoadVars();
vignetteVars.onLoad = function(ok) {
if (ok) {
trace(this.loaded);
maxVinNum = this.maxVin;
trace("maxVinNum = " + maxVinNum);
}
};
vignetteVars.load("externalVar.txt");
//
function buildArray (arrayLength) {
FileArray = new Array();
for (var i=0; i<maxVinNum; i++){
FileArray.push ("v_"+(i+1)+".jpg");
}
trace("FileArray : " + FileArray);
};
//
function buildSlide(){
vinKern = 1;
preloadSlide = new Preloader(load_indicator);
for (var i=0;i<FileArray.length;i++){
//Construction du slide
slide.vignette.duplicateMovieClip("vignette"+i,i);
slide["vignette"+i]._x += i*(slide.vignette._width + vinKern);
// ajoute à la file du preloader
preloadSlide.insert(FileArray[i], this.slide["vignette"+i].conteneur, i,"","","okload");
}
slide.vignette._visible=0;
};
buildArray(maxVinNum);
buildSlide()
stop();
I hope my english is not too bad, and my explaination not too long and understandable.
thanks a lot for your help !
View Replies !
View Related
Testing
<b> This is srikanth </b>
<i><b>Welcome to my Question </b></i>
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID=webserver1 WIDTH=300 HEIGHT=40> <PARAM NAME=movie VALUE="http://www.indian-music.com/greeting/welcome.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE="#FFFFFF"> <EMBED src="http://www.indian-music.com/greeting/welcome.swf" quality=high bgcolor="#FFFFFF" WIDTH=300 HEIGHT=40 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> </OBJECT>
View Replies !
View Related
Hit Testing MCs Within MCs?
Hey,
Is there any way to do a hit test on a MC within a MC, but NOT the container MC?
IE Movie1 is nested in Movie2. Is there any way to do a hitTest of ONLY movie 1 without setting off Movie2?
To follow the example, this is what I have right now:
If (this.hitTest(_root.Movie2.Movie1)){
Blah Blah Blah
}
When I run the Flash, the hit test is returning positive when it only touches Movie2
View Replies !
View Related
No Testing -
Okay - I am new at this - I have purchased Flash and Swish..
I do not want to do too much just make some simple opening screens..
I have imported a .SWF files into swift and all was good - I added some Text objects and added some effects to the text that I added.
Not too bad hare - while in Swish I can Play the entire Scene here -
When I save the file all is well and I think I am saving it properly to an SWF file -
Here is the real problem - while in Swish I can not utiulize the test in "Anything" - it will not tst in browser or player. I noticed that in the report window it tells me a ton of informaiton but I am disturbed by the "Frames=1" - does this means anything and does anyone know why I can not test or use what I have made..
I am sure this is an easy one - Thanks for any help -
View Replies !
View Related
No Testing - Someone - Pls Help
No Testing - PLS Any Ideas
Okay - I am new at this - I have purchased Flash and Swish..
I do not want to do too much just make some simple opening screens..
I have imported a .SWF files into swift and all was good - I added some Text objects and added some effects to the text that I added.
Not too bad hare - while in Swish I can Play the entire Scene here -
When I save the file all is well and I think I am saving it properly to an SWF file -
Here is the real problem - while in Swish I can not utiulize the test in "Anything" - it will not tst in browser or player. I noticed that in the report window it tells me a ton of informaiton but I am disturbed by the "Frames=1" - does this means anything and does anyone know why I can not test or use what I have made..
I am sure this is an easy one - Thanks for any help
View Replies !
View Related
Testing
Just trying to get a link on here, but will not let me.
www . flash it up . com
www.fla****up.com
[IMG]http://www.tobymack.com/fla****up.jpg[/IMG]
View Replies !
View Related
Hit Testing
I'm trying to work out why this code does not work:
Code:
if (_root.target.hitTest(Gallows.rack)) {
gotoAndPlay(14);
}
It's placed on a movie, which is imbedded in another movie and loaded every time the mouse is clicked.
The "rack" symbol is on a layer called "Gallows".
Thanks for the help.
View Replies !
View Related
Testing Help
when i first DLed the trial i made 2 layers involving a stick with a spear and when i clicked test project it said i had to save the project as a .fla/.htm/.somethingortheother and when i saved it it said save as .fla file in the second drop down menu in the save window and then i saved and tried to test it again and once again it told me it had to be saved as .whatever/.htm/.fla so could some 1 plz help me? thank you.
View Replies !
View Related
[F8] Testing
what does it mean when you have done everything right (you think) and when testing it, the movie plays it wrong.
i did a tutorial and followed everything perfectly but the movie on the tutorial and my movie were different
any thoughts?
Alan
View Replies !
View Related
If Testing
I'm a VB guy and am in need of some help with AS2. The frustrating part is that I know what I want to do but have not figured out how to get AS to play ball.
I am trying to load an xml-driven slide show into a frame. I have that all fine but every time that I leave the frame and come back in, the slide show controls all duplicate themselves. What I need is either an if-test or a function to test to see if the slide show has already been created, set a global flag and test for that flag.
Here is the code right now:
Code:
//Create init object
var initObj:Object = {};
initObj.fillStage = false;
initObj.forceWidth = 560;
initObj.forceHeight = 420;
initObj.initXML = unescape()
initObj.xml = "slideshow_data.xml"
initObj.preventCache = false;
initObj.disableMultipleXML = false;
createClassObject(com.ui.Slideshow, "slideshow_mc",
getNextHighestDepth(), initObj);
Here is where I am at so far with the if-test
Code:
_global.flag=false;{
if not(_global.flag){
createClassObject(createClassObject(com.ui.Slideshow,
"slideshow_mc", getNextHighestDepth(),
initObj);
_global.flag=true;
} else {
***show created object****;
}
};
I don't even know yet if a not operator is legal in AS. If it is not, then I can just flip the statements.
Finally, would it be better to use an if-test like above or a function? Something like this:
Code:
var slideshow:LoadVars = new LoadVars();
slideshow.onLoad = checkLoad;
function checkLoad(loaded) {
if (loaded) {
createClassObject(createClassObject(com.ui.Slideshow, "slideshow_mc",
getNextHighestDepth(), initObj);
} else {
***show created slideshow***;
}
};
I'm reaching for straws here. Also, once the slide show is created, what is the command just to show the created object?
Could anyone throw down some knowledge and help me out?
View Replies !
View Related
Testing URL
I need to be able to test for a url in a flash file and have the movie do something based on the result. I've done this as shown in the code below,
Code:
if (CLICKTAG !== "http://www.someaddress.net") {
gotoAndStop("stolen");
}else{
gotoAndStop("video");
}
however the url is not going to always be the exact same, the domain will not change, but the suffix will, ie. variables being passed.
Example
The url will be http://www.someaddress.net?someVar=someValue,
but I only need to check for the domain http://www.someaddress.net. I know I need to add a wildcard in there so that it ignores everything after the .net but I can't figure it out.
Any help anyone can provide is greatly appreciated.
View Replies !
View Related
Just Testing FMS
If I make own application and test it in FMS Developer Edition can I publish my creation as Open Source Software with GNU GPL and register project to paid Open Source Software contest without I must buy business use license for FMS? If I win contest I get half of the moneys for FMS business edition, but if its not allowed to put my creationg to contest I must first puy FMS full license.
View Replies !
View Related
Testing FMS/CS3
After about 12 hours of working on it, I am still not able to stream FLVs from FMS2.
At this point, I am not sure whether my problem is with FMS setup or with the Flash client I am streaming to. Does anyone know if there is a public FMS configuration where I can point my client to to see if I can stream from it?
Thanks!
View Replies !
View Related
Testing Testing..ONE>>TWO>>THREE
Greetings all fellow Flash Forum Users....
I would be greatly appreciative if any and all of you could give me some "positive" feedback on my first flash site.... there is still much for me to learn..(sigh) and the site is not %100 complete yet, but I thought I would get some feedback from my peers . The main goal for this site is to create a fun creative site while still remaining functional as an informative medium.
There are a few things to be added still:
1. Preloaders for all the parent mc and sub mc.
2. I am in the progress of creating the label swing using the vector shapes instead of bitmaps...but those dang shape tweens and their dang path changes!!!!! (If anyone knows of a good tutorial for rounded cornered tweens....)
3. Each sub page still needs to have proper corresponding graphics.
Thanks for your time, and I look forward to all your comments!!
http://www.evlnursery.com/Demo/
Sincerely,
Warren
View Replies !
View Related
Testing?
I need to test if three symbols are the same its a tic tac toe style of game and I relaly cant get it to work properly Im going to end up with one big nasty if statement and I was hoping I could get away from that
View Replies !
View Related
Still In Testing...
I'm still developing/testing my website. I have a few questions and issues and I'm hoping some pros out there may have some answers for me.
1. Does anyoe know why on my site I can see the outlining shape of all the masks used in my movies? and is there a way to eliminate them? They look horrible.
2. Why do I have a grey outline around my movie when its published? In publish settins I put it to Match movie and the dimensions were correct. When I put it on percentage (100% width and height) my movie was cut off on top and bottom.
and finally..
3. When I test the site on my computer all the external swfs load fine. On the web, the home external swf loads, then when I press another button it unloads just like it is supposed to. But the the next swf does not load up. Any Ideas?
Thanks in advance.
Pharoh32
View Replies !
View Related
Testing When I = 20
Hi!
Yet another problem in my (probably) lame attempt at actionscript. In the duplicate movieclip tutorial on Kirupa I want to jump to a scene when a certain amount of movieclips are created. Here is the actionscript I have on my button which duplicates the moveclips:
ActionScript Code:
on (press) { i = i + 1; duplicateMovieClip (_root.circle, "circle" + i, i); <b> if (i == 20){ gotoAndStop("Scene 2"); }</b> }
I presume that when the button is pressed the movieclip "circle" is duplicated with increasing numbers created in the duplicate instance, i.e; circle, circle1, circle2 etc...
So, how do I create a small portion of actionscript that detects that when the 20th movieclip of "circle" (circle20) has been created and execute my script (which, at the moment, jumps to another scene)? As you can see, the part in bold is the actionscript I thought was needed, but it doesn't seem to work.
View Replies !
View Related
Testing Testing..ONE>>TWO>>THREE
Greetings all fellow Flash Forum Users....
I would be greatly appreciative if any and all of you could give me some "positive" feedback on my first flash site.... there is still much for me to learn..(sigh) and the site is not %100 complete yet, but I thought I would get some feedback from my peers . The main goal for this site is to create a fun creative site while still remaining functional as an informative medium.
There are a few things to be added still:
1. Preloaders for all the parent mc and sub mc.
2. I am in the progress of creating the label swing using the vector shapes instead of bitmaps...but those dang shape tweens and their dang path changes!!!!! (If anyone knows of a good tutorial for rounded cornered tweens....)
3. Each sub page still needs to have proper corresponding graphics.
Thanks for your time, and I look forward to all your comments!!
http://www.evlnursery.com/Demo/
Sincerely,
Warren
View Replies !
View Related
Testing A Preloader
I have DSL at home, so when I upload my movie to a webserver and test it, I only get a second or two of preload before my movie comes on. Does anyone know of a method to temporarily reduce your bandwidth, so you can see what dialup folks see?
View Replies !
View Related
Testing Pop Up Windows?
hi guys
sorry to repost this, but i didn't get any resolution last time!
i'm not ready to launch my site but i need to check whether my pop up windows are working, so i would like to dummy the quicktime movie target location to my hard drive, until i am ready to use my url... HOW DO I DO THIS? no vague responses please!!
thanks a lot...
david
View Replies !
View Related
Testing Preloader
I'm testing a preloader I added on 4 fla-files.
By doing the action 'show streaming' in flash, it is the result I want to have. But when the swf-movie is loaded in a MC on the mainpage of the site, it seems that the preloader doesn't work.
Can someone explain me what can be the cause of it or what I'm doing wrong?
swf_01
swf_02
swf_03
swf_11
site : the 4 files with the pre-loader are these you can find by clicking the squarebuttons '1'-'2'-'3' and '11' on the navigation.
thanks in advance
(made a correction on a link)
[Edited by hip_atrip on 03-22-2002 at 05:51 PM]
View Replies !
View Related
Testing The Progress
hey...
Im putting together my movie.. 3scenes, plus one preloader.. The final size is around 400kb..(thats why i put up the preloader)
Anyway... When I try the "test movie" function, I think it loads so fast, that it completely jumps over the preloader scene..
Hmmm.. I do belive the preloader works though, because I tried to change the last code in the preloader to goto the last scene instead of the first.. and it worked fine..
I also tried to put the debug part of the player down to 14.4(1.2kb/s)... but no change...
So... Does any of you guys know how to fully test the progress of the preloader with the movie...._?
gerry the coffeeguy
View Replies !
View Related
Preload Testing
I have a flash file I am working on that I have also prepared a preloader for. Total weight is 105K. When testing on my laptop or even on my server everything gets downloaded too fast to even see the preloader.
I had downloaded a test preloader off of FK that had some function where when I did CTRL and hit return twice, it simulated a V90 modem, however when trying to do that with my built preloader it won't do that. Is that something that was coded in the file? Am I missing something? I just want to test as if I was on some slow dialup....
View Replies !
View Related
Testing A Preloader
I have made a preloader, now I want to test it. How do I do this in flash mx? The file I am loading is 400k and when I hit ctrl/enter, the preloader dosen't even pop up. It goes strait into the flash presentation. Please help.
Thanx.
bfly03
http://www.clarustechnologies.net
View Replies !
View Related
Resizable Testing In MX
Erhm... probably I missed something along my introduction into Flash, but I can't get my movies tested on a resizable basis. What I'm trying to say: when I work on a movie in the editing environment, and test it with CTRL-ENTER, the thing ain't resizable, and the size is the one you specify in the document options... no resizing possible whatsoever, even if you resize the container window to 1923787127 x 1290317293 (who loves multimonitoring?)
So my guess is: either you can't test resizing in the editing environment or I'm dumb (please don't have me admit the latter).
View Replies !
View Related
TESTING IN BROWSER
I have just downloaded the trial version of SwishLite v1.52
Just like to ask assistance on how I can correct the text language during test in browser.
The texts are truncated and/ or the letters rearranged when I tested my scenes in the browser. Another problem is that image doesn't show the correct colors.
Please advise.
View Replies !
View Related
Collision Testing
HELP my freakin hittest wont work. i went under flash help and searched a bunch of places lokin for it to work but it wont. basically this is it: i have two MC's "tank" and "terrain" tank is of course the tank im making and terrain is the walls, ground, rocks, trees, etc. well ive made the walls trees and rocks solid fills and the clip "terrain" is in the layer under the one "tank" is in. what kind of actions should i assign to which clip or frame or should i move them to the same layer or what?????
thanx for any help in advance
Martin
View Replies !
View Related
Collision Testing Help Please
OK, im really annoyed at this so Im posting for help. I have an assignment, create a movie clip cursor that will use the hit function when it runs over another movieclip. I have my movieclips, "cursordrag" and "Alpha". According to the code Ive read in all the posts about hittest, this should work:
Code:
if (hitTest(this,_root.Alpha)) { _root.gotoAndPlay (55); }
where 'this' is the MC taking place of my mouse, Alpha is a stationary rectangle MC on the same layer as 'this'. Frame 55 is a sound clip on another layer.
The MC in place of the mouse works. However, no matter how much I move my mouse over Alpha, nothing happens.
Please help!
View Replies !
View Related
Testing Two Expressions
Hi,
what im trying to do it create a movie that generates a random number in each frame but the number has to be different from any other number thats come up.
In the first frame I just have a random number script thats assigned to the variable 'number1'.
In the second frame I have the following script :
number2 = ""
do{
number2 = random(100)
}while(number2==number1)
This works fine and never gives out the same number. However for the next frame it will need to test for two numbers so I thought I could use :
number3 = ""
do{
number3 = random(100)
}while((number3==number2) and (number3==number1))
However this doesnt work, am I not writing it correctly or what? or is there a better way to achieve this?
Thanks
View Replies !
View Related
Newbie Testing Help
I created a little test of a flash site, some vector images scrolling accross the screen, very simple. The test is only 60k (is that too big for what it is, I have no idea about compression unless it's jpg's) but when I test it of my own web server (running Mac OS X Server) it is extremely slow. It consists of 30 frames and is set to 30fps so it should be quick right? I was wondering if it was because my server doesn't host flash like some sites say they can. If you're interested in taking a look at what I mean here's the link:
http://adm.homeunix.com
Thanks in advance.
View Replies !
View Related
Testing For Errors
Basically I'm loading images from a directory. They are respectively named 1.jpg, 2.jpg, 3.jpg, ect...
But I want to be able to ad and delete images from the directory without changing the flash. No problem BUT the only problem is: If I ad an image like 11.jpg, In My flash movie I want to test if it's loaded properly if not start at 1 again. HOW Do you test. Like if I put LoadMovie(myimage), if the images isn't there I get an error. Is there a way to test if the image is there or to test if it caused an error?
Thanks
View Replies !
View Related
Testing For The Playhead
hi all
i need to test where the playhead is in a specific embedded movie, so if its still on frame 1 i don't want it to do anything but alternativly if the user has already triggered the action the playhead will reside on frame 10 and i need to goto frame 11. someone helped me with the code below but i can't get it to work any ideas??
n = _root.profile2.tree.tree2.tree3.tree4_currentframe ;
if (n>=n0 && n<=n1) {
} else {
tellTarget ("_root.profile2.tree.tree2.tree.3.tree4") {
gotoAndPlay (11);
}
}
regards
jon
View Replies !
View Related
Testing For Even Numbers
Anyone know a way to use Actionscript to find out which numbers in an incremented series of number [myNumber++;] are even numbers and which are odd numbers?
My thought is to divide each number by 2 and check to see if the result is an integer (if it is, the number was even), but I don't know how to do this.Thanks...
View Replies !
View Related
Help In Testing Movie
I am making a game in which there are random movements in movie clip jerk in the time line _root.world.player.jerk. How do i test whether the movie clip jerk is playing or stopped. It stops randomly.
View Replies !
View Related
|