Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Eric E. Dolecki
I usually take the private with getters and setters approach - I can check
the bounds of the setting of the var. I am thinking more of designers here
taking the code and using it than I am other developers. Although I have
many times set up public vars that I tweak from outside the class(es) too.
Eric

On Wed, Dec 10, 2008 at 5:14 AM, Ian Thomas [EMAIL PROTECTED] wrote:

 I think we're saying the same thing there. :-)

 Such code amending is needed in languages like Java, because you can't
 go from a property to a getter/setter _without_ changing the
 interface. Which is why the Java getters and setters are used almost
 everywhere - like I said, it's programming in self-defense.

 Ian

 On Wed, Dec 10, 2008 at 10:05 AM, allandt bik-elliott
 (thefieldcomic.com) [EMAIL PROTECTED] wrote:
  any code amending outside the class can be avoided if you take the
  (self-imposed) rule that internal/private class vars start with a leading
  underscore but public ones don't - that way if you need to create getters
  and setters, you just create the class var with the _ and the get/set
  without
 
  On Wed, Dec 10, 2008 at 9:43 AM, Ian Thomas [EMAIL PROTECTED] wrote:
 
  In the programming languages used in the old CS textbooks, you didn't
  have the option to switch from a public property to a getter/setter
  pair without breaking the interface.
 
  Ian
 
  On Wed, Dec 10, 2008 at 8:23 AM, Steven Sacks [EMAIL PROTECTED]
 
  wrote:
   Keyword: Old.
  
   Hans Wichman wrote:
  
   ps we're probably not the first ones discussing this old subject, has
 n1
   found some good sources/references?
   Most of the old CS textbooks sentence you to hell for using public
   variables
   so let's not refer to those ;)
  
   ___
   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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Eric E. Dolecki
Since I like FlashDevelop, with a keyboard shortcut and a click I create
setters and getters.

On Tue, Dec 9, 2008 at 9:02 AM, Hans Wichman [EMAIL PROTECTED]
 wrote:

 Hi,

 I'm still in the middle. I used to use getMyVariable setMyVariable for
 everything, now I usually use public variables for entity/value objects. I
 still hate not being able to see whether something is a variable or
 function, so for everything else than very simple objects I prefer
 setMyVariable getMyVariable instead of get set. I find it way easier to
 read
 back my code that way, so it depends on whether I know whether I am going
 to
 have to read it back or not ;).

 greetz
 JC




 On Tue, Dec 9, 2008 at 12:28 PM, allandt bik-elliott (thefieldcomic.com) 
 [EMAIL PROTECTED] wrote:

  i would have to agree - i use the built in ones and can't see any benefit
  from using bespoke ones apart from maybe being able to use the variable
  name
  i want rather than adding extra characters to it (although i use a
 leading
  underscore for class variables anyway)
 
  On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas [EMAIL PROTECTED] wrote:
 
   I use Actionscript getters and setters.
  
   Because I can start off using ordinary public properties, and change
   them into getters and setters if I need more control/notification
   without changing any of the code that _uses_ my class.
  
   In order to achieve that otherwise, I'd have to make a getValue() and
   setValue() for every single public property (as is done in Java). And
   a fair few of those would simply be this._property=value (setter) or
   return this._property (getter) i.e. essentially just placeholder
   methods that bloat the code.
  
   The beauty of the actionscript get and set functions is that they are
   indistinguishable from public properties from the outside of the
   class. It's a huge improvement over Java.
  
   Ian
  
   On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott
   (thefieldcomic.com) [EMAIL PROTECTED] wrote:
hi guys
   
quick poll - Do you use the actionscript getter/setter functions or
 do
   you
make your own, and why.
   
I've noticed with a lot of the public domain code (like SWFAddress,
 for
instance) that you see a lot of 'public function getVariable()' type
   getters
instead of using the flash 'public function get variable()' adobe
recommended getters(and setters) and i was wondering why people do
  this?
   
thanks
a
___
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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Eric E. Dolecki
select the variable, ctrl-shift-1 ;)
On Tue, Dec 9, 2008 at 9:26 AM, Cor [EMAIL PROTECTED] wrote:

 Yes I prefer FD also, but what is the shortcut for getters and setters??

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Eric E. Dolecki
 Sent: dinsdag 9 december 2008 15:16
 To: Flash Coders List
 Subject: Re: [Flashcoders] use get / set functions or make your own

 Since I like FlashDevelop, with a keyboard shortcut and a click I create
 setters and getters.

 On Tue, Dec 9, 2008 at 9:02 AM, Hans Wichman 
 [EMAIL PROTECTED]
  wrote:

  Hi,
 
  I'm still in the middle. I used to use getMyVariable setMyVariable for
  everything, now I usually use public variables for entity/value objects.
 I
  still hate not being able to see whether something is a variable or
  function, so for everything else than very simple objects I prefer
  setMyVariable getMyVariable instead of get set. I find it way easier to
  read
  back my code that way, so it depends on whether I know whether I am going
  to
  have to read it back or not ;).
 
  greetz
  JC
 
 
 
 
  On Tue, Dec 9, 2008 at 12:28 PM, allandt bik-elliott (thefieldcomic.com)
 
  [EMAIL PROTECTED] wrote:
 
   i would have to agree - i use the built in ones and can't see any
 benefit
   from using bespoke ones apart from maybe being able to use the variable
   name
   i want rather than adding extra characters to it (although i use a
  leading
   underscore for class variables anyway)
  
   On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas [EMAIL PROTECTED] wrote:
  
I use Actionscript getters and setters.
   
Because I can start off using ordinary public properties, and change
them into getters and setters if I need more control/notification
without changing any of the code that _uses_ my class.
   
In order to achieve that otherwise, I'd have to make a getValue() and
setValue() for every single public property (as is done in Java). And
a fair few of those would simply be this._property=value (setter) or
return this._property (getter) i.e. essentially just placeholder
methods that bloat the code.
   
The beauty of the actionscript get and set functions is that they are
indistinguishable from public properties from the outside of the
class. It's a huge improvement over Java.
   
Ian
   
On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott
(thefieldcomic.com) [EMAIL PROTECTED] wrote:
 hi guys

 quick poll - Do you use the actionscript getter/setter functions or
  do
you
 make your own, and why.

 I've noticed with a lot of the public domain code (like SWFAddress,
  for
 instance) that you see a lot of 'public function getVariable()'
 type
getters
 instead of using the flash 'public function get variable()' adobe
 recommended getters(and setters) and i was wondering why people do
   this?

 thanks
 a
 ___
 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
 



 --
 http://ericd.net
 Interactive design and development
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.9.15/1839 - Release Date: 9-12-2008
 9:59


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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] JavaFX released

2008-12-06 Thread Eric E. Dolecki
On my Mac in Firefox when I scroll the page, that player UI flickers on and
off. Pretty lame.

On Sat, Dec 6, 2008 at 1:15 PM, Jim Robson [EMAIL PROTECTED] wrote:

 I checked out the drag-able component sample on javafx.com and it
 didn't work. If you're interested in the details, I put them in a
 comment on Sten Andersen's blog here:

 http://blogs.citytechinc.com/sanderson/?p=49#comment-714

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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Different class instances with socket using same port number?

2008-12-04 Thread Eric E. Dolecki
Wondering if it's possible to have different classes open sockets to the
same port number? Going to throw stuff in an if/else and depending on a
variable, send to the socket with different values. They all currently open
to the same port number.
ie. inside each of the class constructors being used:

_socket = new Socket( localhost, 5751 );

-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Different class instances with socket using same portnumber?

2008-12-04 Thread Eric E. Dolecki
I have class const values that i was calling up and passing through... so it
seemed easier to make an instance of the class, which connects to a socket
(all the same), and then based on logic, pull a const out of the class and
send it through.

On Thu, Dec 4, 2008 at 10:41 AM, Eamonn Faherty [EMAIL PROTECTED]wrote:

 I don't think that is possible but even if it is, it doesn't sound that
 graceful.  Why not have a single SocketProxy or SocketWrapper class with a
 single socket connection.  You can pass that as a reference to two or more
 classes.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Eric E. Dolecki
 Sent: 04 December 2008 15:24
 To: Flash Coders List
 Subject: [Flashcoders] Different class instances with socket using same
 portnumber?

 Wondering if it's possible to have different classes open sockets to the
 same port number? Going to throw stuff in an if/else and depending on a
 variable, send to the socket with different values. They all currently open
 to the same port number.
 ie. inside each of the class constructors being used:

 _socket = new Socket( localhost, 5751 );

 --
 http://ericd.net
 Interactive design and development
 ___
 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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Different class instances with socket using same portnumber?

2008-12-04 Thread Eric E. Dolecki
Actually, thats the best thing for me to do... I'll nail that up.

On Thu, Dec 4, 2008 at 10:41 AM, Eamonn Faherty [EMAIL PROTECTED]wrote:

 I don't think that is possible but even if it is, it doesn't sound that
 graceful.  Why not have a single SocketProxy or SocketWrapper class with a
 single socket connection.  You can pass that as a reference to two or more
 classes.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Eric E. Dolecki
 Sent: 04 December 2008 15:24
 To: Flash Coders List
 Subject: [Flashcoders] Different class instances with socket using same
 portnumber?

 Wondering if it's possible to have different classes open sockets to the
 same port number? Going to throw stuff in an if/else and depending on a
 variable, send to the socket with different values. They all currently open
 to the same port number.
 ie. inside each of the class constructors being used:

 _socket = new Socket( localhost, 5751 );

 --
 http://ericd.net
 Interactive design and development
 ___
 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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] structuring singletons in AS3

2008-12-01 Thread Eric E. Dolecki
You could always use a document class and have that suck in a main class 
kick it off using the document class.

On Mon, Dec 1, 2008 at 9:46 AM, Mendelsohn, Michael 
[EMAIL PROTECTED] wrote:

 Hi list...

 Slowly but surely, I'm moving from AS2 to AS3.  In my AS2 projects, I
 usually create a singleton on frame 1 of the _root and everything takes
 off from there.

 What's the best practice of doing that in AS3, where I have to have a
 main class that seems to start everything.  I can't imagine how a
 singleton controlling all logic should extend a Sprite class.  Is it OK
 to still instance a singleton on the root in frame 1 even with a
 document class automatically instancing too?

 Thanks,
 - Michael M.

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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] can Flex classes be used within (Flash CS3) along with ActionScript?

2008-11-26 Thread Eric E. Dolecki
Using a SWC, yes. But it's nasty work IMO. Use Flex Builder if you have it.

On Wed, Nov 26, 2008 at 3:47 PM, BOYD SPEER [EMAIL PROTECTED] wrote:

 can Flex classes be imported and used within (Flash CS3) along with
 ActionScript?

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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] can Flex classes be used within (Flash CS3) along with ActionScript?

2008-11-26 Thread Eric E. Dolecki
Oops - I didn't see that CS3 part. CS4 makes it super easy to link to a SWC
to use classes in it, but CS3 is even nastier hack land.

On Wed, Nov 26, 2008 at 4:06 PM, Anthony Pace [EMAIL PROTECTED]wrote:

 The editor sucks, still.  We need something like Aptana for AS3.

 Don't use the flash CS3 IDE if you can avoid; however, it is pretty good
 for animations; yet, if you want to do animations, go to cs4... bones and IK
 and bears oh my.


 Eric E. Dolecki wrote:

 Using a SWC, yes. But it's nasty work IMO. Use Flex Builder if you have
 it.

 On Wed, Nov 26, 2008 at 3:47 PM, BOYD SPEER [EMAIL PROTECTED] wrote:



 can Flex classes be imported and used within (Flash CS3) along with
 ActionScript?

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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] snap to guide AS code?

2008-11-24 Thread Eric E. Dolecki
You'll need to think of what to do at a corner intersection... a corner
case, but you may need to weight one rule over another.

On Mon, Nov 24, 2008 at 3:17 PM, Rich Rodecker [EMAIL PROTECTED] wrote:

 kris - no meant snapping ti a line created in the swf.  Same idea as the
 IDE, but in a swf.
 hans - yeah something like that. I was hoping someone had some code flushed
 out already :)







 On Sun, Nov 23, 2008 at 1:21 AM, Hans Wichman 
 [EMAIL PROTECTED] wrote:

  Hi,
 
  if you iterate through the guides and you locate the one with the closest
  distance to your object, you got the closest guide.
  Now if your mouse/object is closer than 'x' pixels to the guide, set the
  object x to the guide x, otherwise set the object x to the mouse x.
 
  Is that what you are looking for?
 
  greetz
  JC
 
  On Sun, Nov 23, 2008 at 9:34 AM, kris range [EMAIL PROTECTED] wrote:
 
   Are you talking about snapping to a guide you have setup in the Flash
  IDE?
  
   As far as I know you can't snap to that through code. You could easily
   take a number though ( from your mouse for ex ) and use the Math class
   to round it to a pixel or to the nearest x pixel if you knew where
   your guide was already placed. You could as well as do some testing if
   you wanted to snap to an invisible movieclip or sprite that was to be
   used as a sort of guide.
  
   On Sat, Nov 22, 2008 at 8:09 AM, Rich Rodecker [EMAIL PROTECTED]
   wrote:
no, i mean snap to a guide while your dragging an object.
   
On Sat, Nov 22, 2008 at 7:30 AM, Piers Cowburn [EMAIL PROTECTED]
   wrote:
   
You can do a bezier tween with something like TweenMax http://
blog.greensock.com/tweenmaxas3/ , is that what you're after?
   
Piers
   
   
   
   
On 22 Nov 2008, at 15:03, Rich Rodecker wrote:
   
 I'm looking for some code that can pull of 'snap to guide' in
actionscript.
 I've found some snap to grid code, but all of them are in AS2, so
  I'm
wondering if there might be a better way to do it in AS 3 as well?
___
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
   
  
  
  
   --
   Kris Range
