RE: [Flashcoders] named while loops in AS3

2007-04-11 Thread Steven Sacks | BLITZ
You'll have to set a flag.

var a:Number = 10;
var b:Number = 10;
var breakLoop:Boolean = false;
while (a--) {
if (breakLoop) break;
trace(a =  + a);
while (b--) {
if (b  5) {
breakLoop = true;
break;
}
trace(b =  + b);
}
}


Output:
a = 9
b = 9
b = 8
b = 7
b = 6
b = 5
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Create MXI/MXP with External JSFL

2007-04-10 Thread Steven Sacks | BLITZ
Muzak,

Are you on Windows or OSX?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

RE: [Flashcoders] OT: Happy Easter

2007-04-09 Thread Steven Sacks | BLITZ
Hahahahahahahaha!

And I quote Cedric:

 whatever!
 ...
 respect

First, you open with whatever! which is what people say to signify
disrespect for something another person said.  And then you say
respect as if saying that nullifies it.  Nice try, buddy.

You get hurt by god blessings?  How could you possibly be hurt by god
blessings if you don't believe in god?  That's ridiculous.

Did it feel good to have your temper tantrum?  I hope so, but don't
pretend for a moment that temper tantrums are respectful. They're
childish.





BLITZ | Steven Sacks - 310-551-0200 x209
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Cedric Muller
 Sent: Monday, April 09, 2007 4:33 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] OT: Happy Easter
 
 whatever!
 stop this, this is OT, GOD doesn't exist (globally speaking 
 in people's minds) and I am not a believer, so I DON'T need 
 any god's blessing (more than that: keep it for yourself) 
 this is about laicity, this is about secular coding... this 
 is JUST ABOUT CODING WITH FLASH :P sorry if this hurts, but I 
 do get hurt by 'god blessings'...
 respect
 Cedric
 
 
 
  Happy easter to everyone and god bless you all guys.
 
 
  Regards
 
 
  Gustavo Duenas
  On Apr 8, 2007, at 9:47 PM, Omar Fouad wrote:
 
  Happy Easter to you and all the List Members Ricardo
 
  On 4/8/07, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
 
  On behalf of Jews everywhere, may I be the first to say you're 
  welcome!
  :)
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com http://training.figleaf.com
 
 
 
 
  -- 
  Omar Fouad - Digital Emotions...
 
  Love is always patient and kind. It is never jealous. Love is  
  never boastful
  nor conceited It is never rude or selfish. It does not take  
  offense and is
  not resentful. Love takes no pleasure in other people's 
 sins...but  
  delights
  in the truth. It is always ready to excuse, to trust, to hope...  
  and to
  endure... whatever comes.
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Kick this guy off the list

2007-04-09 Thread Steven Sacks | BLITZ
KICK THIS GUY OFF THE LIST!

His out of office email is spamming every thread.

 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Tareq AlJaber
 Sent: Monday, April 09, 2007 12:34 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] AS3 Delegate
 
 I will be out of the office starting  04/09/2007 and will not 
 return until 04/16/2007.
 
 I will not have access to my email during this time.  If you 
 need immediate assistance, please contact Aaron Dolberg 
 ([EMAIL PROTECTED]).  Thank you.
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Create MXI/MXP with External JSFL

2007-04-09 Thread Steven Sacks | BLITZ
Hey FC,

I have a Flash panel I created which requires an external JSFL file to
run.

How do I package up the JSFL file into the MXI/MXP and how do I
determine what the file path is to it load said JSFL from inside the
Actionscript of the panel SWF?

Wrapping the JSFL into Actionscript is not an option.  It's far too
complex.

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

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


[Flashcoders] Flashcoders really bad lag - just me?

2007-04-09 Thread Steven Sacks | BLITZ
Ever since the Flashcoders server went down, my posts to Flashcoders are
taking a long time to appear.  Is it just me or are other people
experiencing this?

These are from today, for instance:

RE: [Flashcoders] OT: Happy Easter
Sent: Mon 4/9/2007 11:56 AM
Appeared: Mon 4/9/2007 2:55 PM

3 hours to show up!


Create MXI/MXP with External JSFL
Sent: Mon 4/9/2007 2:42 PM
Appeared: Mon 4/9/2007 4:09 PM

Nearly 1.5 hours!


This message
Sent: Mon 4/9/2007 4:55 PM
Appeared: ?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Create MXI/MXP with External JSFL

2007-04-09 Thread Steven Sacks | BLITZ
Muzak,

Thanks for your response.  Unfortunately, it's not working for me when I
try to test it before I even make it an MXI/MXP.

I created a jsfl folder inside the Configuration folder and put my jsfl
file in there.

uri = MMExecute(fl.configURI) + jsfl/test.jsfl;
MMExecute(fl.trace(\ + uri + \));

It traces it out just fine when Flash launches, but when I try to
runScript one of the functions in that jsfl file it says argument 1 is
invalid.

var func = testFunc;
var cPath = MMExecute(fl.runScript(\ + uri + \, \ + func +
\));

This works just fine if I hardcode the path to the JSFL on the C: drive.
There is one weird thing where it changes the : to a | with configURI
but the documentation says that it's supposed to work just like it is.

Any ideas?

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

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


RE: [Flashcoders] OT: Happy Easter

2007-04-08 Thread Steven Sacks | BLITZ
On behalf of Jews everywhere, may I be the first to say you're welcome!
:)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Window component scrolling...am I insane?

2007-04-06 Thread Steven Sacks | BLITZ
I've never used the Window component.  I don't even know what it does.
I don't use MM components unless I'm mocking something up really quick.
The combo box, check box and radio buttons are the only ones I ever use.
IMO, the rest are garbage, especially the scrollpane.  Everything else
I'm better off writing my own or reusing my own or using a 3rd party one
like mCom or Ghostwire.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] attaching an event to a movie clip

2007-04-06 Thread Steven Sacks | BLITZ
Here's a quick and dirty example:

this.createEmptyMovieClip(img, 10);
img.loadMovie(some.jpg);
this.onEnterFrame = function() {
if (img._width  2) {
this.assignActions();
delete this.onEnterFrame;
}
};
function assignActions()
{
img.onRollOver = function() {
// do something
};
img.onRollOut = function() {
// do something
};
img.onRelease = function() {
// DO SOMETHING!
};
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Enumerating properties from outside an instance.

2007-04-05 Thread Steven Sacks | BLITZ
Pretend you're a mechanic and somebody calls you up and says the
following:  My car starts when it's in my driveway, but it doesn't
start when I'm at the store.  What's wrong with my car?  

Would you be able to help?


Show us your code or we can't help you.  :)

-Steven

 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Jason Lutes
 Sent: Thursday, April 05, 2007 2:11 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Enumerating properties from outside an 
 instance.
 
 I can't figure this out.
 
 I can set up a for...in loop to show me all the (enumerable) 
 properties -- variables and functions -- on the MovieClip 
 instance where I place the loop, but I can't enumerate 
 properties for other (nested) MovieClip instances by simply 
 changing the focus object of that same for...in loop.
 
 Why not?
 
 If I move the enumerating loop into the nested clips it works 
 as expected.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Enumerating properties from outside an instance.

2007-04-05 Thread Steven Sacks | BLITZ
function loopThrough(mc:MovieClip):Void
{
for (var a:String in mc) {
trace(a + :  + mc[a]);
if (mc[a] typeof movieclip) loopThrough(mc[a]);
}
}

You can use recursion and hope that you don't end up with circular
references.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] FLV (like youtube)

2007-04-04 Thread Steven Sacks | BLITZ
Did you even google this?  There are many tools that convert to FLV
server-side.
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Tom Huynen
 Sent: Wednesday, April 04, 2007 6:07 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] FLV (like youtube)
 
 Hi there,
 
 A project requires me to create an app that enables people to 
 upload .avi and mov's.
 These movies must be visible in the frontoffice.
 
 Does anybody know how to convert .avi and .mov into FLV?
 Or is there a better alternative?
 
 Kind regards,
 
 Tom
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] NetStream.play() - Start parameter

