Re: [Flashcoders] Please Help - missing item from loaded XML file, but not when I simulate download?!

2005-10-18 Thread Ron Wheeler

Your XML seems to be missing a collection element to hold all of the mains
mains
main.../main
main.../main
main.../main
/mains

If you are missing the mains entries, the second main element is just 
an orphan and not related to the first one.


If you try to access your XML from Firefox it displays an error

XML Parsing Error: junk after document element
Location: http://fari.kentandangela.com/site_tree.xml
Line Number 256, Column 1:main label=Limited Edition Prints 
content=true

^

I hope that this helps.

Ron

Kent Humphrey wrote:


http://fari.kentandangela.com

This is a website I am days away from delivering, and today I'm 
getting a crazy problem.


The menu structure is loaded from an xml file. When I view this on the 
web, or preview from Flash, the 5th item of the main menu doesn't 
display.


When I do simulate download after previewing it, the 5th item IS there!

What do you see? I've got fast broadband here, but surely it's not 
skipping over a part of the file, the exact same part each time I load 
it??


This menu system has been working fine for over a week now...

Changing the order of the items in the xml file has no difference, 
it's always the 5th item that wont display, not matter which of my 
items is in 5th place.


Here is the code to generate the menu items, of course it's looping 
through them so all items are getting exactly the same instructions...


[code]
// build as many root menu items as listed in the xml
for (var i:Number = 0; ias2obj.main.length; i++) {

tempLabel = as2obj.main[i].attributes.label.toLowerCase();
tempMC = mainMenu.attachMovie(menu_item, tempLabel, 
mainMenu.getNextHighestDepth(), {_x:550, _y:i*20+48});

tempMC.level = main;
tempText = tempMC.createTextField(label_text, 1, 0, 0, 200, 20);
tempText._visible = false;
tempText.autoSize = left;
tempText.text = tempLabel.toUpperCase();
tempText.antiAliasType = advanced;
tempText.embedFonts = true;
tempText.selectable = false;
tempText.setTextFormat(menu_fmt);
tempText._visible = true;
trace(text: +tempMC);

}[/code]

(Note, I am using Sephiroth's XML2Obj class to handle the parsing of 
the xml file - as you can see it's reading everything else correctly)


The return from that trace statement is as you expect, it returns the 
correct MC, so it's definitely being created.


Anyone got any ideas? I've been hammering away at this problem for 
about 4 hours now :angry:


Flash 8 Pro, WinXP, published to AS2, Flash Player 8, same issue on 
Firefox and IE.


XML file here http://fari.kentandangela.com/site_tree.xml
.swf here http://fari.kentandangela.com/fari.swf

ignoreWhitespace = true/false isn't making any difference.

Excuse the XML, it's my first, so it might not be structured correctly...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] External class changes not being reflected in the output! Any idea?

2005-10-18 Thread Ron Wheeler
It could be caching. Lots of discussion in the forum about this - 
Basically, you have to clean out your Player's cache area.


It can also be caused by loading a swf that was compiled with the old 
version. Flash will use the first version of a class that it finds. So 
if you have 2 swfs that include the Banana Class and you forget to 
rebuild both swfs you will tear all of your hair out in frustration as 
Flash consistently uses your old class definition that it found in the 
swf that you forgot to rebuild.


This is not as uncommon as it seems and almost everyone gets bitten by 
one of these two cases eventually.
Usually only once since you end up with great mental scars as you are 
finding now.


Ron


David Lochhead wrote:


Hi,

I'm late to the party in adopting external classes for my work but
hey, I'm here now! :)

Anyway I have an incredibly frustrating problem in that when I change
the code in my class it doesn't seem to be updated when I republish.
I'm using Flash 8 and SEPY.

E.g. Here's my class. Simple as it is.

class Banana {

private var owner:MovieClip;

function Banana(createdBy:MovieClip) {
owner = createdBy;
tr('Banana Created');
owner._x = 100;
owner._y = 100;
}

public static function tr() {
trace(arguments.join( : ));
}
}

And in my FLA the only code is.

bob = new Banana(bob); - bob being a square movieclip.

Now when I publish it i get the output: Banana Created

However, if I change the trace in the class to Apple Created  and
republish I still get Banana Created. i.e. it hasn't updated.

It's driving me nuts. Am I missing something painfully obvious?

Cheers,

Dave
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Free and open source software

2005-10-28 Thread Ron Wheeler

Eclipse, Doxygen, eclox,  ArgoUML, Pixia, Ant  for development.

GanttProject,OpenOffice and FreeMind for management tools

Ron

Patrick Matte wrote:


Hi, I'm rounding up a list of free and open source software.

For flash, I have found MTASC and swfmil.

Does anyboby know of any other free software for editing sound, video,
bitmap and vector images?


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] JavaDoc in as2

2005-10-31 Thread Ron Wheeler

Doxygen and the eclox plug-in.

Ron

Doug Miller wrote:


http://www.as2doc.com/

I believe there are other applications out there that will do it
as well.  Anyone know if there are any eclipse plugins that will
generate docs for as2, that would be nice!





Get your own 800 number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


 On Mon, 31 Oct 2005, JOR ([EMAIL PROTECTED])
wrote:

 


Doug Miller wrote:
   


http://java.sun.com/j2se/javadoc/writingdoccomments/



 On Mon, 31 Oct 2005, Martin Klasson
([EMAIL PROTECTED]) wrote:


 


Hi People.

I have been reading about the JavaDoc, and that is really
   


what
 


I will

 


implement into my documentation-routine.

But now when I know all the tags and so on, I don't know
   


what
 


is a

 


general good way to use for params and how to really
   


actually
 


turn

 


javadoc into a good use within the AS-class.

Is there any good basics out on some simple sites? I cant
   


really find it

 


myself though googling and searching.

Thanks.
   


What are you running to produce the HTML documentation, the
   

JavaDoc app 
 


itself?  It will work with .AS classes and packages?

I've already added all the documentation comments to my .AS
   

files but 
 


that's as far as I got.  I was looking for a way to then
   

transform those 
 


comments into actual HTML documentation but haven't tried
   

JavaDoc yet. 
 


I didn't think it would read AS packages.


JOR



___
===  James O'Reilly
===
===  SynergyMedia, Inc.
===  www.synergymedia.net

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


   



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Simple serial reading application

2005-10-31 Thread Ron Wheeler

Try Google. I came up with this tutorial

http://people.interaction-ivrea.it/h.barragan/flashserialinterface.html

It does not describe how to write the server but that might come from 
the manufacturere of the device.


Ron


Danny Kirkwood wrote:


dosn`t have to be flash, but we have a shell  everything i need setup in flash 
 im not very good with other softwares- just thought there may be some backdoor 
way to read com ports to flash. what software would you reccomend scott ?

The application is for reading some kind of tag - displaying any information stored on the tag  maybe detailing the tag type. Just a standard serial reading software would do (although i`d much rather develop into a personalised program - obviously it would leave much more options for attaching data to pictures etc..) but there seems to be no standard software such as hyperterminal for PPC which dosn`t need a licence for each device (which wouldn`t be acceptable- ideally the solution would beable to be ran straight from an SSD card) 


I`ll have a look at Zinc V2 - looks very expensive though just to give me the 
possibility to read from a comm port, but i suppose if it gets the job done ;o)

Much appreciate you feedback  time
Danny

-Original Message-
From: Scott Hyndman [mailto:[EMAIL PROTECTED]
Sent: 31 October 2005 15:39
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Simple serial reading application


This is a strange thing to want to do in Flash.

Is using Flash a requirement?

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Pedro Furtado
Sent:   Mon 10/31/2005 10:34 AM
To: 'Flashcoders mailing list'
Cc: 
Subject:RE: [Flashcoders] Simple serial reading application
Try Zinc v2 for PPC.
;)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Danny
Kirkwood
Sent: segunda-feira, 31 de Outubro de 2005 14:50
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Simple serial reading application

 


I am a beginner  although quick to learn not yet a very good programmer
   


atall. I am currently trying to create a small flash application which will
eventually be uploaded to a PDA, I need it to read 192 Bytes from a serial
port  display this in ascii code. Any help / links / info would be much
appeciated as I`ve been searching forums with no avail :o( do i need to use
external programming / software etc... to read the serial data first 
import ?
 


Thanks for your interest,
Danny
   










Danny Kirkwood 
Technical Sales Assistant 
Technical Department 
Balluff Ltd 
The Automation Centre
Finney Lane 
Cheadle 
Cheshire   SK8 3DF 
Phone +44 161 2824 706 
Fax  
[EMAIL PROTECTED] 






Disclaimer  Confidentiality Notice 
This email, together with any attachments, is for the exclusive 
and confidential use of the person or entity to which it is  
addressed and may contain confidential and/or privileged material. 
Any review, retransmission, dissemination, or other use of, or 
taking of any action in reliance upon, this information by persons 
or entities other than the intended recipient is strictly unauthorised 
and prohibited. 

If you have received this message in error, please notify the sender 
by e-mail immediately or contact us at [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] and delete the message and attachments 
from your system and any associated computers without making any copies. 

Any views expressed in this email are those of the author and may not 
necessarily represent the views of Balluff Ltd.Please note that the 
Internet is inherently insecure. It is not appropriate for sensitive 
material. Please bear this in mind when emailing us. Although we have 
taken steps to check that this email and any attachments are free from 
viruses, it is the responsibility of the recipient in keeping with good 
computing practice to ensure they are actually virus free and Balluff Ltd 
accepts no responsibility for such viruses. 


Balluff Ltd.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders








Danny Kirkwood 
Technical Sales Assistant 
Technical Department 
Balluff Ltd 
The Automation Centre
Finney Lane 
Cheadle 
Cheshire   SK8 3DF 
Phone +44 161 2824 706 
Fax  
[EMAIL PROTECTED] 






Disclaimer  Confidentiality Notice 
This email, together with any attachments, is for the exclusive 
and confidential use of the person or entity to which it is  
addressed and may contain confidential and/or 

Re: [Flashcoders] Debugging wih FAMES?

2005-10-31 Thread Ron Wheeler

Flashout is the debugging part of Eclipse


Brent Gore wrote:


Here goes my first post to flashcoders.  I recently began experimenting
with the FAMES development setup.  So far the IDE is really awesome, but
is there anyway to debug?  I've played with the debug settings in
Eclipse but no luck.  Are there any additional plugins for this?  I
guess I need FAMEDS.  :P

As a related question, do any other FAMES users recommend switching to
Flex?  Since I've been using Fames it's been bothering me that I can't
write in AS3 (not to mention the many other benefits to Flex).  As it is
widely discussed in this forum, Flex seems to be bridging the gap from
Flash to a true programmer's IDE, but in my opinion it still has a ways
to go and I really like what Fames has to offer.

Thanks for your suggestions.

Best,
Brent G
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Debugging wih FAMES?

2005-11-01 Thread Ron Wheeler
MTASC also gets you into a powerful IDE with lots of tools built in that 
can be used for all of your programming activities - client (Flash 
Java), server (all languages) and scripting(Ant/Maven) and documenation 
(Xdocs, Javadocs) and www development.


You only have to get good at one IDE to be productive across the whole 
range of development activities


Ron

JesterXL wrote:

Frankly, I think half of the OSFlash community used MTASC because it was 
fast, while the others were all about it being free.


If you make it faster than mxmlc.exe, I'm interested, otherwise, nope.

- Original Message - 
From: Martin Wood [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 01, 2005 8:52 AM
Subject: Re: [Flashcoders] Debugging wih FAMES?


i'll combine my answer to jesse with a response to this as well, because
they cover some of the same ground..hope you dont mind.

why choose open source vs flexbuilder 2 ?

because

A: its open source, if it doesnt do what i want, there is always the
possibility to change that

B: it would most likely be free.
Now, im not averse to paying for tools which i use and would consider
buying FlexBuilder2 if my work required it, but its not just about me.

of course, its too early to say if MM will make the command line version
of the compiler available for free. If they do, then thats great, that
alleviates some of the need for an open source / free version,  and it
would allow me to concentrate more on working with the ASDT team to make
a better development environment.

If their compiler is not free, then we'll see what direction the osflash
community moves, if its towards an ocaml based compiler, then i'll learn
ocaml, if its towards an antlr / flex / bison based approach then i'll
help with that (and there has already been work on an as3 antlr grammar,
so the pieces are starting to take shape)

whatever happens im determined that a free compiler should be available,
because it would keep the momentum around osflash going.

If the only option is to buy FlexBuilder2 then I think the (OS) flash
community would start to lose out on potential development talent that
would be attracted.

In my opinion the scope and quantity of tools that will be created to
support flash development would be severely hindered by the lack of a
decent free compiler.

just to be clear, its not about one versus the other, its about the
whole flash development ecosystem.

Having commercial tools with commercial support is very important within
certain sectors of industry, and similarly having free versions is
important to other sectors of industry.

with both we have choice, with just one, we dont.

i like choice.

thanks,

Martin.

Nick Weekes wrote:
 


I don't understand why you would go for a (possibly) less functional tool
than FlexBuilder 2 just because its open source?
   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] POST question

2005-11-07 Thread Ron Wheeler

Could you be any more vague?

Ron

[EMAIL PROTECTED] wrote:


Has anyone run into issues with doing a LoadVars.send() using POST with IE
6.0 and Flash plug-in 7.0.19?  I'm seeing a consistent problem that I
think involves SP2 and user interface issues, but I'm trying to rule out
plug-in quirks.

thanks

-Ricky

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML driven ticker tape

2005-11-08 Thread Ron Wheeler

Should be easy.
Reading XML is simple.
The scrolling direction seems odd but you can probably figure out how to 
do it easier than someone can figure out how to read it.


http://www.developingwebs.net/flash/marquee.php

Ron

Paul Steven wrote:


I would like to create a ticker tape style text display along the bottom of
my flash movie. I would like the text to be read in from an xml file. The
text would basically just scroll from left to right across the screen.

Any tips / advice / code etc much appreciated.

Thanks

Paul


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML driven ticker tape

2005-11-08 Thread Ron Wheeler

http://www.coolfocus.com/relocate.asp?page=flash/freestuff/marqueedesc.asp
another example

Ron

Paul Steven wrote:


I would like to create a ticker tape style text display along the bottom of
my flash movie. I would like the text to be read in from an xml file. The
text would basically just scroll from left to right across the screen.

Any tips / advice / code etc much appreciated.

Thanks

Paul


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Eclipse/FDT/Subclipse weirdness

2005-11-15 Thread Ron Wheeler

I have never seen anything like this.
Why do you need the refresh - what is happening outside Eclipse?
You did not mention just exiting and restarting Eclipse. Does that do 
anything or show any errors?

Are other Eclipse projects affected?

That is a tremendous housecleaning - only thing you do not do is delete 
eclipse and reformat the hard drive :-)


Have you checked the Eclipse newsgroups and forums?

Good luck.
Ron

Jim Kremens wrote:


I have all the latest versions...
Here's a question - are there files that I should not put in version
control? Like Eclipse's .project file and FDT's .as2_classpath?
I've done it both ways and still had the same problems, so I don't think
that's the solution. Just curious...
Jim Kremens

On 11/14/05, Tomas Lehuta [EMAIL PROTECTED] wrote:
 


Jim,

I'm using Subclipse in both Eclipse/FDT and Flex Builder 2 and everything
goes ok.
Which version of Eclipse/FDT/Subclipse do you have?
I'm running the latest versions:
Eclipse SDK 3.1.0
FDT 1.0.4
Subclipse 0.9.37