___
   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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How much would you charge?

2008-11-14 Thread Eric E. Dolecki
Not sure thats really ripping them off considering they probably don't know
how to use the thing even if they bought it themselves.

On Fri, Nov 14, 2008 at 8:59 AM, Jon Bradley [EMAIL PROTECTED]wrote:


 On Nov 14, 2008, at 2:28 AM, Carl Welch wrote:

  Good point. I'd recommend using SlideShowPro. It's cheap ($29), looks
 slick, and you'll be done in no time - your client will be none the wiser
 and you'll be $350 richer.

 http://slideshowpro.net/



 At least there will be an email post in the public domain that shows
 exactly how not to rip off a client.

 :P

 - jb

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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How much would you charge?

2008-11-14 Thread Eric E. Dolecki
You could add an AIR panel so they could edit the info in the XML themselves
(in a way that was approachable), and you could make a ton more $ in my
opinion. If you have the time that is.

On Fri, Nov 14, 2008 at 9:38 AM, Matt S. [EMAIL PROTECTED] wrote:

 Yeah, I would add that $350 to provide a working, customized,
 updateable photo gallery really isnt that much once you factor in a
 few hours work, set up time, explaining how to use, dealing with the
 inevitable HELP! emails a week later, etc. etc. especially if the
 client is technically un-savvy enough so that even if you gave them
 the link to SlideShowPro they wouldnt know what to do with it.

 And Dr. Ache suggested 290 Euro, which is like, what, on the current
 exchange rate, $50,000.00 ?? :P

 .m

 On Fri, Nov 14, 2008 at 9:30 AM, Eric E. Dolecki [EMAIL PROTECTED]
 wrote:
  Not sure thats really ripping them off considering they probably don't
 know
  how to use the thing even if they bought it themselves.
 
  On Fri, Nov 14, 2008 at 8:59 AM, Jon Bradley [EMAIL PROTECTED]
 wrote:
 
 
  On Nov 14, 2008, at 2:28 AM, Carl Welch wrote:
 
   Good point. I'd recommend using SlideShowPro. It's cheap ($29), looks
  slick, and you'll be done in no time - your client will be none the
 wiser
  and you'll be $350 richer.
 
  http://slideshowpro.net/
 
 
 
  At least there will be an email post in the public domain that shows
  exactly how not to rip off a client.
 
  :P
 
  - jb
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
  --
  http://ericd.net
  Interactive design and development
  ___
  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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Drawing BitmapData - thinner lines?

2008-11-13 Thread Eric E. Dolecki
that lessrain example is crazy good. Not sure about the thickness thing -
are you drawing the rule with a thickness of 0 and not 1?

On Thu, Nov 13, 2008 at 9:07 AM, Sander Schuurman 
[EMAIL PROTECTED] wrote:

 Hi cool list,

 I am trying out some dynamic drawing to bitmapData. It works well, only my
 drawn lines are a bit chunky and thick. ( see
 http://img227.imageshack.us/img227/118/exampleyu5.jpg )
 How can I make the lines a bit thinner and more 'organic'?

 I know it's possible... I checked out some other drawing examples on:
 http://www.lessrain.com/projects/luis/algorithm/liverender/
 http://blog.andre-michelle.com/2008/fur-like-renderings/#comments

 I'm copying a drawn line from the library by the way, and then draw it to a
 bitmapdata (bitmap smoothing = true)

 thnx in advance!


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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Easing a selection

2008-11-06 Thread Eric E. Dolecki
I was thinking about this the other day... easing of a selection of items in
a list.
Now, one could move a selector with a mouse, and then kind of throw it and
then check the onUpdate of it's single ease (use speed as the determination
for how far it should travel) to check if it's within the bounds of an item,
and highlight that item, deselecting the previous item.

That approach works and is probably the easiest.

But what if you wanted to use an index of items  use an easing approach (or
something that looked like it) where the items themselves had a selector
clip within them... so you wouldn't be moving a selector item under them
all, but affecting them in order with easing. What might be a good approach
for something like that? Perhaps a timer with a reverse damping interval?
What might that look like as a good approach.

-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2 - Code not working in FP10

2008-11-06 Thread Eric E. Dolecki
I opened that up at work and was presented was some chicks ass pulling jeans
up on it. Someone walking by thought it was humorous.

On Thu, Nov 6, 2008 at 10:26 AM, FlashDev [EMAIL PROTECTED] wrote:

 yeah view it hear...

 www.maryjanefashion.com/index.php

 SJM
   - Original Message -
  From: Charles Parcell
  To: Flash Coders List
   Sent: Thursday, November 06, 2008 2:26 PM
  Subject: Re: [Flashcoders] AS2 - Code not working in FP10


  Is there a live link that shows this and we can test our FP versions on
 it?

  Charles P.


  On Thu, Nov 6, 2008 at 5:26 AM, FlashDev [EMAIL PROTECTED] wrote:

   Yeah its just wired how it works in FP9 and not FP10 and I was wondering
 if
   it was this code or if it could be something else!?
 - Original Message -
From: sebastian
To: Flash Coders List
Sent: Wednesday, November 05, 2008 10:23 PM
Subject: Re: [Flashcoders] AS2 - Code not working in FP10
  
  
Hi,
  
I'm sure someone else can give a reason, cause I wouldn't know; but
short of that, you could use a tween engine to center it. AS2 has
several good tween engines available.
  
Seb.
  
FlashDev wrote:
 Hi guys, ive got a bit fo code that works fine in flash player 9 but
 in
   10 it completely messes up!

 Its suppose to centre an image, any ideas why it no longer works?

 center_content.onEnterFrame = function() {
   // CENTER Y
   contentYTarg = Math.round((Stage.height -
 center_content._height)/2);
   contentYDist = contentYTarg - center_content._y;
   center_content._y += contentYDist/contentEase;
   if (contentYDist  0) {
center_content._y = Math.ceil(center_content._y);
   }else{
center_content._y = Math.floor(center_content._y);
   }
   if (Math.abs(contentYDist)  1) {
center_content._y = contentYTarg;
   }
   // CENTER X
   contentXTarg = Math.round((Stage.width - center_content._width)/2);
   contentXDist = contentXTarg - center_content._x;
   center_content._x += contentXDist/contentEase;
   if (contentXDist  0) {
center_content._x = Math.ceil(center_content._x);
   }else{
center_content._x = Math.floor(center_content._x);
   }
   if (Math.abs(contentXDist)  1) {
center_content._x = contentXTarg;
   }
   // WHEN CENTERING IS COMPLETE...
   if (contentYDist == 0  contentXDist == 0) {
delete center_content.onEnterFrame
   }
  }
 ___
 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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Easing a selection

2008-11-06 Thread Eric E. Dolecki
I am after tweening events more than the actual position of a selector.
ie. class.increment(); short pause class.increment(); slightly longer
pause class.increment(); even longer pause... until stop

So I would be providing a UI of selected items via visual easing.

I think I have this nailed down... just wanted to get some other ideas on
how best to approach it.

On Thu, Nov 6, 2008 at 4:38 PM, sebastian [EMAIL PROTECTED] wrote:

 Erm, I am not sure I understand; so let me paraphrase:

 You want to scroll one area based on the position of a mouse in another,
 right?

 If so, just measure the bounds [x/y difference] from some center range and
 apply a Tween to the area you want to scroll.

 BTW: I would generally always recommend against using timers to apply
 movements; I've seen far too much code written that uses timers incorrectly
 and it's a real pain in the *** Stick to simple tween calls; like:
 TweenLite.

 With kind,

 Sebastian.


 Eric E. Dolecki wrote:

 I was thinking about this the other day... easing of a selection of items
 in
 a list.
 Now, one could move a selector with a mouse, and then kind of throw it and
 then check the onUpdate of it's single ease (use speed as the
 determination
 for how far it should travel) to check if it's within the bounds of an
 item,
 and highlight that item, deselecting the previous item.

 That approach works and is probably the easiest.

 But what if you wanted to use an index of items  use an easing approach
 (or
 something that looked like it) where the items themselves had a selector
 clip within them... so you wouldn't be moving a selector item under them
 all, but affecting them in order with easing. What might be a good
 approach
 for something like that? Perhaps a timer with a reverse damping interval?
 What might that look like as a good approach.

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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Easing a selection

2008-11-06 Thread Eric E. Dolecki
I use TweenLite daily, but I am not tweening the properties on a
DisplayObject, I am easing the call of methods over time.
I believe that a timer, setting the delay after each call, and based on a
number of times to call might serve me well.

On Thu, Nov 6, 2008 at 5:44 PM, sebastian [EMAIL PROTECTED] wrote:

 Oh do you mean easing? So as it approaches its destination it moves slower
 and slower?

 If so, there are many packages that already do this for you, so no need to
 reinvent the wheel. All you need to do is call it.

 One such package is TweenLite:

 http://blog.greensock.com/tweenliteas3/

 Just set the easing equation to what ever curve you require, there is even
 a little flash app. that lets you pick parameters to copy-paste.

 Peace,

 Seb.


 Eric E. Dolecki wrote:

 I am after tweening events more than the actual position of a selector.
 ie. class.increment(); short pause class.increment(); slightly longer
 pause class.increment(); even longer pause... until stop

 So I would be providing a UI of selected items via visual easing.

 I think I have this nailed down... just wanted to get some other ideas on
 how best to approach it.

 On Thu, Nov 6, 2008 at 4:38 PM, sebastian [EMAIL PROTECTED] wrote:

  Erm, I am not sure I understand; so let me paraphrase:

 You want to scroll one area based on the position of a mouse in another,
 right?

 If so, just measure the bounds [x/y difference] from some center range
 and
 apply a Tween to the area you want to scroll.

 BTW: I would generally always recommend against using timers to apply
 movements; I've seen far too much code written that uses timers
 incorrectly
 and it's a real pain in the *** Stick to simple tween calls; like:
 TweenLite.

 With kind,

 Sebastian.


 Eric E. Dolecki wrote:

  I was thinking about this the other day... easing of a selection of
 items
 in
 a list.
 Now, one could move a selector with a mouse, and then kind of throw it
 and
 then check the onUpdate of it's single ease (use speed as the
 determination
 for how far it should travel) to check if it's within the bounds of an
 item,
 and highlight that item, deselecting the previous item.

 That approach works and is probably the easiest.

 But what if you wanted to use an index of items  use an easing approach
 (or
 something that looked like it) where the items themselves had a selector
 clip within them... so you wouldn't be moving a selector item under them
 all, but affecting them in order with easing. What might be a good
 approach
 for something like that? Perhaps a timer with a reverse damping
 interval?
 What might that look like as a good approach.

  ___

 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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FW: [Flash_Tiger] Outsourcing and Actionscript specs

2008-11-05 Thread Eric E. Dolecki
Did you have check ins with them, or did they just deliver the final thing?
Check ins might allow you to see how they are architecting things and you'd
be able to ask questions, or suggest different ways to code something, etc.
I've seen some projects where custom events are passed from one class to
another until they reach a document class... sometimes through more than
three classes, and following those along can be difficult, etc.

Maybe checkpoints would work if it's not too much trouble. Or UML with
stubbed code?

On Wed, Nov 5, 2008 at 10:50 AM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 I'm going to throw a question out there to see if anyone has experienced
 something similar to this.  Didn't get any responses on Flash_Tiger.

 If you have ever outsourced some Actionscript work to an outside vendor,
 have you ever struggled with how to spec out how you want them to code
 it?

 Reason I ask is we've had bad experiences with some vendors in India in
 the past producing poor Flash/Actionscript sourcecode (we require them
 to provide sourcecode in the contract, so if need be, we can tweak minor
 things later). We've had better luck with U.S. vendors (nothing against
 India or Indians at all, that's just been our experience). So we
 decided to spec out how we would like them to code it (in general, not
 extremely specific - for example, use AS3, use external classes, comment
 the code, if they use a framework, tell us what it is, etc.). So the
 new vendor we used in India did all this (did a pretty good job with the
 final product), - they complied with our specs just fine, but they went
 overboard in the coding in my opinion. They over-coded by making the
 sourcecode EXTREMELY abstract, it was nearly impossible from looking at
 it to determine where to make minor tweaks. There is virtually no way to
 tell where to make a change, or what the change should be. They DID
 comment their code, but it's at the function-level - not at the bigger
 overall picture on how everything fits together.

 It's not a matter of being able to understand the code, I humbly
 consider myself a semi-near-expert (not a guru, but certainly no where
 near a novice) in Actionscript. The problem is figuring out how all the
 classes tie together to make what you see on the screen. I could figure
 it out, but it could take a very long time, and would require a lot of
 diagramming to map everything out. So instead we are having to go BACK
 to this vendor to have them make the change. I don't know if they
 over-coded because they thought that is what we wanted, that's the only
 way they knew how to tackle the project, or if they did it to ensure if
 there were ever any updates, only they would make the changes, thus
 ensuring future work (if so, pretty smart, but sneaky, which angers me).

 Anyway, that's the story, my general question is how do you define specs
 for a vendor to ensure you get good sourcecode back, but it's not overly
 abstracted, over-coded work?

 Jason Merrill
 Bank of America Instructional Technology  Media * GCIB  Staff
 Support LLD



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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Getting a compiler error

2008-10-30 Thread Eric E. Dolecki
if( Number(loc[0]) == NaN || Number(loc[1] == NaN )return;

Warning: 1098: Illogical comparison with NaN.  This statement always
evaluates to false.

Okay, so I have also tried

if( loc[0] == NaN || loc[1] == NaN )
return;

I get the same error. loc[0] 99.9% of the time is a string value of a number
(ie. var loc:Array = msg.split( )). Sometimes it ends up NaN, I want to
prevent NaN from going through to a later method. I would have thought I
could simply check that for NaN.

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


Re: [Flashcoders] Getting a compiler error

2008-10-30 Thread Eric E. Dolecki
Thanks Juan ;)

