Re: [Flashcoders] PureMVC vs Cairngorm // who's better?

2011-06-23 Thread Joel Stransky
I have to go with Robot Legs on this one.

On Sat, Jun 11, 2011 at 10:08 AM, Christoffer Enedahl 
christof...@enedahl.com wrote:

 PureMVC

 artur skrev 2008-04-11 21:08:

 whats the verdict for using one over the other --  for a Flex+AMFphp  RIA.



 thanks


 __**_
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] PureMVC or RobotLegs ?

2010-09-14 Thread Joel Stransky
I've done my last three projects in robotlegs. All were different sized
projects and I found myself dong no more or less work on any of them. I'd
have to say it's just more nimble than PureMVC. It's easy to grow your app
as scopes tend to creep.

On Mon, Sep 13, 2010 at 4:31 PM, Karim Beyrouti ka...@kurst.co.uk wrote:

 Thanks ! - that helps make the decision.

 On 13 Sep 2010, at 21:24, Jesse Warden wrote:

  What Matt Gitchell said.
 
  On Mon, Sep 13, 2010 at 4:19 PM, Karim Beyrouti ka...@kurst.co.uk
 wrote:
 
  Ah - yes, the cool icon must learn robotlegs...
 
  once you know an MVC framework - in theory i guess it more or less
 applies
  to another. Whatever the pros  cons of using a framework for one man
  projects - there seems to be some demand for it out there; turned down a
 job
  today as i was not familiar with RobotLegs + short deadline. Another
 PureMVC
  one last week so, it's time to learn..
 
  I can see that using a framework probably makes it easier to deal with
  someone else's code (and pass projects about) - but does it make the job
  easier on smaller jobs?
 
  ... anyway... I guess that's 1 vote for Robotlegs... PureMVC - anyone
 ?...
 
  - k
 
 
  On 13 Sep 2010, at 20:15, Merrill, Jason wrote:
 
  RobotLegs (not Robolegs) is the rage with all the kids these days.
  Plus, the icon for it is way cooler.
 
 
  Jason Merrill
 
  Instructional Technology Architect
  Bank of America   Global Learning
 
  Join the Bank of America Flash Platform Community  and visit our
  Instructional Technology Design Blog
  (Note: these resources are only available to Bank of America
 associates)
 
 
 
 
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com
  [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karim
  Beyrouti
  Sent: Monday, September 13, 2010 2:40 PM
  To: Flashcoders List
  Subject: [Flashcoders] PureMVC or RoboLegs ?
 
  Hi all,
 
  After having a few clients screaming for MVC capable developers - i am
  finally about to byte the bullet and learn an MVC framework.
 
  So, which framework is more popular - PureMVC, or RoboLegs? I guess
 that
  once you learn one, the other makes sense - if so - which would you
  recommend ?
 
  Thanks !
 
 
  - Karim
  ___
  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




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


[Flashcoders] Flex Coders List

2009-11-18 Thread Joel Stransky
What is the Flex equivalent of this mailing list?

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


Re: [Flashcoders] Flex Coders List

2009-11-18 Thread Joel Stransky
Thank you friends.

On Wed, Nov 18, 2009 at 9:53 AM, Paul Andrews p...@ipauland.com wrote:

 Joel Stransky wrote:

 What is the Flex equivalent of this mailing list?



 Surprisingly..  http://groups.yahoo.com/group/flexcoders/



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




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


[Flashcoders] Converting .swf playback to .mov

2009-10-21 Thread Joel Stransky
Ok, I'm well aware of the limitation in exporting an .fla to quicktime. You
only get the main timeline, no sub clips or scripted animation. What I'm
asking is if there's some new product on the market that has tackled this
issue successfully. So far is looks like a screen reader is the way to go,
I'd just like to get some alpha (key) control over the output that doesn't
require me recording it over a green background.

Thanks for any direction.

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


[Flashcoders] getCharBoundaries and display lists

2009-10-20 Thread Joel Stransky
I'm getting some very odd behavior from getCharBoundaries.
My goal is to just great a TextField, apply a text format and set some text
where I can just loop over the characters and collect an array of
boundaries. Since its just for measuring, I don't want to add it to a
display list.

The odd part is that if I don't add it, the x (left) property of each
rectangle returned are different, but only by a few tenths of a pixel. As a
result when I create a TextField for each character and add them to the
stage they are more or less stacked on top of each other. Adding to the
oddity is that if I do add the test field to a display list before I loop
over it and remove afterward, the rectangle properties are correct.

One would assume that TextFields simply have to be on a display list in
order to be measured right? But then I see this:
http://wonderfl.net/code/2ddd528f5519ecd6921c5ad787f6383ac5659d32 showing it
working without ever adding the test field.

Of course for testing I'm staying away from embedded font and using the
system's Arial.

I've made my code near identical to that linked example so the only real
difference is that I'm building an AIR app as opposed to a normal .swf.

Any idea what gives and why my textfield needs to be added prior to calling
getCharBoundaries?

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


[Flashcoders] Re: getCharBoundaries and display lists

2009-10-20 Thread Joel Stransky
Wow, it's definitely something with AIR. I switched over to fp10 in my
publish settings and it worked fine. Doesn't really solve the issue just
gives us a little more insight as to what's happening.

On Tue, Oct 20, 2009 at 1:17 PM, Joel Stransky j...@stranskydesign.comwrote:

 I'm getting some very odd behavior from getCharBoundaries.
 My goal is to just great a TextField, apply a text format and set some text
 where I can just loop over the characters and collect an array of
 boundaries. Since its just for measuring, I don't want to add it to a
 display list.

 The odd part is that if I don't add it, the x (left) property of each
 rectangle returned are different, but only by a few tenths of a pixel. As a
 result when I create a TextField for each character and add them to the
 stage they are more or less stacked on top of each other. Adding to the
 oddity is that if I do add the test field to a display list before I loop
 over it and remove afterward, the rectangle properties are correct.

 One would assume that TextFields simply have to be on a display list in
 order to be measured right? But then I see this:
 http://wonderfl.net/code/2ddd528f5519ecd6921c5ad787f6383ac5659d32 showing
 it working without ever adding the test field.

 Of course for testing I'm staying away from embedded font and using the
 system's Arial.

 I've made my code near identical to that linked example so the only real
 difference is that I'm building an AIR app as opposed to a normal .swf.

 Any idea what gives and why my textfield needs to be added prior to calling
 getCharBoundaries?

 --
 --Joel Stransky
 stranskydesign.com




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


Re: [Flashcoders] best way to use external interface

2009-09-30 Thread Joel Stransky
Keep in mind as a second parameter to  ExternalInerface.call() you can pass
arguments. There's actually some hidden power to EI where the js doesn't
even need to exist physically in the html. You can actually write js right
from EI and then call it and or delete it later.
http://www.actionscript.org/resources/articles/745/1/JavaScript-and-VBScript-Injection-in-ActionScript-3/Page1.html

On Mon, Sep 28, 2009 at 2:24 PM, Gregory Boland
breakfastcof...@gmail.comwrote:

 yup just like that

 On Mon, Sep 28, 2009 at 2:17 PM, Gustavo Duenas 
 gdue...@leftandrightsolutions.com wrote:

  Ok, thanks, so it should work this way right?
 
  Gustavi
 
  On Sep 28, 2009, at 12:53 PM, Gregory Boland wrote:
 
   thats essentially it.
 
  Syntax is slightly different
 
  if (ExternalInterface.available){
  ExternalInterface.call(openMyWindow);}
  }
 
  make sure to import flash.external.ExternalInterface;
 
  and when u tell it what the name of the method in the javascript is
 leave
  off the ()
 
 
 
  On Mon, Sep 28, 2009 at 12:18 PM, Gustavo Duenas 
  gdue...@leftandrightsolutions.com wrote:
 
   Hi I have a function in javascript on the html
 
  like:
 
  script type=javascript
 
  function openMyWindow(){
  document.getElementByID(myWindow).setStyle(etc)
  }
 
  and I would like to use it from falsh something like this:
 
  mybutton.addEventlistener(MouseEvent.CLICK, contactJavascript);
 
  function contactJavascript(e:MouseEvent):void{
 
  if (externalInterface.available){
  externalInterface.call(openMyWindow());
  }
 
  let me know if this could work at all.
  I'm trying to find a google about it, but all seems so obscure
  any help appreciated
 
  ___
  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




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


Re: [Flashcoders] Catalyst

2009-09-30 Thread Joel Stransky
It's definitely not a tool worth integrating into your work flow until at
least version 2. For now it might be a nice utility to generate some data
that might otherwise be difficult but as far as being able to pass a
catalyst file back and forth between artist and developer? No way.

On Mon, Sep 28, 2009 at 9:39 AM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 Catalyst is still really rough - I wasn't initially impressed with the
 first public beta at all, but the tool has great potential and I'm
 hopeful and excited for the release next year.  And yes, it's MXML
 output, not pure AS3.


 Jason Merrill

 Bank of  America   Global Learning
 Learning  Performance Soluions

 Monthly meetings on making the most of the Adobe Flash Platform -
 presented by bank associates, Adobe engineers, and outside experts in
 the borader multimedia community - join the Bank of America Flash
 Platform Community  (note: this is for Bank of America employees only)





 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony
 Pace
 Sent: Saturday, September 26, 2009 6:29 PM
 To: Flash Coders List
 Subject: [Flashcoders] Catalyst

 Anyone try catalyst?  Does it only output to flex style code that make
 babies cry, or does it output do pure AS3 too?
 ___
 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




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


Re: [Flashcoders] time based smooth animation w/ GTween. HELP!

2009-09-11 Thread Joel Stransky
Grant has now merged forces with Jack Doyle, author of TweenLite, TweenMax
and TweenGroup. The syntax is almost identical and I think you'll have an
easier time achieving the effect you want. A tweens pulse can be updated
via a setInterval, use of a Timer object, based on the milliseconds a flash
movie has been running (getTime) or Enter_Frame events. Enter_Frame has
proven to be the most reliable but due to differences in computer speed and
network conditions none of them are bullet proof. TweenLite, I believe uses
a combination of enter_frame and a Timer where the pulse is updated via
enter_frame and the Timer object is then used to determine exactly which
frame of the tween is to be rendered. This means if for some reason the
flash movie lags, you may see a jump in animation in order to complete in
the time you've allotted. You do not have to specify this when using
TweenLite but keep in mind your movies framerate, the distance of the tween
and the amount of time you are allowing for the tween to finish all factor
in to the smoothness of playback.

On Fri, Sep 11, 2009 at 10:48 AM, Isaac Alves isaacal...@gmail.com wrote:

 Hello!

 I would like to create a time based and very smooth animation with
 GTween (or another one).
 But I´m used to GTween , though.

 here is my code:

 var plantaTween = new GTween(planta, 1.5, {y: 414}, {delay: 0.8,
 reversed: true, reflect: true, repeat: 999, ease:Quartic.easeInOut});

 I´ve read the following examples in Gtween´s documentation and
 somewhere else but i can-t quite understand it ..

 GTween.timingMode = GTween.TIME;

 at http://www.gskinner.com/blog/archives/2008/08/gtween_a_new_tw.html

 should I use:
  plantaTween.timingMode = GTween.TIME;
 or:
  GTween.timingMode = GTween.TIME; ?

 What does the latter exactly means? it doesn´t do nothing. maybe cause
 the default timeInterval property is 25ms. how do i set it ?

 the first one throws a reference error Error #1056:

 and i-ve seen this also at the documentation
 http://www.gskinner.com/libraries/gtween/docs/

 Implementation
 public static function get timeInterval():uint
 public function set timeInterval(value:uint):void

 Implementation
 public static function get timingMode():String
 public function set timingMode(value:String):void

 but cannot figure out how to implement it...

 help ! thanks !

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




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


[Flashcoders] debugging events

2009-09-03 Thread Joel Stransky
I have some custom event classes for my project but one of them is just
failing outright. I can verify that the function that dispatches the event
is being called correctly but the object that's listening for it will never
get it. The event class has two constants, one works, one doesn't. Is there
a good way to verify that events are being broadcast or to debug wtf the
handler never gets triggered?

Thanks.

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


[Flashcoders] Weird htmlText line break behavior

2009-08-21 Thread Joel Stransky
I'm encountering an odd problem in as3/fp9-10 when dealing with embedded
fonts, condensed whitespace, style sheet objects and  br / tags. I wanted
to see if you guys have heard of it or can verify it as a bug.

I have a textfield set up as such. The intent is to remove all p tag
indents and get fully left justified text with paragraphs having larger
leading than individual lines :

var myTF:TextField = new TextField();
myTF.autoSize = TextFieldAutoSize.LEFT;
myTF.embedFonts = true;
myTF.condenseWhite = true;
myTF.antiAliasType = AntiAliasType.ADVANCED;
myTF.multiline = true;
myTF.wordwrap = true;
myTF.styleSheet = myStyleSheet;

The stylesheet is an imported .css file and below is the html imported from
an .xml file and protected by a CDATA tag:

h2About Us/h2br /
p class=normalstrongLorem/strong ipsum dolor sit amet,
consectetur/pbr /
p class=normalLorem ipsum dolor sit amet, consectetur./pbr /
p class=normalLorem ipsum dolor sit amet, consectetur./pbr /
p class=normalLorem ipsum dolor sit amet, consectetur./p

The result is fully left justified text but the br / tags are ignored.
Each paragraph does start on a new line but directly below the the previous.

I decided to try a version of the css clear break trick used in xhtml which
produced the results I wanted but for no discernible reason.

I created this style in the .css file,

.lineBreak {
  leading: 20;
}

and altered ONLY the first br / tag to this p class=lineBreak /
The weird thing is that not only did the first paragraph get the correct
amount of space, they all did. For some reason, an empty styled p / tag
caused the following br / tags to be recognized.

Thoughts?

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


[Flashcoders] Duplicate multiple lines in FlashDevelop?

2009-08-18 Thread Joel Stransky
Anyone know how? Like if I want to dupe an entire function sig.

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


Re: [Flashcoders] Duplicate multiple lines in FlashDevelop?

2009-08-18 Thread Joel Stransky
Seems like it'd be an incredibly useful feature.

On Tue, Aug 18, 2009 at 9:40 AM, Pedro Taranto ptara...@gmail.com wrote:

 don't know about multiple lines, but to duplicate a simple line just use
 CTRL+D

 --
 Pedro Taranto


 Joel Stransky wrote:

 Anyone know how? Like if I want to dupe an entire function sig.



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




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


[Flashcoders] negative scale

2009-08-18 Thread Joel Stransky
Know of any good workarounds for when you need to set the scale to negative?
as in mySprite.scaleX = -1; //scaleX only accepts positive integers.

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


Re: [Flashcoders] Duplicate multiple lines in FlashDevelop?

2009-08-18 Thread Joel Stransky
Thanks, you're a big help champ.

On Tue, Aug 18, 2009 at 11:58 AM, Sidney de Koning
sid...@funky-monkey.nlwrote:

 Oh shiite ... on a mac its CMD :-)


 On Aug 18, 2009, at 5:49 PM, Kenneth Kawamoto wrote:

  No, it won't work on Macs ;)

 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 Sidney de Koning wrote:

 Yeah it is, they call it copy-pasting ;-) The key command is CTRL-C to
 copy and CTRL-V to paste... Think it even works on a mac too...
 One extra key command, but still incredibly usefull! ;-)
 Sorry couldn't help it ... :-)
 On Aug 18, 2009, at 4:46 PM, Joel Stransky wrote:

 Seems like it'd be an incredibly useful feature.

 On Tue, Aug 18, 2009 at 9:40 AM, Pedro Taranto ptara...@gmail.com
 wrote:

  don't know about multiple lines, but to duplicate a simple line just
 use
 CTRL+D

 --
 Pedro Taranto


 Joel Stransky wrote:

  Anyone know how? Like if I want to dupe an entire function sig.



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




 --
 --Joel Stransky
 stranskydesign.com

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


 Sidney de Koning - be a geek, in rockstar style!
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com

 3GB free storage you can sync with your mobile device or Mac or PC.
 Check out https://www.getdropbox.com/referrals/NTI1MjcxMzk

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




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


Re: [Flashcoders] Duplicate multiple lines in FlashDevelop?

2009-08-18 Thread Joel Stransky
That is awesome!

On Tue, Aug 18, 2009 at 3:15 PM, Latcho spamtha...@gmail.com wrote:

 Then let me be your champ today.
 http://greencollective.nl/blog/?p=24
 Latcho


 Joel Stransky wrote:

 Thanks, you're a big help champ.

 On Tue, Aug 18, 2009 at 11:58 AM, Sidney de Koning
 sid...@funky-monkey.nlwrote:



 Oh shiite ... on a mac its CMD :-)


 On Aug 18, 2009, at 5:49 PM, Kenneth Kawamoto wrote:

  No, it won't work on Macs ;)


 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 Sidney de Koning wrote:



 Yeah it is, they call it copy-pasting ;-) The key command is CTRL-C to
 copy and CTRL-V to paste... Think it even works on a mac too...
 One extra key command, but still incredibly usefull! ;-)
 Sorry couldn't help it ... :-)
 On Aug 18, 2009, at 4:46 PM, Joel Stransky wrote:



 Seems like it'd be an incredibly useful feature.

 On Tue, Aug 18, 2009 at 9:40 AM, Pedro Taranto ptara...@gmail.com
 wrote:

  don't know about multiple lines, but to duplicate a simple line just


 use
 CTRL+D

 --
 Pedro Taranto


 Joel Stransky wrote:

  Anyone know how? Like if I want to dupe an entire function sig.



  ___


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




 --
 --Joel Stransky
 stranskydesign.com



 ___


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



 Sidney de Koning - be a geek, in rockstar style!
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com

 3GB free storage you can sync with your mobile device or Mac or PC.
 Check out https://www.getdropbox.com/referrals/NTI1MjcxMzk

 ___
 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




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


[Flashcoders] Type Coercion failed: library symbols and custom classes

2009-08-14 Thread Joel Stransky
This I just don't get. I have a flash site where a particular .swf is
present the entire time so I'm loading up it's library with the movieclips
and bitmaps I'll need throughout the site. It's document class has a few
simple public methods that return an instance of the symbol like this.
//in libraryswf
public function createMyBitmap():BitmapData{
  return new MyBitmap(0,0);  //MyBitmap is the export/linking class name for
a bitmap in the .fla's library.
}