Tomas Lehuta
[http://lharp.net]


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim
Kremens
Sent: Monday, November 14, 2005 4:54 PM
To: [EMAIL PROTECTED] Figleaf. Com
Subject: [Flashcoders] Eclipse/FDT/Subclipse weirdness

This might be slightly OT, as it doesn't directly deal with code. But it
does concern tools of the trade, so here goes...
I'm using Eclipse, FDT and Subclipse. Occasionally, a project just 'goes
bad.' It seems like something is getting corrupted, and I don't know what
it
is.
Here are the symptoms:
Use project for a while - all is fine.
Click refresh.
Get 'An error occurred during Refresh' message with *no additional
information*. (yay error handling!) From this point on, the project is
completely shot - you can't do much if you can't refresh... Checking it
out
again from the repository doesn't work.
The only way I can fix the project is to:
1. Detach it and all of its linked libraries from SVN control (and delete
SVN information from the system).
2. Delete the project and the libraries it links to from the Eclipse
workspace (without deleting all of the files from the system).
3. Re-import the project and various linked libraries, thereby rebuilding
the project.
Of course, I then lose all of my SVN history.
Needless to say, this is really a bummer
Anyone experienced anything like this? The key would be the meaningless
'An
error occurred during refresh' message.
Thanks,
Jim Kremens
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Math.random()

2005-11-17 Thread Ron Wheeler
The randomness of Math.random is one possible source of concern but  
what you do with the random number to produce a dice roll is more 
important. It is easy to make a simple mistake in the mapping of a 
random number to an integer between 1 and 6 that results in a skewed 
distribution.


Gamblers always complain about dice rolls even if you use real dice.
Do they have a specific complaint about the rolls - never getting any 
doubles - too many doubles - too many double-sixes,

no rolls with 5 in them, always the same sequence of rolls??

If the complaint is that their opponent is always getting better rolls, 
you can fiddle with Math.random until you die of boredom and not fix the 
problem.


What is the suspected or reported problem?
Play a few games and record all of the rolls, put them in a spreadsheet 
and do some simple tests.
A basic statistics book will tell you how to test the randomness. 
Looking for patterns is harder but if the players claim that there are 
repeated sequences, you should see them pretty easily.


Ron

Ian Thomas wrote:


If this was connected to prizes/tournaments, from what I remember it depends
on whether the user pays to play or not; and the laws of the country that
your site is hosted in.


From a UK perspective, if the user paid to play you'd need a gaming and/or

gambling license (gaming for fixed-odds, gambling for games of skill - I
assume Backgammon would come under the latter).

I know that to get one of those licenses in the UK (for interactive TV
gaming, which is why I'm being a bit woolly about the website thing) we
needed to buy a much better random number generator. In fact - a hardware
random number generator, with certification that we could show the
authorities.

This Wikipedia entry explains about hardware generators:
http://en.wikipedia.org/wiki/Hardware_random_number_generator

If your game isn't pay-to-play, I _think_ you'd be in the clear and could
use whatever randomness your client was happy with; as essentially your
client would be giving away stuff for free. If it is pay to play, you need
to check it all out with the lawyers, I'm afraid.

Hope that's helpful,
Ian


On 11/17/05, Dimitrios Bendilas [EMAIL PROTECTED] wrote:
 


Hello,

I have built a Backgammon game in Flash for a client.

He is starting to ask questions about the randomness
of the dice, because a registered member of the game said
he's recorded the stats of about 100 backgammon games
and found that the numbers generated are not so random.
(I haven't seen the data, so I don't know if that's true)

I know that Math.random() is not the best random generator
in the world. I also know that a computer can never produce
*really* random numbers.

So, my question is this: Should I use some other algorithms
for generating the value of the dice? Or Math.random()
is really good enough? What if this game was connected
to prizes, tournaments etc? Would I have to find something
better then?


Thank you
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Math.random()

2005-11-17 Thread Ron Wheeler
You would not worry about someone being able to hack the client and 
modify the roll generation to allow the player to choose the desired 
roll and then send it (or the play result - move) to the server or just 
substitute the client with a client that lets rolls be specified?


I am less worried about hacking the random number generator since if you 
want a double five it is going to be easier to specify that than to go 
to the trouble of specifying a random number that is going to generate a 
double six roll.


I think that you want all play that should not be under control of the 
player to be done on the server. That way, there is no chance of a rogue 
client beating the system.


Ron


Jon Bradley wrote:


On Nov 17, 2005, at 2:56 PM, Ron Wheeler wrote:

If the game is for money and the client side code can be hacked for 
profit, you need to move more of the game engine onto the server and 
only present results and table state on the client side.
Dice rolls can not be generated by the client in that case. Your 
client could be easily replaced by a version of your client that lets 
the player chose his own rolls which makes Backgammon not fun for the 
opponent but a really lucrative way to pass an afternoon for the guy 
choosing his rolls. You probably only need to chose 3 or 4 rolls 
during a game to win almost every time. (An interesting test on a 
real board for someone with time to kill and a friend who does not 
mind losing.)


Ron



Actually, part of the roll work can be done client-side. The issue is 
with the seed to any particular random number generator. One needs a 
secure hash of two generated keys from the server, then using a 
client-side random number algorithm with this key as the state input, 
this is completely possible.


Check out my conversion of the mersenne twister algorithm for things 
like this (minus the crypto part with a server). The secure hash part 
is fairly easy to implement. Aside to this thread - never use 
Math.random() because it's inherently insecure.


http://magicsnacks.com/shiftedpixels/?p=8


Jon Bradley
Visual Effects / Interactive / Animation
Post Central, Inc.
[EMAIL PROTECTED]

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Xml manipulation crash player (7)

2005-11-21 Thread Ron Wheeler

What do you mean by crash?
Ron

Flapflap wrote:


Hi there,

We got a big trouble in a project that manipulate a lot some xml object :
We came at point that if we do some manipulation (mostly appendChild) 
on xml object the player crash...

It's a flash mx 2004 project.
The thing that is very scary is that it's not crash every time with 
the same number of operation (but always on the same operations)
and it crash faster on the ide that if we launch the swf in the 
standalone player..


Have you some experience to share about that kind of trouble ? Some 
thing to watch more specificly ?


Thanks...


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Xml editor

2005-11-22 Thread Ron Wheeler

XMLBuddy - free plug-in to Eclipse
XMLSpy Home version - free and has Eclipse plug-in
XMLSpy Pro for serious XSLT work.

Ron

Patrick Matte wrote:

What software do you people use for editing xml for your flash projects ? 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Planet Earth MC

2005-12-23 Thread Ron Wheeler
If you change the size of the movie clip on the screen does the effect 
change?


Perhaps you are just getting a preview of the effect of global warming 
on the Great Lakes.


Ron

Mendelsohn, Michael wrote:


Hi list...

[Studio 8, XP, Illustrator CS2]
I have a MC of a rotating planet earth.  Frame to frame, all the
continents are there, but when it gets on the stage, visual anomalies
occur: the Great Lakes disappear for a frame, or some weird horizontal
lines appear -- always at the same spot in the animation.  These
oddities are not in any frame of the MC.  I've tried to check bitmap
caching on this MC, but that doesn't seem to make a difference.  Any
ideas about what is happening are appreciated.

Thanks,
- Michael M.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Artificial Life flash resources

2005-12-29 Thread Ron Wheeler
Are we talking about what effect programming in Flash has on your social 
life or something else?


Can you be more specific about what kind of life and what sort of 
behaviour you are hoping to exhibit.

Plant life is pretty easy to model unless the wind is blowing.
Talking humans are pretty easy unless you want them to wander around at 
the same time.

A tank full of realistic tropical fish is a bit harder.
An interactive animated model of the World Cup football finals is going 
to take you a while.


Ron

Weyert de Boer wrote:

Does anyone here know some nice examples and/or resources about 
Artificial Life and Flash?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Documenting my code

2006-01-19 Thread Ron Wheeler
If you want to share your config, perhaps you could post it to this 
thread. There are a number of us using Doxygen and its Eclipse plug-in.


I would like to see someone write a Doxygen pre-filter for AS. That is 
all that is required to get full ActionScipt support in Doxygen. Filters 
have been written for other languages that are much further away from 
Java than ActionScript.


Ron

Johan Lopes wrote:


I've used Doxygen for a while to document several high-profile
projects and I love it.

 


The output I got from it indicated that Doxygen didn't understand AS2, and was
trying to parse the .as files as if they were Java (i.e. class names were
com.something.MyClass rather than just MyClass - that sort of behaviour).
   



True. If the OPTIMIZE_OUTPUT_JAVA tag is set to YES. Doxygen will then
generate output that is more tailored for Java. For instance,
namespaces will be presented as packages, qualified scopes will look
different, etc. If you just run it with all the default parameters,
the packages will look very weird (at least to my Java eyes) i.e.
com::MyCompanyName::MyProjectName::MyClassName. I like it when it's
dot-syntaxed.

Currently, Doxygen doesn't officially support AS. It works best when
set to treat AS as a Java-like language, but there's some minor issues
with postcolon syntax (:Void etc) especially when you turn on  the
show-source-in-the-documentation-feature --- it's called something
else but you get the idea.

I've used most of the documentation tools mentioned on this list and
there's always trade-offs, even with commercial ones. I know Doxygen
doesn't support AS but I (and most of my clients) love the UML-like
diagrams it spits out so I can live with it's other quirks.

I used to use VisDoc but not anymore cause it only runs on Macs. Used
BLDOC for a while and find it stops generating beyond 5000 line of
code (correct me if I'm wrong). My projects are way too big for it and
then I have draw the diagrams with packages such as Poseidon, ArgoUML
or gModeler (looks good but not useful on large commercial projects).

In Doxygen, have you tried turning HIDE_SCOPE_NAMES to YES. It's on NO
by default.

'
If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
will show members with their full class and namespace scopes in the
documentation. If set to YES the scope will be hidden.

'

Mail me off-list if you're interested and I'll share my Doxyfile
(though I'm not running cron jobs).

Time permitting I'm myself very interested to see how easy it would be
to mold Doxygen to parse AS classes in a proper fashion. After all the
source code is there. It's all open-source and well documented!

Another thing to note is that there was a mention at the Spark
Conference in Europe that MM-Adobe is considering releasing the
documentation tool their Dev team uses internally. We'll see, perhaps
with the next big release of the Flash IDE? :)

HTH,

/Johan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Documenting my code

2006-01-19 Thread Ron Wheeler

Thanks

Ron

Johan Lopes wrote:


Hi Ron,

Here's a link to download from my Dev server (file size ~14K)

http://www.statik1.com/FlashCoders/DoxyFile.zip

Cheers,

/Johan

On 1/19/06, Ron Wheeler [EMAIL PROTECTED] wrote:
 


If you want to share your config, perhaps you could post it to this
thread. There are a number of us using Doxygen and its Eclipse plug-in.

I would like to see someone write a Doxygen pre-filter for AS. That is
all that is required to get full ActionScipt support in Doxygen. Filters
have been written for other languages that are much further away from
Java than ActionScript.

Ron

Johan Lopes wrote:

   


I've used Doxygen for a while to document several high-profile
projects and I love it.



 


The output I got from it indicated that Doxygen didn't understand AS2, and was
trying to parse the .as files as if they were Java (i.e. class names were
com.something.MyClass rather than just MyClass - that sort of behaviour).


   


True. If the OPTIMIZE_OUTPUT_JAVA tag is set to YES. Doxygen will then
generate output that is more tailored for Java. For instance,
namespaces will be presented as packages, qualified scopes will look
different, etc. If you just run it with all the default parameters,
the packages will look very weird (at least to my Java eyes) i.e.
com::MyCompanyName::MyProjectName::MyClassName. I like it when it's
dot-syntaxed.

Currently, Doxygen doesn't officially support AS. It works best when
set to treat AS as a Java-like language, but there's some minor issues
with postcolon syntax (:Void etc) especially when you turn on  the
show-source-in-the-documentation-feature --- it's called something
else but you get the idea.

I've used most of the documentation tools mentioned on this list and
there's always trade-offs, even with commercial ones. I know Doxygen
doesn't support AS but I (and most of my clients) love the UML-like
diagrams it spits out so I can live with it's other quirks.

I used to use VisDoc but not anymore cause it only runs on Macs. Used
BLDOC for a while and find it stops generating beyond 5000 line of
code (correct me if I'm wrong). My projects are way too big for it and
then I have draw the diagrams with packages such as Poseidon, ArgoUML
or gModeler (looks good but not useful on large commercial projects).

In Doxygen, have you tried turning HIDE_SCOPE_NAMES to YES. It's on NO
by default.

'
If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
will show members with their full class and namespace scopes in the
documentation. If set to YES the scope will be hidden.

'

Mail me off-list if you're interested and I'll share my Doxyfile
(though I'm not running cron jobs).

Time permitting I'm myself very interested to see how easy it would be
to mold Doxygen to parse AS classes in a proper fashion. After all the
source code is there. It's all open-source and well documented!

Another thing to note is that there was a mention at the Spark
Conference in Europe that MM-Adobe is considering releasing the
documentation tool their Dev team uses internally. We'll see, perhaps
with the next big release of the Flash IDE? :)

HTH,

/Johan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Documenting my code

2006-01-20 Thread Ron Wheeler

Before you write one, please have a look at writing the filter for Doxygen.

Ron

Ian Thomas wrote:


Looks good - but sadly doesn't support inheritance:

http://www.senocular.com/projects/ZenDoc/doc/#manual_limitations

Which is a real shame.

The hunt for the perfect documentation tool goes on. :-)

(At this rate I might be forced to write one. ;-) )

Ian

On 1/20/06, Duncan Reid [EMAIL PROTECTED] wrote:
 


Not sure if this has been mentioned but there is also ZenDoc written in
php
that has multiple output modes based on templates, i've played a little
with
the demo and it looks promising, plus it's free and open as far as i can
tell...

http://www.senocular.com/projects/?project=ZenDocpage=demo

Dunc
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: working with numbers loaded from XML was [Flashcoders] if not working. (urgent help again?)

2006-02-04 Thread Ron Wheeler


It is hard to see how they are brought in from XML in your code extract.

Have you run the text through parseInt to convert them from strings to 
numbers?




Ron


dls wrote:



I am really stumped and desperate here!


seem to be having trouble working with variables brought in from XML
the value of the variables are numeric.

when I reference them in code for comparison, they don't seem to work

example
_root.first  traces to show 5

_root.second traces to show 5

if (_root.first != _root.second) {
do something
};

should fail, but seems to behave as if true

I'm thinking it's a problem with referencing the xml object instead of 
a numerical value, but I'm at my wits end here.


--dan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: working with numbers loaded from XML was [Flashcoders] if notworking. (urgent help again?)

2006-02-05 Thread Ron Wheeler

What does Number(011)  return?

Ron

Karthik wrote:


At least when working with XML, I have found Number() to be fairly inconsistent 
in converting strings to numbers.  parseInt() seems to work everytime.
   



How exactly? An example would be good.

I find Number a lot more suitable and correct i.e. the aim is to
_convert_/_cast_ a string into a number. I don't want to _parse_ the
number out of a string.
e.g.
Number(1a) will return NaN.
parseInt(1a) will return 1.
Number(1 ) will return NaN.
parseInt(1 ) will return 1.

So.. Number():
a) doesn't mangle the data
b) depends on valid input - no whitespace etc.
c) is faster

-K
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Outsourcing

2006-02-10 Thread Ron Wheeler

For starters, fix up your www site:

   More English content or a separate English language version
  
   Make your sample applications look more like finished products or 
more clearly identified as templates.


   If you have more demo templates to show off your skill, include them 
in your portfolio.


   Include a clear description of what type of work you are looking for 
or what services that you offer.


   Reference projects would help.

   Make sure that all of your links work. (TV... just goes to a 
directory listing)


Your current site does not give any confidence that your work will be 
correct or properly finished. It is working against you at the moment.


I hope that these ideas help you to get more of the work that you want.

Ron

Anggie Bratadinata wrote:


JesterXL wrote:


I'm assuming the USA is a developed country.


LOL

Yes.  Tons of work is outsourced; it's the same with manufacturing; 
if the same job can be done cheaper in the long run, outsourcing is a 
good idea. There is a high demand for Flash, yes, but a higher demand 
for Flex is on the horizon, mainly because bigger projects are 
typically done with Flex, and as such, companies are needed to take 
responsibility with those projects vs. individuals.



I've been working remotely for a couple of webdesign firms in US and 
Australia and I think the reasons they take me in are my rates which 
is a lot cheaper, my eyes, and technical skill. Also, we knew each 
other very well, way before they take me into their projects.


I'm wondering, what more does it takes to push myself further into the 
outsourcing world? Certifications, perhaps?




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Outsourcing

2006-02-11 Thread Ron Wheeler
I think that this will be a big help in gaining credibility regarding 
your abilities. People are looking for someone who can complete mandates 
in a professional way.
It is hard enough to work in an outsourcing relationship without having 
to worry that the work will be left in an unfinished state.
The quality of the English may also be important for those who need 
someone to be able to check text. It also is a bit of a clue as to how 
hard it will be to work with someone over a distance where written 
instructions and written progress reports will be the norm.


Good Luck

Ron



Anggie Bratadinata wrote:


Ron Wheeler wrote:


For starters, fix up your www site:

   More English content or a separate English language version
 Make your sample applications look more like finished products 
or more clearly identified as templates.


   If you have more demo templates to show off your skill, include 
them in your portfolio.


   Include a clear description of what type of work you are looking 
for or what services that you offer.


   Reference projects would help.

   Make sure that all of your links work. (TV... just goes to a 
directory listing)


Your current site does not give any confidence that your work will be 
correct or properly finished. It is working against you at the moment.


I hope that these ideas help you to get more of the work that you want.



Hehe :) thanks for checking my site, Ron . I'm still working on it, 
only the design-portfolio.html has been completed.




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How much do you charge for a Flash application?

2006-02-12 Thread Ron Wheeler

Figure out how long it is going to take.

Often it makes sense to have a 2 (or more) stage process - 
requirements/design then implementation.


This protects both you and the client.
The client knows what he is going to get and how much it will cost - you 
know what work you actually have to do.
You still have to estimate the first phase based on less than a complete 
story but at least you are not jumping into the unknown for a big amount.


Rates depend on where you live and what people make who do this sort of 
work.


If you need to make $70,000 per year in order to own a car and a house 
and eat fairly regularly, you have to change more than someone who can 
live very well on $20,000 per year. If you think that you can move from 
Indonesia to New York City and charge the same rates, you will be in for 
lots of surprises.


Sometimes your rates also depend on your relation to the customer and 
how much extra they are willing to pay to deal with someone that they 
know and trust; someone who understands their needs can save them a lot 
of their time in a complex project.


Anggie Bratadinata wrote:


Mates,

I have a prospective client who wants to have a Flash application 
(AMFPHP). This is the first time for me so I need to know how much I 
should charge him.

Some important points to be considered:
1. this is my 1st *commercial* AMFPHP project
2. I used to charge : $1500 - $2000 for PHP dynamic sites, $500 - 
$1500 for Flash sites/CDROMs, $500 - $1000 for static CSS-P websites
3. he also wants to have a Dashboard for viewing critical business 
statistics


Based on my rates above, how much should I charge him for an AMFPHP 
application?


TIA,


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] CVS/VCS confusion

2006-02-15 Thread Ron Wheeler

I hope that you are putting Eclipse in front of this.
That really makes the choice of repository unimportant.
h
Ron

Karthik wrote:


Could anyone recommend some basic articles and/or tutorials on this
subject? Or perhaps suggest approaches that have worked best in your own
work environment?
   



http://cvsbook.red-bean.com/
http://svnbook.red-bean.com/

Best places to start :)

-K
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] UML tool for AS2

2006-02-18 Thread Ron Wheeler

ArgoUML is a great free UML tool from www.tigris.org
There is an Actionscript code generator available.

Janis Radins wrote:


Hye ppl!

I've been searching for decent AS2 UML tool but had no luck.
Could anyone share theyr good expieriences of some UML tools well suited for
AS2 ?

PS
Yes I've seen Grant Skinner Gmodeler, idea is good but it's still way too
raw.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash connecting to a database - all running on a DVD-ROM

2006-02-23 Thread Ron Wheeler

Are all of the data and referenced files on the DVD?

We have done a database of Personal Protective Equipment for first 
responder with pictures of each piece of equipment and full descriptions 
on a CD. Built a search engine in Flash to select items based on several 
criteria.

The pictures where stored as files and the database was just an XML file.

Ron

nik crosina wrote:


*Flash connecting to a database - all running on a DVD-ROM?
*
Is it possible? I am looking into doing exactly that for a massive trainig
programme that needs to access and display a large number of modules in
treeView (Flash Tree component) where each node connects to a record in the
database that contains information the content (pointer to powerpoint,
video, excel, doc, etc file) as well as subtitles (if the content is a
video)

If that description is too confusing then an answer to my basic question
owuld be fantastic!!

--
Nik C
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Installing Custom Ant Tasks in Eclipse

2006-02-23 Thread Ron Wheeler
You might as this in the Ant forum. Lots of good Eclipse and Ant guys 
there who can probably see where you have gone wrong.



user@ant.apache.org

Ron
John Mark Hawley wrote:


There doesn't seem to be a simple tutorial for actually getting custom Ant 
tasks installed and running. Even as2Ant leaves you out to dry when it comes to 
actually getting it to work the first time. Any help?

Has anyone else on the list experimented with the Prebob preprocessing Ant 
task, or custom Ant tasks in general in Eclipse? I can't seem to get mine to 
work...I have a feeling it's because I don't have the java SDK installed, and 
no one else is running into this because mot of the Flash devs fooling around 
with Ant and Eclipse in the first place are also developing Java occasionally. 
(UPDATE: well, installing the SDK, and making sure Ant could see tools.jar did 
squat.)

In Eclipse-Preferences-Ant I can see the preprocessor task is defined.

Vanilla Ant builds are working 100%, but ant tasks installed as Eclipse plugins 
don't work when built, they just croak and give a massive, unhelpful Ant error.

--snip from build.xml---

!-- adding this does nothing
taskdef name=preprocess classname=com.objfac.prebop.ant.PreprocessorTask/
--

target name=preprocess description=Run preprocessor
   !-- perform preprocessing steps here --
   echo message=Allegedly running preprocessor/
   preprocess indir=${src_dir} outdir=${targetdir} out=merge 