On Thu, Oct 30, 2008 at 10:42 AM, Juan Pablo Califano 
[EMAIL PROTECTED] wrote:

 Use isNaN instead. For some reason I don't really get, this evaluates to
 false in AS 3.0.

 trace( (NaN == NaN) );

 Cheers
 Juan Pablo Califano

 2008/10/30, Eric E. Dolecki [EMAIL PROTECTED]:
 
  if( Number(loc[0]) == NaN || Number(loc[1] == NaN )return;
 
  Warning: 1098: Illogical comparison with NaN.  This statement always
  evaluates to false.
 
  Okay, so I have also tried
 
  if( loc[0] == NaN || loc[1] == NaN )
 return;
 
  I get the same error. loc[0] 99.9% of the time is a string value of a
  number
  (ie. var loc:Array = msg.split( )). Sometimes it ends up NaN, I want to
  prevent NaN from going through to a later method. I would have thought I
  could simply check that for NaN.
 
  ??
  ___
  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] Printing filters from the Flash Player

2008-10-25 Thread Eric E. Dolecki
Nearly identical - you'd have to change _width to width, use the .graphics
of a MC, etc.

On Sat, Oct 25, 2008 at 6:22 AM, Cor [EMAIL PROTECTED] wrote:

 And how does this look in AS3??

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike
 Sent: zaterdag 25 oktober 2008 0:30
 To: Flash Coders List
 Subject: Re: [Flashcoders] Printing filters from the Flash Player

 Hi,

Here is some AS2 code that I wrote to do this - the _toPrint is a
 MovieClip containing lots of stuff with filters on.  There is scaling
 too - depending on whether the user has chosen portrait or landscape -
 for later AS3 code, I worked out the orientation and rotated the printed
 image - not bitmapped though...
 The whole lot is rendered to a Bitmap, then printed.

Hope this helps.  I may even get round to blogging it one day :)

Glen

private function _print():Void {
//start a print job with the _toPrint...

// create PrintJob object
var my_pj:PrintJob = new PrintJob();

// display print dialog box, but only initiate the print job
// if start returns successfully.
if (my_pj.start()) {
 // use a variable to track successful calls to addPage
var pagesToPrint:Number = 0;

//we need to scale the object too!

var h:Number = my_pj.pageHeight;
var w:Number = my_pj.pageWidth;

var xs = w / _toPrint._width;
var ys = h / _toPrint._height;
trace(page dimensions  + w + ,  + h +  scale  + xs +
 ,  + ys +  to print  + _toPrint._xscale + ,  + _toPrint._yscale );

var _printWidth:Number;
var _printHeight:Number;
var scale:Number = (xs  ys) ? xs : ys;
if (xs  ys) {
_printWidth = Math.floor(xs * _toPrint._width);
_printHeight = Math.floor(xs * _toPrint._height);
} else {
_printWidth = Math.floor(ys * _toPrint._width);
_printHeight = Math.floor(ys * _toPrint._height);
}
trace(to print  + _toPrint._xscale + ,  +
 _toPrint._yscale +  =  + _toPrint._width + ,  + _toPrint._height);

// add specified area to print job
//now do our bitmap thingy..
var printedImg:MovieClip =
 this.createEmptyMovieClip(printedImg, this.getNextHighestDepth());
printedImg.beginFill(0xff, 1);
printedImg.moveTo(0, 0);
printedImg.lineTo(my_pj.pageWidth, 0);
printedImg.lineTo(my_pj.pageWidth, my_pj.pageHeight);
printedImg.lineTo(0, my_pj.pageHeight);
printedImg.lineTo(0, 0);
printedImg.endFill();
var printBmp:BitmapData = new BitmapData(my_pj.pageWidth,
 my_pj.pageHeight, false, 0xff);
printedImg.attachBitmap(printBmp, 1);
var mtx:Matrix =  new Matrix();
mtx.scale(scale, scale);
printBmp.draw(_toPrint, mtx);

// repeat once for each page to be printed
if (my_pj.addPage(printedImg, null, {printAsBitmap:true})) {
pagesToPrint++;
}
_toPrint._xscale = _toPrint._yscale = 100;

if (pagesToPrint  0) {
my_pj.send();  // print page(s)
}
printBmp.dispose();
delete printBmp;
printedImg.unloadMovie();

}

}

 Gert-Jan van der Wel wrote:
  Hi Jim,
 
  Yeah we tried the printAsBitmap option, but it didn't make much of a
  difference. We're now looking at creating a BitmapData and printing
  that. Maybe that works.
 
  Gert-Jan
 
 
  Op 24 okt 2008, om 15:17 heeft Jim McIntyre het volgende geschreven:
 
  Gert-Jan van der Wel wrote:
  Hi there,
  We use filters (shadows and glows) to make the scene look better. At
  some point a user can print what they've created, but the print
  shows no filters. Is there an easy way to get the filters on the print?
 
  Have you tried printAsBitmap? I found that was the only way to get
  some stuff to print the same way it was displayed, even when filters
  weren't involved (like some hand-drawn shadows using transparent fills).
 
  My project was written in AS2; I don't know whether the implications
  are different for code running in AVM2.
 
  (code simplified from my app, untested)
 
  --
 
  private function printPoster():Void {
   var posterPrintJob:PrintJob = new PrintJob();
   if (posterPrintJob.start()) {
 var pgsQueued:Number = 0;
 this.printPg._visible = true; //printPg is the MovieClip to print
 var printArea:Object = {xMin:0, xMax:printPg._width, yMin:0,
  yMax:printPg._height};
 var printOptions:Object = {printAsBitmap:true};
 if (posterPrintJob.addPage('printPg', printArea, printOptions)) {
   pgsQueued++;
 }
 if (pgsQueued) {
   posterPrintJob.send();
 }
   }
  }
 
  --
  ___
  

Re: [Flashcoders] Disabling Print Screen key

2008-10-23 Thread Eric E. Dolecki
Since thats at an operating system level, I don't think you could do
anything. If it's a kiosk, have a keyboard without that button, for every
one else, you're stuck.
What would you try to do with the keypress for that key anyway? By the time
you received it (if Flash had focus), it would already be too late to do
anything (ie. hide your flash content on the stage).

I would be surprised if you can do what you want.

Eric

On Thu, Oct 23, 2008 at 11:32 AM, Andrew Murphy [EMAIL PROTECTED]wrote:

 Hi. :)

 I'm attempting to disable using the Print Screen button for an AS3 movie on
 a web page.  The stage doesn't appear to fire a KeyboardEvent.KEY_DOWN when
 the Print Screen key is pressed.

 Is there a way to detect the Print Screen key?  Or another method for
 disabling the user's ability to do a Print Screen screen cap of a Flash
 movie?


 
 Andrew Murphy
 Interactive Media Specialist
 [EMAIL PROTECTED]

 Delvinia
 214 King Street West, Suite 214
 Toronto Canada M5H 3S6

 P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com

 CONFIDENTIALITY NOTICE
 This email message may contain privileged or confidential information. If
 you are not the intended recipient or received this communication by error,
 please notify the sender and delete the message without copying or
 disclosing it.

 AVIS DE CONFIDENTIALITÉ
 Ce message peut contenir de l'information légalement privilégiée ou
 confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par
 erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
 détruire le contenu sans le communiquer a d'autres ou le reproduire.



 ___
 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] Recommendation for budget development mac

2008-10-22 Thread eric e. dolecki
I am hearing the Mac Mini might be discontinued (as of right now). Not sure
if that change your mind about one.

On Wed, Oct 22, 2008 at 10:52 AM, Weyert de Boer [EMAIL PROTECTED] wrote:

 Yes, you can also consider to buy a Mac and use VMWare Fusion to test under
 Windows etc.

 ___
 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] Recommendation for budget development mac

2008-10-17 Thread eric e. dolecki
I think that you made a good decision there, for what it's worth.

Eric

On Fri, Oct 17, 2008 at 10:45 AM, Paul Steven [EMAIL PROTECTED]wrote:

 Thanks for all the advice - I have made a quick decision and ordered a Mac
 Mini 2 GHZ (Intel one) with an extra gig of RAM. Sounds like this will be
 sufficient to package my games for the Mac and also provide a means for
 testing. I do have a 450 mhz G3 in the attic but I thought that would be
 way
 too old to be of any use for my needs.

 Cheers

 Paul

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
 Sent: 17 October 2008 15:17
 To: Flash Coders List
 Subject: Re: [Flashcoders] Recommendation for budget development mac

 On Fri, Oct 17, 2008 at 2:09 PM, David Benman [EMAIL PROTECTED]
 wrote:
  I agree with Ian, though I'd caution going to low-end for testing because
  then you can get too focused on slowness issues that don't affect your
  average, target machine.

 Sorry - I meant slowest of the current crop, by which I meant Mac Mini. :-)

 Ian
 ___
 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] Socket Speed?

2008-10-17 Thread eric e. dolecki
I am curious if anyone knows how fast Flash can generally accept socket data
without dropping messages.
Thanks,
Eric
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket Speed?

2008-10-17 Thread eric e. dolecki
This is good stuff. I am under the 60 packets a second, by a fair margin, so
I should be good. I might be around 50 p/s.

On Fri, Oct 17, 2008 at 1:28 PM, Glen Pike [EMAIL PROTECTED]wrote:

 Hmm,

   I did a bit of a test on this recently with a PHP based server just to
 test read  write in Flash with a binary socket...

   I have uploaded a zip containing 2 flash apps - reader  writer that use
 12 byte packets across a simple echoing socket server which writes packets
 out to all of the clients except the sending one:

   http://glenpike.co.uk/misc/socketstuff.zip

   I think managed to get about 60packets/s out of it before it started
 doubling up / dropping packets (this was on a local machine though).

   One thing I have noticed with sockets though is that some servers will
 spew a load of packets at once rather than one at a time - this is one of
 the things I was trying to discover with my test and prove that the error
 was on the server side :)

   If you don't have the facilities to run command line PHP, you can easily
 enough roll your own with examples on line.

   HTH

   GLen

 eric e. dolecki wrote:

 I am curious if anyone knows how fast Flash can generally accept socket
 data
 without dropping messages.
 Thanks,
 Eric
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





 --

 Glen Pike
 01326 218440
 www.glenpike.co.uk http://www.glenpike.co.uk

 ___
 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] flushing memory

2008-10-03 Thread eric e. dolecki
Handle it without using a timeline at all and use code straight instead?

On Fri, Oct 3, 2008 at 2:11 PM, Allandt Bik-Elliott (Receptacle) 
[EMAIL PROTECTED] wrote:

 hi folks

 is there any way i can completely flush the memory for the flash plugin?

 i have a spelling game that uses classes on symbols placed on the timeline
 and when i hit a replay button at the end of my game, the playhead is moved
 to the start of the timeline (so none of the symbols are present any more)
 and then the game is started up again

 the only problem is that when the game goes through it's second pass, all
 of the questions are duplicated.

 I've tried delete'ing all of the objects in the class itself at the end of
 the game before i move back to the start but it still happens

 the only way i can see around it is to reload the whole page but that's a
 hit on the server which seems a little over the top

 cheers
 alz

 ___
 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: [BULK] Re: [Flashcoders] Layering, drawing a blank

2008-09-29 Thread eric e. dolecki
Umm... just a little bit. Check out DisplayObject

On Mon, Sep 29, 2008 at 3:06 PM, Lord, Susan, CTR, DSS 
[EMAIL PROTECTED] wrote:

 AS3.

 I tried swapDepth() and getDepth, and a fewothers but none worked. Has
 it changed since AS2?


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Matt S.
 Sent: Monday, September 29, 2008 3:02 PM
 To: Flash Coders List
 Subject: [BULK] Re: [Flashcoders] Layering, drawing a blank
 Importance: Low

 AS2 or AS3?

 On Mon, Sep 29, 2008 at 2:48 PM, Lord, Susan, CTR, DSS
 [EMAIL PROTECTED] wrote:
  Hi there,
 
  I cannot for the life of me remember what the method is to have a
 layer
  come to the top of the stacking order when you click it.
 
  Any help you can provide is appreciated!
  Thanks,
  Susan
  ___
  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] favourite programming environment

2008-09-27 Thread eric e. dolecki
Cosmos? Really?

On Sat, Sep 27, 2008 at 11:52 AM, Glen Pike [EMAIL PROTECTED]wrote:

 My Favourite coding environment:

 On a tropical beach under a parasol / coconut-less palm, preferably in a
 deckchair or similar comfortable reclining chair with a flatscreen display
 on a swan neck.

 Located close enough to the beach bar for the bar-person to bring me coffee
 in the morning, fruit juice in the afternoon and a Mai Tai or a Cosmopolitan
 as the sun passes the yardarm.

 Breaks between programming would include sailing, snorkelling, surfing and
 beach volleyball.

 My personal assistant would deal with all the client crap.

 Does not matter where the beach is, as long as it's not too busy with
 tourists.

 Sorry, have heard this debate to many times for it to be interesting
 anymore, so I thought I would freshen it up.  :)



 Ron Wheeler wrote:

 Eclipse with HAXE

 Ron

 Allandt Bik-Elliott (Receptacle) wrote:

 I'm sure it's been asked before but as these things change over time, i
 thought it worth rehashing now

 what's your favourite coding environment?

 I really like FlashDevelop but because I'm on a mac, I've been looking
 into other options (although FD with parallels is a pretty good setup). I've
 found eclipse and FDT to be shaky at best - the AS2 libraries are incomplete
 (the mx lib has to be added to the default setup, for instance) and it seems
 to be a little unstable (if it doesn't crash entirely once in a while, it
 seems to get slower over time - maybe there's a memory leak somewhere?) and
 FDT costs an astronomical amount for something that is supposed to go
 alongside the Flash IDE when doing AS2 (which seems to be still the most
 widely used version of Actionscript outside of full-on microsite design) as
 it doesn't have it's own AS2 compiler.

 I've seen that coda has started supporting AS code hinting but without
 real OOP class support, it really only is a curio at the moment.

 what do you guys think?

 thanks
 allandt

 ___
 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



 --

 Glen Pike
 01326 218440
 www.glenpike.co.uk http://www.glenpike.co.uk


 ___
 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] favourite programming environment