I then created a singleton class to use as sort of an api so any class could
create an instance of MyBitmap with MyAPI.instance.createMyBitmap() which
looks like this
public function createMyBitmap():MyBitmap{
  return libraryswf.createMyBitmap();
}

This all worked fine for the first two symbols I created which were bitmaps.
I extended BitmapData in order to add some custom properties.
But when I went to add a movieclip to the flow, my api function started
throwing this runtime error

Error # 1034: Type Coercion failed: cannot convert
com.domain.mypackage::mymoviec...@27133a67 to
com.domain.mypackage.MyMovieClip.

I tried typing it as a MovieClip at each part of the process which worked
but of course I lose my custom props and methods.
Any idea on how to deal with this properly? Thanks.


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


Re: [Flashcoders] Type Coercion failed: library symbols and custom classes

2009-08-14 Thread Joel Stransky
You are probably correct. This however is a Gaia project so I'm not handling
any of the loading. It seems I need to get my api into the app domain
somehow.

On Fri, Aug 14, 2009 at 10:13 AM, Juan Pablo Califano 
califa010.flashcod...@gmail.com wrote:

 Looks like both classes are treated as different entities, most likely due
 to application domain sandboxing. If that's the case, the definition of
 that
 class in both the parent and child swf don't match and so you get an
 coercion error.

 Try passing a LoaderContext object with ApplicationDomain.current to the
 Loader.
 (From memory);

 var context:LoaderContext = new
 LoaderContext(false,ApplicationDomain.current);
 loader.load(request,context);


 Cheers
 Juan Pablo Califano
 2009/8/14 Joel Stransky j...@stranskydesign.com

  This I just don't get. I have a flash site where a particular .swf is
  present the entire time so I'm loading up it's library with the
 movieclips
  and bitmaps I'll need throughout the site. It's document class has a few
  simple public methods that return an instance of the symbol like this.
  //in libraryswf
  public function createMyBitmap():BitmapData{
   return new MyBitmap(0,0);  //MyBitmap is the export/linking class name
 for
  a bitmap in the .fla's library.
  }
 
  I then created a singleton class to use as sort of an api so any class
  could
  create an instance of MyBitmap with MyAPI.instance.createMyBitmap() which
  looks like this
  public function createMyBitmap():MyBitmap{
   return libraryswf.createMyBitmap();
  }
 
  This all worked fine for the first two symbols I created which were
  bitmaps.
  I extended BitmapData in order to add some custom properties.
  But when I went to add a movieclip to the flow, my api function started
  throwing this runtime error
 
  Error # 1034: Type Coercion failed: cannot convert
  com.domain.mypackage::mymoviec...@27133a67 to
  com.domain.mypackage.MyMovieClip.
 
  I tried typing it as a MovieClip at each part of the process which worked
  but of course I lose my custom props and methods.
  Any idea on how to deal with this properly? Thanks.
 
 
  --
  --Joel Stransky
  stranskydesign.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




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


Re: [Flashcoders] Type Coercion failed: library symbols and custom classes

2009-08-14 Thread Joel Stransky
Yep that was it! Gaia allows for an application domain to be set in the
site.xml's page and asset nodes via a domain attribute. You have to set it
in every node involved in the branch when I'd prefer a side-wide setting but
it works. It f*cking works!

On Fri, Aug 14, 2009 at 10:32 AM, Joel Stransky stranskydes...@gmail.comwrote:

 You are probably correct. This however is a Gaia project so I'm not
 handling any of the loading. It seems I need to get my api into the app
 domain somehow.


 On Fri, Aug 14, 2009 at 10:13 AM, Juan Pablo Califano 
 califa010.flashcod...@gmail.com wrote:

 Looks like both classes are treated as different entities, most likely due
 to application domain sandboxing. If that's the case, the definition of
 that
 class in both the parent and child swf don't match and so you get an
 coercion error.

 Try passing a LoaderContext object with ApplicationDomain.current to the
 Loader.
 (From memory);

 var context:LoaderContext = new
 LoaderContext(false,ApplicationDomain.current);
 loader.load(request,context);


 Cheers
 Juan Pablo Califano
 2009/8/14 Joel Stransky j...@stranskydesign.com

  This I just don't get. I have a flash site where a particular .swf is
  present the entire time so I'm loading up it's library with the
 movieclips
  and bitmaps I'll need throughout the site. It's document class has a few
  simple public methods that return an instance of the symbol like this.
  //in libraryswf
  public function createMyBitmap():BitmapData{
   return new MyBitmap(0,0);  //MyBitmap is the export/linking class name
 for
  a bitmap in the .fla's library.
  }
 
  I then created a singleton class to use as sort of an api so any class
  could
  create an instance of MyBitmap with MyAPI.instance.createMyBitmap()
 which
  looks like this
  public function createMyBitmap():MyBitmap{
   return libraryswf.createMyBitmap();
  }
 
  This all worked fine for the first two symbols I created which were
  bitmaps.
  I extended BitmapData in order to add some custom properties.
  But when I went to add a movieclip to the flow, my api function started
  throwing this runtime error
 
  Error # 1034: Type Coercion failed: cannot convert
  com.domain.mypackage::mymoviec...@27133a67 to
  com.domain.mypackage.MyMovieClip.
 
  I tried typing it as a MovieClip at each part of the process which
 worked
  but of course I lose my custom props and methods.
  Any idea on how to deal with this properly? Thanks.
 
 
  --
  --Joel Stransky
  stranskydesign.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




 --
 --Joel Stransky
 stranskydesign.com




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


Re: [Flashcoders] FlexBuilder 3 auto-complete vs. FlashDevelop

2009-08-14 Thread Joel Stransky
Hey Steven, does FD crash on you when you have your view split and choose
File-close all?