2007-04-04 Thread Steven Sacks | BLITZ
netStream.play(flvPath);
netStream.seek(5);


BLITZ | Steven Sacks - 310-551-0200 x209
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of leolea
 Sent: Wednesday, April 04, 2007 12:20 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] NetStream.play() - Start parameter
 
 Hi,
 
 Has anyone used the Start:Number parameter from the 
 NetStream.Play() method ?
 
 There isn't much documentation from Adobe. I want to start 
 the playback of a FLV at, say, 5 seconds... So logically I would do:
 
 netStream.play(flvPath, 15);
 
 But it's always playing from 0...
 
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] NetStream.play() - Start parameter

2007-04-04 Thread Steven Sacks | BLITZ
You have to wait for the ready event before you can seek.  Read the docs
and it will all come clear.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] eolas fix for IE7

2007-04-03 Thread Steven Sacks | BLITZ
Just in case you were unaware, there's a forum on SWFObject site where
you can research these issues (I'm sure somebody had the same issue
you're having at some time) and you can post questions.  I think you'll
have better luck there troubleshooting your issues.  :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] JSFL - Saving FLAs

2007-04-02 Thread Steven Sacks | BLITZ
The version is located in the XML Publish Settings file.  It's been
reported that changing this value using JSFL does not work (a bug).
However, you CAN read it.

Refer to my blog entry regarding the XML Publish settings file to see
how to get the version number out of it.

http://www.stevensacks.net/2006/08/06/using/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] scale 9?

2007-04-02 Thread Steven Sacks | BLITZ
Are you using a bitmap or vector in the slice 9 clip?

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

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


RE: [Flashcoders] JSFL - Saving FLAs

2007-04-02 Thread Steven Sacks | BLITZ
Maybe I'm confused about what you're trying to do.  

Are you concerned with the published (swf) version or the source (fla)
version? 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Is there a way to center an FLV in it's FLVplaybackcomponent?

2007-03-30 Thread Steven Sacks | BLITZ
3 easy steps.

1. Make a black square movieclip.  
2. Set it to the size you want.  
3. Position the resized FLV video in the center of it.

 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Dave Lenz
 Sent: Friday, March 30, 2007 2:36 PM
 To: Flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Is there a way to center an FLV in 
 it's FLVplaybackcomponent?
 
 Hi there,
 
 I'm having trouble centering a loaded FLV in a FLVPlayback 
 component.  
 When I scale the component with 'setSize()'  it keeps 
 aligning the video-content to the top and to the left. Is 
 there a way to center it in the middle? Maybe I'm missing a 
 method or something but I can't seem to find a solution.
 
 Greetings
 Ypmits
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] scope in AS3

2007-03-29 Thread Steven Sacks | BLITZ
 in flash8 the propertie is _visible

You are correct.  

However, he is coding in AS3 (see: package) and the subject of the
thread has AS3 in it, which means this is Flash 9, which means the
property is visible, no underscore.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Scaling Up an Image in Proportion to width or height

2007-03-29 Thread Steven Sacks | BLITZ
Simple.

You solve for the ratio:

var ratio:Number = _width / _height;


You resize the _width:

_width = Math.max(newWidth, 500);


You set _height to the _width * ratio:

_height = _width * ratio;


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

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


RE: [Flashcoders] Scaling Up an Image in Proportion to width or height

2007-03-29 Thread Steven Sacks | BLITZ
Why would you do that, though?  You're adding an extra calculation for
no reason.  It's inefficient and unnecessary.

And I'm not setting _height to _width divided by ratio, but _width TIMES
ratio.


 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Steve Abaffy
 Sent: Thursday, March 29, 2007 11:46 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Scaling Up an Image in Proportion 
 to width or height
 
 Yes but you could do it like this
 
 You resize the _width:
 _width = Math.max(newWidth, 500);
 You set _height to the _width * ratio:
 _height = _width * (1/ratio);
 Which is the same thing as
 _height = _width / ratio;
 
 
 
 This would be (_width/_height * _height) this cancels the 
 _height leaving
 you with just _width.
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Hershell
 Bryant
 Sent: Thursday, March 29, 2007 1:58 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Scaling Up an Image in Proportion 
 to width or
 height
 
 That'd do it...except that you need to define var ratio:Number =
 _height/_width.
 
 If var ratio:Number = _width/_height, then _width * ratio = (_width *
 _width)/_heightThat ain't right.
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Steven Sacks
 | BLITZ
 Sent: Thursday, March 29, 2007 9:42 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Scaling Up an Image in Proportion 
 to width or
 height
 
 Simple.
 
 You solve for the ratio:
 
 var ratio:Number = _width / _height;
 
 
 You resize the _width:
 
 _width = Math.max(newWidth, 500);
 
 
 You set _height to the _width * ratio:
 
 _height = _width * ratio;
 
 
 fin.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Confused about accessing nested movieclips in AS3

2007-03-29 Thread Steven Sacks | BLITZ
If you're not using absolute strict typing and everything that AS3 has
(display, addChild, etc.), then you're gaining no benefit because Flash
will just kick down to VM1.

IMO, you should either rebuild it from scratch in AS3 style (using
sprites, display objects, etc.) or leave it as AS2 and save yourself the
headache.




 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of ben gomez farrell
 Sent: Thursday, March 29, 2007 11:32 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Confused about accessing nested 
 movieclips in AS3
 
 Hey everyone, I've been working with AS3 for a bit, and been 
 kind of avoiding this problem till now, but I've converting 
 an AS2 project which has some nested clips, and I'd rather 
 not change things!
 
 So basically the question is how do I access nested clips?  
 Before in AS2, I'd say myclip.nestedclip.othernestedclip.
 
 But now the problem I have is that once I get a clip on stage 
 I can't drill down to it's children with dot syntax.  It 
 gives an error that the nested MC is an undefined property.  
 I suppose I could create a class for myclip that exposes it's 
 nested clips as public variable - and do that for each 
 nesting level, but that's a lot of work.
 
 I also tried declaring it in my main class as private var 
 myclip.nestedclip:MovieClip, but of course that's bad syntax.
 
 If it matters, I'm exporting my assets out of the Flash 9 
 Alpha as a Flash 9 AS2 movie. (I tried AS3, but the ability 
 to specify a linkage ID went away). Then I'm embedding the 
 movieclips I need with the [Embed] tag through FlashDevelop 
 and sending it over to the Flex 2 SDK compiler for output.
 
 Anyway, this all works, and my stuff appears on stage, but I 
 just can't get access to the nested clips!
 
 thanks!
 ben
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] SWF Only Loads Once

2007-03-29 Thread Steven Sacks | BLITZ
XML almost always caches.  Use a noCache param.


