Re: [Flashcoders] OT: Interactive conferences

2013-01-24 Thread Matt Gitchell
I was a big FDT user, but 5.5 really started to mess with my flow. I
never was a big fan of Flex/Flash Builder. I switched to IntelliJ IDEA
for AS and have just continued that through now as I'm doing almost
zero Flash work in lieu nearly all HTML now.
I really like the tool, and to be able to use the same environment for
Flash and JS helps a lot.

On Thu, Jan 24, 2013 at 11:01 AM, Odie Bracy obr...@mac.com wrote:
 I have switched to HTML5, from Flash, for my web apps as so many of my 
 customers want to use iPad. My apps are medical in nature (use of them 
 requires proper professional credentials) and so I don't want to put them on 
 the App store. I charge a subscription fee for access  to the apps and issue 
 Usernames and Passwords to the subscribers. After a long search and trial of 
 many tools, I settled on HandHeldDesigner. It is the closest programming tool 
 to Flash that I have seen and so far I have been able to do anything with it 
 that I have wanted. It is available on the Mac App store and at  
 http://handhelddesigner.com

 I have no affiliation with the program or the author.

 Odie Bracy PhD HSPP
 Clinical Neuropsychologist
 President, Psychological Software Service
 www.psychological-software.com


 On Jan 24, 2013, at 1:36 PM, Merrill, Jason wrote:

 Ha, well right now I am mostly just using Dreamweaver (don't ask, but to sum 
 up, I can't install other tools myself on my work machine) for 
 HTML/Javascript/CSS. I'm really more about learning the languages and 
 techniques rather than the tools though, but good question!

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning
  703.302.9265 (w/h)






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John 
 McCormack
 Sent: Thursday, January 24, 2013 12:48 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] OT: Interactive conferences

 Since this might also be about tools you might want to see on your visit, 
 what do tools/IDEs you use (especially Javascript)?
 John

 On 24/01/2013 16:14, Merrill, Jason wrote:
 We're transitioning away from Flash mostly and into the HTML/Javascript/CSS 
 world of interactive development. We used to attend Adobe Max, but since 
 we're doing less and less with Adobe products, what conferences would you 
 suggest? What is/are the biggest and best interactive design conferences 
 for people in our industry that use these technologies? Bascially, we were 
 Flash developers and now do most of our stuff with Javascript/HTML/CSS to 
 build interactive simulations and games for learning. What would be the 
 equivalent of Adobe Max?

 Thanks!

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning
  703.302.9265 (w/h)



 --
 This message, and any attachments, is for the intended recipient(s) only, 
 may contain information that is privileged, confidential and/or proprietary 
 and subject to important terms and conditions available at 
 http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
 recipient, please delete this message.

 ___
 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

 --
 This message, and any attachments, is for the intended recipient(s) only, 
 may contain information that is privileged, confidential and/or proprietary 
 and subject to important terms and conditions available at 
 http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
 recipient, please delete this message.

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

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

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


Re: [Flashcoders] PureMVC or RoboLegs ?

2010-09-13 Thread Matt Gitchell
We're using RobotLegs a ton these days, it's fantastic.
But I'd ultimately recommend learning MVC frameworks with PureMVC, as I
think experience with it makes for stronger fundamentals. You end up wiring
some stuff in with PureMVC manually that RobotLegs more or less automates.
If the goal is to get the MVC patterns  usage down correctly, that is.
In practice I'm definitely finding RL faster to develop with (particularly
with AS3 Signals), though with the caveat that handing off an RL project to
a dev not familiar with it can spawn its own set of annoyances.

--Matt


On Mon, Sep 13, 2010 at 11:39 AM, Karim Beyrouti ka...@kurst.co.uk wrote:

 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


Re: [Flashcoders] JW Player API documentation

2010-04-22 Thread Matt Gitchell
We've done several.
*http://developer.longtailvideo.com/trac/wiki/Player5PluginsBuilding

--Matt
*
On Thu, Apr 22, 2010 at 8:42 AM, Mattheis, Erik (MIN - WSW) 
ematth...@webershandwick.com wrote:

 Has anyone made a plugin for the JW Player? I'm tasked with doing so, and
 can't find documentation of the API. Is there any? Do they just expect you
 to dig through the classes and figure out what you can do?

 Thanks.

 _ _ _
 Erik Mattheis
 Senior Web Developer
 Minneapolis
 T  952 346 6610
 C 612 377 2272

 Weber Shandwick
 Advocacy starts here.

 PRWeek Global Agency Report Card 2009 - Gold Medal Winner
 The Holmes Report Global Agency of the Year
 PR News Agency of the Year

 ___
 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] SOLUTION: converting string to unicode range

2010-04-15 Thread Matt Gitchell
That's excellent, thanks!

On Thu, Apr 15, 2010 at 8:37 AM, allandt bik-elliott (thefieldcomic.com) 
alla...@gmail.com wrote:

 hey guys

 spent a couple of hours googleoogling around to find something to quickly
 convert a string of special characters into a unicode range to no avail so
 i've written a function to do it for me and i thought some of you dynamic
 font embedders might appreciate it

 [code]
 package uk.co.thereceptacle.utils { import
 flash.errors.IllegalOperationError; /** * text utilities * @author Allandt
 Bik-Elliott * @version 1.0 */ public class TextUtils { // constructor
 public
 function TextUtils() { throw new IllegalOperationError(TextUtils is a
 static class and should not be instantiated); } // methods /** * converts
 a
 string of characters into a unicode range for font embedding * @param
 string
 */ public static function traceUnicodeRange(string:String):void { var
 unicodeRange:String = ; var ltr:String; for (var i:int = 0; i 
 string.length; i++) { if (i  0) unicodeRange += , ; ltr =
 string.charCodeAt(i).toString(16); ltr = addLeadingZeros(ltr); unicodeRange
 += U+ + ltr.toUpperCase(); } trace(unicodeRange); } private static
 function addLeadingZeros(ltr:String):String { if (ltr.length  4) { ltr =
 0 + ltr; ltr = addLeadingZeros(ltr); } return ltr; } } }
 [/code]

 it's helped me out no end

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

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


Re: [Flashcoders] What IDE on Mac ?

2009-12-14 Thread Matt Gitchell
There's been some interesting Twitter buzz about IntelliJ IDEA's AS3
implementation lately, but I haven't gotten around to checking it out yet.
Would love to hear a report if anyone has time to do so!

--Matt

On Mon, Dec 14, 2009 at 4:13 AM, Steven Sacks flash...@stevensacks.netwrote:

 FDT is pretty much your best choice.



 On 12/14/2009 3:53 AM, Greg Ligierko wrote:

 I grown up with PC, Windows and in work I am completely happy with
 FlashDevelop + CS3. For some time I am also a happy MacBook user, but
 it is hard for me to swap with AS2/AS3 coding to Mac. So far I could
 not establish a comfortable work environment on Mac.

 I read about two options:
 - adapting Xcode to ActionSript (seems complex),
 - Eclypse with ActionScript plugin.

 I had no success in adapting Xcode and I did not even tried installing
 Eclypse. I would like to know your opinion on which option is more
 efficient and more comparable to Win based FlashDevelop + CS3 IDE. For
 work, I need badly code snippets and syntax check. Runtime debugging
 is not crucial for me.

 Tia,
 Greg

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

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

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


Re: [Flashcoders] Back On Course, Still Problems

2009-12-08 Thread Matt Gitchell
We've gone from rudimentary Flash to jungle exile to treatises on human
behavior bouncing off the Illuminati on the way to betrayal and
disillusionment.
Pretty impressive work, list; someone should convert this thread into an
opera.