On Thu, Aug 13, 2009 at 8:44 PM, Steven Sacks flash...@stevensacks.netwrote:

 In FlexBuilder, they don't start appearing as auto-completion hints as you
 type. You have to hit CTRL+SPACE. This is not a mere difference. You have
 to stop writing code to get auto-completion. Even worse, it's not live
 which means it breaks your natural flow.

 In FlashDevelop, you can hit space, return, period, open parentheses, open
 bracket, or any non-alphanumeric character and it will auto-complete.  In
 FlexBuilder (and AFAIK, FDT) only return works.

 Here's a simple example:

 var loader:Loader;

 In FlashDevelop, you type these exact characters:

 lo.l(

 And it turns into this:

 loader.load(


 In Flex Builder, you have to type this:

 lo CTRL+SPACE RETURN . l RETURN


 That's 3 mental breaks.  FlashDevelop's auto-completion is a natural flow
 and doesn't interrupt your typing, FlexBuilder's does three times.

 Let's quickly look at Flex Builder's example again in detail so I can
 really illustrate the mental break it causes.

 lo CTRL+SPACE RETURN . l RETURN

 First, you have to hit two keys to get the hint, and then one more key to
 accept the hint.  Then, you type the period and then have to hit return
 again to accept the load function hint.  That last return causes oad( to
 appear.

 The important part of that completion is the open parentheses.  You are
 expected to type RETURN to type ( and that is a mental break.  It's far more
 natural to type open parentheses because that's what your mind knows goes
 after a method name.  Sure, SHIFT+9 is not as easy to type as ENTER, but
 that's hardly the point.  This is about your mental flow as you type.  One
 makes you think (three times), the other doesn't because it just makes
 sense.

 FlashDevelop's auto-completion allows you to access arrays and such easily,
 too.

 var array:Array = [];

 FlashDevelop:

 ar[

 Ends up with

 array[


 FlexBuilder you have to type:

 ar CTRL+SPACE ENTER [

 Lame.

 On top of that, if you make a typo in FlexBuilder or FDT, the hints go
 away.  If you press CTRL+SPACE and there's a typo you get no hints.  In
 FlashDevelop, typos are forgiven and code hints still show up, and again,
 live as you type.

 When it comes to auto-completion, the undisputed winner is FlashDevelop.
  FDT is in second place, and FlexBuilder a distant third.

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




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


Re: [Flashcoders] manage conent of multiple frames with a single framescript

2009-08-06 Thread Joel Stransky
google addFrameScript()

On Thu, Aug 6, 2009 at 11:19 AM, Isaac Alves isaacal...@gmail.com wrote:

 I would lke to know if I can manage the content of multiple frames without
 having to create a script for each frame.

 project:
 This is part of a type of powerpoint style presentation in flash. another
 time I'll certainly try to do it by loading everything in the XML, and no
 frame Nav. then the listener should not only tween the textfields and
 movieclips, but also get the values of these objects by xml.

 a mouse click calls a function that fades out a textfield in a frame, go to
 another frame and fades in the textfield that is in that frame.

  Code:

 function changeFrame(e):void
 {
if (_txt){
new GTween(_txt, 0.3 ,{alpha:0});
}
var timer:Timer = new Timer(300, 1);
timer.addEventListener(TimerEvent.TIMER, function(){
e.target.addEventListener(Event.ENTER_FRAME, updateFrame);
gotoAndStop(e.target.frameLink);
   });
timer.start();
 }

 function updateFrame(e:Event):void
 {

if (_txt){
_txt.alpha =0;
new GTween(_txt, fadeDuration ,{alpha:1});

}

e.target.removeEventListener(Event.ENTER_FRAME, updateFrame);
timer.reset();
 }

 problem:
 when it changes frame, the actual movieclip or textfield will be there with
 alpha 1. so it blinks, between the two alpha animations.

 conditions:
 the fade should function with many movieclips, some of which won't exist in
 every frame, that's why the verification ( if (!_txt)... ) But for the
 moment I'm doing it like this.

 I surely don't want to write scripts in every frame, so that's the reason I
 wrote the code like this.

 And anyway, I somehow feel that I shouldn't do it that way. What do you
 people think about it ?

 Thanks in advance !
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] Filtering xml with E4X

2009-07-22 Thread Joel Stransky
The predicate filter should also work.

myXMLList:XMLList = projectsXML..tags.(tag == Website);  //return an
XMLList object containing all tag nodes who's value is Website

On Thu, Jul 16, 2009 at 9:11 AM, Mark Burvill li...@eyegas.com wrote:

 Awesome - that's what I'm after. I didn't know about contains.

 Thanks


 On 16 Jul 2009, at 13:56, Kenneth Kawamoto wrote:

  You may want to try:

 projectsXML.project.(tags.tag.contains(Website))

 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 Mark Burvill wrote:

 Hello flashcoders,
 I'm trying to work out how to filter the below XML (loaded into a var
 called projectsXML) by the contents of the tag nodes, but can't quite
 get it working.
 So for instance, how would I use an E4X expression to return an XMLList
 that contained only those projects which have a tag of Website?
 Here's the xml:
 projects
   project
   titleMy project/title
   tags
   tagWebsite/tag
   /tags
   /project
   project
   titleAnother project/title
   tags
   tagGame/tag
   /tags
   /project
   project
   titleYet another one/title
   tags
   tagWebsite/tag
   tagGame/tag
   tagApplication/tag
   /tags
   /project
   project
   titleAnd another/title
   tags
   tagGame/tag
   tagWebsite/tag
   /tags
   /project
 /projects
 Thanks,
 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




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


Re: [Flashcoders] Just a stupid question (hope you can help me)

2009-07-22 Thread Joel Stransky
You should be able to set this in the Gaia panel that's added to the Flash
IDE when you install the framework.

On Mon, Jul 20, 2009 at 11:09 AM, Mario Gonzalez ma...@wddg.com wrote:

 I'm not familiar with the Gaia framework, so I'm not sure what some of
 those function calls (alignSite()) or properties are (__WIDTH).
 However all you need to do, is call this on onResize

 --
 x = int(stage.stageWidth/2 - width/2);
 y = int(stage.stageHeight/2 - height/2);
 -
 Another thing to note, is that width and height will change depending on
 whats on the stage.
 If you know that going in you will have stuff that might break the frame
 (even if masked), you want to use your preset width and height in which case
 you just call:
 --
 x = int(stage.stageWidth/ 2 - 1024/2);
 y = int(stage.stageHeight/ 2 - 768/2);
 ---

 You want to make sure you place the center of the stage to the center of
 your object (half it's width).

 Hope it helps,
 http://onedayitwillmake.com


 PWMedia | Paul Wolthuis wrote:

 Hi there,

 I've got a question.

 I'm sort of a scriptdummy and having a problem to make a gaia sit  fully
 scalable.
 To make it clear, i want the full site to scale  up or down to the  size
 of the browserwindow and center it horizontal and vertical.

 Hope anyone can help me.
 Thanks so far!

 Paul

 --

 package
 {
import com.gaiaframework.core.GaiaMain;

import flash.display.StageScaleMode;
import flash.display.StageAlign;
import flash.events.Event;

public class Main extends GaiaMain
{
public function Main()
{
super();
siteXML = xml/site.xml;
}
override protected function
 onAddedToStage(event:Event):void
{
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
alignSite(1024, 768);
super.onAddedToStage(event);
}
override protected function onResize(event:Event):void
{
view.x = Math.round((stage.stageWidth - __WIDTH) /
 2);
view.y = Math.round((stage.stageHeight - __HEIGHT)
 / 2);
}
}
 }
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 4261 (20090720) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com



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




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


Re: [Flashcoders] To Void or not to void?? That is my question..

2009-07-14 Thread Joel Stransky
 mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com

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




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


Re: [Flashcoders] Getting hypertext to work

2009-07-14 Thread Joel Stransky
Just test it within a browser.

On Tue, Jul 14, 2009 at 12:25 AM, Karl DeSaulniers k...@designdrumm.comwrote:

 Do you have your swf set to access local or network only in the publish
 settings?

 If you have your swf set to local only, it will generate this warning if
 you click a web url inside the swf.

 HTH

 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com


 On Jul 13, 2009, at 11:14 PM, Alan Neilsen wrote:

  When I use 'Options' in 'Properties' to apply a link to text in my Flash
 movie (CS4), it works okay when I test the movie, but when I create the SWF
 and try the same thing, it tells me, Adobe Flash player has stopped a
 potentially unsafe operation. This seems strange, because hypertext created
 in Dreamweaver does not generate a potentially unsafe warning, so why
 should it happen in Flash? There is no point me changing my Flash Player
 settings (as advised by the warning) because it still won't work for my
 client's end users (who are generally computer-illiterate, and cannot be
 expected to understand about changing Flash Player settings). Is it possible
 to create a hypertext link in Flash CS4 that will just work without the need
 to change Flash Player settings?

 This message is for the named person’s use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or; lost by any mistransmission. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and notify
 the sender. You must not directly or indirectly, use, disclose,
 distribute, print or copy any part of this message if you are not the
 intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
 any of its subsidiaries each reserve the right to monitor all e-mail
 communications through its networks. Any views expressed in this
 message are those of the individual sender, except where the
 message states otherwise and the sender is authorised to state them
 to be the views of any such entity.


 #
 This e-mail message has been scanned for Viruses and Content and cleared
 by MailMarshal

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




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


[Flashcoders] styled text disappears when clicked or animated

2009-07-09 Thread Joel Stransky
I have an entire site full of runtime created TextFields. Some are styled
with Stylesheet objects, others with TextFormat objects. That all works fine
but when it comes time to script some tweens on them or their display
parents, the text disappears!
Running the .swf by itself locally tends to work just fine but as soon as a
browser displays it... poof, gone. I haven't done much testing with and
without formatting/styling/embeded fonts since going without is pretty much
out of the question.

Anyone know the wicked little trick I know exists out there somewhere? I
just want to finish this bad boy and get some sleep. :)

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


Re: [Flashcoders] Is this error prone? [loading multiple images]

2009-07-09 Thread Joel Stransky
That's good thinking. I'll have to look into it some more. This one is just
hard to test since removeEventListener fails silently if the listener isn't
on the targets listener list.

On Thu, Jul 9, 2009 at 12:53 PM, Ktu ktu_fl...@cataclysmicrewind.comwrote:

 I think I see a problem with this. I don't know how often GarbageCollection
 runs, but if the loader you create has no references to it, and the only
 event listener to it is set to have a weakReference, then the loader could
 get discarded before it finishes, unless the act of loading doesn't allow
 it
 to be removed.

 Otherwise, as far as I know, that looks like it should be fine to get
 reference to the loader again and remove the event listener.
 ?

 Ktu

 On Tue, Jul 7, 2009 at 12:50 PM, Joel Stransky j...@stranskydesign.com
 wrote:

  I'm wondering if I can use a for loop to create local Loader objects,
  assign
  listeners to their LoaderInfo objects without overwriting any of them and
  still be able to clean up after.
 
  Say I have the following inside a function body
 
  var img:Loader = new Loader();
  img.contentLoaderInfo.addEventListener(Event.COMPLETE, onThumb, false, 0,
  true);
  img.load(new URLRequest(someImage.jpg));
 
  and the following handler
 
  private function onThumb(e:Event):void
  {
 var loader:Loader = Loader( LoaderInfo(e.target).loader );
 loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onThumb);
 var thumbNail:Bitmap = new Bitmap(Bitmap(loader.content).bitmapData);
 thumbNail.x = (itemWidth - thumbNail.width) / 2;
 addChild(thumbNail);
  }
 
  Will the handler work its way back to the Loader that was created
  temporarily and remove a listener from it?
  Is there a better way to using throw away loaders?
 
 
  --
  --Joel Stransky
  stranskydesign.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




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


Re: [Flashcoders] styled text disappears when clicked or animated

2009-07-09 Thread Joel Stransky
I considered that Kari but it just too much of a performance hit I'm afraid.
There might be something to combing cacheAsBitmap = true and selectable =
false...

On Thu, Jul 9, 2009 at 5:54 PM, Karl DeSaulniers k...@designdrumm.comwrote:

 Can you set the value of the textBox to a variable in the first state and
 specify while tweening or any other function that the textBox = thatVariable
 while performing?
 Might work. That way, while tweening or other, your specifying that the
 text is the same and loaded.
 If it was an animation sequence, I would say put the  textBox =
 thatVariable; code on the play frames between tween key frames for e.g..
 JAT

 Karl



 On Jul 9, 2009, at 4:44 PM, Barry Hannah wrote:

  I have a similar issue, runtime created Textfields in a scrolling list.
 If the mouse is within the bounds of the list and I use the scrollwheel
 to scroll, when the text goes under the cursor it vanishes. I've tried
 cache as bitmap, didn't work.

 Any ideas to overcome this annoying little bit of Flash voodoo?




 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Joel
 Stransky
 Sent: Friday, 10 July 2009 9:37 a.m.
 To: Flash Coders List
 Subject: [Flashcoders] styled text disappears when clicked or animated

 I have an entire site full of runtime created TextFields. Some are
 styled
 with Stylesheet objects, others with TextFormat objects. That all works
 fine
 but when it comes time to script some tweens on them or their display
 parents, the text disappears!
 Running the .swf by itself locally tends to work just fine but as soon
 as a
 browser displays it... poof, gone. I haven't done much testing with and
 without formatting/styling/embeded fonts since going without is pretty
 much
 out of the question.

 Anyone know the wicked little trick I know exists out there somewhere? I
 just want to finish this bad boy and get some sleep. :)



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


 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com


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




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


[Flashcoders] Is this error prone? [loading multiple images]

2009-07-07 Thread Joel Stransky
I'm wondering if I can use a for loop to create local Loader objects, assign
listeners to their LoaderInfo objects without overwriting any of them and
still be able to clean up after.

Say I have the following inside a function body

var img:Loader = new Loader();
img.contentLoaderInfo.addEventListener(Event.COMPLETE, onThumb, false, 0,
true);
img.load(new URLRequest(someImage.jpg));

and the following handler

private function onThumb(e:Event):void
{
var loader:Loader = Loader( LoaderInfo(e.target).loader );
loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onThumb);
var thumbNail:Bitmap = new Bitmap(Bitmap(loader.content).bitmapData);
thumbNail.x = (itemWidth - thumbNail.width) / 2;
addChild(thumbNail);
}

Will the handler work its way back to the Loader that was created
temporarily and remove a listener from it?
Is there a better way to using throw away loaders?


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


[Flashcoders] Author Time RadioButtonGroups

2009-05-22 Thread Joel Stransky
My .fla has auto declare unchecked and a radio button group on the stage.
Each of their property panels have the groupName param set to myRBG
How do I reference the group in my document class other than recording the
.group property of one of the radio buttons?

trace(myRBG) does not work.

For anything else I'm used to declaring the display object in my document
class but I don't know what scope radiobuttongroups have so I'm a little
confused.

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


Re: [Flashcoders] Tween a matrix transformation

2009-05-01 Thread Joel Stransky

As with everything else you beat me to it Jack. Congrats on v11!

--Joel

On May 1, 2009, at 10:04 AM, Jack Doyle j...@greensock.com wrote:


You could do this:

var matrix:Matrix = mc.transform.matrix;

TweenLite.to(matrix, 1, {a:1.5, b:0.2, c:0.2, d:1.5, tx:100, ty:100,
onUpdate:applyMatrix, onUpdateParams:[mc, matrix]});

function applyMatrix($mc:DisplayObject, $matrix:Matrix):void {
   $mc.transform.matrix = $matrix; //for changes in the matrix to take
effect, it must be re-applied.
}

Jack

-Original Message-
From: Mendelsohn, Michael [mailto:michael.mendels...@fmglobal.com]
Sent: Friday, May 01, 2009 9:31 AM
To: Flash Coders List
Subject: [Flashcoders] Tween a matrix transformation

Hi list...

I'm trying to think of the best way to tween a sprite that's been
transformed, with all 6 props of its matrix property having been  
altered.  I
use TweenLite a lot...should I write 6 lines of code, one for each  
matrix

property?

Any suggestions for the most optimal way to tween a matrix transform?

Thanks,
- Michael M.




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

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


Re: [Flashcoders] Dynamicly created text-pages...

2009-04-23 Thread Joel Stransky
You can use the scrollV and maxScrollV properties to determine if you have
text outside of the field.

if(myTextField.scrollV != myTextField.maxScrollV){
  //scrollbars or pagination needed
}

On Thu, Apr 23, 2009 at 8:05 AM, Sander Schuurman b...@chello.nl wrote:

 Hi cool list,

 Got myself a little optimazation challenge.

 I'm getting HTML text from an XML file. The big text needs to be split into
 different pages, depending on the size of the text.
 What's the best way to approach this?

 I'm no counting words, en add words to a dynamic TextField (with css-style)
 en check with every word if it is still within the boundaries of the page.
 If it exceeds the height, then we will make another page and continue with
 adding the words. For really large texts this won't be the fastest way I
 guess.

 Any thoughts on this subject?


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




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


Re: [Flashcoders] Smart Preloading

2009-04-16 Thread Joel Stransky
Better yet, go with the client as preloader technique described in this
video.
http://gotoandlearn.com/play?id=85

On Thu, Apr 16, 2009 at 9:55 AM, allandt bik-elliott (thefieldcomic.com) 
alla...@gmail.com wrote:

 in as3, i'd recommend looking up the Loader class in the helpfiles

 :)

 On Thu, Apr 16, 2009 at 2:48 PM, Dennis - I Sioux den...@isioux.nl
 wrote:

  Hey,
 
  Tried to use a UILoader to check the bytes loaded of a single
 movieclip(in
  the library).. but this isn't working.
  Has anyone got a suggestion to check the loaded bytes of an mc?
 
  Thought the LoaderInfo only reffers to the mc's owner.
 
  Goal is to preload each game level seperately when it is needed.(if it
  hasn't loaded while playing the previous level yet).
 
  With kind regards,
 
  Dennis
  Isioux
  ___
  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




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


Re: [Flashcoders] Fake Preloading

2009-04-16 Thread Joel Stransky
Add it to the grave yard when done.
http://www.prettyloaded.com/

On Thu, Apr 16, 2009 at 3:55 PM, Pedro Kostelec pedrok...@gmail.com wrote:

 I guess it's the first time he encounters himself with a flash website and
 wants to have a shiny one. haha.
 Tell him that the Youtube player doesn't have a preloader.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] Math: Is this correct?

2009-04-10 Thread Joel Stransky
Assuming PaperVision3D or Away3D don't do what you need, there is some great
source code samples you can download from here.
http://www.friendsofed.com/book.html?isbn=1590597915
Must have book btw.

On Fri, Apr 10, 2009 at 10:52 AM, Jer Brand thejhe...@gmail.com wrote:

 Okay, so I'm taking my first little steps into 3d in actionscript
 (simulated
 with x/yscale for now) and needed a version of Point.polar() (thanks Jason)
 to play around with in 3 dimensions. I came up with the code below, but my
 math skills are weak enough that I'm not sure it's functioning correctly.
 Anyone care to school me on this or confirm the math is correct?


 public static function polarToCartesian3D(distance:Number, degrees1:Number,
 degrees2:Number ):Point3D
 {
 var a1:Number = (degrees1 * Math.PI) / 180 ;
  var a2:Number = (degrees2 * Math.PI) / 180 ;
 var x:Number = distance * Math.sin(a1) * Math.cos(a2) ;
  var y:Number = distance * Math.sin(a1) * Math.sin(a2) ;
 var z:Number = distance * Math.cos(a1) ;
  return new Point3D(x, y, z) ;
  }


 Thanks in advance for the assist.

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




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


Re: [Flashcoders] ColorTransform GTween

2009-04-10 Thread Joel Stransky
Keep in mind gTween will only have one final version due to the merger.

On Fri, Apr 10, 2009 at 6:05 AM, Paul Venton pauldarks...@googlemail.comwrote:

 Taken a look at the comments on here:
 http://www.gskinner.com/blog/archives/2008/08/gtween_a_new_tw.html after a
 quick search on Google.

 coltw:GTween = new GTween(theclip.transform.colorTransform, 0.5, {
 redOffset:255, greenOffset:255, blueOffset:255 }, { ease:Circular.easeOut }
 );
 coltw.setAssignment(theclip.transform, colorTransform);


 I've not tested it since I use TweenLite/Max - it should at least give you
 some idea.

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jiri
 Sent: 10 April 2009 10:39
 To: Flash Coders List
 Subject: Re: [Flashcoders] ColorTransform GTween

 Is there really nobody that knows how to do it?

 Jiri

 Karl DeSaulniers wrote:
  Oh yeah, TweenLite is really easy and a realy great class.
  TweenMax too. They definately have tween for color. And MUCH more.
  Worth its weight in gold.
 
  Karl DeSaulniers
  Design Drumm
  http://designdrumm.com
 
  On Apr 8, 2009, at 7:27 PM, Muzak wrote:
 
  but is there really nobody out there who knows how to do it ?
 
  I'm sure Mr. Google knows.
 

 http://www.google.com/search?hl=enq=tween+colortransformmeta=aq=1oq=twee
 n+color
 
 
  And I'm pretty sure AnimationPackage has some color stuff.
  http://www.alex-uhlmann.de/flash/animationpackage/
 
  - Original Message - From: Jiri jiriheitla...@googlemail.com
 
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Sent: Wednesday, April 08, 2009 8:11 PM
  Subject: Re: [Flashcoders] ColorTransform GTween
 
 
  Thanx Ashum...,but is there really nobody out there who knows how to
  do it ?
  Jiri
  Ashim D'Silva wrote:
  Never used GTween before, but Grant is joining forces with Jack Doyle
  of TweenLite, and that library is incredibly easy to use. If the
  possibility exists, you might want to switch libraries, and soon, you
  should get the best of both worlds.
  2009/4/9 Jiri jiriheitla...@googlemail.com:
  I am experimenting with GTween from Grant Skinner. I cant seem to
  figure out
  how to do a color transform. Does somebody know how to do that?
  Here is what i have:
 
  import fl.motion.easing.*;
  import com.gskinner.motion.*
 
  var colorInfo:ColorTransform = clip.transform.colorTransform;
 
  trace(colorInfo);
 
  var myTween:GTween = new GTween(clip,2,{color:0xFFcc00});
  myTween.setAssignment(clip.transform,colorTransform);
 
  //resulting in flickering of color of the clip.
 
  Jiri
 
  ___
  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




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


Re: [Flashcoders] Flashplayer positioning

2009-04-02 Thread Joel Stransky
Is there any off-stage content that might be causing this?

On Thu, Apr 2, 2009 at 12:42 PM, Glen Pike g...@engineeredarts.co.ukwrote:

 Hi,

   I have just setup FP10 in standalone on my Gentoo Linux box and am
 running a SWF from the command line in standalone mode.

   The x, y position of my SWF is all wrong - the SWF is positioned mostly
 off the screen.  Reverting to FP9 standalone it works fine.

   The SWF is compiled for AS2.

   Does anyone have any ideas about this??
 Ta

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




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


Re: [Flashcoders] id3 runtime error

2009-04-02 Thread Joel Stransky

Are they id3 version 1 or 2?

--Joel

On Apr 2, 2009, at 7:51 PM, Dave Segal d...@oddcast.com wrote:

I have a bug that is driving me nuts. I am loading an mp3 file from  
the
same server as my swf. About 1 in 30 tries when trying to reading  
the id3
tags after the ID3 event I get a runtime error telling me I need to  
load
the crossdomain policy file in order to access the tags. I tried  
setting
the checkpolicyfile flag to true and placing a valid crossdomain.xml  
on

the server but the error occurs with the same frequency.

___
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 Object reference

2009-03-30 Thread Joel Stransky
Just remember that the mc's aren't available for garbage collection until
they are removed from the array.

On Mon, Mar 30, 2009 at 3:19 PM, Taka Kojima t...@gigafied.com wrote:

 photoStrip_mc[thumbnail + I]_mc._width

 and

 photoStrip_mc.thumbnail[I]_mc._width

 won't work.

 [] basically serve the purpose of periods they represent
 heirarchy, they don't perform an eval() (there is no AS3 equivalent of
 AS2's eval() btw).

 You were on the right path with: photoStrip_mc[thumbnail + i +
 _mc]._width

 The only issue I see wrong is using ._width instead of .width

 Then again, it is out of context, so I don't know what the rest of
 your code is, it might be that you are not properly assigning the
 values.

 As Muzak mentioned, I also usually just store mc's that I need to loop
 through in an array and do it that way.

 - Taka

 On Mon, Mar 30, 2009 at 12:02 PM, TS sunnrun...@gmail.com wrote:
  Ok that was my other question. Bouncing back from PHP to AS3 is making me
  insane. Thanks for the info. Arrays are def the way to go.
 
  Thanks again, T
 
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com
  [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Muzak
  Sent: Saturday, March 28, 2009 7:50 PM
  To: Flash Coders List
  Subject: Re: [Flashcoders] AS3 Object reference
 
  There's no _width in AS3.. it's width.
  Array access notation should work fine:
 
  photoStrip_mc[thumbnail + i + _mc].width;
 
 
  As a sidenote, you're better off storing references in an array for easy
  access later.
 
  myClips = new Array();
  var len:uint = 10;
  for(var i:uint=0; ilen; i++) {
 var mc:MovieClip = new MovieClip();
 photoStrip_mc.addChild(mc);
 myClips.push(mc);
  }
 
 
  If you need to access the clips at some later time, just loop through the
  myClips Array.
 
  var len:uint = myClips.length;
  for(var i:uint=0; ilen; i++) {
 var mc:MovieClip = myClips[i];
 mc.width = someValue;
  }
 
  regards,
  Muzak
 
 
  - Original Message -
  From: TS sunnrun...@gmail.com
  To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
  Sent: Sunday, March 29, 2009 3:09 AM
  Subject: [Flashcoders] AS3 Object reference
 
 
  Trying to cylec through some objects. This doesn't seem to work in AS3
 as
  it
  does in AS2. Is there an equivalent in AS3?
 
 
 
  photoStrip_mc[thumbnail + i + _mc]._width
 
 
 
  Thanks ahead, T
 
 
  ___
  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




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


Re: [Flashcoders] ?: how to prevent users to copy text from a TextArea?

2009-03-27 Thread Joel Stransky
Target the TextArea's TextField

details_ta.textField.selectable = false;

On Fri, Mar 27, 2009 at 2:39 PM, pe...@pepo.nl wrote:

 Ian,

 thanks for replying. Unfortunately noop.

 I use the htmlText property of the TextArea instance instead of the text
 prioperty to display text (such as details_ta.htmlText = btext
 sample/b; and details_ta is an TextArea instance on the stage).

 Could that something have to do with it?

 Peter

 Citeren Ian Thomas i...@eirias.net:


  Try:
  textArea.textField.selectable=false;

 HTH,
   Ian

 On Fri, Mar 27, 2009 at 4:38 PM,  pe...@pepo.nl wrote:


 I'll have to prevent users to copy text from a TextArea. In Flex I saw
 you
 do that bij setting a selectable attribute of the mx.controls.TextArea to
 false.

 However, this seems not possible with the fl.controls.TextArea, which is
 used in Flash CS4 / AS3.

 Does someone has a tip or hint.
 Thanks.

 PS. setting editable of the TextArea to false doesn't help, and setting
 the
 enabled attribute of the TextArea to false gives a disabled look and is
 not
 the intention.

 Peter van der Post



 ___
 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




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


Re: [Flashcoders] Flash Future - Unity3D, iPhone and performance

2009-03-20 Thread Joel Stransky
Disk space will be the least of all issues. What you say about Quark is
quite relevant. I would say it's already happening. I'd have never become a
developer if it weren't for the actionscript 1.0 on-ramp. But after 9 years,
I'm seriously considering a move to full time Unity development. There's no
reason at all that Unity can't experience the same ubiquity as the
flashplayer with a more seamless installer. Once macromedia started the
built in upgrading with fp v6, new version adoption sped up dramatically.
The recently released fp10 penetration numbers are impressive to say the
least.

More on point, the lack of flashplayer on iPhone is purely control and well
within Apple's rights. I support lawful profit security. But it does not
close the gate completely on porting actionscript/flex based apps to the
iPhone. Just yesterday I was reading
herehttp://www.unitzeroone.com/blog/2008/11/28/adobe-alchemy-is-it-actionscript-heresy/about
C++ conversion. You all remember the Quake demo I'm sure. There's no
secret agreement between Unity and Apple that I know of, Unity has simply
created a great compiler for an already supported language. I think it's
quite possible to create a similar tool for actionscript and flex.

On Fri, Mar 20, 2009 at 10:04 AM, Glen Pike g...@engineeredarts.co.ukwrote:


  Naturally, to get the optimum feature set you will need to buy the whole
 A-Phone suite, A-SatNav, A-PhotoDevice, etc to get the best from the
 A-Phone, further slimming the wallet. On the downside you will require a
 pocket a foot square to put it all in..  ;-)

 And another pocket a foot square for the hard disk needed to install all
 the common files...

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




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


Re: [Flashcoders] Flash Future - Unity3D, iPhone and performance

2009-03-20 Thread Joel Stransky
I'm not suggesting Unity is a replacement for flash so much as that it's
worth having a viable market. I'd like to be able to tell a client some day
who has a banner campaign only capable in Unity that it has a large enough
install base.

On Fri, Mar 20, 2009 at 3:00 PM, Taka Kojima t...@gigafied.com wrote:

 Unity is pretty kick-ass, but Unity != Flash

 They serve two different purposes. Unity is a multiplatform game
 development tool, whereas Flash is more encompassing -- i.e. it is not
 strictly a gaming platform, in fact though it is used quite a bit for
 online games, that is not its main purpose.

 You can't build a website in Unity... therefore, the only real
 semi-contender to Flash is Silverlight, I really don't think Flash is
 in too much danger at the moment.



 On Fri, Mar 20, 2009 at 11:32 AM, Joel Stransky
 stranskydes...@gmail.com wrote:
  Disk space will be the least of all issues. What you say about Quark is
  quite relevant. I would say it's already happening. I'd have never become
 a
  developer if it weren't for the actionscript 1.0 on-ramp. But after 9
 years,
  I'm seriously considering a move to full time Unity development. There's
 no
  reason at all that Unity can't experience the same ubiquity as the
  flashplayer with a more seamless installer. Once macromedia started the
  built in upgrading with fp v6, new version adoption sped up dramatically.
  The recently released fp10 penetration numbers are impressive to say the
  least.
 
  More on point, the lack of flashplayer on iPhone is purely control and
 well
  within Apple's rights. I support lawful profit security. But it does not
  close the gate completely on porting actionscript/flex based apps to the
  iPhone. Just yesterday I was reading
  here
 http://www.unitzeroone.com/blog/2008/11/28/adobe-alchemy-is-it-actionscript-heresy/
 about
  C++ conversion. You all remember the Quake demo I'm sure. There's no
  secret agreement between Unity and Apple that I know of, Unity has simply
  created a great compiler for an already supported language. I think it's
  quite possible to create a similar tool for actionscript and flex.
 
  On Fri, Mar 20, 2009 at 10:04 AM, Glen Pike g...@engineeredarts.co.uk
 wrote:
 
 
   Naturally, to get the optimum feature set you will need to buy the
 whole
  A-Phone suite, A-SatNav, A-PhotoDevice, etc to get the best from the
  A-Phone, further slimming the wallet. On the downside you will require
 a
  pocket a foot square to put it all in..  ;-)
 
  And another pocket a foot square for the hard disk needed to install all
  the common files...
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
  --
  --Joel Stransky
  stranskydesign.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




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