var path:String = some.xml;
var d:Date = new Date();
var p:String = (path.indexOf(?)  -1) ? noCache= : ?noCache=;
var noCache:String = (_root._url.indexOf(http://;)  -1) ? p +
d.getTime() : ;
var xmlPath:String = path + noCache;
myXML.load(xmlPath);


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

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


RE: [Flashcoders] Flash controling Z with div layers

2007-03-28 Thread Steven Sacks | BLITZ
wmode=transparent might help. not sure.


BLITZ | Steven Sacks - 310-551-0200 x209
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Patrick Lemiuex
 Sent: Tuesday, March 27, 2007 4:57 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Flash controling Z with div layers
 
 Is it possible to make a flash.swf file appear behind other 
 div layers I create.  In firefox, i have no problem however, 
 in IE my flash is popping in front of my DIV LAYER.
 
 any stragery on this one?
 
 
 P
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Image resizer that maintains ratio

2007-03-28 Thread Steven Sacks | BLITZ
mc._width = maxW;
mc._height = maxH;
(mc._xscale  mc._yscale) ? mc._xscale = mc._yscale : mc._yscale =
mc._xscale;
 

 
 You could probably optimize a little bit by removing the Math 
 function...
 
 mc._width  = maxW;
 mc._height = maxH;
 if ( mc._xscale  mc._yscale ) {
   mc._xscale = mc._yscale;
 }
 else {
   mc._yscale = mc._xscale;
 } 
 
 I don't think I can be done more effiently than that. Anyone?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flash CS3 Announced

2007-03-27 Thread Steven Sacks | BLITZ
 Freehand was terrible IMO. 

I know quite a few people who feel exactly opposite of you.  They
absolutely hate Illustrator and mourn the loss of what they believe to
be a clearly better product.  My experience is that most people who
don't like Freehand never actually gave it a proper chance or were
content because they already knew Illustrator and couldn't motivate to
learn something new that does the same thing.  

Freehand was ahead of Illustrator in features and ease of use for quite
some time and Freehand forced Illustrator to compete in what was once a
monopoly (Corel Draw?  Yeah, right!).  I don't use either program so I
have no opinion.  :)

Fireworks is different than Photoshop in some key ways.  It's not going
away anytime soon.  At Adobe MAX in Las Vegas last year, Adobe was
pretty clear that Fireworks was not only not going away, it was being
given new features and tighter integration with other Adobe products.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flash CS3 Announced

2007-03-27 Thread Steven Sacks | BLITZ
I was only speaking of people who I have discussed the issue with
(hence, My experience is).  It was not my intent to lump you in with
them.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Re: empty textfield of type input and embedded font

2007-03-26 Thread Steven Sacks | BLITZ
That's because you do your text formatting with HTML tags.


BLITZ | Steven Sacks - 310-551-0200 x209
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Matthias Dittgen
 Sent: Monday, March 26, 2007 12:50 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Re: empty textfield of type input 
 and embedded font
 
 when not using html = true and htmlText, the solution is the 
 setNewTextFormat method, which seems not to work in 
 combination with htmlText. :-( There must be a pendant to..
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Re: empty textfield of type input and embedded font

2007-03-26 Thread Steven Sacks | BLITZ
And setTextFormat works fine with HTML textfields.  I've been using it
throughout an application I just built.  I never use setNewTextFormat.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] empty textfield of type input and embedded font

2007-03-26 Thread Steven Sacks | BLITZ
VM1 requires that you wait a frame before certain methods of dynamically
attached clips are available.  The easiest way around this is to put a
method configUI(); on frame 1 of the timeline in your clip and put that
method in your class to do what you need to do.

And if any of y'all on Flashcoders think that's dirty, go on back to
whatever language you came from.  This here is Flash territory and we
don't kin to you uppity Java types. Yee-haw!  ;)

The alternatives are:

private var fCount:Number = 0;

function ClassName()
{
this.onEnterFrame = function() {
if (this.fCount++  0) {
configUI();
}
};
}
function configUI()
{
// do whatever
}

OR

private var frameInterval:Number;

function ClassName()
{
frameInterval = setInterval(this, configUI, 50);
}
function configUI()
{
clearInterval(frameInterval);
// do whatever
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Event calendar

2007-03-24 Thread Steven Sacks | BLITZ
Wow!

http://slash7.com/pages



 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of natalia Vikhtinskaya
 Sent: Friday, March 23, 2007 7:14 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Event calendar
 
 Hi to all
 I should create event calendar. Can anybody give me some 
 advices/links how I can create that using xml?
 
 Thanks a lot for any help.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Test

2007-03-24 Thread Steven Sacks | BLITZ
Hello.

Flashcoders has been really laggy the past few days.  It usually takes
an hour or two before I see my posts.

 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Danny Kodicek
 Sent: Friday, March 23, 2007 6:02 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Test
 
  
  Is this delivered???
 
 'ello
 
 D
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Got milk? (the game)

2007-03-23 Thread Steven Sacks | BLITZ
 That dice is cheaty! It's a dirty cheaty dice.

A friend of mine rolled a 1 14 times in a row.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Using JSFL with AS files

2007-03-23 Thread Steven Sacks | BLITZ
You can read and write any text files, so you can certainly read and
write AS files.

Here is the full Flash 8 JSFL API PDF document which is IMPOSSIBLE to
find anymore on Adobe's site.

http://tinyurl.com/2qu83v

Of particular interest to you are:

Flfile Object

Flfilre.read(fileOrFolderURI);
Flfile.write(fileURI, textToWrite);

etc.

Hope this helps you.  JSFL rocks.  I've used it to create many handy
tools.

One thing that will save you some headaches if you make Panels out of
your JSFL tools is make sure you DOCK the panels in Flash.  For some
reason, certain JSFL actions that modify objects on the timeline are
broken if called from a free floating panel.  It's a bug and it's
probably known and I wouldn't expect a fix anytime soon.

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

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


RE: [Flashcoders] Trouble getting _x position

2007-03-23 Thread Steven Sacks | BLITZ
Draw your box from 0,0 and then set the _x and _y of the movieclip you
drew in.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Using JSFL with AS files

2007-03-22 Thread Steven Sacks | BLITZ
What do you mean specifically?


BLITZ | Steven Sacks - 310-551-0200 x209
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Danny Kodicek
 Sent: Thursday, March 22, 2007 6:30 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Using JSFL with AS files
 
 Is there any way to do it? (And yes, I know I'd be better off 
 with an external editor, but sometimes it's easiest just to 
 work in the IDE). 
 
 Danny
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Localization issue with XML

2007-03-21 Thread Steven Sacks | BLITZ
You're telling me to do something that I specifically said I already have done.


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Søren Christensen
 Sent: Wednesday, March 21, 2007 9:04 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Localization issue with XML
 
 
 
 if it isnt a coded textfield you need to define each special 
 character using the 'embed' button in the inspector (while the tf is
 selected) in the 'include these charecters' field
 
 Cheers,
  B) Søren
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  Steven Sacks
  | BLITZ
  Sent: Tuesday, March 20, 2007 8:32 PM
  To: flashcoders@chattyfig.figleaf.com
  Subject: [Flashcoders] Localization issue with XML
 
  Hey Flashcoders,
 
  I'm having an issue with special characters not showing up 
 from other 
  languages, such as German (ü, ö, etc.).  The issue is specifically 
  with text loaded in from XML.
 
  The textfields are set to embed all latin glyphs (1076 glyphs, 
  Uppercase, Lowercase, Numerals, Punctuation, Latin I, 
 Latin Extended 
  A, Latin Extended B, and Latin Extended Add'l).
 
  All text is wrapped in CDATA tags.
 
  I've tried saving the xml file with 8 bit and UTF-8 encoding and 
  neither works.
 
  XML header is
  ?xml version=1.0 encoding=UTF-8 ?
 
  If I set the text of the textfield with Actionscript to a 
 string with 
  those characters in it, no problem, they all show up just fine.
 
  // This works
  txt.htmlText = wofür benötigen;
 
  However, when I display it from the XML, they show up as regular o 
  and u characters.
 
  // Does not work
  item![CDATA[wofür benötigen]]/item
 
  Any ideas?
 
  Thanks,
  Steven
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flash extension question

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


var doc = fl.getDocumentDOM();

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

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

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

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

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

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

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

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


You can then use:

publishTheSWF(swfName);

Note: do not include the extension.

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

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


RE: [Flashcoders] disabling carriage returns in wrapping text fields

2007-03-21 Thread Steven Sacks | BLITZ
You could fake it and instead of using an input textfield, capture
keystrokes and put them into a dynamic textfield.  :)

You could also validate the input textfield on every key up event and
strip any carriage returns out then.

INP_Field.text =
INP_Field.text.split(\n).join().split(\r).join();

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

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


[Flashcoders] Localization issue with XML

2007-03-20 Thread Steven Sacks | BLITZ
Hey Flashcoders,

I'm having an issue with special characters not showing up from other 
languages, such as German (ü, ö, etc.).  The issue is specifically with text 
loaded in from XML.  

The textfields are set to embed all latin glyphs (1076 glyphs, Uppercase, 
Lowercase, Numerals, Punctuation, Latin I, Latin Extended A, Latin Extended B, 
and Latin Extended Add'l).

All text is wrapped in CDATA tags.

I've tried saving the xml file with 8 bit and UTF-8 encoding and neither works.

XML header is 
?xml version=1.0 encoding=UTF-8 ?

If I set the text of the textfield with Actionscript to a string with those 
characters in it, no problem, they all show up just fine. 

// This works
txt.htmlText = wofür benötigen;

However, when I display it from the XML, they show up as regular o and u 
characters.

// Does not work
item![CDATA[wofür benötigen]]/item

Any ideas?

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

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


RE: [Flashcoders] Localization issue with XML - SOLVED!

2007-03-20 Thread Steven Sacks | BLITZ
And I solved it heh so thanks anyway!

Solution was to use the numeric codes.



 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Steven Sacks | BLITZ
 Sent: Tuesday, March 20, 2007 11:32 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Localization issue with XML
 
 Hey Flashcoders,
 
 I'm having an issue with special characters not showing up 
 from other languages, such as German (ü, ö, etc.).  The issue 
 is specifically with text loaded in from XML.  
 
 The textfields are set to embed all latin glyphs (1076 
 glyphs, Uppercase, Lowercase, Numerals, Punctuation, Latin I, 
 Latin Extended A, Latin Extended B, and Latin Extended Add'l).
 
 All text is wrapped in CDATA tags.
 
 I've tried saving the xml file with 8 bit and UTF-8 encoding 
 and neither works.
 
 XML header is
 ?xml version=1.0 encoding=UTF-8 ?
 
 If I set the text of the textfield with Actionscript to a 
 string with those characters in it, no problem, they all show 
 up just fine. 
 
 // This works
 txt.htmlText = wofür benötigen;
 
 However, when I display it from the XML, they show up as 
 regular o and u characters.
 
 // Does not work
 item![CDATA[wofür benötigen]]/item
 
 Any ideas?
 
 Thanks,
 Steven
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] 500 blur filters on 500 MCs

2007-03-20 Thread Steven Sacks | BLITZ
500 MCs is gonna be a hit already on VM1, 500 blurred MCs?  Best of
luck.

AS3/FP9 you'll have better performance but 500 blurs seems like lot.  I
would suggest you write some an algorithm that creates groups of clips
with the same blur into container clips and blur the container clips
rather than all the individual clips.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Create an object by name

2007-03-19 Thread Steven Sacks | BLITZ
Most of the time, what I've seen is setting a temporary var to either an
instance of the class, or in the case of a static class, setting it to a
reference to the class.

var myClass:MyClass = new com.client.project.package.MyClass();
or
var myClass:MyClass = com.client.project.package.MyClass;

I have to wonder, though, if there's not a better way to accomplish what
you're trying to achieve.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] apollo is in macromedia labs

2007-03-19 Thread Steven Sacks | BLITZ
It's not only for Flex.   Flex == Flash.  That's like saying It's only
for Ruby, not Rails.  Rails is written in Ruby.

Flex 2 is built with Flash.  It's simply a bunch of classes and
components written in AS3 that provide a framework for developing
applications.

Currently, the Apollo compiler is a plug-in for Flex Builder 2, but you
could make a stub projector that will load any AS3 swf, which there are
multiple ways to write.  There's the Flash 8 patch to publish Flash 9,
the ANT compiler which works with FlashDevelop, and Flex Builder 2.
Yes, you can write regular AS3 swfs with Flex Builder.  Flex Builder is
just Eclipse with a plug-in.

I'm not sure what you need Apollo for.  It's still in beta, and even
after launch, I'm sure that like every single other wrapper out there,
it will need time to work the kinks out before it will be ready for mass
distribution.  If you have a client depending on a Flash wrapper
technology, you should look to mProjector or Zinc.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] stopDrag question

2007-03-19 Thread Steven Sacks | BLITZ
function compareX():Void
{
if (MC_Drag._x == mc2._x) 
{
endDrag();
}
}
function beginDrag():Void
{
MC_Drag.startDrag(false, t, l, b, r);
clearInterval(compareInterval);
compareInterval = setInterval(this, compareX, 10);
}
function endDrag():Void
{
clearInterval(compareInterval):
stopDrag();
}
MC_Drag.onPress = Delegate.create(this, beginDrag);
MC_Drag.onRelease = Delegate.create(this, endDrag);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] xml parse question - Steve Sacks