On Tue, Dec 8, 2009 at 3:35 AM, Cedric Muller flashco...@benga.li wrote:

 I don't know, I think it has more to do with humility and being humble ...
 are we ?



  Beno,

 In the spirit of your recommendations and opinions regarding criticism,
 allow me to be blunt with you in the manner you find most effective.

 Considering everyone here has expressed a negative reaction to your
 communication style, it's pretty fucking clear where the problem is.

 Whether you like it or not, whether you agree with it or not, based
 entirely on people's reactions, you're being an asshole.

 You can either accept the reality of people's reactions and adjust your
 behavior accordingly, or you can refuse to accept it and attempt, with more
 of the same behavior, to convince them to change their perception.

 Which do you think is more likely to be within your power to control? Your
 behavior or everyone else's?

 Here are some famous quotes for you:

 God, grant me the serenity to accept the things I cannot change, the
 courage to change the things I can, and the wisdom to know the difference.
 - Reinhold Niebuhr

 Insanity is defined as doing the same thing over and over and expecting
 different results. - Albert Einstein

 Do what you will. Keep behaving in a way that other people find
 distasteful and discover how quickly nobody will ever help you again, or
 change your behavior for a different result.  It's really up to you.

 This is the last I'll speak on the matter, and I have no interest in
 discussing it with you further.  The list owner, who has also expressed a
 negative reaction to your approach, has asked for this to end, and I
 personally think that if you don't change your tact, he should ban you from
 the list.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

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


Re: [Flashcoders] Error when trying to embed a font

2009-09-03 Thread Matt Gitchell
You said you were looking for a .pfm file down below, is it a PostScript
font? If so, doing a font library symbol is your only recourse.
--Matt

On Thu, Sep 3, 2009 at 10:04 AM, Ktu ktu_fl...@cataclysmicrewind.comwrote:

 The only thing I can suggest is looking at Lee Brimelow's tutorial on using
 [Embed] for fonts. Maybe going through that tutorial will enlighten you.

 http://gotoandlearn.com/play?id=102

 Kttu

 On Mon, Aug 31, 2009 at 3:10 PM, Andrew Murphy amur...@delvinia.com
 wrote:

  Hi again, Ian. :)
 
  I have tried a few different variations on the font name, but I hadn't
  tried
  using Font.enumerateFonts() to list the system's names for the fonts.
   Thank
  you for that suggestion. :)  I gave it a try, listing out the fontName
 and
  fontStyle props and ended up with this:
 
  name: Akzidenz Grotesk BE   style: regular
  name: Akzidenz Grotesk BE Bold   style: regular
  name: Akzidenz Grotesk BE BoldEx   style: regular
  name: Akzidenz Grotesk BE Ex   style: regular
  name: Akzidenz Grotesk BE Light   style: regular
  name: Akzidenz Grotesk BE LightEx   style: regular
  name: Akzidenz Grotesk BE LightOsF   style: regular
  name: Akzidenz Grotesk BE LightSC   style: regular
  name: Akzidenz Grotesk BE MdEx   style: regular
  name: Akzidenz Grotesk BE Super   style: regular
 
 
  I'd already tried Akzidenz Grotesk BE but just in case I gave it
 another
  try, like this:
 
  [Embed(
   systemFont=Akzidenz Grotesk BE,
   fontName=AkzidenzOTF,
   mimeType=application/x-font,
   unicodeRange=U+0021-U+00FF
  )]
  var akzidenz_otf:Class;
  Font.registerFont(akzidenz_otf);
 
 
  And it throws the exact same error.
 
 
 
  However I have managed to get it working, sort of, by just creating Font
  Symbols in my FLA's Library.  It means embedding the whole dern font,
  rather
  than a smaller subset of characters, but at least it works.
 
  I guess this is solved.  More-or-less.
 
 
  Thank you for your help. ^_^
 
 
 
 
  
  Andrew Murphy
  Interactive Media Specialist
  amur...@delvinia.com
 
  Delvinia
  214 King Street West, Suite 214
  Toronto Canada M5H 3S6
 
  P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com
 
  CONFIDENTIALITY NOTICE
  This email message may contain privileged or confidential information. If
  you are not the intended recipient or received this communication by
 error,
  please notify the sender and delete the message without copying or
  disclosing it.
 
  AVIS DE CONFIDENTIALITÉ
  Ce message peut contenir de l'information légalement privilégiée ou
  confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu
 par
  erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
  détruire le contenu sans le communiquer a d'autres ou le reproduire.
 
 
 
   -Original Message-
   From: flashcoders-boun...@chattyfig.figleaf.com
   [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf
   Of Ian Thomas
   Sent: Monday, August 31, 2009 1:31 PM
   To: Flash Coders List
   Subject: Re: [Flashcoders] Error when trying to embed a font
  
   Sorry! My poor reading!
  
   The normal reason for such errors is that the name of the
   font (when using systemFont) does not exactly match the name
   your system thinks it should be. This can be complicated by
   font variants - you say you've already tried combinations of
   fontStyle, fontWeight etc. Have you tried those variants
   within the name? Could it be something like the name should
   be Berthold Akzidenz Grotesk Bold and you should have
   fontWeight set to bold?
  
   Have you tried Font.enumerateFonts() to list what fonts your
   Flash Player thinks is available on your system, and what
   their names are?
  
   Ian
  
   On Mon, Aug 31, 2009 at 6:01 PM, Andrew
   Murphyamur...@delvinia.com wrote:
Hi, Ian. :)
   
Thanks, but I tried that already, I mentioned it in my
   first post.  It
throws the same error.
   
   

Andrew Murphy
Interactive Media Specialist
amur...@delvinia.com
   
Delvinia
214 King Street West, Suite 214
Toronto Canada M5H 3S6
   
P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com
   
CONFIDENTIALITY NOTICE
This email message may contain privileged or confidential
   information.
If you are not the intended recipient or received this
   communication
by error, please notify the sender and delete the message without
copying or disclosing it.
   
AVIS DE CONFIDENTIALITÉ
Ce message peut contenir de l'information légalement privilégiée ou
confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir
reçu par erreur ce message, nous vous saurions gré d'en aviser
l'émetteur et d'en détruire le contenu sans le communiquer
   a d'autres ou le reproduire.
   
   
   
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On
   

Re: [Flashcoders] Error when trying to embed a font

2009-09-03 Thread Matt Gitchell
Sheesh. I totally forgot, I've done this before:
Create a TextField in your FLA, embed the selected character set into that
textfield,  stick that in a symbol, use [Embed] to embed that symbol (
[Embed(source=blah.swf, symbol=textMC)]), then you're off to the fonty
races, if memory serves. I've gotten this to work in the past, but honestly
I forget the particulars.

--Matt

