[Flashcoders] 大人の関係を望む人 達の為の出会いのスポット!!

2007-07-20 Thread 18歳以上限定

恋人から割り切りセフレまで幅広く多数の男女が登録中!
確実に会える相手を見つけるのに苦労してませんか?

会いたい時に会えるのも凄く大切だと思います。

純粋な「出会い」を前提とした
大人の関係を望む人達の為の出会いのスポット!!
もちろん大人の関係だから18歳以上であれば年齢制限ナシ
http://pittarism.com/KT/




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Skewing text

2007-07-20 Thread Jake Prime

Hi

Returning to this now as it seems simple distortion is not
satisfactory and I do need to have real perspective. I have played a
bit with Papervision and it's not too hard to render text with
perspective. However the designs that I am working to require quite
precise placement and orientation of the text. Using the distort class
I could simply specify the 4 points of the plane in 2D space on the
stage and render the text like that, but this is not the way
Papervision works.

My question is, is it possible to render a plane in true perspective
just by specifying the 4 points in 2D on the stage? In Zeh's diagram
(http://hosted.zeh.com.br/misc/perspective.png) he shows that you
can't split the line 50-50 to get the 3D halfway point, is there a way
of working out what the proportion would be? If so I want to ammend
the distortImage class to take this into account.

jake

On 03/07/07, Jake Prime [EMAIL PROTECTED] wrote:

Hi JC

Yes as Zeh has illustrated the Sandy distortImage class distorts, and does
not create perspective. For my purposes this is fine as the perspective is
not too pronounced (certainly not disappearing off into the horizon).

Jake.


On 03/07/07, Zeh Fernando [EMAIL PROTECTED] wrote:
  Thanks for the replies, I found the Sandy distortImage class to be
  the easiest to implement.
 
 
http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html

 Yes, but again - be careful. Skewing/distortion is not perspective. If
 you do that with text you won't get the same result as a star-wars-like
 text, as the glyphs that are farther from the viewer won't be vertically
 scaled as they should.

 To explain it visually,

 http://hosted.zeh.com.br/misc/perspective.png



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

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




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

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


[Flashcoders] Panning stream sound

2007-07-20 Thread Dennis - I Sioux
Hey,

Anyone knows why a streamsound can't be panned?
Tried global sound, or attachment to mc..  the sound stream won't pan from left 
to right.. while the sound files in the fla do.

With kind regards,

Dennis
I Sioux
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Backend compiled Java or scripted PHP?

2007-07-20 Thread Weldon MacDonald

Wow, this seems to be one of those topics where everyone has strong but
differing opinions,

Atila java over PHP. Just few points why:  
Nice comparative overview

 HermitIt seems to depend on what you will be using it for ultimately.
BINGO, we have a winner folks...

Ron,   Eclipse, Spring, Hibernate, AXIS and Java is a pretty nice
toolkit.
I agree wholeheartedly, but is it the most productive way to handle the
small stuff. I don't have the luxury of having server drones (apologies to
the server drones) taming the backend, so quick and dirty  is a
development paradigm for me.

 Muzak  Flash/Flex + Coldfusion + Flash/Flex Remoting.
I've seen the big increase in traffic on all things Coldfusion, but I seemed
to have missed the reason why (been under a rock). I usually try to avoid
proprietory stuff when I can and have always ignored Coldfusion for it's
limited hosting etc... I'll have to research what all the recent traffic is
about and if there's a need to revise this opinion.

Flashcoders has once again provided an interesting, informative, and
balanced overview.

What I get from it is, in general (with untold exceptions),
- professional programmers in general prefer the structure of Java. The
majority here. I've had enough formal training to appreciate this.

- PHP seems to be preferred by the home grown just get it done programmers
who are, like me, spawned by opportunities inherent on the internet.  As a
one man operation I sympathize

- the dividing line seems to be scale. (How big is the project, how much
traffic will it generate, how computationally expensive and or complex).
There are many situations that don't affect the scalability or
maintainability of a site, scripting is too useful a tool not to have
available. That being said, while more complex things can and are built with
PHP, there's a point at which the advantages of Java overcome it's
disadvantages (taming tomcat, longer development times, etc...).  The big
question is where do  you draw the line?

Weldon

Best is good. Better is best. Lisa Grunwald
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Casting to Array