Re: [Flashcoders] Flash Future - Unity3D, iPhone and performance

2009-03-20 Thread Joel Stransky

 Banner ads, really??

Yeah banner ads. Or whatever the case may be. I don't just shell out flash
on a whim, only if it's the only platform that can achieve my clients needs.
We've always wanted a good 3d solution and even Anark guys are moving over
to Unity. Just saying it'd be nice to have that option should the need
arise.

On Fri, Mar 20, 2009 at 5:51 PM, Muzak p.ginnebe...@telenet.be wrote:

 quote
 Unity is a multiplatform game development tool
 /quote

 Banner ads, really??

 I'd like to be able to tell a client some day
 who has a banner campaign only capable in Unity that it has a large enough
 install base.


 That to me sounds like cramming a banner ad into the Quake engine.

 One of the reasons Flash became so popular was because of its small
 filesize.
 The Unity plugin is about 11mb, flash plugin (fp10) is around 1.5mb.

  I'm not surprised apple doesn't want flash on their iPhone because of
 performance issues. But the Flash Player is a slow virtual machine, isn't
 that right?


 I'd say for a 1.5mb plugin its damn fast and it gets better with every
 version.

  Yes the Flash Platform has wonderful tool and framework to create
 applications, but how long before someone is coming all these tools (such as
 AIR, the Flex framework, layouts and components)? Maybe Unity? Maybe
 another?


 People have been saying this for years now, still have to see it happen.
 Silverlight anyone??

  Even if Flash will be here for a great bunch of years, I don't see a real
 good future unless they re-write a real new Virtual Machine that is taking
 all the power you can use from a computer.


 At what cost?
 I'm pretty sure this has nothing to do with Adobe not being able to write a
 decent VM.
 Meaning, I'm sure they're capable of doing so, but at what cost? Well, for
 one, filesize comes to mind again.

 Is there a market for Unity 3D? I'm sure there is and their demo site shows
 that as well.
 Does this affect Adobe/Flash? I seriously doubt it. As Taka pointed out:

 Unity is pretty kick-ass, but Unity != Flash

 One is a game development platform, the other a rich (internet) application
 platform.

 regards,
 Muzak

 - Original Message - From: Joel Stransky 
 stranskydes...@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Friday, March 20, 2009 8:53 PM
 Subject: Re: [Flashcoders] Flash Future - Unity3D, iPhone and performance


  I'm not suggesting Unity is a replacement for flash so much as that it's
 worth having a viable market. I'd like to be able to tell a client some
 day
 who has a banner campaign only capable in Unity that it has a large enough
 install base.

 On Fri, Mar 20, 2009 at 3:00 PM, Taka Kojima t...@gigafied.com wrote:


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




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


Re: [Flashcoders] Tips for newbie

2009-03-20 Thread Joel Stransky
://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] crossdomain policy requests

2009-03-19 Thread Joel Stransky
I think you could have used 1 policy up through flashplayer v6. After that
they changed the sandbox to consider sub-domains separate domains. I'm
guessing that's true for ports too. I'd be interested to hear if you figure
it out.

On Thu, Mar 19, 2009 at 7:51 AM, Glen Pike g...@engineeredarts.co.ukwrote:

 Hi,

   I have a flash app running from a standalone player in Linux that
 requests files from a webserver connection on localhost:80 and also connects
 to a socket on localhost:3000

   Both of these connections require a crossdomain policy file
 implementation one in the webroot and one pushed down the socket even
 though the xml on both says all hosts all ports.

   Is this how it's supposed to work, because it's really annoying having to
 do a x-domain file for every connection...

   Is there anyway around this?

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




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


Re: [Flashcoders] tiny remoting with weborb in as3 pure sang

2009-03-12 Thread Joel Stransky
Have you looked at amfphp http://www.amfphp.org/or is that not an option?