2008-09-26 Thread eric e. dolecki
I like TextMate on the Mac.

On Fri, Sep 26, 2008 at 10:38 AM, Allandt Bik-Elliott (Receptacle) 
[EMAIL PROTECTED] wrote:

 I'm sure it's been asked before but as these things change over time, i
 thought it worth rehashing now

 what's your favourite coding environment?

 I really like FlashDevelop but because I'm on a mac, I've been looking into
 other options (although FD with parallels is a pretty good setup). I've
 found eclipse and FDT to be shaky at best - the AS2 libraries are incomplete
 (the mx lib has to be added to the default setup, for instance) and it seems
 to be a little unstable (if it doesn't crash entirely once in a while, it
 seems to get slower over time - maybe there's a memory leak somewhere?) and
 FDT costs an astronomical amount for something that is supposed to go
 alongside the Flash IDE when doing AS2 (which seems to be still the most
 widely used version of Actionscript outside of full-on microsite design) as
 it doesn't have it's own AS2 compiler.

 I've seen that coda has started supporting AS code hinting but without real
 OOP class support, it really only is a curio at the moment.

 what do you guys think?

 thanks
 allandt

 ___
 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] [AS3] TextField Bug: Text outside of the TF

2008-09-26 Thread eric e. dolecki
turn the border on for the TF and see where it really is.

On Fri, Sep 26, 2008 at 1:06 PM, sebastian [EMAIL PROTECTED] wrote:

 Check alignment and check how you are creating the text fields. This sounds
 like an issue with how you are placing and coding the text fields.

 Benicio del Toro wrote:

 hi,

 I ve'got an input TextField. What I want to do is to reset the TF content
 and put some prompt text inside, which I set using AS (e.g. 'your email'
 prompt).

 The problem:
 If before resetting the TF, the text in it is longer than the TF width,
 Flash doesn't put the prompt text where it is supposed to (left-aligned
 inside the textfield), but further to the left outside of the TF. Actually
 the offset is more or less equal to the diference between the previous
 text
 length and the TF width.

 In my real project the misplaced text is visible right away, and when I
 tried to recreate the problem in a test .fla, it becomes visible after
 resizing the test player window.
 The text returns into the right place after clicking on the textfield (and
 no, setting focus progammaticaly does not help).

 Have you ever encountered such problem and know any solution?

 Best,
 Konrad
 ___
 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] OT: Flex builder vs Flex SDK

2008-09-25 Thread eric e. dolecki
You can design visually with FlexBuilder, it's a great AS3 editor, you can
maintain projects in it, etc.
On Thu, Sep 25, 2008 at 2:54 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:

 Hi

 I was wandering if starting to use Flex; but i can't see the difference
 between the FLex BUilder 3 and the FLex SDK. The Flex BUIlder shipps at
 250$, so there must be quite some difference, right?
 Can someone point me to the most important differences between them two? A
 link to some good info perhaps?
 Thanks


 *Pedro D. Kostelec*
 [EMAIL PROTECTED]
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread eric e. dolecki
I believe AS3 is going to be augmented with new classes, not radically
changed -- certainly nothing like AS2-AS3.

On Tue, Sep 23, 2008 at 4:52 PM, Mendelsohn, Michael 
[EMAIL PROTECTED] wrote:

 Yes, because what I'm concerned about is having to jump from AS2 to AS3 to
 some sort of AS3.1.  My migration to AS3 is taking much longer than
 expected, given my workload.  I can't imagine the AS3 will be radically
 different, right?

 - MM



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Merrill, Jason
 Sent: Tuesday, September 23, 2008 4:23 PM
 To: Flash Coders List
 Subject: RE: [Flashcoders] AS3 additions/changes in CS4?

 Sorry - you said AS changes - my mistake.


 ___
 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] multiple classes in one swc?

2008-09-18 Thread eric e. dolecki
Is it possible to have many classes burned into a single SWC and then call
classes out of it?
- linked to SWC
import someClass;
import someOtherClass;

var foo:SomeClass = new SomeClass();
var bar:SomeOtherClass = new SomeOtherClass();
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] multiple classes in one swc?

2008-09-18 Thread eric e. dolecki
AS3 - I actually got it to work 3 secs after sending that email. If I used
anything but a generic package, import statements after the first got wonky.
The first class was okay, after that FAIL. Got it all sorted out - kick arse
;)

On Thu, Sep 18, 2008 at 4:13 PM, Hans Wichman 
[EMAIL PROTECTED] wrote:

 Yes,
 as2 or as3 ?

 greetz
 JC

 On Thu, Sep 18, 2008 at 9:58 PM, eric e. dolecki [EMAIL PROTECTED]
 wrote:
  Is it possible to have many classes burned into a single SWC and then
 call
  classes out of it?
  - linked to SWC
  import someClass;
  import someOtherClass;
 
  var foo:SomeClass = new SomeClass();
  var bar:SomeOtherClass = new SomeOtherClass();
  ___
  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] What kind of Movies will play directly in a Flash Page

2008-09-11 Thread eric e. dolecki
Simply add the following line to the htaccess file:
AddType video/x-flv .flv

On Thu, Sep 11, 2008 at 4:03 PM, Steve Abaffy [EMAIL PROTECTED] wrote:

 What should the mime type be??

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Bob Wohl
 Sent: Thursday, September 11, 2008 2:19 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] What kind of Movies will play directly in a
 Flash
 Page

 Could be a mime setting on the file type .flv on server. This will cause
 an appearance of 404 when it is actually there.

 B.

 On Wed, Sep 10, 2008 at 10:17 AM, Steve Abaffy [EMAIL PROTECTED]
 wrote:

  Yes I did this. However I also found the if I go to the webserver and try
  to
  play the flv movie directly using the flash8 player nothing happens, the
  player opens up and remains blank. It appears as if the file is empty,
  however the file is 46KB in size. Not sure what is going on here. Like I
  said it plays fine from the Flash CS interface but not from the server
  through the browser.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Nate
 Beck
  Sent: Wednesday, September 10, 2008 12:08 PM
  To: Flash Coders List
  Subject: Re: [Flashcoders] What kind of Movies will play directly in a
  Flash
  Page
 
  Make sure your source is relative to your website and not a path like:
  DO:
  movie.flv
 
  DON'T:
  C:\foo\bar\movie.flv
 
  On Wed, Sep 10, 2008 at 9:57 AM, Steve Abaffy [EMAIL PROTECTED]
  wrote:
 
   I have found that using a FLVPlayback component will play the movie. I
  have
   converted the moive and it will play just fine when during development,
   however when I publish the swf to the webserver the movie does not
 play.
  It
   acts like it can't find the flv file. The file is in the same directory
  as
   the swf which shows up the skin shows up but not the movie. I have
  already
   adjust the source using the component inspector to point the the flv
  file.
   Not sure what else has to be done. Any help would be great.
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
  sebastian
   Sent: Wednesday, September 10, 2008 11:25 AM
   To: Flash Coders List
   Subject: Re: [Flashcoders] What kind of Movies will play directly in a
   Flash
   Page
  
   Batch converting to FLV's is how I've done it. You get a tool that does
   just that in the flash install-application folder.
   :)
  
   Seb.
  
   Steve Abaffy wrote:
Hello,
   
   
   
I have a client that has a .wmv movie and wants to
 know
   how
you can get it to play directly in the browser window without opening
 a
helper app such as Windows Media Player. Does the movie have to be
   converted
to a different format or how is this done. Basically he wants to
  emulate
youtube where you click on a movie and it plays on the page.
   
   
   
Thanks
   
   
   
___
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
 
 ___
 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] Help Please

2008-09-10 Thread eric e. dolecki
A created mc (with code) has a height and width of 0 until it's populated
with something. If this is something that you created and placed on the
stage, you should be able to use the property inspector to change those.
Eric

On Wed, Sep 10, 2008 at 11:41 AM, Eng. Omar Eltonoby [EMAIL PROTECTED]wrote:

 Hello,
 I'm trying to resize the created movie clip (via width and height) but that
 seems to have no effect. Is there any restrictions on that?
 I tried to resize it using the properties panel dimensions didn't change.

 thanks in advance for your help

 --
 Eng. Omar Abouzied Eltonoby
 Computer Engineer
 Cairo University,Faculty Of Engineering
 2008-Graduate
 tel. 011-8020617
 ___
 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] TextArea class properties

2008-09-09 Thread eric e. dolecki
Sounds like its a focus UI thing. You may need to turn that bit off.
Eric

On Tue, Sep 9, 2008 at 12:09 PM, Lehr, Theodore M (N-SGIS) 
[EMAIL PROTECTED] wrote:

 Yeah - didn't seem to affect anything


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
 Jason
 Sent: Tuesday, September 09, 2008 12:06 PM
 To: Flash Coders List
 Subject: RE: [Flashcoders] TextArea class properties

 Have you tried selectable = false?

 Jason Merrill
 Bank of America
 Enterprise Technology  Global Risk LLD
 Instructional Technology  Media

 Join the Bank of America Flash Platform Developer Community

 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  Innovative Learning Blog  subscribe.


 ___
 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] TextArea class properties

2008-09-09 Thread eric e. dolecki
Sounds like you need to disable the focusRect thing in addition to
.selectable = false;

On Tue, Sep 9, 2008 at 12:41 PM, Lehr, Theodore M (N-SGIS) 
[EMAIL PROTECTED] wrote:

 Beauty - this works - but it is graying out my text - how can I maintain
 the same text color when it is disabled... is there a style that is
 applicable?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Jon
 Bradley
 Sent: Tuesday, September 09, 2008 12:35 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] TextArea class properties

 On Sep 9, 2008, at 12:05 PM, Merrill, Jason wrote:

  Have you tried selectable = false?

 I think it might be:

 textAreaInstance.enabled = false;

 Getting rid of the focus rect is generally a separate issue though,
 but when the component 'enabled' property is set to false, the focus
 rect shouldn't show.

 - jon


 ___
 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] Debugger Text Field

2008-09-08 Thread eric e. dolecki
Hey all,
I have a class that serves as a debugger - containing a textfield that text
gets dumped into. Rather quickly. What might be the best way to simply limit
the number of lines in the field itself, as the appends after a while bog
the application down (understandable).

I have many ideas, but I don't want the mechanism to clean up add too much
overhead itself.

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


Re: [Flashcoders] Singleton lookups vs Events ...

2008-09-03 Thread eric e. dolecki
*I like events - but I am no computer scientist. Events allow flexibility. *

On Wed, Sep 3, 2008 at 9:16 AM, S0 F1 [EMAIL PROTECTED] wrote:

 Any thoughts on whether it's more efficient (in terms of development and
 player performance) to use Singleton's (with static public 'getInstance' or
 such) instead of Event's when developing mid-sized applications? (for
 classes that *are* Singleton's of course). Asking this in regards to when
 you know no other class needs notification.

 It seems a lot cleaner in terms of code (not having to create and listen
 for
 events). Just a direct call - but what about performance speed, etc.

 Is this good practice.

 Cheers.
 ___
 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: [BULK] Re: [Flashcoders] Unloading an SWF in Flash and controlling the loadedSWF

2008-09-02 Thread eric e. dolecki
I think you want to listen for the event of the loader being loaded  then
use .content for it.

loader.addEventListener( Event.COMPLETE, iAmLoaded_Drunk );

function iAmLoaded_Drunk( e:Event ):void

{

 var lo:Loader = e.target as Loader;

 lo.content.alpha = 20; // what you actually loaded

}



On Tue, Sep 2, 2008 at 12:55 PM, Lord, Susan, CTR, DSS 
[EMAIL PROTECTED] wrote:

 Thanks Paul,

 I rewrote the code, so its easier to read:

 var request:URLRequest = new URLRequest(hotword.swf);
 var loader:Loader = new Loader()

 function displayHotword(evt:Event):void {
 loader.load(request);
addChild(loader);
loader.x = 100;
loader.y = 150
 }


 btClassified.addEventListener(MouseEvent.CLICK, displayHotword);

 My question is, how do I control the instance that is now on the stage?
 Say I wanted to create a function that would change the opacity of that
 movie or something like that. How do I reference that item. In the old
 flash, I would create a movie clip that would hold the swf and reference
 that instance name. With this new method, I have no instance name to
 reference.


 Also, I can't seem to talk to the file.  If they click a button within
 the file (the close button), I want the popup removed from the stage.
 Right now, I am hiding (visibility = false) the clip and putting the
 code to hide it within the loaded swf.  I am not communicating with the
 clip from the parent file.

 Any direction you could provide is very much appreciated!

 Thank you!
 Susan

 ___
 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: [BULK] Re: [Flashcoders] Unloading an SWF in Flash and controlling the loadedSWF

2008-09-02 Thread eric e. dolecki
hehe oops - .alpha = 0.2;