2007-07-20 Thread Danny Kodicek
I'm trying to do something like this:

if (a instanceof Array) {
doMyArrayFunction(a)
}

the doMyArrayFunction expects an Array object, so this throws an error. What
I would normally do in this case is cast the object to the class I'm
expecting, but unfortunately Array(a) doesn't leave a unchanged, as it would
with most classes, but returns [a] - the array gets nested.

Anyone have a suggestion as to how I can get around this? The only thing I
can think of is Array(a)[0], which seems a bit stupid.

(I'm in AS2)

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Backend compiled Java or scripted PHP?

2007-07-20 Thread Stan Vassilev | FM
Answering about where you draw the line: usually nowhere. The technology 
you'll use is decided upon your own skills/experience/existing assets and 
setup you have on the server.


Key is interoperability. You can actually have a mixed PHP/Java solutions, 
and write C++ extensions for PHP.


If it works, and the performance/features are sufficient for your task at 
hand, then it works, there are no other conditions and no hidden obstacles. 
All of these technologies scale with the proper architecture in place.



- the dividing line seems to be scale. (How big is the project, how much
traffic will it generate, how computationally expensive and or complex).
There are many situations that don't affect the scalability or
maintainability of a site, scripting is too useful a tool not to have
available. That being said, while more complex things can and are built 
with

PHP, there's a point at which the advantages of Java overcome it's
disadvantages (taming tomcat, longer development times, etc...).  The big
question is where do  you draw the line?

Weldon 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Casting to Array

2007-07-20 Thread David Ngo
Try this:

if (a instanceof Array) {
var n:Array = a.slice();
doMyArrayFunction(n);
}


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Danny
Kodicek
Sent: Friday, July 20, 2007 9:04 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Casting to Array

I'm trying to do something like this:

if (a instanceof Array) {
doMyArrayFunction(a)
}

the doMyArrayFunction expects an Array object, so this throws an error. What
I would normally do in this case is cast the object to the class I'm
expecting, but unfortunately Array(a) doesn't leave a unchanged, as it would
with most classes, but returns [a] - the array gets nested.

Anyone have a suggestion as to how I can get around this? The only thing I
can think of is Array(a)[0], which seems a bit stupid.

(I'm in AS2)

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Casting to Array

2007-07-20 Thread Jim Kremens

As it's AS2, you might think about making it so doMyArrayFunction will
not expect an array, but will take anything:

class ArrayTest {

public function ArrayTest(a) {
trace(a[0]);
}

}



new ArrayTest([1,2,3,4]);

works fine.


Jim Kremens
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Incredible Crashing Flash

2007-07-20 Thread Cedric Muller

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


Re: [Flashcoders] Incredible Crashing Flash

2007-07-20 Thread laurent untereiner
Try to make a new empty fla and copy paste all the layers/frame

Maybe...

--
Laurent Untereiner

 skype : laurentuntereiner
 aim   : luntereiner
 icq   : 294429730
 msn   : [EMAIL PROTECTED]

 http://www.untereiner.com 

mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116

Selon Jobe Makar [EMAIL PROTECTED]:

 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] Casting to Array

2007-07-20 Thread Danny Kodicek
  As it's AS2, you might think about making it so 
 doMyArrayFunction will not expect an array, but will take anything:
 
 class ArrayTest {
   
   public function ArrayTest(a) {
   trace(a[0]);
   }
   
 }
 
 
 
 new ArrayTest([1,2,3,4]);
 
 works fine.

Yes, but I'm trying to do things 'properly' :)

I've been quite enjoying the discipline of strong typing and it seems a
shame to lose it for a little technicality. I like David's suggestion, which
I'd imagine works pretty fast.

Thanks
Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] Incredible Crashing Flash

2007-07-20 Thread Zeh Fernando
Funny, because the exact same thing happens on a PC, and it's been like 
this since forever: if you are testing on the IDE, your movie do a 
request, the server takes too long to respond, and you close the preview 
movie before the server replies, Flash crashes when the response finally 
arrives. I've seen this happening with normal queries, webservices, and 
socket queries.


The crash doesn't happen on publishing, however; just after the preview 
is closed.



Zeh

Cedric Muller wrote:

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


Re: [Flashcoders] Incredible Crashing Flash