except=${skip}
  !-- testing junk --
  var name=smell value=rose/
  filetype commentend=*/ commentbegin=/* extensions=as/--
   /preprocess
/target

--end snip---

--partial output---

preprocess:
[echo] Allegedly running cpp or equivalent

BUILD FAILED
C:\PATH_HIDDEN_TO_PROTECT_THE_INNOCENT\buildPreprocess.xml:24: Could not create 
task or type of type: preprocess.

Ant could not find the task or a class this task relies upon.

(GIANT ERROR MESSAGE SNIPPED)


Any suggestions?

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] What does this PATENT mean??

2006-02-24 Thread Ron Wheeler
The US Patent Office is a mess and I suspect that most software patents 
like this one are not valid since their are lots of examples of prior 
art. This patent would be challenged by every big company if the owners 
ever tried to enforce it. They would have a hard time proving that they 
were the first to build a RIA.


There is a bigger problem in the making.
The proposed US law to move the patent process to a first-to-file 
basis will be the end of open source development and be a big impediment 
to any custom software work.


This is a serious issue and the American business community had better 
get their act together and put a stop to that proposed law.


What the new law appears to do is to say that it does not matter who 
invents something, it only matters who files for the patent first.
This will mean that anyone can monitor open source projects looking for 
new ideas and then file patents on them.
They only have to extract the core of the idea, describe it and go. They 
do not have to disclose how they discovered it and only have to worry 
that someone else is applying for the same stolen idea at the same time.
The original author then has to notice that the patent application has 
been filed and protest to the Patent Office within some delay (60 days 
or some relatively short period). This means that every open source 
project will have to employ a full-time patent lawyer to protect the 
work. Every little detail will have to be patented to protect your right 
to use the code that you write and you will have to monitor each day's 
patent filings and prepare a legal objection to each patent that is 
filed on ideas already in common use.


This is obviously being backed by the big companies(IBM, Microsoft,SCO) 
and patent squatting operations that can afford to set up a poaching 
operation to find new ideas from open source projects and patent them 
before the authors realize that the idea is worth patenting.


The impact on American business will be huge over the long term., if you 
think of all of the software that is based on open source and the 
chilling effect that this will have on custom software development.
You will not be able to write a program for a client or within an IT 
department without patenting everything that you suspect might be 
innovative for fear of waking up in 2 years to find out that someone is 
knocking on your door saying that they patented the process long after 
you wrote the program and that you or your employer or your customer are 
in violation of their patent even if you wrote the code long before they 
applied for a patent.
You can not be sure when you write the code even if you check for 
existing patents.
Each programmer will have to provided with a patent lawyer to do the 
searches and prepare the documentation to file patents and to negotiate 
license agreements for ideas already patented. The cost for business 
will be huge.


This law is slowly being pushed through the US Congress - drug companies 
seem to be behind this as well.


If you are an American or have American clients, urge them to write 
their elected representatives to warn against this law.
If you are outside the US, write to your elected representatives to urge 
them to protest to the US government and start the process to cease to 
recognize US Patents based on this proposed law.


If we wait for the law to be passed, there will be years of chaos and 
endless litigation before the law can be repealed.


This document promotes first-to file.
http://www4.nationalacademies.org/news.nsf/isbn/0309089107?OpenDocument

This is a blog that discusses the progress of the bill through Congress.
http://promotetheprogress.com/archives/2006/01/more_smoke_sign.html

Ron

stefano wrote:


I found it while browsing, read it and remained stuck...

Take a look, please

http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO1Sect2=HITOFFd=PALLp=1
u=/netahtml/srchnum.htmr=1f=Gl=50s1=7,000,180.WKU.OS=PN/7,000,180RS=P
N/7,000,180

...It sounds strange to me (I am from Italy)...but...If this
applies...wow...Will we have to pay for royalties ??

I know the above is not CODING MATTERS but...

Bye

Stef


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] sorting a collection of points clockwise

2006-02-26 Thread Ron Wheeler
Calculate the angle between the center  and the point,  and subtract 90 
to get 12 o'clock to 0degrees and add 270 to negative numbers to put 
them between 270 and 360 degrees.


Ron


Bart Wttewaall wrote:


Hi List,

I'm looking for an algorithm that sorts a collection of points
counter-, or clockwise by (probably) means of comparing each point to
the center point of the collection. Calculating the centerpoint wasn't
too hard, but I'm stuck at the comparing part. It doesn't matter which
point the returning array begins with, but I'd like the method to be
as fast as possible since it will be called every frame.

I'm not asking for a complete solution (although appreciated) but for
a few tips how to tackle this one.

Thanks,
Bart Wttewaall
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] file reference

2006-03-03 Thread Ron Wheeler
Can you just put your list of files in an XML file and present that to 
the user?
You can map the file references to wherever you want and provide good 
descriptions rather than just file names.


If you just want the names, you could probably generate the XML index 
with Ant or some other scripting language.


Ron



Andreas Rønning wrote:

I have an app that takes an xml file and displays it in a certain way.
The user needs to be able to choose from a range of XML files, and i 
thought filereference would let me use a classic browse-window to 
reference files to be loaded and parsed. However, apparently file.name 
only gives the bare file name and not a path to the file.


Is there a way to get around having to hardcore a directory for this?

- A
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] 2D first person shooter

2006-03-05 Thread Ron Wheeler

Try using google programming Flash games
You will get lots of references and ideas.

http://fgpwiki.corewatch.net/index.php/Main_Page is the Flash Game 
Programming Wiki


Just a start

Ron

Samuel Santos wrote:

Hi Guys

I try to find in google some code for a 2D First Person Shooter

there is anyone know where I get tutorials or codes about?

thanks in advance

see ya all

Samuel
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Strange behaviour from modulus operator

2006-03-06 Thread Ron Wheeler
How much closer to zero where you expecting? 5 to the power of 10 to the 
-14 is zero to the limits of  modern PCs.


If you want to deal with integers make the numbers integers. If you do 
your math in floating point with a mantissa with lots of bits, you are 
going to get some bits left over at the end.
The machine is doing all of its math in binary and some/many decimal 
numbers can not be represented exactly in binary.
Think of 1/3+1/3+1/3 != .33+.33+.33 It is not just machines that have 
the problem.


You can never compare a floating point number to zero and expect your 
code to work reliably. Convert the result of modulus to an integer and 
compare that to 0.



Ron




Paul Steven wrote:

Experiencing a strange problem using the modulus operator.

Inside a function I have the following code:

var vValue1 = passed_MC._x - this.Maze_Horizontal_offset;
var vValue2 = 36;

var vTheResult =  vValue1 %  vValue2;

trace (vValue1 =  + vValue1);
trace (vTheResult =  + Number(vTheResult));

And here are the results I am getting from the trace statements:

vValue1 = 324
vTheResult = 5.6843418860808e-14



Surely it should give me a result of zero as 36 goes into 324 exactly 9
times.

The weird thing is if I just hard code the values as follows, it works

var vValue1 = 324;
var vValue2 = 36;

var vTheResult =  vValue1 %  vValue2;

trace (vTheResult =  + Number(vTheResult));

-

And here is the result of the trace statement:

vTheResult = 0

I am therefore totally confused!!!

Any help much appreciated. I am publishing for Flash 7 with Actionscript 1.0

Thanks

Paul


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] random concatenated txt question

2006-03-06 Thread Ron Wheeler

Does this need to be inside the loop?

if (initialTxt == undefined) {
  initialTxt = '';
 }


Why not clean up the code by typing it fully to reduce or eliminate the 
possibility of silly errors.

initialTxt is never declared.

Why is this myTxt not on _root with the other one.

_root.onEnterFrame = function() {
uu = random2();
myTxt_txt.text = uu;
 trace(myTxt_txt.text: +myTxt_txt.text.length)


I have a feeling that if you clean up the code, it will suddenly start 
to work.


Ron

murder design wrote:

well, i have localized x in the for loop, and changed the value in the
single number generator from x to singleLetter. that seems to have been a
giant part of the problem. however now, the code produces one solid string.
blinks out. no text, then freezes up.




ascii = new Array(a, b, c, d, e, f, g, h, i, j,
  k, l, m, n, o, p, q, r, s, t,
  u, v, w, x, y, z);

function random1() {
 singleLetter = ascii[random(ascii.length)];
 return singleLetter;
}

function random2() {
 yy = _root.myTxt_txt.length;
 for (var x:Number = 0; x  yy; x++) {
  j = random1();
  if (initialTxt == undefined) {
   initialTxt = '';
  }
  initialTxt += j.toString();
 }
 return initialTxt;
}

_root.onEnterFrame = function() {
 uu = random2();
 myTxt_txt.text = uu;
  trace(myTxt_txt.text: +myTxt_txt.text.length)
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Heap Size Eclipse

2006-03-07 Thread Ron Wheeler

Which VM are you using?
You might want to show the Eclipse startup command.

Ron

[EMAIL PROTECTED] wrote:

I have some problems using eclipse lately. Problems start when launching
MTASC for compiling a huge project. The heap size goes up to 253M of
254M, and remains this high, even after mtasc has compiled. I tried to
set maximum heapsize to 512M, but then it seems as heapsize goes up to
512M, and problems are even bigger (computer slows down).

 


Is there a Java Virtual Machine that can do better, and what has MTASC
to do with the heap size...?

 


Met vriendelijke groeten,
Lieven Cardoen
MULTIMEDIALOFT | POINT X
Engelse Wandeling 2 K18v | 8500 Kortrijk | T +32 (0)56/36.11.97

// communicatie bij voorkeur op [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 

 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Doh! Converting a floating point string to number loses precision

2006-03-07 Thread Ron Wheeler


The way you deal with it will depend on what you want to do.

If you want to see is something is close enough to zero you subtract 
them and check the difference


if (Math.abs(i - 952.86)=0.1){trace(close enough for me)}else 
{trace(Not the same)};


if (Math.abs(i - 952.86)=0.01){trace(Really close )}else 
{trace(Not yet the same)};


If you use enough leading zeros you will get code that never evaluates 
to true so do not get wild with leading zeros.


As long as you remember that numbers that are not explicitly cast as 
integers have to be treated with care, you will be alright.


This problem has been around the computer world for the last 50 years 
and will be around for some time to come, so we have to just deal with it.



Ron

Yotam Laufer wrote:

-1.13686837721616e-13 is as close to zero as you get matey 13 places
after the decimal...

On 07/03/06, Boon Chew [EMAIL PROTECTED] wrote:
  

How do you usually deal with the loss in precision (a bit oxymoron since
floating point can't be exactly represented) when converting a floating
point string to a number?

var s:String = 952.86;
var i:Number = parseFloat(s);
trace(i);
trace(i - 952.86);   // Not zero!


- boon




-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






--
Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype:
ubermutt
  



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Doh! Converting a floating point string to numberloses precision

2006-03-08 Thread Ron Wheeler
You could also implement a decimalNumber Class that does its arithmetic 
in decimal.
You need to carry guard digits through calculations to ensure that 
rounding is done properly.
You can make the numbers as large as you want with whatever precision 
you want.


That was one of the winning technology bits that IBM had in the 1960s 
and on. Their mainframe processors (1400,360,370 series) actually 
supported decimal number format with arithmetic operations that made 
financial applications easier to deal with and made the COBOL decimal 
structures work well. This is one of the ways that they dominated the 
financial world.


Ron

JesterXL wrote:
Late in the thread, and suck at math, but there was discussion about this on 
Flexcoders too.  Something about how certain numbers are only so big in 
Flash Player, and there was talk of porting BigInt from Java.


Might want to check the archives there, or join, and ask since more Adobe 
peeps float around there.


- Original Message - 
From: Boon Chew [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, March 08, 2006 12:03 AM
Subject: Re: [Flashcoders] Doh! Converting a floating point string to 
numberloses precision




I am aware of this issue in precision loss in floating point computation. 
But here we are talking about converting a number from string back to 
number.


Why is it so hard to implement this correctly in the VM to ensure that the 
string  when converted back to number is representated exactly the same as 
the number version?


Out of curiosity I implemented this piece of logic in C++ and the resulting 
floating point number represented in string is exactly the same after the 
conversion.


Looks like there is a bug in the string to number conversion.

- boon

Ron Wheeler [EMAIL PROTECTED] wrote:
The way you deal with it will depend on what you want to do.

If you want to see is something is close enough to zero you subtract
them and check the difference

if (Math.abs(i - 952.86)=0.1){trace(close enough for me)}else
{trace(Not the same)};

if (Math.abs(i - 952.86)=0.01){trace(Really close )}else
{trace(Not yet the same)};

If you use enough leading zeros you will get code that never evaluates
to true so do not get wild with leading zeros.

As long as you remember that numbers that are not explicitly cast as
integers have to be treated with care, you will be alright.

This problem has been around the computer world for the last 50 years
and will be around for some time to come, so we have to just deal with it.


Ron

Yotam Laufer wrote:
  

-1.13686837721616e-13 is as close to zero as you get matey 13 places
after the decimal...

On 07/03/06, Boon Chew  wrote:



How do you usually deal with the loss in precision (a bit oxymoron since
floating point can't be exactly represented) when converting a floating
point string to a number?

var s:String = 952.86;
var i:Number = parseFloat(s);
trace(i);
trace(i - 952.86);   // Not zero!


- boon




-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  


--
Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype:
ubermutt



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze.

-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search

Re: [Flashcoders] getURL not working

2006-03-08 Thread Ron Wheeler
Beware that one of the methods (GET or POST) has a server dependent 
limit on the size of message that can be sent. It is very small usually. 
(2000 character range)
Flash supports both methods except when you are testing. Then it only 
supports the wrong one.
Read getURL docs for more information. Read them very carefully, 
including the fine print.


Ron

hidayath q wrote:

Hi all,

I have doubt in getURL method.Im using a XML in a file which is more than
500 nodes.
i will be creating new nodes dynamically in XML and i want to write it to a
text file using PHP.
im using the getURL method inside press of a button component to transfer
the data from flash to PHP.but i cant get.can anyone of pls tell me what
wrong in it.

Regards,
S.Hidayath
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Doh! Converting a floating point string to numberloses precision

2006-03-08 Thread Ron Wheeler



Jon Bradley wrote:

On Mar 8, 2006, at 12:13 AM, JesterXL wrote:

Something about how certain numbers are only so big in
Flash Player, and there was talk of porting BigInt from Java.


Far as I know, number accuracy in Flash is +/- 1e16 and no better. I 
believe that's 32-bit precision.


On Mar 8, 2006, at 10:10 AM, Ron Wheeler wrote:
You could also implement a decimalNumber Class that does its 
arithmetic in decimal.
You need to carry guard digits through calculations to ensure that 
rounding is done properly.
You can make the numbers as large as you want with whatever precision 
you want.


Not in Flash. Flash is limited in it's numeric accuracy, either with 
decimal or integers.
Of course you can. Flash is not limited in any practical sense in the 
amount of data that a Class can carry or the complexity of the methods 
that you can write.


That was one of the winning technology bits that IBM had in the 1960s 
and on. Their mainframe processors (1400,360,370 series) actually 
supported decimal number format with arithmetic operations that made 
financial applications easier to deal with and made the COBOL decimal 
structures work well. This is one of the ways that they dominated the 
financial world.


Back in the 60s maybe. There wasn't anything else at the time that 
could do it.
I am not sure if anyone else has this even today. IBM still has a pretty 
big chunk of the mainframe and enterprise server market. They pretty 
much destroyed their competition with that line of products.


Now, it's not really an issue as numeric accuracy is fairly easy to 
deal with and there are many different ways to do it in a variety of 
languages. Flash just isn't suited for it.


- Jon

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Documentation Generator

2006-03-09 Thread Ron Wheeler

Doxygen is a free multi language Javadoc generator with an Eclipse plug-in.
Generates API style docs and Class diagrams.

It is keeps you in the mainstream of programming with one tool for both 
client and server documentation.

Supports all of the JavaDoc notational bits.

Ron

Michael Trim wrote:

Which is the preferred documentation generator of choice?

Not too worried about cost (within reason!).

Have looked at

http://www.as2doc.com/index.php?p=13
http://www.blinex.com/products/bldoc 
(good but more than 5000 lines of code)


Any other contenders / recommendations?

TIA 

Michael 


Michael Trim
Senior Producer
Instant Business

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Find Nearest Color?

2006-03-16 Thread Ron Wheeler
If a color can be treated as a point in a 3-d cube 256 units on each 
side, you can use the formula in this reference

http://www.uwm.edu/~ericskey/TANOTES/Ageometry/node10.html
to calculate the distance between 2 colors.

I have not tried this but it would seem logical that this would work

Ron

elibol wrote:

K, here is some better math for getRGB, performance will probably be
important:

return [c16, c8~0xFF00, c~0xF00];

You can also try using the ColorTransform or Color class to get the rgb
values, except they might be slower than getting the raw math right.

M.

On 3/15/06, Josh Buhler [EMAIL PROTECTED] wrote:
  

Thanks - I'll give it a shot and see how it goes.


- Josh

On Mar 15, 2006, at 3:10 PM, elibol wrote:



I tried comparing the hex values directly, but there were
inaccuracies,
maybe the same ones you've been having. I think since the value of a
particular color precedes with a 0 even when it's below 17(0F), the
preceding 0 causes a shifting in the comparison. It would, for
example,
cause 0x00 to seem farther to 0x123456 than 0x00FF00, where
visually you
can see clearly that black is closer to 0x00.

btw in my example, var a = 0x12345 where it should be 0x123456.

The numbers hold to be accurate after correcting this typo.

On 3/15/06, Josh Buhler [EMAIL PROTECTED] wrote:
  

I'm working on a project that requires that I take an uploaded image,
and convert it to use a limited palette of colors - around 5-10
colors.

I've got the custom palette I have to work with stored in an array,
and for each color in my image, I've got it finding the color in the
array it's closest to numerically, but the results aren't exactly
what I'm looking for.

Does anybody know of any formulas available for comparing multiple
colors and finding the ones that are the closest matches? I've been
searching Google for a while, with no luck. Any good resources on
color formulas  such would be appreciated.

- Josh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Compile using an older version of a given class

2006-03-17 Thread Ron Wheeler
If you have a compiled swf that imported a version of the class and it 
gets loaded before your swf with the new version, the new version will 
be ignored.


Also delete your Flash cache

Ron


Wendy Richardson wrote:

I came across this problem yesterday:

I have some flash code with lots of external .as scripts.  I also save 
old copies of the scripts so I can go back easily.
Yesterday I dropped an older (by date) version of an external .as file 
into my directory (path), but on compile, the final swf was not using 
the version in the path.  (I could tell by certain trace statements).  
Upon finally figuring this out, all it took was opening and editing 
the .as file (added a space somewhere) and the next compile used the 
correct .as



Now, I've tried this first deleting the last compiled swf file first, 
and got the same behavior.  The newer version of the .as file was 
removed, destroyed, and font by font put back into the etherland, so I 
am sure it wasn't somehow finding that file instead.


Anyone know what's up?
How flash decides what to compile? Where it may store prior compiled 
code if it does?
And finally, is there some preference or ini setting that can make 
each compilation only use files currently in the path?  Or recompile 
completely?


This seemed like pretty unusual behavior, and had me scratching my 
head.  I still am.


Thanks for any info.

Wendy
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Database modeling for AS projects

2006-03-21 Thread Ron Wheeler



Honeyghan wrote:

I've been doing some research on various modeling tools which would enable
me to easily model databases for future flash projects. Came across two very
interesting solutions which should be on your radar.

My requirements are as follows:

1. Feature rich, stable application which allows reverse engineering of
existing database.
2. Compatibility with MySQL databases and Linux.
3. Ability to generate SQL statements directly from diagrams.
4. Exporting diagrams as an image and or printing is a must.
5. Uses open standards which allow me to utilize output in other
applications.
6. Allow easy navigation of the entire database scheme, which includes
finding and navigating to specified table.
7. Minimal cost.



Solution 1:
DBDesigner4 from fabFORCE.net
(http://www.fabforce.net/dbdesigner4/)

Fits in-line with all of the above and more. While I do wish that there was
an add-on to Eclipse. It's interface is stable offers ease of use, by far a
very powerful application which will save me time during the planning phase
of extensive projects. DBDesigner4 is also available for the Windows
platform and is GNU Licensed.


Solution 2:
Azzurri Clay from Azzurri Ltd.
(http://www.azzurri.jp/en/index.jsp)

Another gem which is a native plug-in for Eclipse. Azzurri Clay available in
either Core or Pro version, Core being free and Pro costing 35,000 YEN --
about $300 give or take. Sadly to say the Pro version is apparently no
longer available for sale outside of Japan according to their english
website.

While the Core version isn't as feature rich as DBDesigner4, it's worth
mentioning if your needs are basic. One thing I found limiting is that there
is no export to image which is important if working in a team environment.

Clay Core supports additional databases besides MySQL such as PostgreSQL,
however, there is no SQL Sever support. As a plug-in for Eclipse it's
available on all Java enabled platforms.




Stay well,
Honeyghan

  


Eclipse plug-ins

DB Visual ARCHITECT, Object Relational Mapping Tool,  a bit more expensive
http://www.visual-paradigm.com/product/dbva/

Eclipse SQLExplorer plugin
http://sourceforge.net/projects/eclipsesql

A tutorial on how to start database modelling with Eclipse, SQLExplorer  
and Clay.

http://www-128.ibm.com/developerworks/edu/os-dw-os-ecldbint-i.html

Ron
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Ron Wheeler



Steven Sacks wrote:
Please warn us when you are going to do this, since from the 
tone of the 
conversation, there is some sense that this will cause the end of 
civilization as we know it.



Hacking the swf to increase the timeout is not the solution, it's a band-aid
on a gunshot wound.

  
Maybe he is only nicked and a band-aid might do the job. It is hard to 
tell without reading all 50,000 lines of his code.


In the real world, sometimes you only need to fix the problem in the 
current release and can fix the design in the next version. Patches are 
allowed and many patches do not make it into the next release because 
the underlying problem goes away with a redesign.
It is impossible to tell if his application will blow up after the 
timeout is increased but it is unlikely that it will cause the rest of 
us much of a problem.


Ron

I have over 20 years of programming experience including at 
assembler level, advanced Java, etc, but thanks for trying to 
put me in my place :-)



Let's say for argument's sake that it is a bug and it is all Macromedia's
fault and they won't fix it and life is unfair.  That doesn't change the
fact that your application needs to work to your client's expectations.  You
need to find a solution because that's what you're paid to do.
  
You hit the nail on the head here - your application needs to work to 
your client's expectations;  not to ours or not to be perfect.

As Danny Kodicek knows coming from a Director background, there were tons of
bugs in Director and workarounds had to be figured out to make certain
things work.  John Dowdell, in his infinite wisdom, got on Direct-L and
posted that Director had no bugs, that there was just application behavior
that Director developers wished worked differently.

At the end of the day, I don't tell my client Sorry, it's a bug and I can't
work around it.  I figure out how to get it done, and so should you and
everyone else who does this for a living.  The place I'm trying to put you
in is Flash Developer.  ;)
  
Noble sentiments but sometimes in the real world you have to tell a 
client Sorry it is a bug/design artifact in the underlying software and 
I can not fix it or implement a work-around in the budget that you want. 
Furthermore, the cost of fixing it exceeds the value to the organization.
In my work, I can not just charge clients money with no accountability. 
They expect me to make reasonable judgements about the value of my 
activities and not to just spend time because I have an ego-driven need 
to get a perfect solution. I need to be able to explain my position 
and to demonstrate how my recommendation is in the client's best 
interest. I do not always know when to quit but not quiting or not 
accepting a good enough solution is not a virtue (at least not in the 
eye of the guy paying for it).


Ron
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-30 Thread Ron Wheeler

Let us know how it all works out.
Good luck.

Ron

[EMAIL PROTECTED] wrote:
I agree with your sentiments Ron, that future designers of RIAs authored with Flash need to be aware of this issue. 


To clarify my own situation, I have inherited half-way through development an 
extremely complex system, that has just gone live with several thousand users. 
The system is a joint effort by several organisations. Roll-out has been 
exceptionally smooth. The printing functionality was one of the many late spec 
changes that the client asked for. As the system is composed of many V2-style 
components, many of which use interval timers to get around initialization 
issues, and has a lot of real-time financial data transfer going on in the 
background, setintervals, etc etc, that to reengineer it at this stage is 
totally out of the question.

I believe that it is up to Macromedia to engineer the Flash player and the 
intrinsic classes that we developers can do nothing about, so that they work 
robustly and as expected. They could at least amend the documentaion for 
PrintJob to warn developers of the issues.




 --- On Wed 03/29, Ron Wheeler  [EMAIL PROTECTED]  wrote:
From: Ron Wheeler [mailto: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Date: Wed, 29 Mar 2006 09:04:19 -0500
Subject: Re: [Flashcoders] PrintJob causes Abort Script error message.
  
 I would suggest setting the timeout to 7200 seconds and then test it to see what happens if you leave it sitting over lunch.Please warn us when you are going to do this, since from the tone of the conversation, there is some sense that this will cause the end of civilization as we know it.I suspect that the impact will be considerably less and the users of the application may be able to deal with any repercussions by changing their reaction to a dialogue box - it should not be taken as an invitation to go for a coffee.If Macromedia feels OK about the single threading issue, we have to cut ourselves some slack about dealing with it.It certainly is a cautionary note to designers of new applications that you should consider designing in some way to easily shutdown all of the animation and communication functions while setting up a print job. The effect on a communication link of an extended timeout might be one of the problems that you encounter since the other end might 
  

decide that you have died over lunch and cut its end. If you are 
re-establishing the link (authorization???) on each data transfer, this may not 
be a problem.RonRon/training.figleaf.com

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XPath hangs

2006-04-03 Thread Ron Wheeler

What happens if you put the value in a CDATA?

Ron

Yotam Laufer wrote:

Hi List,

I've been using xfactor studio's XPath class for AS 2.0 but have been
experiencing some problems with a specific path.

I've got this XML:

?xml version=1.0?
RetrieveContent xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance;
RetrieveContentResult
Assets
Asset
itemId45785/itemId
itemNameVolkslied/itemName
Properties
Property name=Abstract
valueWilhelmus, gezongen door Lois Lane/value
/Property
Property name=ThumbnailFilename
value
http://picsrv.dme.knvb.nl/?fif=/syndication/videos/13/36462.fpx/value
/Property
Property name=Duration
value53/value
/Property
/Properties
AssetFiles
AssetFile type=StreamFileWM2
Filename9138387_300kbps.mov/Filename
Path/Path
/AssetFile
AssetFile type=StreamFileWM3
Filename9138387_500kbps.mov/Filename
Path/Path
/AssetFile
AssetFile type=StreamFileWM4
Filename9138387_700kbps.mov/Filename
Path/Path
/AssetFile
/AssetFiles
/Asset
/Assets
/RetrieveContentResult
/RetrieveContent


And I'm using this:

trace (XPath.selectNodes (xml,
//[EMAIL PROTECTED]'ThumbnailFilename']/value));

And Flash seems to go into an infinite loop or recurssion and I get the a
script is causing your... would you like to abort window.
I know for a fact that it's the [EMAIL PROTECTED]'ThumbnailFilename'] part of 
the path
that is causing the problem but it happens that this is why I'm using XPath
in the first place.

Has anyone had this problem before and knows a way around it?

Thanks, Yotam.
  



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] converting/printing swf to eps

2006-04-03 Thread Ron Wheeler
Have you looked at SVG as an alternative? You may be able generate this 
on the client without the server.


What about PDF.

Have a look at Apache's FOP as a server tool for converting input to 
various output formats.


Let me know what you think of these. There may be more ways to skin this 
cat.
How are the drawings made? If you are capturing the user's interactions, 
SVG might be pretty easy since it sort of mimics the steps that the user 
does (start here, draw to here, draw to this point, draw to next point, 
etc. finish here; move to here, draw to here, etc.) so you may be able 
to create the SVG by just transforming what you are already doing on the 
screen.
The Batik package or Adobe SVG lets you work with SVG drawings. What do 
you want to do with the output- what is magical about EPS for you?


Ron


Gabriel wrote:
I generate the content of the swf on the client app, let's say a free 
drawing, then I want to print it to the *server printer* (?).


The point is...I need an eps from a generated content with origin in 
the client machine.
You was talking about many free printer drivers, can you point me to 
some of them?


thanks

GaB.



David Rorex wrote:

How are the swf's generated in the first place? Instead of doing
something-swf-eps
you can do:
something-swf
something-eps

-David R

On 3/30/06, Gabriel [EMAIL PROTECTED] wrote:
 

I save a swf to the server, and I need to retrieve an eps from it...any
idea?


Ron Wheeler wrote:
   

What exactly do you want to do?

Ron

Gabriel wrote:
 

Hi everybody...

anybody knows a solution to convert/print from the server side a swf
to eps?.


cheers,
GaB
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Falling leafs

2006-04-03 Thread Ron Wheeler
If you just want something simple you can find examples of snow done 
with a scrolling image. Not very realistic.

You want to look at particle generators for a more realistic effect.

Ron

Daniel Cascais wrote:

I've seen a lot of apps like this, very popular in christmas time
(with falling snow) I'm sure Robert Penner has an example somewhere.
You can also try Ultrashock.com.

On 4/3/06, Eskil Janson [EMAIL PROTECTED] wrote:
  

Hi!

I have a customer who wants falling leafs or herbs (small jpg:s )  to
fall in the foreground of a larger picture. Anyone who has done this,
and fells like sharing a few lines?

I don't really need advice on how to solve the problems involved, think
I could figure something out, but i feel lazy, and not in the mood of
reinventing the weel...

thanks

/Eskil


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Help with building a spider diagram

2006-04-03 Thread Ron Wheeler

GraphViz does this from some very simple input.
I am not sure how easy it would be to take their code and turn it into 
Actionscript

You could use it on the server side.

Ron

Kevin Boyd (MMCR) wrote:

I need to produce a spider diagram (a 360 deg personnel chart) dynamically
from an XML file in Flash 8. I have built most of it but hitting problems,
mainly with the layout and how to figure out if nodes are going to bump into
other nodes. Has anyone produced this kind of thing before and be up for
helping out on the job? Or point me to an example of how to handle a 360 deg
layout.

Contact me off list if you are free to help out at [EMAIL PROTECTED]

Thanks

Kevin Boyd
Multimedia Creations Ltd.
www.mmcr.co.uk
 




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] converting/printing swf to eps

2006-04-04 Thread Ron Wheeler
You can send an XML file of drawing instructions to the server and use 
XSLT to do anything that you want.

a) You can convert it to SVG or EPS.
b) You can convert it to your own vector format
c) You can hold onto it as an XML and redraw it in your Flash program later
d) You can convert it to a raster image
e) You can do all of the above and more.

SVG is the most flexible format since it is both an XML file that can be 
transformed using XSLT and a recognized vector drawing format that can 
be edited using drawing programs. It is also relatively easy to 
construct by tracking the user activity on the Flash side(move, draw, 
draw, draw,move, draw...)


Check the Batik site and open an SVG file in a text editor to see what 
is inside.


Ron


Gabriel wrote:
What I need is to import the drawing, that's why I choose eps (but the 
only real need is that it must be vectorial), Not really to export the 
image created by the user, but recreate it on the server side, based 
on a few parameters.

I can live without the drawing part.

PDF would be a possibility, but can I export from swf 2 pdf??

about FOP, It could be useful but how I load the eps/whatever icon and 
apply some changes (color, scale or so)?


thanks
GaB



Ron Wheeler wrote:
Have you looked at SVG as an alternative? You may be able generate 
this on the client without the server.


What about PDF.

Have a look at Apache's FOP as a server tool for converting input to 
various output formats.


Let me know what you think of these. There may be more ways to skin 
this cat.
How are the drawings made? If you are capturing the user's 
interactions, SVG might be pretty easy since it sort of mimics the 
steps that the user does (start here, draw to here, draw to this 
point, draw to next point, etc. finish here; move to here, draw to 
here, etc.) so you may be able to create the SVG by just transforming 
what you are already doing on the screen.
The Batik package or Adobe SVG lets you work with SVG drawings. What 
do you want to do with the output- what is magical about EPS for you?


Ron


Gabriel wrote:
I generate the content of the swf on the client app, let's say a 
free drawing, then I want to print it to the *server printer* (?).


The point is...I need an eps from a generated content with origin in 
the client machine.
You was talking about many free printer drivers, can you point me 
to some of them?


thanks

GaB.



David Rorex wrote:

How are the swf's generated in the first place? Instead of doing
something-swf-eps
you can do:
something-swf
something-eps

-David R

On 3/30/06, Gabriel [EMAIL PROTECTED] wrote:
 
I save a swf to the server, and I need to retrieve an eps from 
it...any

idea?


Ron Wheeler wrote:
 

What exactly do you want to do?

Ron

Gabriel wrote:
   

Hi everybody...

anybody knows a solution to convert/print from the server side a 
swf

to eps?.


cheers,
GaB
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] Find Nearest Color?

2006-04-04 Thread Ron Wheeler

Another minor optimization

Initialize tempDistance to a huge number (greater than the distance from 
ff000 toff) and then simplify the if


Ron

Darren Cook wrote:

Hi,
A minor optimization, but you can drop the Math.sqrt(). I.e.
   x^2  y^2  == x  y

for all positive values of x and y.

Darren


  

That's what I actually ended up doing, and it worked out pretty good:

private function getClosest (red1:Number, green1:Number, 
blue1:Number):Number {
   
var totalColors:Number = __palette.length;

var tempDistance:Number;
var closestColor:Number;
   
for (var i:Number = 0; i  totalColors; i++) {

// first, break up the color to check
var red2:Number = (__palette[i]  0xFF)  16;
var green2:Number = (__palette[i]  0x00FF00)  8;
var blue2:Number = __palette[i]  0xFF;
   
// now, get the distance from the source
var tempD:Number = Math.sqrt ((Math.abs(red1 - red2) ^ 2) + 
(Math.abs(green1 - green2) ^ 2) + (Math.abs(blue1 - blue2) ^ 2));
   
if ((tempD = tempDistance) || tempDistance == undefined) {

tempDistance = tempD;
closestColor = __palette[i];
}
}
   
return closestColor;

}


- Josh


On Mar 16, 2006, at 7:59 PM, Ron Wheeler wrote:



If a color can be treated as a point in a 3-d cube 256 units on  each
side, you can use the formula in this reference
http://www.uwm.edu/~ericskey/TANOTES/Ageometry/node10.html
to calculate the distance between 2 colors.

I have not tried this but it would seem logical that this would work

Ron

elibol wrote:

  

K, here is some better math for getRGB, performance will probably be
important:

return [c16, c8~0xFF00, c~0xF00];

You can also try using the ColorTransform or Color class to get  the rgb
values, except they might be slower than getting the raw math right.

M.

On 3/15/06, Josh Buhler [EMAIL PROTECTED] wrote:



Thanks - I'll give it a shot and see how it goes.


- Josh

On Mar 15, 2006, at 3:10 PM, elibol wrote:


  

I tried comparing the hex values directly, but there were
inaccuracies,
maybe the same ones you've been having. I think since the value  of a
particular color precedes with a 0 even when it's below 17(0F), the
preceding 0 causes a shifting in the comparison. It would, for
example,
cause 0x00 to seem farther to 0x123456 than 0x00FF00, where
visually you
can see clearly that black is closer to 0x00.

btw in my example, var a = 0x12345 where it should be 0x123456.

The numbers hold to be accurate after correcting this typo.

On 3/15/06, Josh Buhler [EMAIL PROTECTED] wrote:


I'm working on a project that requires that I take an uploaded 
image,

and convert it to use a limited palette of colors - around 5-10
colors.

I've got the custom palette I have to work with stored in an  array,
and for each color in my image, I've got it finding the color  in the
array it's closest to numerically, but the results aren't exactly
what I'm looking for.

Does anybody know of any formulas available for comparing multiple
colors and finding the ones that are the closest matches? I've  been
searching Google for a while, with no luck. Any good resources on
color formulas  such would be appreciated.

- Josh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you

Re: [Flashcoders] Cantering a mc when you click on it

2006-04-05 Thread Ron Wheeler
You need to know the registration point and the _x and _y and the center 
of the stage that you are trying to move the clip on.


Draw a sketch and it will be clear.

Ron


Kevin Boyd (MMCR) wrote:

I'm trying to figure out the math of how to move a movie clip into the
centre of the stage depending on where you click on it. I'm sure it's real
simple but I just can figure it out. file at www.mmcr.co.uk/orgchart.zip
 
Any help hugely appreciated :-)
 
Kevin


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] converting/printing swf to eps

2006-04-07 Thread Ron Wheeler

Can you not just use a postscript printer under windows to create the file?
If you download the Adobe generic PostScript driver, set the output to 
file and to be eps rather than PostScript and you should be able to 
print your Flash to eps.


Ron

Gabriel wrote:

Ok, I'll try to put it simple.

I have researched about the eps, I opened it, changed it, and I see 
where are the paremeters I need with a few problems(like identify each 
shape to apply different color), but if you want, forget the eps input.


The point is:
1 - I Have a swf with a drawing inside and 2,3,4 colors divided in 
movieclips by color.
2 - I need to open this swf with my app, let the user change the color 
of each mc (at this point, everything is fine)

3 - give the user an eps with the result.

end of workflow.

simple uh? :P

GaB.





Ron Wheeler wrote:

I am having trouble figuring out the flow.

What does the Flash application actually do? If the drawings already 
exist on the server and have to end up on the server,...
What does Flash do with the EPS file? Why EPS at all? How do the EPS 
files get created.

What do you want to do with the resulting files?

Have you edited an eps file with a text editor to see how they are 
constructed? They can include vectors and raster images.
Depending on the program used to create the EPS, it can be full of 
crap and unused macros which make them hard to pick apart if that is 
what you want to do.
You can certainly create eps files by tracking the user inputs and 
writing the PostScript to a file. It is a bit like SVG without the 
XML. You can create your own macros to make the process easier - 
which is where all of the crap comes from in an EPS file created by 
MS-Word (to pick on one vendor unfairly). Make a Hello World 
document and save it. It will be a lot longer than 11 characters but 
you will find Hello World in there somewhere.
In the early days of DOS, I wrote a little short PostScript file that 
created fractal images if you sent it to a Postscript Printer and let 
it run all night. Looking back I must not have had a life then, I 
guess - the kids were small and we were to tired to go out.



Ron

Gabriel wrote:
Ok, sounds good, but I don't see clearly how to convert my already 
drawn eps/whatever into commands so can rewrite a svg an then save it.


I can make instructions for writing the svg, but I have the drawings 
pre made.


GaB



Ron Wheeler wrote:
You can send an XML file of drawing instructions to the server and 
use XSLT to do anything that you want.

a) You can convert it to SVG or EPS.
b) You can convert it to your own vector format
c) You can hold onto it as an XML and redraw it in your Flash 
program later

d) You can convert it to a raster image
e) You can do all of the above and more.

SVG is the most flexible format since it is both an XML file that 
can be transformed using XSLT and a recognized vector drawing 
format that can be edited using drawing programs. It is also 
relatively easy to construct by tracking the user activity on the 
Flash side(move, draw, draw, draw,move, draw...)


Check the Batik site and open an SVG file in a text editor to see 
what is inside.


Ron


Gabriel wrote:
What I need is to import the drawing, that's why I choose eps (but 
the only real need is that it must be vectorial), Not really to 
export the image created by the user, but recreate it on the 
server side, based on a few parameters.

I can live without the drawing part.

PDF would be a possibility, but can I export from swf 2 pdf??

about FOP, It could be useful but how I load the eps/whatever icon 
and apply some changes (color, scale or so)?


thanks
GaB



Ron Wheeler wrote:
Have you looked at SVG as an alternative? You may be able 
generate this on the client without the server.


What about PDF.

Have a look at Apache's FOP as a server tool for converting input 
to various output formats.


Let me know what you think of these. There may be more ways to 
skin this cat.
How are the drawings made? If you are capturing the user's 
interactions, SVG might be pretty easy since it sort of mimics 
the steps that the user does (start here, draw to here, draw to 
this point, draw to next point, etc. finish here; move to here, 
draw to here, etc.) so you may be able to create the SVG by just 
transforming what you are already doing on the screen.
The Batik package or Adobe SVG lets you work with SVG drawings. 
What do you want to do with the output- what is magical about EPS 
for you?


Ron


Gabriel wrote:
I generate the content of the swf on the client app, let's say a 
free drawing, then I want to print it to the *server printer* 
(?).


The point is...I need an eps from a generated content with 
origin in the client machine.
You was talking about many free printer drivers, can you point 
me to some of them?


thanks

GaB.



David Rorex wrote:

How are the swf's generated in the first place? Instead of doing
something-swf-eps
you can do:
something-swf
something-eps

Re: [Flashcoders] converting/printing swf to eps

2006-04-07 Thread Ron Wheeler

Who is receiving the queries?
This sounds like a server side issue.
There are lots of tools to create output on a server.
Why are people changing the colors. Does this get done for each print or 
is the color changed once and requested from a server.


It might save a lot of time if you actually described what you want to 
do in enough detail so we can get to the right solution in the next 4 or 
5 weeks.


Ron


Gabriel wrote:

hi Ron,
I already have it done this way. A postscript printer in the server, 
and it works like a charm. But the problem is how to receive a lot of 
queries for printing with an automated app...any idea?


thanks
GaB



Ron Wheeler wrote:
Can you not just use a postscript printer under windows to create the 
file?
If you download the Adobe generic PostScript driver, set the output 
to file and to be eps rather than PostScript and you should be able 
to print your Flash to eps.


Ron

Gabriel wrote:

Ok, I'll try to put it simple.

I have researched about the eps, I opened it, changed it, and I see 
where are the paremeters I need with a few problems(like identify 
each shape to apply different color), but if you want, forget the 
eps input.


The point is:
1 - I Have a swf with a drawing inside and 2,3,4 colors divided in 
movieclips by color.
2 - I need to open this swf with my app, let the user change the 
color of each mc (at this point, everything is fine)

3 - give the user an eps with the result.

end of workflow.

simple uh? :P

GaB.





Ron Wheeler wrote:

I am having trouble figuring out the flow.

What does the Flash application actually do? If the drawings 
already exist on the server and have to end up on the server,...
What does Flash do with the EPS file? Why EPS at all? How do the 
EPS files get created.

What do you want to do with the resulting files?

Have you edited an eps file with a text editor to see how they are 
constructed? They can include vectors and raster images.
Depending on the program used to create the EPS, it can be full of 
crap and unused macros which make them hard to pick apart if that 
is what you want to do.
You can certainly create eps files by tracking the user inputs and 
writing the PostScript to a file. It is a bit like SVG without the 
XML. You can create your own macros to make the process easier - 
which is where all of the crap comes from in an EPS file created by 
MS-Word (to pick on one vendor unfairly). Make a Hello World 
document and save it. It will be a lot longer than 11 characters 
but you will find Hello World in there somewhere.
In the early days of DOS, I wrote a little short PostScript file 
that created fractal images if you sent it to a Postscript Printer 
and let it run all night. Looking back I must not have had a life 
then, I guess - the kids were small and we were to tired to go out.



Ron

Gabriel wrote:
Ok, sounds good, but I don't see clearly how to convert my already 
drawn eps/whatever into commands so can rewrite a svg an then save 
it.


I can make instructions for writing the svg, but I have the 
drawings pre made.


GaB



Ron Wheeler wrote:
You can send an XML file of drawing instructions to the server 
and use XSLT to do anything that you want.

a) You can convert it to SVG or EPS.
b) You can convert it to your own vector format
c) You can hold onto it as an XML and redraw it in your Flash 
program later

d) You can convert it to a raster image
e) You can do all of the above and more.

SVG is the most flexible format since it is both an XML file that 
can be transformed using XSLT and a recognized vector drawing 
format that can be edited using drawing programs. It is also 
relatively easy to construct by tracking the user activity on the 
Flash side(move, draw, draw, draw,move, draw...)


Check the Batik site and open an SVG file in a text editor to see 
what is inside.


Ron


Gabriel wrote:
What I need is to import the drawing, that's why I choose eps 
(but the only real need is that it must be vectorial), Not 
really to export the image created by the user, but recreate it 
on the server side, based on a few parameters.

I can live without the drawing part.

PDF would be a possibility, but can I export from swf 2 pdf??

about FOP, It could be useful but how I load the eps/whatever 
icon and apply some changes (color, scale or so)?


thanks
GaB



Ron Wheeler wrote:
Have you looked at SVG as an alternative? You may be able 
generate this on the client without the server.


What about PDF.

Have a look at Apache's FOP as a server tool for converting 
input to various output formats.


Let me know what you think of these. There may be more ways to 
skin this cat.
How are the drawings made? If you are capturing the user's 
interactions, SVG might be pretty easy since it sort of mimics 
the steps that the user does (start here, draw to here, draw to 
this point, draw to next point, etc. finish here; move to here, 
draw to here, etc.) so you may be able to create the SVG by 
just transforming what you

Re: [Flashcoders] converting/printing swf to eps

2006-04-09 Thread Ron Wheeler

Ghostscript.
Adobe's postscript printer
You can write the eps manually (define some useful macros and the actual 
generation becomes easy)

Probably XSLT would do the job as well.

It really depends on what you want to do with the eps files and whether 
it is important to use eps at every step.


If you have some control over the client side it gets easier.
Otherwise you need to send data to the server and let the server create 
a new eps.


Where do the eps files get used?

ROn

Gabriel wrote:
I've already said what I need to do, pick a premade draw, and allow 
the user to change the blanks to color, like in a paint app for kids, 
and then export this to an eps, that simple is the idea.


The queries must be received by a server ( a custom app?), or I'm 
missing something...

You said, a lot of tools to create outputs, to eps? can you name one?


thanks
GaB





Ron Wheeler wrote:

Who is receiving the queries?
This sounds like a server side issue.
There are lots of tools to create output on a server.
Why are people changing the colors. Does this get done for each print 
or is the color changed once and requested from a server.


It might save a lot of time if you actually described what you want 
to do in enough detail so we can get to the right solution in the 
next 4 or 5 weeks.


Ron


Gabriel wrote:

hi Ron,
I already have it done this way. A postscript printer in the server, 
and it works like a charm. But the problem is how to receive a lot 
of queries for printing with an automated app...any idea?


thanks
GaB



Ron Wheeler wrote:
Can you not just use a postscript printer under windows to create 
the file?
If you download the Adobe generic PostScript driver, set the output 
to file and to be eps rather than PostScript and you should be able 
to print your Flash to eps.


Ron

Gabriel wrote:

Ok, I'll try to put it simple.

I have researched about the eps, I opened it, changed it, and I 
see where are the paremeters I need with a few problems(like 
identify each shape to apply different color), but if you want, 
forget the eps input.


The point is:
1 - I Have a swf with a drawing inside and 2,3,4 colors divided in 
movieclips by color.
2 - I need to open this swf with my app, let the user change the 
color of each mc (at this point, everything is fine)

3 - give the user an eps with the result.

end of workflow.

simple uh? :P

GaB.





Ron Wheeler wrote:

I am having trouble figuring out the flow.

What does the Flash application actually do? If the drawings 
already exist on the server and have to end up on the server,...
What does Flash do with the EPS file? Why EPS at all? How do the 
EPS files get created.

What do you want to do with the resulting files?

Have you edited an eps file with a text editor to see how they 
are constructed? They can include vectors and raster images.
Depending on the program used to create the EPS, it can be full 
of crap and unused macros which make them hard to pick apart if 
that is what you want to do.
You can certainly create eps files by tracking the user inputs 
and writing the PostScript to a file. It is a bit like SVG 
without the XML. You can create your own macros to make the 
process easier - which is where all of the crap comes from in an 
EPS file created by MS-Word (to pick on one vendor unfairly). 
Make a Hello World document and save it. It will be a lot 
longer than 11 characters but you will find Hello World in 
there somewhere.
In the early days of DOS, I wrote a little short PostScript file 
that created fractal images if you sent it to a Postscript 
Printer and let it run all night. Looking back I must not have 
had a life then, I guess - the kids were small and we were to 
tired to go out.



Ron

Gabriel wrote:
Ok, sounds good, but I don't see clearly how to convert my 
already drawn eps/whatever into commands so can rewrite a svg an 
then save it.


I can make instructions for writing the svg, but I have the 
drawings pre made.


GaB



Ron Wheeler wrote:
You can send an XML file of drawing instructions to the server 
and use XSLT to do anything that you want.

a) You can convert it to SVG or EPS.
b) You can convert it to your own vector format
c) You can hold onto it as an XML and redraw it in your Flash 
program later

d) You can convert it to a raster image
e) You can do all of the above and more.

SVG is the most flexible format since it is both an XML file 
that can be transformed using XSLT and a recognized vector 
drawing format that can be edited using drawing programs. It is 
also relatively easy to construct by tracking the user activity 
on the Flash side(move, draw, draw, draw,move, draw...)


Check the Batik site and open an SVG file in a text editor to 
see what is inside.


Ron


Gabriel wrote:
What I need is to import the drawing, that's why I choose eps 
(but the only real need is that it must be vectorial), Not 
really to export the image created by the user, but recreate 
it on the server side, based on a few

Re: [Flashcoders] SourceSafe??? Recommendations needed.

2006-04-21 Thread Ron Wheeler

Subversion and CVS are free and widely used.

We use Eclipse as the front-end and it works really well - even for 
marketing documentation and proposals.


Ron

Loren R. Elks wrote:

Hi:

We are slowing building our eLearning group in our company.  We are
finding that we really need a system like SourceSafe.

The question is, does anyone know if SourceSafe (or some other system
handles):

FLA, SWF files
BMP, GIF, PNG, JPG files
WAV files
DOC files
PDF files
FM files (Framemaker) files
PSD files
Corel files
We are looking for one system running on a server that would be able to
house all of these file types (maybe more) and provide versioning, check
in / check out, etc.

Also, it would be nice if the system could do comparisons. (Although
this may be asking for too much).  For example, it could compare 2 docs
and tell what the differences are.  However, this is a nicety, NOT a
requirement.

I appreciate any advice.


Sincerely,

Loren Elks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] HashMap?

2006-05-10 Thread Ron Wheeler
It appears that a HashMap is a Java class that uses a hash on the key 
to store its keys and values.

http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html
This would speed up lookup if you have a large set of keys.
If you do not need the speed or do not have a large collection of keys 
to store, an array object would seem to give the same functionality in 
ActionScript.
This leaves the implementation of the array to Flash and it is likely a 
simple structure that has to be searched sequentially (by the Flash VM) 
to get the associated value.


It you really need a hashing array that can handle large numbers of 
key/value pairs, you probably have to write one. This is an old concept 
and you can likely find a few design ideas and probably some code if you 
search for it.


If you are converting code and want to create a HashMap class that has 
the same methods as HashMap in Java, you could fake the internal storage 
technology with a simple Array. it would be faster for a small set of 
values and would get a bit slower as the number of keys increased.
You could start with a dumb HashMap class and then make it a true 
hashing data store later without having to rewrite your code.
HashMap was only added to Java in Java 1.1 and they lived without it 
before then.


Ron

Joshua Graham wrote:

Bit strange, but that works, thanks.

Joshua

On 10 May 2006, at 12:06, Lee McColl-Sylvester wrote:


Well, in AS2, it's called an object ;)

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joshua
Graham
Sent: 10 May 2006 11:19
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] HashMap?

Is there an AS3 equivalent of the java HashMap?

Basically, I just need the ability to set key/value pairs quickly/
easily.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com







___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] HashMap?

2006-05-12 Thread Ron Wheeler
I would be a little surprised. There does not seem to be any way to 
control the hash parameters and every array would have a lot of wasted 
space for nothing and without any way to control the hash size and the 
percent utilization, you would not get a lot of advantage for the big 
arrays.


The Java HashMap defaults are pretty modest and would yield less than 
optimal performance with a big array.
You can set the parameters if you have a big array and know a bit about 
the randomness of your keys to get fast lookups with a reasonable 
trade-off in wasted space


Perhaps someone who knows the Flash Player internals could tell for sure.

Ron


Bernard Poulin wrote:

mmm... Are you implying that ActionScript objects are not hashmaps?
I thought they were *all* hashmaps (even Arrays are hashmaps). Every 
method

call that you do involves at least one hash lookup.

B.

2006/5/10, Ron Wheeler [EMAIL PROTECTED]:


It appears that a HashMap is a Java class that uses a hash on the key
to store its keys and values.
http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html
This would speed up lookup if you have a large set of keys.
If you do not need the speed or do not have a large collection of keys
to store, an array object would seem to give the same functionality in
ActionScript.
This leaves the implementation of the array to Flash and it is likely a
simple structure that has to be searched sequentially (by the Flash VM)
to get the associated value.

It you really need a hashing array that can handle large numbers of
key/value pairs, you probably have to write one. This is an old concept
and you can likely find a few design ideas and probably some code if you
search for it.

If you are converting code and want to create a HashMap class that has
the same methods as HashMap in Java, you could fake the internal storage
technology with a simple Array. it would be faster for a small set of
values and would get a bit slower as the number of keys increased.
You could start with a dumb HashMap class and then make it a true
hashing data store later without having to rewrite your code.
HashMap was only added to Java in Java 1.1 and they lived without it
before then.

Ron

Joshua Graham wrote:
 Bit strange, but that works, thanks.

 Joshua

 On 10 May 2006, at 12:06, Lee McColl-Sylvester wrote:

 Well, in AS2, it's called an object ;)

 Lee



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of 
Joshua

 Graham
 Sent: 10 May 2006 11:19
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] HashMap?

 Is there an AS3 equivalent of the java HashMap?

 Basically, I just need the ability to set key/value pairs quickly/
 easily.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




 



 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] HashMap?

2006-05-13 Thread Ron Wheeler



Bernard Poulin wrote:
I cannot say for AS3 implementation because I never tried it. (Which 
is the

original subject of this topic.)

In AS1, AS2 and javascript, I am pretty sure that all objects (including
Arrays) are key/value maps. (i.e. Associative arrays)
http://en.wikipedia.org/wiki/Associative_array#JavaScript

It is very possible that the internal implementation is not a hashmap,
but I still think it is a highly efficient map of some sort because 
this is

so central to the language.

I would hope that it is efficient but hashing adds a lot of overhead and 
wasted space for small arrays and really needs to be tuned to get the 
desired results for larger arrays.
If the arrays are stored in sorted order, then the normal key lookup can 
be done as a binary lookup which will be a lot quicker than an 
exhaustive search. The price is paid when a new associative entry is added.


Nothing is free.

None of my work has required has involved large associative arrays where 
hashing would add a significant improvement in speed but it would be 
nice to have such a class available for those who need it.


In the early days (1960s) when I was taking Computer Science at 
University, we spent a lot of time worrying about these things since 
memory was scarce (64K word (36 bits per word) computer cost a million 
dollars and supported 16 users) and CPU speeds where not very fast (a 
1MIP computer was state of the art).


If really had to look carefully at how things got stored and retrieved, 
it you had a large number of them.

...at least this is what I think.  I might be completely wrong.
B.

2006/5/12, Ron Wheeler [EMAIL PROTECTED]:


I would be a little surprised. There does not seem to be any way to
control the hash parameters and every array would have a lot of wasted
space for nothing and without any way to control the hash size and the
percent utilization, you would not get a lot of advantage for the big
arrays.

The Java HashMap defaults are pretty modest and would yield less than
optimal performance with a big array.
You can set the parameters if you have a big array and know a bit about
the randomness of your keys to get fast lookups with a reasonable
trade-off in wasted space

Perhaps someone who knows the Flash Player internals could tell for 
sure.


Ron


Bernard Poulin wrote:
 mmm... Are you implying that ActionScript objects are not hashmaps?
 I thought they were *all* hashmaps (even Arrays are hashmaps). Every
 method
 call that you do involves at least one hash lookup.

 B.

 2006/5/10, Ron Wheeler [EMAIL PROTECTED]:

 It appears that a HashMap is a Java class that uses a hash on the 
key

 to store its keys and values.
 http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html
 This would speed up lookup if you have a large set of keys.
 If you do not need the speed or do not have a large collection of 
keys
 to store, an array object would seem to give the same 
functionality in

 ActionScript.
 This leaves the implementation of the array to Flash and it is 
likely a
 simple structure that has to be searched sequentially (by the 
Flash VM)

 to get the associated value.

 It you really need a hashing array that can handle large numbers of
 key/value pairs, you probably have to write one. This is an old 
concept

 and you can likely find a few design ideas and probably some code if
you
 search for it.

 If you are converting code and want to create a HashMap class that 
has

 the same methods as HashMap in Java, you could fake the internal
storage
 technology with a simple Array. it would be faster for a small set of
 values and would get a bit slower as the number of keys increased.
 You could start with a dumb HashMap class and then make it a true
 hashing data store later without having to rewrite your code.
 HashMap was only added to Java in Java 1.1 and they lived without it
 before then.

 Ron

 Joshua Graham wrote:
  Bit strange, but that works, thanks.
 
  Joshua
 
  On 10 May 2006, at 12:06, Lee McColl-Sylvester wrote:
 
  Well, in AS2, it's called an object ;)
 
  Lee
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
 Joshua
  Graham
  Sent: 10 May 2006 11:19
  To: flashcoders@chattyfig.figleaf.com
  Subject: [Flashcoders] HashMap?
 
  Is there an AS3 equivalent of the java HashMap?
 
  Basically, I just need the ability to set key/value pairs quickly/
  easily.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought

Re: [Flashcoders] Equidistant points on an ellipse!

2006-05-13 Thread Ron Wheeler

Not that hard on CPU. It only got to 63% on my old 1 GHz Windows PC.

Ron

Glenn Mitchell wrote:

Hi again,

got distracted by this last night,

here is some VERY messy code to dash a line on an elipse

ummm, there's no comments there either ... but I'll rewrite it with 
comments if anyone's interested :)


(the angular segments are also shown for reference)

it's a CPU hog, probably not good at all for anything animated, but if 
you're just creating static images ...



http://www.pixelassembly.com/testing/ellispeSegs.swf

http://www.pixelassembly.com/testing/ellispeSegs.fla

cheers,
glenn



On 11/05/2006, at 11:49 AM, pixelassembly wrote:


Hi,

 just to clarify,
are you trying to get the equal sided polygon into your elipse,
or are you wanting the points equal distance along the circumfrence
?

also why are you not getting accurate results when using a large 
point set ?

a) you need a crazy level of accuracy ?
b) the maths doesn't quite work ?

with a large point set, are you calculating the cumulative distance 
(point

to point around the circumference)
or the direct distance between points (for an equal sided polygon)


sorry, no answers, only questions :)

glenn


- Original Message -
From: Peter Gehring [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 11, 2006 4:31 AM
Subject: [Flashcoders] Equidistant points on an ellipse!


I'm really hoping someone can help...

I need to plot points at an equal distance along the circumfrence of an
Ellipse.
As it turns out, I'm pretty bad at geometry, which doesn't help.

I can plot the ellipse, but because I'm using sine/cos and 
incrementing with

theta the points are crunched towards the outside of the major radius.
I've tried a bunch of different approaches- recording lots (5000) of 
points,
then stepping through each to compare actual distance but I'm not 
getting

nearly accurate results this way.
I've looked at drawing dotted/dashed curves from drawing api/custom 
classes

but no luck.

If I could affect theta at the same rate the ellipse is plotted I 
think I'd

be ok, but I can't quite grasp it.

I've read all sorts of impossiblilites about this,and a lot of people 
having
miserable experience with this sort of thing (one guy spent 8 years 
trying

to fit an equal-sided polygon in to an ellipse).

But- at the end of the day I can go to the Flash IDE and draw an 
ellipse and

stroke it with an equally spaced dotted line!  I just need to do this
dynamically and record the points...

Any thoughts?

Thanks much,

Peter

[sorry if this is a duplicate]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] HashMap?

2006-05-13 Thread Ron Wheeler
Wouldn't it be true to say that hash maps will get slower as the 
probability of collisions increase? As the primary area fills up, there 
will be more occasions when the new key to be added, hashes to a storage 
location already occupied and a link structure will be needed to store 
the key(s) in the overflow.
Similarly, lookups will start to hit links rather than data which will 
require that the links into the overflow area be followed.


This is where tuning comes in.

The fact that there are no tuning options makes it unlikely that hashing 
is used.
Defaults would be hard to set without wasting space or turning the whole 
thing into a small set of linked lists which work be long to search.
It would not be seem to be a very good choice for a default 
implementation of Arrays.


Ron

Scott Hyndman wrote:

You could figure out how it's implemented by doing some experiments.

Dynamic hash maps have constant insertion (amortized) and lookup time. If the 
map is implemented using a B-Tree, then you'll see O(log(n)) times (so just see 
if the more properties you add increase the amount of time it takes to add 
them).

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Ron Wheeler
Sent:   Sat 5/13/2006 10:43 AM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] HashMap?



Bernard Poulin wrote:
  
I cannot say for AS3 implementation because I never tried it. (Which 
is the

original subject of this topic.)

In AS1, AS2 and javascript, I am pretty sure that all objects (including
Arrays) are key/value maps. (i.e. Associative arrays)
http://en.wikipedia.org/wiki/Associative_array#JavaScript

It is very possible that the internal implementation is not a hashmap,
but I still think it is a highly efficient map of some sort because 
this is

so central to the language.


I would hope that it is efficient but hashing adds a lot of overhead and 
wasted space for small arrays and really needs to be tuned to get the 
desired results for larger arrays.
If the arrays are stored in sorted order, then the normal key lookup can 
be done as a binary lookup which will be a lot quicker than an 
exhaustive search. The price is paid when a new associative entry is added.


Nothing is free.

None of my work has required has involved large associative arrays where 
hashing would add a significant improvement in speed but it would be 
nice to have such a class available for those who need it.


In the early days (1960s) when I was taking Computer Science at 
University, we spent a lot of time worrying about these things since 
memory was scarce (64K word (36 bits per word) computer cost a million 
dollars and supported 16 users) and CPU speeds where not very fast (a 
1MIP computer was state of the art).


  


If really had to look carefully at how things got stored and retrieved, 
it you had a large number of them.


should have been written as

One really had to look carefully at how things got stored and retrieved, 
if you had a large number of them.



...at least this is what I think.  I might be completely wrong.
B.

2006/5/12, Ron Wheeler [EMAIL PROTECTED]:


I would be a little surprised. There does not seem to be any way to
control the hash parameters and every array would have a lot of wasted
space for nothing and without any way to control the hash size and the
percent utilization, you would not get a lot of advantage for the big
arrays.

The Java HashMap defaults are pretty modest and would yield less than
optimal performance with a big array.
You can set the parameters if you have a big array and know a bit about
the randomness of your keys to get fast lookups with a reasonable
trade-off in wasted space

Perhaps someone who knows the Flash Player internals could tell for 
sure.


Ron


Bernard Poulin wrote:
  

mmm... Are you implying that ActionScript objects are not hashmaps?
I thought they were *all* hashmaps (even Arrays are hashmaps). Every
method
call that you do involves at least one hash lookup.

B.

2006/5/10, Ron Wheeler [EMAIL PROTECTED]:

It appears that a HashMap is a Java class that uses a hash on the 
  

key
  

to store its keys and values.
http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html
This would speed up lookup if you have a large set of keys.
If you do not need the speed or do not have a large collection of 
  

keys
  
to store, an array object would seem to give the same 
  

functionality in
  

ActionScript.
This leaves the implementation of the array to Flash and it is 
  

likely a
  
simple structure that has to be searched sequentially (by the 
  

Flash VM)
  

to get the associated value.

It you really need a hashing array that can handle large numbers of
key/value pairs, you probably have to write one. This is an old 
  

concept
  

and you can likely find a few design ideas and probably some code if
  

you
  

search

Re: [Flashcoders] HashMap?

2006-05-15 Thread Ron Wheeler
The tree would make sense. The garbage collection for an associative 
array is an interesting problem with variable key and value lengths.


Ron

Scott Hyndman wrote:

Well, yes.

Now that I think about it my test didn't make much sense, since there would be 
no way of determining how keys are generated by insertions alone...I was 
assuming a uniform distribution, and it can't be done without knowing more.

But I believe that the Flash uses a tree to implement its map, for some of the 
same reasons you mentioned. It's just a way more efficient structure to use if 
your data is unknown, grows well, and stays balanced.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Ron Wheeler
Sent:   Sat 5/13/2006 2:25 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] HashMap?

Wouldn't it be true to say that hash maps will get slower as the 
probability of collisions increase? As the primary area fills up, there 
will be more occasions when the new key to be added, hashes to a storage 
location already occupied and a link structure will be needed to store 
the key(s) in the overflow.
Similarly, lookups will start to hit links rather than data which will 
require that the links into the overflow area be followed.


This is where tuning comes in.

The fact that there are no tuning options makes it unlikely that hashing 
is used.
Defaults would be hard to set without wasting space or turning the whole 
thing into a small set of linked lists which work be long to search.
It would not be seem to be a very good choice for a default 
implementation of Arrays.


Ron

Scott Hyndman wrote:
  

You could figure out how it's implemented by doing some experiments.

Dynamic hash maps have constant insertion (amortized) and lookup time. If the 
map is implemented using a B-Tree, then you'll see O(log(n)) times (so just see 
if the more properties you add increase the amount of time it takes to add 
them).

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Ron Wheeler
Sent:   Sat 5/13/2006 10:43 AM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] HashMap?



Bernard Poulin wrote:
  

I cannot say for AS3 implementation because I never tried it. (Which 
is the

original subject of this topic.)

In AS1, AS2 and javascript, I am pretty sure that all objects (including
Arrays) are key/value maps. (i.e. Associative arrays)
http://en.wikipedia.org/wiki/Associative_array#JavaScript

It is very possible that the internal implementation is not a hashmap,
but I still think it is a highly efficient map of some sort because 
this is

so central to the language.


  
I would hope that it is efficient but hashing adds a lot of overhead and 
wasted space for small arrays and really needs to be tuned to get the 
desired results for larger arrays.
If the arrays are stored in sorted order, then the normal key lookup can 
be done as a binary lookup which will be a lot quicker than an 
exhaustive search. The price is paid when a new associative entry is added.


Nothing is free.

None of my work has required has involved large associative arrays where 
hashing would add a significant improvement in speed but it would be 
nice to have such a class available for those who need it.


In the early days (1960s) when I was taking Computer Science at 
University, we spent a lot of time worrying about these things since 
memory was scarce (64K word (36 bits per word) computer cost a million 
dollars and supported 16 users) and CPU speeds where not very fast (a 
1MIP computer was state of the art).


  



If really had to look carefully at how things got stored and retrieved, 
it you had a large number of them.


should have been written as

One really had to look carefully at how things got stored and retrieved, 
if you had a large number of them.


  

...at least this is what I think.  I might be completely wrong.
B.

2006/5/12, Ron Wheeler [EMAIL PROTECTED]:

  

I would be a little surprised. There does not seem to be any way to
control the hash parameters and every array would have a lot of wasted
space for nothing and without any way to control the hash size and the
percent utilization, you would not get a lot of advantage for the big
arrays.

The Java HashMap defaults are pretty modest and would yield less than
optimal performance with a big array.
You can set the parameters if you have a big array and know a bit about
the randomness of your keys to get fast lookups with a reasonable
trade-off in wasted space

Perhaps someone who knows the Flash Player internals could tell for 
sure.


Ron


Bernard Poulin wrote:
  


mmm... Are you implying that ActionScript objects are not hashmaps?
I thought they were *all* hashmaps (even Arrays are hashmaps). Every
method
call that you do involves at least one hash lookup.

B.

2006/5/10, Ron Wheeler [EMAIL PROTECTED]:

  
It appears that a HashMap is a Java class

Re: [Flashcoders] Video Production Shop

2006-05-15 Thread Ron Wheeler

What area?

Keenan Keeling wrote:

Anyone out there know of a video production shop in the area?  Looking for
someone to shoot an instructional video and do the editing (for later
streaming with Flash Video).  If you know anyone, contact me off-list so we
don't clutter things up.

Keenan Keeling
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How to serialize key events?

2006-05-15 Thread Ron Wheeler
You might try reading the Java class documents to see what is special 
about Vectors as opposed to Arrays in Actionscript.


The code is pretty simple. Have you tried to code and test it under 
ActionScript?
It looks like you add objects  to a list and take the first one off the 
list. It provides a function to find out if there are any objects in the 
queue.

What is wrong with this?

Ron

black59mga wrote:

I posted this a few day ago on Newbie. No response so posting here

Does anyone know a simple way to serialize key events?

A Java prog. friend suggested using a Mailbox class to serialize the key 
input and provided a class (below) but I don't really understand java Vectors. Ideas?

thanks very much!




import java.util.*;

public class Mailbox {
  private intnumMessages = 0;
  private Vector mailbox = new Vector();

  public synchronized void insert(Object obj) {
mailbox.addElement(obj);
numMessages++;
notify();
  }

  public synchronized Object remove() {
while (numMessages == 0) {
  try {
wait();
  } catch (Exception e) {
  }
}

Object obj = mailbox.firstElement();
mailbox.removeElementAt(0);
numMessages--;
return obj;
  }

  public synchronized int numobj() {
return numMessages;
  }

  public synchronized Vector flush() {
Vector vector = null;
if (numMessages  0)
  vector = new Vector();
while (numMessages  0) {
  Object obj = mailbox.firstElement();
  vector.addElement(obj);
  mailbox.removeElementAt(0);
  numMessages--;
}
return vector;
  }
}

-
Yahoo! Mail goes everywhere you do.  Get it on your phone.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] HashMap?

2006-05-15 Thread Ron Wheeler



Bernard Poulin wrote:
I think there are no tuning parameters simply because the language 
does

not (and should not) specify how the Objects are implemented (and not
because they are not hashmaps). From what we know so far (i.e. nothing!),
this could be anything - like a straight array up to, say, 3 entries and
switching to another more complex structure after that.
If you can not tune a HashMap it will be worse than an ordinary array. 
It will take more space and more processing time. A HashMap does require 
some understanding of implementation since it is using a special 
arrangement of physical storage to buy you speed.
From the Java docs. 

http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html#HashMap%28int,%20float%29|*
HashMap 
http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html#HashMap%28int,%20float%29*(int initialCapacity, 
float loadFactor)|
 Constructs an empty HashMap with the specified initial 
capacity and load factor.


A lot of the implementation details are hidden and you can just take the 
defaults for the tuning.


By variable key length did you mean automatically growing the relevant
hash size (i.e. involving re-distribution) - A bit like what is happening
with the Java HashMap implementation ?

No. I mean that the length of each key (and each value -more obviously) 
is not fixed when the Array is declared.
I can add a hundred 3 character keys  and then add a new key which is 50 
characters long and the Array object will still find a place for it.




B.

2006/5/15, Ron Wheeler [EMAIL PROTECTED]:


The tree would make sense. The garbage collection for an associative
array is an interesting problem with variable key and value lengths.

Ron

Scott Hyndman wrote:
 Well, yes.

 Now that I think about it my test didn't make much sense, since there
would be no way of determining how keys are generated by insertions
alone...I was assuming a uniform distribution, and it can't be done 
without

knowing more.

 But I believe that the Flash uses a tree to implement its map, for 
some
of the same reasons you mentioned. It's just a way more efficient 
structure

to use if your data is unknown, grows well, and stays balanced.

 Scott

 -Original Message-
 From: [EMAIL PROTECTED] on behalf of Ron 
Wheeler

 Sent: Sat 5/13/2006 2:25 PM
 To:   Flashcoders mailing list
 Cc:
 Subject:  Re: [Flashcoders] HashMap?

 Wouldn't it be true to say that hash maps will get slower as the
 probability of collisions increase? As the primary area fills up, 
there
 will be more occasions when the new key to be added, hashes to a 
storage

 location already occupied and a link structure will be needed to store
 the key(s) in the overflow.
 Similarly, lookups will start to hit links rather than data which will
 require that the links into the overflow area be followed.

 This is where tuning comes in.

 The fact that there are no tuning options makes it unlikely that 
hashing

 is used.
 Defaults would be hard to set without wasting space or turning the 
whole

 thing into a small set of linked lists which work be long to search.
 It would not be seem to be a very good choice for a default
 implementation of Arrays.

 Ron

 Scott Hyndman wrote:

 You could figure out how it's implemented by doing some experiments.

 Dynamic hash maps have constant insertion (amortized) and lookup 
time.
If the map is implemented using a B-Tree, then you'll see O(log(n)) 
times
(so just see if the more properties you add increase the amount of 
time it

takes to add them).

 Scott

 -Original Message-
 From:[EMAIL PROTECTED] on behalf 
of Ron

Wheeler
 Sent:Sat 5/13/2006 10:43 AM
 To:  Flashcoders mailing list
 Cc:
 Subject: Re: [Flashcoders] HashMap?



 Bernard Poulin wrote:


 I cannot say for AS3 implementation because I never tried it. (Which
 is the
 original subject of this topic.)

 In AS1, AS2 and javascript, I am pretty sure that all objects
(including
 Arrays) are key/value maps. (i.e. Associative arrays)
 http://en.wikipedia.org/wiki/Associative_array#JavaScript

 It is very possible that the internal implementation is not a
hashmap,
 but I still think it is a highly efficient map of some sort because
 this is
 so central to the language.



 I would hope that it is efficient but hashing adds a lot of overhead
and
 wasted space for small arrays and really needs to be tuned to get the
 desired results for larger arrays.
 If the arrays are stored in sorted order, then the normal key lookup
can
 be done as a binary lookup which will be a lot quicker than an
 exhaustive search. The price is paid when a new associative entry is
added.

 Nothing is free.

 None of my work has required has involved large associative arrays
where
 hashing would add a significant improvement in speed but it would be
 nice to have such a class available for those who need it.

 In the early days (1960s) when I was taking Computer Science at
 University, we spent a lot of time

[Flashcoders] Open source legal framework

2006-05-16 Thread Ron Wheeler

A little off topic but I know that many of us are interested in open source.

http://conservancy.softwarefreedom.org/
This is an organization set up to help open source projects with the 
legal side of things.


Providing limited liability, tax exempt status, etc

Ron

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] HashMap?

2006-05-16 Thread Ron Wheeler



Bernard Poulin wrote:

If you can not tune a HashMap it will be worse than an ordinary array.
It will take more space and more processing time.


This will of course depend on the size and usage - it *may* be more
efficient with hashmaps. Do you really think we can generalize being it
worse all the time?

I will not be far wrong. If your primary allocation is to small, many 
array keys hash to the same spot and you have to search a long linked 
list. It is is too big, you waste a lot of space. It is not trivial to 
increase the size of the allocation dynamically since you must rehash 
all of the entries.

Keeping an array ordered to be able to do binary searches can
statistically cost a lot of copying at insertion time.

You are only adjusting links unless you want a balanced tree.

Binary searches may involves a lot more string comparison. In a binary
search comparing the string hash value is of no use to know if the 
value

is greater or lower (to decide for the next search direction). In
hashmaps, the lookup in the chain after the hash jump can, most of the
time, skip a string entry without even looking at the characters by
comparing the 32bit integer hashes.
String hashes are only useful for looking up a specific value. It is 
unlikely that the hashes are even stored since once you store the 
key/value you no longer have any need for the hash since the position in 
the main table is known and you can follow the links in the overflow 
back to the main table(usually).


If you are hashed into the overflow, you have to examine each key since 
the hashes are identical for everyone in the list (otherwise they would 
not be in the list - they would be in another list of collided hashes).


About Arrays (this is more than slightly OT)  :-)

I still believe Arrays are implemented as associative arrays. But this is
just pure belief since I have no proof and it could easily change from 
one

version of the VM to the other.

Associative array is not a physical description of the implementation. 
It describes the logical way that an Actionscript programmer finds the 
value associated with a key. The implementation of Array probably 
involves a fairly simple linked list of key objects that point to value 
objects. Whether the keys are linked as a tree structure to speed up 
access is an interesting question which was raised earlier.

var a:Array;
a[0] = 'abc';
a[123456789] = 'high index value';
a[this is text] = 'non-integer index';

trace(a.length);   /// should output 123456790

Sidenote: I often use this feature of Arrays to make an ordered
associative array in one single object. This may look a bit like a 
hack -

but it is perfectly valid. I can both traverse the keys in a fixed custom
order and lookup one item with its key directly. Also you can retrieve
quickly how many items there are using length. For example, when 
inserting

a new entry, I do something like:

 a[key] = value;
 a[a.length] = key;

I would really like to have insights into the flash VM implementation 
so I

could do better choices regarding maps and arrays.


Agreed

regards,
B.

(--snip--rest of previous mail removed to keep it 
shorter---snip---)



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How to serialize key events?

2006-05-16 Thread Ron Wheeler

What kind of object do you need to save?

The nice thing about this approach is that you can create any object 
that you need and put it in the queue.
If you only need a list of buttons pressed, you can have a very simple 
object. If you need to include internally generated events, you may need 
an object with more properties.
You do not even have store the same type of object each time as long as 
you can figure out what object is being returned when you ask for the 
next one.


Ron
black59mga wrote:
Ron, 
Thanks very much for your response. You asked  What is wrong with this?. Probably nothing.. Just lack of experience on my part. The class is now actionscript. I'm trying to figure out what's the right kind of Object to pass to the insert(obj:Object) method. Thoughts?


Thanks!

The class:

class Mailbox {
  private var  numMessages:Number = 0;
  private var mailbox:Array = new Array();

  public function insert(obj:Object):Void {
  trace(Mailbox:: Insert)
mailbox.addElement(obj);
numMessages++;
   // notify();
  }

  public function remove() {
while (numMessages == 0) {
  try {
//wait();
  } catch (e:Error) {
  }
}

var obj:Object = mailbox.firstElement();
mailbox.removeElementAt(0);
numMessages--;
return obj;
  }

  public function numobj():Number {
return numMessages;
  }

  public function flush():Array {
var array:Array = null;
if (numMessages  0)
  array = new Array();
while (numMessages  0) {
  var obj:Object = mailbox.firstElement();
  array.addElement(obj);
  mailbox.removeElementAt(0);
  numMessages--;
}
return array;
  }
}

Ron Wheeler [EMAIL PROTECTED] wrote:
The code is pretty simple. Have you tried to code and test it under 
ActionScript?
It looks like you add objects  to a list and take the first one off the 
list. It provides a function to find out if there are any objects in the 
queue. What is wrong with this?


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___

Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] HashMap?

2006-05-17 Thread Ron Wheeler



Bernard Poulin wrote:

Funny, I was actually thinking of an implementation which would use a
Java-style String objects. In java, all string objects have an int hash
data member (computed the first time it is needed).

In that scenario, only a portion of the hash value is used to make the 
hash
lookup. The complete hash stays around since it is part of the String 
object

and so can still be used to quickly distinguish strings.  Also when
rehashing you do not need to really compute new hashes - you just 
need

to re-distribute them based on more bits of the complete hash.


That only works if the hash primary table has a length that is a power 
of 2. If your original has maps from 1-5,000 and your increase the size 
of the primary storage area to 15,000, you will need more than more 
bits, you will need a completely different set of hash values.
Not sure what Java does with its hash. Do you have to declare the 
maximum array size when you declare the array?


Ron

And yes, this
is still heavier than re-balancing a tree.

regards,
B.



Binary searches may involves a lot more string comparison. In a binary
 search comparing the string hash value is of no use to know if the
 value
 is greater or lower (to decide for the next search direction). In
 hashmaps, the lookup in the chain after the hash jump can, most 
of the

 time, skip a string entry without even looking at the characters by
 comparing the 32bit integer hashes.
String hashes are only useful for looking up a specific value. It is
unlikely that the hashes are even stored since once you store the
key/value you no longer have any need for the hash since the position in
the main table is known and you can follow the links in the overflow
back to the main table(usually).

If you are hashed into the overflow, you have to examine each key since
the hashes are identical for everyone in the list (otherwise they would
not be in the list - they would be in another list of collided hashes).


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] word docs-to-xml file

2006-05-18 Thread Ron Wheeler

Word to OpenOffice
OpenOffice stores the file as a zip with the actual text in a file 
content.xml inside the zip. The OpenOffice document can be opened with 
any one of the zip packages(winrar, winzip,etc)
You will find the contents of your document in XML and you only have to 
read it or transform it with XSLT to a format that you like.


Ron

Adrian Lynch wrote:

Save the Word doc as HTML and see if it's easier to parse it. I had to do
something similar but I gave up as the HTML was a right royal mess.

Let us know how you get on.

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Marlon
Harrison
Sent: 17 May 2006 16:53
To: Flashcoders mailing list
Subject: [Flashcoders] word docs-to-xml file


I made an xml file for a swf that i'm working on and i'm looking for a
quick way to get the data out of the docs into the xml file.
basically, there's 50 docs that have data that map to some nodes in my
file.  is there a text editor or some macro i can use to automate this
process?  im runnning mac os x (10.4) tiger

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ControlManager implementation for Moock MVC framework

2006-05-22 Thread Ron Wheeler
You might want to look at ActionStep which has a framework for MVC that 
you could use directly or as a model.

All the little gotcha's have all been worked out.

Ron

Spiral Universe wrote:

Hi. I'm trying to build an app based on the MVC framework provided here: 
http://www.adobe.com/devnet/flash/articles/mv_controller.html

Basicly everything would be ok except that I would need to extend it to use a 
super controller which dispatches calls to the actual controller of the view 
requesting control (something like ControlManager in Smalltalk). Anyone came 
across somthing like this, or could explain at basic level how could I 
implement smth like the ControlManager, but not hurting the framework (at all, 
or at least minimal)  ?




-
Ring'em or ping'em. Make  PC-to-phone calls as low as 1¢/min with Yahoo! 
Messenger with Voice.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Slides and Screens - Help, please

2006-05-23 Thread Ron Wheeler

Google Flash Slideshow.
You will find all kinds of code and tips.

You may find that people in this forum are more inclined to get involved 
when you have a more particular problem with some code that you are 
debugging. How do I write code... is not a promising start to a question.


If you look at one of the many examples already written, you will find 
it easy to get started and then we can be of more help.


Ron

Loren R. Elks wrote:

I am beginning to work with screens and slides.  I understand how to load 
external swfs into my slides or screens.
 
Here's the question:  How do I write code such that when my external swf that is loaded into the current slide or screen finishes playing, the application will automatically move to the next slide (or another slide or screen)?
 
 
 
Sincerely,
 
Loren 
___

Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: Biased Random Particle Distribution

2006-05-26 Thread Ron Wheeler

Would a formula based on logarithms give you what you want as well?
You were not very specific about what you wanted the distribution to 
look like.


Ron
clark slater wrote:

Here I go answering my own question.

To make it more dense toward the origin, use {x,y} = {random[]^2,
random[]^2}--squaring the independently generated numbers 
(random[]*random[]

won't work). The result is a distribution with a sharp cusp at the
origin--the probability is a maximum there, and has a discontinuous
derivative. You can use higher powers for narrower (and sharper)
distributions.

Damn useful I say!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: Biased Random Particle Distribution

2006-05-27 Thread Ron Wheeler
I was surprised that the squaring gave you any kind of banding since it 
should be a smooth bias.
I think that the log transformation will give you less of a bias toward 
one side but I have not pulled out all my old stats and calculus books 
to check this out.
It would seem that a normal distribution(cut in half and shifted) or a 
Poisson might be what you are looking for.

What is the physical phenomenon are you trying to model?

http://mathworld.wolfram.com/topics/ContinuousDistributions.html has 
more distributions that I ever knew existed.

It has a picture and formula for each one.

Ron


clark slater wrote:

Hi Ron,

Thanks for jumping into this thread amongst the tumbleweeds. Yes, I 
suspect
something logarithmic could work but don't know where to start. I am 
trying

to distribute 1000 particles randomly in a rectangular distribution area,
with a bias towards one side of the rectangle.

Clark


On 5/26/06, Ron Wheeler [EMAIL PROTECTED] wrote:


Would a formula based on logarithms give you what you want as well?
You were not very specific about what you wanted the distribution to
look like.

Ron
clark slater wrote:
 Here I go answering my own question.

 To make it more dense toward the origin, use {x,y} = {random[]^2,
 random[]^2}--squaring the independently generated numbers
 (random[]*random[]
 won't work). The result is a distribution with a sharp cusp at the
 origin--the probability is a maximum there, and has a discontinuous
 derivative. You can use higher powers for narrower (and sharper)
 distributions.

 Damn useful I say!
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: Biased Random Particle Distribution

2006-05-28 Thread Ron Wheeler
Have a look at http://www.horsefish.net/ElementalFX/ if you want to see 
some neat flash by one of the regulars here.


Ron

Dwayne Neckles wrote:
My god are you guys seriously talking about Flash here. I mean this is 
so advanced. I feel like I gotta be a math whiz and a flash whiz ( an 
unexpected combination ) to get all of this.


god bless you guys, meanwhile Ill be lurking figuring out how exactly 
biased random particle distribution can be applied to flash..


ill send an fla if i get it figured out

goodness,

Dwayne

Original Message Follows
From: clark slater [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Re: Biased Random Particle Distribution
Date: Sat, 27 May 2006 11:58:57 -0700

Thanks Ron,

I'm working on a dynamic portfolio component for a client and I've been
given static designs that I have to match.

The beginning of the portfolio has a couple hundred *tiny* icons that 
appear
spread across the stage in a non overlapping random pattern. Thing is, 
it's

not a normal distribution - with many more of the icons appearing to the
upper left (origin) of the stage...then spreading out in a random but
decreasingly dense pattern across the stage.

So it turned out that using the squared random value worked really 
well in

this particular case. I was kind of surprised how well it works actually.

That link's a wonderful resource for these kind of things, thanks a 
million.


Clark


On 5/27/06, Ron Wheeler [EMAIL PROTECTED] wrote:


I was surprised that the squaring gave you any kind of banding since it
should be a smooth bias.
I think that the log transformation will give you less of a bias toward
one side but I have not pulled out all my old stats and calculus books
to check this out.
It would seem that a normal distribution(cut in half and shifted) or a
Poisson might be what you are looking for.
What is the physical phenomenon are you trying to model?

http://mathworld.wolfram.com/topics/ContinuousDistributions.html has
more distributions that I ever knew existed.
It has a picture and formula for each one.

Ron


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] When you are done with a project what do you take with your for your portfolio

2006-05-31 Thread Ron Wheeler
Ask the client for permission to use what ever you want to show. Make 
sure that the current client is clear what your role was in building the 
thing that you want to show. If you new prospect calls to check your 
reference and the client says that he does not recall if you worked on 
that part of the project, you will look pretty silly.


Ask the client to approve (or write if you think that they have the time 
and inclination) a statement in their name saying that they were happy 
with your work and would recommend you to others - this is worth more 
than a demo of some application that your next prospect does not care about.
Make sure that it is clear whether you have permission to use this 
endorsement on your web site or only in letters to individual prospects.


Provided your client has given you permission, you are going to be in 
the clear.
Without permission, you might surprise your current client when he hears 
from a friend (your prospective client) that you are showing stuff that 
you took from him. His initial reaction of surprise might cause your 
prospective client to have doubts about your integrity. You would be 
surprised how small some business circles are. Assume that all 
statements will be checked.


Ron


Marcelo de Moraes Serpa wrote:
Well, just be clear on what you´ve done in this project... I guess 
you´ll be

fine if you just be honest ;)

Marcelo.

On 5/31/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:


I am in the process of wrapping up a project and don't want to leave
without
anything to show that I built this project the next time someone wants a
sample to demonstrate my skillset.  What does a developer traditionally
have
the right to include in a portfolio to demonstrate to subsequent clients
what a previous project was capable of?

Thank,

Mani
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tool for creating UML diagrams from ActionScript codeother than Enterprise architect?

2006-06-01 Thread Ron Wheeler
doxygen generates complete documentation with class diagrams for 
Actionscript.


Has a little trouble with typing and could really use an actionscript 
preprocessor but works well without it.
Use Javadoc coding in your comments and you get a nicely done standard 
documentation set.


Has an Eclipse plug-in.

Ron

Adam Pasztory wrote:
I'm still using gModeler.  Though I have to admit it's getting a bit 
long

in the tooth.


Is anyone aware of such a tool?  I have some classes that I would 
love to

generate actual UML diagrams for.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tool for creating UML diagrams from ActionScript codeother than Enterprise architect?

2006-06-01 Thread Ron Wheeler

Free as wel.

Ron Wheeler wrote:
doxygen generates complete documentation with class diagrams for 
Actionscript.


Has a little trouble with typing and could really use an actionscript 
preprocessor but works well without it.
Use Javadoc coding in your comments and you get a nicely done standard 
documentation set.


Has an Eclipse plug-in.

Ron

Adam Pasztory wrote:
I'm still using gModeler.  Though I have to admit it's getting a bit 
long

in the tooth.


Is anyone aware of such a tool?  I have some classes that I would 
love to

generate actual UML diagrams for.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML Parsing

2006-06-05 Thread Ron Wheeler
If it was up to me, I would redo the XML to be a bit more concise and 
more standard.

layers
   layer name=LayerOne
   assets
   asset width=20 height=10 xPos=50 yPos=30 
name=somename0.bmp /
   asset width=20 height=10 xPos=50 yPos=30 
name=somename1.bmp/

  /assets
   /layer
   layer name=LayerTwo
   assets
   asset width=20 height=10 xPos=50 yPos=30 
name=somename2.bmp /

  /assets
   /layer
/layers

This will parse better. It is probably easier to create.

You can parse this into a Layers Object which is a collection (array) of 
Layer objects.
The Layer Object has a name (LayerOne) and a list of Asset Objects as 
propertie.s
The Asset Object has properties which correspond to the XML 
attributes(width, height, etc.).


The total layers is redundant since it is only the length of the Layers 
Object array of Layers. function getLayerCount(){return layersList.length;}



If you are stuck with your existing XMl, you can still use the same 
object structure once you have parsed it but will have a more 
complicated parse since you have these LayerOne, LayerTwo trees which 
will have to be recognized in your parse. With XPath, this will be a PITA.


If you write your own parse, you can probably make some assumptions 
about the tree structure which will avoid having to write a lot of code 
to deal with LayerOne, etc.


By dynamic, we mean that you just store the whole XML string and parse 
it each time you want some information.
If you can not fix your XML structure, dynamic parsing will likely be 
too expensive and you should parse the XML once into an object hierarchy 
and work with the objects.


Ron



Sajid Saiyed wrote:

Hi,
I have an XML like this:

root
totalLayers
number5/number
/totalLayers
LayerOne
asset
 namesomename0.bmp/name
width20/width
height10/height
xPos50/xPos
yPos30/yPos
/asset
asset
 namesomename1.bmp/name
width20/width
height10/height
xPos50/xPos
yPos30/yPos
/asset
/LayerOne
Layertwo
asset
 namesomename2.bmp/name
width20/width
height10/height
xPos50/xPos
yPos30/yPos
/asset
/LayerTwo
/root

I want to use XPATH or something similar to create dynamic
arrays/string and store values respectivele like this:

String:
totalLayers = 5;

LayerOne and LayerTwo will be a multidimentional array

LayerOne[[asset[name,width,height,xpos,ypos]][asset[name,width,height,xpos,ypos]]...] 

LayerTwo[[asset[name,width,height,xpos,ypos]][asset[name,width,height,xpos,ypos]]...] 


etc...

Any hint or suggestion...?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML Parsing

2006-06-05 Thread Ron Wheeler



Sajid Saiyed wrote:

Hi,
My data is not this simple or static.


???not static - your XML changes after you have read it???

I gave this sample XML just to explain the structure.

The XML is going to be dynamic, hence I need to parse it using
something like XPATH (I suppose).
If the XML changes while you are using it, you will have to use it 
dynamically and then you do not need the arrays and objects - just a set 
of parsing routines that wander through the tree looking for data.
This is a bit more complicated but we do it often; even for static data 
sometimes.
Unless you change your XML structure to be a bit more normal, XPath 
will be hard to use and you will have to climb up and down the tree 
yourself.


Ron


Regards

On 6/5/06, Weldon MacDonald [EMAIL PROTECTED] wrote:

If your data is that consistent and all you need is to transfer it to
arrays, then why do you need xpath, you could write your own parser,
using while loops, to do this in very little time.
I'm not an experrt, but it seems to me that xpath is more useful for
dynamic access to the xml. Is that not correct?
If I am correct, an interesting question is; what is more efficient,
transferring to arrays and using the arrays, or dynamically accessing
the xml directly?

On 6/5/06, Sajid Saiyed [EMAIL PROTECTED] wrote:
 Hi,
 I have an XML like this:

 root
 totalLayers
 number5/number
 /totalLayers
 LayerOne
 asset
  namesomename0.bmp/name
 width20/width
 height10/height
 xPos50/xPos
 yPos30/yPos
 /asset
 asset
  namesomename1.bmp/name
 width20/width
 height10/height
 xPos50/xPos
 yPos30/yPos
 /asset
 /LayerOne
 Layertwo
 asset
  namesomename2.bmp/name
 width20/width
 height10/height
 xPos50/xPos
 yPos30/yPos
 /asset
 /LayerTwo
 /root

 I want to use XPATH or something similar to create dynamic
 arrays/string and store values respectivele like this:

 String:
 totalLayers = 5;

 LayerOne and LayerTwo will be a multidimentional array

 
LayerOne[[asset[name,width,height,xpos,ypos]][asset[name,width,height,xpos,ypos]]...] 

 
LayerTwo[[asset[name,width,height,xpos,ypos]][asset[name,width,height,xpos,ypos]]...] 


 etc...

 Any hint or suggestion...?
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



--
Weldon MacDonald
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Where to politelyandappropriatelydiscusspricing issues

2006-06-05 Thread Ron Wheeler
We have had this discussion before. Salary expectations vary by country 
and by city. I am sure that many people in the forum living in India or 
other parts of Asia would be pleased to make $40,000 per year. Someone 
in New York City would starve to death in the cold. Someone in rural 
Kansas might find $40,000 per year a good supplement to a farm income if 
they can work from the farm.


The important thing was the formula and the mechanism that it suggests 
for doing the calculation.


Ron

Lee McColl-Sylvester wrote:

Actually, I think Nicolas Canasse has the best job.  He spends all his
time working on cool technologies like Neko and haXe, and when he's
REALLY working, he's making games.  What's all that about?  Can't I have
his job?




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lee
McColl-Sylvester
Sent: 05 June 2006 15:15
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Where to
politelyandappropriatelydiscusspricing issues

I have an idea Lets poll to see who's paid the most, then I can
apply with that company ;-)




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 05 June 2006 15:03
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Where to politely
andappropriatelydiscusspricing issues

Graphic designers, like Flashcoders, have a huge range in salaries.

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

  

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Lee McColl-Sylvester
Sent: Monday, June 05, 2006 10:09 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Where to politely and
  

appropriatelydiscusspricing
  

issues

I thought Graphic Designers were on good salaries.  Wow, glad I chose
the career path I'm following.  With all my education in art schools,
  

I
  

coulda gone the other way ;-)

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian
Mays
Sent: 05 June 2006 14:52
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Where to politely and
appropriatelydiscusspricing issues

That was a graphic designer's salary :-)  And the book's example :-)


On 6/5/06 8:56 AM, Lee McColl-Sylvester
  

[EMAIL PROTECTED]
  

wrote:

  

$40k salary?  What planet are you on?  ;-)

It should be twice that at least!



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML Parsing

2006-06-05 Thread Ron Wheeler

If you get a nice clean XML structure, XPath will save you a lot of code.
It takes a bit of getting used to but it will make your life easier.

Ron

Sajid Saiyed wrote:

Hi Ron,
I can modify the XML structure and will not be a problem , I will try
your suggested solution.

Merill,
I am trying to use XPATH feature built in Flash8. I will try your
suggestino as well.

Hope to get to a solution soom, but the discussion is surely helping
me right now.

Sajid

On 6/5/06, Merrill, Jason [EMAIL PROTECTED] wrote:

I believe it used to be, but anymore the difference is negligible.

In my experience, on small data sets, it makes little difference.
However, using attributes over nodes can in some cases decrease the
actual size of the XML file or string by a factor of 3 or 4, do this can
make a difference on larger data sets, especially the more complex ones.


Jason Merrill
Bank of America
Learning Technology Solutions




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] UML Modelling for AS2.0 applications ...

2006-06-07 Thread Ron Wheeler

ArgoUML . Open Source from tigris.org.


Stephen Ford wrote:

Can anyone recommend a good application or website for UML modelling of an 
AS2.0 application.
 
I have taken a look at gmodeler and downloaded an application called Enterprise Architect, but can anyone recommend anything else I should look at.
 
Thanks,

Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML diff

2006-06-10 Thread Ron Wheeler
Just hang onto the xml tress and walk them in parallel. Depending on the 
types of changes that might happen, you will have varying degrees of 
difficulty in matching the trees. Probably easier than a diff on a text 
file.


Possible tests:
For each node,
   check attributes for changes - easy if you have a list of possible 
attributes - missing or new attributes

   If you have node values - did they change
   check number of children - more  or less?? What to do if a child 
tree is missing? What to do if you have a whole new child tree.
   How do you match the children between the old and new trees? - do 
they have unique ids or attributes that never change so you can find the 
same subtrees to compare.

options id=file handling

 group id=text files
   option id=open... /
   option id=not open... /
 /group

 group id=image files
   option id=open... /
   option id=not open... /
   option id=pretty... /
   option id=not pretty... /
 /group
/options...

   recurse through children.
You


Not terribly difficult once you think of the tree structure and once you 
think about what kind of changes you are prepared to handle.


Ron

Howard Nager wrote:
I have an upcoming project and am trying to figure out how to do what would best be described as a diff on a xml file. 


For example, here would be the initital xml:

root
optionsA
  group
option ... /
option ... /
  /group

  groupB
option ... /
option ... /
option ... /
option ... /
  /group
...
/root

The way the system works is that all of the logic is handled server side. So when the user selects an option it hits the server and gets back another xml file with an updated price and more or less options depending on whatever rules came in to play. 


The front end was originally an html page which would redraw itself with every 
interaction. If I were to just emulate that model I would grab the new xml and 
redraw the menu within my flash movie with every selection. The issue with that 
is that each option has an associated thumbnail image loaded externally and 
redrawing hte menu would mean reloading all of those.

I would rather look at the new and old xml files side by side and see what 
changed so that I could leave anything that didnt change alone.

Any ideas on this?
  



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] xls - xml mapping

2006-06-15 Thread Ron Wheeler
If you give the client an OpenOffice spreadsheet, the data is already 
stored in XML and you may only need a minor transformation with XSLT to 
get it into a format that you want for for your flash backend.

OpenOffice is free and looks a lot like Excel .
If your client will only deal with Excel, you can read the Excel 
spreadsheet with OpenOffice, save it as an OpenOffice spreadsheet and 
continue the process.
We used this to build a searchable database of Personal Protective 
Equipment for First Responders that ran without any server(police cars 
and firetrucks do not generally have their own on board servers.).


Ron

Kedar Mehendale wrote:

Hi,

I have designed a website in flash with a xml backend. All the products are 
called from the xml datasheet. Now the client wants a simpler way of updating 
the site. He finds xml difficult to work on.

How can i map an xls to the xml backend. ie the client will update the xls file 
 upload it. From there the xml should read the xls file and update the site.

Is that possible. Pls do help if anyone knows the solution or codes to do it.

Thanks.

Regards,
Kedar Mehendale

Account Supervisor
Tribal DDB India 
[EMAIL PROTECTED]

Brindavan , 3rd Floor, Shree Ram Mills, Worli, Mumbai 18
Tel: 022-30404055 /58
Cell: 9820211838
www.tribalddbindia.com


This email is intended only for the named person or entity to which it is 
addressed and contains valuable business information that is privileged, 
confidential and/or otherwise protected from disclosure. Dissemination, 
distribution or copying of this email or the information herein, by anyone 
other than the intended recipient or an employee or an agent responsible for 
delivering the message to the intended recipient, is strictly prohibited. All 
contents are the copyright property of Mudra Communications Pvt. Ltd. (Mudra) 
or its group Companies or its clients. If you are not the intended recipient, 
you are nevertheless bound to respect the sender's legal rights. We require 
that unintended recipients delete the email and destroy all electronic copies 
in their system, retaining no copies in any media. Information in this message 
that do not relate to the official business of sender or its group Companies 
shall be understood to be neither given nor endorsed by the Company. If you 
have received this e-mail in error, please notify us immediately by email to 
[EMAIL PROTECTED]

The email has been successfully scanned for presence of virus.  It is 
recommended to scan along with attachment, if any, before launching. We do not 
accept any liability for any errors, omissions, viruses or computer problems 
experienced by any recipient as a result of this email.








___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Sharing fla over network

2006-06-15 Thread Ron Wheeler
Add Eclipse as an IDE and move to MTASC (FAME ). That is still the best 
way to go.


Ron

jim wrote:

If you can use some source control like SVN that might be what you are
looking for. Its pretty easy to set up and will stop you writing over each
others changes.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 15 June 2006 15:02
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Sharing fla over network

Isn't is a better idea to have different people writing classes and then
sharing those? You can use interfaces to make sure they are complying
with the specs you establish for the project.  Then just have one person
compile the .fla.  The people writing classes can compile their own
.flas to test their classes, but the classes should be abstract enough
that only the lead Flash person needs to compile the .fla importing the
other classes the other developers wrote.  


Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

  

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Kurt Dommermuth
Sent: Thursday, June 15, 2006 9:57 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Sharing fla over network

Makes sense.  Thanks Zeh.

Maybe you can tell me if there if there is any way to ensure that
  

accessing
  

fla files over the network is stable.  I know in the past that flas
  

have
  

disappeared on me when working off a network drive.  I'm guessing
  

you'd say
  

that I should duplicate whatever it is and put in on my own local
  

drive and
  

not even risk it, but I thought I'd ask.  It's just a mess to have
  

client
  

work all over the place.

thanks again!
Kurt

\At 09:49 AM 6/15/2006, you wrote:

  

I recently hired an assistant and we need to share and
  

simultaneously
  

work on .fla files over a local network.
There must be tools for this, but a search on google didn't yield
anything (must not be using the right terminology).
  

There isn't. Only one people can work on a .FLA at a time.

You can have separate symbols that are loaded (shared) from other


.FLA
  

files at design time, so then can be worked on and the reloaded. But
usually it's not worth the hassle.

Usually, you shouldn't have the need for two people to work on the


same
  

.FLA file at the same time simply because changing two different


aspects
  

of a source file would make compiling and debugging impossible. If


they
  

want to work on two different things, you'd better split the .FLA


file
  

into different files, then the website would have different SWF files
which are loaded on demand on the website.


- Zeh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML named node values

2006-06-17 Thread Ron Wheeler
If the chNames do not have any key or ids, with what are you trying to
stay in sych?

If you are trying to use the node value as a key, then that is what you
have to check.

This is an XML fact of life - nothing to do with Flash or Actionscript.

XPATH will simplify the problem of finding specific nodes but traversing
the tree will work pretty easily as well.


Ron



D_C wrote:
 hi list -

 Q on flash and XML.

 is there a way to read named values from XML without using attributes?

 eg using atrribute names, a flash XML object can read named values,
 like associative arrays.

 channel chName='stocks' /

 xmlData.attributes[chName]

 but what if i want to use text nodes, like

 channel
 chNamestocks/chName

 then it seems the only way to access the data is:

 xmlData.firstChild.nodeValue

 but then if i change the order of the nodes, the app loses sync with
 its data.

 are there some other methods to the XML object that I am missing? Or
 do i have to write functions to loop thru the whole tree and check
 against nodeName (eg with a search function)? I guess there are
 probably some XPath libraries out there, but this would seem a basic
 functionality...

 Thanks!

 /dc
 ___
 David DC Collier

 [EMAIL PROTECTED]
 skype: callto://d3ntaku
 http://www.pikkle.com
 +81 (0)80 6521 9559

 http://charajam.com 【★キャラ♪ジャム★】
 人気キャラとJ-POP最新ヒット曲を自分で組み合わせて
 待受Flashや着Flashを作っちゃおう!
 ___
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Language Supported in Flash?

2006-06-19 Thread Ron Wheeler

What do you mean by support?
IDE in Portuguese and Spanish

Ability to develop applications that display and process Portuguese and 
Spanish - yes.


Suhas Kotkar wrote:

Hi All,

Can any one let me know whether Flash has the support for
the following languages?

 


Spanish (Latin American)

 


Portuguese (Brazilian)

 

 

 


Regards,

Suhas

 

 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] For...in counts backwards?

2006-06-20 Thread Ron Wheeler



Mendelsohn, Michael wrote:

Hi list...

From the help on for...in:

You can also iterate through the elements of an array:

var myArray:Array = [one, two, three];
for (var i:String in myArray) {
trace(myArray[i]);
}


This code outputs the following in the Output panel:

three
two
One


Why is the data output in reverse order and is there any way of ordering
it one,two,three?

  
Why is any order better than another. one,two,three is not the correct 
alphabetic sort order.

How would you order

var myArray:Array = [cat, pig, dog];

Alphabetic, by average weight, by popularity???

If you want an associative array to have some sort of order that depends 
on some interpretation of meaning, you will have to do that yourself.


What are you really trying to do? There is probably a simple solution. 
Perhaps you do not really want and associative array at all?

Thanks,
- Michael M.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] help

2006-06-20 Thread Ron Wheeler



Bachman, Richard wrote:

I need help with creating a site somewhat like this 
onehttp://www.samsung.com/se/current/campaign/slim/site/index.htm

I'm trying to figure out the coding involved in this site. Thanks!

  

There could be quite a bit.
I did not try the game but the phone exploration part has a fair amount 
of action in it.


There are probably many ways to do this. It is not too complex to handle 
as a set of timeline animations but might be easier with some 
Actionscript framework to orchestrate the animations.


What are you trying to do? What Flash or Actionscript technologies are 
you most comfortable with?
Have you got a design of what you want your application to do? Once you 
know all of the states that your user can get into and what they can see 
and do in each state, you will have a better guess about how much code 
you will need.


Ron


Rich
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] OT: Junior Developer Flash/Flex Salary?

2006-06-20 Thread Ron Wheeler



Mark Lapasa wrote:

These are most interesting points Radley.

However on the topic of 'pre-made code', I am now wondering what is the
practices of some the freelancer/consultants/etc. on the list. If people pay
you money for code, be it 30k or 100k, is it right to use your past
developed code on future code?

I think when taking on gig's, it's meant that you are generating code they
don't would not initially have. Once the gig is done, I think the business
has an understanding that they paid you for the code and they own the code?

  
They usually own the code but not the things that you have learned 
writing it.

If they don't own the code, then does it becomes a matter of licensing?
  
If it one or 2 classes, then you can rewrite it pretty easily. If it is 
a whole set of functionality that you want to reuse, it is probably a 
good idea to ask for permission. They will likely say yes and they 
will be very impressed by your ethics.

I guess what I am asking is if you have previously developed code and use it
on other clients, is it ok?

  
It leaves your new clients open to being sued. Not likely to happen but 
it can be very embarrassing.




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Radley
Marx
Sent: Tuesday, June 20, 2006 4:12 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OT: Junior Developer Flash/Flex Salary?




apologies for keeping this thread open...

 From what I've gleaned, while the rate quoted to you may be low, it
does sound like a transitionary rate and appropriate. Not that you're
only worth it but because you sound very inexperienced in the market.

What I mean by inexperienced is you have to ask if 30k is too low,
and you also have another day job which sounds unrelated to your
Flash/Flex work. So at this point, you may have to grab at what's
offered.

I'd recommend caution with this gig and make sure you're not tied to
it too long. I'd look at it as a paid internship where you're
basically getting your first notch in your belt as you change careers.

If you haven't considered creating a portfolio for yourself, now is
the time to build it. Don't put too much time into it and especially
don't let it hold you in almost done limbo. A list of skills, a
gallery of projects completed (even student and/or lame ones), and
contact info are all you need at this stage.

In the meantime, begin to look around your area and find out where
the real Flash/Flex work is (studios, ad agencies, internet
companies). Begin to make contacts. Let them know who you are and
you're availability.

Part of making $50/hr ( much more) isn't always about making a
decent rate like everyone else does. It's often about having multiple
potential clients needing your help and willing to pay for it. And
each project you build adds more and more pre-made pieces you have
for the next gig. Those pre-built pieces are there to save your
client time, but still make you $$ - another foundation for why we
can make much more $$ per hour.

It'll take time to build up your rate, so focus on the first steps:
do a good job with your first gig, get your portfolio up, and get in
touch with the proper market.

good luck =)

-radley


On Jun 20, 2006, at 11:06 AM, Tristan wrote:

  

Well said. I agree. I'll test the waters and jump out if it's not
working.
I'm still keeping my day job until I'm satisfied with coming on
full time.
Although, now that missiles are being tossed our way, maybe I
should just be
happy to be alive! Geez, I hope someday we all get along. Life's
too short
as it is.

Sorry, off topic comment but, I just heard about it and it's scary
not for
just usa but, for the whole world.

Love,
T

On 6/20/06, Kevin Mulvihill [EMAIL PROTECTED] wrote:



$11/ hr accepting that is part of the reason why people think
they can pay developers peanuts


Here, here.

Denver is a big city comparable to L.A., where I am. And in this
city, bag
boys at grocery stores are making $11/hr. Even way back in '97
when I was
in
my last corporate job, it was costing us $15/hr. just to have a
temp come
in
and put papers in a filing cabinet. Is that how you see yourself? As
unskilled labor???

Now if the idea is just that the guy wants to check you out and
make sure
you can do the work, then I might give him a few DAYS at $11/hr.
and then
revert to an honest pay scale if he wants to keep you... And this
assumes
that you don't have any references or much in the way of code
samples to
share.

The real question then becomes 'how long is it going to take to
get you up
to speed?' If the guy is thinking several months, then you would
clearly
be
foolish to accept that offer. If you don't respect yourself, no
one else
will either... And your getting 'up to speed' could take a very
long time
indeed.

Kevin





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:

Re: [Flashcoders] growing animation

2006-06-21 Thread Ron Wheeler

http://www.jcu.edu/math/vignettes/lsystems.htm
http://www.acm.org/crossroads/xrds8-2/plantsim.html
http://www.linuxlinks.com/Software/Graphics/Fractals/
http://wase.urz.uni-magdeburg.de/jschulen/lplants/index.html

http://algorithmicbotany.org/papers/abop/abop.pdf  A very good on-line 
textbook on the subject


Ron

[EMAIL PROTECTED] wrote:

Check gskinner.com
He has an example of this.Basically its an enterframe to simulate the
camera movement and not sure about the branches - probably another process
for that.


  

Hi.everyone


Here is the link:
http://www.interone.de/cms/de/

Anybody can explain how did they do !

Thanks.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] euro symbol fight

2006-07-06 Thread Ron Wheeler
Who controls my_flash_service.php. That is the spot where the escaping 
should be done.


Ron

Gabriel wrote:
Is a good idea, but I cannot do that because, most of the data I get, 
I retrieve it from the database directly trough the ORM (pear), so I 
can't touch the data.


the way it comes is:

DB-ORM-my_flash_service.php-AMFPHP gateway-myApp.swf

any idea?

thanks!
GaB

David Rorex wrote:

How about 'escaping' the text before you send to amfphp, and
'unescaping' the text after you recieve it back?

escaping = turning all non-standard characters into things like 
%12%34%56

unescaping = reverse of above process

-David R

On 7/4/06, Gabriel [EMAIL PROTECTED] wrote:

thanks Serge
yes, it has the symbol. And is not the embed problem...

thanks
GaB

Serge Jespers wrote:
 Does that font have the euro symbol?
 I think what you're describing could mean it doesn't have the font
 symbol...

 Serge



 thanks Bernard, but this is not the problem.

 I have a table in a database, where I write this text this will 
cost

 you 50€.

 when I retrieve this info from AMFPHP I receive the whole text 
except

 for € which cames as a square.

 thanks,
 GaB

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


--
Gabriel Belvedere

www.antares.es http://www.antares.es
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] euro symbol fight

2006-07-06 Thread Ron Wheeler

If you want it to work
It is probably easier to do every single one than just some.

Ron


Gabriel wrote:
I access it with AMFPHP, are you saying I have to modify every single 
object returned from AMF?



thanks

Ron Wheeler wrote:
Who controls my_flash_service.php. That is the spot where the 
escaping should be done.


Ron

Gabriel wrote:
Is a good idea, but I cannot do that because, most of the data I 
get, I retrieve it from the database directly trough the ORM (pear), 
so I can't touch the data.


the way it comes is:

DB-ORM-my_flash_service.php-AMFPHP gateway-myApp.swf

any idea?

thanks!
GaB

David Rorex wrote:

How about 'escaping' the text before you send to amfphp, and
'unescaping' the text after you recieve it back?

escaping = turning all non-standard characters into things like 
%12%34%56

unescaping = reverse of above process

-David R

On 7/4/06, Gabriel [EMAIL PROTECTED] wrote:

thanks Serge
yes, it has the symbol. And is not the embed problem...

thanks
GaB

Serge Jespers wrote:
 Does that font have the euro symbol?
 I think what you're describing could mean it doesn't have the font
 symbol...

 Serge



 thanks Bernard, but this is not the problem.

 I have a table in a database, where I write this text this 
will cost

 you 50€.

 when I retrieve this info from AMFPHP I receive the whole text 
except

 for € which cames as a square.

 thanks,
 GaB

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


--
Gabriel Belvedere

www.antares.es http://www.antares.es
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] OT SVN/Project Hosting

2006-08-14 Thread Ron Wheeler
Can anyone recommend a good project hosting site with reasonable rates 
and good uptime?
Want to host a small project 3-4 developers  - Flash and server side so 
likely need several projects with the same team


Minimum SVN, Bugzilla, etc. Anything else to ask for?

Client side will be Eclipse.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] working with dynamic images using mysql database

2006-08-22 Thread Ron Wheeler
Why would you want to add the extra overhead of a file system? What 
about data backup synchronization/integrity issues?
How do you organize the files. What if you get a lot of files and your 
filesystem chokes? Put a thousand files in a Windows directory and watch 
the fun.

You have more control over tuning and caching in a database.

Database systems are designed to provide fast access to data. Proper 
design and tuning are important but that is true of everything when you 
deal with large volumes of data.


Ron

Anthony Lee wrote:



iam interested to *load images from databse* using mysql.
Don't keep blob data in a database. Store a reference to it's location 
in the file system.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] UML Diagrams

2006-08-24 Thread Ron Wheeler

ArgoUML from www.tigris.org is free.
Eclipse has a free UML editor

If you want to generate UML from Actionscript, Doxygen will do that and 
generate Javadoc style documentation from properly commented code.


Ron

Mike Keesey wrote:

Just curious,
 
What do people on this use to create UML diagrams? Do you use a WYSIWYG

diagram-creating tool (preferrably which can output skeletal AS class
code)? Or do you use something that scans preexisting AS classes and
generates UML diagrams (or a UML-related XML format, like UXF).
 
I've experimented with a few such programs. I'd really like to find

something (or a combo solution) that can work both ways.
--
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Ron Wheeler

Almost all of the examples of coding on Macromedia are OOP.

If you download any of the open source code in the 
http://www.osflash.org/ site, you will find nicely written, peer 
reviewed code written in Actionscript. For dozens of examples, download 
ActionStep.


It is easy for everyone, some people just look at the glass as half empty.

It does not supplant common sense or remove the need to think about what 
you are doing.


Ron



Ricardo Sánchez wrote:

Ok, I see its not so easy for everyone. Can anyone point out some
tutorial-like examples on internet or books. I know a lot of theory
(inheritance, polymorphism...) but I would like to see more 
applications for

it so I can be more confident when I use it.



On 8/24/06, slangeberg [EMAIL PROTECTED] wrote:


My main motivation for this stuff in Flash is so that my code actually
gets
checked by the compiler, vs. Flash's crappy built-in code-checking 
for the

stage. That is, it will tell me if I've mis-spelled something, created
duplicate variables, the list goes on...

In addition, I write my classes in FlashDevelop, which gives you code
completion. Which means when I start to type:

 import mx.

I get a listing of all packages that Macromedia's written, instead of
looking for stuff in the help (that's fun).

And best yet, when I type:

var sBigD:ScottsSuperHugeOne = new SuperHuge();  //just a little
poly-morphism thrown in there (huck-huck) ;)

and I type:

 sBigD.

I get a list of every function in my class, as well as its signature
(params
 types).

I'm only talking about FlashDevelop here. Guess I'm spoiled by Java  
.NET
which have instance access to API's at your finger tips (when in the 
right

IDE's).

I'm just trying to find a better and efficient way to go. Way open to
suggestions!

-Scott


On 8/24/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:

 OOP and Flash is indeed tricky to fully grasp. It has become easier 
and

 more
 natural to implement OOP techniques on AS3 though.

 @Neo: Completely agree with you.

 On 8/24/06, neo binedell [EMAIL PROTECTED] wrote:
 
  I'll tell you a little secret about OOP.
 
  Don't sweat it.
 
  Sometimes the model jumps out at you but other times you
  have to find it. How to find it? Write something that does
  what you want. Then refactor it once you have a better idea
  of how it works. The more you do that the more certain patterns
  and approaches crystalise for you.
 
  I think there's too much over-engineering going on in general
  as some people seem to think implementing all the latest patterns
  on even the smallest project makes them good developers.
 
  I've been guilty of it myself a couple of times, writing frameworks
  where a couply of focused classes would have sufficed.
 
  OOP should be fun if you do it right and don't sweat it when
  it turns into a dick swinging contest, just make up pattern names.
 
  I quite like the Absolver pattern ;p
 
  cheers
  ~neo
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
Ricardo
  Sánchez
  Sent: 23 August 2006 06:34 PM
  To: Flashcoders mailing list
  Subject: [Flashcoders] OOP methodology and flash. I'm loosing my
 faith...
 
  ... well, not really but I thought it was good as I title
 
  I always use OOP for my flash projects but, even if I find it easier
 than
  timeline coding, I dont know if I'm taking all the advantage of OOP.
I'm
  not
  even sure if I am aplying the correct patterns for every problem.
 
  My insecurity probably has to do with the lack of normal work OOP
flash
  examples. For example the typicall top menu/content web. How can OOP
be
  applied to that?
 
  I guess I find a gap in the theory of knowing how to link the 
symbols,

  movieclips, timeline and graphics in flash with the code in external
  files.
 
  Am I opening a can of worms?
 
  Thanks.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
  http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--

: : ) Scott
___

Re: [Flashcoders] Flash player cache?

2006-08-31 Thread Ron Wheeler

Does compiling the B class fix the problem?

If the B.SWF has an old version of the definition of the C Class, then 
rebuilding A.SWF will not get rid of the copy of the definition of Class 
C in the B.SWF. When Flash player needs to use Class C it uses the first 
definition it finds.

Common problem - bit us a few times.

Ron


Dominico Savio wrote:

I have this weird problem, and could not find any solutions on net.

I have 2 swf A and B, and A.swf using a C class, and A.swf will be loaded
into B.swf.

Whenever I modified C class, then recompile A, the A.swf functions 
correctly
when it's played alone or tested in authoring environment. But when I 
load
A.swf in B.swf, then A.swf behaves just like before I modifield C 
class. To
fix this problem I have to change class path, and this solution is not 
good

at all if I frequenly update C class.

I have tried Clear ASO Cache component, I have physically deleted the 
whole

ASO folder, and still not fix it. Any idea?

Dominic
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  1   2   3   >