On Tue, Sep 2, 2008 at 1:11 PM, eric e. dolecki [EMAIL PROTECTED] wrote:

 I think you want to listen for the event of the loader being loaded  then
 use .content for it.

 loader.addEventListener( Event.COMPLETE, iAmLoaded_Drunk );

 function iAmLoaded_Drunk( e:Event ):void

 {

  var lo:Loader = e.target as Loader;

  lo.content.alpha = 20; // what you actually loaded

 }



 On Tue, Sep 2, 2008 at 12:55 PM, Lord, Susan, CTR, DSS 
 [EMAIL PROTECTED] wrote:

 Thanks Paul,

 I rewrote the code, so its easier to read:

 var request:URLRequest = new URLRequest(hotword.swf);
 var loader:Loader = new Loader()

 function displayHotword(evt:Event):void {
 loader.load(request);
addChild(loader);
loader.x = 100;
loader.y = 150
 }


 btClassified.addEventListener(MouseEvent.CLICK, displayHotword);

 My question is, how do I control the instance that is now on the stage?
 Say I wanted to create a function that would change the opacity of that
 movie or something like that. How do I reference that item. In the old
 flash, I would create a movie clip that would hold the swf and reference
 that instance name. With this new method, I have no instance name to
 reference.


 Also, I can't seem to talk to the file.  If they click a button within
 the file (the close button), I want the popup removed from the stage.
 Right now, I am hiding (visibility = false) the clip and putting the
 code to hide it within the loaded swf.  I am not communicating with the
 clip from the parent file.

 Any direction you could provide is very much appreciated!

 Thank you!
 Susan

 ___
 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] MouseEvents on overlapping siblings in AS3

2008-08-29 Thread eric e. dolecki
Think you need to drink some bubbly - bubbling events

On Fri, Aug 29, 2008 at 8:40 AM, Matthias Dittgen [EMAIL PROTECTED]wrote:

 but imagine one of the mc overlapping the whole other mc.

 MovieClips: A and B. A is overlapping B

 if the mouse is over A but not over B: i want receive a ROLL_OVER for A
 if the mouse is over A and over B: i want receive a ROLL_OVER for A
 and a ROLL_OVER for B

 an I don't want to replace them. A and B are siblings and will always
 be siblings.


 On Fri, Aug 29, 2008 at 1:30 PM,  [EMAIL PROTECTED] wrote:
  drop them in a movieclip and add an event Listener to that
  --Original Message--
  From: Matthias Dittgen
  Sender:
  To: Flash Coders List
  ReplyTo: Flash Coders List
  Sent: Aug 29, 2008 6:03 AM
  Subject: [Flashcoders] MouseEvents on overlapping siblings in AS3
 
  Hello,
 
  this was probably asked before, but I can't find.
  Imagine two or more sibling MovieClips. Both listen to
  MouseEvent.ROLL_OVER. When the mouse rolls over the overlapping region
  I would like the event to be dispatched to both of them and not only
  to the one above the other? How can I achieve this without using
  hitTest or enterframe scripts?
 
  Regards,
  Matthias
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
  Sent via BlackBerry from T-Mobile
  ___
  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] [Flashcoders tweening glowfilter from inner to outer

2008-08-28 Thread eric e. dolecki
Here is my post about it:
http://www.ericd.net/2008/08/tweening-from-inner-to-outer-glow.html

TweenMax to the rescue.

On Thu, Aug 28, 2008 at 8:21 AM, allandt bik-elliott (thefieldcomic.com) 
[EMAIL PROTECTED] wrote:

 can you input negative values into one or the other?

 On Wed, Aug 27, 2008 at 9:06 PM, Hans Wichman 
 [EMAIL PROTECTED] wrote:

  Hi,
 
  I don't think tweening from inner to outer is possible, unless you use
  multiple glow filters.
 
  greetz
  JC
 
  On Wed, Aug 27, 2008 at 9:43 PM, eric e. dolecki [EMAIL PROTECTED]
  wrote:
   Can tweenfilterlite tween from inner to outer glows elegantly? The
 server
   isn't responding for me to check myself without setting up test code.
  Might
   do anyway.
   Eric
   ___
   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] [Flashcoders tweening glowfilter from inner to outer

2008-08-27 Thread eric e. dolecki
Can tweenfilterlite tween from inner to outer glows elegantly? The server
isn't responding for me to check myself without setting up test code. Might
do anyway.
Eric
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Sound/Music

2008-08-25 Thread eric e. dolecki
I second soundrangers. Cheap audio, really sweet quality.

On Mon, Aug 25, 2008 at 7:30 AM, Paul Steven [EMAIL PROTECTED]wrote:

 http://www.soundrangers.com is pretty good inho...





 Kevin Bowers
 [EMAIL PROTECTED]
 Mobile: +44 (0)7899 081409
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Patrick J.
 Jankun
 Sent: 24 August 2008 11:04
 To: Flashcoder Mailinglist
 Subject: [Flashcoders] Sound/Music

 Hello Everyone,

 I was wondering if anyone can pinpoint me to some quality stock sounds
 i can pickup for my work.
 I was googling around, and found a few links, but most of them are,
 hmm.. quite lousy and not
 that interesting that i would like to spend my money. Im looking for a
 site with all the FX, but with some
 ambient loops/music to pickup as well.

 I would be glad if you people share where you get your nice sounds from!

 Thanks in advance,
 Patrick
 ___
 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] Flash - Hardware Interfacing/Communication

2008-08-21 Thread eric e. dolecki
Yup, sockets are your friend. You don't need a wrapper. You can get some
software that can open a bunch of ports too serving as your bridge.
(Comfoolery does this but only on a application instance per COM port) - get
one that allows virtual ports if you need it.

On Thu, Aug 21, 2008 at 4:32 AM, Ian Thomas [EMAIL PROTECTED] wrote:

 Hi Daniel,

 There isn't an easy solution for AIR - can I ask why you're using AIR
 if it doesn't do what you want it to?

 There _is_ a way of doing it with AIR, but it's tricky.

 What you'd need to do is to create a standalone socket server on your
 host machine that interfaces with the relevant hardware; then talk to
 that server from AIR by opening a socket to it.

 HTH,
Ian

 On Thu, Aug 21, 2008 at 9:12 AM, Daniel Boey [EMAIL PROTECTED] wrote:
  Hi Ian,
 
  Thanks for the reply.
 
  I failed to mention that I be deploying the kiosk with Adobe AIR and
 because
  of that wrappers wouldn't be able to support it as per Adobe's licensing
 for
  the runtime, unless I'm mistaken which I hope I am.
 
  - Daniel -
 
  On Thu, Aug 21, 2008 at 3:48 PM, Ian Thomas [EMAIL PROTECTED] wrote:
 
  Hi Daniel,
A number of Flash wrappers (i.e. programs to turn Flash movies into
  .exe files) can handle extensions (.dlls) written in native code. So
  you could write or buy extensions to interface with almost anything at
  a system level - without additional dialogs etc.
 
   Northcode's SWFStudio does it: http://www.northcode.com/swfstudio.php
 
   SWHX also does it: http://www.haxe.org/com/libs/swhx
 
   And I know Zinc (much as I despise it's instability and bugginess)
  does it: http://www.multidmedia.com/software/zinc/
 
   HTH,
Ian
 
  On Thu, Aug 21, 2008 at 7:18 AM, Daniel Boey [EMAIL PROTECTED] wrote:
   Hi people,
  
   I've got a project that requires hardware communication between a
 Flash
   kiosk-projector and a few hardwares (eg: scanner, biometric
 fingerprint
   reader, smart card reader).
   What is required is that all this are to be operated seamlessly
 without
  any
   other application dialogs popping up over the Flash interface.
   After days and weeks of scouring the net, I wasn't able to even
 stumble
  upon
   any clue on this.
  
   Is this even possible at all? If yes, can Flash handle all the
  communication
   between APIs natively or what other ways is required to go about it?
  
   I do hope there'd reply in spite of how busy you all may be.
  
   --
   Thanks  Best regards,
   Daniel Boey
   ___
   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
 
 
 
 
  --
  Thanks  Best regards,
  Daniel Boey
  ___
  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] Object vs *

2008-08-11 Thread eric e. dolecki
To the hijacker,
You sort of can, but not online.

run full screen, run a socket server and connect to it, have the socket
server answer a command and position the system cursor (with Java let's say
here). I've done this before myself, but it has to be a standalone
executable with the running socket server, etc. A custom setup.

On Sun, Aug 10, 2008 at 6:13 PM, Kerry Thompson [EMAIL PROTECTED]wrote:

 thomas nordahl wrote:

  is  there any way in AS3 to set the coordinates of the cursor?

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


Re: [Flashcoders] Object vs *

2008-08-11 Thread eric e. dolecki
That's cool - haven't seen that class before. You'd just need to know when
to switch to real system mouse and the virtual one if tracking.
Eric

On Mon, Aug 11, 2008 at 10:30 AM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 You sort of can, but not online.

 You can online if you are OK with faking it.  You can set up a virtual
 cursor you control with Actionscript - hide the real cursor and use a
 graphic of one that looks just like it, and control it's behavior with
 Actionscript, including dispatching of events.  If you're not doing
 anything fancy, the user will  know no difference if you use it right.
 Then show the real cursor as needed for more complex mouse actions like
 dragging and dropping. Here is a virtual mouse class:

 http://www.kirupa.com/forum/archive/index.php/t-266801.html


 Jason Merrill
 Bank of America
 Enterprise Technology  Global Risk LLD
 Instructional Technology  Media

 Join the Bank of America Flash Platform Developer Community

 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  GTO Innovative Learning Blog  subscribe.



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of eric e. dolecki
 Sent: Monday, August 11, 2008 9:32 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] Object vs *
 
 To the hijacker,
 You sort of can, but not online.
 
 run full screen, run a socket server and connect to it, have
 the socket server answer a command and position the system
 cursor (with Java let's say here). I've done this before
 myself, but it has to be a standalone executable with the
 running socket server, etc. A custom setup.
 
 On Sun, Aug 10, 2008 at 6:13 PM, Kerry Thompson
 [EMAIL PROTECTED]wrote:
 
  thomas nordahl wrote:
 
   is  there any way in AS3 to set the coordinates of the cursor?
 
 ___
 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] websites with public APIs available from flash

2008-08-08 Thread Eric E. Dolecki

What about webservices

Sent from my iPod

On Aug 8, 2008, at 6:44 PM, Patrick Matte | BLITZ [EMAIL PROTECTED] 
 wrote:


I'm rounding up a list of websites with public API that flash can  
interact with.

I have :

Yahoo maps
Flickr
Youtube
Weather.com

Do you know any other?


Patrick Matte
Interactive Director
Ph: 310-551-0200 x214
Fax: 310-551-0022
[EMAIL PROTECTED]

BLITZ - 3415 S Sepulveda Bl, Ste 500 - Los Angeles, CA 90034 - www.blitzagency.com 
http://www.blitzagency.com/


(!) Be sure and check out BLITZ Labshttp://labs.blitzagency.com/?utm_source=patrickmatteutm_medium=signature_link 
, our blog for all the latest and greatest.


___
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] How to achieve blob magnification effect?

2008-08-06 Thread eric e. dolecki
I believe you can just use a spherical displacement map.
Here is a fun displacement map you can check out:
http://labs.zeh.com.br/blog/?p=128

Regards,
Eric

On Wed, Aug 6, 2008 at 12:39 PM, Ali Drongo [EMAIL PROTECTED]wrote:

 Hi there, I want to achieve the effect of seamless magnification a bit like
 the Mac OS dock but rather than having individual icons magnified I want to
 have a seamless magnification kind of like a blob as in this image:

 http://dl.getdropbox.com/u/65140/Picture1.png

 I think I could achieve this effect by using an onEnterFrame event and
 having an outline created by a moving circle with curves that are
 continually updated and the lines and  numbers of the thermometer that scale
 according to mouse position but I'm not sure how to achieve the gradients on
 the glass.

 Is there an easier way of doing this?

 Thanks
 Ali


 ___
 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] When to use AS3?

2008-07-30 Thread eric e. dolecki
Taking time to jump to AS3 with the penetration numbers the way they are is
only going to put one behind the 8-ball in regards to new features to take
advantage of, performance increases, ease of maintenance and of development.
Building class libraries, etc. is such a joy now and with OOP you can easily
add or remove functionality at a moment's notice without disturbing some
fragile AS2 framework.

AS2 is safe as rain to deploy, but I would say that AS3 should be just as
safe at the moment... unless you've got a lot of AS2 legacy stuff one would
need to re-write to get it all together.

I don't have any public facing stuff, and probably won't for quite some
time, but I forced myself into strict use of AS3 a long time ago and all
that AS2 hacking, debugging, and worrying is basically nearly gone
altogether.

Old habits are tough to break.

I like new toys though, so I kicked AS2 to the curb and I'd hope most
everyone would do the same.

On Wed, Jul 30, 2008 at 2:01 PM, Mark Winterhalder [EMAIL PROTECTED] wrote:

 On Wed, Jul 30, 2008 at 2:22 PM, Romuald Quantin
 [EMAIL PROTECTED] wrote:
  Yeah true, or what's working as well is saying that AS2 code is harder to
  maintain and will cost you more money in the future.

 Regarding the future argument, you can add that future versions of the
 project could use future functionality that won't be available with
 the old AS2 API. Also, ECMA262.v4/JS2/AS4/whatever will come not only
 to the Flashplayer, and it will be much easier to reuse AS3 code.

 Anyway, it's just one percent difference in penetration:
 
 http://www.adobe.com/products/player_census/flashplayer/version_penetration.html
 

 Mark
 ___
 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] E4X question in regards to ill-formed node

2008-07-29 Thread eric e. dolecki
I am getting XML from a WSDL and one of the nodes is like so:

P-E26.95/P-E

now, how can I address this node?

trace( foo..P-E );

won't work, how can I use E4X to reliably get that node's value if the index
of it (child index) could move around within the parent nodes?

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


Re: [Flashcoders] E4X question in regards to ill-formed node

2008-07-29 Thread eric e. dolecki
Many thanks, that works quite nicely.

Eric

On Tue, Jul 29, 2008 at 11:11 AM, Ian Thomas [EMAIL PROTECTED] wrote:

 trace(foo.descendants(P-E));

 (Worth looking at foo.child() and foo.elements() too...)

 HTH,
  Ian

 On Tue, Jul 29, 2008 at 3:50 PM, eric e. dolecki [EMAIL PROTECTED]
 wrote:
  I am getting XML from a WSDL and one of the nodes is like so:
 
  P-E26.95/P-E
 
  now, how can I address this node?
 
  trace( foo..P-E );
 
  won't work, how can I use E4X to reliably get that node's value if the
 index
  of it (child index) could move around within the parent nodes?
 
  Eric
  ___
  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] stop microphone echos...what what ?? FIXED