2007-03-16 Thread Steven Sacks | BLITZ
Hey Jason,

You don't say .nodeValue - the nodeValue is just the first item in the
Array.  Technically, it's a String object.

Here is a sample class that parse that entire xml and traces it out.
In your timeline just put:

import com.Test;
var test:Test = new Test();

And you'll see it trace the test.xml file.

///

import com.stevensacks.data.XML2AS;
import mx.utils.Delegate;

class com.Test
{
private var xml:XML;

function Test() 
{
var d:Date = new Date();
var xmlPath:String = test.xml;
load(xmlPath);
}
private function load(xmlPath:String):Void
{
xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = Delegate.create(this, parseXML);
xml.load(xmlPath);
}
private function parseXML(success:Boolean):Void 
{
if (success) {
var xmlObj:Object = {};
XML2AS.parse(xml.firstChild, xmlObj);
trace(test.foo =  +
xmlObj.config[0].test[0].attributes.foo);
var nodes:Array =
xmlObj.config[0].items[0].item;
var i:Number = nodes.length;
while (i--) {
trace(nodes[i]);
}   
} else {
trace(XML Failed to load);
}
}
}

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

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


RE: [Flashcoders] Q:using printjob class

2007-03-16 Thread Steven Sacks | BLITZ
 1) always make a printer default to landscape mode and
 
 I know the answer to #1 is no. 


and...

 1) You can't make the printer default to landscape, 
 but you can rotate the clips that you are printing.


Actually, you can!

PrintJob is a poorly written class that you have to make special
accomodations for to do this.  Here is the code to force printing in
landscape.