2007-07-20 Thread ben gomez farrell
I haven't played around with my copy of CS3 so much yet, but one thing 
i've noticed on 8 is that if you have a large file and go overboard on 
using weird paintbrush strokes for your art (as in, when you select the 
stroke size for your shape you can select a bunch of different styles 
for the stroke), Flash can reay hang.

ben

Cedric Muller wrote:

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


Re: [Flashcoders] Skewing text

2007-07-20 Thread Jake Prime

OK I have worked out how to divide up the space into triangles to
create perspective:

http://www.rjprime.co.uk/perspective.html

However now I cannot for the life of me get the right matrix to use in
the beginBitmapFill function to correctly map a texture. Can anyone
help me with being able to map a specific triangle from a bitmap to a
specific triangle area on screen. I have calculated the points for
both.

Thanks
Jake

On 20/07/07, Jake Prime [EMAIL PROTECTED] wrote:

Hi

Returning to this now as it seems simple distortion is not
satisfactory and I do need to have real perspective. I have played a
bit with Papervision and it's not too hard to render text with
perspective. However the designs that I am working to require quite
precise placement and orientation of the text. Using the distort class
I could simply specify the 4 points of the plane in 2D space on the
stage and render the text like that, but this is not the way
Papervision works.

My question is, is it possible to render a plane in true perspective
just by specifying the 4 points in 2D on the stage? In Zeh's diagram
(http://hosted.zeh.com.br/misc/perspective.png) he shows that you
can't split the line 50-50 to get the 3D halfway point, is there a way
of working out what the proportion would be? If so I want to ammend
the distortImage class to take this into account.

jake

On 03/07/07, Jake Prime [EMAIL PROTECTED] wrote:
 Hi JC

 Yes as Zeh has illustrated the Sandy distortImage class distorts, and does
 not create perspective. For my purposes this is fine as the perspective is
 not too pronounced (certainly not disappearing off into the horizon).

 Jake.


 On 03/07/07, Zeh Fernando [EMAIL PROTECTED] wrote:
   Thanks for the replies, I found the Sandy distortImage class to be
   the easiest to implement.
  
  
 
http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html
 
  Yes, but again - be careful. Skewing/distortion is not perspective. If
  you do that with text you won't get the same result as a star-wars-like
  text, as the glyphs that are farther from the viewer won't be vertically
  scaled as they should.
 
  To explain it visually,
 
  http://hosted.zeh.com.br/misc/perspective.png
 
 
 
  Zeh
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 




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

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


Re: [Flashcoders] Casting to Array

2007-07-20 Thread Ian Thomas

Danny,
 The shortest way I found of doing it is:

var b:Array={arr:a}.arr;

i.e. make it a property of an object, then unbox it again.

Silly, but works syntactically. I'd love to see a shorter way.

In AS3, Array(x) as an array creator still exists - you get around it
using the new 'as' operator:

var b:Array=a as Array;

Ian


On 7/20/07, Danny Kodicek [EMAIL PROTECTED] wrote:

I'm trying to do something like this:

if (a instanceof Array) {
doMyArrayFunction(a)
}

the doMyArrayFunction expects an Array object, so this throws an error. What
I would normally do in this case is cast the object to the class I'm
expecting, but unfortunately Array(a) doesn't leave a unchanged, as it would
with most classes, but returns [a] - the array gets nested.

Anyone have a suggestion as to how I can get around this? The only thing I
can think of is Array(a)[0], which seems a bit stupid.

(I'm in AS2)

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] How can you measure performance of your movie?

2007-07-20 Thread Rick Schmitty

I've been tasked with optimizing/tuning a flash movie to try and get
it to run better on low end machines (100% cpu spikes, large memory,
etc)

I see many areas that I can improve the swf, but how do I quantify
what I have improved to my boss?

Is there any standard practice for measuring how fast your swf is
running?  Look at the FPS?

Is there a program that records cpu/memory use as you run through a flash movie?

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


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: flashcoders@chattyfig.figleaf.com
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] AS2: LocalConnection as broadcaster?

2007-07-20 Thread David Cohn

Ivan,

Using a SharedObject seems like a workable solution-- thanks for that  
take.


Although it still seems to me a grave lack in the LocalConnection  
implementation.


--Dave



On Jul 20, 2007, at 1:45 AM, Ivan Dembicki wrote:


private

Hello David,

I'm not sure is you received my mail to flashcoders list:
~


Hello David,


this is not final decision, just to show the idea.

== root =

import as.Test;
new Test();


== as.Test.as ===
import as.MultiLocalConnection;

class as.Test {

   private var test1_lc : MultiLocalConnection;
   private var test2_lc : MultiLocalConnection;
   private var test3_lc : MultiLocalConnection;
   private var test4_lc : MultiLocalConnection;

   public function Test() {
   this.init();
   }

   private function init() : Void {

   this.test1_lc = new MultiLocalConnection();
   this.test2_lc = new MultiLocalConnection();
   this.test3_lc = new MultiLocalConnection();
   this.test4_lc = new MultiLocalConnection();

   this.test1_lc.onTest = function () {
   trace(test1_lc.onTest(+arguments+));
   };
   this.test2_lc.onTest = function () {
   trace(test2_lc.onTest(+arguments+));
   };

   this.test1_lc.connect(test);
   this.test2_lc.connect(test);

   this.test3_lc.send(test, onTest, [test, 1,
third param]);
   this.test4_lc.send(test, onTest, [test, 2,
third param]); // this send isn't work - thie same frame

   Mouse.addListener(this);
   }

   private function onMouseUp ():Void {
   this.test4_lc.send(test, onTest, [test, 2,
third param]); // this send isn't work
   }

}

== class as.MultiLocalConnection 
import mx.utils.Delegate;