2008-07-25 Thread eric e. dolecki
Did Microphone.setUseEchoSupression(true); do anything?

On Fri, Jul 25, 2008 at 9:13 AM, laurent [EMAIL PROTECTED] wrote:


 Hey boys.and sweet girls...

 Go the echo problem fix, no sound out IN the speakers. There's actually a
 pretty abvious method, at least the description:
 Routes audio captured by a microphone to the local speakers.
 so using Microphone.setLoopBack( false );

 will turn sound off from microphone back to speakers.

 good days!
 L

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


Re: [Flashcoders] Resizing Images

2008-07-22 Thread eric e. dolecki
Do you even need to cast as Bitmap? can't you just do
container.forceSmoothing = true; ? Oops - that might be AS2.

On Tue, Jul 22, 2008 at 12:59 PM, Matt S. [EMAIL PROTECTED] wrote:

 smoothing. Cast the image as a Bitmap and apply smoothing, and you'll
 be able to resize without image degradation.

 function loadTheImage(iMG):void {
url = uploads/+iMG+.jpg;
var request:URLRequest = new URLRequest(url);
var loader:Loader = new Loader();
loader.load(request);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
 onThumbLoad);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
 preLoader);

 }

 function onThumbLoad(e:Event):void {
//cast the loaded content as Bitmap
var b:Bitmap;
b = e.target.content as Bitmap;
b.smoothing = true;

this.img_mc.addChild(b);
 }

 .m


 On Tue, Jul 22, 2008 at 12:40 PM, Lehr, Theodore M (N-SGIS)
 [EMAIL PROTECTED] wrote:
  I have a small movie where I am importing images and dynamically
  resizing them - the problem is that when it is shrunken - it gets really
  pixellated - I am using jpegs - is there a way to make it so they look
  better - maybe import a different type of image ?
 
  ___
  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] Is a precise timer for making rhythms possible?

2008-07-12 Thread Eric E. Dolecki

I think he means a prior composition

Sent from my iPod

On Jul 12, 2008, at 3:55 PM, Kerry Thompson  
[EMAIL PROTECTED] wrote:



Ron Wheeler wrote:


If you have a playback button that plays the composed work, you can
concatenate the sounds/notes selected and play the composed  
segment.


That's interesting--can that be done at runtime? How can you  
concatenate the sounds?


Cordially,

Kerry Thompson


___
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] Document viewer

2008-06-26 Thread eric e. dolecki
You might want to check this out:
http://www.adobe.com/products/flashpaper/


On Thu, Jun 26, 2008 at 8:22 AM, Stuart Campbell [EMAIL PROTECTED]
wrote:

 Hi,

 I have a project where I need the client to be able to view documents in
 the
 browser (PDF, Word, RTF and Excel). However, the requirement is that the
 person viewing the document can never save the file and can never get their
 hands on it in order to email it to someone etc.

 It seems to me that a Flash viewer would be well suited to this kind of
 control. However I am not quite sure how to go about it. Is there a Flash
 implementation of a viewer that supports these file formats? Would I need
 to
 pre-process the files and put them into swf format?

 Has anybody had to do anything similar?

 Many thanks in advance

 Stu
 ___
 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] switch statement more efficient than if...else?

2008-06-25 Thread eric e. dolecki
Switch/case is a bit quicker.

On Wed, Jun 25, 2008 at 10:12 AM, Allandt Bik-Elliott (Receptacle) 
[EMAIL PROTECTED] wrote:

 Hi guys

 quick question that came up in a conversation I had the other day - are
 switch statements more or less efficient than a series of if...else
 statements in either AS2 or AS3?

 I'd always thought that the most efficient was the switch

 al.z

 ___
 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] switch statement more efficient than if...else?

2008-06-25 Thread eric e. dolecki
better way than nested switches that are 3-4 pages long = if/else statements
;)

On Wed, Jun 25, 2008 at 11:25 PM, Kerry Thompson [EMAIL PROTECTED]
wrote:

 Steven Sacks wrote:

  I disagree that switch statements are more readable than if else
  statements, at least if you put your braces on their own lines.

 I'm a die-hard switch/case guy, but I agree with Steven on this. Neither is
 inherently easier or harder to read.

 Of course, I personally prefer switch statements, but I think it's a matter
 of style. Steven's example is every bit as readable as a switch statement.

 Also, with switch statements, you have to be careful about nesting switch
 statements. I've seen switch statements with nested switches that are 3-4
 pages long. There has to be a better way to write code than that.

 Cordially,

 Kerry Thompson

 ___
 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] Bitmap data for presentation

2008-06-24 Thread eric e. dolecki
I don't know if it would always be prudent, but I've found if I have
components or UI composed of lists of Sprites, etc. instead of using a mask,
I use BitmapData to present the visuals instead... so basically you need
almost nothing on the display tree whatsoever. I know its a RAM hit (a
little), but so far its been working really, really well. I produce UI from
stuff not on the display tree at all, represented by a bitmap. I remove the
2nd bitmap in a displayObjectContainer so there is only ever one in there,
next step I'll add a dispose().

Anyone else doing this yet? It's more difficult to develop initially, so
basically I get it looking right when on the display tree, then I just don't
add it and use BMD.

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


[Flashcoders] Determine scale on stage position

2008-06-19 Thread eric e. dolecki
I have something being dragged on stage, and I'd like to set up rules for
scaling.
smallest = 0.7
middle = 1
largest = 1.3

Now, if I make a area of influence area on the stage, whats the best way to
set up the math to produce the results I'd need to set the scaleX and
scaleY?


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


[Flashcoders] Maintain position on rotation

2008-06-18 Thread eric e. dolecki
AS3. I have a MC I am rotating, and inside the MC I have a Sprite (affixed
to the bottom of the MC).

While rotating, I want to place another MC's x,y (each frame) on that
rotating MC. However the x,y never updates. I tried localToGlobal, but that
doesn't seem to change either during the rotation. Can this be easily done?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Maintain position on rotation

2008-06-18 Thread eric e. dolecki
Hey guys,

Before I saw these response posts, I took a slightly different angle on
things. When I create my limbs, I am actually adding another limb to a joint
sprite on the end of the main limb. That way it simply moves with the upper
limb, and can still rotate freely on its own, using some rotational rules.
It avoids a bunch of math and allows the nesting to simply take care of some
of it.

When I tried points and localToGlobal, it still gave me weird results,
making me take the route above.

Thanks for the responses, it's why this list is the best in the world.

- e.

On Wed, Jun 18, 2008 at 2:16 PM, Jon Bradley [EMAIL PROTECTED]
wrote:


 On Jun 18, 2008, at 1:27 PM, eric e. dolecki wrote:

  While rotating, I want to place another MC's x,y (each frame) on that
 rotating MC. However the x,y never updates. I tried localToGlobal, but
 that
 doesn't seem to change either during the rotation. Can this be easily
 done?



 Give something like this a shot. Note that this is completely untested
 because I wrote it right here ... this is the general idea though.

 var m:Matrix = mainMC.transform.matrix;
 var pt:Point = new Point( mainMC.theChild.x, mainMC.theChild.y);

 var position:Point = m.transformPoint(pt);

 // You might need to add in the tx,ty offsets
 var matchMoveClipX:Number = position.x + m.tx;
 var matchMoveClipY:Number = position.y + m.ty;

 That assumes, of course, that you're applying your transformations using
 matrices.

 If you use dot notation on the properties (rotate, scale, x y), I'm not
 100% certain that those properties are updated in the transformation matrix
 of the object.

 good luck.

 jon

 ___
 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] Paste rich text possible in Flash?

2008-06-17 Thread eric e. dolecki
Don't believe so but AIR can do it.

On Tue, Jun 17, 2008 at 9:54 PM, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:

 Just say you have text in Microsoft Word which is formatted bold and a
 certain colour. Is it possible to copy that text into a Flash (MX2004 or 8)
 input field and retain (or at least discover and recreate) that formatting?
 My gut feeling is no, as I haven't yet come across examples of this on
 the
 web. Even copying bold text in an HTML-enabled input textfield and pasting
 it into the same textfield doesn't carry across the formatting. I'd
 appreciate any thoughts on this, even (or I should say, especially) a No,
 this can't be done.

 Thanks!
 ___
 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] looking at the maths for an osx style dock

2008-06-12 Thread eric e. dolecki
sorry for the OT response, but man this code makes me so glad I don't do AS2
anymore ;)
- e.

On Thu, Jun 12, 2008 at 12:48 PM, allandt bik-elliott [EMAIL PROTECTED]
wrote:

 hi guys - i queried this a few days ago when all the messages were
 disappearing into the hole - i've amended my code so it's pretty darn close
 to what i want but not quite

 basically, i'm writing an osx style dock and at the moment, the scaling is
 working perfectly but the positioning is a bit flaky - it looks like a
 string of beads on elastic that snap to the previous bead - i've posted an
 example here
 http://www.m2surveys.com/homeserve/dock/

 the code that governs the size and position is this method

private function addIconMouseListeners():Void
{
var ref:Object = this;

for (var i:Number = 0; i  aIconArray.length; i++)
{
mcScrollingIconContainer[clip+i].sTitle=
 aIconArray[i].sTitle;
mcScrollingIconContainer[clip+i].sLink=
 aIconArray[i].sLink;
mcScrollingIconContainer[clip+i].nColour =
 aIconArray[i].nColour;
mcScrollingIconContainer[clip+i].ID = i;
mcScrollingIconContainer[clip+i].thisX =
 mcScrollingIconContainer[clip+i]._x;
mcScrollingIconContainer[clip+i].onMouseMove = function():Void
{
var thisXmouse = Math.round(this._xmouse);
var nIconSpan:Number = Math.round(ref.nIconWidth*5);
 //this governs the position and is the strange bit
var nXPercent:Number =
 Math.round(thisXmouse/nIconSpan*100)/1.8; // adjusting this by /1.8 has
 made
 the icons move along - otherwise they stay static, with only the moused
 over
 icon scaling and moving
nXPercent = (nXPercent  45) ? 45 : (nXPercent  -45) ? -45
 : nXPercent;
this._x = this.thisX - nXPercent;

 // this governs the scale and works great
if (thisXmouse  nIconSpan  -1*thisXmouse  nIconSpan)
{
var nWidth:Number = ref.nIconWidth + ref.nIconSpacing;
var nPercent:Number = Math.round((thisXmouse  0) ?
 (thisXmouse/nIconSpan) *-100 : (thisXmouse/nIconSpan) *100);
nPercent = 100 - nPercent;

if (nPercent  55)
{
this._yscale = this._xscale = nPercent;

} else {
this._yscale = this._xscale = 55;
}
} else {
this._yscale = this._xscale = 55;
}
};
mcScrollingIconContainer[clip+i].onRollOver = function():Void
{
this.swapDepths(1000); // not needed after _x is figured out
ref.tfTradeTitle.text = this.sTitle;
ref.addGlow(this);

};
mcScrollingIconContainer[clip+i].onRollOut = function():Void
{
ref.removeGlow(this);
}
mcScrollingIconContainer[clip+i].onRelease = function():Void
{
getURL(this.sLink, _self);
trace(getURL: +this.sLink);
};

}
}

 could anyone make any suggestions as to how i can tighten it up, please? I
 could really use some help

 thanks a lot
 alz
 ___
 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] Real Time Lip Sync

2008-06-12 Thread eric e. dolecki
could you use a FLV for audio and place some cuepoints in it and use that to
maintain sync?