Awesome, the Flashcoders archives are all 404 according to google.  :(

Here is the code (scroll all the way down to the bottom - the post by
Ultimante) to do it.

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=288t
hreadid=1089277enterthread=y

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

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


RE: [Flashcoders] Q:using printjob class

2007-03-16 Thread Steven Sacks | BLITZ
Here's a shorter version of that link showing how to do it.  Code
written by me.

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

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


RE: [Flashcoders] Q:using printjob class

2007-03-16 Thread Steven Sacks | BLITZ
And on my blog:

http://www.stevensacks.net/2007/03/16/force-landscape-printing-with-prin
tjob/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Q:using printjob class

2007-03-16 Thread Steven Sacks | BLITZ
There is no difference between printing a rotated clip in portrait or a
non-rotated clip in landscape.  A printer does the same thing when it
prints an image in landscape.  Technically, I'm telling the printer to
print in landscape mode even when it's not set to print in landscape
mode.  My script results in an identical print regardless of what the
user sets the printer to, so I think I'm right in saying that you can
force a printer to print in landscape.

Also, my script doesn't rotate the clip if the printer is set to print
in landscape.  You have to rotate the clip is only part of the story.
The PrintJob class has inconsistencies in its internal math, which is
why I had to set realW, realH, orgX and orgY and do different
calculations at different points in the script.

I wrote that code with much trial and error (and no wasted paper thanks
to Microsoft image documents).


 Um - unless I'm missing something - the code you link to is 
 just rotating the image to be printed to make it landscape 
 (if the printer settings aren't already set to landscape). 
 You can't actually set the printer settings to landscape 
 programmatically, you have to rotate the clip in question.
 
 Which is, I think, what I said.
 
 Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] xml parse question

2007-03-15 Thread Steven Sacks | BLITZ
Here's XML2AS as an AS2 static class for her pleasure.


class com.stevensacks.data.XML2AS 
{
public static function parse(n, r) 
{
var a, d, k;
if (r[k=n.nodeName] == null) r = ((a=r[k]=[{}]))[d=0];
else r = (a=r[k])[d=r[k].push({})-1];
if (n.hasChildNodes()) {
if ((k=n.firstChild.nodeType) == 1) {
r.attributes = n.attributes;
for (var i in k=n.childNodes)
XML2AS.parse(k[i], r);
} else if (k == 3) {
a[d] = new
String(n.firstChild.nodeValue);
a[d].attributes = n.attributes;
}
}else r.attributes = n.attributes;
}
}

Usage:
config
test foo=bar/
items
item![CDATA[Some text]]/item
item![CDATA[More text]]/item
item![CDATA[Other text]]/item
/items
/config

var xml:XML = someXML;
var xmlObj:Object = {};
XML2AS.parse(someXML.firstChild, xmlObj);

trace(xmlObj.config[0].test[0].attributes.foo);
-- bar

var nodes:Array = xmlObj.config[0].items[0].item;
var i:Number = nodes.length;
while (i--) {
trace(nodes[i]);
}
-- Some text
-- More text
-- Other text
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flash - using the back button

2007-03-15 Thread Steven Sacks | BLITZ
Google SWFAddress

 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Karim Beyrouti
 Sent: Thursday, March 15, 2007 4:56 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Flash - using the back button
 
 Hi All,  
 
 I was just wondering what the best way to activate the 
 browser's back button for a Flash(8) app?... are there any up 
 to date resources / tutorial about this?...
 
 
 Kind regards
 
 
 
 Karim
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] xml parse question

2007-03-15 Thread Steven Sacks | BLITZ
Or you can save yourself the very slow Array.reverse() and just iterate
through the array backwards, too.

 
 You might be aware of this, but just an FYI, if you're 
 concerned about attributes being order specific. When you 
 loop through the attributes with a for statement, you'll get 
 the attributes in the reverse order. I personally loop 
 through the attributes and push the attribute name to an 
 array and then reverse order, when the for is done.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] is flash still alive?

2007-03-13 Thread Steven Sacks | BLITZ
Flash is dead.  Long live WPF/E!   ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] deleting a progress bar after loading

2007-03-12 Thread Steven Sacks | BLITZ
You can't tell an object to delete itself from within its own thread.

When you delete an object outside of its own thread, you need to first
delete any functions assigned to that object and remove it from any
event listeners of other objects or you will end up with memory waste.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] RE: Cache Killer... is it bulletproof ???

2007-03-06 Thread Steven Sacks | BLITZ
 A: deny a user from hotlinking 

Meaning?

B: deny cacheing of swf files and content

Impossible.

 C: deny playability locally. 

Check for domain at launch. If domain doesn't match, don't play.


Cache Killer isn't about keeping something from being cached (which
you can't do), it's about forcing the browser to not load the cached
version but instead get the latest version from the server.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Cache Killer... is it bulletproof ???

2007-03-05 Thread Steven Sacks | BLITZ
The user would have to reset their clock and make the request at the
EXACT SAME MILLISECOND in time.  It's nigh impossible.  It will never
ever ever EVER happen.  You're good to go.

var d:Date = new Date();
var noCache:String = String(d.getTime());
var xmlPath:String = http://www.domain.com/my.xml?noCache=; + noCache;
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] OT: Pirated Books

2007-03-02 Thread Steven Sacks | BLITZ
Omar Fouad said:
this is not called piracy my little brave boy...know your right and
respect your older bro.

Give us a break, Omar.

http://en.wikipedia.org/wiki/Software_piracy
QUOTE
The copyright infringement of software refers to several practices when
done without the permission of the copyright holder:
Creating a copy and giving it to someone else. This constitutes
copyright infringement in most jurisdictions.
/QUOTE

http://www.usatoday.com/tech/news/2007-02-05-potter-no-ebook_x.htm
QUOTE
Author J.K. Rowling has not allowed the first six Potter stories to be
released as e-books and has no plans to change that for the seventh and
final work.  ... Rowling has cited ... concern[s] about online piracy.
/QUOTE

Lots more can be found here.
http://www.google.com/search?source=ighl=enq=ebook+piracybtnG=Google+
Search


Maybe you should know you're wrong and stop trying to justify your
illegal activity.

At the same time, I don't agree with Ian the tattle-tale posting about
it on Flashcoders.  He would have done quite well in the McCarthy era.

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

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


RE: [Flashcoders] Dynamic Flash

2007-03-02 Thread Steven Sacks | BLITZ
Posting the same question under three different subjects won't get your
question answered any quicker.

Flash is perfectly capable of CRUD communication with a database and
displaying it however you like.

You're asking for advice on how to set up a relational database and how
to write inner join SQL statements, and then how to send that data to
Flash.  Only one part of that has anything to do with Flash, and it's
probably one of the most basic things you can do with Flash (displaying
data).

I suggest you buy an introduction to Flash book and an introduction to
relational database book and get to reading.

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

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


RE: [Flashcoders] shape tweens at 60fps

2007-03-02 Thread Steven Sacks | BLITZ
Any browser except IE on Windows will have reduced performance.  Only IE
gives Flash as much RAM and CPU as it wants.

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

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


RE: [Flashcoders] OT: Pirated Books

2007-03-02 Thread Steven Sacks | BLITZ
Are you so retarded that you would repost the same ignorant denial to
the list?

Omar, you broke the law and that's that.  You're only making yourself
look dumber by denying it.  Drop it move on before you make yourself
look any worse.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] ADMIN: DO NOT SEND UNSUBSCRIBE REQUESTS TO THE LIST

2007-03-02 Thread Steven Sacks | BLITZ
You should just post their emails on spam forums where they are sure to
be culled by bots and then they'll start getting so much spam it'll
force them to get a brand new email.

Maybe then they'll see that a few unwanted emails are really not that
bad compared to how bad it will be if they don't stop whining about an
issue you're obviously working on.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] ADMIN: DO NOT SEND UNSUBSCRIBE REQUESTS TO THE LIST

2007-03-02 Thread Steven Sacks | BLITZ
 I know the whining has been excessive, but there are real 
 people behind those e-mails.  

Your bleeding heart is making a mess of the sarcasm on this thread.

I know you work in an extremely corporate environment, but try and find
a sense of humor and lighten up, Jason.  ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Subscription problems

2007-03-01 Thread Steven Sacks | BLITZ
 There are those who cry and then there are those who help themselves.

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

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


RE: [Flashcoders] Skewing MovieClip??

2007-02-28 Thread Steven Sacks | BLITZ
 Please take me off this list, the emails just keep coming 
 
 Ahhggg  

At the bottom of every email it tells you how to get off the list.


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Steven Sacks | BLITZ
 So even though I never wrote it I would offer the following 
 advice, which is to *almost* not use setInterval at all.  

Hogwash.

http://www.kennybunch.com/index.php?p=16

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

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


RE: [Flashcoders] test

2007-02-26 Thread Steven Sacks | BLITZ
1 out of 1 tests completed. Errors: 0. Warnings: 0.

BLITZ | Steven Sacks - 310-551-0200 x209
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Dave Watts
 Sent: Sunday, February 25, 2007 11:11 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] test
 
 Test again ...
 
 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@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] What do you think are the best Flash projects andRIA's

