Be a Supporter!
Response to: loadMovie preloader Posted March 7th, 2007 in Game Development

Anyone?

loadMovie preloader Posted March 4th, 2007 in Game Development

I have a movie which receives a list of image names. This list goes into an array, and I then take the first element, display it, then throw it on the end (shift-push). To load the image into the movie I use loadMovie(). The problem I am having is that the image I load needs to be preloaded for slower connections. Is there any way that I can preload the image, have a setInterval delay, then display the image. At which point it repeats over and over. A couple of problems I am having with the logic are how do I detect when the loadMovie is loaded, and that at that point how do I have a repeating interval? I've tried setInterval and then clearInterval to clear it, but this only goes ONCE even if I call it in a loop. I've heard of setTimeout, but I don't think its included in flash pro 8.

Response to: Dynamic MC replace Posted March 4th, 2007 in Game Development

Could anyone help with this? All I need to do is clone one movie onto another. It cannot be that complicated.

Response to: Variable not tracing? Scope? Posted March 4th, 2007 in Game Development

Hah, for future reference, if using the onData event, remember that it isn't called specifically on the frame you define it. I had to set it to stop the movie, then play when the data was loaded, at which point the data was available.

Response to: Variable not tracing? Scope? Posted March 4th, 2007 in Game Development

Oh, by the way, on that note, if you replicate my code, if you trace contents within the function it DOES trace properly.

Response to: Variable not tracing? Scope? Posted March 4th, 2007 in Game Development

Actually, what I am doing is trying to receive a non-XML file. Using the onData event, I can access the data before it is parsed by flash. What I am trying to figure out is how scope works within event functions. It seems like any data processed within the onData event is not transferred out to _root.

Response to: Variable not tracing? Scope? Posted March 3rd, 2007 in Game Development

Come on? Anyone? This can't be that complicated a question...


testXML = new XML();
testXML.ignoreWhite=true;
testXML.onData = myData;
function myData(contents) {
if (contents == undefined) {
_global.linkList = "Not found";
} else {
_global.linkList = contents;
}
}
testXML.load("returnList.php");
trace(_global.linkList);

Problem I'm having is that the trace statement at the end outputs undefined. Is there something that I'm missing in terms of scope?

Response to: Parsing XML into array Posted March 1st, 2007 in Game Development

Anyone?

Response to: Parsing XML into array Posted February 28th, 2007 in Game Development

stop();
var loader = new LoadVars ();
loader.load ('returnList.php');
loader.onData = function (file : String) {
trace(file);
}

Doesn't trace anything... You sure it should work?

Response to: Parsing XML into array Posted February 28th, 2007 in Game Development

What do you mean by "doesn't parse it"? Really, what I'm looking for is a way to read each line of an file into separate elements in an array. Can you give some example code?

Parsing XML into array Posted February 28th, 2007 in Game Development

Ok, I have a PHP script which outputs an XML file dynamically. First question is, is there a specific content type which needs to be specified for xml?

Here is the XML output as of now:
<?xml version="1.0"?>
<fileList><link>a10.jpg</link><link>a18.jpg</
link><link>a17.jpg</link><link>a16.jpg</link>
<link>a12.jpg</link><link>a15.jpg</link><link >a7.jpg</link><link>a1.jpg</link><link>a3.jpg </link><link>a11.jpg</link><link>a24.jpg</lin k><link>logoflash6.jpg</link><link>a31.jpg</l ink><link>a9.jpg</link><link>a13.jpg</link><l ink>a20.jpg</link><link>a8.jpg</link><link>lo goflash4.jpg</link><link>a14.jpg</link><link>
a25.jpg</link><link>a2.jpg</link><link>a21.jp g</link><link>a6.jpg</link><link>a26.jpg</lin k><link>a27.jpg</link><link>a30.jpg</link><li nk>a22.jpg</link><link>a4.jpg</link><link>a28 .jpg</link><link>logoflash3.jpg</link><link>l ogoflash8.jpg</link><link>a23.jpg</link><link >a5.jpg</link><link>a29.jpg</link><link>a19.j pg</link></fileList>

I have no idea why it prints it all out on one like. The PHP script uses DOM to format the XML, then uses saveXML() to turn it into an XML file.