On Thu, Sep 3, 2009 at 10:04 AM, Ktu ktu_fl...@cataclysmicrewind.comwrote:

 The only thing I can suggest is looking at Lee Brimelow's tutorial on using
 [Embed] for fonts. Maybe going through that tutorial will enlighten you.

 http://gotoandlearn.com/play?id=102

 Kttu

 On Mon, Aug 31, 2009 at 3:10 PM, Andrew Murphy amur...@delvinia.com
 wrote:

  Hi again, Ian. :)
 
  I have tried a few different variations on the font name, but I hadn't
  tried
  using Font.enumerateFonts() to list the system's names for the fonts.
   Thank
  you for that suggestion. :)  I gave it a try, listing out the fontName
 and
  fontStyle props and ended up with this:
 
  name: Akzidenz Grotesk BE   style: regular
  name: Akzidenz Grotesk BE Bold   style: regular
  name: Akzidenz Grotesk BE BoldEx   style: regular
  name: Akzidenz Grotesk BE Ex   style: regular
  name: Akzidenz Grotesk BE Light   style: regular
  name: Akzidenz Grotesk BE LightEx   style: regular
  name: Akzidenz Grotesk BE LightOsF   style: regular
  name: Akzidenz Grotesk BE LightSC   style: regular
  name: Akzidenz Grotesk BE MdEx   style: regular
  name: Akzidenz Grotesk BE Super   style: regular
 
 
  I'd already tried Akzidenz Grotesk BE but just in case I gave it
 another
  try, like this:
 
  [Embed(
   systemFont=Akzidenz Grotesk BE,
   fontName=AkzidenzOTF,
   mimeType=application/x-font,
   unicodeRange=U+0021-U+00FF
  )]
  var akzidenz_otf:Class;
  Font.registerFont(akzidenz_otf);
 
 
  And it throws the exact same error.
 
 
 
  However I have managed to get it working, sort of, by just creating Font
  Symbols in my FLA's Library.  It means embedding the whole dern font,
  rather
  than a smaller subset of characters, but at least it works.
 
  I guess this is solved.  More-or-less.
 
 
  Thank you for your help. ^_^
 
 
 
 
  
  Andrew Murphy
  Interactive Media Specialist
  amur...@delvinia.com
 
  Delvinia
  214 King Street West, Suite 214
  Toronto Canada M5H 3S6
 
  P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com
 
  CONFIDENTIALITY NOTICE
  This email message may contain privileged or confidential information. If
  you are not the intended recipient or received this communication by
 error,
  please notify the sender and delete the message without copying or
  disclosing it.
 
  AVIS DE CONFIDENTIALITÉ
  Ce message peut contenir de l'information légalement privilégiée ou
  confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu
 par
  erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
  détruire le contenu sans le communiquer a d'autres ou le reproduire.
 
 
 
   -Original Message-
   From: flashcoders-boun...@chattyfig.figleaf.com
   [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf
   Of Ian Thomas
   Sent: Monday, August 31, 2009 1:31 PM
   To: Flash Coders List
   Subject: Re: [Flashcoders] Error when trying to embed a font
  
   Sorry! My poor reading!
  
   The normal reason for such errors is that the name of the
   font (when using systemFont) does not exactly match the name
   your system thinks it should be. This can be complicated by
   font variants - you say you've already tried combinations of
   fontStyle, fontWeight etc. Have you tried those variants
   within the name? Could it be something like the name should
   be Berthold Akzidenz Grotesk Bold and you should have
   fontWeight set to bold?
  
   Have you tried Font.enumerateFonts() to list what fonts your
   Flash Player thinks is available on your system, and what
   their names are?
  
   Ian
  
   On Mon, Aug 31, 2009 at 6:01 PM, Andrew
   Murphyamur...@delvinia.com wrote:
Hi, Ian. :)
   
Thanks, but I tried that already, I mentioned it in my
   first post.  It
throws the same error.
   
   

Andrew Murphy
Interactive Media Specialist
amur...@delvinia.com
   
Delvinia
214 King Street West, Suite 214
Toronto Canada M5H 3S6
   
P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com
   
CONFIDENTIALITY NOTICE
This email message may contain privileged or confidential
   information.
If you are not the intended recipient or received this
   communication
by error, please notify the sender and delete the message without
copying or disclosing it.
   
AVIS DE CONFIDENTIALITÉ
Ce message peut contenir de l'information légalement privilégiée ou
confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir
reçu par erreur ce message, nous vous saurions gré d'en aviser
l'émetteur et d'en 

Re: [Flashcoders] Problem understanding Class heirarchy issue

2009-09-01 Thread Matt Gitchell
super(arg:AnyApplicableArgument) calls the constructor of the parent class,
in this case all the stuff that happens in function ClassB(){...}

On Tue, Sep 1, 2009 at 8:23 AM, Sajid Saiyed sajid.fl...@gmail.com wrote:

 yes, someFunction is getting called.
 If I change ClassB to:
 
 public class ClassB extends MovieClip
 or
 public class ClassB extends Sprite
 
 Then the constructor gets called.

 I still have to try super() as suggested by Steven (I am at home now
 so dont have the code with me)
 So Steven,
 Do youmean that I just add super() in the first line of ClassA
 constructor?

 Regards
 Sajid

 On Tue, Sep 1, 2009 at 11:03 PM, Jim Lafserjimlaf...@yahoo.com wrote:
  Have you verified that someFunciton is getting called?
  Is someFunction getting called in the scope that you expect?
  May need to use:
  addEventListener(ClassC.moveUP, Delegate.create(this, someFunction);
  to get someFunciton to run in the scope that you expect.
 
  --- On Tue, 9/1/09, Steven Sacks flash...@stevensacks.net wrote:
 
 
  From: Steven Sacks flash...@stevensacks.net
  Subject: Re: [Flashcoders] Problem understanding Class heirarchy issue
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Date: Tuesday, September 1, 2009, 9:11 AM
 
 
  You're not calling super() in the ClassA constructor.
 
 
  On Aug 31, 2009, at 11:12 PM, Sajid Saiyed wrote:
 
  Ok, Here is a bit more information.
 
  ClassA (works pefrectly fine):
  ---
  package com.folder.subfolder
  {
 import flash.display.*;
 import flash.events.*;
 import flash.filters.*;
 import flash.utils.Timer;
 import com.folder.subfolder.*;
 
 public class ClassA extends ClassC
  {
 public var myMenu: ClassB;
 
 public function ClassA (){
  addEventListener(ClassC.moveUP, someFunction);
 }
 public function someFunction(){
  myMenu = new ClassB();
   myMenu.name = mymenu;
   this.addChild(myMenu);
 }
 
 }
  }
 
  ClassB
  ---
  package com.folder.subfolder
  {
 import flash.display.*;
 import flash.events.*;
 import flash.filters.*;
 import flash.utils.Timer;
 import com.folder.subfolder.*;
 
 public class ClassB extends ClassC
  {
 public function ClassB (){
  // This is not getting called.
 }
 }
  }
 
 
  Does this explanation help a bit??
  Am I looking at the right place for the problem or the problem could
  be somewhere else?
 
  Thanks
  Sajid
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 

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

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


Re: [Flashcoders] Syntax coloring Eclipse

2009-08-21 Thread Matt Gitchell
I used this as a starting point when I was doing my FDT customization:
http://blog.ansuz.nl/index.php/tag/fdt/
I don't know how applicable they are to FB, but there it is.
Also, a quick Googling yields this link:
http://polygeek.com/302_flex_changing-font-colors-in-flex-buildereclipse

--Matt


On Fri, Aug 21, 2009 at 2:20 AM, Jiri jiriheitla...@googlemail.com wrote:

 I am forced to use eclipse, but i am used to work with a black background.
 I changed the syntax coloring in the eclipse preferences to match my
 preferences, but the symbols  . ,  ect.. are all black and there is not an
 option provided to changes there color.

 If you look at the Java syntax coloring options they are much more refined.

 I am looking into the FlexBuilder app root directory now to see if i can
 find the xml file that is defining the colors, which i cannot find.

 Does anyone know how i can find it, what to look for or how to deal with
 the super annoying thing that should be provided in any decent
 editorthank you Adobe !!

 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


Re: [Flashcoders] mac vs pc

2009-08-17 Thread Matt Gitchell
I figured this is where we'd end up.
I code in either environment with comparable speed, honestly, it's just
getting used to the workflow.
Honest! Now whether that means I code like the freakin' wind in either
or am slow as hell
in both I'll leave for you to decide. Rather than seeing the Eclipse-based
methodology as 'stupid,' I decided to consider it merely different and have
done some tweaks to get it the way I like it, which now I do.

And yes, I do 'think ahead' plenty, but that still doesn't mean that things
don't get moved around all that often. In my particular freelance world, I
end up dealing with 3rd party IT and backend guys and gals, subcontractors
of varying skill, clients who want to change scope, clients who DO change
scope (though they generally get punished financially), the gamut. Some of
these experiences mean changes of plans, which means that the refactoring
aspect is handy and saves me time.

The debug stuff is also very handy. I write code, compile, test; I
repeat this until I have a project done, for the most part. That means
that I engage the debugger more than just occasionally, I really like
having that data there.

I like these additional features, and it's worth the money to me to have
them all part of the same tool. If it saves me, say, 10 hours over the
course of owning the software, I've more than paid for it, and I've more
than paid for it.

Some of us get to work in worlds where we define all variables at the outset
of the project. We then see our projects built exactly to the class diagrams
we built when we set out to start, and we don't deviate. We then get to
write thousands of lines of perfect code, with perfect structure, then
compile it once and find that we've removed every listener, destroyed every
bitmap, caught every error, forseen every use case.

I am not one of those people, so I've bought a tool (and use a platform)
that helps compensate for that.

--Matt


On Mon, Aug 17, 2009 at 7:21 PM, Steven Sacks flash...@stevensacks.netwrote:

 The act of writing Actionscript in FlashDevelop is, IMO, better.  FD's code
 completion and code gen is easier and faster.  Because code completion and
 code gen is the majority of what I do from moment to moment as I'm writing,
 it's the better tool.

 Refactoring and debugging are not what I spend the majority of my time
 doing.  I have Flex Builder.  I use it sometimes, but not always, and
 generally I use it with Build Automatically turned on while I code in FD on
 the same project and it will spot compile-time errors on the fly.

 FDT is a great (albeit expensive) tool, but for day to day coding, I prefer
 FlashDevelop because it helps me write code faster.  It might not help me
 debug faster, but I spend a lot less time doing that than actually writing
 code, which is where FlashDevelop shines.

 I'm confused by all these comments about the strength of the refactoring
 tool being a deciding factor.  Do you really move stuff around packages that
 often? Do you really rename entire classes that often?  I find that thinking
 ahead solves that problem, and when it comes up, Find and Replace in files
 does a great job, even if it's a few Find and Replaces instead of just one
 Refactor command.

 Believe me, I (and many others) have asked the FD guys for this feature,
 and it's something they're working on adding.  However, it's not something I
 use often enough to outweigh the benefits FD provides when actually writing
 code.

 ___
 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] mac vs pc

