[Flashcoders] how to write a class that loads XML?

2007-04-27 Thread sebastian chedal
Hello Flash coders. :) Could anyone help me to fix my class code? I can't find any reference anywhere that will help me... I'm trying to load XML via a generalized class object, but the data in postXML never makes it to the parseXML constructor, any help is greatly appreciated! Thanks!

RE: [Flashcoders] how to write a class that loads XML?

2007-04-27 Thread Danny Kodicek
Hello Flash coders. :) Could anyone help me to fix my class code? I can't find any reference anywhere that will help me... I'm trying to load XML via a generalized class object, but the data in postXML never makes it to the parseXML constructor, any help is greatly appreciated!

Re: [Flashcoders] how to write a class that loads XML?

2007-04-27 Thread Arul Prasad M L
1. May be coz you never really created the XML object. You'll need to define the XML object as well, not just declare the variable. 2. Try using the Delegate class. Its pretty useful in avoiding confusions. Now the code: import mx.utils.Delegate; class XMLoader { private var

RE: [Flashcoders] as3 addchild question

2007-04-27 Thread Petro Bochan
Hi, Not sure what you are after, but you might try something like this: import flash.display.*; var lista:Array = new Array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); for (i = 0; i lista.length; i++) { var vSprite:Sprite = new Sprite(); vSprite.graphics.lineStyle();

Re: [Flashcoders] how to write a class that loads XML?

2007-04-27 Thread hidayath q
Hi Arul, Im from Chennai and im working as a flash programmer here. Can u just explain me what the role of the *Delegate Class* here in this. Thanks and Regards S.Hidaayth On 27/04/07, Arul Prasad M L [EMAIL PROTECTED] wrote: 1. May be coz you never really created the XML object. You'll

RE: [Flashcoders] WhITE SNOW and Seven Dwarf - MAth Problems!

2007-04-27 Thread Erich Erlangga
OK danny, your script work fine. sorry for not testing it first. here is the script in conjunction to my prior post. on frame 1: var tIndex = 1; //- // calculate the loop overhead var looptimestart = getTimer(); //-

Re: [Flashcoders] how to write a class that loads XML?

2007-04-27 Thread sebastian chedal
Hi Thanks for that tip, delegate seems to work when I pass a variable, but its still not passing the XML object. However, I'm also having a problem which is stopping me from figuring out the issue... intermitently I get the error message: **Error** {...}/Flash/work/core/XMLoader.as: Line 3: The

RE: [Flashcoders] WhITE SNOW and Seven Dwarf - MAth Problems!

2007-04-27 Thread Danny Kodicek
OK danny, your script work fine. sorry for not testing it first. here is the script in conjunction to my prior post. on frame 1: Before you start timing different methods, you should remove all your 'trace' lines, they add a time overhead of their own. Try it again with no traces and I

Re: [Flashcoders] Clear Set Interval Q:

2007-04-27 Thread Muzak
And for as often and inaccurate as they want to fire, I often think the best solution is to check time change from the last frame to the current with whatever method. I assumed Intervals only fired once per frame, but apparently they fire as often and as accurate as they 'can'. If I remember

[Flashcoders] Wave effect

2007-04-27 Thread Parvaiz Patel
Hi, Anybody knows how to create the wave effect shown in (http://www.mandchou.com/) at the bottom for dynamically loaded images. Pls let me know. Thanks regards, PP ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or

Re: [Flashcoders] how to write a class that loads XML?

2007-04-27 Thread sebastian chedal
ok i was able to solve the issue, has to do with working from a network drive... how annoying!!! http://www.epresenterplus.com/blog/archives/30.html :-P XML is loading now just fine too, thanks everyone!! :D seb. On 4/27/07, sebastian chedal [EMAIL PROTECTED] wrote: Hi Thanks for that

[Flashcoders] create image grid

2007-04-27 Thread noentourage
I'm trying to make a two grids of images but am stumped at the moment. Here's what I have so far that works just fine but I want to have two grids of 25 thumbnails side by side. You will only be able to see one grid of 25 which is masked. code function makeGrid(){ this.createEmptyMovieClip(kk,

Re: [Flashcoders] Wave effect

2007-04-27 Thread noentourage
Do a search for Flash OS X dock effect. That might get you some results. On 4/27/07, Parvaiz Patel [EMAIL PROTECTED] wrote: Hi, Anybody knows how to create the wave effect shown in (http://www.mandchou.com/) at the bottom for dynamically loaded images. Pls let me know. Thanks regards, PP

Re: [Flashcoders] Wave effect

2007-04-27 Thread Muzak
google: flash mac dock here's one: http://jrgraphix.net/research/flash-dock-mx-2004.php there's more of them, check google. - Original Message - From: Parvaiz Patel [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, April 27, 2007 2:50 PM Subject: [Flashcoders] Wave

Re: [Flashcoders] Wave effect

2007-04-27 Thread Michael Stuhr
Parvaiz Patel schrieb: Hi, Anybody knows how to create the wave effect shown in (http://www.mandchou.com/) at the bottom for dynamically loaded images. Pls let me know. Thanks regards, PP This is MAC only. micha *sorry couldn't resist. ___

Re: [Flashcoders] how to write a class that loads XML?

2007-04-27 Thread Muzak
If you're working from a network drive, make sure its clock runs in synch with your working machine. On windows, you can click the clock in the system tray, go to the last tab (Time) and synchronize it with time.windows.com. Do that for both machines. You shouldn't get any errors after that (at

RE: [Flashcoders] how to write a class that loads XML?

2007-04-27 Thread Merrill, Jason
[mailto:[EMAIL PROTECTED] On Behalf Of hidayath q Im from Chennai and im working as a flash programmer here. Can u just explain me what the role of the *Delegate Class* here in this. I keep getting buddy type spam every 2-3 months or so in my personal inbox from someone with your exact same

Re: [Flashcoders] Wave effect

2007-04-27 Thread Gustavo Duenas
I don't know, but why don't try googling the thing? Besides Flash coders I've found a lot of useful information in google. That effect in particular appears to be the new mood or fashion to many designers, so I'd advice not to have it if you want to be original. Regards. On Apr 27, 2007,

Re: [Flashcoders] Wave effect

2007-04-27 Thread Gustavo Duenas
Amen brother * I couldn't resist too. On Apr 27, 2007, at 9:03 AM, Michael Stuhr wrote: Parvaiz Patel schrieb: Hi, Anybody knows how to create the wave effect shown in (http://www.mandchou.com/) at the bottom for dynamically loaded images. Pls let me know. Thanks regards, PP This is

Re: [Flashcoders] Wave effect

2007-04-27 Thread Robert Brisita
This is MAC only. :) That's funny. Michael Stuhr wrote: Parvaiz Patel schrieb: Hi, Anybody knows how to create the wave effect shown in (http://www.mandchou.com/) at the bottom for dynamically loaded images. Pls let me know. Thanks regards, PP This is MAC only. micha *sorry

Re: [Flashcoders] Wave effect

2007-04-27 Thread Marcelo de Moraes Serpa
Very well made site btw... inspiring! I liked the mac dock effect even though it's said to be the new fashion among designers. On 4/27/07, Robert Brisita [EMAIL PROTECTED] wrote: This is MAC only. :) That's funny. Michael Stuhr wrote: Parvaiz Patel schrieb: Hi, Anybody knows how to create

[Flashcoders] Random Error

2007-04-27 Thread Dave Mennenoh
Once in a while, when compiling, I get an error from one of my classes. The error is something like: 'property System not found', and it is thrown from this function: public static function getPlayerVersion() { return(System.capabilities.version); } I only see the error once out of 20

Re: [Flashcoders] Wave effect

2007-04-27 Thread Gustavo Duenas
I tell you marcelo, I've seen it every whereEven one with that idea won in thewfa.com, course not exactly at the mac is, but the spirit is in it. Regards Gustavo Duenas On Apr 27, 2007, at 10:49 AM, Marcelo de Moraes Serpa wrote: Very well made site btw... inspiring! I liked the mac

[Flashcoders] [FlashGameCoders] Persistent Game AI for Off-screen baddies

2007-04-27 Thread James Marsden
Hello all, When building a game where collision detection for enemies is important (such as a scrolling tile game), how do you create persistent AI for an enemy when it's off-screen? For example, walking away from the enemy causes it to be removed from the game area, but the enemy needs to

[Flashcoders] blendMode in as3

2007-04-27 Thread Gustavo Duenas
I've just seen the blendMode in as3 and I have a code to create dynamically objects and I'd like to give them a different value of Blend Mode, but it seems that is a bit of a problem, because the compiler said this: **Error** : Line -1, Column -1 : Warning Report: --- [Coach]

Re: [Flashcoders] Re: should be simple: MovieClip drawing API

2007-04-27 Thread greg h
fyi ... For AS3 examples of Drawing API this link is the bomb: http://www.3gcomm.fr/Flex/PrimitiveExplorer/Flex2PrimitiveExplorer.html Each primative class includes Class Call Sample code. Right-click for View Source. On source page, bottom right has Download source option. Explanation by the

Re: [Flashcoders] [FlashGameCoders] Persistent Game AI for Off-screen baddies

2007-04-27 Thread Hudson Ansley
I did this type of thing by having the collision detection separate from visual elements (each tile had a collision rect) so that the tiles need not be displayed to have the AI interact with them. This allowed their off screen position to be updated, and it was pretty low CPU hit - the biggest

Re: [Flashcoders] [FlashGameCoders] Persistent Game AI for Off-screen baddies

2007-04-27 Thread Ian Thomas
James, Unfortunately, it all depends. :-) It depends on the complexity of your game and your AI - on how big your play area is and on how much optimisation you want to do. I've seen the following approaches or combinations of these approaches: i) AI (and pixel-perfect x/y positioning) is

Re: [Flashcoders] [FlashGameCoders] Persistent Game AI for Off-screen baddies

2007-04-27 Thread Joshua Sera
Separate your display code from your game logic. One thing that I see frequently is people inheriting directly from movie clips for their game objects. This is bad because it encourages overuse of inheritance, and makes display/game logic separation harder. Usually, I'll have my game object as

RE: [Flashcoders] Wave effect

2007-04-27 Thread Parvaiz Patel
Hi Guys, Actually I want to achieve the smoothness of that menu (created in http://www.mandchou.com/) I am developing an application for my client in which everything is loaded dynamically from MS-SQL server via ASP.Net frame work into flash. Here is the URL which is in the first stage of

RE: [Flashcoders] create image grid

2007-04-27 Thread Parvaiz Patel
I didn't understand your question fully. But if you want create a grid side by side then use if condition in your for loop. Like if (i 25){ clip._x = (i%columns)*45; // reset the position as per your requirement then you will get the new position for the new set of grid.

Re: [Flashcoders] Wave effect

2007-04-27 Thread Marcelo de Moraes Serpa
Maybe using a tweening engine (I think the mx.tween would do) ? On 4/27/07, Parvaiz Patel [EMAIL PROTECTED] wrote: Hi Guys, Actually I want to achieve the smoothness of that menu (created in http://www.mandchou.com/) I am developing an application for my client in which everything is loaded

Re: [Flashcoders] create image grid

2007-04-27 Thread noentourage
I see that I left some info out like that the images are coming in via xml. Here is a sample of what I have so far: http://www.thespikeranch.com/test/photoGallery.html If you go to the last image in the lower right corner of the grid then let it play or click next you'll see the grid of 25 images

Re: [Flashcoders] Persistent Game AI for Off-screen baddies

2007-04-27 Thread James Marsden
Really great advice there guys, thanks a lot :) I had my suspicions it would be done like this, but needed to be reassured by the Ninja's. Luckily the game logic is separated from the display, in a similar way to how you're describing. I currently have multiple scrolling engines, each

Re: [Flashcoders] blendMode in as3

2007-04-27 Thread Lists
I'm not sure I understand what you're trying to do, so I'll take a shot at this. I think there might be a confusion between blend mode and alpha. Applying a blend mode to a MC is a single-step process, which says give this MC a blend mode of darken. This is akin to a PS layer mode, so Darken will

RE: [Flashcoders] Wave effect

2007-04-27 Thread Joshua Sera
One thing you're doing right is that you're not using an easing function to move the center of magnification to the mouse pointer. I looked at that mandchou site, and it's really not good from a usability standpoint. OSX's magnification feature is directly tied to the pointer, which means that

[Flashcoders] SendAndLoad

2007-04-27 Thread Helmut Granda
How long does the server waits before it returns an error message? Say I sent 40 variables to the server and the server receives the variables but doesn't process them correctly so it just hangs there, does flash has a time limit to wait for a response before spitting out an error message? TIA

Re: [Flashcoders] blendMode in as3

2007-04-27 Thread Gustavo Duenas
no! man, you didn't thanks. I, really appreciate your help. Regards gustavo Duenas On Apr 27, 2007, at 2:07 PM, Lists wrote: I'm not sure I understand what you're trying to do, so I'll take a shot at this. I think there might be a confusion between blend mode and alpha. Applying a blend

[Flashcoders] Duplicating a movieclip/sprite in AS3

2007-04-27 Thread ben gomez farrell
Hey everyone, I can't seem to figure out how to duplicate a sprite in AS3. Thanks to various tutorials online, I got so far as to take the constructor of the sprite I want to duplicate and instantiate a new one. var targetClass:Class = (stamp as Object).constructor;

RE: [Flashcoders] Wave effect

2007-04-27 Thread Jesse Graupmann
http://www.reflektions.com/miniml/ has a ton of info on this and more. Check out: http://www.reflektions.com/miniml/template_permalink.asp?id=356 http://www.reflektions.com/miniml/template_permalink.asp?id=108 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

RE: [Flashcoders] Clear Set Interval Q:

2007-04-27 Thread Jesse Graupmann
I got to thinking... The problem with setting a single interval using setCurrentInterval is that you can only have one interval running at a time, while the problem with clearAllIntervals intervals is being forced to reset those you want to keep. So I just wanted to share another idea,

[Flashcoders] flowcharting

2007-04-27 Thread nik crosina
Hi guys, Does any of you use flow charting to map out projects/screens/functionality? If so - what are you using to draw them. I don't have excel which I used before and am looking for some shareware or other small but beautifully formed solution. -- Nik C

Re: [Flashcoders] flowcharting

2007-04-27 Thread Ron Wheeler
OpenOffice has a nice drawing tool with all of the flowcharting symbols defined. www.openoffice.org You can colour and shade them to your hearts content. I built a flowcharting add-on to Compendium www.compendiuminstitute.org http://www.compendiuminstitute.org/community/bpa.html is a link to a

Re: [Flashcoders] flowcharting

2007-04-27 Thread nik crosina
Looked at openoffice and fell in love! Thanks, Ron!! Have a nice weekend, Nik On 4/27/07, Ron Wheeler [EMAIL PROTECTED] wrote: OpenOffice has a nice drawing tool with all of the flowcharting symbols defined. www.openoffice.org You can colour and shade them to your hearts content. I built a

Re: [Flashcoders] Duplicating a movieclip/sprite in AS3

2007-04-27 Thread Muzak
Personally I wouldn't try mixing the Alpha Preview with Flex. It's not feature complete and certain things will be quite different in FCS3. For instance there's the Flex Component Kit for FCS3 that makes Flex/Flash integration ALOT easier: