Re: [Flashcoders] Voicerecording with flash?

2007-09-17 Thread Jobe Makar

Hi,

This sort of thing is coming up a lot lately! The list of servers tha can 
provide what you need are:

Flash Media Server
ElectroServer 4
Red 5
Wowza

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "ekameleon" <[EMAIL PROTECTED]>

To: 
Sent: Monday, September 17, 2007 2:38 PM
Subject: Re: [Flashcoders] Voicerecording with flash?



Hello :)

About FMS you can read the documentation :
http://www.adobe.com/support/documentation/en/flashmediaserver/

And in the client side Actionscript reference :
http://livedocs.adobe.com/fms/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part_CS_ASD.html

Search the NetConnection, NetStream, Camera, Microphone and Video class
examples :)

After... you can use this client class with the FMS Server (official RTMP
server of adobe) but you can use too the opensource solutions Red5 based 
on

JAVA or HaxeVideo based on Haxe/Neko technologie :

http://osflash.org/red5
http://code.google.com/p/haxevideo/

You can use Wowza server : http://www.wowzamedia.com/index.html (based on
java)

The client Actionscript is the same :)

You can read in french my tutorial about this different technologies :
http://www.ekameleon.net/blog/index.php?2007/04/08/66-haxevideo

EKA+ :)




2007/9/17, Peter Oliver Geller <[EMAIL PROTECTED]>:


Hi all together,

Did somebody know what I need to do a voice recording with flash.
I heard that it is only possible with a flash media server?

Is that right?,
don't find any information about that topic what was useful for me :(

Maybe someone have an idea?

Regards

Peter


Peter Oliver Geller
interface design, animation& development

Lindenstraße14. 50674 Cologne
0221 - 92 4281 - 52phone

___
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] Attaching webcam video dynamically and on top

2007-09-12 Thread Jobe Makar

Hi Alexander,

You can create a video symbol in the library by using the library's menu. As 
for depth, have you tried putting the video in a movie clip and swapping the 
depths of that movie clip? That should work.


By the way, ElectroServer 4 supports video as well (to add that to your 
list). http://www.electro-server.com


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "Alexander Farber" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Tuesday, September 11, 2007 10:20 AM
Subject: [Flashcoders] Attaching webcam video dynamically and on top



Dear flash coders,

I have a MovieClip+class called User
which represents a player (one of 3)
in my small multi-player card game:

http://preferans.de/images/pics/Pref-Aug-07-2.jpg

It works well and usually displays
a player avatar (an image, that
I load by a MovieClipLoader).

If a player has a webcam connected
I'd like to overlay his avatar image
however by the webcam video.

I know that I have to use Red5 or FMS etc...
but currently I'm struggling with the basic
problem, that I don't know how to attach
a Video object dynamically to the stage.

After searching I even suspect, that this
is not possible at all and I can only do
it in the authoring environment (sans AS).

But even if I do it in authoring environment
(and pass its name as a string to my
user.attachWebcam() method), I still have
the problem, that the video is underneath
the avatar. I've tried:

  _root.my_video.swapDepths(5000);

but this doesn't work. Any ideas please?

Here is a test case movie representing my
problem: http://preferans.de/flash/User.swf

Regards
Alex
___
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] Isometic game - zdepth managing for multiple movablecharacters

2007-09-12 Thread Jobe Makar

Hi Jiri,

I've pasted below the isometric class that I wrote for one of my game books. 
It is a handy class that allows for easy translation between screen coords, 
and iso coords. In addition, it handles tile-based dept calculations as 
well. You asked how do you handle multiple per tile - check out the leeway 
variable in this class. If leeway is set to 5, and calculateDepth returns 
1230, then you can place your item anywhere from 1230 to 1235. You just have 
to keep track of which depth is being used.


You don't have to swap depths of every item every frame. You just have to 
swap depths on any items that has just changed tiles.


There are two limitations with this technique:
1) It does the depth calculations based on the size of the map. For most 
uses this is fine. But if your map is like 5000 X 5000 tiles, then this 
depth calculation can probably quickly get too high for Flash to handle 
without further modifications.
2) A sortable item needs to be no bigger than a tile. If the base of this 
item takes up multiple tiles (like a couch, or bench, etc) then you need to 
either slice it up into tile-sized pieces, or change the depth approach. The 
approach that you use if you are not slicing it up does require resorting 
lots of item depths frequently rather than using just using unique depths 
per tile.


//Isometric CLASS

class com.electrotank.world.Isometric {
private var maxx:Number;
private var maxz:Number;
private var theta:Number;
private var alpha:Number;
private var sinTheta:Number;
private var cosTheta:Number;
private var sinAlpha:Number;
private var cosAlpha:Number;
var leeway:Number;
public function Isometric(x:Number, z:Number) {
 maxx = x;
 maxz = z;
 theta = 30;
 alpha = 45;
 theta *= Math.PI/180;
 alpha *= Math.PI/180;
 sinTheta = Math.sin(theta);
 cosTheta = Math.cos(theta);
 sinAlpha = Math.sin(alpha);
 cosAlpha = Math.cos(alpha);
 leeway = 5;
}
public function mapToScreen(xpp:Number, ypp:Number, zpp:Number):Array {
 var yp:Number = ypp;
 var xp:Number = xpp*cosAlpha+zpp*sinAlpha;
 var zp:Number = zpp*cosAlpha-xpp*sinAlpha;
 var x:Number = xp;
 var y:Number = yp*cosTheta-zp*sinTheta;
 return [x, y];
}
public function mapToIsoWorld(screenX:Number, screenY:Number):Array {
 var z:Number = 
(screenX/cosAlpha-screenY/(sinAlpha*sinTheta))*(1/(cosAlpha/sinAlpha+sinAlpha/cosAlpha));

 var x:Number = (1/cosAlpha)*(screenX-z*sinAlpha);
 return [x, z];
}
public function setLeeway(value:Number) {
 leeway = value;
}
public function calculateDepth(x:Number, y:Number, z:Number):Number {
 var x:Number = Math.abs(x)*leeway;
 var y:Number = Math.abs(y);
 var z:Number = Math.abs(z)*leeway;
 var a:Number = maxx;
 var b:Number = maxz;
 var floor:Number = a*(b-1)+x;
 var depth:Number = a*(z-1)+x+floor*y;
 return depth;
}
}


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "Jiri Heitlager" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, September 11, 2007 8:50 AM
Subject: [Flashcoders] Isometic game - zdepth managing for multiple 
movablecharacters




He guys (and maybe girls),

I have a question that is related to z-depth managing in an isometric 
game, that needs to be made in AS2.
In the game I basically use one abstract layer that holds all the tiles 
and their information wheter or not a movable object is allowed to 'walk' 
over the tile. Then there is another layer that holds all the objects, so 
that includes a player, a computer controlled player and enviormental 
objects that players cannot walk through being the visualization of the 
first layer.
Every object gets a z-depth assigned. For the players the zdpeth need to 
be set based on the tile they are at. This way the players can walk 
'around' the enviorment objects. For the z-depth calculation I use the 
tile grid x and y plus the width of the row, this generates an unique 
z-depth number and makes sure that the higher the y, the bigger the 
z-depth , thus objects appear infront of objects with a lower y index.
Here is the problem I am trying to figure out. If two movable objects, or 
even three of them are at the same time on the same tile, then the above 
described z-depth managing will fail. How do I deal with that?


Then another question I have is this. Does every movable object needs to 
check/swap z-depth on every frame. Wouldn't that be to CPU intensive?


I really hope someone can clear this up for me.

thank you in advance,

Jiri
___
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 yo

Re: [Flashcoders] FMS 2 multiplayer game

2007-08-22 Thread Jobe Makar
Josh is right. There is a reason why you don't see real-time multiplayer 
sports games very often. I've written more than 50 multiplayer games and 
have tried pretty much everything. When viewing *exactly* where something 
needs to be and that thing is unpredictable, then you are going to have a 
tough time hiding the latency. You can achieve good results in real-time 
multiplayer games if you make the good decisions on game choice, features, 
speed/update rate, etc.


I think that you can pull off a real-time first person shooter more 
believably than real-time multiplayer pong.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "Joshua Sera" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, August 22, 2007 4:26 PM
Subject: Re: [Flashcoders] FMS 2 multiplayer game



You're running into the same latency problems I did
when I tried to do a real-time game in Flash.

The movement's fine, you're correcting for latency
burps fine, but events like someone else stealing the
ball is unpredictable.

I can steal the ball from someone else, bu running
halfway down the field away from everyone, and have
the ball disappear and reappear next to someone else's
icon.

The ball-theft event is incredibly time-sensitive, so
it's very important that people know when and where it
happens.

If you manage to find a workaround to this, post it on
the list, because I really don't think it can be
worked around without using UDP packets, and Flash
doesn't support that, and none of the 3rd party
projector apps allow you enough control over the
packet to make UDP hole punching work, which is what
you need to get past firewalls.


--- Norman Cousineau <[EMAIL PROTECTED]> wrote:



I recently made a multi-player soccer game prototype
based on FMS 2.
The purpose was to test latency...to see how well
each player keeps up to where they're supposed to be
on the field.

To see for yourself, the url is:
www.soccer.datasfaction.com


To get the multiplayer effect, open multiple browser
windows.  That will add players.

If you can't connect, it could be due to a firewall,
or too many people connected.

Feel free to email comments to me.

Regards,
Norm 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







Be a better Heartthrob. Get better relationship answers from someone who 
knows. Yahoo! Answers - Check it out.

http://answers.yahoo.com/dir/?link=list&sid=396545433
___
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] Intro to OOP using ActionScript

2007-08-19 Thread Jobe Makar

Hi Mike,

I don't have exactly what you're looking for but hopefully it can help a 
bit. I am working on an AS3 version/rewrite of my game design demystified 
series of books. That won't be out for a long time, but you can lots of game 
related code from physics to AI on my blog. For the most part it is AS3, but 
there is some AS2 as well. Here is the link:

http://jobemakar.blogspot.com

I wish you luck in finding the right materials for your class!

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "Mike Reilly" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, August 19, 2007 8:19 PM
Subject: [Flashcoders] Intro to OOP using ActionScript



Hi there -

I'm a high school teacher who's decided to teach "Intro to
Programming" using Actionscript (2.0 for now, waiting for the school
to upgrade).

I'd prefer to take an OO approach, and use games in doing so.  For
example, my first game would be a Pong copy.  Lots of basics in there
to learn the environment, basic principles, etc.

So, I was wondering if anyone out there knew of good resources, wanted
to contribute (hell, I'll give you all the credit, you can write a
book, etc.), collaborate, share.  I've search most of the tutorial
sites, but most code is not a great OO example for Flash games due to
little OO, or too much complexity for the beginner.

Your input is welcome, rock on.

Mike
___
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] Contract work - AS2 and AS3

2007-07-26 Thread Jobe Makar

Hi,

Electrotank is looking for a few contractors for a variety of projects. 
Projects range in scope from ActionScript 2/3 games and applications, to 
technical writing and multi-user widget development.


Work would be remote. Please send men an email offlist to 
[EMAIL PROTECTED] Please include this information:

- Availability
- Are you proficient in AS2 and AS3?
- Do you have multiplayer game development experience?
- Do you have ElectroServer experience?
- A small number of example links. If a login is required, please supply 
that.


Thanks!

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121 



___
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] [CS3 - AS3] Getting BitmapData from a Library image

2007-07-26 Thread Jobe Makar

Hi,

I know it doesn't make sense, but try passing in the width and height in the 
constructor. If I remember correctly that will do it.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "Charles Parcell" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Thursday, July 26, 2007 1:30 PM
Subject: [Flashcoders] [CS3 - AS3] Getting BitmapData from a Library image



I am stumped.

I have an image in my Library and I have set it to export to AS and in 
frame
1.  I have given it the Linkage of "Brick" and the 
"flash.display.BitmapData

".

With just that, I am able to build a SWF with no errors.

But I want to use the image's BitmapData to build a larger image that will
be displayed on Stage.  So, to that end I am instancing the image from the
Library via

imageSource = new Brick();

This should make an instance of the image so I can then grab its
BitmapData.  but I get the following error for the indicated code above.

1136: Incorrect number of arguments.  Expected 2.

Thoughts?


Charles P.
___
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: Adobe onAIR bus making a pit stop in NorthCarolina

2007-07-23 Thread Jobe Makar

Awesome! Finally something is happening in my own back yard :)

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "ben gomez farrell" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, July 23, 2007 3:45 PM
Subject: [Flashcoders] OT: Adobe onAIR bus making a pit stop in 
NorthCarolina



Hey everyone, I apologize if this is off topic, cause I'm basically 
advertising something, but I thought there would be some folks on here 
definitely interested in this.


I know there's at least a couple folks on this list from North Carolina, 
as I've talked to ya briefly.  I'm the Raleigh Durham Adobe User group 
manager, and even though the onair.adobe.com bus is not currently listed 
as stopping in NC, I can assure you it is.  It will be stopping in RTP 
(Durham).  It's not a full day event like DC, or NY, but we do get a 
Saturday evening user group meeting out of it with Mike Chambers and 
possibly others.


We're also holding a contest for the best AIR application.  The winner 
(who must be present at the meeting) receives a copy of Flex 2.

Details are at http://www.rdaug.org/airshow

Again apologies for those that consider this spam, but I thought there 
would be a bunch of folks on this list that aren't normally interested in 
the local NC user group scene, but would like to know this is happening.


Thanks!
ben


___
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] Incredible Crashing Flash

2007-07-20 Thread Jobe Makar

Hi James,

There are plenty of bitmaps used in the MovieClips. But I'm not giving 
linkage to any bitmaps directly.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "James Ford" <[EMAIL PROTECTED]>

To: 
Sent: Friday, July 20, 2007 11:13 AM
Subject: RE: [Flashcoders] Incredible Crashing Flash



Does it make much use of bitmap objects in the library?  That's a real
bugger for Flash 8, I know.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jobe Makar
Sent: 20 July 2007 15:32
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Incredible Crashing Flash

Hi guys,

I have one FLA file that crashes Flash about one in 3 or 4 publishes. The
FLA was created by someone on a Mac. It appears to be very clean. It is
Flash CS3, AS3. This issue is not happening with any of my other projects.

Needless to say this is driving me crazy. Any ideas at all?

ps - I'm on Vista Ultimate. And by 'crash' I mean Flash stops responding 
and

eventually I'm told by Windows that it needs to be closed forcefully.

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121


___
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] [RESOLVED] Incredible Crashing Flash

2007-07-20 Thread Jobe Makar

Ok, I found it.

Cedric asked if I had any server queries and I said 'yes', but dismissed 
that as the issue. I dismissed that as the issue because how I've seen that 
crash Flash in the past is that it fails to close the SWF if the query 
wasn't complete, and then took Flash down with it.


Well in this case I had no problems closing the SWF. The query was not 
complete, but the SWF gets closed. Flash doesn't complain. And then 
eventually (after 45 seconds or so), Flash tries eat its own head then 
explodes. I'm assuming this is tied to the call finally 
failing...ungracefully.


So for the record - that query-didnt-finish bug still exists! It just has 
different behavior than we're used to from previous Flash versions.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
----- Original Message - 
From: "Jobe Makar" <[EMAIL PROTECTED]>

To: 
Sent: Friday, July 20, 2007 10:32 AM
Subject: [Flashcoders] Incredible Crashing Flash



Hi guys,

I have one FLA file that crashes Flash about one in 3 or 4 publishes. The 
FLA was created by someone on a Mac. It appears to be very clean. It is 
Flash CS3, AS3. This issue is not happening with any of my other projects.


Needless to say this is driving me crazy. Any ideas at all?

ps - I'm on Vista Ultimate. And by 'crash' I mean Flash stops responding 
and eventually I'm told by Windows that it needs to be closed forcefully.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121

___
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] Incredible Crashing Flash

2007-07-20 Thread Jobe Makar

Cedric,

Yes there are queries. But this crash happens before publish is complete, or 
several seconds after publish. I never happens on SWF close, just on 
publish.




Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "Cedric Muller" <[EMAIL PROTECTED]>

To: 
Sent: Friday, July 20, 2007 10:47 AM
Subject: Re: [Flashcoders] Incredible Crashing Flash



Are there any server queries in that FLA ?

I noticed that, on a Mac, when you close a Flash IDE SWF Preview that  is 
doing a query (PHP at least), Flash crashes (OS X crash report  dialog 
appears).

This has been a feature since Flash MX 2004.
I hope this is something else as you are describing other conditions

Cedric


Hi guys,

I have one FLA file that crashes Flash about one in 3 or 4  publishes. 
The FLA was created by someone on a Mac. It appears to  be very clean. It 
is Flash CS3, AS3. This issue is not happening  with any of my other 
projects.


Needless to say this is driving me crazy. Any ideas at all?

ps - I'm on Vista Ultimate. And by 'crash' I mean Flash stops  responding 
and eventually I'm told by Windows that it needs to be  closed 
forcefully.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121

___
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] Incredible Crashing Flash

2007-07-20 Thread Jobe Makar

Hi guys,

I have one FLA file that crashes Flash about one in 3 or 4 publishes. The 
FLA was created by someone on a Mac. It appears to be very clean. It is 
Flash CS3, AS3. This issue is not happening with any of my other projects.


Needless to say this is driving me crazy. Any ideas at all?

ps - I'm on Vista Ultimate. And by 'crash' I mean Flash stops responding and 
eventually I'm told by Windows that it needs to be closed forcefully.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121 



___
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] Grid / Math - getting neighbouring positions

2007-06-16 Thread Jobe Makar

Hi Jiri,

There is an algorithm called Bresenham's Line Algorithm. It is used by 
computers to determine which pixels to display based on a line. It is also 
used by game programmers to determine the # of tiles crossed along the path 
of a moving object (or in raycasting, etc). There exists a "circle variant" 
of this algorithm that can achieve what you're trying to do. Perhaps it is 
too much work to implement, but I thought I'd let you know that it is 
described on Wikipedia:


http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "Jiri Heitlager | dadata.org" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, June 16, 2007 8:15 AM
Subject: [Flashcoders] Grid / Math - getting neighbouring positions



Hello list,

I have the following grid and would like to find the neighbouring 
positions of a certain point, going in a radius from in to out, covering 
all the positions.


[0,0] [1,0] [2,0] [3,0] [4,0]
[0,1] [1,1] [2,1] [3,1] [4,1]
[0,2] [1,2] [2,2] [3,2] [4,2]
[0,3] [1,3] [2,3] [3,3] [4,3]
[0,4] [1,4] [2,4] [3,4] [4,4]

Let say I take point [2,2] then its neighbours are in the first ring [1,1] 
[2,1] [3,1] [3,2] [3,3] [2,3] [1,3] [1,2]
I manage to get the first ring, but getting the other rings I haven't got 
a clue on how to do that.


Can somebody help me?

Thank you,

jiri
___
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] Using web cam on Vista

2007-06-11 Thread Jobe Makar

Hi guys,

Have any of you successfully gotten a web cam to work through the Flash 
player on vista? First I purchased a Microsoft web cam that says "vista 
ready". I installed it and with the packaged software it works. However, I 
cannot get it to show up in Flash. I get just dark flickering. On my XP 
machine this test is successful.


So I then purchased a 2nd web cam, from HP, and installed only the driver. I 
get the same issue on Vista. I haven't tested this 2nd web cam on my XP 
machine.


If you've used a web cam through Flash successfully on Vista I'd love to 
know what cam it was. Thanks!


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121 



___
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] Best Flash multiuser server option for avatar chatapp.

2007-06-05 Thread Jobe Makar

Hi,

Don't forget to put ElectroServer on your list. It is used to power some 
huge game/chat environments like Webkinz, Barbie, Hot Wheels, MTV/Vh1 games, 
etc.


http://www.electro-server.com


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "Ivan Dario Sosa Prieto" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, June 05, 2007 1:04 PM
Subject: [Flashcoders] Best Flash multiuser server option for avatar 
chatapp.



Hey list!

My employer wants me to develop a RIA, really similar to 
http://www.barbiegirls.com/home.html or http://www.theoworlds.com/avatar/.
Bottom line, the application must have a heavy multiuser chat component, 
that can host more than 1000 concurrent users, a lot of data going back and 
forth from Flash to the server and viceversa, big querys going the same way, 
etc etc etc.
I've been looking for the best server side software to support this app, and 
I would like you to tell me what you think.


These are the options I`ve seen so far. if you know of a better option or 
you do not recommend one of the following, please I really need your opinion


1. http://www.smartfoxserver.com/ (so far, my choice)
2. http://www.moock.org/unity/ (the last posted news on the Moock site is 
from 2005, not  really inspirational)
3. http://www.rawfish-software.com/ (does anyone know something about this 
sw? )
4. http://www.oregano-server.org/ (My only concern is support, it seems no 
one is supporting it)
5. FMS2 (great for multiuser video apps, but my app does not include video. 
I also didn`t find a API on the documentation for chat apps)


Any help would be greatly appreciated.


Thanks in advance guys.

Bye!

PS. almost forgot, budget is not a restriction, neither is platform, but my 
employer would prefer UNIX, he has always worked with php/MySQL




__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.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] Rotate in absolute center AS3

2007-06-04 Thread Jobe Makar

Hi,

The code below I copied from somewhere else and have saved it to eventually 
test. So, I cannot verify that it *definately* does the trick. However, 
using rotateAroundExternalPoint should allow you to rotate around the 
center. You'd just need to specify the clip's center. This example code that 
I copied is for a MovieClip, but I think it will work with any display 
object.


import fl.motion.*;
var m=mc1.transform.matrix;
MatrixTransformer.rotateAroundExternalPoint (m,100,100,5);
//transfrom original mc
mc1.transform.matrix=m;


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121 



___
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] functions for other classes within a class

2007-05-25 Thread Jobe Makar

Hi,

Replace this:
this.flipCorner("bottom_right");

With this:
portfolio.flipCorner("bottom_right");

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "Giles Roadnight" <[EMAIL PROTECTED]>

To: 
Sent: Friday, May 25, 2007 11:13 AM
Subject: [Flashcoders] functions for other classes within a class



Hi All

I have this code within a class:

class com.tequila.canon.PosterArtist.Controller {

   private var portfolio:MovieClip;

   public function Controller()
   {
   trace("Controller constructor: " + this.portfolio);

   this.portfolio.addEventListener("onClick",this);

   this.portfolio.onInit = this.portfolioOnInit;
   }

   private function portfolioOnInit():Void
   {
   trace("onInit: " + this);
   this.flipCorner("bottom_right");
   }

}

But I get a compile error saying that flipCorner does not exist. It 
doesn't

exist in COntroller but it does exist in portfolio.

How do I get around this?

Many Thanks

Giles.
___
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 chat options

2007-05-11 Thread Jobe Makar

Hi,

You should check out ElectroServer 3 as well. http://www.electro-server.com


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "Mick G" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Friday, May 11, 2007 4:18 PM
Subject: [Flashcoders] Flash chat options


Does anyone have any suggestions to the best way to implement a Flash 
based

chatroom (Can be commercial, but I have a low budget). I'm after something
that utilizes a free XML socket server and something that works 
efficiently

on a server without any nast polling.

I've tried implementing ElectroServer but it wasn't really an option with 
my

current hosting situation and in general the documentation on the site
seemed sparse.

I don't anticipate many more than 20-30 concurrent users.


Any links/help appreciated thanks,
Mick
___
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] Slow-Running Script alert

2007-05-10 Thread Jobe Makar

Hi,

If a script takes more than 15 seconds to complete then you get that error. 
AS3/Flash 9 player allows you to modify that value.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "Marc Hoffman" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Thursday, May 10, 2007 8:34 PM
Subject: [Flashcoders] Slow-Running Script alert


I have a complex web site that does some early xml loading as well as 
loading another movie (an intro) in a higher level. On rare occasions, I'm 
getting the alert about a slow-running script in Flash, which freezes the 
movie. Clicking "yes" to abort the script, then refreshing the page, solves 
the problem for that instance. By the way, this can happen even after a 
successful loading of the movie, so it's NOT an issue of something not 
being cached.


I've tried a lot of restructuring of how things load, and the problem now 
occurs less frequently, but it's still happening.


Does anyone know exactly what that alert means? Is it ALWAYS a looping 
script, for instance? What other things might cause it? This is a tough 
one to troubleshoot.


The problem is recently occurring in Win I.E. 7, but has been known to 
happen in FireFox 1.5 and in other browsers.


thanks,
Marc


___
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] Curves question for math gurus

2007-04-25 Thread Jobe Makar

Hi,

The function that I gave you  (A*x +x^2) was an arbitrary example.

Looks like you'd need to use what ever bezier math is used by the Flash 
player to represent the line. Not the easiest thing to figure out, but 
here's a link that might help:

http://www.moshplant.com/direct-or/bezier/math.html

There might be tricks that we're not thinking of. For instance - take a 
bitmap snapshot of it in memory. Then use getPixel(x, y) to walk which ever 
column you're in until you reach a black pixel (or non-alpha if you use 
getPixel32). That's your y.


Another trick is to position the clips on the line where they need to be 
when the line is at rest. Then displace them vertically based on the 
amplitude of the center displacement.


Good luck.

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "leolea" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, April 25, 2007 4:28 PM
Subject: Re: [Flashcoders] Curves question for math gurus




Hi, thanks for your reply!

My curve isn't exactly a circle. Here's what my animated curve would look
like:
http://pages.videotron.com/poubou/flash/cannes01.html


The curve is drawn using the drawing API:
example:
mc.moveTo(0,0);
mc.curveTo(400,900,0,800);

So, I know the 3 bezier points that define my curve:
startpoint = 0,0
middlepoint = 400,900
endpoint = 800,0

With those values in hand, how can I apply them to your function:

f(x) = A*x + x^2



Do I make any sense?




On 4/25/07 3:50 PM, "Jobe Makar" <[EMAIL PROTECTED]> wrote:


Hi,

Your typical funciton looks something like this in math books:

f(x) = A*x + x^2 //just an example

Where f(x) is essentially 'y'. So, you just need the equation that 
defines

your curve. The curve in your jpg appears to be a circle.

y = sqrt(x^2 + r^2) //where r is the radius

That actually yields + or - and you just pick what fits your situation 
best.

So, you pump in an x and get you 2 y's. Pick the best y and use it.



___
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] Curves question for math gurus

2007-04-25 Thread Jobe Makar

Hi,

Your typical funciton looks something like this in math books:

f(x) = A*x + x^2 //just an example

Where f(x) is essentially 'y'. So, you just need the equation that defines 
your curve. The curve in your jpg appears to be a circle.


y = sqrt(x^2 + r^2) //where r is the radius

That actually yields + or - and you just pick what fits your situation best. 
So, you pump in an x and get you 2 y's. Pick the best y and use it.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: "leolea" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, April 25, 2007 3:34 PM
Subject: [Flashcoders] Curves question for math gurus



Hi,

I have a dynamically drawn curve. It's a simple curve, with 2 end points,
and its yfactor will vary.

I'm trying to figure out a way to have objects "snap" to this curved line. 
I
would distribute them over the _x axis, and I need a formula to get their 
_y

position on the curved line.

Here is a visual explanation:
http://pages.videotron.com/poubou/flash/curve.jpg

Now, I guess this requires trigonometry... And I really am a newb when it
comes to trig...

Any help would be appreciated !




___
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] MDM Zinc v2.5 Trial _ Writing files to hard drive

2007-03-24 Thread Jobe Makar

Hi Ned,

This should do it:
mdm.FileSystem.saveFile(path, content)

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: "Ned Perry" <[EMAIL PROTECTED]>

To: 
Sent: Friday, March 23, 2007 12:12 PM
Subject: [Flashcoders] MDM Zinc v2.5 Trial _ Writing files to hard drive



Hi

I need to make a Projector that writes files to the hard-drive. All the
content elements are going to be Flash and  I was hoping to use Zinc as
a wrapper that could handle the file system elements. But I can't find
any command to create a file. Does anyone know if there is one?
There seems to be loads of stuff to copy and move files etc but not to
make one.
If there isn't can anyone recommend an alternative to Zinc other than
Director.

Cheers

Ned







This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of Cimex Media Ltd and
any affiliated companies, unless specifically stated. It is intended
for the use of the individual or group to whom it is addressed. If
you have received it in error, please delete it from your system,
do not use, copy or disclose the information in any way nor act in
reliance on it and please notify [EMAIL PROTECTED]

A company registered in England & Wales. Company Number 03765711
Registered Office : The Olde Bakehouse, 156 Watling Street East, 
Towcester,

Northants NN12 6DB
This email was scanned by Postini, the leading provider in Managed Email 
Security. http://www.postini.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] Flash extension question

2007-03-21 Thread Jobe Makar

Thanks Steven,

doc.path was the breakthrough that I needed. For some reason I didn't notice 
that in the documentaiton. Your code is useful as well. Thanks for the help!


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: "Steven Sacks | BLITZ" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, March 21, 2007 4:31 PM
Subject: RE: [Flashcoders] Flash extension question


If you want to export to a different directory, you'll have to modify
the publish settings xml file, which I discuss on my blog...which for
some reason is down right now (writes email to hosting company)...so
I'll copy and paste the code here.  If you are publishing to the same
folder as the FLA, you only need to doc.publish() and the first two
functions.


var doc = fl.getDocumentDOM();

function getRelativePath() {
var pathArr = doc.path.split("\\");
pathArr.length--;
return("file:///" + pathArr.join("/") + "/");
}
function saveFile(s) {
var fPath = getRelativePath() + s + ".fla";
fl.saveDocument(doc, fPath);
}
function cleanup() {
var fPath = getRelativePath() + "PublishProfile.xml";
FLfile.remove(fPath);
}
function publishTheSWF(s) {
setPublishSettings(s);
saveFile(s);
cleanup();
doc.publish();
}
function setPublishSettings(s) {
var xml, from, to, snip;
var fPath = getRelativePath() + "PublishProfile.xml";

// export the profile and read it in
doc.exportPublishProfile(fPath);
xml = FLfile.read(fPath);

var folderPath = "../deploy/";
// replace the publish paths
from = xml.indexOf("");
to = xml.indexOf("");
snip = xml.substring(from, to);
xml = xml.split(snip).join("" + folderPath + s);

// set player version
v = 8;
from = xml.indexOf("");
to = xml.indexOf("");
snip = xml.substring(from, to);
xml = xml.split(snip).join("" + v);

var nodes = {};
nodes.generatorFileName = "swt";
nodes.projectorWinFileName = "exe";
nodes.projectorMacFileName = "hqx";
nodes.htmlFileName = "html";
nodes.gifFileName = "gif";
nodes.jpegFileName = "jpg";
nodes.pngFileName = "png";
nodes.qtFileName = "mov";
nodes.rnwkFileName = "smil";

for (var n in nodes) {
from = xml.indexOf("<" + n + ">");
to = xml.indexOf("");
snip = xml.substring(from, to);
xml = xml.split(snip).join("<" + n + ">" + s + "." +
nodes[n]);
}

// write the file
FLfile.write(fPath, xml);

// import the altered profile
doc.importPublishProfile(fPath);
}


You can then use:

publishTheSWF("swfName");

Note: do not include the extension.

___
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] Flash extension question

2007-03-21 Thread Jobe Makar

Hi guys,

I'm writing a JSFL file that does some SWF exporting based on the FLA in 
focus. The exportSWF() method takes an absolute path. Is there a way to get 
a path to the current FLA or the directory that holds the FLA? Its kind of 
annoying to have to manually enter that path for each FLA I'm dealing with.


Thanks

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104 



___
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] Bitmaps and Security

2007-03-07 Thread Jobe Makar

Hi Patrick,

I'm interested to hear what others have to say about this as well. I too 
have encountered this. If you have the Flash 9 player installed (even though 
its a Flash 8 app) and you're using a crossdomain file, then it works. 
However, if you only use the Flash 8 player view this app then it fails.


I had an idea of something else to try, but I didn't attempt it. Here is the 
idea:

- put a tiny swf on that image server. tiny.swf
- load tiny.swf into app.swf
- tiny.swf does a security.allowDomain call to give its parent access

That alone might do the trick. If not, then take it a step further. Have 
tiny.swf give app.swf security access, then tiny.swf actually does the 
bitmap loading and passes the bitmap data to app.swf.


Stuff like this is a pain to test but I bet one of those will work. Please 
let me know if you try one and it works.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: "{reduxdj}" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, March 07, 2007 10:29 AM
Subject: [Flashcoders] Bitmaps and Security



Hello,

I have a small problem.  We're using some bitmap functions inside flash 
that scale thumbnails so appear to be  smoothed out instead of jagged 
edges.   However, we're changing our back-end systems to be stateless and 
our flash files and our images will be on different servers.  Of course, 
if you have had any dealings with cross domain image loading and  bitmap 
processing, you probably know what i am up against (images appear white 
because of security restrictions when trying to apply bitmap processing)


Is it possible by a cross domain policy or other means to load the images 
from different servers where your flash swf files remain and then apply 
effects.  I know it is possible with a php proxy, but that's computer 
processor expensive.  Since our sub-domains are all the same, there should 
be a way to bypass this security.


Thanks for your time,
Patrick

___
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] ASDoc issue

2007-01-25 Thread Jobe Makar
I am trying to use ASDoc, an AS3 documentation generator provided at Adobe 
labs. It requires that Flex Builder be installed. It also comes with two 
examples that *should* work when you run their respective batch files. By 
"work" I mean it would genereate docs for the provided examples.


The best that I can tell I have followed the instructions, but I cannot get 
the provided examples to generate. The output directories that should house 
the docs *is* created during the process, but it stays empty. There is an 
error that appears on the console. It is this:

-
Error: 
flex2.compiler.API.compileSwc(Lflex2/compiler/FileSpec;Ljava/util/Collect

ion;Lflex2/compiler/SourcePath;Lflex2/compiler/ResourceContainer;Lflex2/compiler
/ResourceBundlePath;Lflex2/compiler/CompilerSwcContext;Lflex2/compiler/common/Co
nfiguration;[Lflex2/compiler/Compiler;Lflex2/compiler/PreLink;Ljava/util/Map;)Lj
ava/util/List;
-

To tell you the truth, I don't know why 'compileSwc' would even be attempted 
in a documentation generation tool. If someone could lend some helpful 
advice I would appreciate that.


Thanks

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104 



___
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] Contract work - AS 2 - games

2006-11-16 Thread Jobe Makar

Hi guys,

Electrotank is primarily a Flash game development company. We create web 
games used for marketing, free online games, and paid downloadable games. 
The demand for our services has been increasing. As a result we are looking 
for programmers that can help with some work we have coming up very soon. 
The development will be Flash 8 and ActionScript 2. The games are 
multiplayer using ElectroServer.


We are also looking for designers. So if you know of anyone then feel free 
to forward this email to them.


If you are interested then please send me and email offlist to 
[EMAIL PROTECTED] As I'm sure you can guess, we'll need to see some of 
the work you've done in the past. Please send rates.


ps - Don't be too scared about the multiplayer part. It is likely that any 
of the tough multiplayer pieces will be handled by myself or someone else 
with experience.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104 



___
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] Book recommendation for multiuser games / apps

2006-10-26 Thread Jobe Makar

Hi Paul,

My game book is not comprehensive on multipalyer stuff, but gives a decent 
intro. There are 2 chapters, one on a chat and one on multiplayer chess.


You can find tons of source files on this site:
http://www.electro-server.com


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: "Paul Steven" <[EMAIL PROTECTED]>

To: "'Flashcoders mailing list'" 
Sent: Thursday, October 26, 2006 10:14 AM
Subject: RE: [Flashcoders] Book recommendation for multiuser games / apps



Hi Eric, perhaps I have not looked properly then - I thought it was only a
few pages in the appendix. Sorry! I will have a proper look.

However if there are any books devoted to this subject or links to sites,
this info would also be appreciated.

Thanks

Paul

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

Sent: 26 October 2006 15:08
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Book recommendation for multiuser games / apps

I thought it covered ElectroServer, multi-user gaming, gaming rooms, etc.
What kind of information are you after in more detail?

- e.

On 10/26/06, Paul Steven <[EMAIL PROTECTED]> wrote:


Thanks eric, I can look him up on my shelf but there wasn't a lot of info
on
the subject in this book. I was looking for something more comprehensive.

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric
dolecki
Sent: 26 October 2006 14:41
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Book recommendation for multiuser games / apps

Look up Jobe Makar on Amazon :)

- e.

On 10/26/06, Paul Steven <[EMAIL PROTECTED]> wrote:
>
> Looking for information on how to implement a multi-user type game and
> would
> appreciate any links or book recommendations.
>
> 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

___
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] XMLSocket speed

2006-09-08 Thread Jobe Makar

Mattias,

Yeah, I don't know much about .Net and sockets. I'm sorry about that. Good 
luck


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: "Mattias Högnäs" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Thursday, September 07, 2006 5:30 PM
Subject: Re: [Flashcoders] XMLSocket speed



Helo Jobe.

Thanks for the quick response.
I've tried your code and the LAN speed is around 100 ms.
Could it be the way .NET setup the Socket (Im using the Socket class in C# 
.NET 2.0) together with flash that makes it slow over LAN?
I will ask the "network-guy" if the router/switch is sniffing packet or 
something similar that could create the high ping time.

I'll get back to you if I find anything interesting. :-)

/ Mattias

Jobe Makar skrev:

Hi Mattias,

You should expect a ping (1/2 the roundtrip) of about 3-5ms on a local 
network. Over the internet of course it varies greatly, but somewhere 
between 40ms and 100ms is typical (again, 1/2 the roundtrip).


The discrepency in your measurements is most likely not due to Flash. 
I've created around 50+ multiplayer games in Flash and haven't 
encountered that issue.


My guess to the cause of your problem is 1 of 2 things:
1) there is something funky with your network causing slow down
or
2) You are just accidentally doing the calculation wrong or your order of 
events is a little messed up. Its not uncommon to have several ping 
requests sent before any are received, and then if you dont have your 
packets stamped with some id, then you dont know which request the 
response is to.


Simple test would be the following. Just create a button to run a quck 
ping test:


Just call the 'sendPing' on button click.

var pingIsOut:Boolean = false;
var timePingSent:Number;
function sendPing() {//call on button click
if (!pingIsOut) {//makes sure only 1 ping is out at a time
 pingIsOut = true;
 sendPingRequestFxn();//make the socket call
 timePingSent = getTimer();
}
}
function pingResponseReceived() {//called when the ping response is 
received

pingIsOut = false;
var ping:Number = (getTimer()-timePingSent)/2;
trace(ping+" ms");
}


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - From: "Mattias Högnäs" 
<[EMAIL PROTECTED]>

To: 
Sent: Thursday, September 07, 2006 2:41 PM
Subject: [Flashcoders] XMLSocket speed



Hi all.

Im running a speedtest on XMLSocket.
Im using a simple XMLSocket.send and onData I send again and so on.. 
each time Im adding 1 to a couter and when starttime differs with 10 
seconds from currenttime I divide the by 10 (To get median number of 
calls per second from the 10 seconds I've run the test)... I guess you 
get the point but I could post the AS if needed.

This test runs great... running on local.

Local I get an extremly low ping, around 0.9, but running the swf from a 
different computer on the same network I get around 200 (The DOS-ping 
from these computers to my computer running as server in this case - is 
still low though).

Ive tried changing to different ports but all give the same ping.
But then I tried on a Macintosh and that ping was a lot lower than on 
the PCs on the network - this got me thinking if this delay is because 
of flash handling the socket-connection differently on various 
enviroments and on local / LAN (?).
The C# server I've written uses a simple new Socket() to create the 
connections with async-stream and I dont think the problem lies there.

local/network.

Any ideas on this?
Has anyone created a XMLSocket-handling server wich runs a lot faster in 
any language?

And if so, aprox what ping could I expect on a  local network?

/ Mattias
___
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] XMLSocket speed

2006-09-07 Thread Jobe Makar

Hi Mattias,

You should expect a ping (1/2 the roundtrip) of about 3-5ms on a local 
network. Over the internet of course it varies greatly, but somewhere 
between 40ms and 100ms is typical (again, 1/2 the roundtrip).


The discrepency in your measurements is most likely not due to Flash. I've 
created around 50+ multiplayer games in Flash and haven't encountered that 
issue.


My guess to the cause of your problem is 1 of 2 things:
1) there is something funky with your network causing slow down
or
2) You are just accidentally doing the calculation wrong or your order of 
events is a little messed up. Its not uncommon to have several ping requests 
sent before any are received, and then if you dont have your packets stamped 
with some id, then you dont know which request the response is to.


Simple test would be the following. Just create a button to run a quck ping 
test:


Just call the 'sendPing' on button click.

var pingIsOut:Boolean = false;
var timePingSent:Number;
function sendPing() {//call on button click
if (!pingIsOut) {//makes sure only 1 ping is out at a time
 pingIsOut = true;
 sendPingRequestFxn();//make the socket call
 timePingSent = getTimer();
}
}
function pingResponseReceived() {//called when the ping response is received
pingIsOut = false;
var ping:Number = (getTimer()-timePingSent)/2;
trace(ping+" ms");
}


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: "Mattias Högnäs" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, September 07, 2006 2:41 PM
Subject: [Flashcoders] XMLSocket speed



Hi all.

Im running a speedtest on XMLSocket.
Im using a simple XMLSocket.send and onData I send again and so on.. each 
time Im adding 1 to a couter and when starttime differs with 10 seconds 
from currenttime I divide the by 10 (To get median number of calls per 
second from the 10 seconds I've run the test)... I guess you get the point 
but I could post the AS if needed.

This test runs great... running on local.

Local I get an extremly low ping, around 0.9, but running the swf from a 
different computer on the same network I get around 200 (The DOS-ping from 
these computers to my computer running as server in this case - is still 
low though).

Ive tried changing to different ports but all give the same ping.
But then I tried on a Macintosh and that ping was a lot lower than on the 
PCs on the network - this got me thinking if this delay is because of 
flash handling the socket-connection differently on various enviroments 
and on local / LAN (?).
The C# server I've written uses a simple new Socket() to create the 
connections with async-stream and I dont think the problem lies there.

local/network.

Any ideas on this?
Has anyone created a XMLSocket-handling server wich runs a lot faster in 
any language?

And if so, aprox what ping could I expect on a  local network?

/ Mattias
___
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] Multiplayer and LAG!

2006-07-17 Thread Jobe Makar

Hi iestyn,

How you deal with lag can depend on the type of game you're creating. What, 
in a nutshell, are you going to be creating? Turn-based versust real-time is 
the first big question to be answered.


I've programmed over 50 multiplayer games and would be happy to provide some 
insight here!


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: "iestyn lloyd" <[EMAIL PROTECTED]>

To: 
Sent: Monday, July 17, 2006 10:09 AM
Subject: [Flashcoders] Multiplayer and LAG!



Hey all,

I might be working on a multiplayer game at some point in the future,
and i'm wondering how you guys have dealt with lag? Obviously its not
just the users net connection, but also the fact that flash can run
rather slowly on some machines..

Anyone here dealt with this problem before? I'm interested in hearing
any experiences you've had... :)

Cheers,

iestyn
___
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] Issue with reapeat test publish

2006-07-02 Thread Jobe Makar

Hi guys,

I'm not 100% certain, but I think that the issue has to do with the root 
level name space not refreshing. I think that global variables and/or 
classes that have static information may not be reloaded completely. You can 
probably test that theory by hard coding  a static var in a class and 
tracing it at the beginning of the movie, and then using code to change the 
value. Then do control+enter again and see if it reset back to the original.


I think if the class is completely instance based (not a singleton and no 
'static' members) then you probably won't have the issue.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: "Mick G" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Sunday, July 02, 2006 8:01 PM
Subject: Re: [Flashcoders] Issue with reapeat test publish


I've had this problem before Joseph - ignore the ego's on here that like 
to

asume everyone else is a newbie ;)

I've found this problem usually when components are involved and it's not 
a

preloding issue. I even did a Flash dev class once and it was happening to
people in the class, I asked the teacher and she had no answer either.

Unforunately my response doesn't come with an answer - just a 'been there
too' pat on the back.



On 7/3/06, Michael Bedar <[EMAIL PROTECTED]> wrote:


Sorry, not to be mean, but this was kinda funny:)

Try opening the bandwidth profiler and you can see what it's doing.


On Jul 2, 2006, at 3:21 PM, js wrote:

> When I test publish a file the first time, everything works as
> expected. However when I press ctl-enter again (while the window is
> still open), absolutely nothing works. If I close the window, and
> then test-publish again from within the IDE, the file works again.
> Has anyone else experienced this? How can I fix this?
>
> Joseph
> ___
> 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] AS3 Flash 9 - Speed Freak

2006-06-30 Thread Jobe Makar

Hi,

Is your game written in AS 3? If not then you shouldn't expect a tremendous 
increase in performance. Simply using the Flash 9 player won't do it.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: "Zárate" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Friday, June 30, 2006 6:32 AM
Subject: Re: [Flashcoders] AS3 Flash 9 - Speed Freak


Hi,

I was quite happy hearing about the performance until I went to play here:

http://www.teagames.com/games/tgmotocross/play.php

Please take a look to the performance playing with player 8 and
playing with player 9. Then it's curious because the CPU usage remains
under 50% at all times, even when the game is painfully slow.

If this is the compatibilty we can expect for the new player.

Anyone finding "broken" content?

On 6/30/06, David Rorex <[EMAIL PROTECTED]> wrote:

Very nice. I can't wait to see some of the cool demos people will make now
that AS3 is officially out

here's my performance stats:
CPU: AMD Sempron 1.81GHz
Firefox: 30fps 55% CPU usage
IE: 49fps 100% CPU usage

-David R

On 6/29/06, neo binedell <[EMAIL PROTECTED]> wrote:
>
> U can have a looky here: http://www.neoji.co.za/neo/taotest.html
>
> Framerate halves in the FireFox, only loses about 15fps in IE ;d
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of neo
> binedell
> Sent: 29 June 2006 10:23 PM
> To: 'Flashcoders mailing list'
> Subject: [Flashcoders] AS3 Flash 9 - Speed Freak
>
> I spent some time porting my flash AS2 3D engine over to AS3.
> Did some tests to see how they compare and:
>
> AS2:
> 1  cube  120 fps (max framerate)
> 16 cubes  34 fps
>
> AS3:
>   1  cube  120 fps (max framerate)
> 16  cubes 120 fps (max framerate)
> 25  cubes 120 fps (max framerate)
> 100  cubes  64 fps
> 400  cubes  24 fps
>
> WHOAH!!
>
> And the engine is not even optimized yet!
>
> Can't wait to push the envelope with a ton of other things.
>
> AS3/Player9 lives up to its promises for speed so far I'd say ;p
>
> ~neo
>
> ___
> 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




--
Juan Delgado - Zárate
http://www.zarate.tv
___
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] XMLSocket: load policy file and connect to port 80

2006-06-22 Thread Jobe Makar

Hi Michael,

I have experience with this. Below I show you how to test via telnet.

It looks like you aren't serving up the policy file. You can test this via 
telnet. For instance, on Windows:

1) Click Start > Run , enter 'cmd' and hit ENTER
2) type the following and hit ENTER
telnet 213.32.122.227 80

If it worked you should see the policy file in the console. When I tried it 
I did not see your policy file.


Here is an example of ElectroServer serving up a policy file (run this 
line):

telnet electro-server.com 9875

You'll see that it spits out the policy file into the console.

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: "Michael Nisi" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, June 22, 2006 4:11 PM
Subject: [Flashcoders] XMLSocket: load policy file and connect to port 80



Hi,

we have socket server running port 80, I need get a policy file through:
System.security.loadPolicyFile("xmlsocket://213.32.122.227:80");

The following class does work offline, but not online. How am I
supposed to debug this, as the System method to load the policy file
has no callback.

Has anyone experience with loading a policy file from and connecting to 
port 80?


Thanks,
Michael



import com.dynamicflash.utils.Delegate;
import mx.events.EventDispatcher;
import org.aikane.Aikane;
import auktion.Auktion;

/**
* AuktionConnector
*
* @author Michael Nisi ([EMAIL PROTECTED])
* @version 0.0.0 22.05.2006
*/
class auktion.business.AuktionConnector
{
   private static var instance:AuktionConnector;
   private static var socket:XMLSocket;
   private static var waitID:Number;
   private static var isConnected:Boolean;

   public static var CONNECT_EVENT:String = "connect";
   public static var CLOSE_EVENT:String = "close";
   public static var DATA_EVENT:String = "data";
   public static var XML_EVENT:String = "xml";

   private function AuktionConnector(Void)
   {
   EventDispatcher.initialize(this);

   socket = new XMLSocket();
   socket.onConnect = Delegate.create(this, onConnect);
   socket.onXML = Delegate.create(this, broadcast, XML_EVENT);
   socket.onClose = Delegate.create(this, onClose);
   }

   public static function getInstance(Void):AuktionConnector
   {
   Aikane.log("auktion.business.AuktionConnector", "getInstance:
"+instance);
   return instance || getNewInstance();
   }

   private static function getNewInstance(Void):AuktionConnector
   {
   instance = new AuktionConnector();
   return instance;
   }

   public function dispatchEvent(event:Object) {}
   public function addEventListener(type:String, listener):Void {}
   public function removeEventListener(type:String, listener):Void {}

   public function connect(host:String, port:Number):Void
   {
   Aikane.log(toString(), Auktion.POLICY_FILE);
   System.security.loadPolicyFile("xmlsocket://213.32.122.227:80");
   socket.connect(host, port);
   clearInterval(waitID);
   waitID = setInterval(this, "onConnect", 5000, false);
   }

   public function send(xml:XML):Void
   {
   socket.send(xml);
   }

   private function onConnect(success:Boolean, delegate:Function):Void
   {
   Aikane.log(toString(), "onConnect");
   clearInterval(waitID);
   if (success)
   {
   broadcast(success, CONNECT_EVENT);
   } else {
   broadcast(null, XML_EVENT);
   }
   }

   private function onClose(e, delegate:Function):Void
   {
   Aikane.log(toString(), "onClose");
   }

   private function broadcast(data:Object, type:String, 
delegate:Function):Void

   {
   Aikane.log(toString(), "broadcast");
   dispatchEvent({ type:type, data:data, target:this });
   }

   private function toString(Void):String
   {
   return "auktion.business.AuktionConnector";
   }
}
___
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] Communication between two swfs?

2006-06-21 Thread Jobe Makar

Peter,

Since ElectroServer is a product of my company of course I'll say its better 
:) I think you should ask some non-Electrotankers for input on that 
otherwise you're getting a biased assessment. They definately are different 
products. FMS supports binary transfer (for audio/video), and is more 
expensive. Most of the other features are supported by both ElectroServer 
and FMS such as server-side ActionScript, database support, etc.



Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: "Peter Oliver Geller" <[EMAIL PROTECTED]>

To: "'Flashcoders mailing list'" 
Sent: Wednesday, June 21, 2006 10:36 AM
Subject: AW: [Flashcoders] Communication between two swfs?


For first i think i will test your electroserver because the plan is to have
a stable server who is able to communicate with more than 100 hundred users,
but is the flashmedia server similiar to your product or are they totally
different. For first it sounds to me that your server is better for
multiuser applications and the flashmedia server is better for streaming
videos to a broad range of people?!

I will check it out!

Thank you

Peter

::
Peter Oliver Geller

virtual effects artist
interactive design & development

Ricarda-Huch-Str. 7 50858 Cologne
02234 - 99 52 63 phone
0163 - 63 66 088 mobile

www.pixel-gallery.com
[EMAIL PROTECTED]
::


»» -Ursprüngliche Nachricht-
»» Von: [EMAIL PROTECTED]
»» [mailto:[EMAIL PROTECTED] Im
»» Auftrag von Jobe Makar
»» Gesendet: Mittwoch, 21. Juni 2006 16:23
»» An: Flashcoders mailing list
»» Betreff: Re: [Flashcoders] Communication between two swfs?
»»
»» If you are seeing the crash from multiple unrelated sites,
»» then I'm guessing that's a Flash player bug.
»»
»» No, you don't need a Java-based socket-server. They come in
»» many flavors.
»» Also, there are free ones (like oregano, red5), and
»» commercial ones like ElectroServer, FMS, Unity. Its just a
»» matter of your needs and budget. If you are going to be
»» connected hundreds or thousands of users, then you'd be
»» better off with a commercial product since they are battle
»» tested and can provide support. If you are looking for
»» something much smaller scale and simplistic (just routing
»» messages), then just about any solution will work.
»»
»» Jobe Makar
»» http://www.electrotank.com
»» http://www.electro-server.com
»» phone: 252-627-8026
»» mobile: 919-609-0408
»» fax: 919-341-8104
»» - Original Message -
»» From: "Peter Oliver Geller" <[EMAIL PROTECTED]>
»» To: "'Flashcoders mailing list'" 
»» Sent: Wednesday, June 21, 2006 10:09 AM
»» Subject: AW: [Flashcoders] Communication between two swfs?
»»
»»
»» Hi Jobe,
»»
»» i will try it out, but everytime i want to go to flashtampa
»» my firefox crash
»» down, this happens also as i was on your site for the
»» electroserver and
»» flashmediaserver, don´t know why this happens??? In the
»» Internet Explorer i
»» get a failure message about a add-on problem with the
»» Flash85.ocx file???
»»
»» Hmm, i´ll speak with my hosting partner and take a look if it works?
»»
»» But is a javabased XMLSocket server the only way to
»» communicate between swfs
»» on different machines?
»»
»» Thanks
»»
»» Peter
»»
»»
»»
»» ::
»» Peter Oliver Geller
»»
»» virtual effects artist
»» interactive design & development
»»
»» Ricarda-Huch-Str. 7 50858 Cologne
»» 02234 - 99 52 63 phone
»» 0163 - 63 66 088 mobile
»»
»» www.pixel-gallery.com
»» [EMAIL PROTECTED]
»» ::
»»
»»
»» »» -Ursprüngliche Nachricht-
»» »» Von: [EMAIL PROTECTED]
»» »» [mailto:[EMAIL PROTECTED] Im
»» »» Auftrag von Jobe Makar
»» »» Gesendet: Mittwoch, 21. Juni 2006 15:55
»» »» An: Flashcoders mailing list
»» »» Betreff: Re: [Flashcoders] Communication between two swfs?
»» »»
»» »» Peter,
»» »»
»» »» ElectroServer is a Java application. If you have a dedicated
»» »» server then you can just install it there. Alternatively,
»» »» you can talk to your web hosting company and they may
»» »» install it for you. I know that flashtampa.com has
»» »» affordable accounts and ElectroServer is supported there.
»» »»
»» »» Good luck
»» »»
»» »» Jobe Makar
»» »» http://www.electrotank.com
»» »» http://www.electro-server.com
»» »» phone: 252-627-8026
»» »» mobile: 919-609-0408
»» »» fax: 919-341-8104
»» »» - Original Message -
»» »» From: "Peter Oliver Geller" <[EMAIL PROTECTED]>
»» »» To: "'Flashcoders mailing list'"
»» 
»» »» Sent: Wednesday, June 21, 2006 9:43 AM
»» »» Subject: AW: [Flashcoders] Communication between two swfs?
»» »»
»» »»
»» »» I found one under http://www.electro

Re: [Flashcoders] Communication between two swfs?

2006-06-21 Thread Jobe Makar
If you are seeing the crash from multiple unrelated sites, then I'm guessing 
that's a Flash player bug.


No, you don't need a Java-based socket-server. They come in many flavors. 
Also, there are free ones (like oregano, red5), and commercial ones like 
ElectroServer, FMS, Unity. Its just a matter of your needs and budget. If 
you are going to be connected hundreds or thousands of users, then you'd be 
better off with a commercial product since they are battle tested and can 
provide support. If you are looking for something much smaller scale and 
simplistic (just routing messages), then just about any solution will work.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: "Peter Oliver Geller" <[EMAIL PROTECTED]>

To: "'Flashcoders mailing list'" 
Sent: Wednesday, June 21, 2006 10:09 AM
Subject: AW: [Flashcoders] Communication between two swfs?


Hi Jobe,

i will try it out, but everytime i want to go to flashtampa my firefox crash
down, this happens also as i was on your site for the electroserver and
flashmediaserver, don´t know why this happens??? In the Internet Explorer i
get a failure message about a add-on problem with the Flash85.ocx file???

Hmm, i´ll speak with my hosting partner and take a look if it works?

But is a javabased XMLSocket server the only way to communicate between swfs
on different machines?

Thanks

Peter



::
Peter Oliver Geller

virtual effects artist
interactive design & development

Ricarda-Huch-Str. 7 50858 Cologne
02234 - 99 52 63 phone
0163 - 63 66 088 mobile

www.pixel-gallery.com
[EMAIL PROTECTED]
::


»» -Ursprüngliche Nachricht-
»» Von: [EMAIL PROTECTED]
»» [mailto:[EMAIL PROTECTED] Im
»» Auftrag von Jobe Makar
»» Gesendet: Mittwoch, 21. Juni 2006 15:55
»» An: Flashcoders mailing list
»» Betreff: Re: [Flashcoders] Communication between two swfs?
»»
»» Peter,
»»
»» ElectroServer is a Java application. If you have a dedicated
»» server then you can just install it there. Alternatively,
»» you can talk to your web hosting company and they may
»» install it for you. I know that flashtampa.com has
»» affordable accounts and ElectroServer is supported there.
»»
»» Good luck
»»
»» Jobe Makar
»» http://www.electrotank.com
»» http://www.electro-server.com
»» phone: 252-627-8026
»» mobile: 919-609-0408
»» fax: 919-341-8104
»» - Original Message -
»» From: "Peter Oliver Geller" <[EMAIL PROTECTED]>
»» To: "'Flashcoders mailing list'" 
»» Sent: Wednesday, June 21, 2006 9:43 AM
»» Subject: AW: [Flashcoders] Communication between two swfs?
»»
»»
»» I found one under http://www.electrotank.com/electroserver
»» but don´t know
»» how i can use it on my webhosting partner :]
»»
»» Maybe it exists a solution on a phpbase?
»»
»» Thanks
»»
»» Peter
»»
»» ::
»» Peter Oliver Geller
»»
»» virtual effects artist
»» interactive design & development
»»
»» Ricarda-Huch-Str. 7 50858 Cologne
»» 02234 - 99 52 63 phone
»» 0163 - 63 66 088 mobile
»»
»» www.pixel-gallery.com
»» [EMAIL PROTECTED]
»» ::
»»
»»
»» »» -Ursprüngliche Nachricht-
»» »» Von: [EMAIL PROTECTED]
»» »» [mailto:[EMAIL PROTECTED] Im
»» »» Auftrag von Mike Mountain
»» »» Gesendet: Mittwoch, 21. Juni 2006 15:29
»» »» An: Flashcoders mailing list
»» »» Betreff: RE: [Flashcoders] Communication between two swfs?
»» »»
»» »» I use an XMLsocket server for this all the time, works like
»» »» a charm...
»» »»
»» »» There's some on sourceforge, but anyone handy with
»» »» .net/python/c++ etc. should be able to roll you one without
»» »» much bother.
»» »»
»» »» M
»» »»
»» »» > -Original Message-
»» »» > From: [EMAIL PROTECTED]
»» »» > [mailto:[EMAIL PROTECTED] On
»» »» Behalf Of Peter
»» »» > Oliver Geller
»» »» > Sent: 21 June 2006 14:21
»» »» > To: 'Flashcoders mailing list'
»» »» > Subject: [Flashcoders] Communication between two swfs?
»» »» >
»» »» > Hi folks,
»» »» >
»» »» > can somebody tell me which is the best known method i can use to
»» »» > comunicate between two or more swf files.
»» »» > For example i want to use an easy way to send a broadcast
»» »» message to
»» »» > different machines where a standalone player is running
»» »» and waiting
»» »» > for incoming messages from my broadcaster swf?
»» »» >
»» »» > Don´t know if should use a flashmediaserver or maybe it exists a
»» »» > phpversion to handle the communiation???
»» »» >
»» »» > Thanks
»» »» >
»» »» > Peter
»» »» >
»» »» >
»» »» > ::
»» »» > Peter Oliver Geller
»» »» >
»» »» > virtual effe

Re: [Flashcoders] Communication between two swfs?

2006-06-21 Thread Jobe Makar

Peter,

ElectroServer is a Java application. If you have a dedicated server then you 
can just install it there. Alternatively, you can talk to your web hosting 
company and they may install it for you. I know that flashtampa.com has 
affordable accounts and ElectroServer is supported there.


Good luck

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: "Peter Oliver Geller" <[EMAIL PROTECTED]>

To: "'Flashcoders mailing list'" 
Sent: Wednesday, June 21, 2006 9:43 AM
Subject: AW: [Flashcoders] Communication between two swfs?


I found one under http://www.electrotank.com/electroserver but don´t know
how i can use it on my webhosting partner :]

Maybe it exists a solution on a phpbase?

Thanks

Peter

::
Peter Oliver Geller

virtual effects artist
interactive design & development

Ricarda-Huch-Str. 7 50858 Cologne
02234 - 99 52 63 phone
0163 - 63 66 088 mobile

www.pixel-gallery.com
[EMAIL PROTECTED]
::


»» -Ursprüngliche Nachricht-
»» Von: [EMAIL PROTECTED]
»» [mailto:[EMAIL PROTECTED] Im
»» Auftrag von Mike Mountain
»» Gesendet: Mittwoch, 21. Juni 2006 15:29
»» An: Flashcoders mailing list
»» Betreff: RE: [Flashcoders] Communication between two swfs?
»»
»» I use an XMLsocket server for this all the time, works like
»» a charm...
»»
»» There's some on sourceforge, but anyone handy with
»» .net/python/c++ etc. should be able to roll you one without
»» much bother.
»»
»» M
»»
»» > -Original Message-
»» > From: [EMAIL PROTECTED]
»» > [mailto:[EMAIL PROTECTED] On
»» Behalf Of Peter
»» > Oliver Geller
»» > Sent: 21 June 2006 14:21
»» > To: 'Flashcoders mailing list'
»» > Subject: [Flashcoders] Communication between two swfs?
»» >
»» > Hi folks,
»» >
»» > can somebody tell me which is the best known method i can use to
»» > comunicate between two or more swf files.
»» > For example i want to use an easy way to send a broadcast
»» message to
»» > different machines where a standalone player is running
»» and waiting
»» > for incoming messages from my broadcaster swf?
»» >
»» > Don´t know if should use a flashmediaserver or maybe it exists a
»» > phpversion to handle the communiation???
»» >
»» > Thanks
»» >
»» > Peter
»» >
»» >
»» > ::
»» > Peter Oliver Geller
»» >
»» > virtual effects artist
»» > interactive design & development
»» >
»» > Lindenstr. 14 50674 Cologne
»» > 0221 - 92 42 81 52 phone
»» >
»» >  <http://www.pixel-gallery.com/> www.pixel-gallery.com
»» > <mailto:[EMAIL PROTECTED]> [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
»»
»»

___
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] Programmatically build a crossword puzzle board

2006-06-19 Thread Jobe Makar

Hi Charles,

I once created a crossword in Flash about 2-3 years ago.
http://www.electrotank.com/playGame.electro?gId=111

Building a randomly unique board from a list of words I found to be way too 
difficult. My gut feeling was that even if I found a way it would be too 
slow to generate.


In my research I learned that there is a standarized format for crossword 
data. You can download and/or purchase crossword generating programs. Some 
of these export out to that standard format. That format contained mostly 
XML data. I had to open up the data file and just copy out the XML. I wrote 
a parsing routine in ActionScript that interpreted the data.


The end result was 100 XML files for 100 unique crosswords. About 50 of them 
I purchased from a professional crossword guy that does them for the 
Baltimore Sun. About 20 of them my Grandma made by hand :) And the rest I 
generated with one of those programs I described.


All-in-all the game works well, but its probably the least popular game on 
our site!


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104 



___
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] XMLSocket hosting

2006-04-13 Thread Jobe Makar

Hi JesterXL

Flashtampa.com does a very good job at hosting ElectroServer and Unity at 
reasonable costs. There is also webgamehost.com , but I've heard mixed 
things about them. Other than those two places you might have to get a 
dedicated server or convince a web hosting company to trust one of the well 
established products out there.


Good luck!

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "JesterXL" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, April 13, 2006 3:58 PM
Subject: [Flashcoders] XMLSocket hosting



Anyone know of any web hosts providing XMLSocket server hosting?

Doing a google search yeilds a lot of outdated links to services that no
longer exist.  I do not want to host it myself, but would rather pay a
hosting provider, like I pay Influxis.com for Flashcom hosting.

--JesterXL

___
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] Trying to solve this math equation

2006-03-18 Thread Jobe Makar

Hi Steven,

Your math *is* correct. Some people find it easy to verify their work by 
using subsitutions, and then replace at the end. As a validation of your 
work you can do the following:


Original:
c=((y-2)/(w-b-s))*i

Define:
A = y-s
B = w-b-s

Now equation is:
c=A/B*i

Solve:
A=c*B/i

Put A back in:
y-s = c*B/i   --->   y = c*B/i + s

Put B back in:
y = c*(w-b-s)/i + s

Generally substitutions like this are for longer expressions, but you get 
the picture. Hope you solve what ever issue you are having!


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Steven Sacks" <[EMAIL PROTECTED]>

To: "'Flashcoders mailing list'" 
Sent: Saturday, March 18, 2006 7:04 PM
Subject: [Flashcoders] Trying to solve this math equation



Hey everyone,

My algebra seems to be failing me.  I need some help here.

Here's my equation:
c = ((y - s) / (w - b - s)) * i;

I need to solve for y when I have c.  I wrote it out on paper and I came 
up

with:
y = ((c / i) * (w - b - s)) + s;

But that doesn't work...

My logic:

c = ((y - s) / (w - b - s)) * i;

c / i = ((y - s) / (w - b - s));

(c / i) * (w - b - s) = y - s;

((c / i) * (w - b - s)) + s = y;

Am I missing something?

___
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] Platform Game Collision Detection

2006-02-20 Thread Jobe Makar

Hi James,

Yeah, the frame independent circle-line stuff from my book doesn't handle 
the tips of the line correctly. So that code, as-is, would not work well for 
you. I have since create a super robust physics engine that handles edgest, 
but at this time its kept close to the vest for Electrotank uses.


I'd recommend looking into FLADE to see if that is frame independent. I've 
seen it posted on this list but I haven't read the details.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "James Marsden" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, February 20, 2006 1:00 PM
Subject: Re: [Flashcoders] Platform Game Collision Detection



Hi,

Thanks for this, although we decided to work with circle-line based 
detection as our game will require frame independent testing. If you're 
suggesting we drop circle-line detection in favour of bitmap based 
collision detection, how do you see it reducing the complexity of managing 
the reactions returned from circle-line collision with multiple objects?


Cheers,

J



JesterXL wrote:

Meta-tiles help to decrease the amount of collision dectection run per 
frame.


Additionally, bitmap collisions were always fast in Director, and the same 
holds true for Flash's bitmap stuff:


http://www.gskinner.com/blog/archives/2005/02/source_code_gri.html

http://www.gskinner.com/blog/archives/2005/10/source_code_sha.html



___
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] multiuser flash games

2006-02-15 Thread Jobe Makar
Ah, sorry for the misunderstanding. Good luck with your search and let me 
know if I can help you figure anything out with ES.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Rich Rodecker" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, February 15, 2006 8:55 PM
Subject: Re: [Flashcoders] multiuser flash games


Jobe - sorry, I meant no more than 5 users at a time in a room..i would
imagine that there would be more than 1 game being played at time. But yeah,
from what little experience i did have with electroserver i loved it,
thought it was really easy to set up and use.  I saw some of the samples up
on the ElectroServer site, but I need to get a couple of people in there to
test it out.

Mike - how many people do you have going simultaneously?






On 2/15/06, Mike Boutin < [EMAIL PROTECTED]> wrote:


You might want to check out smartfox server at Http://www.gotoandplay.it

I am using it for a multi-user isometric rpg and so far so good! ;)



Rich Rodecker wrote:

>im considering making a multiuser game in flash, which involves multiple
>users (no more than 5 at a time probably) chasing each other around a
room.
>I have dabbled with electroserver before and liked it, but only for a
simple
>turn-based game, but I'm not sure about how well any multiuser server
would
>handle latency.  Anyone have any suggestion/pointers/tips for 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


___
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] multiuser flash games

2006-02-15 Thread Jobe Makar

Hi Rich,

I'm definately biased since I'm president of Electrotank (owner of 
ElectroServer). But there are a few points I'd like to add for you:
- You can use all features of ElectroServer for free for up to 20 
simultaneous users. So it sounds like the free version would meet your needs
- Latency is 99.9% dependent on the network itself. ElectroServer's typical 
response time is under 1 ms. It has been used to create real-time games with 
a lot of success with Flash games and non-Flash games. Even cell phone 
games.


What I mentioned above (about latency) should probably apply to most server 
solutions. I just know that with ES the added latency is negligible.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Rich Rodecker" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, February 15, 2006 8:10 PM
Subject: [Flashcoders] multiuser flash games


im considering making a multiuser game in flash, which involves multiple
users (no more than 5 at a time probably) chasing each other around a room.
I have dabbled with electroserver before and liked it, but only for a simple
turn-based game, but I'm not sure about how well any multiuser server would
handle latency.  Anyone have any suggestion/pointers/tips for 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] A nice whiteboard/scribble/drawing thing

2006-02-09 Thread Jobe Makar

Hi Ramon,

I'm not aware of a free whiteboard that fits your description. But I do know 
of a basic free multi-user whiteboard. Go here and scroll down:

http://www.electro-server.com/live_examples.aspx

That is a pretty basic whiteboard example. The source is installed with 
ElectroServer. ElectroServer is free for up to 20 simultaneous connections.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Ramon Tayag" <[EMAIL PROTECTED]>

To: "FlashCoders Programming" 
Sent: Thursday, February 09, 2006 8:30 AM
Subject: [Flashcoders] A nice whiteboard/scribble/drawing thing


Hey everyone,

Are there nicely free, coded, neat, and object oriented
whiteboard/scribble programs out there?  If there aren't, are there
ones that are close to what I described?

I looked around in the Flashkit applications and downloaded about half
a dozen..  I'm hoping there are more out there though.

I want to make my own and I think it'll make a world's difference if
there's something I can study.

Thanks!
--
Ramon Miguel M. Tayag
___
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] Bullet Angle

2006-02-06 Thread Jobe Makar

Hi,

Reverse the difference calculation in the atan2 method. Those parameters 
determine the slope from the perspective of one of the two points. So change 
it to this and it should work:


var theRadians:Number = Math.atan2(( goodGuy._y-_y), (goodGuy._x-_x));

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "JesterXL" <[EMAIL PROTECTED]>

To: 
Sent: Monday, February 06, 2006 11:56 AM
Subject: [Flashcoders] Bullet Angle


I've got some bullet code that is dependent upon the rotation.  However, 
my

results are backwards; meaning, I have to invert my results to get the
bullet to move at the right angle.  Granted, it works, but I feel
uncomfortable since I don't understand why it's backwards.  Anyone explain
why, or give me a better algo?

// my ship
var theRadians:Number = Math.atan2((_y - goodGuy._y), (_x - goodGuy._x));
var theDegrees:Number = theRadians * 180 / Math.PI;
_rotation = theDegrees;

// the bullet code
var deltaX:Number = targetX - _x;
var deltaY:Number = targetY - _y;
var angle:Number = p_shipFiring._rotation;
angle = angle * Math.PI / 180;
theX = speed * Math.cos(angle);
theY = speed * Math.sin(angle);
// only works if I invert...???
theX *= -1;
theY *= -1;

Thanks if you can help!

--JesterXL

___
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-18 Thread Jobe Makar

Thanks Eric.

I saw BLDoc, but it says its in beta. Is it solid?

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "eric dolecki" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, January 18, 2006 8:57 AM
Subject: Re: [Flashcoders] Documenting my code


BLDoc for PC
VisDoc for OS X (rocks)

On 1/18/06, Jobe Makar <[EMAIL PROTECTED]> wrote:


Hi guys,

I've recently purchased AS2Doc to generate documentation from my
ElectroServer class file. The software works pretty well, but it appears
the
Mirell (company that owns it) is now a ghost town or something. There are
no
responses to my support requests at all. Emails to their busdev address
bounce.

My question is this: does anyone know of a good place where I could find
support on AS2Doc. Or, can anyone suggest an alternative software that
takes
the java-doc style comments and create documentation?

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104


___
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] Documenting my code

2006-01-18 Thread Jobe Makar

Hi guys,

I've recently purchased AS2Doc to generate documentation from my 
ElectroServer class file. The software works pretty well, but it appears the 
Mirell (company that owns it) is now a ghost town or something. There are no 
responses to my support requests at all. Emails to their busdev address 
bounce.


My question is this: does anyone know of a good place where I could find 
support on AS2Doc. Or, can anyone suggest an alternative software that takes 
the java-doc style comments and create documentation?


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104 



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


Re: [Flashcoders] adding whitespace back into xml

2006-01-09 Thread Jobe Makar

Thanks Jim and Dimitrios, this works great!

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Dimitrios Bendilas" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, January 09, 2006 2:41 PM
Subject: Re: [Flashcoders] adding whitespace back into xml



Hi there Jobe,

Try this. It works great for me.

class util.XMLFormat {

public static function formatXML(p_xml:XMLNode, p_tab:String):String {
 p_tab = (p_tab == undefined) ? "\t" : p_tab;
 var str:String = new String();
 var nodeValue:String = p_xml.nodeValue;
 var nodeName:String = p_xml.nodeName;
 if ((nodeValue != null) && (nodeValue != undefined)) {
  str += p_tab + nodeValue + "\n";
 } else if (nodeName != null) {
  str += p_tab + "<" + nodeName;
  var attr:Object = p_xml.attributes;
  for (var n:String in attr) {
   str += " "+ n +"=\""+attr[n]+"\"";
  }
  if (p_xml.firstChild != null) {
   if (p_xml.firstChild.nodeValue != null) {
str += ">" + checkCDATA(p_xml.firstChild.nodeValue) + "">\n";

   } else {
str += ">\n";
var children:Array = p_xml.childNodes;
var l:Number = children.length;
for (var i:Number=0; i\n";
   }
  } else { str += " />\n"; }
 }
 return str;
}

public static function checkCDATA(p_str:String):String {
 var tempStr:String = new XML("").toString();
 return (tempStr.indexOf("&") != -1) ? "" : 
p_str;

}

}


Cheers,

Dimitrios

- Original Message - 
From: "Jobe Makar" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, January 09, 2006 9:21 PM
Subject: Re: [Flashcoders] adding whitespace back into xml



Hi Sander,

Thanks, but modifying the source XML is not an option in this case. I am 
just looking for something that will take the XML and convert it to a 
string with whitespace. I'll probably just need to write something to do 
it.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Sander" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, January 09, 2006 2:14 PM
Subject: Re: [Flashcoders] adding whitespace back into xml


Why don't you just include html tags in your XML, so it becomes  XHTML? 
You just take a couple of nodes and use them to set the  htmlText 
property of a textfield?






Bullet 1
Bullet 2



Some other paragraph



var myText.htmlText = xmlObject.firstChild.childNodes.toString();
___
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] adding whitespace back into xml

2006-01-09 Thread Jobe Makar

Thanks I'll give it a shot!

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Jim Kremens" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, January 09, 2006 2:26 PM
Subject: Re: [Flashcoders] adding whitespace back into xml


I came across this on the web a while back:

//original author http://www.wolfenhex.com
public static function format(node, tab):String {
 if (tab == undefined) tab = "";
 if(node.nodeName == null) return format(node.firstChild, tab);
 var s:String = "<" + node.nodeName;
 for(var a:String in node.attributes) s += " " + a + "=\"" +
node.attributes[a]+ "\"";
 if(!node.hasChildNodes()) {
  s += " />";
  return tab + s + newline;
 }
 s += ">";
 if(node.firstChild.nodeType == 3) s += node.firstChild.nodeValue;
 else {
  s += newline;
  for(var i:Number = 0; i < node.childNodes.length; i++) s += format(
node.childNodes[i], tab + "\t");
  s += tab;
 }
 s += "";
 return tab + s + newline;
}

Just throw an xml node at it and see what happens.

Jim Kremens


On 1/9/06, Jobe Makar <[EMAIL PROTECTED]> wrote:


Hi Sander,

Thanks, but modifying the source XML is not an option in this case. I am
just looking for something that will take the XML and convert it to a
string
with whitespace. I'll probably just need to write something to do it.

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message -
From: "Sander" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Monday, January 09, 2006 2:14 PM
Subject: Re: [Flashcoders] adding whitespace back into xml


> Why don't you just include html tags in your XML, so it becomes  XHTML?
> You just take a couple of nodes and use them to set the  htmlText
property
> of a textfield?
>
> 
> 
> 
> 
> Bullet 1
> Bullet 2
> 
> 
> 
> Some other paragraph
> 
> 
>
> var myText.htmlText = xmlObject.firstChild.childNodes.toString();
> ___
> 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





--
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


Re: [Flashcoders] adding whitespace back into xml

2006-01-09 Thread Jobe Makar

Hi Sander,

Thanks, but modifying the source XML is not an option in this case. I am 
just looking for something that will take the XML and convert it to a string 
with whitespace. I'll probably just need to write something to do it.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Sander" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, January 09, 2006 2:14 PM
Subject: Re: [Flashcoders] adding whitespace back into xml


Why don't you just include html tags in your XML, so it becomes  XHTML? 
You just take a couple of nodes and use them to set the  htmlText property 
of a textfield?






Bullet 1
Bullet 2



Some other paragraph



var myText.htmlText = xmlObject.firstChild.childNodes.toString();
___
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] adding whitespace back into xml

2006-01-09 Thread Jobe Makar

Hi guys,

I was wondering if there was an algorithm in existence that will convert an 
XML instance into a string while adding white space back in (for 
readability).


Thanks!

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104 



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


Re: [Flashcoders] > XMLSocket + close()

2006-01-06 Thread Jobe Makar

Hi Weyert,

I think that you're supposed to assume it worked. The only time you get the 
closed event is when its not intiated by the client.


BTW, if you use ElectroServer, there is a close event fired through the 
ElectroServer class no matter what, client-initiated or 
server-initiated...or due to network problems.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Weyert de Boer" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Friday, January 06, 2006 11:02 AM
Subject: [Flashcoders] > XMLSocket + close()


Hmm, does anyone know a way to get a call to find if I got succesfully 
disconnected using the close()-method?

___
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] universal toString() function

2005-12-07 Thread Jobe Makar

Hi Andreas,

Give this a shot I think it will do what you need. Its a little messy since 
I just typed it really quick. Hope it helps:


//---Some contrived complex structure to trace
var myOb = new Object();
myOb.name = "jobe"
myOb.animals = ["free", "gulliver"];
myOb.someArr = [{email:"[EMAIL PROTECTED]", vocation:"programmer", 
male:true, hasKids:false}, 30];

//--
checkIt();
function checkIt() {
var output:String = inspect(myOb, "");
trace(output);
}
function inspect(ob, str, parent) {
if (ob instanceof Array) {
 str += "[";
} else if (ob instanceof Object) {
 str += "{";
}
var firstone:Boolean = true;
for (var i in ob) {
 var type = typeof ob[i];
 if (!firstone) {
  str += ", ";
 } else {
  firstone = false;
 }
 if (type == "object") {
  var val = inspect(ob[i], "", ob);
  if (ob instanceof Array) {
   str += val;
  } else {
   str += i+": "+val;
  }
 } else {
  if (ob instanceof Array) {
   str += interpretValue(ob[i])
  } else if (ob instanceof Object) {
   str += i+":"+interpretValue(ob[i]);
  }
 }
}
if (ob instanceof Array) {
 str += "]";
} else if (ob instanceof Object) {
 str += "}";
}
return str;
}
function interpretValue(val) {
if (Number(val) === val){
 //number
 return val;
} else if (val == true || val == false) {
 return val;
} else {
 return "'"+val+"'";
}
return val;
}


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Andreas Weber" <[EMAIL PROTECTED]>

To: "Flashcoders" 
Sent: Wednesday, December 07, 2005 10:14 AM
Subject: [Flashcoders] universal toString() function



I'm quite sure that this must be around somewhere, but this time I didn't
have any luck searching the archives...

What I'm looking for is similar to a deep-copy/clone method (e.g.
Arul/Tatsuo
http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2004-March/106149.htm
l) but instead of getting a clone of the object in return, I'd like to get 
a

String representation of the object.

Example of the desired functionality:

o = {a:1, b:2, c:{c1:['a','b','c'], c2:true}};
var s:String = universalToString(o);
trace(s);

Output:   {a:1, b:2, c:{c1:['a','b','c'], c2:true}}

In my case the object will not contain any methods, just (deeply nested)
'vanilla' Objects, Arrays, Strings, Numbers and Booleans.

Thanks for any pointers!

--
Andreas Weber
motiondraw.com



___
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] Array Madness - test yourself

2005-11-20 Thread Jobe Makar

Hi Judah,

This is a good candidate for a 'while' loop:

while(errors.length >0) {
   errors.pop();
}

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Judah Frangipane" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Sunday, November 20, 2005 6:48 PM
Subject: [Flashcoders] Array Madness - test yourself


I just want to bring to your attention a rare array problem that eluded 
me for years. I just realized what is going on.


Whenever I tried to clear an array I would use a for loop, iterate 
through all the items and pop each one off. Every once in a while the 
arrays would still contain values and not be completely erased. Can you 
spot the error? Here is the code:


*
wrong way
*
// create an array
errors = new Array()
// add two items
errors.push("item 1")
errors.push("item 2")

// loop through each item
for (var i=0;i < errors.length; i++) {
   trace("removing item")
   errors.pop()
}
// errors.length = 1
trace("errors.length="+errors.length)


*
right way
*
// create an array
errors = new Array()
// add two items
errors.push("item 1")
errors.push("item 2")
var len = errors.length;

// loop through each item
for (var i=0;i < len; i++) {
   trace("removing item")
   errors.pop()
}
// errors.length = 0
trace("errors.length="+errors.length)


Look at the condition (i < errors.length).

If we pop an item off the end of the array then the length of the array 
is decreased and we do not iterate through all items in the array. Hope 
this helps someone.


Best Regards,
Judah



___
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] emoticons in a chat component

2005-11-20 Thread Jobe Makar

Hi Simon,

That's pretty slick!

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Simon Lord" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Sunday, November 20, 2005 1:46 PM
Subject: Re: [Flashcoders] emoticons in a chat component


I have a font based solution that is easy to use.  The idea is to use  
the kerning in fonts to simulate layering of letters, however, in my  
font there are no letters, just smilie *parts*.


You can see the breakdown here as well as test it out:

http://www.karbonized.com/smilies/

... download the sample here (it's old, you may need to play with it  
a little to suit your needs).


http://www.karbonized.com/smilies/Archive.zip


On Nov 20, 2005, at 12:24 PM, Karina Steffens wrote:


Hi List,

I have a working FlashComm chat programme, dedicated to online  
counselling.
It's been up and running for over half a year now, but now the  
client wants

me to add some new features, one of which is emoticons.

I'm using the TextArea for the history component and formatting the  
text
with html, so I thought adding the emoticons would be a simple  
matter of
using the  tag in the TextArea. But it doesn't want to work  
that way -
the emoticons are not displayed inline, but at the beginning of the  
next

line, wrapping the following text around them.
I need to find a way to to make them display in the same way as a  
user would
expect from a chat application. I've done some research, but  
haven't found
anything suitable yet. I also don't want to use an emoticon font,  
because

the results are not what I'm looking for.

Any ideas? Is it possible to use a style sheet to position them  
correctly?
Or give all images ids to move them around? Would I need to overlay  
them on

top of the text? Nothing too complicated I hope, I've only estimated a
couple of days for the job...

Thanks,
Karina


Karina Steffens  |  Neo-Archaic
creative & technical new media design
 <http://www.neo-archaic.net/> www.neo-archaic.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] XMLSocket OS X

2005-11-20 Thread Jobe Makar

Hi Michael,

ElectroServer 3 works on OSX. It will work on any OS that support the JRE.
http://www.electro-server.com
or to download
http://www.electro-server.com/downloads.aspx
(just click on the Mac download)

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Michael Bianco" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Sunday, November 20, 2005 3:32 PM
Subject: [Flashcoders] XMLSocket OS X


Hello,
Does anybody have a XMLSocket Server that works on os x?
I cant seem to get a connection working between the SWF and my java server.

Heres my java server:
-
import java.net.*;
import java.io.*;

public class serverTest {
public static void main(String[] args) {
System.setErr(System.out);

try {
int maxConnections = 100;
Socket[] clients = new Socket[maxConnections];

printAvailIp();

ServerSocket servSock = new ServerSocket(2500, 0,
InetAddress.getAllByName(InetAddress.getLocalHost().getHostName())[0]);

while(true) {
Socket newSock = servSock.accept();
newSock.setTcpNoDelay(true);

System.out.println("Got connection!");
printStatus(newSock);
}
}

catch (Exception a) {
System.out.println(a);
}
}

private static void printStatus(Socket sock) {
System.out.println("Connected: "+ sock.isConnected());
System.out.println("Is closed: "+ sock.isClosed());
}

private static void printAvailIp() {
try {
InetAddress[] ips =
InetAddress.getAllByName(InetAddress.getLocalHost().getHostName());
for(int a = 0; a < ips.length; a++) {
System.out.println(ips[a]);
}
}

catch (Exception a) {
System.out.println(a);
}
}
}
-

Heres my code on the client (flash side):
--
class mainEntryPoint {
static function main() {
XML.prototype.ignoreWhite = true;

setInterval(tryConnect, 1000);
//tryConnect();
}

static function tryConnect() {
trace("Try to Connect");

var socket = new XMLSocket();

socket.onConnect = function(success:Boolean) {
trace("connected! "+ success);
}

socket.onData = function() {
trace("got data");
}

socket.onClose = function() {
trace("closing");
}

socket.onXML = function(src:XML) {
trace("Got XML!"+src);
}

trace("Inital Connect: "+ socket.connect("192.168.0.4", 2500));
}
}
---

HEre the output i get from the flash SWF:
Inital Connect: true
connected! false

Nomatter what i do i cant get it to actually connect to the server. Any 
ideas?

___
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] emoticons in a chat component

2005-11-20 Thread Jobe Makar

Hi Katrina,

Adding emoticons inline in text is very difficult. You cannot insert the 
image directly into the text field unless it is going to be left, center, or 
right justified. The approach is to search and replace the emoticon similies 
(like :-) ), with spaces and then overlay  movie clip. This presents some 
problems too because Flash's text metrix aren't always trustworthy, so you 
can't consistently tell where to put the image. In addition, when you 
replace the :-) with spaces, your word wrapping might change. So instead of 
search-and-replace, maybe just recolor those characters to the color of the 
background.


I think your best bet would be to use a fixed-width font, like courier. Then 
you can just use some basic math to determine where the icons should go.


FYI: I got emoticons working in the chat on my site, and they work extremely 
well. The code is not pretty and uses some really silly techniques to get 
around the Flash Player bugs. As a result, if you compile it to a later 
version of Flash it stops working...because the bugs are either fixed or 
just different.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Karina Steffens" <[EMAIL PROTECTED]>

To: "'Flashcoders mailing list'" 
Sent: Sunday, November 20, 2005 12:26 PM
Subject: RE: [Flashcoders] emoticons in a chat component


I almost forgot to mention - I'm using MX2004 and haven't upgraded to 8 
yet.

Would that make any difference?