2007-02-15 Thread Steven Sacks | BLITZ
Looks like they're using DENG or something like it.


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Glen Pike
 Sent: Thursday, February 15, 2007 3:44 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] What do you think are the best 
 Flash projects andRIA's
 
 Hi,
 
 It might not be a full on application as such, but I 
 really liked the way that Pier Inc's site uses Flash to 
 enhance the blog as I see it.
 
 http://pierinc.com/
 
 Check it out, there is some nifty ideas and slick stuff 
 in there.  
 Then set your user-agent to GoogleBot and see what is served.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Anyone hate flash 9 already?

2007-02-14 Thread Steven Sacks | BLITZ
 What people keep missing here is THERE IS NO FLASH 9.  
 There is the Flash 9 player, there is the Flash 9 beta, which 
 is only Flash 8 with a Flash 9 player compiler, but no Flash 9 yet.

The closed Flash 9 Beta (Blaze) has been going on for a few months now.
You're talking about the public patch for Flash 8 that lets you publish
as Flash 9. 

If the OP is sharing information about Blaze on this list, he's breaking
the NDA.  This alone is probably pushing it.  *duck*
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Anyone hate flash 9 already?

2007-02-14 Thread Steven Sacks | BLITZ
Adobe calls it Flash 9 Professional Actionscript 3.0 Preview

Fair enough, though in my defense, I didn't capitalize it as if it was
the actual.  I just described it.  

Still not a beta.  ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-02-14 Thread Steven Sacks | BLITZ
 - Refactor to simpler class relationships (worst case but it 
 did the trick for me - had to duplicate code, ewww).

You could use Composition instead, which reduces the need for normal
class inheritance.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Coding Standards: Use of Get/Set

2007-02-13 Thread Steven Sacks | BLITZ
Get/set is useful when creating a visual object class, as well as for
setting private variables on set.  It's also useful when you don't want
the variable that is being set to be getted, as well.

For instance, I have an application which allows a user to type in the
day, month and year into three different fields.  

This data is applied to the model via setters:

public function set month(n:Number):Void 
{
_month = --n;
var d:Date = new Date(_msDate);
d.setMonth(n);
_msDate = d.getTime();
}
public function set day(n:Number):Void 
{
_day = n;
var d:Date = new Date(_msDate);
d.setDate(n);
_msDate = d.getTime();
}
public function set year(n:Number):Void 
{
_year = n;
if (String(_year).length == 1) {
_year = Number(200 + n);
} else if (String(_year).length == 2) {
_year = Number(20 + n);
}
var d:Date = new Date(_msDate);
d.setFullYear(_year);
_msDate = d.getTime();
}

This allows me to set the month to a valid flash month (month - 1), and
update _msDate, which is the date in milliseconds, for sorting by dates
very easily.

I use setters and getters because it makes autocompletion and code hints
a breeze.  It also is great for visual object model classes.

If you choose to write getVariable vs get variable, it's up to you.  I
use them in different ways at different times.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Adding a function to the String prototype

2007-02-13 Thread Steven Sacks | BLITZ
You should absolutely feel comfortable and fine using prototype to add
functions to the String native object if you want.  I say if it works,
use it.  Just because they skimped on String and Array methods that MOST
other languages have doesn't mean you should have to write a bunch of
extra code to extend the class or cast your Strings as MyStrings.  

Feel free to use prototype until you move to AS3.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] (no subject)

2007-02-12 Thread Steven Sacks | BLITZ
I wasn't aware that Foreigner posed their question to Flashcoders, but
I'm sure they appreciate the answer.


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Omar Fouad
 Sent: Monday, February 12, 2007 11:28 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] (no subject)
 
 hi
 Omar Fouad-- Love is always patient and kind. It is never 
 jealous. Love is never boastful nor conceited. It is never 
 rude or selfish. It does not take offense and is not 
 resentful. Love takes no pleasure in other people's 
 sins...but delights in the truth. It is always ready to 
 excuse, to trust, to hope... and to endure... whatever comes.
 _
 Live Search: Better results, fast
 http://get.live.com/search/overview
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] determining which object is displayed at agivenpoint

2007-02-09 Thread Steven Sacks | BLITZ
Oops.  I responded to the wrong thread, I'm sorry.  :(

That being said, perhaps rethinking your approach would help. There's a
tutorial on Kirupa about managing z-order stacking of movieclips which
might contribute to a solution.

http://www.kirupa.com/developer/actionscript/3dexplore.htm

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

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


RE: [Flashcoders] Identifier expected

2007-02-09 Thread Steven Sacks | BLITZ
 As you have discovered you are not able to use numbers as 
 keys in line objects.

That's not true.

Just wrote this and it works fine.

a = {};
a[a] = {};
a[a][1] = new Number(5);
trace(a[a][1]);
-- 5

Works for me.  You must be doing something else wrong.

I'm not sure why you're using new Number().  I don't think I've ever
used that.  Ever.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Identifier expected

2007-02-09 Thread Steven Sacks | BLITZ
private function createData():Void 
{
this._data = {a:{t1:0, t2:0}};
}

One line.  :)


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Mendelsohn, Michael
 Sent: Friday, February 09, 2007 11:02 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Identifier expected
 
 Thanks Jason.  I see what you're saying.  So I inited an 
 object and then define it, but the below still errors.  I was 
 just hoping to be able to define my object with only one line of code.
 
 private function createData():Void {
   this._data = new Object();
   this._data[a] = new Object();
   this._data[a] = {t1:0, t2:0};
 }
 
 
 I was using new Number for a reason, but it's not critical I suppose.
 Thanks Steven.
 
 - Mike
 
 
 
 
 
 
 The second line does not work because you are evaluating a 
 string to try to resolve it to a property of the object, 
 (which you are hoping is a
 sub-object) that does not exist yet.  In other words,
 
 this._data.a 
 
 the .a in the above statement has not been declared or 
 identified as an object, and thus this._data[a] resolves to nothing.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: Re[2]: [Flashcoders] Identifier expected

2007-02-09 Thread Steven Sacks | BLITZ
Stop using new Object() and use {};
 
:)

I'm not experiencing the same issue you're having Jason.  Not sure why.

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

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


RE: [Flashcoders] Detecting mouse events over non-white parts of amovieClip

2007-02-08 Thread Steven Sacks | BLITZ
class com.domain.RollWhileWithin extends MovieClip 
{
public var rolled:Boolean;

function RollWhileWithin () 
{
rolled = false;
}
public function doRollOver():Void 
{
if (!rolled) {
rolled = true;
gotoAndStop(over);
}
}
public function doRollOut():Void 
{
if (rolled) {
rolled = false;
gotoAndStop(up);
}
}
}




One level above it, you can manage as many clips as there are.

var checkMouseInterval:Number;
clearInterval(checkMouseInterval);
checkMouseInterval = setInterval(this, checkMouse, 100);
private function checkMouse():Void 
{
var i:Number = 5;
while (i--) {
var clip:MovieClip = this[MC_RollClip + i];
if (_xmouse  clip._x  _xmouse  clip._x + clip._width
 _ymouse  clip._y  _ymouse  clip._y + clip._height) {
clip.doRollOver();
} else {
clip.doRollOut();
}
}
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] determining which object is displayed at agivenpoint

2007-02-08 Thread Steven Sacks | BLITZ
I think the class I wrote works well enough, I actually pulled it out of
an app I'm working on with complex rollovers like that.  Why not
consider my way?  It's simple, easy and, most importantly, it works.  It
hardly takes any processing power, too.


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

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


RE: [Flashcoders] Tab Problem

2007-02-07 Thread Steven Sacks | BLITZ
Increments are your friend.  :)

a = 0;
tf1.tabIndex = ++a;
tf2.tabIndex = ++a;
tf3.tabIndex = ++a;
btn4.tabIndex = ++a;
btn5.tabIndex = ++a;