Now my second question is, how might I parse this information within flash into an array? I need the array to just contain the names of the .jpg files.
If there is another way of doing this (such as using RAW text and just reading the file line-by-line into the array, then please speak up! I have tried loadVariables(), loadVars(), and XML() for this, but I haven't had success yet with any of them.

Response to: Dynamic MC replace Posted February 26th, 2007 in Game Development

Yes, as a matter of fact I did. The problem is that there are hundreds of functions. I have no idea which one. I have not been writing AS for very long, and I am looking for some help.

Response to: Dynamic MC replace Posted February 25th, 2007 in Game Development

Anyone? This can't be that complicated a question :P.

Dynamic MC replace Posted February 25th, 2007 in Game Development

What I am trying to do is use loadMovie to load a JPEG into a buffering movieclip (for preloading reasons). Once this movieclip gives the go-ahead saying its finished loading, I want that movieclip to be cloned onto another movieclip. Is there a function for cloning a mc onto another mc?

Response to: Loading images into buffer Posted February 21st, 2007 in Game Development

Anyone?

Loading images into buffer Posted February 19th, 2007 in Game Development

Ok, here's what I'm trying to do:

I have a movieclip called PictureHolder, which has a child movieclip of placeholder. I am struggling trying to figure out a way to start off showing one image, at which point I am loading a first image (retrieved from returnThumb.php in the same directory) into a buffer, and once that image is loaded (&& an delay of 5 is achieved) the buffered image is displayed. Once this image is shown, another image is buffered from returnThumb.php and after 3 seconds, that image is show. This continues to loop to continue showing random images generated by returnThumb.php. Could anyone help me with the code and the logic behind this one? I'm mostly a PHP guy so I am a bit n00bish with Actionscript. Oh, to add yet another twist to this one: I am using Flash 6 :D.

Response to: Loading images into buffer Posted February 19th, 2007 in Programming

Oh, could a mod please move this to that forum?

Loading images into buffer Posted February 19th, 2007 in Programming

Ok, here's what I'm trying to do:

I have a movieclip called PictureHolder, which has a child movieclip of placeholder. I am struggling trying to figure out a way to start off showing one image, at which point I am loading a first image (retrieved from returnThumb.php in the same directory) into a buffer, and once that image is loaded (&& an delay of 5 is achieved) the buffered image is displayed. Once this image is shown, another image is buffered from returnThumb.php and after 3 seconds, that image is show. This continues to loop to continue showing random images generated by returnThumb.php. Could anyone help me with the code and the logic behind this one? I'm mostly a PHP guy so I am a bit n00bish with Actionscript. Oh, to add yet another twist to this one: I am using Flash 6 :D.

Response to: Flash Request Posted January 30th, 2007 in Game Development

VictoryGin, you have an fla? I like yours better because its silhouette and it is along a complete horizontal plane. I do however need to tweak a couple things, like if you used individual bodyparts that are tweened, I will change the head to have a helmet and the feet to have skates :P. Otherwise, great animation!

Response to: Flash Request Posted January 30th, 2007 in Game Development

Lol dude zeke you are an idiot. I actually typo'd one of those links, check out CanadasGame.net. That's the main site right now. Thanks to the guys who are considering it :P.

Response to: Flash Request Posted January 29th, 2007 in Game Development

Although I wouldn't be able to pay the person, I would certainly offer them credits. If you take a look at CandasGame.net or CanadasGame.tv, you will see that I am not just some kid :P. I am actually looking to develop a banner for my forums. I need this animation for the banner. I will be adding credits for anyone who does actually help.

Flash Request Posted January 29th, 2007 in Game Development

Hey, I'm not sure if this is allowed, but I was wondering if someone could please create me a small flash clip. I'm not very good with the art itself so I don't want to do it myself. What I am looking for is a short animation of a silhouette man skating on nothing towards a net with a hockey stick and shooting a puck into the net, then turning around.

Response to: how do you PHP Posted June 4th, 2005 in Programming

http://www.w3school.com

Response to: AH Spreading... Posted November 26th, 2004 in NG News

I'm gunna go down to EB here in Victoria BC, Canada. If it's there I'll be sure to reserve a copy, and buy it when I get the money (I just spent it all, so I'm a little empty in the pockets). And before I buy it I will take a pic of it. SEKZAY AH.

Response to: AH Woes Posted November 19th, 2004 in NG News

I found it in Victoria, BC, Canada

Response to: Attention Canada! Posted November 18th, 2004 in NG News

http://home.no.net/gedra/igloo_bg.htm

www.bcadventure.com/adventure/ wilderness/animals/beaver.htm

Yes I am Canadian so don't bitch, I am just perpetuating a stereotype

identifiers in an array Posted October 6th, 2004 in Programming

Is it possible to have identifiers stored in an array? In example:

code:----------------------------------------------------------------------
----------
list;
list[0] = "_root.MC1";
list[1] = "_root.MC2";
list[2] = "_root.MC3";
for(i in list) {
i.play();
}

Response to: Top entries from 09/16/2004! Posted September 17th, 2004 in P-bot's Postings

_FLU! ROCKS!

Response to: Commercial Properties in Glenside Posted June 21st, 2004 in NG News

Ok, lets see, I know I am just 'double-standarding' but I must say, this thread is particularly useless. So many people have posted random things, or do not understand the idea that you dont want to move or have a 4-10 hour commute. Please god let all the hethenous random-posters burn in hell, and let the http://pa.virtual-agent.com/commercial_for_rent.html club burn as well.