-Original Message-
From: Karina Steffens [mailto:[EMAIL PROTECTED]
Sent: 20 November 2005 17:24
To: 'Flashcoders mailing list'
Subject: [Flashcoders] emoticons in a chat component

Hi List,

I have a working FlashComm chat programme, dedicated to
online counselling.
It's been up and running for over half a year now, but now
the client wants me to add some new features, one of which is
emoticons.

I'm using the TextArea for the history component and
formatting the text with html, so I thought adding the
emoticons would be a simple matter of using the  tag in
the TextArea. But it doesn't want to work that way - the
emoticons are not displayed inline, but at the beginning of
the next line, wrapping the following text around them.
I need to find a way to to make them display in the same way
as a user would expect from a chat application. I've done
some research, but haven't found anything suitable yet. I
also don't want to use an emoticon font, because the results
are not what I'm looking for.

Any ideas? Is it possible to use a style sheet to position
them correctly?
Or give all images ids to move them around? Would I need to
overlay them on top of the text? Nothing too complicated I
hope, I've only estimated a couple of days for the job...

Thanks,
Karina


Karina Steffens  |  Neo-Archaic
creative & technical new media design
 <http://www.neo-archaic.net/> www.neo-archaic.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] Card/Poker Game inquiry

2005-11-03 Thread Jobe Makar

Hi Brian,

Are you looking for a multiplayer game or a single player with computer AI? 
If you want to email me directly I can give you some information.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Brian Mays" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Thursday, November 03, 2005 4:34 PM
Subject: [Flashcoders] Card/Poker Game inquiry


Not being a programmer, I didn't really know where to start.
Hopefully you guys would be able to point me in the right direction.

One of our project managers is wondering what it would take to create
a poker game using Flash to place on our site.  They're open to the
possibility of licensing some technology I think.  I don't really know
what to tell him, but I know many of you have game building
experience.

Thanks so much!

Brian Mays
___
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] createTextNode with CDATA

2005-11-02 Thread Jobe Makar
If you trace it as a string, then you'll see the CDATA. If you trace it as 
XML then you will not see the CDATA.


ElectroServer is a multiuser chat server that Mike (my coworker) and I 
created a few years ago. The chat client uses this method to send funky data 
that normally would break the text node. It works.


So I would just test it out with what ever application you are communicating 
with to see if it worked. Even if you can't see the CDATA after converting 
it to XML.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Diego Guebel" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, November 02, 2005 5:31 PM
Subject: Re: [Flashcoders] createTextNode with CDATA



jobe, it seems I'm doing something wrong.
here is my code:
__xmlString += "+ obj.screenInputValues[i].name + "\">";


this is an ouptput example:
1

it prints all the values but not the CDATA around the "1".

do I miss something?
Cheers, Diego.

Jobe Makar wrote:

In Flash I've always opted to create XML as a string, and then when I'm 
done do this:

var myXML:XML = new XML(theString);

If you do it that way then CDATA definately works.

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - From: "Chris Allen" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, November 02, 2005 4:57 PM
Subject: Re: [Flashcoders] createTextNode with CDATA


There is no way to create an actual CDATA node in Flash, at least not
with Version 8 or lower.  You have to resort to escaping the string so
that it doesn't have invalid characters or not use XMLNode for this.

-Chris

On 11/2/05, Diego Guebel <[EMAIL PROTECTED]> wrote:


hey guys,
I want to create a xml node with CDATA, I'm doing in this way:

var temp:XMLNode = doc.createTextNode("");

the issue is that it prints < in the output.
<![CDATA[some text]]>

any pointer on this,
cheers, Diego.
___
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




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


Re: [Flashcoders] createTextNode with CDATA

2005-11-02 Thread Jobe Makar
In Flash I've always opted to create XML as a string, and then when I'm done 
do this:

var myXML:XML = new XML(theString);

If you do it that way then CDATA definately works.

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Chris Allen" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, November 02, 2005 4:57 PM
Subject: Re: [Flashcoders] createTextNode with CDATA


There is no way to create an actual CDATA node in Flash, at least not
with Version 8 or lower.  You have to resort to escaping the string so
that it doesn't have invalid characters or not use XMLNode for this.

-Chris

On 11/2/05, Diego Guebel <[EMAIL PROTECTED]> wrote:

hey guys,
I want to create a xml node with CDATA, I'm doing in this way:

var temp:XMLNode = doc.createTextNode("");

the issue is that it prints < in the output.
<![CDATA[some text]]>

any pointer on this,
cheers, Diego.
___
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] Forcing Flash going to nextframe whileexecutingcode? + MultiThreading in Flash?

2005-11-02 Thread Jobe Makar
See responses in blue

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Helen Triolo" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, November 02, 2005 4:06 PM
Subject: Re: [Flashcoders] Forcing Flash going to nextframe whileexecutingcode? 
+ MultiThreading in Flash?


> By "you cannot do that without breaking the parsing up over multiple 
> frames", do you mean
> 
> a) there is some way to break up the actual xml reading over several 
> frames, and even be able to access individual nodes before the whole 
> thing is read in?  if so, I would love to see an example, or
Yes. You can break up reading the XML over multiple frames. I wouldn't wish 
this on anyone because it would be a pain, but it is possible. I had to do that 
in Flash 5 before XML parsing got much faster. You can't read the XML before it 
is fully loaded. The internal parseXML() method of the XML class is invoked 
when loading is complete...its probably just a string before that.


> 
> b) there is some way to make the conversion from xml object to other 
> actionscript structure happen over multiple frames (which doesn't seem 
> useful to stop the timeout problem), or
You could convert it to string, but that doesn't seem like it would be of any 
use.

> 
> c) you can set up a 2-frame loop while the xml is loading so that a 
> timeout error doesn't occur? or
No

> 
> d) something else?
> 
> thx,
> Helen

I might be slightly confused here. Are you getting this error from the internal 
parsing? ie when loading is complete it is automatically parsed by Flash 
internally to create the XML nodes. Is this what is timing out? Or are you 
getting the time out when you try to walk the nodes afterwards. The later is 
what I thought you were talking about. If it is the former then I think your 
choices are as follows:
1) Divide the XML file into smaller files
or
2) Don't let the parseXML() method get fired. I think if you capture the 
XML.onData event then the parseXML method is not fired. Then you can maybe 
slice it up yourself somehow and make several XML objectsI don't know.


> 
> 
>>>No, you cannot do that without breaking the parsing up over multiple
>>>frames.
>>>A function is fully executed in 1 frame. The display is only updated 1
>>>time
>>>per frame.
>>>
>>>Jobe Makar
>>>http://www.electrotank.com
>>>http://www.electro-server.com
>>>phone: 919-609-0408
>>>mobile: 919-610-5754
>>>fax: 919-341-8104
>>>- Original Message -
>>>From: <[EMAIL PROTECTED]>
>>>To: 
>>>Sent: Wednesday, November 02, 2005 8:52 AM
>>>Subject: [Flashcoders] Forcing Flash going to next frame while
>>>executingcode? + MultiThreading in Flash?
>>>
>>>
>>>Is this possible ? I have a large xml-file which is parsed. This tends
>>>to freeze the application several seconds (in case of a really big
>>>xml-file, a popup can occur whith script time out error). Is it possible
>>>to force Flash to jump to a next frame without stopping the execution of
>>>code? And is it possible to set this script time out higher?
>>>
>>>
>>>
>>>Breaking the xml in several peaces is an option we have already done,
>>>but still I would like to know if it is possible to force flash to a
>>>next frame.
>>>
>>>
>>>
>>>Another question : Is it possible to start another thread to execute
>>>some operations in the background?
>>>
>>>
>>>
>>>Thx, Lieven Cardoen
>>>
>>>
>>>
> 
> ___
> 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] Forcing Flash going to next frame while executingcode? + MultiThreading in Flash?

2005-11-02 Thread Jobe Makar

Hi Lieven,

No, you cannot do that without breaking the parsing up over multiple frames. 
A function is fully executed in 1 frame. The display is only updated 1 time 
per frame.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, November 02, 2005 8:52 AM
Subject: [Flashcoders] Forcing Flash going to next frame while 
executingcode? + MultiThreading in Flash?



Is this possible ? I have a large xml-file which is parsed. This tends
to freeze the application several seconds (in case of a really big
xml-file, a popup can occur whith script time out error). Is it possible
to force Flash to jump to a next frame without stopping the execution of
code? And is it possible to set this script time out higher?



Breaking the xml in several peaces is an option we have already done,
but still I would like to know if it is possible to force flash to a
next frame.



Another question : Is it possible to start another thread to execute
some operations in the background?



Thx, Lieven Cardoen

___
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] Spline 3D Atom Menu thing?

2005-10-20 Thread Jobe Makar

Hi guys,

I built these for a client a few months ago. It ended up leading to an 
interesting interface design. I'll see if I can get permission to post the 
source to these (they all use the same base classes):

http://www.electrotank.com/lab/SpringTests/AttractRepel/NodeLayout.html
http://www.electrotank.com/lab/SpringTests/Rope/Rope.swf
http://www.electrotank.com/lab/SpringTests/Soda/Soda.html

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Tom Lee" <[EMAIL PROTECTED]>

To: "'Flashcoders mailing list'" 
Sent: Thursday, October 20, 2005 12:42 PM
Subject: RE: [Flashcoders] Spline 3D Atom Menu thing?



I've been thinking of working on something similar myself... I was calling
it a node net for some reason.  I was thinking these could be a starting
point:

http://www.flashkit.com/movies/Scripting/rubber_h-Ghost-2397/index.php
http://www.flashkit.com/movies/Scripting/Other/Linked_N-crax1yt3-1531/index.
php

Let me know if you find the original!!

-tom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Moses
Gunesch
Sent: Thursday, October 20, 2005 12:00 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Spline 3D Atom Menu thing?

Oh I did that, years ago. I uploaded it to FlashKit I think.. do a
search for 3d there and maybe you'll get to the file. Otherwise it
might take me a while to dig it up or maybe you could decompile a swf
or something.. anyway if you can't get it  write me offlist.

MG/MosesSupposes

On Oct 20, 2005, at 8:46 AM, JesterXL wrote:


I'm looking for some OOd Flash files.  Basically, there was
this menu
done in Flash that had a shorter stint in fame vs. the scrolling
boxes one.
It was basically a bunch of lines originating from the center.
They had
circles on the end of the lines that were clickable buttons.  They
"rotated"
in 3D as you moved your mouse, and you had to rotate these buttons
into the
foreground so you could click them.

Anyone know where I can find this menu with source code?  AS1 is ok!

Thanks if you can help.

--JesterXL

___
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] Particle effects theory as it relates to BitmapData

2005-10-19 Thread Jobe Makar

Hi Weyert,

Thanks for the suggestion. I may be wrong here, but I think that would 
equate to the same number of draw() executions per frame, and would take a 
lot of logic to do it.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Weyert de Boer" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, October 19, 2005 10:50 AM
Subject: Re: [Flashcoders] Particle effects theory as it relates to 
BitmapData





- Generate about 5 of these things per frame (using clone() on the 
initial particle BitmapData). They get removed after a lifetime.
- Every frame I wipe the screen clean, draw a base black square (using 
new BitmapData), loop through an array of Particle class instances and 
draw() them to the base square. I use Matrix.translate with draw() to 
position the particle data to where it needs to be


Do you know to which part of the frame the particles will flow too? If so, 
you could consider to only update that part of the frame that are 
changing. Instead of redrawing the particles each request, because you 
have a list of particle instances this should be possible. Of course I am 
not sure how much the calculation will add up to the total render time. 
Just a idea.

___
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] Particle effects theory as it relates to BitmapData

2005-10-19 Thread Jobe Makar

Hi guys,

I don't necessarily have a question here, just explaining some tests that 
I've done and seeing if anyone has input/ideas that I've missed.


I've been experimenting a bit with particle effects. In an effort to 
determine the new "best way" to approach this I've created a test the old 
way (attaching movie clips), and the new way (using BitmapData). 
Unfortunately, the old movie clip way still performs better, that-is when 
used in conjunction with cacheAsBitmap.


I've seen some F8 particle effect demos online where particles are 
continually added, but not moved or removed. In that scenario I think 
BitmapData works well because you are just adding to an image. However, if 
you want to have a trail of sparks shooting out of something and affected by 
gravity or other dynamic forces, then you are not continually adding to an 
image..it must essentially be redrawn every time. My approach to this using 
BitmapData was as follows:
- Made a particle class that will store the BitmapData instance for a given 
particle, and its other associated properties, like x and y psotion, speeds, 
translation matrix, etc
- Generate about 5 of these things per frame (using clone() on the initial 
particle BitmapData). They get removed after a lifetime.
- Every frame I wipe the screen clean, draw a base black square (using new 
BitmapData), loop through an array of Particle class instances and draw() 
them to the base square. I use Matrix.translate with draw() to position the 
particle data to where it needs to be


In this approach there is only 1 movie clip. The array is cleaned up 
properly. As far as I can tell there are no memory issues. But the end 
result is much slower performance than the equivalent done with movie clips 
and cacheAsBitmap. So I'm wondering if anyone sees a theoretical flaw here 
or can suggest an alternative approach?


Right now my thinking is that the best approach to particle effects in Flash 
(where the particles actually move) is going to require at least 1 movie 
clip per particle. I'd like to be wrong, so if someone could tell me why ...


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104 



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