If you had to reorder any of those tab orders all you have to do is cut
and paste them into their new position.  If you number your tabIndexes
specifically and you needed to move one, you would have to renumber any
that came after the one you moved.  Not fun, especially if you have a
lot of tabbable elements.

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

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


RE: [Flashcoders] finding out which fonts are embedded inaswfatruntime?

2007-02-07 Thread Steven Sacks | BLITZ
Mike, your signature needs an editor.  :)



 ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ
 Tel: 01964 672000
 Fax: 01964 671102
 Registered in England no. 01646471
 The information contained within this email expresses the 
 views of the sender and not necessarily those of the company. 
 It is private and confidential and may be legally privileged. 
 It is intended solely for those authorised to receive it. If 
 you are not the intended recipient you are hereby notified 
 that any disclosure, copying, distribution or action taken in 
 reliance on its contents is strictly prohibited and may be 
 unlawful. If you have received this email in error, please 
 telephone us immediately on 01964 672000 or email a reply to 
 highlight the error and then delete it from your system. This 
 email may contain links to web-sites, the contents of which 
 ECM Systems Ltd have no control over and can accept no 
 responsibility for. Any attachments have been virus-checked 
 before transmission; however, recipients are strongly advised 
 to carry out their own virus checking as ECM Systems Ltd do 
 not warrant that such attachments are virus-free. Please note 
 that this email has been created in the knowledge that 
 Internet email is not a secure communications medium. We 
 advise that you understand and observe this lack of security 
 when emailing us.
 
 ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ
 
 Tel: 01964 672000 
 Fax: 01964 671102
 
 Registered in England no. 01646471   
 
 The information contained within this email expresses the 
 views of the sender and not necessarily those of the company. 
 It is private and confidential and may be legally privileged. 
 It is intended solely for those authorised to receive it. If 
 you are not the intended recipient you are hereby notified 
 that any disclosure, copying, distribution or action taken in 
 reliance on its contents is strictly prohibited and may be 
 unlawful. If you have received this email in error, please 
 telephone us immediately on 01964 672000 or email a reply to 
 highlight the error and then delete it from your system. This 
 email may contain links to web-sites, the contents of which 
 ECM Systems Ltd have no control over and can accept no 
 responsibility for. Any attachments have been virus-checked 
 before transmission; however, recipients are strongly advised 
 to carry out their own virus checking as ECM Systems Ltd do 
 not warrant that such attachments are virus-free. 
 Please note that this email has been created in the knowledge 
 that Internet email is not a secure communications medium. 
 We advise that you understand and observe this lack of 
 security when emailing us.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Detecting Rollover w/o onRollOver

2007-02-06 Thread Steven Sacks | BLITZ
You can use hitTest, you can use mouse position, or you can set an
interval to fire a function in 10 ms when you rollout that checks to see
if a flag is true that the other button will set true onRollOver.

function checkFlag() {
clearInterval(checkInterval);
delete checkInterval;
if (btn2Flag) {
btn2Flag = false;
btn1.gotoAndStop(out);
}
}
btn1.onRollOut = function() {
checkInterval = setInterval(checkFlag, 10);
};
btn2.onRollOver = function() {
btn2Flag = true;
};
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Extending List v2 component

2007-02-06 Thread Steven Sacks | BLITZ
Why use a component at all?  All you're talking about doing is scrolling
a bunch of movieclips behind a mask.  I posted some code here awhile
back that covered doing that.  Search the archives and you'll find it.
It's pretty straightforward to do.

The MM components are heavy, take too long to render and are buggy to
boot.  You're better off rolling your own or trying a 3rd party
solution.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] What are your thoughts on creating a hook back vsDelegate ?

2007-02-05 Thread Steven Sacks | BLITZ
 Also, anyone please let me 
 know if my code formatting doesn't work (i.e: shouldn't be 
 using hotmail to post)

Your code formatting is not working.
 
Delegate rocks.  I use it all the time.


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Stephen Ford
 Sent: Sunday, February 04, 2007 7:48 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] What are your thoughts on creating a 
 hook back vsDelegate ?
 
 Which do you prefer:oThis:Object = this;mcClear.onRelease = 
 function():Void{oThis.clearForm();}ormcClear.onRelease = 
 Delegate.create(this, clearForm);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Need help with Keyboard events

2007-02-05 Thread Steven Sacks | BLITZ
Pseudo-code:

obj.onKeyDown = function() {
if (Key.getAscii() == C  Key.isDown(Key.CONTROL)) {
// copy
}
};
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Progresivly track upload speed

2007-01-31 Thread Steven Sacks | BLITZ
 Is there any way to progressively track upload speed in flash?

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

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


RE: [Flashcoders] Flair Pattern bad mixins good (?)

2007-01-31 Thread Steven Sacks | BLITZ
Yeah, the GoF book is definitely like reading a calculus textbook.  It's
dry and to the point and the examples are in Smalltalk and some C++,
which means a lot of cross-referencing with google.  The concepts they
discuss and the examples they give are helpful to a point but code
examples you can't understand definitely get in the way.

GoF's is good reference book worth owning, and once you grasp design
patterns more firmly, you'll probably get more from it.  Head First is a
lot more accessible out the gate.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Shorhand for if statement without else statement

2007-01-29 Thread Steven Sacks | BLITZ
 (foo) ? foo() : (bar) ? bar() : (foobar) ? foobar() : 
 trace(sorry! no soup for you!);

I feel like I need a shower after that one.  ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Steven Sacks | BLITZ
I've never heard of an OOP design pattern called Flair.  From the class
you've pasted, it looks like a novice attempt at implementating a design
pattern known as Decorator.

Perhaps they were trying to be funny with a reference to the movie
Office Space where buttons decorating a TGIFriday's uniform were called
Flair?  I know that comedy helps when teaching dry material, but
renaming a design pattern like that seems to me to be confusing at best.

At any rate, here is a link to a description of the Decorator pattern.
It should get you on your way.

http://en.wikipedia.org/wiki/Decorator_pattern





 
 SNAPFLAIR CLASS
 Implemented as a Singleton
 
 class  SnapFlair {
   private static var _obj:SnapFlair;
   
   private function SnapFlair() {}
   
   /**
   * @param target The MovieClip being 'flaired'
   * @param source The source of the event 
 that the flair  
 functionality is listening for
   * @param eventName  The name of the event that the 
 flair is listening  
 for
   */  
   public function snapOn( target:MovieClip, 
 source:Object, eventName:String ) {
   target.mc.$snapFlair = new Object();
   target.mc.$snapFlair._obj = target;
   source.addEventListener( eventName, target.$snapFlair );
   target.mc.$snapFlair[eventName] = onEvent;
   }
   
   public static function getObj():SnapFlair {
   if (SnapFlair._obj == null) {
   SnapFlair._obj = new SnapFlair();
   }
   return _obj;
   }
   
   public function snapOff( target:MovieClip, 
 source:Object, eventName:String ) {
   source.removeEventListener(eventName, target.$snapFlair)
   delete target.mc.$snapFlair;
   }
   
   public function onEvent( evt:Object ) {
   // do stuff
   }
   
   public function toString():String {
   return Class SnapFlair;
   }
 }
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Incremental compilation workflow

2007-01-29 Thread Steven Sacks | BLITZ
http://www.flashos.org/flasc/