On Thu, Mar 12, 2009 at 2:06 PM, Latcho spamtha...@gmail.com wrote:

 Hi friends,

 I'm a bit of a novice when it comes to remoting.
 I want to be able to use remoting with weborb-php in AS3 pure sang, fairly
 compact , without mxml configuation and remaining as functional as possible.

 Setting a direct endpoint into the remotingObject amfchannel was quite
 impossibe due to it beign a getter only and only configurable trough mxmlc,
 So I had to set up a channel.
 I also had to hack the mx messaging config LoaderConfig's url , otherwise
 the flex mx.rpc's classes fail, if it remains a null value.
 (found this hack/tip here:
 http://bugs.adobe.com/jira/browse/BLZ-16#action_171947 but figgured it can
 hold any value as long it's not null)

 So I did this

  public dynamic class AMFService extends RemoteObject
  {
  
 mx.messaging.config.LoaderConfig.mx_internal::_url = notnull;

   public function AMFService(...)
  (
  _amfChannel = new AMFChannel(_destinationChannel,_serviceGateway);
  _amfChannel.connectTimeout = _conectTimeOut;
  _amfChannel.requestTimeout = _requestTimeout;
var myChannelSet:ChannelSet = new ChannelSet();
  myChannelSet.addChannel(_amfChannel);

 `}


 furthermore this to solve some Typing errors and to get the of Messages
 wright wright

  static private function registerClassAliases():void
  {
/* REGISTERCLASSALIAS()
   * Preserves the class (type) of an object when the object is
 encoded in Action Message Format (AMF).
   * When you encode an object into AMF, this function saves the
 alias for its class,
   * so that you can recover the class when decoding the object.
   * If the encoding context did not register an alias for an
 object's class,
   * the object is encoded as an anonymous object.
   * Similarly, if the decoding context does not have the same alias
 registered,
   * an anonymous object is created for the decoded data.
   * */
   registerClassAlias(DSA, AsyncMessageExt);
  registerClassAlias(flex.messaging.messages.AsyncMessage,
 AsyncMessage);  registerClassAlias(DSA,
 AsyncMessageExt);
  registerClassAlias(DSC, CommandMessageExt);

  registerClassAlias(flex.messaging.messages.CommandMessage,CommandMessage);

  registerClassAlias(flex.messaging.messages.RemotingMessage,
 RemotingMessage);   registerClassAlias(DSK,
 AcknowledgeMessageExt);
  registerClassAlias(flex.messaging.messages.AcknowledgeMessage,
 AcknowledgeMessage);
  registerClassAlias(flex.messaging.messages.ErrorMessage,
 ErrorMessage);

  registerClassAlias(flex.messaging.messages.HTTPMessage,HTTPRequestMessage);

  registerClassAlias(flex.messaging.messages.SOAPMessage,
 SOAPMessage);

  registerClassAlias(flex.messaging.messages.MessagePerformanceInfo,
 MessagePerformanceInfo);
registerClassAlias(flex.messaging.io.ArrayList,
 ArrayList);

  registerClassAlias(flex.messaging.io.ArrayCollection,ArrayCollection);
  registerClassAlias(flex.messaging.io.ObjectProxy,ObjectProxy);
  registerClassAlias(flex.messaging.config.ConfigMap, ConfigMap);
  }


 Now my questions:
 Is this the best way to keep it tiny and pure AS3 without mxml
 Do I drop functionallity here if it comes to remoting (and not to the
 remote data processing) ?
 Can this be done in an oher AS3 way without hacking with the mx_internal
 trick ?
 FYI, the filesize of my remoting test is now 86Kb in release mode.

 Please help me out of uncertainty :)

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




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


Re: [Flashcoders] find and delete XML nodes

2009-03-09 Thread Joel Stransky
Thanks guys, those were both very helpful.

On Mon, Mar 9, 2009 at 3:35 AM, Muzak p.ginnebe...@telenet.be wrote:


 delete xml.child.(@id==b);


 You might wanna try that first..

   TypeError: Error #1119: Delete operator is not supported with operand of
 type XMLList.
 delete works as long as the XMLList is not retrieved using an expression,
 which in this case it is: (@id == b).

 So the following works (and deletes all elements):

   var s:String = 'parentchild id=a /child id=b /child id=a
 /child id=b //parent';
   var xml:XML = new XML(s);
   delete xml.child;

 Bug or feature? Who knows..

 regards,
 Muzak

 - Original Message - From: liutoday today...@hotmail.com
 To: flashcoders@chattyfig.figleaf.com
 Sent: Monday, March 09, 2009 5:28 AM
 Subject: RE: [Flashcoders] find and delete XML nodes





  Date: Sun, 8 Mar 2009 23:38:17 -0400
 From: j...@stranskydesign.com
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] find and delete XML nodes

 I have some xml nodes where I need to evaluate their attributes and
 delete
 them if they meet certain criteria. It's probably simple but its late and
 brain fatigue is setting in.

 Say I had this node

 parent
  child id=a /
  child id=b /
  child id=a /
  child id=b /
 /parent

 How would I find and delete any child who's id is b ?
 --
 --Joel Stransky
 stranskydesign.com
 ___



 delete xml.child.(@id==b);


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




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


Re: [Flashcoders] Actionscript 3.0 Coding Niggles

2009-03-08 Thread Joel Stransky
is there a stop() on frame 1 of text_mc?

On Sun, Mar 8, 2009 at 3:29 PM, Ali Hitch hitchy@gmail.com wrote:

 Hey guys,

 Having problems on the coding side of what I thought would be a very simple
 task.

 The task is:

 I am creating a navigation bar for a website. On the navigation bar, when
 the user does a mouse over on a certain area of the bar (invisible button),
 a specified movie will play once and will not play again unless the user
 does a mouse over again. When the user clicks on the invisible button, it
 will perform the action of a link and direct the user to another page.

 In a bit more detail:

 In flash I have created a document (actionscript 3.0). On the document for
 this example, there is a piece of text called labelled 'home'. This text
 has
 been converted into a movieclip labelled home_mc. Inside the movie clip
 there are 7 frames. Frame1 = home font size20 | Frame2 = home font size21 |
 Frame3 = home font size22 | Frame 4 = home font size23 | Frame 5 = home
 font
 size 22 | Frame6 = home font size21 | Frame7 = home font size20. As you can
 probably tell, I am trying to make a growing text effect in flash.

 Coming out of the movieclip to Scene 1 I have created another layer called
 invivisible button1. This has then been converted to a button called
 home_btn and made 'invisible'.

 What I have been trying to do with actionscript is make the movieclip
 home_mc play once when there is a mouse over event with home_btn (invisible
 button), but with all the code I have tried so far nothing has really
 worked
 and when I test the movie, the movieclip home_mc is just constantly playing
 and looping back on itself.

 The latest code I have tried is:

 **Start code**

 var home_mc:MovieClip = new MovieClip ();
 //home_mc = someClip you embedded;
 text_mc.name = myButton;

 home_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOver);
 home_mc.addEventListener(MouseEvent.MOUSE_OUT, mouseOut);
 //adds event listeners



 funtion mouseOver (event:MouseEvent):void
 {
trace (event.currentTarget.name + mouse over);
// the trace event is asking for the name property (which is like a
 method) we set that property above.
//otherwise tracing event.currentTarget just tells us the type of object
 we are dealing with = MovieClip
event.currentTarget.play();
//this function can be used on ANY subject that has an event handler -
 addEventListener
 }

 funtion mouseOut (event:MouseEvent):void
 {
trace (event.currentTarget.name + mouse out);
event.currentTarget.gotoandstop(1);
 }

 **end code**

 I have had some vague help previously and have read and looked at
 tutorials/books but still don't quite get this. I am after all trying to
 learn a new programming language without any previous experience with
 programming languages.

 Any help with this hopefully simple problem would be gratefully
 appreciated.

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




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


Re: [Flashcoders] include directive ...

2009-03-06 Thread Joel Stransky
Technically, Yes, it's the exact same thing. include merely allows you use
an external text editor instead of the p.o.s. actions panel.


On Wed, Mar 4, 2009 at 10:27 PM, Paul Andrews p...@ipauland.com wrote:

 The include directive is just plain text inclusion from an external source.
 Once included it's as though it were inline.

 I think that if you are using the timeline and having lots of includes all
 over the place to replace all of the inline code, it would be a nightmare to
 work out what's going on.

 I rarely use the include directive. Better to use classes.

 Paul


 - Original Message - From: SJF sjf...@gmail.com
 To: flashcoders@chattyfig.figleaf.com
 Sent: Thursday, March 05, 2009 2:37 AM
 Subject: [Flashcoders] include directive ...



  Looking for clarity on the include directive in a CS3 FLA file.

 Technically, does anyone know if pound-for-pound, having code on a
 movieclip's timeline is EXACTLY the same as having it's code in an
 external
 .as file and using the include directive?

 Here are more details:

 1) The code being externalised contains imports, variable declarations,
 numerous functions and runtime code (approx. 150-250 lines of code)
 2) The movieclip is dynamic and created on the fly by the application,
 putting the movieclip within various other movieclips deep in the display
 stack
 3) Multiple other movieclips (approx. 30) also contain code with imports,
 variable declarations, functions and runtime code

 So the question I ask:

 Is it technically possible to externalise all code in a CS3 FLA document
 by
 exporting all code from all timelines and using the include directive?

 Are there issues with instantiation of objects/classes or problems with
 import paths, etc?

 Thoughts?
 ___
 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




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


Re: [Flashcoders] include directive ...

2009-03-06 Thread Joel Stransky
Hahaha. FlashDevelop pwns you!

On Fri, Mar 6, 2009 at 1:55 PM, whispers whispers...@hotmail.com wrote:

 P.O.S. Actions panel 4 LIFE!!!


 :)

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Joel
 Stransky
 Sent: Friday, March 06, 2009 11:58 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] include directive ...

 Technically, Yes, it's the exact same thing. include merely allows you use
 an external text editor instead of the p.o.s. actions panel.


 On Wed, Mar 4, 2009 at 10:27 PM, Paul Andrews p...@ipauland.com wrote:

  The include directive is just plain text inclusion from an external
 source.
  Once included it's as though it were inline.
 
  I think that if you are using the timeline and having lots of includes
  all over the place to replace all of the inline code, it would be a
  nightmare to work out what's going on.
 
  I rarely use the include directive. Better to use classes.
 
  Paul
 
 
  - Original Message - From: SJF sjf...@gmail.com
  To: flashcoders@chattyfig.figleaf.com
  Sent: Thursday, March 05, 2009 2:37 AM
  Subject: [Flashcoders] include directive ...
 
 
 
   Looking for clarity on the include directive in a CS3 FLA file.
 
  Technically, does anyone know if pound-for-pound, having code on a
  movieclip's timeline is EXACTLY the same as having it's code in an
  external .as file and using the include directive?
 
  Here are more details:
 
  1) The code being externalised contains imports, variable
  declarations, numerous functions and runtime code (approx. 150-250
  lines of code)
  2) The movieclip is dynamic and created on the fly by the
  application, putting the movieclip within various other movieclips
  deep in the display stack
  3) Multiple other movieclips (approx. 30) also contain code with
  imports, variable declarations, functions and runtime code
 
  So the question I ask:
 
  Is it technically possible to externalise all code in a CS3 FLA
  document by exporting all code from all timelines and using the
  include directive?
 
  Are there issues with instantiation of objects/classes or problems
  with import paths, etc?
 
  Thoughts?
  ___
  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
 



 --
 --Joel Stransky
 stranskydesign.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




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


Re: [Flashcoders] include directive ...

2009-03-06 Thread Joel Stransky
I was the exact same way Taka until I started using FD. So many things that
speed up development it's no contest.

On Fri, Mar 6, 2009 at 3:00 PM, Taka Kojima t...@gigafied.com wrote:

 Keep it on the timeline, don't switch to external AS files unless you
 want to give yourself suicide thoughts ;)

 If you wanted to switch over to using classes, that's a different
 story, but for only 10-30 lines per movieclip on the timeline, I'd say
 just keep going with how you're doing it. It is working right?

 In terms of the Flash AS editor -- I agree, it is a POS, but I set my
 own color scheme and everything so mine's all tricked out and it's not
 half as bad as it is with default settings ;)

 - Taka

 On Fri, Mar 6, 2009 at 11:34 AM, Joel Stransky stranskydes...@gmail.com
 wrote:
  Hahaha. FlashDevelop pwns you!
 
  On Fri, Mar 6, 2009 at 1:55 PM, whispers whispers...@hotmail.com
 wrote:
 
  P.O.S. Actions panel 4 LIFE!!!
 
 
  :)
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com
  [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Joel
  Stransky
  Sent: Friday, March 06, 2009 11:58 AM
  To: Flash Coders List
  Subject: Re: [Flashcoders] include directive ...
 
  Technically, Yes, it's the exact same thing. include merely allows you
 use
  an external text editor instead of the p.o.s. actions panel.
 
 
  On Wed, Mar 4, 2009 at 10:27 PM, Paul Andrews p...@ipauland.com
 wrote:
 
   The include directive is just plain text inclusion from an external
  source.
   Once included it's as though it were inline.
  
   I think that if you are using the timeline and having lots of includes
   all over the place to replace all of the inline code, it would be a
   nightmare to work out what's going on.
  
   I rarely use the include directive. Better to use classes.
  
   Paul
  
  
   - Original Message - From: SJF sjf...@gmail.com
   To: flashcoders@chattyfig.figleaf.com
   Sent: Thursday, March 05, 2009 2:37 AM
   Subject: [Flashcoders] include directive ...
  
  
  
Looking for clarity on the include directive in a CS3 FLA file.
  
   Technically, does anyone know if pound-for-pound, having code on a
   movieclip's timeline is EXACTLY the same as having it's code in an
   external .as file and using the include directive?
  
   Here are more details:
  
   1) The code being externalised contains imports, variable
   declarations, numerous functions and runtime code (approx. 150-250
   lines of code)
   2) The movieclip is dynamic and created on the fly by the
   application, putting the movieclip within various other movieclips
   deep in the display stack
   3) Multiple other movieclips (approx. 30) also contain code with
   imports, variable declarations, functions and runtime code
  
   So the question I ask:
  
   Is it technically possible to externalise all code in a CS3 FLA
   document by exporting all code from all timelines and using the
   include directive?
  
   Are there issues with instantiation of objects/classes or problems
   with import paths, etc?
  
   Thoughts?
   ___
   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
  
 
 
 
  --
  --Joel Stransky
  stranskydesign.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
 
 
 
 
  --
  --Joel Stransky
  stranskydesign.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




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


Re: [Flashcoders] advice to ms word/xml

2009-03-06 Thread Joel Stransky
So did SE|PY

On Fri, Mar 6, 2009 at 4:13 PM, Bob Wohl bob.w...@gmail.com wrote:

 The thing I loved about Aptana back in the good ol AS2 days is that it
 would
 give you your xpath and node paths for actionscript use. Such a time saver
 back then :)
 B.

 On Thu, Mar 5, 2009 at 5:32 PM, Anthony Pace anthony.p...@utoronto.ca
 wrote:

  If aptana had flash develops capabilities, that would be awesome.
   (salivating at the thought)
 
 
  Bob Wohl wrote:
 
  or Aptana!
  /*ducks*/
 
  On Thu, Mar 5, 2009 at 3:31 PM, Cor c...@chello.nl wrote:
 
 
 
  Or FlashDevelop
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com
  [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Juan
  Anzaldo
  Sent: donderdag 5 maart 2009 22:14
  To: Flash Coders List
  Subject: Re: [Flashcoders] advice to ms word/xml
 
  You can use dreamweaver in code view
 
   Ing. Juan Anzaldo
  Tel Cel.614 427-6523
  Nextel.  72*8*29809
  Blog : http://janzaldo.wordpress.com
 
 
 
 
  
  From: Joel Stransky stranskydes...@gmail.com
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Sent: Thursday, March 5, 2009 1:51:44 PM
  Subject: Re: [Flashcoders] advice to ms word/xml
 
  ah didn't read it that way.
 
 
  On Thu, Mar 5, 2009 at 3:37 PM, Fabio Pinatti fpina...@gmail.com
  wrote:
 
 
 
  you didn't get it. Clients send content in word. My problem was
 
 
  copy/paste
 
 
  that content.
 
  On Thu, Mar 5, 2009 at 4:58 PM, Joel Stransky 
 stranskydes...@gmail.com
 
 
  wrote:
 why on earth would you use Word to edit xml?
 
  On Thu, Mar 5, 2009 at 8:13 AM, Fabio Pinatti fpina...@gmail.com
 
 
  wrote:
 
 
  Hello list,
 
  not a question, just an advice with a problem I was fighting here
 and
 
 
  to
 
 
  help the ones that can have it too.. When populating a xml content,
 
 
  never
 
 
  paste directly the text from word or other editor that preserves any
 
 
  extra
 
 
  formatting. For any reason, some chars (invisible) were breaking my
 
 
  text
 
 
  only in browser, but into flash it worked now... I stay hours to see
 
 
  that
 
 
  the problem wasn't my code... =) So, first copy the text to notepad,
 
 
  and
 
 
  then to your xml, in case you don't use notepad as xml editor.
 
  Hope I help some XML souls,
 
  Best
 
  --
  Fábio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
  --
  --Joel Stransky
  stranskydesign.com
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
  --
  Fábio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
  --
  --Joel Stransky
  stranskydesign.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
  No virus found in this incoming message.
  Checked by AVG - www.avg.com
  Version: 8.0.237 / Virus Database: 270.11.8/1985 - Release Date:
 03/05/09
  07:54:00
 
 
  ___
  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




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


Re: [Flashcoders] OOP AS3 learning

2009-03-05 Thread Joel Stransky
The OReilly DP book does include the major patterns. But I have to say they
could have been explained a lot better.
You might check out Head First Design Patterns I haven't read it but the
snippets I've seen seem much more clear.

On Thu, Mar 5, 2009 at 8:27 AM, Hans Wichman j.c.wich...@objectpainters.com
 wrote:

 lmao erm yes definately:)

 On Thu, Mar 5, 2009 at 2:04 PM, Paul Andrews p...@ipauland.com wrote:

  - Original Message - From: Hans Wichman 
  j.c.wich...@objectpainters.com
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Sent: Thursday, March 05, 2009 12:08 PM
  Subject: Re: [Flashcoders] OOP AS3 learning
 
 
  snip
 
  If your project stays small it's easier to
  manage your hacks and shortcuts.
 
 
  I think you meant manage your lightweight interconnected architecture
  optimised for the smaller project and desparate client..  ;-)
 
  LOL
 
  Paul
 
 
 
  snip
 
  regards
  JC
 
 
  ___
  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




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


Re: [Flashcoders] advice to ms word/xml

2009-03-05 Thread Joel Stransky
why on earth would you use Word to edit xml?

On Thu, Mar 5, 2009 at 8:13 AM, Fabio Pinatti fpina...@gmail.com wrote:

 Hello list,

 not a question, just an advice with a problem I was fighting here and to
 help the ones that can have it too.. When populating a xml content, never
 paste directly the text from word or other editor that preserves any extra
 formatting. For any reason, some chars (invisible) were breaking my text
 only in browser, but into flash it worked now... I stay hours to see that
 the problem wasn't my code... =) So, first copy the text to notepad, and
 then to your xml, in case you don't use notepad as xml editor.

 Hope I help some XML souls,

 Best

 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] advice to ms word/xml

2009-03-05 Thread Joel Stransky
ah didn't read it that way.


On Thu, Mar 5, 2009 at 3:37 PM, Fabio Pinatti fpina...@gmail.com wrote:

 you didn't get it. Clients send content in word. My problem was copy/paste
 that content.

 On Thu, Mar 5, 2009 at 4:58 PM, Joel Stransky stranskydes...@gmail.com
 wrote:

  why on earth would you use Word to edit xml?
 
  On Thu, Mar 5, 2009 at 8:13 AM, Fabio Pinatti fpina...@gmail.com
 wrote:
 
   Hello list,
  
   not a question, just an advice with a problem I was fighting here and
 to
   help the ones that can have it too.. When populating a xml content,
 never
   paste directly the text from word or other editor that preserves any
  extra
   formatting. For any reason, some chars (invisible) were breaking my
 text
   only in browser, but into flash it worked now... I stay hours to see
 that
   the problem wasn't my code... =) So, first copy the text to notepad,
 and
   then to your xml, in case you don't use notepad as xml editor.
  
   Hope I help some XML souls,
  
   Best
  
   --
   Fábio Pinatti
   :: web.developer
    www.pinatti.com.br
   :: 19. 9184.3745 / 3342.1130
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
  --
  --Joel Stransky
  stranskydesign.com
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


[Flashcoders] [AS3] Dynamic and Static text field font conflict work arounds

2009-03-04 Thread Joel Stransky
I've finally run into a situation where I really need the same font both
embeded and used statically.
I've been searching the web and there a lots of mentions of the bug but I've
yet to find a great work around.
Does anyone have a preferred or elegant fix they can recommend?

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


Re: [Flashcoders] [AS3] Dynamic and Static text field font conflict work arounds

2009-03-04 Thread Joel Stransky
Sorry I meant exported fonts that are in turn applied to a dynamic textField
whose embedFonts property is set to true.

On Wed, Mar 4, 2009 at 2:41 PM, Taka Kojima t...@gigafied.com wrote:

 what's the exact bug, because I just created two text fields, one with
 static text, the other dynamic. I embedded the font in the dynamic
 text field and it worked...



 On Wed, Mar 4, 2009 at 11:16 AM, Joel Stransky j...@stranskydesign.com
 wrote:
  I've finally run into a situation where I really need the same font both
  embeded and used statically.
  I've been searching the web and there a lots of mentions of the bug but
 I've
  yet to find a great work around.
  Does anyone have a preferred or elegant fix they can recommend?
 
  --
  --Joel Stransky
  stranskydesign.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




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


Re: [Flashcoders] [AS3] Dynamic and Static text field font conflict work arounds

2009-03-04 Thread Joel Stransky
I considered the alternative font option too but new software is not in the
projects budget.
The font is not exported into the .swf that needs it. I'm using a fonts.swf
as a global library.
I don't want to create a textFormat for each static field so setting them to
dynamic is not an option.

What did you mean by You can use the font in your library by setting the
font to exportName* ?

On Wed, Mar 4, 2009 at 3:19 PM, Taka Kojima t...@gigafied.com wrote:

 ahh...

 I would use a tool like TypeTool to create a new version of the
 font, use one for static and one for embedding...

 However, why not just set your static textFields to dynamic...

 You can use the font in your library by setting the font to exportName*

 - Taka

 On Wed, Mar 4, 2009 at 12:02 PM, Joel Stransky stranskydes...@gmail.com
 wrote:
  Sorry I meant exported fonts that are in turn applied to a dynamic
 textField
  whose embedFonts property is set to true.
 
  On Wed, Mar 4, 2009 at 2:41 PM, Taka Kojima t...@gigafied.com wrote:
 
  what's the exact bug, because I just created two text fields, one with
  static text, the other dynamic. I embedded the font in the dynamic
  text field and it worked...
 
 
 
  On Wed, Mar 4, 2009 at 11:16 AM, Joel Stransky j...@stranskydesign.com
 
  wrote:
   I've finally run into a situation where I really need the same font
 both
   embeded and used statically.
   I've been searching the web and there a lots of mentions of the bug
 but
  I've
   yet to find a great work around.
   Does anyone have a preferred or elegant fix they can recommend?
  
   --
   --Joel Stransky
   stranskydesign.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
 
 
 
 
  --
  --Joel Stransky
  stranskydesign.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




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


Re: [Flashcoders] money question AJAX style apps or flash?

2009-03-03 Thread Joel Stransky
We were recently discussing this from a business stand point at flashkit.
You might find it enlightening.
http://board.flashkit.com/board/showthread.php?t=789389

On Tue, Mar 3, 2009 at 12:12 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 Thanks for the answer.  Good points.


 allandt bik-elliott (thefieldcomic.com) wrote:

 The company i'm at at the mo uses flash for advertising, navigation and
 impressive landing pages for sites. simpler forms of navigation will move
 to
 ajax imo while more complicated pieces (carousels, 3d etc) will stay as
 flash

 advertising will stay as it is - flash is the smallest, most efficient way
 of delivering advertising and with rich media becoming more important for
 branding and data-capture, the flash banner is here to stay.

 landing pages that don't really use flash to do anything more than fade
 items in will move to ajax but for proper animation, flash is still the
 best.

 not sure about flex. As far as I've always thought, Flex is for building
 applications and was made for the c programmers coming to the .swf format
 who are used to having libraries of components and pre-made classes. I'll
 be
 looking into it more when I get some time.

 a

 On Tue, Mar 3, 2009 at 10:29 AM, Anthony Pace anthony.p...@utoronto.ca
 wrote:



 Because of the trend, have you noticed less jobs for Flash then for AJAX
 style webapps? A push to DHTML and AJAX because of SEO issues?
 So many bad developers giving companies leaving a bad taste in the mouths
 of clients?
 Is freelance flash developer starting to become a bad title?
 What about the move to FLEX for big organizations? Bad for flashers
 because
 it makes it easier to produce cookie cutter apps?
 ___
 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




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


Re: [Flashcoders] Which way is best...

2009-02-18 Thread Joel Stransky
Sounds like a job for an MVC pattern. Of course that may be too much work
depending on the future plans for this app. Probably best to combine the
model and controller as Jason mentioned.

On Wed, Feb 18, 2009 at 10:47 AM, Weyert de Boer w...@innerfuse.biz wrote:

 Hi Glen,

 I would just let the button bubble the events upwards to one of the parent
 objects and then handle the event there. Easiest ;)

 Yours,
 Weyert

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




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


Re: [Flashcoders] play sound via linkage

2009-02-13 Thread Joel Stransky
pass the string to getDefinitionByName()
var myClass:Object = getDefinitionByName(linkageID);
var snd:myClass = new myClass();
snd.play();

On Fri, Feb 13, 2009 at 5:11 PM, bernice guerrero bernic...@gmail.comwrote:

 Stop the messeges

 On Feb 13, 2009 8:24 AM, Kenneth Kawamoto kennethkawam...@gmail.com
 wrote:

 var snd:LinkedSound = new LinkedSound();
 snd.play();

 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 Mendelsohn, Michael wrote:   Hi list...   Silly AS3 question: how do
 you
 play a sound with a l...
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] capturing mouse events for layered sprites

2009-02-03 Thread Joel Stransky
Good suggestion Jason, but the issue is that when he rolls over a shape, its
going to broadcast mouse out for the container. The custom event idea would
still work if the custom shape events conditionally broadcast a
container_mouse_out event based on a hit test.

If I understand bubbling correctly, you could also do a hit test during the
capture phase of containers Mouse_Out and cancel it.

On Tue, Feb 3, 2009 at 11:00 AM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 Just off the top of my head, - so then don't disable mouse events since you
 need them.  Instead, maybe in all your classes, the container, and the
 children classes, when a rollover occurs, broadcast a custom event AND also
 make it bubble up the display list (bubbles=true) - then wherever your
 current listening, listen for the CUSTOM events instead if the standard
 mouse over events and then respond accordingly.

 That would seem to separate out all the mouse over events into separate
 events you listen for.  So in your class that listens, it would end up
 looking something like this:

 addEventListener(MySpecialEvent.MY_CONTAINER_ROLLED_OVER,
 onMyContainerRolledOver);
 addEventListener(MySpecialEvent.MY_SQUARE_ROLLED_OVER,
 onMySquareRolledOver);
 addEventListener(MySpecialEvent.MY_TRIANGLE_ROLLED_OVER,
 onMyTriangleRolledOver);

 Would something like that work?


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   Learning
 Performance Solutions LLD

 Interested in Flash Platform technologies?  Join the Bank of America Flash
 Platform Community
 Interested in innovative ideas in Learning?  Check out the Innovative
 Learning Blog and subscribe.




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




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


Re: [Flashcoders] OT: Internet Explorer 8

2009-02-03 Thread Joel Stransky
Send them this link and inform them that you don't support browsers with
little to no penetration.
http://www.w3schools.com/browsers/browsers_stats.asp
But at the same time, offer to do the debugging for an additional charge.
You're really relegated to what ever was in your contract. If you didn't
explicitly outline which browsers you'd be optimizing for you may be stuck
debugging it for free if the client is really unreasonable.
I've always used a standalone version of IE6 but I can't say if there's a
viable IE7 standalone.

On Tue, Feb 3, 2009 at 11:16 AM, Vayu Robins v...@vayu.dk wrote:

 Hi flashcoders,

 I just finished a website for a client and the client writes back and says
 that one of her friends has IE8 and that the website is not displaying
 correctly.

 The website is displaying correctly in IE6 and IE7.  I was first surprised
 to hear that IE8 was released, but I later found out that its a Release
 Candidate 1, which I presume is a sort of a Beta version.

 Does anybody have any comments on this? Should I download the IE8 version
 and find the problem?  I am on a mac, using Parallels Desktop, Windows XP.

 I am worried that I wont be able to test for IE7 and IE6 afterwards, that
 IE8 will remove them.

 Is it fair of client to ask me test for IE8 when it isn't officially
 released yet?

 Furthermore, what is this Microsoft is releasing now? I thought IE8 was
 suppose to get better and be easier to develop for and follow web standards
 more like Firefox, Safari and others.  The amount of additional work needed
 for IE6 + IE7 is plenty, now we have to IE8 as well...

 Vayu


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




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


Re: [Flashcoders] capturing mouse events for layered sprites

2009-02-03 Thread Joel Stransky
You're probably spot on. I don't have the event phase experience I should.
My assumption though is that even the custom events are going to wrap the
default ones and some how it has to be broadcast when container is rolled
off. I know neither of us likely have the time to build a demo but you
should happen to I'd like to see how it works.

On Tue, Feb 3, 2009 at 11:46 AM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

  Good suggestion Jason, but the issue is that when he rolls over a shape,
 its
 going to broadcast mouse out for the container. The custom event idea
 would
 still work if the custom shape events conditionally broadcast a
 container_mouse_out event based on a hit test.

 But what I am saying is that doesn't matter - he's going to instead (if he
 tries my idea) completely get rid of his listeners for mouse overs of these
 containers and children, and listen for custom events that bubble up
 instead.  The dispatching will be done inside the children's and container's
 own class definition, triggered by mouse over event, but within the class -
 this will trigger the custom event to bubble.  At that point, who cares if
 the off-the-shelf mouseover events bubble, he wouldn't be listening for
 those anyway, only within the individual child classes in order to dispatch
 the custom events.  Make sense?  That said, I could have a gaping hole in
 this idea I'm not seeing at the moment...


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   Learning
 Performance Solutions LLD

 Interested in Flash Platform technologies?  Join the Bank of America Flash
 Platform Community
 Interested in innovative ideas in Learning?  Check out the Innovative
 Learning Blog and subscribe.




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




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


Re: [Flashcoders] trace command in .as3 docs

2009-01-30 Thread Joel Stransky
If you're testing in CS3, it should just be:
trace(my message);

On Fri, Jan 30, 2009 at 5:11 PM, Rebecca Roberts rrobe...@k12.com wrote:

 I'm having trouble running traces from a class in an external .as3 doc.
 Forgive me...as I am still new to as3. Is there any way to do this?



 Thanks.

 Rebecca

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




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


Re: [Flashcoders] Missing Flashcoder archives?

2009-01-29 Thread Joel Stransky
try here
http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/maillist.html


On Thu, Jan 29, 2009 at 12:00 PM, Dave Watts dwa...@figleaf.com wrote:

  Is there a new location where our mail is being stored, or is the archive
  page just not working?

 It's not working. It's on my (unfortunately extremely long) to-do list.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/

 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] Error Instantiating Object

2009-01-27 Thread Joel Stransky
Something in your Slide.iinit() function does not exist at the time it is
running.

On Tue, Jan 27, 2009 at 7:40 PM, K-Dawg kdaw...@gmail.com wrote:

 Hello,

 I am new to Action Script 3.  I am used to Java, Perl,  Python.  I am
 receiving the following error:

 TypeError: Error #1009: Cannot access a property or method of a null object
 reference.
at Slide$iinit()
at PondoShow$iinit()

 All I have a PondShow class that extends Sprite.  then I have a Slide
 class.  I am trying to instantiate an array for Slide objects.

import flash.display.Sprite;
import flash.events.*;
import flash.text.*;
import flash.net.URLRequest;
import flash.utils.*;

public class PondoShow extends Sprite {
private var slides:Array;
private var slideCounter:int;
private var myTimer:Timer;

public function PondoShow() {
myTimer = new Timer(3000);
slides = new Array(4);
slides[0] = new Slide(This is a test, this is only a test,
 img/food_array.jpg, Click here to find out more, more.html, 100, 100,
 50, 50, 200, 200);
slides[1] = new Slide(This is a test, this is only a test,
 img/food_array2.jpg, Click here to find out more, more.html, 100,
 100,
 50, 50, 200, 200);
slides[2] = new Slide(This is a test, this is only a test,
 img/food_array3.jpg, Click here to find out more, more.html, 100,
 100,
 50, 50, 200, 200);
slides[3] = new Slide(This is a test, this is only a test,
 img/get_it_to_go_logo.jpg, Click here to find out more, more.html,
 100, 100, 50, 50, 200, 200);
slideCounter = 0;
trace(before adding slides);
while(true) {
if (slides[slideCounter].imgload) {
addChild(slides[slideCounter].loader.content);
break;
}
}

 Error occurs when instantiating the first Slide object.  It also fails when
 I do not use an array and all I do is try to create a single object.

 My slide class has a constructor:

public function Slide(primaryText:String, secondaryText:String,
 imagePathString:String, slideLinkText:String, slideLink:String,
 primaryTextX:int, primaryTextY:int, secondaryTextX:int, secondaryTextY:int,
 linkX:int, linkY:int) {

 Thanks for any help.  I am new to AS 3.

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




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


[Flashcoders] [AS3] height not right

2009-01-25 Thread Joel Stransky
 *height not right*
--
Create two .fla's called SizeParent.fla and SizeChild.fla.
In SizeChild draw a square of 20x20 and set it's y to 10.

Publish SizeChild.swf and place this code on frame 1 in SizeParent
 Code:

import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
l.load(new URLRequest(SizeChild.swf));

function onComplete(e:Event):void{
addChild(l);
trace(l.content.height);
}


Shouldn't height be 30? I keep getting 20.

What gives?


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


Re: [Flashcoders] [AS3] height not right

2009-01-25 Thread Joel Stransky
Thanks Matt,
I understand I can work out the height manually but I'm trying to write a
function into the main stage that can read the height of any child swf. The
names and locations may vary so its not that attractive of a solution.
There has to be some way of reading the bounds. Like in as2, if you create
an empty movieclip, then attach another 20x20 clip to it at a y of 10, that
new movieclips height comes back as 30. I'll be seriously pissed to find out
adobe dropped yet another useful feature with as3.

On Sun, Jan 25, 2009 at 1:51 PM, Matt Gitchell m...@moonbootmedia.comwrote:

 It measures the height of the actual content.
 You'd have to have something onstage at (0,0) for it to start measuring
 there.

 If you need it, write something that retrieves the Y value of the item plus
 the item's height, where item is the DisplayObject in the loaded SWF.

 var functionalHeight:Number = item.y + item.height;

 --Matt

 On Sun, Jan 25, 2009 at 10:30 AM, Joel Stransky j...@stranskydesign.com
 wrote:

   *height not right*
  --
  Create two .fla's called SizeParent.fla and SizeChild.fla.
  In SizeChild draw a square of 20x20 and set it's y to 10.
 
  Publish SizeChild.swf and place this code on frame 1 in SizeParent
   Code:
 
  import flash.display.*;
  import flash.events.*;
  import flash.net.URLRequest;
  var l:Loader = new Loader();
  l.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
  l.load(new URLRequest(SizeChild.swf));
 
  function onComplete(e:Event):void{
 addChild(l);
 trace(l.content.height);
  }
 
 
  Shouldn't height be 30? I keep getting 20.
 
  What gives?
 
 
  --
  --Joel Stransky
  stranskydesign.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




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


Re: [Flashcoders] [AS3] height not right

2009-01-25 Thread Joel Stransky
Well I think I have something to work with. I found that I can just
getBounds() on the element in question and add the returned Rectangles .y to
its .height. I'd like a simple height prop somewhere but this will work. Now
to go post in the other two places I asked this question :)

On Sun, Jan 25, 2009 at 2:06 PM, Joel Stransky stranskydes...@gmail.comwrote:

 Thanks Matt,
 I understand I can work out the height manually but I'm trying to write a
 function into the main stage that can read the height of any child swf. The
 names and locations may vary so its not that attractive of a solution.
 There has to be some way of reading the bounds. Like in as2, if you create
 an empty movieclip, then attach another 20x20 clip to it at a y of 10, that
 new movieclips height comes back as 30. I'll be seriously pissed to find out
 adobe dropped yet another useful feature with as3.


 On Sun, Jan 25, 2009 at 1:51 PM, Matt Gitchell m...@moonbootmedia.comwrote:

 It measures the height of the actual content.
 You'd have to have something onstage at (0,0) for it to start measuring
 there.

 If you need it, write something that retrieves the Y value of the item
 plus
 the item's height, where item is the DisplayObject in the loaded SWF.

 var functionalHeight:Number = item.y + item.height;

 --Matt

 On Sun, Jan 25, 2009 at 10:30 AM, Joel Stransky j...@stranskydesign.com
 wrote:

   *height not right*
  --
  Create two .fla's called SizeParent.fla and SizeChild.fla.
  In SizeChild draw a square of 20x20 and set it's y to 10.
 
  Publish SizeChild.swf and place this code on frame 1 in SizeParent
   Code:
 
  import flash.display.*;
  import flash.events.*;
  import flash.net.URLRequest;
  var l:Loader = new Loader();
  l.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
  l.load(new URLRequest(SizeChild.swf));
 
  function onComplete(e:Event):void{
 addChild(l);
 trace(l.content.height);
  }
 
 
  Shouldn't height be 30? I keep getting 20.
 
  What gives?
 
 
  --
  --Joel Stransky
  stranskydesign.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




 --
 --Joel Stransky
 stranskydesign.com




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


Re: [Flashcoders] [AS3] height not right

2009-01-25 Thread Joel Stransky
It's not a I don't like change argument. It's a why remove logically
intuitive features without a replacement? one. AS3 is great, but it's not
fool proof.

On Sun, Jan 25, 2009 at 2:34 PM, Matt Gitchell m...@moonbootmedia.comwrote:

 I dunno, man, I don't remember what that returned in AS2 (it's been a
 couple
 years since I used it), but I would seriously get annoyed if AS3 returned a
 height based on a non-existent piece of content. Right now, it sniffs out
 the bounds of the displayobject then returns the height of that rectangle.
 seems like the right behavior to me, and I can think of many projects that
 I've worked on, certainly, where the other implementation would be
 maddening.

 I do still find it fascinating that folks keep railing about AS3 vs. AS2,
 esp. when we're now 2 revs of the IDE out of AS2...that's a value neutral
 statement, by the way, people like what they like.

 --Matt

 On Sun, Jan 25, 2009 at 11:06 AM, Joel Stransky stranskydes...@gmail.com
 wrote:

  Thanks Matt,
  I understand I can work out the height manually but I'm trying to write a
  function into the main stage that can read the height of any child swf.
 The
  names and locations may vary so its not that attractive of a solution.
  There has to be some way of reading the bounds. Like in as2, if you
 create
  an empty movieclip, then attach another 20x20 clip to it at a y of 10,
 that
  new movieclips height comes back as 30. I'll be seriously pissed to find
  out
  adobe dropped yet another useful feature with as3.
 
  On Sun, Jan 25, 2009 at 1:51 PM, Matt Gitchell m...@moonbootmedia.com
  wrote:
 
   It measures the height of the actual content.
   You'd have to have something onstage at (0,0) for it to start measuring
   there.
  
   If you need it, write something that retrieves the Y value of the item
  plus
   the item's height, where item is the DisplayObject in the loaded SWF.
  
   var functionalHeight:Number = item.y + item.height;
  
   --Matt
  
   On Sun, Jan 25, 2009 at 10:30 AM, Joel Stransky 
 j...@stranskydesign.com
   wrote:
  
 *height not right*
--
Create two .fla's called SizeParent.fla and SizeChild.fla.
In SizeChild draw a square of 20x20 and set it's y to 10.
   
Publish SizeChild.swf and place this code on frame 1 in SizeParent
 Code:
   
import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
l.load(new URLRequest(SizeChild.swf));
   
function onComplete(e:Event):void{
   addChild(l);
   trace(l.content.height);
}
   
   
Shouldn't height be 30? I keep getting 20.
   
What gives?
   
   
--
--Joel Stransky
stranskydesign.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
  
 
 
 
  --
  --Joel Stransky
  stranskydesign.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




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


Re: [Flashcoders] Re: Dynamically resize Flash

2009-01-19 Thread Joel Stransky
Hmm, I'm using BrowserCanvas in my current project and having zero issues
aside from it breaking swfaddress in IE7. Otherwise works fine in Safari and
FF for mac and IE6/FF for windows.

On Mon, Jan 19, 2009 at 10:27 AM, allandt bik-elliott (thefieldcomic.com) 
alla...@gmail.com wrote:

 isn't there a bit of wierdness in firefox where, if you want it to be 100%
 width / height of the window, you need to add it to the css and apply it to
 the swfobject targetted div?

 On Mon, Jan 19, 2009 at 1:56 PM, Romuald Quantin 
 soundstep.mail...@googlemail.com wrote:

  I sent to the BrowserCanvas developer the IE error months ago, I guess he
  didn't find a solution if he didn't update his library.
 
  I've been asked for this some months ago but we've ended up to build a
  flash scrollbar instead... if I may ask, what makes you choose a browser
  scrollbar for a flash content? Because in my case, having something solid
  without cross-browsing issue made me build a flash scrollbar.
 
  Romu
  www.soundstep.com
 
 
 
  confustic...@gmail.com wrote:
 
  Sorry List.
 
  I really am all kinds of idiot. What I said below about BrowserCanvas is
  incorrect. It takes the containerId as a parameter ... which was
  immediately
  obvious from reading the documentation! Apologies. Now, to work out
 what's
  causing the IE error ...
 
  I am still interested in any comments regarding the Mustard Lab Resize
  Flash
  with SWFObject issue though.
 
  Humbly,
 
  CB.
 
  On Mon, Jan 19, 2009 at 1:53 PM, confustic...@gmail.com 
  confustic...@gmail.com wrote:
 
 
 
  Hi List,
 
  Does anyone have a bulletproof method for dynamically resizing your
 SWFs
  from within the SWF? eg, if you have SWFs which have expandable
 vertical
  content that sit within the flow of an HTML page. Something like this:
  http://2mdc.com/resizableFlash/
 
  I have tried doesnotcompute's lovely BrowserCanvas (
 
 
 http://www.dncompute.com/blog/2008/06/23/browsercanvas-the-worlds-easiest-way-to-dynamically-resize-flash.html
 )
  and
  found that it only works for 1 SWF per page. (It always resizes the
 first
  SWF, no matter which SWF needs resizing.)
 
  I have also tried the wonderful Mustard Lab Resize Flash technique (
  http://www.mustardlab.com/developer/flash/objectresize/) - however, to
  my
  surprise I couldn't get it working with properly SWFObject in IE6 and
  Safari. It works fine in FF and IE7. I found that, while the containing
  DIV
  was resized appropriately, the Flash height (set to 100%) was not
 filling
  up
  the DIV. I'm still not sure why this is; it works if the SWF is placed
 on
  the page using JavaScript to write out the tags (which is how it is
  implemented by Mustard Lab). Unfortunately it does need to work with
  SWFObject.
 
  Any ideas would be much appreciated,
 
  Cheers,
  CB.
 
 
 
  ___
  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




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


Re: [Flashcoders] Re: Dynamically resize Flash

2009-01-19 Thread Joel Stransky
I fixed my issue for those who care. I consists of a mix of the first two
examples posted in this thread. I placed my flashcontent div inside a
container div. The width and height passed to swfobject are both 100% and
the container div is set to the intended width and height. I then passed the
container id to BrowserCanvas instead of the flashcontent id as well as
passing an empty array for the browser hacks param.

Your canvas object allows you to set width and height separately but still
updates both dimensions when either setter is called. For some reason this
causes FF for mac to consider the other dimension as 0. The fix for this was
setting both properties everytime even if one never changes.

On Mon, Jan 19, 2009 at 2:05 PM, Joel Stransky stranskydes...@gmail.comwrote:

 Hmm, I'm using BrowserCanvas in my current project and having zero issues
 aside from it breaking swfaddress in IE7. Otherwise works fine in Safari and
 FF for mac and IE6/FF for windows.


 On Mon, Jan 19, 2009 at 10:27 AM, allandt bik-elliott (thefieldcomic.com)
 alla...@gmail.com wrote:

 isn't there a bit of wierdness in firefox where, if you want it to be 100%
 width / height of the window, you need to add it to the css and apply it
 to
 the swfobject targetted div?

 On Mon, Jan 19, 2009 at 1:56 PM, Romuald Quantin 
 soundstep.mail...@googlemail.com wrote:

  I sent to the BrowserCanvas developer the IE error months ago, I guess
 he
  didn't find a solution if he didn't update his library.
 
  I've been asked for this some months ago but we've ended up to build a
  flash scrollbar instead... if I may ask, what makes you choose a browser
  scrollbar for a flash content? Because in my case, having something
 solid
  without cross-browsing issue made me build a flash scrollbar.
 
  Romu
  www.soundstep.com
 
 
 
  confustic...@gmail.com wrote:
 
  Sorry List.
 
  I really am all kinds of idiot. What I said below about BrowserCanvas
 is
  incorrect. It takes the containerId as a parameter ... which was
  immediately
  obvious from reading the documentation! Apologies. Now, to work out
 what's
  causing the IE error ...
 
  I am still interested in any comments regarding the Mustard Lab Resize
  Flash
  with SWFObject issue though.
 
  Humbly,
 
  CB.
 
  On Mon, Jan 19, 2009 at 1:53 PM, confustic...@gmail.com 
  confustic...@gmail.com wrote:
 
 
 
  Hi List,
 
  Does anyone have a bulletproof method for dynamically resizing your
 SWFs
  from within the SWF? eg, if you have SWFs which have expandable
 vertical
  content that sit within the flow of an HTML page. Something like this:
  http://2mdc.com/resizableFlash/
 
  I have tried doesnotcompute's lovely BrowserCanvas (
 
 
 http://www.dncompute.com/blog/2008/06/23/browsercanvas-the-worlds-easiest-way-to-dynamically-resize-flash.html
 )
  and
  found that it only works for 1 SWF per page. (It always resizes the
 first
  SWF, no matter which SWF needs resizing.)
 
  I have also tried the wonderful Mustard Lab Resize Flash technique (
  http://www.mustardlab.com/developer/flash/objectresize/) - however,
 to
  my
  surprise I couldn't get it working with properly SWFObject in IE6 and
  Safari. It works fine in FF and IE7. I found that, while the
 containing
  DIV
  was resized appropriately, the Flash height (set to 100%) was not
 filling
  up
  the DIV. I'm still not sure why this is; it works if the SWF is placed
 on
  the page using JavaScript to write out the tags (which is how it is
  implemented by Mustard Lab). Unfortunately it does need to work with
  SWFObject.
 
  Any ideas would be much appreciated,
 
  Cheers,
  CB.
 
 
 
  ___
  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




 --
 --Joel Stransky
 stranskydesign.com




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


Re: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Joel Stransky
or you can set the defaultTextFormat property and be done with it.

On Fri, Jan 16, 2009 at 10:58 AM, Fabio Pinatti fpina...@gmail.com wrote:

 Hello Glen,

 hey, that's it! I didn't know that it was required to do, with simple
 textfields created in authortime. Flash could not lost the formatting
 unless
 we specify, don't you think? =)

 Thanks so much for you, my question is clear now!

 Fabio


 On Fri, Jan 16, 2009 at 1:47 PM, Glen Pike g...@engineeredarts.co.uk
 wrote:

  Hi,
 
You can do this each time you add text with AS:
 
//Get the text format before you change the text.
var tf:TextFormat = myTextField.getTextFormat();
 
myTextField.html = newText;
 
myTextField.setTextFormat(tf);
 
Glen
 
 
  Fabio Pinatti wrote:
 
  the fonts are embedded. The problem actually isn't the font appears,
  because
  it's. The problem is, seems after I changed the text of an existing
  textfield, it formatting is gone.
 
  Tks
  F
 
  On Fri, Jan 16, 2009 at 12:51 PM, Cor c...@chello.nl wrote:
 
 
 
  With dynamic fields you NEED to embed the fonts or set it through a
  class,
  a
  CSS or TextFormat.
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com
  [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Fabio
  Pinatti
  Sent: vrijdag 16 januari 2009 13:06
  To: Flash Coders List
  Subject: [Flashcoders] [flash textfield] lose formatting
 
  Hello guru list,
 
  A basic question. A designer setup a fla file, with a lot of
 textfields.
  He'd adjusted font size, spacing, leading, etc. When I'll use his fla,
 I
  have to convert all static fields into dynamic fields, and all looks
  good.
  The question and problem is, when I compile and set a text for those
  dynamic
  textfields, the textfield loses all formatting it had, so, I need to
  rewrite
  via TextFormat. Am I doing something wrong, or isn't possible use
  timeline
  text formatting in runtime?
 
  Thanks so much,
 
  --
  Fábio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  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.10.8/1897 - Release Date:
  16-1-2009
  6:52
 
 
  ___
  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
 



 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-16 Thread Joel Stransky
@Jason,
Yes, that is the sad truth I was hoping to avoid here. It's just another
argument for adobe developing a built in Frame class.

@Olivier,
While listening for REMOVED_FROM_STAGE is a nice trick, its just one more
listener to remove as part of clean. I'll trust myself to stop, close and
remove everything I've started for now. I do like that superDestroy()
function though.

On Fri, Jan 16, 2009 at 6:31 AM, Olivier Besson ol...@gludion.com wrote:



   Objects removed at any key
 frame therefore should be eligible for garbage collection, assuming no
 event
 listeners or other code created a reference to them.


 Yes.

 Another problem is: even if no listener or code references to these
 objects, they continue playing when they are removed by a blank keyframe.
 playing means that if the playhead was in play mode, the playhead
 continues playing, possibly triggering sounds, scripts, etc... :(

 It seems that as3 dev team just forgot what a blank keyframe is.

 I'm interested in the topic of removeMovieClip in as3, because it's a
 convenient use of the timeline, but I didn't take time to establish best
 practices about it.

 However here are some tracks or tips:
 - listen to REMOVED_FROM_STAGE at the top of display list. When an object
 is removed, stop it.
 - add complex behaviors to displayObjects (such as listeners, sounds,
 timers, etc..) using a safe API. That is: when you add something new (for
 example A) to displayObject B, you listen B's REMOVED_FROM_STAGE to
 dispose A.

 I don't want to use a IDisposable interface everywhere. Probably I will use
 a more brutal approach with a function similar to
 http://blog.gludion.com/2008/11/script-code-test.html (sorry it's in
 french but the script is quite self-explanatory).

 I anyone has other ideas, don't hesitate to share ;)


 --
 Olivier Besson (gludion) - (33 1) 44 64 78 99
 http://www.gludion.com
 http://blog.gludion.com


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




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


Re: [Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-15 Thread Joel Stransky
I've read that before. a couple of times. The question here is what happens
to frames after the playhead leaves, not when Loader.unload() is called. I
wasn't sure if each frame had their own display list or or just one per
timeline. It seems like the sensible thing to do would have been to make a
Frame class that extends DisplayObjectContainer where their display lists
were eligable for gc after the playhead left. I set up the test files with
the intention of seeing if fp9 acted that way or not.

On Thu, Jan 15, 2009 at 10:55 PM, Jason Boyd jayb...@gmail.com wrote:

 You are asking a key question with AS3. Cleaning up movie clips is *hard*.
 There is a list of things that must be done, and they've made it hard to do
 all that.

 Here's a decent place to start reading:
 http://www.gskinner.com/blog/archives/2008/04/failure_to_unlo.html



 2009/1/14 Joel Stransky j...@stranskydesign.com

  Are you saying display lists are persistent through an entire movieclips
  timeline?
 
  On Wed, Jan 14, 2009 at 7:32 AM, Cor c...@chello.nl wrote:
 
   If you declare target_mc in your Parent class and addChild(target_mc)it
   does exist everywhere.
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
  --
  --Joel Stransky
  stranskydesign.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




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


Re: [Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-14 Thread Joel Stransky
Are you saying display lists are persistent through an entire movieclips
timeline?

On Wed, Jan 14, 2009 at 7:32 AM, Cor c...@chello.nl wrote:

 If you declare target_mc in your Parent class and addChild(target_mc)it
 does exist everywhere.

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




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


[Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-13 Thread Joel Stransky
I know this is old news and most of you have just left timelines and mc's
for dead and moved on. But I'm having a hard time believing AS3 screwed us
this bad. I'm also just now getting hip enough with as3 to understand the
topic.

I've created a little test case involving a parent.swf and a child.swf.
There is zero code on either timeline and their document classes are listed
below.
parent.swf has 2 frames and child.swf has 30.

Some key clean up is purposely left out to test the weak references, garbage
collector and for the sake of discussion. I don't normally use timelines for
anything. I'm just trying to get a clear understanding.

Parent.as
package {
import flash.display.Loader;
import flash.display.MovieClip;
import flash.net.URLRequest;
import flash.events.*;
public class Parent extends MovieClip {
var url:URLRequest;
var loader:Loader;
//target_mc is a stage instance (automatic declaration turned off)
//target_mc does not exist on frame 2
public var target_mc:MovieClip;
public function Parent() {
stop();
init();
}

private function init():void
{
url = new URLRequest(Child.swf);
loader = new Loader();
loader.load(url);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
onLoadComplete, false, 0, true);
}

private function onLoadComplete(e:Event):void
{
var c:MovieClip = e.target.content;
target_mc.addChild(c);
}
}
}


Child.as
package {
import flash.display.MovieClip;
import flash.events.*;
public class Child extends MovieClip {
var count:uint = 0;
public function Child() {
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0,
true);
this.addFrameScript(29, onFrame29);
}

private function onEnterFrame(e:Event):void
{
trace(this+ +count++);
}
private function onFrame29():void {
stop();
trace(frame 29  + parent);
(parent.parent as MovieClip).gotoAndStop(2);
}
}
}

The goal here is see the output eventually stop tracing. Obviously I could
remove the Enter Frame event listener before sending parent to frame 2 but
what I want to be sure of is the memory taken up by child.swf is freed up.
How would I gaurantee this happening?

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


Re: [Flashcoders] localconnection and loading

2009-01-12 Thread Joel Stransky
I'm pretty sure the first call to LocalConnection creates the file if one
doesn't exist regardless of what else is loaded.

On Mon, Jan 12, 2009 at 6:03 AM, allandt bik-elliott (thefieldcomic.com) 
alla...@gmail.com wrote:

 hey folks

 i have a question that one of the designers has posed to me.

 With a local connection syncing banner, if i have one banner talking to
 another, but when the first banner is setting up the local connection, if
 the second banner isn't properly loaded, will it cause the connection to
 fail?

 thanks in advance
 a
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] Partially drawing a graphic?

2009-01-12 Thread Joel Stransky
something I've always wanted to try is write a script for Illustrator that
would output all of the path info including bezier handles to a text file
for use in flash.

Maybe there's something in the api that will help.
http://partners.adobe.com/public/developer/en/illustrator/sdk/AIJavaScriptReference.pdf

On Mon, Jan 12, 2009 at 7:04 PM, Nate Beck n...@tldstudio.com wrote:

 How are you storing the vector art?
 You need a way to parse out the data so that you can choose which lines to
 draw. Degrafa is an excellent way to go. http://www.degrafa.org/

 I don't know Degrafa well enough to tell you if there is something already
 in there that will make what you're trying to accomplish easier.

 Also, something that comes to my mind to watch out for... would be to move
 the graphics drawing head to the correct place before drawing the next
 curve.  Think if it like an Etch-a-sketch, you need to pick up the head and
 move it somewhere else before you continue to draw, or else it's going to
 continue drawing from where you left off.
 HTH,
 Nate



 On Mon, Jan 12, 2009 at 3:53 PM, Todd Kerpelman t...@kerp.net wrote:

  Hey, Flash Coders! Wondering if you can help me out with a little problem
  I'm working on...
 
  - I have a complicated piece of vector art in my Flash file.
 
  - I'm basically trying to find a way to partially draw it. That is, out
  of
  the 2000 curves that are in my piece of art, I'd like to randomly draw
 50%
  of them, and then people can guess what the original piece of art was.
 
  - Speed and elegant coding aren't a primary concern here. It's just a
  prototype.
 
  Any ideas of how to do this?
 
  I was hoping I could find some sort of function that would let me iterate
  through each curve in my original piece of art, and then I could randomly
  decide whether or not to draw each curve into a new graphic, but I can't
  seem to find anything like that. If anybody has any clever suggestions,
 I'd
  love to hear 'em...
 
  --T
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --

 Cheers,
 Nate
 
 http://blog.natebeck.net
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] Auto Reply: Flashcoders Digest, Vol 16, Issue 11

2009-01-09 Thread Joel Stransky
Would you please BAN this guy!? Sheesh.

2009/1/9 j...@masterkitchen.de

 Vielen Dank für Ihre Nachricht.

 Ich bin bis einschließlich 9. Januar 2009 nicht erreichbar. In dringenden
 Fällen wenden Sie sich bitte an Herrn Peer Schmidt-Soltau (
 p...@masterkitchen.de) oder Frau Hannah Witopil (han...@masterkitchen.de).

 Vielen Dank
 Johannes Killinger

 Master Kitchen GmbH
 Audiovisuelle Medienentwicklung
 Schorndorfer Straße 42/2 • 71638 Ludwigsburg

 Telefon (07141) 4 88 89-12
 Telefax (07141) 4 88 89-19

 http://www.masterkitchen.de



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




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


Re: RE : [Flashcoders] create object with getDefinition and pass parameters using apply ?

2009-01-09 Thread Joel Stransky
I'm curious to hear a little more about what you guys are trying to do.

Nate, I noticed in your class file that there is a space between ... and
args. I think it's supposed to be ...args

On Fri, Jan 9, 2009 at 3:24 PM, Patrick Matte | BLITZ 
pma...@blitzagency.com wrote:

 I see, thanks for your answer, I also feel dirty doing that! But at least
 it works, it could have been worse...

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nate Beck
 Sent: Friday, January 09, 2009 11:33 AM
 To: Flash Coders List
 Subject: Re: RE : [Flashcoders] create object with getDefinition and pass
 parameters using apply ?

 Hey Patrick,
 I've run into the exact same issue that you have.  Actionscript doesn't
 support overloaded methods or constructors at this time, although there is
 talk that they are going to add that support at some point in the future.

 I have not to this day, found a way to use the apply method on a
 constructor.

 I'm working on a DateTime class that can proxy for a Date class.  I had to
 do something very similar to what you're doing:

 http://natebeck.net/swag/trunk/src/net/natebeck/core/DateTime.as (Look at
 the constructor)

 I've even tried something like this:

 _date = new Date(... args); // - Make this work, please :D


 But I get an interesting error: 1199 : RestExpressionNode not yet
 implemented.

 Another train of thought would be to do something very similar to a
 singleton pattern.  Instead of using the constructor, always call a method.


 myClass.getInstance().doSomething().

 But that still doesn't solve the creation of a class with n-number of
 parameters.

 I understand what you're trying to do, I just haven't found a good way to
 do
 it yet. If you figure something out, be sure to let me know!

 Cheers,
 Nate

 On Thu, Jan 8, 2009 at 9:39 PM, Patrick Matte | BLITZ 
 pma...@blitzagency.com wrote:

  That wouldn't help, I'm writing a class that can create any kind of
 objects
  and pass any number of argument to that object at instantiation.
 
  
  De : flashcoders-boun...@chattyfig.figleaf.com [
  flashcoders-boun...@chattyfig.figleaf.com] de la part de Joel Stransky [
  stranskydes...@gmail.com]
  Date d'envoi : 8 janvier 2009 20:28
  À : Flash Coders List
  Objet : Re: [Flashcoders] create object with getDefinition and pass
  parameters using apply ?
 
  Why not predefine the params as null?
 
  class myClass{
   public function myClass(param1 = null, param2 = null, ... param6 =
 null){
   }
  }
 
  or just use the rest (...) parameter
 
  class myClass{
   public function myClass(...args){
 for(var i:uint = 0; i  args.length; i++){
   trace(args[i]);
 }
   }
  }
 
  On Thu, Jan 8, 2009 at 10:36 PM, Patrick Matte | BLITZ 
  pma...@blitzagency.com wrote:
 
   Well for now I've done this which supports up to 5 arguments but if
   anyone's got a better suggestion please tell me...
  
   var classReference:Object = getDefinitionByName(className);
   var object:Object;
   switch(array.length) {
  case 0:
  object = new classReference();
  break;
  case 1:
  object = new classReference(array[0]);
  break;
  case 2:
  object = new classReference(array[0],array[1]);
  break;
  case 3:
  object = new classReference(array[0],array[1],array[2]);
  break;
  case 4:
  object = new
   classReference(array[0],array[1],array[2],array[3]);
  break;
  case 5:
  object = new
   classReference(array[0],array[1],array[2],array[3],array[4]);
  break;
   }
  
   -Original Message-
   From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
   flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Patrick
   Matte|BLITZ
   Sent: Thursday, January 08, 2009 7:19 PM
   To: Flash Coders List
   Subject: [Flashcoders] create object with getDefinition and pass
  parameters
   using apply ?
  
   I need to create objects using getDefinition and pass parameter to the
   constructor but the problem is that the number of parameters can be
   different. I tried using apply like this but I can't make it work.
  
   var classReference:Object = getDefinitionByName(className);
   var object:Object = new classReference.apply(this, array);
  
   Is there any way to do this ?
  
   ___
   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
  
 
 
 
  --
  --Joel Stransky
  stranskydesign.com
  ___
  Flashcoders mailing list
  Flashcoders

Re: [Flashcoders] How do you access this mailing list ...

2009-01-08 Thread Joel Stransky
You might find this helpful but it sure isn't as convenient as a forum
archive would be...
http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/index.html#45599

On Thu, Jan 8, 2009 at 12:17 PM, Bob Wohl bob.w...@gmail.com wrote:

 If I remember correctly, we used to have a public archive for this at
 chattyfigs but people started fishing emails from it(4 years ago maybe)
 and Dave had some issues and maybe even got fed up with the
 constant maintenance. This was before the days of google groups.
 But being a developer my memory is pretty cloudy ;)
 B.

 On Wed, Jan 7, 2009 at 9:06 PM, SJF sjf...@gmail.com wrote:

  I find the flashcoders mailing list very helpful and often pick up new
  ideas/techniques from what people post.
 
  Just wondering how people access this mailing list.
 
  It would be great if you could configure the SearchCoders Dashboard
 (which
  is a nice little air app - see link http://www.searchcoders.com/) for
 this
  FlashCoders list. I'll send them an email (searchcoders) and see if this
 is
  possible.
 
  Any thoughts on this.
 
  Cheers.
  SF.
  ___
  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




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


Re: [Flashcoders] create object with getDefinition and pass parameters using apply ?

2009-01-08 Thread Joel Stransky
Why not predefine the params as null?

class myClass{
  public function myClass(param1 = null, param2 = null, ... param6 = null){
  }
}

or just use the rest (...) parameter

class myClass{
  public function myClass(...args){
for(var i:uint = 0; i  args.length; i++){
  trace(args[i]);
}
  }
}

On Thu, Jan 8, 2009 at 10:36 PM, Patrick Matte | BLITZ 
pma...@blitzagency.com wrote:

 Well for now I've done this which supports up to 5 arguments but if
 anyone's got a better suggestion please tell me...

 var classReference:Object = getDefinitionByName(className);
 var object:Object;
 switch(array.length) {
case 0:
object = new classReference();
break;
case 1:
object = new classReference(array[0]);
break;
case 2:
object = new classReference(array[0],array[1]);
break;
case 3:
object = new classReference(array[0],array[1],array[2]);
break;
case 4:
object = new
 classReference(array[0],array[1],array[2],array[3]);
break;
case 5:
object = new
 classReference(array[0],array[1],array[2],array[3],array[4]);
break;
 }

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Patrick
 Matte|BLITZ
 Sent: Thursday, January 08, 2009 7:19 PM
 To: Flash Coders List
 Subject: [Flashcoders] create object with getDefinition and pass parameters
 using apply ?

 I need to create objects using getDefinition and pass parameter to the
 constructor but the problem is that the number of parameters can be
 different. I tried using apply like this but I can't make it work.

 var classReference:Object = getDefinitionByName(className);
 var object:Object = new classReference.apply(this, array);

 Is there any way to do this ?

 ___
 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




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


Re: [Flashcoders] Patrick Jakub Jankun added you as a connection on Plaxo

2009-01-07 Thread Joel Stransky
Sorry I have to rant. For such an elite group of coders, this email format
is really annoying. It's probably an old issue but isn't there simply a
flashcoders forum like Kirupa and flashkit? It's so much easier to keep
threads together, search for recurrent questions and style code samples.
/rant

On Wed, Jan 7, 2009 at 9:00 AM, Patrick Jakub Jankun pu...@mx.plaxo.comwrote:


 Hi Flashcoder,

 Patrick Jakub Jankun wants to add you as a connection on Plaxo.

 To accept this connection request, go to:

 http://www.plaxo.com/invite?i=56225383k=804845241l=ensrc=emailet=1est=nolevelsetv=nnic1b2el=en

 Thanks!
 The Plaxo team

 More than 20 million people use Plaxo to keep in touch with the
 people they care about.

 Don't want to receive emails from Plaxo any more? Go to:
 http://www.plaxo.com/stop?src=emailet=1est=nolevelsetv=nnic1b2el=en

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




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


Re: [Flashcoders] design pattern diagrams...

2009-01-07 Thread Joel Stransky
I'm only just starting to understand the concepts but AS3 Design Patterns is
a great book (aside from being riddled with typo's)

It's possible you want a Command Pattern for your issue but I'm not at a
point where I can say for sure.

On Wed, Jan 7, 2009 at 3:47 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 I am looking to get more info on the composition of design patterns and
 which ones are used most often in the corporate world.

 Diagrams accompanied by code examples would be awesome.  I have been able
 to find stuff in the past; yet, I really want to know what is generally
 preferred?

 I like to try and make things black box; however, it just seems illogical
 that things be black boxes all the time.

 when a person talks to another person the environment that they are in has
 to facilitate the communication; thus, if I have two objects instantiated in
 the same class and I want them to communicate with each other, I have to
 have a function in the main class or somewhere globally that allows those
 objects to communicate.

 How do I accomplish this without calling to the function in the parent?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] design pattern diagrams...

2009-01-07 Thread Joel Stransky
@Jason
I'm talking about the oreilly book Actionscript 3.0 Design Patterns by
William Sanders and Chandima Cumaranatunge. Enter chapters are shifted off
the page but there are addendum on the site.

Also, MVC's are made up Observer, Strategy, and Composite patterns. Those
need to be understood first.


@Anthony,
From what I've understood, if you aren't going to need to go back an
edit/extend the app frequently or work on a team, there really isn't much
benefit to using design patterns. They do however lend to re-using old
classes in new apps so you that you don't have to start from scratch each
time.

On Wed, Jan 7, 2009 at 6:16 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 But I am trying to understand why you would go through all that trouble,
 when calling the function in the parent, if it is a very small application
 unlikely to be expanded upon, is so much simpler?  maybe for code re-use in
 a bigger application sure; however, doesn't it seem weird that tightly woven
 and fast executing code is not prized anymore, and there is a preference for
 bloated object oriented frameworks?  All in the name of making the
 development cycle smaller and thus less costly; yet, what about increased
 file size issues and decreased performance?

 More objects and more event listeners == less performance and higher memory
 usage in my understanding.




 Ron Wheeler wrote:

 Head First Design Patterns is very easy to pick up. No typos, lots and
 lots of pictures, illustrations and code examples.

 http://oreilly.com/catalog/9780596007126/?CMP=AFC-ak_bookATT=Head+First+Design+Patterns

 http://www.headfirstlabs.com/books/hfdp/ for a quick overview and a
 typical illustration

 http://oreilly.com/catalog/9780596007126/toc.pdf  Read the section on the
 Observer Pattern. It might be what you are looking for.

 Merrill, Jason wrote:

 I think just a quick answer to your questions which may help a lot is to
 check into understanding MVC - the Model-View-Controller design pattern.
  Probably one of the most common pattern used and one that other coding
 design frameworks use as well for part of their operations.

 So there are also frameworks like Cairngorm which takes MVC and other
 patterns together and go a lot further, it has things like Commands to
 facilitate communication.  But simple MVC using event listeners and
 dispatchers is probably the best place to start to get what you want to do
 going.


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

 Interested in Flash Platform technologies?  Join the Bank of America
 Flash Platform Developer Community Interested in innovative ideas in
 Learning?  Check out the Innovative Learning Blog and subscribe.






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
 Sent: Wednesday, January 07, 2009 3:48 PM
 To: Flash Coders List
 Subject: [Flashcoders] design pattern diagrams...

 I am looking to get more info on the composition of design patterns and
 which ones are used most often in the corporate world.

 Diagrams accompanied by code examples would be awesome.  I have been able
 to find stuff in the past; yet, I really want to know what is generally
 preferred?

 I like to try and make things black box; however, it just seems illogical
 that things be black boxes all the time.

 when a person talks to another person the environment that they are in
 has to facilitate the communication; thus, if I have two objects
 instantiated in the same class and I want them to communicate with each
 other, I have to have a function in the main class or somewhere globally
 that allows those objects to communicate.

 How do I accomplish this without calling to the function in the parent?
 ___
 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




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


Re: [Flashcoders] Auto Reply: Flashcoders Digest, Vol 16, Issue 8

2009-01-07 Thread Joel Stransky
This is getting annoying.

2009/1/7 j...@masterkitchen.de

 Vielen Dank für Ihre Nachricht.

 Ich bin bis einschließlich 9. Januar 2009 nicht erreichbar. In dringenden
 Fällen wenden Sie sich bitte an Herrn Peer Schmidt-Soltau (
 p...@masterkitchen.de) oder Frau Hannah Witopil (han...@masterkitchen.de).

 Vielen Dank
 Johannes Killinger

 Master Kitchen GmbH
 Audiovisuelle Medienentwicklung
 Schorndorfer Straße 42/2 • 71638 Ludwigsburg

 Telefon (07141) 4 88 89-12
 Telefax (07141) 4 88 89-19

 http://www.masterkitchen.de



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




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


Re: [Flashcoders] convert data passed to swf to be a sound or video object in flash player 10?

2009-01-06 Thread Joel Stransky
I thought maybe the ByteArray could pull this off in some way but I've never
looked into it.

On Tue, Jan 6, 2009 at 9:09 AM, Manish Jethani manish.jeth...@gmail.comwrote:

 On Sun, Jan 4, 2009 at 8:30 PM, Anthony Pace anthony.p...@utoronto.ca
 wrote:
  I heard that you can take data and convert it into sound and video
 objects
  in flash player 10?  Am I wrong?
 
  I am wondering if it is possible to pass data to the swf in chunks and
 then
  piece it together to make sound or video object?  Just wondering if this
 is
  possible in flash player 10.

 I don't believe it is possible to play FLV in that way, even in Flash
 Player 10 (I'd love to be wrong). If it's an AIR application, the best
 you can do is write the data to disk and load it from there as a local
 file.

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




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


Re: [Flashcoders] RE: Interactive Developer, NYC | 90-100k (Beau Gould (OSS))

2009-01-05 Thread Joel Stransky
That's about the going rate in my area. Now if only I could nail down that
much in freelance contracts :)
http://www.indeed.com/salary?q1=Flashl1=Virginiatm=1

On Mon, Jan 5, 2009 at 11:34 AM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 Agreed - for NYC, that's not obscene given the cost of living there.


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

 Interested in Flash Platform technologies?  Join the Bank of America Flash
 Platform Developer Community
 Interested in innovative ideas in Learning?  Check out the Innovative
 Learning Blog and subscribe.





 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt S.
 Sent: Thursday, January 01, 2009 12:05 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] RE: Interactive Developer, NYC | 90-100k (Beau
 Gould (OSS))

 If it's in New York City, thats not nearly as much as it seems like
 once you factor in rent, cost of living, etc.

 .m

 On 1/1/09, alan skinner alanskinner1...@hotmail.com wrote:
 
 
  Surely thats not the going rate for a flash developer in the US?
  Thats an obscene amount of money ;o)
 
 
 ___
 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




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


Re: [Flashcoders] AS3: Dispatching events to further listeners, but not to itself

2008-12-23 Thread Joel Stransky
Why not just include the detection logic inside the handlers you already
have?

On Tue, Dec 23, 2008 at 9:52 AM, Alexander Farber 
alexander.far...@gmail.com wrote:

 Hello,

 I have 2 classes: PlayingCard and PlayingTable.

 The PlayingCard listens on MOUSE_UP, DOWN
 and MOVE to call startDrag() and stopDrag().

 I do not want to introduce custom events,
 so I try to subscribe the PlayingTable to
 MOUSE_MOVE and MOUSE_UP events
 of each PlayingCard, so that the table can:

 1) Detect that a PlayingCard is being
dragged to a right spot (depending on
the current phase of the game - for ex.
from the dealer to the player), so that
it can change color (like glow in green)

 2) Detect that the mouse has been
released after dragging a PlayingCard
and check if the move been valid.

 My problem is that when I try to dispatch
 the MOUSE_MOVE events, then the
 PlayingCard receives it again and again
 and gives me the runtime error:

 Error #2094: Event dispatch recursion overflow.
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at Card/handleMouseMove()

 Has anybody please a solution for
 this probably often occuring problem?

 Thank you
 Alex

 PS: Here is my current troublesome code:

public function PlayingCard() {
   ..
   addEventListener(MouseEvent.MOUSE_DOWN, handleMouseDown);
}

private function handleMouseDown(event:MouseEvent):void {
addEventListener(MouseEvent.MOUSE_UP, handleMouseUp);
addEventListener(MouseEvent.MOUSE_MOVE, handleMouseMove);
...
startDrag();
}

private function handleMouseUp(event:MouseEvent):void {
removeEventListener(MouseEvent.MOUSE_UP, handleMouseUp);
removeEventListener(MouseEvent.MOUSE_MOVE, handleMouseMove);
..
stopDrag();
}

private function handleMouseMove(event:MouseEvent):void {
// XXX trying to reuse the MOUSE_MOVE event
// XXX and to dispatch it to PlayingTable - fails :-(

dispatchEvent(event);
}
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
--Joel Stransky
stranskydesign.com
___
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 Joel Stransky
Wow I didn't know that about FD. Gonna have to start using it. I still find
myself wanting to use Flex Dev but that's another thread.

It's nice to see discussions like this. I feel like some things are foregone
conclusions and that I'm late to the part but hey, even Grant Skinner is
blogging about cuddling
braceshttp://www.gskinner.com/blog/archives/2008/11/curly_braces_to.html.


For me, it depends on the complexity of the logic involved in calculating
the return. If I'm dealing with a sensible property such as the left
boundary for a group of display children, conditionals tend to read cleaner
when I can just write:
if(this.mouseX  grid.left) rather than if(this.mouseX  grid.getLeft()). If
the property requires more complex code in order to return a value such as
looping over an array, I use getVal().

getters and setters also have certain syntax requirements so I also avoid
using them whenever I need to do something slightly different such as use
multiple parameters.

On Tue, Dec 9, 2008 at 10:18 AM, Cor [EMAIL PROTECTED] wrote:

 When you open the Startpage of FD you find some more shortcuts.
 HTH
 Cor

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

 Ooh - never knew about that. :-)

 You learn something every day!

 Ian

 On Tue, Dec 9, 2008 at 2:40 PM, jonathan howe [EMAIL PROTECTED]
 wrote:
  The magic Context code completion hotkey, which by default is
 Ctrl-Shift-1,
  when your cursor is over a variable declaration.
  This awesome hotkey also does cool stuff like generates an event handler
  when your cursor is inside an addEventListener declaration... definitely
  check it out in the FD docs!
 
 ___
 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




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


Re: [Flashcoders] My rights - site not paid for.

2008-12-08 Thread Joel Stransky
Sounds like you have pretty good advice so far. I would consider changing
the ftp password but I don't know how lawful that is if its the clients
hosting account.

To prevent situations like these I require a down payment to even start and
incremental payments as milestones are met. This allows either party to quit
early without defaulting on the contract.

Further, I host all of my clients sites free for 3 months. It's a nice
gesture up front plus the site technically remains my property.

On Mon, Dec 8, 2008 at 6:50 AM, Piers Cowburn [EMAIL PROTECTED] wrote:

 I've been in this situation before and done the same as Paul, it ended up
 going to a small claims court and the client didn't even turn up for the
 hearing. I got paid and the costs were covered by the client.

 Piers



 On 8 Dec 2008, at 11:38, Paul Steven wrote:

  Hi Stephen

 I had a similar situation about a year ago and in this case I had no
 contract but just emails from the client agreeing on the cost for the
 work.

 Anyway I simply made a claim via
 https://www.moneyclaim.gov.uk/csmco2/index.jsp and I won my case. It was
 really simple and will cost you nothing as you get all your costs paid for
 by the customer if you win.

 I would be reluctant to take the site down as doing so will then mean the
 customer has nothing to pay for. By leaving the site up and running, you
 have fulfilled your obligations.

 Anyway good luck!!

 Paul




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Stephen
 Matthews
 Sent: 08 December 2008 11:03
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] My rights - site not paid for.

 What are my rights ( in the UK ) for taking down a site which has not
 been paid for?

 The owner of the company is happy with his site, but is not coughing up.

 I still have FTP access.

 He says the site took too long, and makes lots of excuses for not
 paying - which do not tally.
 He changed the site drastically at least three times - I think it took
 too long too, due to this.
 He is updating the news section and other sections whenever he has new
 material.

 I would be interested in your thoughts.

 This person won an award for being a top business man this year - is
 this what you have to do to be a top business man - screw people?

 I am not the kind of person to take this action really, but I may
 consider it.

 Thanks

 S



 ___
 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




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


Re: [Flashcoders] Soma Protest

2008-12-08 Thread Joel Stransky
This looks very cool Romuald,
I'm taking a shot at my first Gaia project atm but if it falls down I'll
have to give SOMA a try. Thanks for sharing.

On Mon, Dec 8, 2008 at 11:49 AM, Kevin Mcfarland [EMAIL PROTECTED]wrote:

 Living near San Francisco, at first glance I thought this thread was going
 to be about a protest in the South-of-Market (SOMA) neighborhood. I began
 to visualize angry FlashCoders taking to the streets, demanding (a better
 IDE?) (a return to some AS2 features?)

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




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


Re: [Flashcoders] What design pattern would this be?

2008-12-07 Thread Joel Stransky
Thanks Jiri,
I had not seen that site. I had assumed the book covered all of the patterns
I was going to need but in hindsight that was silly. The visitor pattern
seems very similar to adapter however. I guess I've got a lot of learning to
do. I appreciate the notion of not over engineering but until I understand
them fluently I intend to implement patterns where possible no matter how
trite.

On Sun, Dec 7, 2008 at 5:26 AM, Jiri Heitlager [EMAIL PROTECTED]
 wrote:

 Maybe this one:

 http://www.as3dp.com/2008/12/06/actionscript-30-visitor-design-pattern-a-tale-of-traverser-and-the-double-dispatch-kid/

 or check out the articles there I am sure there is a pattern described that
 will suit your needs.

 I also think the previous comment on overenginering should be taking into
 consideration..

 Good luck,

 Jiri


 Joel Stransky wrote:

 Thanks for your perfectly useless answer. I know if I could recognize the
 need for certain patterns easily I'd be more than happy to help out rather
 than chastise.It looks like it's possibly a Template pattern but I was
 hoping for the same kind of insight I've been giving at flashkit for eight
 years no matter how simple the question.

 On Sat, Dec 6, 2008 at 10:29 PM, Latcho [EMAIL PROTECTED] wrote:

  Are you gonna  take a map  if you have clear line of sight to your
 destination ?
 Shall we advise you on traffic light implementation  if you are the only
 driver in the world ?
 Dont' overengineer. If you want to integrate / learn a design pattern
 take
 a more challenging and/or interactive interface.

 Latcho


 Joel Stransky wrote:

  I'm trying to make design patterns a regular part of my process but
 understanding them and knowing which one to use are proving to be a
 quite
 different.
 I'm working on a couple of classes. One class's job is to iterate over a
 list of display objects and modify their scale and location based on
 mouse
 position.
 I want this class to be able to work with a runtime generated OR an
 authortime generated display list.
 I figure it's as easy as instantiating either a RuntimeChildren or
 AuthortimeChildren class and passing it to the constructor of my
 DisplayListUtility class.
 Since it's so simple, does it even qualify as a design pattern and if so
 which one?



  ___
 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




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


Re: [Flashcoders] Registration Point of Clips (Scale 9)

2008-12-07 Thread Joel Stransky
For the vast majority of projects, symbols will be far easier to edit,
replicate, generate and calculate with top left registration. Center
registration tends to be easier however when dealing with dynamic animation
systems employing lots of coordinate rotation.

On Sun, Dec 7, 2008 at 10:24 AM, Muzak [EMAIL PROTECTED] wrote:

 top left.. always.
 If you need the center, calculate it.

 - Original Message - From: SJF [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Sunday, December 07, 2008 9:22 AM
 Subject: [Flashcoders] Registration Point of Clips (Scale 9)



  Anyone have a preference for the registration point of clips created in
 flash that are accessed dynamically?

 Do you prefer Top-Left or Center alignment for your MovieClips that
 are Scale-9 enabled and accessed programmatically.

 Also, what about Text Fields within these Clips.

 Anyone have an opinion on this.

 ChHeers,
 SF.


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




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


Re: [Flashcoders] What design pattern would this be?

2008-12-07 Thread Joel Stransky
Thanks Latcho,
That is actually very helpful. Now that I look at it I can see definitely
would be over engineering in this case but it will be good practice for me.

On Sun, Dec 7, 2008 at 11:32 AM, Joel Stransky [EMAIL PROTECTED]wrote:

 Thanks Jiri,
 I had not seen that site. I had assumed the book covered all of the
 patterns I was going to need but in hindsight that was silly. The visitor
 pattern seems very similar to adapter however. I guess I've got a lot of
 learning to do. I appreciate the notion of not over engineering but until I
 understand them fluently I intend to implement patterns where possible no
 matter how trite.


 On Sun, Dec 7, 2008 at 5:26 AM, Jiri Heitlager 
 [EMAIL PROTECTED] wrote:

 Maybe this one:

 http://www.as3dp.com/2008/12/06/actionscript-30-visitor-design-pattern-a-tale-of-traverser-and-the-double-dispatch-kid/

 or check out the articles there I am sure there is a pattern described
 that will suit your needs.

 I also think the previous comment on overenginering should be taking into
 consideration..

 Good luck,

 Jiri


 Joel Stransky wrote:

 Thanks for your perfectly useless answer. I know if I could recognize the
 need for certain patterns easily I'd be more than happy to help out
 rather
 than chastise.It looks like it's possibly a Template pattern but I was
 hoping for the same kind of insight I've been giving at flashkit for
 eight
 years no matter how simple the question.

 On Sat, Dec 6, 2008 at 10:29 PM, Latcho [EMAIL PROTECTED] wrote:

  Are you gonna  take a map  if you have clear line of sight to your
 destination ?
 Shall we advise you on traffic light implementation  if you are the only
 driver in the world ?
 Dont' overengineer. If you want to integrate / learn a design pattern
 take
 a more challenging and/or interactive interface.

 Latcho


 Joel Stransky wrote:

  I'm trying to make design patterns a regular part of my process but
 understanding them and knowing which one to use are proving to be a
 quite
 different.
 I'm working on a couple of classes. One class's job is to iterate over
 a
 list of display objects and modify their scale and location based on
 mouse
 position.
 I want this class to be able to work with a runtime generated OR an
 authortime generated display list.
 I figure it's as easy as instantiating either a RuntimeChildren or
 AuthortimeChildren class and passing it to the constructor of my
 DisplayListUtility class.
 Since it's so simple, does it even qualify as a design pattern and if
 so
 which one?



  ___
 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




 --
 --Joel Stransky
 stranskydesign.com




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


[Flashcoders] What design pattern would this be?

2008-12-06 Thread Joel Stransky
I'm trying to make design patterns a regular part of my process but
understanding them and knowing which one to use are proving to be a quite
different.
I'm working on a couple of classes. One class's job is to iterate over a
list of display objects and modify their scale and location based on mouse
position.
I want this class to be able to work with a runtime generated OR an
authortime generated display list.
I figure it's as easy as instantiating either a RuntimeChildren or
AuthortimeChildren class and passing it to the constructor of my
DisplayListUtility class.
Since it's so simple, does it even qualify as a design pattern and if so
which one?

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


Re: [Flashcoders] What design pattern would this be?

2008-12-06 Thread Joel Stransky
Thanks for your perfectly useless answer. I know if I could recognize the
need for certain patterns easily I'd be more than happy to help out rather
than chastise.It looks like it's possibly a Template pattern but I was
hoping for the same kind of insight I've been giving at flashkit for eight
years no matter how simple the question.

On Sat, Dec 6, 2008 at 10:29 PM, Latcho [EMAIL PROTECTED] wrote:

 Are you gonna  take a map  if you have clear line of sight to your
 destination ?
 Shall we advise you on traffic light implementation  if you are the only
 driver in the world ?
 Dont' overengineer. If you want to integrate / learn a design pattern take
 a more challenging and/or interactive interface.

 Latcho


 Joel Stransky wrote:

 I'm trying to make design patterns a regular part of my process but
 understanding them and knowing which one to use are proving to be a quite
 different.
 I'm working on a couple of classes. One class's job is to iterate over a
 list of display objects and modify their scale and location based on mouse
 position.
 I want this class to be able to work with a runtime generated OR an
 authortime generated display list.
 I figure it's as easy as instantiating either a RuntimeChildren or
 AuthortimeChildren class and passing it to the constructor of my
 DisplayListUtility class.
 Since it's so simple, does it even qualify as a design pattern and if so
 which one?




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




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


  1   2   >