2009-08-13 Thread Matt Gitchell
They're two different functions. You can do a find/replace on a text string
in FB or FDT through a project, which works the same as FD, but rename will
find all references in the project to the property/class you're renaming and
update there. Same net effect 95/100 times, but it's 'smarter' than just
find/replace. FDT at least also has move which will update all imports in
your project if you change your package structure, which I've found very
handy when the projects move just that much faster than the architecture.As
far as multiple projects goes, I have more than one open/switch between
projects all the time, whether to pinch some code that I haven't had time to
make into a library or just the day-to-day client juggling you do as a small
biz.
I'm interested in what you're saying about caret control tho, I guess
I hadn't realized there was anything all that different. Care to elaborate?

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

 FlashDevelop does do find and replace in files.  FlexBuilder's rename
 function is very slow sometimes.  FlashDevelop's Find and Replace In Files
 is nearly instant.  Considering how infrequently one uses rename in
 FlexBuilder, it doesn't seem to offset the slowness of day to day coding
 with it compared to FlashDevelop.

 To fuel the fire a bit more, IMNSHO, Windows has MUCH better carat control
 than Mac.  This makes writing code (and other documents) a lot easier and
 faster on Windows.  As much as I love OSX (and I really do), Mac's inferior
 carat control is one of the things I find very lacking about it.

 The auto-complete mishaps with FD occurred in some (not all) of the beta
 releases, but now that it's a full release version, there are no longer any
 problems.

 ___
 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] FlexBuilder 3 auto-complete vs. FlashDevelop

2009-08-13 Thread Matt Gitchell
This statement is absolutely incorrect, and a bit baffling. Clearly if it
didn't do that stuff nobody would ever use it.
FDT does indeed complete all those, and I haven't looked at FB in a while
but would be absolutely stunned if that was in fact accurate. The default
code hinting is just when you hit dot, but you can configure it to do it
more often. This link shows you how to make it so you get code hinting
automatically as opposed to when you hit CTRL-Space (tho ctrl-space works to
complete the above by default):
http://blog.flashmech.net/2008/10/fdt-tip-boost-your-code-assist/

You can also change the delay before code hints appear and make it more
FD-like if you want.
I guess another part of why I like FDT is that it's  highly customizable.
So, erm, yeah.



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

 FlashDevelop auto-completes class, instance and local vars, as well as
 native key words like public, private, class, interface, implements,
 function, static, const, etc.  FDT and FB do not.

 Here's what toggle line does


 hello();
 world();

 CTRL+T on world line

 world();
 hello();

 While this might seem minor, it's actually VERY handy.

 ___
 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] FlexBuilder 3 auto-complete vs. FlashDevelop

2009-08-13 Thread Matt Gitchell
That page was old, it does work in AS3.

OK, so, burning with curiosity (and a desire to postpone doing the latest
batch of client changes), I fired up Flex Builder, created a private var,went
into the constructor, hit ctrl-space, and the autocomplete shenanigans
triggered. If ya type in the first couple letters, then do it, it
autocompletes.

So yeah, the difference is merely auto- vs manual-triggering of code
completion if there's not a . involved. the Eclipse-based editors (by
default, in FDT's case) trigger their code hinting with ctrl-space, where
FDT doesn't.

How's FD handling vectors these days? I haven't used FD since they became
available. FDT's a little wack in that if you have an interface built with,
say, Vector.String, when you auto-populate your stub function with all the
interface methods it only types it to Vector (with no type), which is kind
of annoying at present. But it does handle them fine within classes, where
vector[i]. will fire code hinting on whatever the vector is typed to.
On Thu, Aug 13, 2009 at 3:49 PM, Steven Sacks flash...@stevensacks.netwrote:

 FlexBuilder absolutely does NOT do auto-completion of class, instance and
 local vars (FD also does function names, etc.).  I've never seen FDT do it,
 either, but that link obviously makes it clear that it is possible (though
 completely undocumented, not to mention that field doesn't look like it will
 accept 28 characters).  It also says AS2, but does that work for AS3?  Why
 on earth isn't this the default behavior?

 FDT costs hundreds of dollars, FlashDevelop is free. If you're on Mac, I
 guess it's the best choice available.

 Also, FDT is 100% project based. You can't just drag and drop an .as file
 on to it like you can with FlashDevelop (unless you already have one open).
  Plus, you don't get ANY auto-completion if the file isn't part of your
 project.

 Does FDT have a clone-file feature?
 ___
 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] mac vs pc

2009-08-12 Thread Matt Gitchell
Anyone who has spent any serious time with it knows that it isn't an
option.
Oh come now, don't be ridiculous. I used FlashDevelop in a work setting for
a year or two, and have switched to FDT (Mac). FlashDevelop is indeed a
great tool, but I think FDT edges it out. There are a couple features that
FlashDevelop has that FDT doesn't, but overall FDT has better refactoring,
better code completion, better debugging tools, and enforces better syntax.
There are indeed a few aspects of code writing that are better in
FlashDevelop, but on a project level I feel FDT is a far superior tool. I
haven't touched Flex Builder in a couple years, so I'll leave that out.
I would preface all
this by saying that I almost gave up in the middle of switching to
FDT, but am very happy that I stuck it out;
I think once you stop trying to do things the way FlashDevelop did them
specifically it's much less frustrating.

A quick example:
if you type var _blah:Sprite = new Sprite() in a function in FlashDevelop,
you can right-click and promote that to a class-level private var.
I was frustrated such a simple thing didn't exist in FDT, but then
discovered that you can type (_blah = new Sprite()), hit CMD-1 on _blah, and
then it gives you the same option to create the class-level variable. A
small example, but still indicative of the pain of switching.

After finding those features that 'moved' when I switched to FDT, I've never
thought Gosh, I sure miss FlashDevelop.

I would also mention that the last time I use FlashDevelop was in January,
so maybe they've turned it into God's own IDE since then.

But then again, I'm kind of retarded.

--Matt


On Tue, Aug 11, 2009 at 3:40 PM, Steven Sacks flash...@stevensacks.netwrote:

 My home computer is a Windows XP box.

 My last full-time job was a Mac-only shop.  So, I used Mac every day, 5
 days a week, for 10 months.

 Within a few weeks, I realized I couldn't live without FlashDevelop. I
 installed Parallels 3 with Windows XP and figured out how to use
 FlashDevelop in my workflow there.

 I *love* Expose and Spaces.  However, they are easier to live without than
 FlashDevelop.  FDT and FlexBuilder both suck ass as Actionscript editors
 compared to FlashDevelop.

 I cannot live without FlashDevelop.  Period.  Anyone who has spent any
 serious time with it knows that it isn't an option.  The day they get it
 working on the Mac is the day Flex Builder (ahem, Flash Builder) sales see a
 significant drop.  The only reason so many people buy Flex Builder for Mac
 is because FlashDevelop is currently PC-only.

 Actionscript coding in Eclipse is retarded.  It's slow, clunky and
 basically, sucks.
 ___
 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] mac vs pc

2009-08-12 Thread Matt Gitchell
True dat. In fact my sole regret about switching is that I bought it when
the exchange rate was extraordinarily crappy. C'est la vie, I
guess.They do have the 'lighter' version now
for cheap but I don't know what the differences are.

On Wed, Aug 12, 2009 at 10:22 AM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 But here's where FDT doesn't edge it out: it ain't free.


 Jason Merrill

 Bank of  America   Global Learning
 Shared Services Solutions Development

 Monthly meetings on the Adobe Flash platform for rich media experiences
 - join the Bank of America Flash Platform Community





 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt
 Gitchell
 Sent: Wednesday, August 12, 2009 11:57 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] mac vs pc

 Anyone who has spent any serious time with it knows that it isn't an
 option.
 Oh come now, don't be ridiculous. I used FlashDevelop in a work setting
 for
 a year or two, and have switched to FDT (Mac). FlashDevelop is indeed a
 great tool, but I think FDT edges it out. There are a couple features
 that
 FlashDevelop has that FDT doesn't, but overall FDT has better
 refactoring,
 better code completion, better debugging tools, and enforces better
 syntax.
 There are indeed a few aspects of code writing that are better in
 FlashDevelop, but on a project level I feel FDT is a far superior tool.
 I
 haven't touched Flex Builder in a couple years, so I'll leave that out.
 I would preface all
 this by saying that I almost gave up in the middle of switching to
 FDT, but am very happy that I stuck it out;
 I think once you stop trying to do things the way FlashDevelop did them
 specifically it's much less frustrating.

 A quick example:
 if you type var _blah:Sprite = new Sprite() in a function in
 FlashDevelop,
 you can right-click and promote that to a class-level private var.
 I was frustrated such a simple thing didn't exist in FDT, but then
 discovered that you can type (_blah = new Sprite()), hit CMD-1 on _blah,
 and
 then it gives you the same option to create the class-level variable. A
 small example, but still indicative of the pain of switching.

 After finding those features that 'moved' when I switched to FDT, I've
 never
 thought Gosh, I sure miss FlashDevelop.

 I would also mention that the last time I use FlashDevelop was in
 January,
 so maybe they've turned it into God's own IDE since then.

 But then again, I'm kind of retarded.

 --Matt


 On Tue, Aug 11, 2009 at 3:40 PM, Steven Sacks
 flash...@stevensacks.netwrote:

  My home computer is a Windows XP box.
 
  My last full-time job was a Mac-only shop.  So, I used Mac every day,
 5
  days a week, for 10 months.
 
  Within a few weeks, I realized I couldn't live without FlashDevelop. I
  installed Parallels 3 with Windows XP and figured out how to use
  FlashDevelop in my workflow there.
 
  I *love* Expose and Spaces.  However, they are easier to live without
 than
  FlashDevelop.  FDT and FlexBuilder both suck ass as Actionscript
 editors
  compared to FlashDevelop.
 
  I cannot live without FlashDevelop.  Period.  Anyone who has spent any
  serious time with it knows that it isn't an option.  The day they get
 it
  working on the Mac is the day Flex Builder (ahem, Flash Builder) sales
 see a
  significant drop.  The only reason so many people buy Flex Builder for
 Mac
  is because FlashDevelop is currently PC-only.
 
  Actionscript coding in Eclipse is retarded.  It's slow, clunky and
  basically, sucks.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] mac vs pc

2009-08-10 Thread Matt Gitchell
FDT, which I love. Love! It does take a while to get to a point where you're
maximizing what it offers your workflow, but so worth it.Switched from PC
(and FlashDevelop) to Mac at the beginning of the
year, not a huge difference on balance
as each are annoying in their own way.

On Mon, Aug 10, 2009 at 3:55 AM, Allandt Bik-Elliott (Receptacle) 
alla...@receptacledesign.com wrote:

 i'd completely understand if nobody wanted to touch this one but i thought
 i'd throw it out there

 a bit of background: I've been developing on mac for 7 or 8 years, the
 first 5 were as an enthusiastic amateur but more recently i've gone full
 time flash developing. As time has progressed, i've started to use more
 tools to help with coding, I've tried FDT on Eclipse for mac which i found
 (at the time) to be overpriced, overfinicky, flaky and unreliable (i realise
 that with the release of the standalone FDT package the flakiness is
 something that has been rectified) and flexbuilder just doesn't have any of
 the text manipulation tools that a good coding IDE should imo (duplicating /
 transposing lines of code shouldn't require a mouse) so i've settled for
 using FlashDevelop (which i LOVE) with Parallels as a vm to run it.

 This setup has kept me going for a while but it's not without it's
 problems: the keyboard changes from my mac-based Flash IDE to the pc-based
 FlashDevelop IDE has been a headache, I have 3 sources of program failures
 as opposed to 2 (Flash, FlashDevelop AND Parallels) which, while they don't
 account for a lot of my day, are usually pretty savage when they do occur.
 However, as I've been using a pc at work, I've really started to seriously
 consider simply buying a pc on my next round of hardware spend (end of this
 year, beginning of next) and be done with it. The mac will always be at the
 center of my home media but this is for my take along, work machine.

 So the question I'm really getting to is, how many people use osX (using
 windows in boot camp doesn't count) and how many are using windows for their
 main work machine and what kind of software setup are you using?

 thanks for your time guys
 Allandt


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

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


Re: [Flashcoders] what is the current 3D best-practice?

2009-08-10 Thread Matt Gitchell
PV3D's pretty good, tho there's a little bit of a curve to learning it. I
haven't done any Away3D stuff but I've heard good reports about that too.You
probably don't want to go down the custom road as once you start to deal
with z-sorting and all that in earnest it balloons in complexity quickly.
CS4's native 3D stuff is generally only good for planes, there's no native
poly handling. I think the latest PV3D has been tweaked to take some
advantage of the native FP10 3D stuff on the render side, but I didn't have
that as an option on my last PV3D project and hence didn't explore it.
As far as morphing shapes goes, you're probably going to have to do that in
a dedicated 3D suite then export that animation to a Collada file. You can
spin and move stuff (in PV3D), but actual manipulations of the shapes/polys
in an object are going to be best handled in a more or less canned fashion,
depending on the complexity you're looking for or if you want to write
something that creates the polys dynamically, which is again easier in PV3D
than Pure AS3.

On Mon, Aug 10, 2009 at 11:34 AM, Kerry Thompson al...@cyberiantiger.bizwrote:

 Sebastian wrote:

  I was wondering if anyone had any feedback to my 3d inquiry? Because I
  have not received any input from the group.

 My guess is that not many of us work in 3D. I've had a look at Papervision,
 and, while it looks pretty good, I haven't explored it deeply enough to
 help.

 Does it have to be Flash? The dominant player in the online 3D world is
 still Director/Shockwave, and what you are describing could be done easily
 in Shockwave. If you're not familiar with Lingo, Director has an
 implementation of JavaScript that is a lot closer to ActionScript. I don't
 know how much of its 3D capabilities are available through JavaScript, but
 it's worth a look. You can download a 30-day free trial.

 Another up-and-coming 3D program is Unity--they're making some serious
 waves, and, from the reports I've heard, Unity is easier to work with than
 Director. Its main drawback is that it doesn't have the plugin penetration
 Shockwave has.

 HTH.

 Cordially,

 Kerry Thompson

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

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


Re: [Flashcoders] MVC and Event Architecture

2009-08-04 Thread Matt Gitchell
This is about how I'm doing things at present. If something only affects one
'branch' of the MVC model (mostly View), then I handle it with events, for
the most part. If it engages two, then I move to a Command
(Controller).I've been working a lot in PureMVC lately, and while it
seems like a pain
when you're first getting into it (event handlers dispatch notifications
which then are dealt with by notificationhandlers, which then hit your
public methods in view components), I've found that the amount of
enforcement it provides as far as loose coupling etc. is well worth it. It
certainly makes changing things later less of a big
deal, and it's not all that heavy.