dynamic class as.MultiLocalConnection {

   private var local_connection:LocalConnection;
   private var uid:String;

   public function MultiLocalConnection(Void) {
   this.init();
   }

   private function init() : Void {
   this.local_connection = new LocalConnection();
   this.local_connection[onMessage]  =
Delegate.create(this, this.onMessage);
   this.uid = new Date().getTime()+_+random(1);
   }

   public function connect (connectionName:String):Boolean {
   this.addMultiListener(connectionName);
   var connect_to:String = connectionName+this.uid;
   return this.local_connection.connect(connect_to);
   }

   public function send (connectionName:String,
methodName:String, args:Object):Boolean {
   var listeners_so:SharedObject =
SharedObject.getLocal(connectionName);
   var listeners_str:String = listeners_so.data 
[connectionName];

   var listeners:Array = listeners_str.split(|);
   // remove all connections
   listeners_so.data[connectionName] = ;

   args = [connectionName, methodName, args];
   args = args.toString();
   for (var i:Number=0, len:Number=listeners.length;  
ilen; i++) {

   var listener_uid:String = listeners[i];
   if (listener_uid.length) {
   var connection_name:String =
connectionName+listener_uid;

this.local_connection.send(connection_name, onMessage, args);
   }
   }
   return true;
   }

   private function onMessage (args:String):Void {
   var args_array:Array = args.split(,);
   var connectionName:String = +args_array.shift();
   var methodName:String = +args_array.shift();

   // reset if is available
   this.addMultiListener(connectionName);

   var method:Function = this[methodName];
   if (!method) {
   return;
   }
   method.call(this, args_array.join(,));
   }

   private function addMultiListener  
(connectionName:String):Void {

   var listeners_so:SharedObject =
SharedObject.getLocal(connectionName);
   var listeners_str:String = listeners_so.data 
[connectionName];

   var listeners:Array = listeners_str.split(|);
   if (!listeners.length) {
   listeners = [];
   }
   for (var i:Number=0, len:Number=listeners.length;  
ilen; i++) {

   var listener_uid:String = listeners[i];
   if (listener_uid == this.uid) {
   listeners.splice(i, 1);
   i--;
   }
   }
   

Re: [Flashcoders] Incredible Crashing Flash

2007-07-20 Thread Kurt Dommermuth


Hi Jobe,

I had a problem recently where I used a lot of bitmaps (developed on a 
PC).  The presentation crashed consistently on a couple of macs, not any 
PCs though.  In particular it seemed to be the new powerbooks.  Oddly 
enough though the cheesegraters with the new intel chip played it fine.


I turned out to be 1 tiny bitmap that must have been corrupt.  I recreated 
it in photoshop and replaced it and all was well.


it was a bitch to find.  but the clue was that it crashed at the same point 
in the timeline every time.


maybe this helps.

Kurt

At 11:54 AM 07/20/07, Jobe Makar wrote:


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: flashcoders@chattyfig.figleaf.com
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



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: RE: [Flashcoders] Casting to Array

2007-07-20 Thread John Mark Hawley
David's suggestion doesn't actually cast to array, though -- it makes a shallow 
copy of the array and returns it. This will lead you to many tricky bugs.

If you really *really* need type checking on arrays, make a List class to wrap 
arrays and only use that.


 
 From: Danny Kodicek [EMAIL PROTECTED]
 Date: 2007/07/20 Fri AM 10:07:47 CDT
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Casting to Array
 
   As it's AS2, you might think about making it so 
  doMyArrayFunction will not expect an array, but will take anything:
  
  class ArrayTest {
  
  public function ArrayTest(a) {
  trace(a[0]);
  }
  
  }
  
  
  
  new ArrayTest([1,2,3,4]);
  
  works fine.
 
 Yes, but I'm trying to do things 'properly' :)
 
 I've been quite enjoying the discipline of strong typing and it seems a
 shame to lose it for a little technicality. I like David's suggestion, which
 I'd imagine works pretty fast.
 
 Thanks
 Danny
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 

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

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

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


Re: [Flashcoders] Casting to Array

2007-07-20 Thread Hans Wichman

Hi Danny,

its an annoying issue and a subtle difference between the flash ide and
mtasc as well.
When compiling in mtasc, Array(myObject) becomes a regular cast and not the
freakish thing its in the Flash IDE:).

greetz
JC


On 7/20/07, Steven Sacks [EMAIL PROTECTED] wrote:


Danny,

I'm still not entirely clear on what you're attempting to do.  Can you
show more code to give us a bigger picture?



Danny Kodicek wrote:
 I'm trying to do something like this:

 if (a instanceof Array) {
 doMyArrayFunction(a)
 }

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

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


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

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


RE: RE: [Flashcoders] Casting to Array

2007-07-20 Thread David Ngo
That is correct. If you need the reference to the actual array, then I would
consider using a class to help cast your data as suggested by others. But if
you just need the data and not the actual reference (meaning you don't need
to persist that data anywhere else), then my solution should be fine.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Mark
Hawley
Sent: Friday, July 20, 2007 1:44 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: RE: [Flashcoders] Casting to Array

David's suggestion doesn't actually cast to array, though -- it makes a
shallow copy of the array and returns it. This will lead you to many tricky
bugs.

If you really *really* need type checking on arrays, make a List class to
wrap arrays and only use that.


 
 From: Danny Kodicek [EMAIL PROTECTED]
 Date: 2007/07/20 Fri AM 10:07:47 CDT
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Casting to Array
 
   As it's AS2, you might think about making it so 
  doMyArrayFunction will not expect an array, but will take anything:
  
  class ArrayTest {
  
  public function ArrayTest(a) {
  trace(a[0]);
  }
  
  }
  
  
  
  new ArrayTest([1,2,3,4]);
  
  works fine.
 
 Yes, but I'm trying to do things 'properly' :)
 
 I've been quite enjoying the discipline of strong typing and it seems a
 shame to lose it for a little technicality. I like David's suggestion,
which
 I'd imagine works pretty fast.
 
 Thanks
 Danny
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 

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

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

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

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

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


Re: [Flashcoders] 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: flashcoders@chattyfig.figleaf.com
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] textures

2007-07-20 Thread Jesse Graupmann
Cryzto,
I think this gets you one step closer.


Bump Mapping in Flash
http://drawk.wordpress.com/2007/04/18/bump-mapping-in-flash/

found via:
3D Materials, Texturing and Mapping in AS3 and the Limits of Flash and
Software Rendering
http://drawk.wordpress.com/2007/07/07/3d-materials-texturing-and-mapping-in-
as3-and-the-limits-of-flash-and-software-rendering/

-

Flash 8 Example : 3d BumpMapping using Filters. (source included)
http://www.unitzeroone.com/blog/flash_examples/flash_8_example_3d_bumpmappin
g_using_filters_source_included.html




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cristo @
Cryzto
Sent: Tuesday, July 17, 2007 6:58 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] textures

If I've got a plain vector-rectangle (with radial-color) and want to give it
a texture (-fill) per actionscript. how can I achieve that? Is it even
possible?

Thnx 4 answering.
Cryzto

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

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