On Thu, Jun 12, 2008 at 4:11 PM, Derek Nugent [EMAIL PROTECTED]
wrote:

 How real does it have to be?

 I have animation experience than Flash

 As an animation TD, to automate lip sync I move the jaw section of the
 character in accordance with the wave form then scale the width to create
 the approximate phoneme.

 For flash though I might try a library of movies that play when a specific
 event is triggered.
 It's detecting the events or conditions that might be tricky

 Best regards
 Derek Nugent


 email: [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 web:   http://www.dereknugent.com


 - Original Message 
 From: Elia Morling [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, June 12, 2008 2:19:14 PM
 Subject: Re: [Flashcoders] Real Time Lip Sync

 No info on real time lip sync? /

 Thanks

 - Original Message -
 From: Elia Morling [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, June 12, 2008 1:31 PM
 Subject: Re: [Flashcoders] Real Time Lip Sync


  Hi,
  Are there any real time lip sync code examples or components for AS3?
 
  Thanks
  ___
  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


 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.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


[Flashcoders] Best way to architect a kind of keyCode rotation

2008-06-11 Thread eric e. dolecki
I am going to be getting key events that sum up a degree of rotation.

ie. 3, 0, 1, ^  = 301 degrees (well, I get keCodes that I need to translate
back into their corresponding numbers)

So I was thinking I have an array that I push the values (keyCode) into...
when I get a delimiter, I then combine the digits before the delimiter

numbOne *= 100;
numbTwo *= 10;
numbThree = thirdDigitIfExists;

totalNumber = numbOne + numbTwo + numbThree;

And then set the rotation, clear the array out, and then wait for more
keyCodes to pour in.

I'm a little worried about the speed of execution, as I could get tons of
sets of keyCodes and this needs to be as accurate as possible. I could use a
wrapper and use serial data sent in, but i want to avoid a 3rd party
wrapper. I imagine that the approach I've outlined above shouldn't be too
terribly slow, but wondering if there might be a way that would be quicker
execution-wise knowing I'll be getting sets of keyCodes to implement into a
rotational number (0-359).

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


Re: [Flashcoders] full screen

2008-05-29 Thread eric e. dolecki
http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html

On Thu, May 29, 2008 at 1:57 PM, sense co moh [EMAIL PROTECTED] wrote:

 Hi Everbody
 can anyone tell me how to make button from flash to make the movie
 fullscreen and in same time hide thr bars like title bar and the address bar
 like this site http://www.asylum.fr/#/accueil/ in this site there is btn
 down when click on it all the bars will hide .
 Bassam



 ___
 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] Rule/Box and x,y detection on rotation

2008-05-22 Thread eric e. dolecki
AS3.

I have a rule that is anchored to the center of the stage. It extends out
and rotates around following the mouse (it extends out past the edges of the
stage to ensure collision). I have a box (no fill) that overlays the stage,
and where the rule in the middle touches the box rules, I'd like to get the
x, y position of that intersection.

instance of the rotation rule is angleRule and the box is just box
Going to use an ENTER_FRAME for it.

Any easy method to generate the x,y of where the intersection occurs?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Anyone have Alducente's AS3 gofr 1.5?

2008-05-20 Thread eric e. dolecki
Anyone have Alducente's gofr 1.5 AS3 Web Service stuff?

I went to download it and the main site is down. Was hoping someone here has
it.

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


[Flashcoders] AS3: Stretch only edges of a displayObject?I

2008-05-20 Thread eric e. dolecki
I am looking to take a DO (movieclip), and stretch just the side edges,
leaving the middle unstretched... so take an image, cut in 4 vertical
pieces, and stretch the outside pieces out horizontally by like 15%.

I could use DisplayObjects above the main one and just stretch those
horizontally, but I really want to keep this contained to manipulations on
the main object itself and not worry about creating and destroying others.

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


Re: [Flashcoders] AS3: Stretch only edges of a displayObject?I

2008-05-20 Thread eric e. dolecki
While I don't seem to be able to do this easily, I am applying scale9grid to
sorta do what I want. I was hoping for incremental stretching on the
sides... maybe that is something I'll be able to do using a hydra filter or
something in FP10.


On Tue, May 20, 2008 at 12:47 PM, Rich Shupe [EMAIL PROTECTED] wrote:

 Eric, if you're saying you want to manipulate the first and last 15% of a
 display object without creating anything else, I don't think that's
 possible. The closest I can think of that will accomplish that is using a
 displacement map filter in conjunction with resizing. That might get you
 what you need, but you'll still have to create the displacement map.

 Another way to do this is to create and destroy other objects but within
 the
 main object. At least that way you won't have to worry about moving,
 rotating, etc., four slices. You could use BitmapData, for example, create
 the four slices and add them inside the same do, allowing you to manipulate
 only slices 1 and 4, but still treat the entire d.o. as a single entity.


 On 5/20/08 9:44 AM, eric e. dolecki wrote:

  I am looking to take a DO (movieclip), and stretch just the side edges,
  leaving the middle unstretched... so take an image, cut in 4 vertical
  pieces, and stretch the outside pieces out horizontally by like 15%.
 
  I could use DisplayObjects above the main one and just stretch those
  horizontally, but I really want to keep this contained to manipulations
 on
  the main object itself and not worry about creating and destroying
 others.

 Rich
 http://www.LearningActionScript3.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] AS3: Stretch only edges of a displayObject?I

2008-05-20 Thread eric e. dolecki
That was going to be an approach... and I would apply the stretch to the
sides loaded in on top by hand in Photoshop (cementing the effect -- bad
voodoo there). Then I thought it might be cool to do it using the BitmapData
class somehow instead so I didn't need to worry about any cleanup, etc. as
much as the image will be changing a lot, etc. I'm investigating Pixel
Bender right now.

On Tue, May 20, 2008 at 1:48 PM, Steven Sacks [EMAIL PROTECTED]
wrote:

 Maybe this will work?

 Make two copies of the original MovieClip (if you're loading an image, load
 it once into the first clip, then when it's done loading, load it into the
 two others) for a total of three.

 Mask the left and right pieces to the width you want to show.   Mask the
 middle piece so those edges aren't showing.

 Determine the math that you would have to stretch each one of the slices so
 that that portion would be stretched 15% (it will be more than 15% because
 you would have to take into account the width of the entire clip) and set
 their scalex to that value.

 Position their x so they're lined up correctly.

 Voila!


 eric e. dolecki wrote:

 I am looking to take a DO (movieclip), and stretch just the side edges,
 leaving the middle unstretched... so take an image, cut in 4 vertical
 pieces, and stretch the outside pieces out horizontally by like 15%.

 I could use DisplayObjects above the main one and just stretch those
 horizontally, but I really want to keep this contained to manipulations on
 the main object itself and not worry about creating and destroying others.

 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

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


Re: [Flashcoders] AS3: Stretch only edges of a displayObject?I

2008-05-20 Thread eric e. dolecki
crud. anyone remember how to load a filter? ;)

On Tue, May 20, 2008 at 2:27 PM, Rich Shupe [EMAIL PROTECTED] wrote:

 You can almost certainly write a Hydra filter for this. You can do it
 AS-native with BitmapData.

 9-slice scaling can't do what you're hoping for, as I understand it. It
 will
 only scale the top and bottom centers when scaling left and right, the
 left and right centers when scaling up and down, the center slice in all
 cases, and never the corners.

 If you want something *very* roughly like the genie effect (where the top
 and bottom scale but not the middle, or vice-versa), you'll need to write
 something for that. There are bunch of examples like this if you want to
 think a bit about what to search for. I can think of the genie effect, an
 old-school waving flag or skew, etc., all of which cut the object into
 slices and manipulate them individually.

 In fact, this is required when using 9-slice on a bitmap. You have to cut
 the BM along the lines of the scale-9 rect so the auto scaling will work
 properly. (You can do it manually before importing, too, but that's
 obviously not dynamic.)

 Another thing that was quite popular was the slice-distortion of a single
 image--the first I saw was the Mona Lisa--depending on where you hovered
 your mouse. I just did a search for mona lisa actionscript with no luck,
 but this might jog some gray cells into action.

 You might also look for an ActionScript goo/liquify example which would
 demonstrate a displacement map approach. I think Grant did one of Mike
 Chambers.

 I'll try to pull this into focus when I have a clearer head and maybe I can
 think of a concrete link or two.

 R


 On 5/20/08 1:35 PM, eric e. dolecki [EMAIL PROTECTED] wrote:

  While I don't seem to be able to do this easily, I am applying scale9grid
 to
  sorta do what I want. I was hoping for incremental stretching on the
  sides... maybe that is something I'll be able to do using a hydra filter
 or
  something in FP10.

 Rich
 http://www.LearningActionScript3.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] Dispatch Event works only with SetTimeout

2008-05-19 Thread eric e. dolecki
sounds like you *might* need an ADDED_TO_STAGE event here... but can't say
without knowing more.

On Mon, May 19, 2008 at 2:23 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 What does the listener look like?  Also what code do you use to trigger
 the event dispatch when not using the timer?

 Jason Merrill
 Bank of America
 Global Technology  Operations LLD
 eTools  Multimedia

 Join the Bank of America Flash Platform Developer Community

 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  GTO Innovative Learning Blog  subscribe.



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Helmut Granda
 Sent: Monday, May 19, 2008 2:08 PM
 To: Flash Coders List
 Subject: [Flashcoders] Dispatch Event works only with SetTimeout
 
 Hi all,
 I have an issue trying to dispatch a simple event.
 dispatchEvent(new Event(ClassName.EVENT_NAME));
 
 for some reason the event is not being triggered -unless- i
 put a time out before it...
 
 like so:
 
 setTimeout(doDispatch, 1);
 
 private function doDispatch () : void {
 
 dispatchEvent(new Event(ClassName.EVENT_NAME));
 
 }
 
 Isn't this weird? Is there any reason why this behavior happens?
 
 TIA
 ___
 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] Question about Google Maps Flash APIs

2008-05-15 Thread eric e. dolecki
They offer up a SWC, any way of using that in the Flash IDE without using
FlexBuilder?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Question about Google Maps Flash APIs

2008-05-15 Thread eric e. dolecki
Its a monumental pain in the ass to load it and extract the classes out... I
hope Google just releases the classes for non-Flex stuff... but maybe they
have all kinds of hidden crap in there they don't want people to see?
On Thu, May 15, 2008 at 11:05 AM, Romuald Quantin 
[EMAIL PROTECTED] wrote:

 Or if you have the SWC downloadable you can just copy the file near the FLA
 file, flash will load it automatically.

 Romu
 www.soundstep.com


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Sidney de
 Koning
 Sent: 15 May 2008 15:51
 To: Flash Coders List
 Subject: Re: [Flashcoders] Question about Google Maps Flash APIs

 YUP :)

 An swc file is notthing more than a zip file. So when you rename it to
 zip you can extract it, probably there is a library.swf in there.
 This is what you do is this you load it in in Flash like this:

 import flash.display.Loader;
 //
 var ClassFileForHoldingGooglesAPIClass:Class;
 // Create these for everyclass you want to extract.
 //
 function loadAssets():void
 {
 var assetLoader:Loader = new Loader();
 assetLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
 assetLoaderComplete);
 assetLoader.load(new URLRequest(library.swf));
 }

 When the library.swf is done loading it calls the assetLoaderComplete
 handler that handles the
 request and utilizes the getDefinition() method to get the class
 definition by a string.

 function assetLoaderComplete(evt:Event):void
 {
 // remove your listener
 evt.target.removeEventListener(Event.COMPLETE, assetLoaderComplete);
 var appDomain:ApplicationDomain = evt.target.applicationDomain;

 ClassFileForHoldingGooglesAPIClass =
 appDomain.getDefinition(com.google.maps.api.Whatever) as Class;
 }

 Now can create and instance of the MyOwnButton, simply by calling:

 var myNewObject:Class = new ClassFileForHoldingGooglesAPIClass();

 Or call functions on the  ClassFileForHoldingGooglesAPIClass.

 Hope this is what you mean.

 Cheers,

 Sidney


 On May 15, 2008, at 3:41 PM, eric e. dolecki wrote:

  They offer up a SWC, any way of using that in the Flash IDE without
  using
  FlexBuilder?
  ___
  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] How to create Radio Buttons with Grouping

2008-04-30 Thread eric e. dolecki
Check HelpF1

On Wed, Apr 30, 2008 at 4:19 PM, ACE Flash [EMAIL PROTECTED] wrote:

 I dragged 2 radio buttons on the Stage ( from Components panel ). I would
 like to group them so when I click one of them, I could get radio 1 or 2
 selected.

 Does anyone know how to do this?

 Thanks
 ___
 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] Tweening alpha value of a TextField

2008-04-27 Thread eric e. dolecki
embed your font. in as3 a textfield is a displayObject and has an alpha
property. If HydroTween is AS2 only, then you might need to wrap it in a
movieclip (I haven't heard of HydroTween before)

On Sun, Apr 27, 2008 at 8:42 AM, Patrick Jakub Jankun [EMAIL PROTECTED] wrote:

 Hi Everyone,

 Im fooling around with the HydroTween and Go, what I noticed, that if I
 want
 To tween the alpha value from 0 to 1 or 1 to 0.

 Tweeninig the alpha property won't work on TextFields :| Is there a way to
 convert an TextField to a graphic and make this tweening work or am I
 doing
 Something wrong? Generally I run unto that issue before, so it seems to
 apply to other Tweening engines and TextFields as well.

 Tweening of X, Y, Scale values and so on seem to work without problems

 I'm a newbie, so an info or pinpointing how to make it right it would be
 appreciated.

 Greetings,
 Patrick

 -

 jankun.org ­ fancy skills to pay the bills

 web:jankun.org | under development
 skype:  Synaps1s
 mail:   p[at]jankun.org






 ___
 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] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread eric e. dolecki
Every SWF to be loaded would need an instance of that custom class and
register its events, etc. with it so a method could be called on it to blow
it up.
I think.

Seems like it would be a pretty monstrous booger to do and implement.

On Wed, Apr 16, 2008 at 11:01 AM, Matt S. [EMAIL PROTECTED] wrote:

 Is there any conceivable way that such a thing could be built as a
 custom class, should Adobe choose to ignore the masses?

 .m

 On Wed, Apr 16, 2008 at 9:49 AM, Jer Brand [EMAIL PROTECTED] wrote:
  hmmm, that's not so bad... I'm kinda partial to:
 
  myMovie.forceUnload()
 
 
   or
 
  myMovie.noSeriouslyUnload()
 
   Although this also has it's own sort of personal charm:
 
 myMovie.iDontCareIfYouHaveListeners_DIE_DAMN_YOU_DIE() ;
 
 
   Sorry, read this after my morning caffeine rush hit and couldn't help
 it.
 
 
  ___
   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] dynamic text and _alpha

2008-04-15 Thread eric e. dolecki
is the font embedded?

On Tue, Apr 15, 2008 at 9:47 AM, Lehr, Theodore M (N-SGIS) 
[EMAIL PROTECTED] wrote:


 I am changing the _alpha value of a mc when a button is clicked A
 dynamic textbox in the mc is not being affected by it... Everything else
 in the mc is... how can I change the _alpha value of a dynamic textbox
 in a mc?
 ___
 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] Is Adobe fixing this big FP9 problem?

2008-04-14 Thread eric e. dolecki
Indeed, its pretty bad and pretty unworkable in some circumstances as Grant
has pointed out. Ick.

On Mon, Apr 14, 2008 at 2:25 PM, Brian Mays [EMAIL PROTECTED] wrote:

 I don't completely understand everything it's describing but I sent it on
 to
 our programming team who responded with the words wow...heinous bug.

 Brian Mays


 On 4/14/08 12:58 PM, Steven Sacks [EMAIL PROTECTED] wrote:

  And just a note here, but the blogosphere is starting to come alive with
  people talking about this issue.
 
  Funny that MXNA has been down for the past couple of days.

 ___
 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] A question about localConnection

2008-04-11 Thread eric e. dolecki
I would like to place a SWF in a web page on a server, and have
localConnection work with a SWF on the desktop (localhost).