On Tue, Aug 4, 2009 at 8:39 AM, Piers Cowburn m...@pierscowburn.com wrote:

 I'll sometimes use callbacks in small, enclosed parts of a system, which
 are coupled by their nature and are never going to have their component
 classes used individually in other systems. As a general rule though, this
 is the only time that I use them.

 WRT the event / notification question, I usually find a place for both. I
 tend to use events if the information is going 'up' the heirachy, and
 notifications if it's going 'across'. To put it more clearly, I use events
 for smaller 'happenings', and notifications for larger, system wide
 'happenings'. Hope that makes sense!

 Piers



 On 4 Aug 2009, at 16:27, Merrill, Jason wrote:

  Ok thanks Paul, yeah, I know about the concept of loose coupling, I was
 just wondering how strict people generally follow event-driven loose
 coupling design when using MVC - so it seems you're saying, for small MVC
 projects, callbacks are OK, but for large projects, they should really be
 100% event driven-loosely coupled.  Gotcha - thanks!


 Jason Merrill

 Bank of  America   Global Learning
 Shared Services Solutions Development

 Monthly meetings on the Adobe Flash platform for rich media experiences -
 join the Bank of America Flash Platform Community





 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews
 Sent: Tuesday, August 04, 2009 11:19 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] MVC and Event Architecture

 Merrill, Jason wrote:

 I know there is probably no definite right or wrong answer here, and it
 depends on the type of project, but I'm curious to get your opinion, if
 you're experienced with the MVC pattern (not frameworks per se that use MVC,
 I know about, say, Commands in Cairngorm and have checked into the Pure MVC
 architecture with its use of Notifications [though I only partially
 understand the Façade - I do something similar I think in a class I call
 MVC]- just interested in your opinions of raw MVC development).

 My question is, in practice, when programming with the MVC design
 pattern, I know the Model is usually completely decoupled from outside
 classes, but do you usually completely decouple all other classes like views
 and controllers as well, in favor of dispatching events?  Therefore
 communication between MVC classes are triggered completely by events (seems
 logical, but its also a heck of a lot of event handling) or do you have some
 coupling going on (i.e. the controller calls a method in the view telling it
 to change).  Or do you follow what some frameworks do and use Command
 classes with lots of event handling going on?

 Trying to find a good mix, I can see advantages and disadvantages both
 ways.  I'm doing a lot of event dispatching, but it seems a bit like
 overkill in some cases and harder to manage than just calling public
 methods.  Interested in how you handle it when you use MVC pattern(s).
 Thanks,

  The real point is that to call public methods, you have to know about
 the object whose method you want to call and you need to know about the
 method itself. When you broadcast an event, you don't need to know whose
 listening, your just indicating that something meaningful has happenned
 and perhaps also passing data that is meaningful.

 Because of this you can build standalone components that don't need to
 know everything about the world that surrounds them, so they can be
 reused and also other people can look at them and understand how the
 system fits together via the event system.

 That said, for small systems I still sometimes use callbacks..

 Paul


 Jason Merrill

 Bank of  America   Global Learning
 Shared Services Solutions Development

 Monthly meetings on the Adobe Flash platform for rich media experiences -
 join the Bank of America Flash Platform Community



 ___
 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] [JOB] Flash/Flex Developer, San Mateo, CA | 75-120k

2009-07-31 Thread Matt Gitchell
HI Beau,My name's Matt Gitchell, I've been a Flash
developer for 14ish years. Most recently, my work at Second Story has
been featured in the Comm Arts Interactive Annual and my contributions
to the Library of Congress New Visitor experience helped that project
win HOW Magazine's Interactive Best in Show.
I hit all of your requirements comfortably, and would be looking toward the
maximum end of your salary scale.

I'd be interested in more details on this
job, my resume's attached. Sadly, my portfolio's woefully outdated as
I've been up to my eyeballs in work, but my most recent project
launch of any scale is http://125years.swissarmy.com. The Library of
Congress work can be found at myloc.gov in the Knowledge Quest section,
but registration is required.

Thanks for the time.

--Matt

On Thu, Jul 30, 2009 at 10:06 PM, Beau Gould (OSS) 
b...@open-source-staffing.com wrote:

 Flash/Flex Developer, San Mateo, CA | 75-120k

 Our client is extremely well-known and offers a truly fun and casual
 work environment. You'll be in a team of highly talented and creative
 developers.  Benefits include: shares in the company, 401K, 10 Company
 Paid Holidays as well as 15 PTO days per year - and your birthday is a
 paid day off!  Medical, Dental, and Vision as well as Life Insurance,
 Short  Long Term Disability, and an Employee Assistance Program.

 This role requires expertise in Flash/Flex Development. This position
 will work closely with Product Managers, Designers, User Experience and
 Creative Teams to deliver hot, cutting edge web and client based
 applications and affiliated presentation components.

 For this role we require the following:

 1. Minimum of 3+ years of Flash/Flex Development working on Major Flash
 RIA
 2. Strong command of ActionScript 3.0 and OOP
 3. Experience working with Flash Apps that use XML and Server Side
 Technologies (including an understanding of XSD/DTD for validation.
 4. Understanding of Flash Memory Management
 5. Solid understanding of Web Browsers
 6. Ability to mentor and coach others in Flash/Flex

 To be considered, please submit your resume and preferably a portfolio
 as well along with your salary requirements to
 beau-AT-open-source-staffing.com

 Thank you,

 Beau J. Gould
 Open Source Staffing
 www.open-source-staffing.com
 beau-AT-open-source-staffing.com

 Flash, Flex, AIR (and related) Discussion / Jobs
 http://www.linkedin.com/groups?gid=990627

 Keywords (please ignore)

 Flash 8, Flash 9, ActionScript, ActionScripting, Action Script, AS1,
 AS2, AS3, Flex, Flex 2, Flex 3, Adobe Flex Builder 3, Flex Builder 3,
 Flex 3 SDK, Flex lite, Flexlite, Flash Media Server, Flash Remoting,
 Flash Video, Flash Game, AMFPHP, OpenAMF, AIR, Cairngorm, BlazeDS,
 Director, Lingo, ACID, Sound Forge, Toast, Quicktime, After Effects,
 PhotoShop, Illustrator, Dreamweaver, Fireworks, Javascript, Lingo, PHP,
 AJAX, ASP, MySQL, Visual Basic, XML, MXML, HTML, CSS, OOP, Rich Internet
 Application, RIA

 ___
 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] [JOB] Flash/Flex Developer, San Mateo, CA | 75-120k

2009-07-31 Thread Matt Gitchell
Jeez. Sorry about that, folks.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] removing dynamically created movie clips

2009-06-02 Thread Matt Gitchell
if (container.contains(itemToRemove)){
container.removeChild(itemToRemove);
};

On Tue, Jun 2, 2009 at 8:45 AM, Gustavo Duenas LRS 
gdue...@leftandrightsolutions.com wrote:

 Hi I have movie clips, that are created one I click a button, I'd like to
 know how could
 I remove then, something to put in the buttons, problem is when I try to
 remove
 the movieclip from the stage(I put the orders en every single button I have
 there), it says that is not created yet, there is a way to know when the
 movie clip is on there and if this is there
 just remove it.

 Like if(stage.movieclipName=true){
 removeChild(movieClipName);
 }

 there is a way like this or something else around.


 Regards,


 Gustavo Duenas



 ___
 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] removing dynamically created movie clips