:)
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Marcelo de Moraes Serpa
 Sent: Saturday, January 27, 2007 6:04 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Incremental compilation workflow
 
 Hello,
 
 How would you go on implementing incremental compilation 
 workflow on Flash 8/AS2?
 
 I mean, compiling only the modified classes into their 
 correspondent swfs.
 
 Let's say you've got a really big project and that you are 
 constantly messing with code and recompiling it. ANT build 
 files are great, but surely it's not clever to rebuild the 
 whole application when you have modified only one class for example.
 
 Take the following application structure (it's not that big 
 application I said earlier of course bit I think it still 
 helps to depict the main issue):
  - Application.as gets compiled to Site.swf
  - MenuBar.as gets compiled to Site.swf
  - IndexForm.as gets compiled to IndexForm.swf
  - ContactForm.as gets compiled to ContactForm.swf
 
 As you can see, I have a Site.swf which is the entry-point of 
 the application. IndexForm.swf and ContactForm.swf are both 
 loaded by Application.as. The MenuBar is a class that 
 implements the menu bar for the site navigation. The menu bar 
 is part of the main application UI and gets compiled into Site.swf.
 
 If I update or fix something on the MenuBar.as, for example, 
 I don't want to recompile Application.as into Site.swf, nor 
 compile the other classses to the other swfs. What I want is 
 only inject the new MenuBar.as bytecode into Site.swf (the 
 modified class!). Simple, fast, effective.
 
 On FlashDevelop, I used to do this by using the Quick MTASC 
 build feature.
 I would just write the @mtasc statement in the class' header, 
 inside a javadoc comment, telling where to compile this 
 class. So, if I had to do a quick fix or something, I would 
 just hit CTRL+F8, and the new bytecode for MenuBar.as would 
 get injected into Site.swf. I don't know if there are better 
 (more automatized ways) to do this, and if you know, please 
 share, this is the purpose of this post!
 
 Recently I've started using FDT 1.5 on Eclipse 3.2, and while 
 it is a killer piece of software, I miss some of FlashDevelop 
 features, mainly the simple and effective ones such as the 
 Quick MTASC build.
 
 Currently, I'm using an ANT build file (the FDT MTASC 
 launcher isn't really of any use in my opinnion) with an ANT 
 target to compile each of the swfs the application is made 
 of. When I'm working on a particular SWF, I set up the ANT 
 external tools configuration to launch only this target. 
 It's not the same as injecting only the modified classes 
 (other non-touched classes get compiled also) but it was the 
 best I could do atm.
 
 This message isn't really about implementing this with FDT, 
 though I would love to hear from FDT users how they would do 
 this. What I would like to know (and discuss) are the 
 following points:
  * Do you feel the need to have this workflow implemented?
  * Do you already have this workflow implemted somehow?
  * If so, what tools/techniques do you use (would use) to 
 implement it?
 
 Thanks in advance!
 
 Marcelo.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Incremental compilation workflow

2007-01-29 Thread Steven Sacks | BLITZ
er, apparently it's a bizarro monday for me.

http://www.osflash.org/flasc/


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Steven Sacks | BLITZ
 Sent: Monday, January 29, 2007 10:47 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Incremental compilation workflow
 
 http://www.flashos.org/flasc/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Steven Sacks | BLITZ
So I was dead on about the Office Space reference.  :)

The class manages assigning Decorators.  It isn't a design pattern.
It's a class that manages the Decorator design pattern on multiple
objects.

I'm not sure where the idea that the Decorator pattern must be used on
all or none of the objects in an application, or that Decorated objects
cannot be undecorated.

There are no references to the Flair design pattern anywhere else
because it doesn't exist anywhere except in the ego of Brendan Hall.
It's not a design pattern, it's a class that uses another design
pattern, and poorly, too, judging by the code example.

If you want to learn more about Design Patterns, there are quite a few
great books out there on the subject written by people more learned and
experienced than Brendan Hall.  Like people with PhD's in Computer
Science.  From the de facto bible Design Patterns by the Gang of Four to
many others.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Steven Sacks | BLITZ
I felt that I did qualify my statement, I'll try again with clearly
language.

My statement:
There is no such thing as a Flair design pattern.

My qualification:
Brendan Hall's book and deep in the archives of Flashcoders back when
Brendan operated this list are the only places you will find reference
to it.

His class uses the Decorator design pattern.  Using a design pattern
doesn't mean you've made your own design pattern.  Calling it a design
pattern gives it a level of authenticity that it simply doesn't have
and is misleading to anyone who reads it, as the OP has demonstrated
with his post.  He has no point of reference outside of Brendan's book
or this list to support him or his questions.

I provided a link that would hopefully help him learn the actual design
pattern being used, which is called Decorator.  Using Decorator on
multiple objects isn't a design pattern, it's the usage of the Decorator
design pattern.

To your comment that Actionscript isn't C++ or Smalltalk, that's true.
My feeling is that Design Patterns are universal, not limited to syntax
or language.  I didn't mean to imply that GoF holds the one true set of
patterns.  They don't cover MVC in their book, for instance, a pattern I
use regularly.  Their book is weighted heavily towards the Composition
design pattern, which is slowly being embraced by the Actionscript
community.  The Flex framework and even the AS3 language are influenced
by the power of the Composition design pattern.

The Head First Design Patterns book is quite good, as well, and is more
accessible than the heady and dense GoF one which I had trouble
understanding parts of (often due to lack of experience with C++ and
Smalltalk) and had to turn to google and other books to grasp some of
the concepts they were talking about.  However, the 18 design patterns
covered by Head First can all be found in the 23 covered by Gang of
Four, and all are on Wikipedia, discussed all over the web, and come up
with many useful results in google, in contrast to Brendan's Flair
design pattern.

To the ad hominem remark:
When you're writing a book to help people and claiming you're using a
new design pattern who does it serve?  The reader or the author?  And if
it serves the author and not the reader, is that not an ego driven
decision?

Years ago, a company I worked at sent a few employees to Figleaf for
training and the class was taught by Brendan Hall.  I walked away from
that class with the impression that Brendan spent most of the time
telling everyone how smart he was but not teaching very much at all.
His class did little to improve my or my coworkers Flash skills.  That
experience, the way he ran Flashcoders in the early days, and now this,
is, I suppose, why I called it an ego driven decision to call it a
design pattern.  If you see it as ad hominem, that's my fault for not
using clear enough language.

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

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


RE: [Flashcoders] Re: IE6 problem with SWFAddress?

2007-01-29 Thread Steven Sacks | BLITZ
Yes, mixing getURL and ExternalInterface causes problems with IE6 (and 7
to a lesser extent) when using SWFAddress.  He talks about it on his
site and there are also discussions on his forum, as well.  I didn't see
them at first, either.  It took me awhile to figure out why the site was
behaving oddly because the class that I had that used getURL (an
omniture tracking class) wasn't making getURL calls on my server but was
on the client's server.  I didn't put the two together until I spent an
afternoon chatting with Rostislov (the author of SWFAddress) and he
asked me casually about whether I was using getURL somewhere else.

The solution is to use ExternalInterface instead of getURL(), which
actually performs better anyway.

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

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


RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Steven Sacks | BLITZ
 Can you elaborate?

While a trip down memory lane replete with posts from the archives
sounds like a wonderful time (not), I have work to do and it would take
this thread extremely OT.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Steven Sacks | BLITZ
 Whether something is a true design pattern or not is kind 
 of beside the point, for me; what I want to know is if a 
 particular approach is good for what I am trying to 
 accomplish: in this case, adding and removing functionality 
 to an object at runtime.

If it works and you meet the deadline, then it's good enough, eh?  :)

If you want to engage in what a fellow coder friend of mine calls
aromatherapy, I'm for it.  I was mistaken in my impression that you
were looking to understand the design pattern, which is why I was trying
to lead you to Decorator and away from Flair because you weren't going
to find any information on Flair that would be helpful, but there are
plenty of helpful places to look for Decorator.  

If you want to discuss best practice for what you're doing, I'd be happy
to offer ideas later today when I have more time.  Other people might be
able to chime in here on the best application of Decorator in
Actionscript.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flair Pattern?

2007-01-29 Thread Steven Sacks | BLITZ
Is adding and removing identical decorators on multiple objects a
commonly occuring problem in software development?  ;)

I avoid Decorators, as well, for the same reasons you stated and the
same solutions you offered, as well.  :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


  1   2   3   4   5   >