The following 2 classes work fine when run locally, and fine when run both
online. Is there a trick I can use, or do I need to use XMLSocket somehow
for this?

*SENDER (to be in a webpage)*

package net.ericd.utils
{
import flash.display.Sprite;
import flash.net.LocalConnection;
import flash.events.StatusEvent;
import flash.utils.Timer;
import flash.events.TimerEvent;

/**
 * This SWF will reside in a web page.
 */
public class LocalConnectionSender extends Sprite
{
private var conn:LocalConnection;
private var myTimer:Timer;
private var circle:Sprite;

public function LocalConnectionSender()
{
conn = new LocalConnection();
conn.allowDomain( *, localhost );
conn.addEventListener( StatusEvent.STATUS, onStatus );
myTimer = new Timer( 500, 0 );
myTimer.addEventListener( TimerEvent.TIMER, ping );

circle = new Sprite();
circle.graphics.beginFill( 0xFF6600, 1 );
circle.graphics.drawCircle( 50, 50, 10 );
circle.graphics.endFill();
circle.alpha = 0;
addChild( circle );

myTimer.start();
}

private function onStatus( event:StatusEvent ):void
{
switch( event.level )
{
case status:
circle.alpha = 1;
break;
case error:
circle.alpha = 0.3;
break;
}
}

private function ping( event:TimerEvent ):void
{
conn.send( lifeConnection, lcHandler, hello );
}
}
}

*RECEIVER (to be local on desktop):*

package net.ericd.utils
{
import flash.display.Sprite;
import flash.net.LocalConnection;

public class LocalConnectionReceiver extends Sprite
{
private var conn:LocalConnection;

/**
 * This SWF will reside on the desktop, local.
 */
public function LocalConnectionReceiver()
{
conn = new LocalConnection();
conn.allowDomain( *, localhost );

conn.client = this;
try
{
conn.connect( lifeConnection );
} catch ( error:ArgumentError )
{
trace( Can't connect, name already in use. );
}
}

public function lcHandler( msg:String ):void
{
trace( received data:  + msg );
}
}
}


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


Re: [Flashcoders] A question about localConnection

2008-04-11 Thread eric e. dolecki
Rich,

That was it. I totally missed that in the online docs.

Hanging my head in shame here, thanks for pointing that out though!

On Fri, Apr 11, 2008 at 3:06 PM, Rich Shupe [EMAIL PROTECTED] wrote:

 Eric, could the problem be that you're not preceding the connection names
 with underscores?

 Rich
 http://www.LearningActionScript3.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] Two for loops and one if statement into one for loop.

2008-04-07 Thread eric e. dolecki
I don't think anything would be faster than having no code to execute ;)
You forgot to paste it.

On Mon, Apr 7, 2008 at 11:12 AM, Helmut Granda [EMAIL PROTECTED]
wrote:

 Is there a way to edit the code below to be included into just one for
 loop
 and would it actually be faster? On a side note any site/book
 recommendations on how to for this kind of odd sequences..

TIA
 ___
 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] Krugle?

2008-03-28 Thread eric e. dolecki
Anyone ever use Krugle.org to search for AS source code?
I just ran into the site, and I am not sure what to think yet. For other
languages it might be better, but I'm currently unsure without spending time
in the system. The search results and tabbed interface, etc. is pretty sweet
though.
- eric
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2, AM/PM or 24 time format?

2008-03-26 Thread eric e. dolecki
don't all computers use 24 hour clocks and the user can decide whether or
not to display 12/24?

On Wed, Mar 26, 2008 at 12:13 PM, Glen Pike [EMAIL PROTECTED]
wrote:

 Hi,

Look at the Date class - you can use getDate, etc.  or getUTCDate,
 etc.  so I guess you could compare and contrast.

I don't think this would enable you to differentiate between 12  24
 hour clock though.

Glen

 Pasha wrote:
  Hey!
 
  Is it possible to detect time settings on user computer?
  I would like to know whether he/she uses american (AM/PM) or european 24
  hour time format.
 
  Pasha
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 

 --

 Glen Pike
 01736 759321
 www.glenpike.co.uk http://www.glenpike.co.uk
 ___
 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] AS3 sftp

2008-03-25 Thread eric e. dolecki
SVN Repository seems to be empty :/

On Tue, Mar 25, 2008 at 9:41 AM, Muzak [EMAIL PROTECTED] wrote:

 http://maliboo.riaforge.org/

 - Original Message -
 From: laurent [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, March 25, 2008 2:16 PM
 Subject: [Flashcoders] AS3 sftp


 
  Hi,
 
  Would it be possible to do a sftp client in Flash/AIR ?
 
  With AMF ?? or with Haxe/Neko perhapsor red5??
 
  thx
  L
  ___
  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] AS3 sftp

2008-03-25 Thread eric e. dolecki
http://projects.maliboo.pl/FlexFTP/

That seems to work, but nothing else. Better than nothing. This is
Apollo-specific, not sure much changed there for AIR.

On Tue, Mar 25, 2008 at 10:11 AM, Glen Pike [EMAIL PROTECTED]
wrote:

 Maybe you have to FTP to get the source :0

 eric e. dolecki wrote:
  SVN Repository seems to be empty :/
 
  On Tue, Mar 25, 2008 at 9:41 AM, Muzak [EMAIL PROTECTED] wrote:
 
 
  http://maliboo.riaforge.org/
 
  - Original Message -
  From: laurent [EMAIL PROTECTED]
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Sent: Tuesday, March 25, 2008 2:16 PM
  Subject: [Flashcoders] AS3 sftp
 
 
 
  Hi,
 
  Would it be possible to do a sftp client in Flash/AIR ?
 
  With AMF ?? or with Haxe/Neko perhapsor red5??
 
  thx
  L
  ___
  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
 
 
 

 --

 Glen Pike
 01736 759321
 www.glenpike.co.uk http://www.glenpike.co.uk
 ___
 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] prob in Flex 3/AIR

2008-03-25 Thread eric e. dolecki
I have this bit of code in my AIR app:

mx:Model id=myTopics
topics
topic label=AS3 Reference data=
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/; /
topic label=Adobe AIR Marketplace data=
http://www.adobe.com/cfusion/exchange/index.cfm?event=productHomeexc=24loc=en_us;
/
topic label=Flex 3.0 Reference data=
http://livedocs.adobe.com/flex/3/langref/index.html/
topic label=Getting started with Flex 3 data=
http://livedocs.adobe.com/flex/3/html/index.html/
topic label=Kirupa AS3 Forums data=
http://www.kirupa.com/forum/forumdisplay.php?f=141/
topic label=ericd.net blog data=http://www.ericd.net/eed.php
/
/topics
/mx:Model

I get this error:

The reference to entity exc must end with the ';' delimiter.

Its a string, so is this a compiler bug?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] prob in Flex 3/AIR

2008-03-25 Thread eric e. dolecki
thanks much! works like a charm.

On Tue, Mar 25, 2008 at 1:24 PM, Ian Thomas [EMAIL PROTECTED] wrote:

 The XML parser is trying to expand exc into an XML entity - since 
 is the signifier for an XML entity.

 Instead of , use amp; (which is the entity that represents a  sign).

 Try:
 topic label=Adobe AIR Marketplace data=

 http://www.adobe.com/cfusion/exchange/index.cfm?event=productHomeamp;exc=24amp;loc=en_us
 
  /

 Ian

 On Tue, Mar 25, 2008 at 5:12 PM, eric e. dolecki [EMAIL PROTECTED]
 wrote:
  I have this bit of code in my AIR app:
 
   mx:Model id=myTopics
  topics
  topic label=AS3 Reference data=
   http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/; /
  topic label=Adobe AIR Marketplace data=
 
 http://www.adobe.com/cfusion/exchange/index.cfm?event=productHomeexc=24loc=en_us
 
   /
  topic label=Flex 3.0 Reference data=
   http://livedocs.adobe.com/flex/3/langref/index.html/
  topic label=Getting started with Flex 3 data=
   http://livedocs.adobe.com/flex/3/html/index.html/
  topic label=Kirupa AS3 Forums data=
   http://www.kirupa.com/forum/forumdisplay.php?f=141/
  topic label=ericd.net blog data=
 http://www.ericd.net/eed.php
   /
  /topics
  /mx:Model
 
   I get this error:
 
   The reference to entity exc must end with the ';' delimiter.
 
   Its a string, so is this a compiler bug?
   ___
   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] Sound.loadSound ?isStreaming?

2008-03-25 Thread eric e. dolecki
setBufferTime ?

On Tue, Mar 25, 2008 at 2:26 PM, Andrew Sinning [EMAIL PROTECTED]
wrote:

 I may not quite understand how to use the the isStreaming:Boolean
 parameter of the Sound.loadSound() function in AS2.

 If set to true, the sound will start playing as soon as enough data is
 downloaded.  I got that.  But what if I want to load the sound, _allow_
 streaming, but _not_start_ it as soon as enough data is ready?  In other
 words, I'd like to preload the sound, but not necessarily wait until
 it's all downloaded before starting it.

 I guess the follow up question is, why?  I'm just trying to keep my
 options open.  Maybe I need to just choose one or the other?

 Thanks!
 ___
 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] AS3 Coding Conventions Question

2008-03-17 Thread eric e. dolecki
Well, you're only going to use the FOO_BAR, so I don't think it really
matters. Instead of a string, you could use a number and just have it be 1,
etc. as well.

On Mon, Mar 17, 2008 at 12:05 AM, Jason Van Cleave [EMAIL PROTECTED]
wrote:

 This is a pretty nice doc and I agree/use most of these while doing as3
 development. The use of ALL_CAPS constants makes sense to me but I am not
 understanding what the purpose would be to not make the variable be the
 same
 as the value.

 For instance, this is what Adobe says and does from:

 http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions

 --
 Constant names

 Use all uppercase letters with underscores between words: OFF,
 DEFAULT_WIDTH
 .

 The words in the identifier must match the words in the constant value if
 it
 is a String:

 public static const FOO_BAR:String = fooBar;

 --

 For me it makes more sense and helps consistency to make it:

 public static const FOO_BAR:String = FOO_BAR;


 Anyone have a defense to Adobe's position?
 ___
 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] 9-slice scaling not working when used as mask

2008-03-13 Thread eric e. dolecki
I haven't tried what you're doing, but you might be better off using the
drawAPI and a method to draw your mask instead if probs continue. Thats the
old-fashioned way to me.

eric

On Thu, Mar 13, 2008 at 8:48 AM, Martin Klasson [EMAIL PROTECTED] wrote:

 Hi Flashcoders,

 my subject might said it all
 am having a mask which is a movieclip with rounded corners, but when used
 as
 a mask - the 9-slice scaling
 seems to be out of function.

 Is there a way around this, is it a bug or intentional response?

 The solution that I know of, but dont like - is to make a movieclip with
 different movieclips in it to take
 care of the rounded corners in the old-fashioned way.

 --

 Martin Klasson
 Flash Developer
 Parkgatan 9-11
 S-411 24 Göteborg
 Sweden
 Office +46 (0) 31 711 54 50
 Cell +46 (0) 730 964 561
 [EMAIL PROTECTED]
 www.kokokaka.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] Is there any grid component in AS 3.0

2008-03-10 Thread eric e. dolecki
check out Flex.

On Mon, Mar 10, 2008 at 8:08 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi All
 I am looking for a grid container in AS 3.0. With my search I found that
 AS
 3.0 supports Data Grid but for holding data not for visual layout
 perspective. I am looking something for visual layout perspective. My aim
 is
 that if user drops 4 objects on the main screen  and hits arrange button
 then 4 objects will be arranged in a 2x2 grid format. Any ideas e(xcept to
 manually specifying the coordinates) how would i do that and which
 container
 i will use for that.
 Thanks in advance
 Anuj
 ___
 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] AS2 vs. AS3: instantiate library symbols with a loop string concatenation

2008-03-04 Thread eric e. dolecki
for( var i:uint = 0; i30; i++ )
{
var sym:MovieClip = new Item();
sym.name = sym+i;
someContainer.addChild( sym );
}
...
someContainer.getChildAt( nIndex );
etc.



On Tue, Mar 4, 2008 at 3:25 PM, jonathan howe [EMAIL PROTECTED]
wrote:

 Imagine I have in my library a series of MovieClips with linkage
 identifiers
 like so:

 sym0
 sym1
 sym2
 ...
 sym29

 In AS2, if I wanted to create instances of each one (or perhaps decide
 which
 symbol to use based on XML data, for example), I could use a for loop:

 for (var i:Number = 0; i  30; i ++) {
var new_mc:MovieClip = parent_mc.attachMovie(sym + i, sym + i, i);
// do stuff with clip
 }

 and create each symbol via passing a concatenated string as symbolName.

 Now, in AS3, I can't think of a way to do this efficiently. In our simple
 example, I can only think of the following:

 for (var i:int = 0; i  30; i ++) {
 var sym:MovieClip;
 switch (i) {
 case 0: sym = new sym0();
 case 1: new sym1();
 case 2: new sym2();
 ...
 }
// do stuff with clip
 }


 Is there a more efficient way to do this in AS3? You can't really
 instantiate a class based on a stringname, can you?


 --
 -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
 ___
 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] How do you do this?

2008-02-25 Thread eric e. dolecki
tons of math and some papervision3d.



On Mon, Feb 25, 2008 at 4:40 PM, Jim Robson [EMAIL PROTECTED]
wrote:

 Hello all,

 There's a neat 3D CS3 demo from a Japanese tour. I'd like to know how to
 go
 about creating this kind of effect; my (few and rare) attempts at 3D
 animation in Flash have not performed nearly this well:

 http://www.adobe.com/jp/events/cs3_web_edition_tour/swfs/perform.swf

 Any ideas/hints/urls/etc?

 - Jim

 ___
 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


<    1   2   3   4   5   >