2009-06-02 Thread Matt Gitchell
The container would be the stage in that instance, yes. I used it because
Stage extends DisplayObjectContainer, and you could use that chunk of code
for any DisplayObjectContainer (MovieClip, Sprite) as well.
I should also mention that we're talking AS3.

--Matt

On Tue, Jun 2, 2009 at 10:38 AM, Gustavo Duenas LRS 
gdue...@leftandrightsolutions.com wrote:

 in this case what is container? is stage.?


 like this

 if(stage.contains(contactWindow)){
 stage.removeChild(contactWindow);
 }

 is like this, if not please explain me what this container is about.

 Gustavo



 On Jun 2, 2009, at 12:07 PM, Matt Gitchell wrote:

  if (container.contains(itemToRemove)){
 container.removeChild(itemToRemove);
 };

 On Tue, Jun 2, 2009 at 8:45 AM, Gustavo Duenas LRS 
 gdue...@leftandrightsolutions.com wrote:

  Hi I have movie clips, that are created one I click a button, I'd like to
 know how could
 I remove then, something to put in the buttons, problem is when I try to
 remove
 the movieclip from the stage(I put the orders en every single button I
 have
 there), it says that is not created yet, there is a way to know when the
 movie clip is on there and if this is there
 just remove it.

 Like if(stage.movieclipName=true){
 removeChild(movieClipName);
 }

 there is a way like this or something else around.


 Regards,


 Gustavo Duenas



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

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


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

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


Re: [Flashcoders] Implicit coercion error with inheritance

2009-05-20 Thread Matt Gitchell
EachFloor vs. EachItem?

On Wed, May 20, 2009 at 7:56 AM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:

 Hi list...

 Seemingly simple, but why do I get an Implicit coercion error 1067 when
 instancing this:
 var ceilingApparatus:EachItem= new FloorItem();

 and, this error too:
 var ceilingApparatus:FloorItem = new FloorItem();
 // undefined
 trace(ceilingApparatus[init]);

 package NewBuildingDirectory{
import flash.display.MovieClip;
public class EachFloor extends MovieClip{
function EachFloor(){
}
public function init(whichFrame:int):void{
gotoAndStop(whichFrame);
}
}
 }

 package NewBuildingDirectory{
public class FloorItem extends EachFloor{
function FloorItem(){
}
}
 }

 ___
 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] e.target subobjects how do I refrence?? - slight digression

2009-05-12 Thread Matt Gitchell
It certainly works if the type matches up, but it runs faster/is more
optimized if you do strongly type myObj.

The other thing that would probably speed up execution is if you assign
myObj.menuSquare_mc to a local variable. It takes more time to do the dot
lookup on the item you're referencing each time than if you'd do the lookup
once and use the local var to reference it. If you intend to reference a
variable more than a few times, store it in a local var.
You can do it the other way, but I've found it's a pretty good habit to get
into as you don't have to change your methodology once you're working on
projects that are iterating through a lot of data. The most obvious example
is if you define a variable like arrayLength equal to array.length and use
that in your for loop, you get a performance gain:

var arrLength:uint = array.length;
for(i:uint=0;iarrLength;i++){
}

//runs faster than

for(j:uint=0;jarray.length;j++){
}

This is because you're doing that dot lookup with each iteration in the
second example. But I digress.
The other benefit to this practice is if you're using a tool like Flex
Builder or FDT or FlashDevelop or whatever, you can get code hinting on your
now strongly-typed vars which can speed development, though less so in this
case since you're passing TweenMax an object.
Also with strong typing, the compiler will throw compile-time errors which
shortens the debugging path.

So here's how I'd do your example, I suppose:

function leftmenu($e:MouseEvent ):void {
 var myObj:MovieClip = $e.currentTarget as
MovieClip; //you don't necessarily have to use the
'as' part, but specificity is a bonus when you're passing these things
around.
 var mySquare:MovieClip = myObj.menuSquare_mc as MovieClip;  // or
Sprite or whatever.

  switch($e.type){
   case mouseOver:
   TweenMax.to(mySquare, .3, {alpha:.06,
delay:0,ease:Sine.easeOut});
   TweenMax.to(myObj, .3, {x:60, delay:0,
ease:Sine.easeOut});
   TweenMax.to(mySquare, .3, {x:-60, delay:0,
ease:Sine.easeOut});
   break;
   case mouseDown:
   trace(myObj.name http://e.currenttarget.name/);
   break;
   case mouseOut:
   TweenMax.to(mySquare, .3, {alpha:0, delay:0,
ease:Sine.easeOut});
   TweenMax.to(myObj, .3, {x:30, delay:0,
ease:Sine.easeOut});
   TweenMax.to(mySquare, .3, {x:0, delay:0,
ease:Sine.easeOut});
   break;
  }

--Matt

On Tue, May 12, 2009 at 5:32 AM, zu...@zadesigns.com wrote:

 This is the code I used to solve it.  I used currentTarget, and I had my
 movieclips already on stage, so I guess I didn't need to refrence them as
 MovieClips?  either way it works...  do i need to set my type to the var
 myObj?  it works regardless.

 function leftmenu($e:MouseEvent ):void {
  var myObj = $e.currentTarget;
  trace($e.type +  :  +$e.currentTarget.name ) ;
if ($e.type == mouseOver) {
TweenMax.to(myObj.menuSquare_mc, .3, {alpha:.06,
 delay:0,
 ease:Sine.easeOut});
TweenMax.to(myObj, .3, {x:60, delay:0,
 ease:Sine.easeOut});
TweenMax.to(myObj.menuSquare_mc, .3, {x:-60,
 delay:0,
 ease:Sine.easeOut});
}
if ($e.type == mouseDown) {
trace($e.currentTarget.name);
}
if ($e.type ==mouseOut) {
TweenMax.to(myObj.menuSquare_mc, .3, {alpha:0,
 delay:0,
 ease:Sine.easeOut});
TweenMax.to(myObj, .3, {x:30, delay:0,
 ease:Sine.easeOut});
TweenMax.to(myObj.menuSquare_mc, .3, {x:0, delay:0,
 ease:Sine.easeOut});
}
 }
 ___
 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] TextBlock and HTML Text?

2009-05-05 Thread Matt Gitchell
Hi,
Anyone have any experience using Flash 10 and the TextBlock/TextElement
classes?
I was hoping I could use an implementation of it to solve the age-old
superscript problem, but can't find a way to attach a stylesheet to it.
Barring experience, does anyone have any good resource links?

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


Re: [Flashcoders] loading images in a circle format..

2009-04-22 Thread Matt Gitchell
Point.polar() will give you an X/Y value based on the degree (in rads) and
the distance from the center of the circle.

On Wed, Apr 22, 2009 at 10:36 AM, whispers whispers...@hotmail.com wrote:

 Seems like a carousel project to me?

 Have you checked out www.gotoandlearn.com

 There are many parameters

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Rodrigo
 Augusto Guerra
 Sent: Wednesday, April 22, 2009 12:11 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] loading images in a circle format..

 hi all...

 I got a request to load some images in a circle format and once you click
 one image, it goes to the front.

 the final layout will be like this:
 www.alumni.org.br/tmp/rodrigo/modelo.gif

 my doubt is, how to divide the circle in X equally pieces

 the logic I'm thinking:

 divide the circle degree (360º) in X (X = number of images), then I'll get
 the postions to load the images

 then load each image in the X position, and as the reg. point is left/top
 by
 default I would have to horizontal center the loaded image in the X/Y
 position.

 when the user clocks on a image that is not the front one it will swap with
 the image clicked, bringing the new image to the front.

 but this works only if I use degrees like:

 if I have 360º / 6 images, I'll get each image at 60º.

 how discover each 60º to load the image at that point and convert it to a
 x/y coordinate??

 but this is my logic, of course if you guys have a better suggestion to do
 the same thing, I 'would like to know.


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


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

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


Re: [Flashcoders] How to know coordinates of letters in non fixed-width fonts

2009-02-24 Thread Matt Gitchell
TextField has a getLineMetrics() function, which returns a TextLineMetrics
object.
Check out the AS3 Reference stuff for TextField and the TextLineMetrics
class for the breakdown, there's all kinds of good, fun stuff in there.

--Matt

On Tue, Feb 24, 2009 at 6:36 AM, Glen Pike g...@engineeredarts.co.ukwrote:

 Hi,

   Can you get text metrics for characters / lines in the text field???

   Glen


 ali drongo wrote:

 Thanks for all of your responses guys,I ended up using getCharBoundaries
 and
 it works a treat.
 FYI I created a text field at the position I wanted the letters to finally
 go then stored the rectangle object for each char in an array and then
 cycled through the array as Glen suggested.

 Only thing is, when I use a multiline textfield my function will only
 gather
 the char boundaries for the first line:
 If anyone can suggest why it would be a help.
 Cheers!
 Ali




 public static function letterPosAr(t:TextField):Array
 {
 trace(letterPosAr);
 var retA:Array = new Array();
 for (var i:int = 0; i  t.text.length; i++){
 var rect:Rectangle = t.getCharBoundaries(i);
 trace(---index+i+  char:+t.text.substr(i, 1)+  x:+rect.x+
 y:+rect.y+ w:+rect.width);
 retA[i] = rect;
 }
 return retA;
  }

 On Tue, Feb 24, 2009 at 7:02 AM, Matt Gitchell m...@moonbootmedia.com
 wrote:



 the AS2 one is a cool idea!

 On Mon, Feb 23, 2009 at 10:16 PM, Hans Wichman 
 j.c.wich...@objectpainters.com wrote:



 and for as2:
 http://objectpainters.com/blog/2008/10/12/finding-character-positions/

 On Tue, Feb 24, 2009 at 1:24 AM, Matt Gitchell m...@moonbootmedia.com


 wrote:
Is this AS3? you can use TextField.getCharBoundaries()

 I used it in an experiment a while back here to pretty good effect:
 http://www.moonbootmedia.com/interactive/m/textcompare.html

 --Matt



 On Mon, Feb 23, 2009 at 3:01 PM, Glen Pike postmas...@glenpike.co.uk


 wrote:
  Hi,

  You should be able to get the width of each sprite with the single


 letter


 in???

  Maybe mask the stream area out.  Start each letter at x -


 letterWidth,


 increase the x after each interval, when the letter reaches x=0,


 create


 


 show the next one, add it to your array.
Loop through the array each timer increasing the x position of


 the


 letters, removing them when they reach the other side???
Something like that??/
Glen

 ali drongo wrote:



 Hi there, I'm animating some letters that are dynamically created in


 their


 own sprites across the screen as if they are being fired in a


 stream.


 Currently I am using a fixed width font so it's straight forward to


 find


 their final position. My problem is that I need to use a non


 fixed-width


 font and I don't know how to calculate the position of each letter.

 Any ideas very gratefully received!

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






 --

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

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



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



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



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



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





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

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


Re: [Flashcoders] How to know coordinates of letters in non fixed-width fonts

2009-02-23 Thread Matt Gitchell
the AS2 one is a cool idea!

On Mon, Feb 23, 2009 at 10:16 PM, Hans Wichman 
j.c.wich...@objectpainters.com wrote:

 and for as2:
 http://objectpainters.com/blog/2008/10/12/finding-character-positions/

 On Tue, Feb 24, 2009 at 1:24 AM, Matt Gitchell m...@moonbootmedia.com
 wrote:

  Is this AS3? you can use TextField.getCharBoundaries()
 
  I used it in an experiment a while back here to pretty good effect:
  http://www.moonbootmedia.com/interactive/m/textcompare.html
 
  --Matt
 
 
 
  On Mon, Feb 23, 2009 at 3:01 PM, Glen Pike postmas...@glenpike.co.uk
  wrote:
 
   Hi,
  
 You should be able to get the width of each sprite with the single
  letter
   in???
  
 Maybe mask the stream area out.  Start each letter at x -
 letterWidth,
   increase the x after each interval, when the letter reaches x=0, create
 
   show the next one, add it to your array.
   Loop through the array each timer increasing the x position of the
   letters, removing them when they reach the other side???
   Something like that??/
   Glen
  
   ali drongo wrote:
  
   Hi there, I'm animating some letters that are dynamically created in
  their
   own sprites across the screen as if they are being fired in a stream.
   Currently I am using a fixed width font so it's straight forward to
 find
   their final position. My problem is that I need to use a non
 fixed-width
   font and I don't know how to calculate the position of each letter.
  
   Any ideas very gratefully received!
  
   Thanks :)
   Ali
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
  
  
  
   --
  
   Glen Pike
   01326 218440
   www.glenpike.co.uk http://www.glenpike.co.uk
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 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] height not right

2009-01-25 Thread Matt Gitchell
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.comwrote:

  *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


Re: [Flashcoders] [AS3] height not right

2009-01-25 Thread Matt Gitchell
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.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.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


Re: [Flashcoders] Replacing Colors?

2009-01-13 Thread Matt Gitchell
There are all kinds of tools to accomplish this in BitmapData, like
floodFill(). threshold() has yielded good results for me, too, but it
requires some tinkering. Look at the examples in the docs.

--Matt

On Tue, Jan 13, 2009 at 4:15 PM, peter ginsberg malphig...@gmail.comwrote:

 Is there any way to do color swaps in AS3?

 What I'm looking to do is:
 Take a given DisplayObject (MovieClip or Sprite to be specific), look for
 particular colors (specific RGB values) and replace those colors with other
 specific RGB values, all without touching any other colors.

 Sort of like something you would do with an indexed color image.

 Currently I'm doing this in a far more tedious way (making each colored
 area
 I want to swap into a named movie clip and iterating through all the
 children then tossing a color transform on the clips).

 I thought maybe I could work soemthing out with a ColorMatrixFilter, but it
 doesn't seem like it will work.   Maybe dealing with the whole image as bit
 map data?  Although would that be a performance concern?

 Thanks in advance for any advice!
 ___
 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] Re: Embedding font weights?

2008-01-11 Thread Matt Gitchell
answered my own question with an admitted shot in the dark:
If you add fontWeight='bold' to the embed call it works.

--matt

-- Forwarded message --
From: Matt Gitchell [EMAIL PROTECTED]
Date: Jan 11, 2008 12:28 PM
Subject: Embedding font weights?
To: Flash Coders List flashcoders@chattyfig.figleaf.com


Hi.
I'm trying to use a bold font with the Embed dingus, and when I use this:

[Embed(systemFont='Gotham', fontName='goth', mimeType='application/x-font',
unicodeRange='U+0020-U+002F,U+0030-U+0039,U+003A-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E')]

public static var goth:Class;

I get the following error:
exception during transcoding: Font for alias 'goth' with plain weight and
style was not found at  + [pathname]

it works with the normal weight font, but not the bold.

is there any way to embed a bold-weight font this way, or do I have to do
the separate swf/class/register nonsense?

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


[Flashcoders] Embedding font weights?

2008-01-11 Thread Matt Gitchell
Hi.
I'm trying to use a bold font with the Embed dingus, and when I use this:

[Embed(systemFont='Gotham', fontName='goth', mimeType='application/x-font',
unicodeRange='U+0020-U+002F,U+0030-U+0039,U+003A-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E')]
public static var goth:Class;

I get the following error:
exception during transcoding: Font for alias 'goth' with plain weight and
style was not found at  + [pathname]

it works with the normal weight font, but not the bold.

is there any way to embed a bold-weight font this way, or do I have to do
the separate swf/class/register nonsense?

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