RE: [Flashcoders] Anyone here responsible for Fancy Pants?

2006-05-15 Thread Steven Sacks
Never seen N?  That's the best Flash game I've ever seen.  Fancy Pants
"borrowed" (was inspired by?) quite a bit from N.  You can make your own
levels with N, which has inspired a large community development of levels.

http://www.harveycartel.org/metanet/n.html

Enjoy!



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Danny Kodicek
> Sent: Monday, May 15, 2006 1:24 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Anyone here responsible for Fancy Pants?
> 
> Was browsing for games with my son yesterday and came upon 
> Fancy Pants 
> Adventure 
> (http://www.armorgames.com/games/fancypantsadventure_popup.html). 
> It is simply the most beautiful Flash game I've ever seen. 
> Smooth as butter, 
> imaginatively designed, intricately animated, fun to play, 
> perfect. But only 
> one damn level! Give me more!
> 
> 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] scrollpane, dynamic forms, and refreshPane issues

2006-05-12 Thread Steven Sacks
refreshPane reloads the content of the pane.  This is different than it used
to be in Flash MX.  The undocumented way to to refresh the contents of the
pane is:

sp.setScrollProperties(sp.content._width, 1, sp.content._height, 1);

That doesn't help with your issue of text not appearing, though.   Are you
using embedded fonts?  Scrollpanes use masking and sometimes this might
cause an issue.  Are you using Flash 7 or Flash 8?

___
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] Best SWF Wrapper

2006-05-11 Thread Steven Sacks
Seriously.  Stop f**king around and get mProjector.  I have coded against
many wrappers and mProjector by far is the best experience, period.  From
how the API works to the elegant and clever way it handles the system tray
icon (best solution I've seen) and direct communication between multiple
Flash windows (some others make you use LocalConnection - blech), etc. etc.

http://www.screentime.com/software/mprojector/

Now, if it doesn't have a feature you really need, then I guess it's not
going to work for you and that's unfortunate.  You'll have to struggle with
another wrapper that does have the feature you need but is a pain to work
with and is unstable, inefficient, and a pain to code against - three things
mProjector is absolutely not.

I've written full-blown desktop applications in mProjector that have run for
weeks without being shut down without a single issue.

-Steven

 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Cedric Muller
> Sent: Wednesday, May 10, 2006 11:49 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Best SWF Wrapper
> 
> Normally, I am not always puking on software, but
> I confirm that Zinc is a bad idea and a bad solution
> 
> Cédric Muller
> -
> b-tween | designContent
> http://www.b-tween.com
> 
> tél.   +41 22 328 8168
> 
> 
> > I faced similar issues with zinc
> >
> > 
> > Thanks
> > Sumeet Basak
> > CTO
> > Renaissance Legal & Learning Systems Pvt. Ltd.
> > Cell: + 91 9223214301
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On 
> Behalf Of Ian  
> > Thomas
> > Sent: Wednesday, May 10, 2006 1:27 AM
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] Best SWF Wrapper
> >
> > I personally would avoid Zinc. Although we've used it successfully,
> > I've had two or three of their updates introduce bugs which 
> break our
> > products, and I've had to revert until a fix comes along. 
> The quality
> > control is just too shoddy.
> >
> > Ian
> >
> > On 5/9/06, eric dolecki <[EMAIL PROTECTED]> wrote:
> >> I'm looking for some opinions on the best SWF wrapper you 
> think is  
> >> out
> >> there. The ability to save out files (XML), perhaps 
> communicate with
> > dbases
> >> (local/online), etc.
> >>
> >> - e.dolecki
> > ___
> > 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] Best application for notifier (aka Gmail)

2006-05-10 Thread Steven Sacks
IMO, mProjector has the best system tray code/methodology of all the
wrappers.  It also has the smallest executable size, smallest memory
footprint, and uses the least amount of processing.

___
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] Best SWF Wrapper

2006-05-09 Thread Steven Sacks
> I'm looking for some opinions on the best SWF wrapper you think is out
> there. The ability to save out files (XML), perhaps 
> communicate with dbases
> (local/online), etc.

mProjector hands down is the best performing SWF wrapper out there.  It also
has the easiest API to develop against.  It also does asynchronous calls to
the system.

http://www.screentime.com/software/mprojector/

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

2006-05-04 Thread Steven Sacks
> Anyone knows something about a ***non* *recursive* XML parser??

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] Project 3:16

2006-04-29 Thread Steven Sacks
I didn't send this a second time.  That's just weird.

-Steven
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Helmut Granda
> Sent: Saturday, April 29, 2006 1:00 AM
> To: 'Flashcoders mailing list'
> Subject: RE: [Flashcoders] Project 3:16
> 
> deja-vu?
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Steven Sacks
> Sent: Monday, April 24, 2006 10:27 AM
> To: 'Flashcoders mailing list'
> Subject: [Flashcoders] Project 3:16
> 
> Project 3:16 - For Client so loved the work, that he told his 
> one and  
> only
> Designer, that whosoever listens to him shall not finish, but have  
> eternal
> changes.
> 
> ___
> I thought you would enjoy this! ;)
> 
> ___
> 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] Project 3:16

2006-04-28 Thread Steven Sacks
Project 3:16 - For Client so loved the work, that he told his one and  
only
Designer, that whosoever listens to him shall not finish, but have  
eternal

changes.

___
I thought you would enjoy this! ;)

___
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] Are you a help vampire?

2006-04-26 Thread Steven Sacks
> hi hello how do I make a multi-player game in flash its got to have 
> lasers thank you

Haha!  That deserves another laugh.  I can't stop laughing.

___
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] Are you a help vampire?

2006-04-26 Thread Steven Sacks
> Guess I should not post 
> my IM on Flash message boards any more :(

Oops!  Although, I have to say, I once got an off-list email from somebody
who asked me for help and it lead to having a regular client (I replaced
them, something I wasn't entirely comfortable with at first, but if somebody
isn't able to do the job, and the client needs somebody who can and they're
offering good money, well, you take what you can get).

___
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] Are you a help vampire?

2006-04-26 Thread Steven Sacks
> hi hello how do I make a multi-player game in flash its got to have 
> lasers thank you

LOL!  Well played. 

___
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] Are you a help vampire?

2006-04-26 Thread Steven Sacks
http://www.slash7.com/pages/vampires

I know there are some here...I've seen them, even if they don't see
themselves (mirrors not working and all that).

___
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] Project 3:16

2006-04-24 Thread Steven Sacks
Project 3:16 - For Client so loved the work, that he told his one and only
Designer, that whosoever listens to him shall not finish, but have eternal
changes.

___
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] this.selected

2006-04-22 Thread Steven Sacks
A major benefit to making buttons like this in Flash is you can target
nested movieclips, textfields, etc. inside a movieclips but you cannot with
buttons.

This opens up all kinds of custom actions for your buttons that are
impossible with Button instances.  :)

 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Simon Lord
> Sent: Saturday, April 22, 2006 2:16 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] this.selected
> 
> That's a very helpful tip Steven.  Thanks!
> 
> 
> On Apr 22, 2006, at 5:03 PM, Steven Sacks wrote:
> 
> > A little known trick in Flash:
> >
> > Make a movieclip.  Give it 3 frames and put frame labels on 
> each named
> >
> > _up, _over, and _down
> >
> > Put a stop(); action on frame 1.
> >
> > If you assign a button method to the movieclip, like onRelease,  
> > onRollOver,
> > etc. it will behave just like a button on its own, going to 
> the _up  
> > _over
> > and _down frames automagically without any coding required.
> >
> > You can make additional frames and put frame labels on them 
> to your  
> > heart's
> > desire.  As long as those three frames are there and there's a  
> > button method
> > assigned to the movieclip, it will behave like a button.  
> You can use
> > .enabled = false to make it stop, just like a button.
> >
> > So, to make a selected button (that isn't a toggle button), make a  
> > fourth
> > frame "sel" (or something like that) and onRelease set its enabled  
> > to false
> > and tell it to go to frame "sel".  To unstick it, just set its  
> > enabled to
> > true and it will start working again.
> >
> > HTH,
> > 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

___
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] this.selected

2006-04-22 Thread Steven Sacks
A little known trick in Flash:

Make a movieclip.  Give it 3 frames and put frame labels on each named

_up, _over, and _down

Put a stop(); action on frame 1.

If you assign a button method to the movieclip, like onRelease, onRollOver,
etc. it will behave just like a button on its own, going to the _up _over
and _down frames automagically without any coding required.

You can make additional frames and put frame labels on them to your heart's
desire.  As long as those three frames are there and there's a button method
assigned to the movieclip, it will behave like a button.  You can use
.enabled = false to make it stop, just like a button.

So, to make a selected button (that isn't a toggle button), make a fourth
frame "sel" (or something like that) and onRelease set its enabled to false
and tell it to go to frame "sel".  To unstick it, just set its enabled to
true and it will start working again.

HTH,
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] good OOP way to re-assign class to clip

2006-04-17 Thread Steven Sacks
The most obvious and simple solution to me:

Duplicate the movieclip in your library and assign the duplicate the second
class.

-Steven
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of GregoryN
> Sent: Monday, April 17, 2006 8:52 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] good OOP way to re-assign class to clip
> 
> Well, let's say I have two classes:
> 
> //  code ==
> class MyClass1 extends MovieClip{
>  function MyClass1(){}
>  //... some stuff
>  
>  function showMyInfo(){
>trace("I am "+this+",  class is MyClass1");
>  }
> }
> 
> class MyClass2 extends MovieClip{
>  function MyClass2(){}
>  //... some stuff
>  
>  function showMyInfo(){
>trace("I am "+this+",  class is MyClass2");
>  }
> }
> //  code ends ==
> 
> I have a mc symbol in the library associated with MyClass1.
> Thus, if I attach it using attachMovie(), and then call showMyInfo
> it'll output "... ,  class is MyClass1", right?
> 
> Now imagine that for some reason at some point I'll need the same clip
> to be associated with MyClass2, while keep all properties etc
> collected while being an instance of MyClass1. BTW, these two classes
> are quite similar, but have several differencies.
> 
> As I wrote before, so far just one way comes to my mind.
> It's about making an "instantiate()" method in MyClass2 to 
> re-write all
> props/methods of the target clip with ones of MyClip2 (similar to
> EventDispatcher).
> 
> 
> Another possible solution is to combine two classes into one, and make
> methods working depending on parameters.
> In fact, the problem here is that in 90% cases I'll need the clip to
> carry only methods of one class, and in 10% there will be a need to
> "swap" classes (or use parameter-depended methods).
> 
>   
> 
> -- 
> Best regards,
>  GregoryN
> 
> http://GOusable.com
> Flash components development.
> Usability services.
> 
> > -- "David Rorex" wrote:
> > In my opinion, there is no "good OOP way" of changing the 
> class of an
> > object (be it movieclip or otherwsie). You might want to see if you
> > can handle it in a different way, normally you should never 
> change the
> > class of an object.
> > 
> > Why exactly do you want to change the class?
> > 
> > 
> > 
> > --- Alain Rousseau  wrote:
> > I wasn??t sure, that??s why I proposed 2 ways, but I just 
> checked and neither
> > will let you redefine the class associated with a 
> movieclip. So I guess it??s
> > back to square one.
> > So far you have to create an new instance for the class you 
> want to load
> > using Object.registerclass and attachMovie. I can??t think 
> of any other way
> > right now.
> > 
> > I know it??s not what you had in mind, but maybe someone 
> else can think of
> > something or try something out.
> 
> ___
> 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] Retrieving Link Text in a Text Field

2006-04-13 Thread Steven Sacks
> Is there a way to identify the contents of a link element in an
> HTML-enabled text field? How can I pass the text of the link 
> to a function invoked by the link?

Wait, you mean you want to pass the text of the link (inside the a tag)
via the function you're calling in the link?  You'll have to code that
into the link.  If you don't want to do that, there are possible
solutions.

One is to pass the link number in the method and have Flash reference
the htmlText again.  What I mean is, if you have 3  tags in your
htmlText, you pass which one it is, like myMethod(2).

Honestly, though, that's probably not what you're looking for, nor is it
very flexible.  So, the short answer to your question is no.


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] Retrieving Link Text in a Text Field

2006-04-13 Thread Steven Sacks
> > Assuming Highlander TextField:
> 
> There can be only one!

Flash likes to capitalize stuff and add TARGET to the href so here's the
fixed (and tested) code.

txt.htmlText = "McCloud";
a = txt.htmlText.split("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] Retrieving Link Text in a Text Field

2006-04-13 Thread Steven Sacks
> Assuming Highlander TextField:

There can be only one!

txt.htmlText = "";
a = txt.htmlText.split("")[0];
trace(a);

:P


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] Retrieving Link Text in a Text Field

2006-04-13 Thread Steven Sacks
Could you get the .htmlText of the text field and using split to pull
the link out?

txt.htmlText = "";
var a = txt.htmlText;
var b = a.split("")[0];
trace(c);
// link

There are also regex methods for Flash is you hunt around for them.

HTH,
Steven


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] Active X and Microsoft IE ...

2006-04-13 Thread Steven Sacks
> Are you going to update Flash 8 so it publishes flash/html 
> that utilises the new javascript methods?

I wouldn't hold your breath on that one.  ;)


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] Making a cd for Pc and Mac(Zinc-Director-SWFStudio- .NET)

2006-04-13 Thread Steven Sacks
Well, mProjector is able to communicate to COM objects on PC and I'm
pretty sure there's a Mac equivalent.  But, it would probably take some
work to figure out how to make it work well.  Director w/V12 might be
your only choice unless you want to code your own DB, so to speak.

What you might be able to do is launch an invisible Director movie
(offscreen) with a swf running in it that you would communicate with
from your main Flash app using LocalConnection for your db purposes.

-Steven 


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Lieven Cardoen
> Sent: Thursday, April 13, 2006 8:01 AM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Making a cd for Pc and 
> Mac(Zinc-Director-SWFStudio- .NET)
> 
> I mean reading and writing to a database that runs (running 
> is maybe not the right word) on Mac and Pc. Like V12 in 
> Director or Access by Zinc(only Pc, not Mac).
> 
> lieven cardoen
> 
> indiegroup
> interactive digital experience
> engelse wandeling 2 k18
> b8500 kortrijk
> T +32 (0)56/361 197
> // communicatie bij voorkeur op [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Steven Sacks
> Sent: donderdag 13 april 2006 10:52
> To: 'Flashcoders mailing list'
> Subject: RE: [Flashcoders] Making a cd for Pc and Mac
> (Zinc-Director-SWFStudio- .NET)
> 
> What do you mean by "support a cross platform database"?
>  
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On 
> Behalf Of Lieven 
> > Cardoen
> > Sent: Wednesday, April 12, 2006 11:54 PM
> > To: Flashcoders mailing list
> > Subject: RE: [Flashcoders] Making a cd for Pc and Mac 
> > (Zinc-Director-SWFStudio - .NET)
> > 
> > I've looked into mProjector and it doesn't seem to support a 
> > crossplatform database... of am I wrong?
> > 
> > lieven cardoen
> 
> ___
> 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
> 


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] Making a cd for Pc and Mac (Zinc-Director-SWFStudio - .NET)

2006-04-13 Thread Steven Sacks
What do you mean by "support a cross platform database"?
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Lieven Cardoen
> Sent: Wednesday, April 12, 2006 11:54 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Making a cd for Pc and Mac 
> (Zinc-Director-SWFStudio - .NET)
> 
> I've looked into mProjector and it doesn't seem to support a
> crossplatform database... of am I wrong?
> 
> lieven cardoen

___
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] Manually triggering the Screens "onResize" event

2006-04-12 Thread Steven Sacks
You do realize that toggling _visible does not release any memory,
right?  Flash still tracks the movieclip in memory, it just doesn't draw
it.  If you're building RIAs, you should open up your task manager and
watch your memory usage over time to make sure you're not using too
much.  I have no problem with frame-based RIAs, but then again, I tend
to use all the tools Flash makes available to me, not just Actionscript.

-Steven

 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Mike Anderson
> Sent: Wednesday, April 12, 2006 12:09 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Manually triggering the Screens 
> "onResize" event
> 
> I am really sorry Ryan - 
> 
> I put some more thought into what you had to say, and I got 
> it to work.
> Tunnel vision is dangerous sometimes, and when you code a 
> certain way for so long, it's hard to break out of your 
> normal coding methods.
> 
> So with that said, I simply inserted 5 blank frames - but 
> made sure that all the layers containing components, extended 
> out to the 5th frame.
> That way, they never get erased when moving to the next 
> Frame.  As you can probably guess, I am not a typical Flash 
> programmer who does animation, etc.  I write ONLY applications.
> 
> I still have my main Include file on Frame 1 (which contains 
> all my code for the entire app), but I created a Key Frame on 
> Frame 5 - which calls the "onResize" event for the Stage 
> Listener.  Now I understand what you were trying to say - 
> give the movie more time to initialize, and THEN call the 
> "onResize" method.
> 
> Now the movie comes up with all the controls positioned properly.
> 
> THANK YOU - and I will make sure that I listen with "more open ears"
> next time I get some good advice ;-)
> 
> Thanks and take care,
> 
> Mike 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Mike Anderson
> Sent: Wednesday, April 12, 2006 1:46 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Manually triggering the Screens "onResize"
> event
> 
> The only problem is, it's a "Single Frame" application.
> 
> I avoid multi-frame apps like the plague - because I have so 
> many coding issues, and can't have controls residing on 
> multiple frames (they must exist at all times, because they 
> intercommunicate with each other, throughout the lifetime of 
> the application).
> 
> This app is considered to be an "RIA", and resides ALL on a 
> single frame.  All my MovieClips have Class Files attached to 
> them, and I truly run this Movie like an Application.  
> Multiple Windows, toggling visibility, remoting calls, etc. 
> all tied together by listening to Events.
> 
> It's a wonderfully reliable application - which I plan on 
> migrating to Flex as soon as I can.  But in the meantime, 
> Flash is my only solution.
> 
> With that said, is there anything else I can do - to force 
> the "onResize" event to kick off, just milliseconds after the 
> application gets fully initialized?  I have a feeling this 
> may fix the problem.
> 
> Maybe some kind of Timer that only runs once?  Once things 
> are positioned properly upon the initial load, it's all well 
> and good - the StageListener coupled with the manual browser 
> resizes, takes care of everything after that.
> 
> Thanks for anything else you can throw my way :)
> 
> Mike
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Ryan Matsikas
> Sent: Wednesday, April 12, 2006 12:41 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Manually triggering the Screens "onResize"
> event
> 
> I'm guessing yer having these issues in IE? Try waiting an 
> extra frame or 2..
> 
> On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > Thanks for the suggestion, but I tried in that in the meantime.
> >
> > 2 very undesired things happen:
> >
> > 1) The movie components are still in the exact same spots.
> >
> > 2) The bottom StatusBar actually is 1-inch shorter -
> >this not even reaching to the other side of the
> >stage
> >
> > It's almost as if (especially in case #2) that the 
> StatusBar is basing
> 
> > it's _width property on mis-information.  If I didn't know better, 
> > it's as if there are timing problems going on.
> >
> > I thought that the "onLoad" event fixes problems like that 
> - since it 
> > waits until all components are instantiated and initialized, before 
> > Dispatching the "I am all finished" signal.
> >
> > What I have is this (in root):
> >
> > =
> >
> > var stageSizeListener:Object = new Object();
> >
> > stageSizeListener.onResize = function():Void {
> > var stageHeight:Number = Stage.height;
> > var stageWidth:Number = Stage.width;
> >
> > // Main Menu
> > mainMenu._width = stageWidth;
> >

RE: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Steven Sacks
> To force a class to be imported even if no one uses it:
> 
> import com.company.project.YourClass;
> 
> static private var depend:YourClass;

warden to the rescue!


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] Help with swapdepths

2006-04-12 Thread Steven Sacks
Also, don't use "on-clip" methods like 

on (press) or on(release)

That's for non-coders who are making banner ads.  Instead, put your code
in the timeline:

btn.onPress = function() {
//
};
btn.onRelease = function() {
//
};

You'll thank me for it down the line.  It's never a good idea to put
code directly on buttons or movieclips.  Always put your code on the
timeline where it's easy to find without having to click on all the
individual buttons/clips in your movie.  There is no exception to this
rule, ever.

Also, the reason your code isn't working is because when you say
this.getNextHighestDepth(), you're referring to the depth INSIDE the
movieclip itself ("this" in an onPress method refers to the
movieclip/button - another reason to put your code on the timeline to
make things clearer).  You need to refer to the movieclip's parent.
this._parent.getNextHighestDepth();

HTH,
Steven 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Gaia-Tek
> Sent: Wednesday, April 12, 2006 3:02 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Help with swapdepths
> 
> Hi Group,
> 
> I'm having a problem with a seemingly simple task...
> 
> I'm trying to get whichever movieclip on my stage is clicked 
> on, to swapDepths to the top, and be draggable...
> 
> My code is:
> 
> on (press) {
> this.swapDepths(this.getNextHighestDepth());
> startDrag(this);
> }
> on (release) {
> stopDrag();
> }
> 
> Not working...
> 
> Any help would be appreciated...
> 
> Thanks
> 
> Don
> 
> 
> ___
> 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
> 


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] Making a cd for Pc and Mac (Zinc - Director-SWFStudio - .NET)

2006-04-12 Thread Steven Sacks
I highly recommend mProjector.  It's the best 3rd party wrapper out
there, IMO, and I've tried them all.  It's the easiest and smartest to
code with, it has the best performance hands down, does asynchronous
communication with the OS, allows you to package all your swfs into the
executable is now cross-platform!  

http://www.binarynoise.com/

HTH,
Steven


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] Local Connection Object problem

2006-04-11 Thread Steven Sacks
LocalConnection is basically instant.  I've never seen a delay and I've
done quite a bit of work with it, in browser environments, 3rd party
wrapper environments, browser to 3rd party wrapper, and back, etc.  

The only issue I know of is if you try to send a local connection
message back to the sender too quickly.  Meaning, Transmitter sends
message to Receiver.  Receiver has to wait a bit (100ms or so, roughly)
before sending a message back to Transmitter.


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] In the ide -detecting when the user has left the stage

2006-04-11 Thread Steven Sacks
Make a big invisible square that goes beyond the four edges, and mask
out the stage area and make a button.  Then you have your testing
button.

-Steven


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Manuel Saint-Victor
> Sent: Tuesday, April 11, 2006 2:27 PM
> To: Flashcoders mailing list
> Subject: [Flashcoders] In the ide -detecting when the user 
> has left the stage
> 
> Is there a way in the testing environment to know if someone 
> has moused off the stage? ( Out of the range of the movie)
> 
> Mani
> ___
> 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
> 


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] combobox big problem

2006-04-10 Thread Steven Sacks
> when i delete them (i try to delete the mc container and the
> components) and re-create them (to delete some items and 
> re-create the list), or just change the dataprovider a 
> strange thing happens:

Why don't you just delete items from the dataprovider?  The components
are made to respond instantly to changes in the data.  Meaning, you
don't need to re-create them to show changes, they fire events
automatically when you change the data.  That's the whole point of
having a dataprovider.


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] combobox big problem

2006-04-10 Thread Steven Sacks
Try setting the font to _sans and see if that helps. 

cmb.setStyle("fontFamily", "_sans");


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Aaron Smith
> Sent: Monday, April 10, 2006 2:54 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] combobox big problem
> 
> Do you have it under a mask? if so I think you need to embed 
> the fonts.
> 
> 
> 
> On Apr 10, 2006, at 2:32 PM, Alfonso Florio wrote:
> 
> > this is really strange:
> >
> > i create a serie of mcs with into them two combobox, populate and 
> > select index, all ok.
> >
> > when i delete them (i try to delete the mc container and the
> > components) and re-create them (to delete some items and 
> re-create the 
> > list), or just change the dataprovider a strange thing happens:
> >
> > the combo don't show the selection: if i click i see the right 
> > selection in the list, but when i select another item the "closed"
> > combo results with no text!!!
> >
> > it's a visualization problem, the combo gives the right index, but 
> > when it's closed don't show the text of the selected item
> >
> > i'm getting crazy, please help
> >
> > Alfonso
> >
> > ___
> > 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
> 


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] Active X and Microsoft IE ...

2006-04-09 Thread Steven Sacks
You also have to consider what users are turning off Javascript.

First, Javascript is turned on by default.  Second, you have to be somewhat
savvy to know what Javascript is, much less turn it off, and also know what
purpose turning it off serves.  Third, you need to have a reason to turn it
off.  These things combined means that people who turn off Javascript are
more than likely well aware of the consequences of this action, it's not
just Flash that's effected.  It's pretty much any plug-in and any DHTML
site.  Almost every site on the web uses Javascript now in some form or
another.  I wonder just how many people turn off Javascript and are they
really worth going after?  They obviously want a very limited and controlled
web experience.  

It's like trying to advertise on cable television channels to people who
only have antenna reception.  You're just not going to reach that very small
audience, so get over it.

___
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] preloading multiple swfs with moviecliploader

2006-04-07 Thread Steven Sacks
Here's a good solution that is used by many installer applications out
there.

Take the number of items you are loading and divide your progress bar
into that many sections.  Then, show the progress of each of those
sections. 

Let's say you were loading 10 files.  That means you're breaking up your
progress in 10 10% sections.  The first 10% you are basically showing
1-100% of the first 10%, then the next 1-100% of the next 10%, etc.  So,
if you're 50% through the second download, you're at 15%.

So, your overall percentage is 100 / # of files to load.  Then you do a
0-100% progress within that total area.

HTH,
Steven




> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Michele Moore
> Sent: Friday, April 07, 2006 1:37 PM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] preloading multiple swfs with moviecliploader
> 
>   I know that this is a post from back in February, but I'm 
> having the same issue. I'll try the ideas put forth here so 
> far, but I wanted to respond to Andreas's post to see if 
> maybe anyone can elaborate.
>
>   The issue for me is tracking the items when using one 
> object for loading. If I'm loading 10 jpgs, for example, and 
> doing it via:
>   mclLoader.loadClip(aPhoto[iN], mcLoader[iN]), when I use 
> mclLoader.onLoadProgress(target, bytesLoaded, bytesTotal)
>   It will track individually each of the items loading not 
> all of them together. What is returned is data for each 
> target individually, with no way to reference an one item's 
> data. The getProgress() method works similarly in that you 
> call it on one of the targets, but not on all of them combined.
>
>   Does this make sense?
> 
> 
> 
> michele moore
> pilot design
> 
>   
> 
> ___
> 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
> 


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] Will this Microsoft ActiveX update affect Flash?

2006-04-07 Thread Steven Sacks
http://msdn.microsoft.com/ieupdate/

After a forthcoming update, Microsoft Internet Explorer users will not
be able to directly interact with Microsoft ActiveX controls loaded by
the APPLET, EMBED, or OBJECT elements. Users will be able to interact
with such controls after activating their user interfaces. A new MSDN
topic describes how Internet Explorer will handle ActiveX controls,
shows how to load ActiveX controls so their interfaces are activated,
and describes the impact of this behavior on accessibility tools and
applications hosting the WebBrowser Control.

Will this negatively affect Flash?


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
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] Question on attachMovie

2006-04-02 Thread Steven Sacks
For me, it's just an extension of a lesson I learned from a book on OOP in
Director by Peter Small called "Lingo Sorcery" many many years ago, which is
to let objects manage themselves.

Since Flash requires a single frame to pass for functions to be available on
any given timeline, a nested movieclip is the perfect candidate to apply
this methodology.

Glad it worked out for you!  :)

-Steven





> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Dave Mennenoh
> Sent: Sunday, April 02, 2006 5:33 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Question on attachMovie
> 
> Thanks for the suggestions everyone.
> 
> >>Use the most basic of OOP principles and let the movieclip 
> call its own 
> >>init rather than making an interval for every single clip.
> 
> Well, I had just one interval that, when finished, called 
> 'init' on all my 
> thumbnail clips... But either way, I like how you do this and 
> just have the 
> clip init itself. It even works! Nice.
> 
> 
> Dave -
> Adobe Community Expert
> www.blurredistinction.com
> www.macromedia.com/support/forums/team_macromedia/ 
> 
> ___
> 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] Publish my swf direct to server

2006-04-02 Thread Steven Sacks
Dreamweaver FTP?  Who uses that janky ftp program?  ;)

If you're on a Mac, you should learn how to upload via terminal.

If you're on a PC, get the free version of WS_FTP (google it).

-Steven
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Johnny Zen
> Sent: Sunday, April 02, 2006 5:19 PM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Publish my swf direct to server
> 
> Hi all
> 
> Is there any methods to publish and upload  my flash files directly to
> my webserver. Tried network places but doesnt work. I now know.
> 
> At the moment I'm exporting movie, then using dreamweaver ftp to
> upload files to server, seems a long winded way of doing a simple
> task, and slightly annoying considering i'm a type of guy that makes
> changes and want to see the results from my website rather then
> locally.
> 
> Any suggestions or tips on this??
> 
> 
> Any help would be cool.
> 
> 
> 
> Kind regards
> 
> 
> Johnny
> ___
> 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] Question on attachMovie

2006-04-02 Thread Steven Sacks
> var mc = holder.attachMovieClip("SYM_Clip", "item", 10);
> mc.controller = this;
> mc.foo = "something";
> mc.bar = 15;
> 
> Inside the SYM_Clip movieclip in the library:
> 
> function init() {
> FooTextField.text = foo;
> BarTextField.text = bar;
> }
> init();

This isn't the best example since you could set the text field's text
properties from the creator clip, but you get the idea.  This is the most
basic OOP principle of letting objects manage themselves.

___
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] Question on attachMovie

2006-04-02 Thread Steven Sacks
This behavior is very easy to manage.  Here's how I do it.

You can set properties of a clip even though you cannot call methods of a
clip.  This is how Flash works.

So, what I do is this.  I have the movieclip itself call its own method.  I
have the attacher set its initial properties when it attaches the clip so
that those properties are available to the clip.  There is no need to use an
interval.  It's very simple.

For example:

Inside the attacher clip:

var mc = holder.attachMovieClip("SYM_Clip", "item", 10);
mc.controller = this;
mc.foo = "something";
mc.bar = 15;

Inside the SYM_Clip movieclip in the library:

function init() {
FooTextField.text = foo;
BarTextField.text = bar;
}
init();

Use the most basic of OOP principles and let the movieclip call its own init
rather than making an interval for every single clip.  The Flash timeline
will do the delay for you.  Don't make extra work for yourself if you don't
have to.  =)

-Steven


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Dave Mennenoh
> Sent: Sunday, April 02, 2006 7:01 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Question on attachMovie
>
> I am attaching some thumb clips from the library into a
> holder clip on
> stage, using attachMovie. Because of the timing thing with the clips'
> methods not becoming available immediately, I wait 250ms
> before calling a
> method of each clip. This works great - I just have one
> issue. I am able to
> set the text property of a field within the attached clip
> immediately after
> attaching it. So, why is the text property of a field
> available immediately,
> but a method not? I'd expect to have to wait to set any
> properties or call
> any methods but that isn't the case.
>
> Thanks
>
>
>
> Dave -
> Adobe Community Expert
> www.blurredistinction.com
> www.macromedia.com/support/forums/team_macromedia/
>
> ___
> 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] PrintJob causes Abort Script error message.

2006-03-30 Thread Steven Sacks
> As the 
> system is composed of many V2-style components, many of which 
> use interval timers to get around initialization issues, and 
> has a lot of real-time financial data transfer going on in 
> the background, setintervals, etc etc, that to reengineer it 
> at this stage is totally out of the question.

Well, it always sucks to inherit somebody else's bad work.  I've done it
many times, and almost always it would have been better to rewrite it myself
(and sometimes I did).

PrintJob has a ton of problems.  It's a terribly written and poorly
documented class.

-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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
> Please warn us when you are going to do this, since from the 
> tone of the 
> conversation, there is some sense that this will cause the end of 
> civilization as we know it.

Hacking the swf to increase the timeout is not the solution, it's a band-aid
on a gunshot wound.

> I have over 20 years of programming experience including at 
> assembler level, advanced Java, etc, but thanks for trying to 
> put me in my place :-)

Let's say for argument's sake that it is a bug and it is all Macromedia's
fault and they won't fix it and life is unfair.  That doesn't change the
fact that your application needs to work to your client's expectations.  You
need to find a solution because that's what you're paid to do.

As Danny Kodicek knows coming from a Director background, there were tons of
bugs in Director and workarounds had to be figured out to make certain
things work.  John Dowdell, in his infinite wisdom, got on Direct-L and
posted that Director had no bugs, that there was just application behavior
that Director developers wished worked differently.

At the end of the day, I don't tell my client "Sorry, it's a bug and I can't
work around it".  I figure out how to get it done, and so should you and
everyone else who does this for a living.  The place I'm trying to put you
in is "Flash Developer".  ;)

___
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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
> Actually, I don't really get your point here. Because Flash is 
> single-threaded, it doesn't really mean anything to talk 
> about 'scripts in 
> the middle of anything'. There's precisely one script at any 
> one time that's 
> in the middle of anything. The size of the call stack should 
> be neither here 
> nor there when Flash is deciding if it's hanging.

If I wanted to, I could write a simple movie that causes a timeout popup to
appear 15 seconds after I start a PrintJob.  It doesn't need to be a
complicated stock trading application to cause the behavior Grime is
experiencing, and therefore it's a solvable problem.

Bottom line here is this:

"Is this a known Flash bug?"
It's a known Flash limitation.

"Is there a workaround?"
Yes.  But apparently, he's not interested in doing it.

I call it as I see it and it's lazy and irresponsible to claim you're not
going to fix something because you think your host app should work
differently than it does.  If you don't like working within the confines of
Flash being single-threaded and PrintJob being a synchronous call to the
system, then learn C++ and free yourself.  Otherwise, step up and do the job
you're paid to do - Flash development.  I mean, c'mon.  It's ok to whine
about stuff like this, but at the end of the day you need to make it work
because that's what your client is paying you to do.

___
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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
I have explained in detail the source of your problem.  If you choose not to
take the advice given to you by coders who know more than you about the
subject at hand, then why post a question to the list?  You are doing
yourself and your client a disservice with your blame Macromedia attitude
and finger pointing.

It's not the end of the world.  Your code simply does not take into account
a synchronous call.  That is not PrintJob's fault.  That is not the Flash
player's fault.  You should fix your code now that you understand why it's
breaking.  The fact is, there's a real solution to your problem.

Whether you realize it or not, you have already admitted that it is your
code that is to blame.  You have stated twice now that the application is a
real-time trading system.  In all likelihood, this means you have intervals
running and all kinds of parsing and drawing going on most of the time.  The
exact kind of processes that would go haywire should Flash have to make a
synchronous call with an indeterminate response time.

PrintJob makes a synchronous call and Flash is single threaded.  All your
real-time stuff is reacting to the synchronous call.  When a user presses
the print button, you need to put a halt on new processes, wait for currrent
processes to complete and then start the PrintJob.  If it's going to take
more than 250ms, throw up a window that says something like "Preparing to
print".  Upon completion of the PrintJob, you need to resync with the server
immediately, and should probably put up a window that says something like
"Sending data to printer" until the application is all caught up.

Your SLI injection to increase the timeout as a solution is irreponsible.
It is a heavy-handed technique fraught with potential problems far worse
than your printing one and it doesn't actually solve the problem, it just
masks it, and poorly.  I wouldn't go live with that.

"Do the right thing." - Spike Lee





> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of [EMAIL PROTECTED]
> Sent: Wednesday, March 29, 2006 4:40 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] PrintJob causes Abort Script error message.
> 
> 
> >> Danny Kodicek...I think I remember you from my Director 
> days, so long ago.That's me. And I remember that you were a 
> bit belligerent then too ;)Danny 
> 
> 
> Ahh yes, the old Direct-L days... sigh.
> 
> Update: that hack gets it up to about 1 min 20 before the 
> alert appears instead of around 20 secs. Not ideal, but what the heck.
> 
> I can't "fix" code which ain't broken. 50,000 lines of real 
> time trading system works perfectly. One call to PrintJob and 
> it all goes horribly wrong. Its a Flash Player / PrintJob 
> issue.If Macrobe want Flash to be taken seriously as an RIA 
> platform issues such as this need to be fixed before 
> Microsoft gets us all writing C#.
> 
> ___
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
> 
> 
> ___
> 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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
> > Danny Kodicek...I think I remember you from my Director 
> days, so long ago.
> 
> That's me. And I remember that you were a bit belligerent then too ;)

You finally gave up on Director, huh?  IIRC, which I may not, you were among
the many ostriches in the Director community back when Flash was in its
infancy (pre F5).  ;)

If you think I'm belligerent, I have one word for you.  Howdyman.  Nuff
said.

___
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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
> your discovery that this doesn't occur in a 
> barebones movie 

Actually, it's not a barebones movie.  It's a live web app I wrote awhile
back.  I didn't remember if I ever took more than 15 seconds to finalize a
PrintJob when I tested it so I got worried and went to look and sure enough
no error.

All the discussion about whether it's a bug or not is sort of moot at this
point.  PrintJob handles the dialog just fine.  Technically, it's still not
a bug with PrintJob or Flash and here's why.

The PrintJob class has no idea if other scripts are in the middle of
something when it makes its synchronous call to the system, nor should it.
PrintJob can't make sure that there are no other scripts in the middle of
anything when it tells the browser to open a print dialog.  It does what
it's told to do.  It's up to the coder to make sure there isn't code that
would be adversely affected by Flash making a synchronous call.  It's not
PrintJob's fault, nor is it Flash's fault.  The Flash player is single
threaded.  Period.  You can't say that it's buggy because it's single
threaded.  That is its nature.  You have to work within the confines of your
environment.  If you want Flash to be multi-threaded, get in line, but don't
expect it to happen anytime soon (on a side note, I have some friends who
tried to write a wrapper to make Flash run multi-threaded as an experiment
(because you technically had to hack the player which is against MM's EULA)
and it caused all kinds of craziness).

The issue here is that Grime didn't understand how PrintJob worked
(synchronous call) and how a synchronous call affects code running in Flash.
Now that he does, he can write code to stop his code from executing prior to
starting a PrintJob.

___
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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
> PrintJob works fine in simplistic Flash movies.
> That ain't an error with my code!

One of the primary rules of debugging:

If you've got some code that isn't working correctly, make a simple test in
a new movie.  If it works in the simple test, the issue is somewhere else
and you need to keep debugging.

___
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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
Danny,

Well, I was theorizing but as it turns out, PrintJob does not cause the
Flash player to hang.  It apparently does handle it just fine.  The issue is
definitely with some other code that Grime has running and the fact that
PrintJob causes a sychronous call to be made.

Therefore, the bug is in Grime's code, not PrintJob.

-Steven
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Danny Kodicek
> Sent: Wednesday, March 29, 2006 4:10 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] PrintJob causes Abort Script error message.
> 
> 
> > And for the record, I am certainly no friend of the 
> PrintJob class.  It's
> > poorly written and I've pointed out its numerous flaws in 
> previous posts 
> > to
> > this list.
> >
> > Yes, it shouldn't have been coded to work the way it does.  
> The way it 
> > works
> > is poorly thought out.  But, that doesn't mean that it's a 
> bug because it
> > technically is working exactly as it should.
> 
> I think we're in a semantic discussion about what is and 
> isn't a bug here. I 
> agree with Steve W: I can't see that the Flash engineers would have 
> specifically designed it with this behaviour in mind, and the 
> behaviour is 
> not what the function ought to do from a user's perspective, 
> therefore it's 
> a bug. (Otherwise you could argue that *every* program is 
> doing exactly what 
> it was programmed to do, therefore nothing is a bug).
> 
> I would argue that Flash's 'is it hanging' test should be 
> given a hook that 
> the printJob (or other) classes could talk to, which 
> essentially stops it 
> checking until the function is returned. Anyway, I was under 
> the impression 
> that it counted number of lines of code executed, not time taken. In 
> particular, your discovery that this doesn't occur in a 
> barebones movie 
> would seem to imply that it *is* a bug, because somehow the 
> synchronicity 
> isn't being maintained.
> 
> >
> > Danny Kodicek...I think I remember you from my Director 
> days, so long ago.
> 
> That's me. And I remember that you were a bit belligerent then too ;)
> 
> 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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
> PrintJob works fine in simplistic Flash movies.
> 
> Try and do anything advanced (such as a stock exchange 
> trading system) and it will cause the alert to appear. 
> 
> That ain't an error with my code!

Ah ha!  So now we get to the bottom of it.

PrintJob does not cause Flash to alert about a slow running script.  We've
established that.  You can't say it's PrintJob's fault anymore just because
your app is more complicated.  If it works in a simple test, it works
period.  The issue lies somewhere else.

Without looking at your code, my best guess is that you are running
processes at the same time as a PrintJob starts.  What's happening is that
you have some script expecting a method to finish running, but the PrintJob
starts and, because it's a synchronous call, Flash sits and waits.
Unfortunately, you've got some other code trying to run or code that was in
the middle of something and because it got locked up while Flash waits on
the PrintJob to complete, it thinks Flash is locked up and Flash throws the
error.

So, yes, it is a problem with your code.  You need to halt all processes
before your PrintJob starts.  Do not use the SLI injector to increase the
timeout.  That's like injecting painkillers in a broken ankle so you can
keep running.  Fix your code.

-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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
And for the record, I am certainly no friend of the PrintJob class.  It's
poorly written and I've pointed out its numerous flaws in previous posts to
this list.

Yes, it shouldn't have been coded to work the way it does.  The way it works
is poorly thought out.  But, that doesn't mean that it's a bug because it
technically is working exactly as it should.

Danny Kodicek...I think I remember you from my Director days, so long ago. 

___
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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
> Er - and I'd say that's a bug (in Flash, not in the OP's 
> code). The code 
> that checks if a movie is hanging should be looking at number 
> of lines of 
> code executed. While a modal dialogue is up, it shouldn't be 
> being called at 
> all.

Unfortunately, that's not how it works.  Flash doesn't know why it's hung
and can't know why it's hung on a synchronous call to the system.  Flash
doesn't know that a modal dialog was opened.  All Flash knows is it is
waiting for the method it called to return a value.  As far as Flash is
concerned, the reason it isn't getting a response is that the code that is
processing the return value is running too slowly.  Again, this is due to
the nature of synchronous vs asychronous calls.  A bit of research on the
web should yield some useful information on this topic.

Again, it is not a bug because it works exactly how it is coded to work.

___
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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
The modal dialog does not belong to Flash, it belongs to Windows, and
specifically it belongs to the browser window that contains the Flash movie.

This being said, I have a Flash app that uses PrintJob and I just tested
keeping my PrintJob dialog open for a full 3 minutes and I did not get an
alert that Flash was hung.

So, it looks like you have some other issue with your movie and PrintJob
isn't to blame.

-Steven



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Danny Kodicek
> Sent: Wednesday, March 29, 2006 3:26 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] PrintJob causes Abort Script error message.
> 
> 
> >> I would suggest that it is: there's no error in the code, and
> >> it's not that
> >> the Flash movie itself is running slowly, it's purely a
> >> result of user
> >> interaction. While the print dialogue is displayed, the Flash
> >> movie should
> >> simply not be running.
> >
> > PrintJob makes a synchronous call to the OS.  Flash ceases 
> to execute code
> > until it receives a response.  Unfortunately, this means 
> Flash is hung on 
> > a
> > line of code which means Flash is going to throw up an 
> error after 15
> > seconds because it believes, and rightfully so, that it has 
> code that is
> > unresponsive.
> >
> > It is not a bug.  It's the way PrintJob is written - synchronously.
> 
> Er - and I'd say that's a bug (in Flash, not in the OP's 
> code). The code 
> that checks if a movie is hanging should be looking at number 
> of lines of 
> code executed. While a modal dialogue is up, it shouldn't be 
> being called at 
> all.
> 
> 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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
> I would suggest that it is: there's no error in the code, and 
> it's not that 
> the Flash movie itself is running slowly, it's purely a 
> result of user 
> interaction. While the print dialogue is displayed, the Flash 
> movie should 
> simply not be running.

PrintJob makes a synchronous call to the OS.  Flash ceases to execute code
until it receives a response.  Unfortunately, this means Flash is hung on a
line of code which means Flash is going to throw up an error after 15
seconds because it believes, and rightfully so, that it has code that is
unresponsive.

It is not a bug.  It's the way PrintJob is written - synchronously.

___
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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
Well, there IS a workaround but you have to hack your swf using flasm and
set the timeout to some larger number.  This really is not recommended and
most people use this to actually decrease the timeout delay, not increase it
(because they're simultaneously increasing the recursion depth).

http://codeazur.com/forum/viewtopic.php?t=260

http://www.actionscript.org/forums/showthread.php3?t=65371

http://www.powersdk.com/ted/2005/11/macromedia-please-add.php



 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Steven Sacks
> Sent: Wednesday, March 29, 2006 2:58 AM
> To: 'Flashcoders mailing list'
> Subject: RE: [Flashcoders] PrintJob causes Abort Script error message.
> 
> PrintJob is a poorly written class in general.  Also, it runs 
> synchronously
> when it talks to the system.  The reason Flash throws up the alert is
> because for 15 seconds it is stuck waiting.  The movie is 
> waiting on a line
> of code to finish.  Flash responds to the movie being hung, which it
> technically is because the request to the OS is synchronous.
> 
> There isn't a workaround except to not use PrintJob.
> 
> 
> 
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On Behalf 
> > Of [EMAIL PROTECTED]
> > Sent: Wednesday, March 29, 2006 2:38 AM
> > To: flashcoders@chattyfig.figleaf.com
> > Subject: [Flashcoders] PrintJob causes Abort Script error message.
> > 
> > 
> > Apologies for reposting, hopefully someone has come across 
> > this before.
> > 
> > We have a large and complex Flash RIA that represents almost 
> > 2 years of development effort. Unfortunately we have one 
> > major unresolved issue. In a couple of places we have print 
> > functionality. When the print job system dialogue appears, if 
> > the user doesn't close the dialogue within 15 seconds, the 
> > Abort Script message appears ("A script in this movie is 
> > causing Macromedia Flash 8 to run slowly. If it continues to 
> > run, your computer may become unresponsive. Do you want to 
> > abort the script?").
> > 
> > Is this a known Flash bug?
> > Is there a workaround? 
> > We've been trying to solve it for about a month.
> > 
> > ta.
> > 
> > ___
> > Join Excite! - http://www.excite.com
> > The most personalized portal on the Web!
> > 
> > 
> > ___
> > 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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
PrintJob is a poorly written class in general.  Also, it runs synchronously
when it talks to the system.  The reason Flash throws up the alert is
because for 15 seconds it is stuck waiting.  The movie is waiting on a line
of code to finish.  Flash responds to the movie being hung, which it
technically is because the request to the OS is synchronous.

There isn't a workaround except to not use PrintJob.





> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of [EMAIL PROTECTED]
> Sent: Wednesday, March 29, 2006 2:38 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] PrintJob causes Abort Script error message.
> 
> 
> Apologies for reposting, hopefully someone has come across 
> this before.
> 
> We have a large and complex Flash RIA that represents almost 
> 2 years of development effort. Unfortunately we have one 
> major unresolved issue. In a couple of places we have print 
> functionality. When the print job system dialogue appears, if 
> the user doesn't close the dialogue within 15 seconds, the 
> Abort Script message appears ("A script in this movie is 
> causing Macromedia Flash 8 to run slowly. If it continues to 
> run, your computer may become unresponsive. Do you want to 
> abort the script?").
> 
> Is this a known Flash bug?
> Is there a workaround? 
> We've been trying to solve it for about a month.
> 
> ta.
> 
> ___
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
> 
> 
> ___
> 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] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
> Is this a known Flash bug?

It's not a bug.


> Is there a workaround? 

You cannot change the timeout.


> We've been trying to solve it for about a month.

A 5 second google search would have saved you 30 days of wasted time.

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_15512

___
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] Wherefore the evils of _global?

2006-03-23 Thread Steven Sacks
Which is why you make a global namespace.

_global.APP = {};

And then you set your global vars to that

APP.myglobalvar = foo;
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Rich Rodecker
> Sent: Thursday, March 23, 2006 2:25 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Wherefore the evils of _global?
> 
> yeah its yuck, though i use it myself here and there for the 
> cheap hack that
> it can be.  i think generally most programming languages (or 
> the prgrammers
> using those languages) look down upon global vars. i think 
> the idea is that
> it pretty much destroys encapsulation and object-oriented principles.
> 
> 
> 
> 
> 
> On 3/23/06, David Stiller <[EMAIL PROTECTED]> wrote:
> >
> > In the last few days, I've seen a handful of people refer
> > apologetically to use of the _global object.  To 
> paraphrase:  "I'm in a
> > situation where I have to use _global variables," or, "We 
> all know _global
> > is a no-no, but I'm tempted to use it in this one weird 
> case," etc.  In
> > general, this gives me the impression that it's fashionable 
> here to think
> > of
> > _global as Evil -- or in the very least, yucky.
> >
> > I understand why _root can be troublesome, especially in
> > conjunction
> > with dynamically loaded SWFs, but I do use it in a pinch.  
> I mean, heck,
> > sometimes a movie is just a movie, not a portable app.
> >
> > What I don't understand -- and I hasten to say I 
> have no opinion
> > on
> > the matter, yet -- is why _global is so shunned.  After 
> all, _global is
> > exactly where AS2 classes are located.  Is this a religious 
> issue?  Is it
> > because of how _global gets shared (or not?) among 
> dynamically loaded
> > SWFs?
> >
> >
> > David
> > [EMAIL PROTECTED]
> >
> > ___
> > 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] movieclip actions not working

2006-03-18 Thread Steven Sacks
> stop action on frame 1

stop();
m1.onRollOver = function() {
gotoAndStop(20);
//or play();
}


> stop action on frame 20

stop();
m2.onRelease = function() {
getURL("http://www.website.com";, "_blank");
}

___
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] Trying to solve this math equation

2006-03-18 Thread Steven Sacks
Hey,

Thanks all for verifying that it was indeed correct.  The problem ended up
being my not plugging in the true values.  It didn't actually work 100%
correctly the first way (which I didn't notice at first so I thought the
alternate equation was to blame).  I solved that issue and now the equation
works correctly both ways.

Thanks again!





___
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] Trying to solve this math equation

2006-03-18 Thread Steven Sacks
Hey everyone,

My algebra seems to be failing me.  I need some help here.

Here's my equation:
c = ((y - s) / (w - b - s)) * i;

I need to solve for y when I have c.  I wrote it out on paper and I came up
with:
y = ((c / i) * (w - b - s)) + s;

But that doesn't work...

My logic:

c = ((y - s) / (w - b - s)) * i;

c / i = ((y - s) / (w - b - s));

(c / i) * (w - b - s) = y - s;

((c / i) * (w - b - s)) + s = y;

Am I missing 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] What's your job title?

2006-03-11 Thread Steven Sacks
> New Media Designer

Either you missed the memo or you're being funny.  Let's hope it's the
latter.

___
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's your job title?

2006-03-10 Thread Steven Sacks
Racial is not the same as racist.

Let me break it down for you.

FACT: Minority Day Laborers can be found outside of Home Depots.
JOKE: Home Depot is a national chain like CompUSA is a national chain.
FACT: Programming Jobs are being outsourced to India.
FACT: Architects plan, Day Laborers do the work.

JOKE: Mexicans outside Home Depot are to physical day laboring as Indians
outside CompUSA are to code day laboring (the latter does not exist, hence
the joke).

It's not racism.  Racism is prejudice via pointing out how another person or
group of people are inferior due to race.  Pointing out that a Mexican is a
Mexican is not racist.  Pointing out that Indians are taking coding jobs is
not racist.  In no way am I making any statement that anyone is inferior.

Relax, whitey.  Your white guilt is showing.

___
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's your job title?

2006-03-10 Thread Steven Sacks
> Interactive Architect
> 
> Far too similar to Information Architect, which is an actual job. 
> In addition, architects don't build, they plan.  In other words, 
> this title is bullshit.

To expound on the above:


Interactive Day Laborer

I envision a bunch of Indians standing outside of CompUSAs across the nation
every morning.

___
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's your job title?

2006-03-10 Thread Steven Sacks
> Interactive Developer 
> Interactive Designer 

That says nothing about the technology you use to create interactivity, plus
interactive is such a broad term.  I mean, a Powerpoint presentation is
interactive.


> Media Designer 
> Media Developer 

Could you be any more vague?  Put "New" in front of "Media" and make
yourself sound even lamer.


> Motion Designer 

What's wrong with Flash Animator or just Animator/Senior Animator.


> Interactive Architect

Far too similar to Information Architect, which is an actual job.  In
addition, architects don't build, they plan.  In other words, this title is
bullshit.


The only people who are impressed by fancy sounding titles are incompetent
middle management asshats who use buzzwords in their everyday speech (i.e.
they're not bright or clever but think that by using buzzwords they appear
to be, kind of like using any of the titles above or saying inane stuff like
"I'll ping you later" or "I don't have the bandwidth to go to Starbucks
right now, but we'll interface later to discuss those TPS reports").

Now these might seem obvious, but...

Flash Developer
Senior Flash Developer

Simple is best.

___
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] Water transition

2006-03-09 Thread Steven Sacks
Google search for "ripple effect flash"  
3rd result:
http://www.freehandsource.com/_test/ripple.html

 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Serge Jespers
> Sent: Thursday, March 09, 2006 2:44 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Water transition
> 
> Hey guys,
> 
> For a project on a way too tight deadline, I'm urgently 
> looking for a  
> Flash 8 watery transition between two (loaded) images.
> Transition should be like a waterdrop on img one and then in then  
> transition in the waterripples to img two.
> 
> Anyone of you can whip something up or have something laying around?  
> Since there are a ton of other little details to tackle before the  
> deadline, I can't start on it myself and thus am willing to pay for  
> anyone who can do it in the next few hours ;-)
> 
> Thanks for your help,
> Serge
> ___
> 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] HOW TO: Print a MC - first try.

2006-02-21 Thread Steven Sacks
> Steve, I hope you take this in the tone it was intended

Well, I felt his first question was worded in a way that made it seem that
he didn't know about PrintJob.  A quick look in the help panel or google
would have helped him on his way.

This is true for any issue people are having.  There is built-in
documentation (which can be lacking, I know), there is google, and there are
the flashcoders archives.  All of these resources are available for people
before they ask simple questions on basic actionscript ("How do I duplicate
a movieclip?" would be another RTFM question).  

RTFM is not necessarily said with malice or ego. Regardless of the presence
of the F, it's just the accepted acronym as I'm not sure I've ever seen RTM.
I wasn't being malicious in my curt reply.  I passed on the important piece
of information (PrintJob) that was needed to focus his search.  If I just
said RTFM and that's it, then yeah, I'm a dick.  But, I pointed out what the
term he needed to look up was, and that it was in the (freakin) manual.

> Maybe he never realized PrintJob was in the manual

Not directed at Corban specifically here, but that's no excuse for anyone.
Flash comes with searchable documentation.  Open the help panel, click on
the search icon, type in "print" and it is easily found.  Open google and
search for "printing in flash" and the second result returns a tutorial and
more detailed information.  It takes little effort to do some legwork
yourself first.  If you come up with zilch after that and you're still
having an issue with your code, post it up to Flashcoders.

In the end, Corban was having a specific issue and when he posted it, I was
able to help him, and happily so.  Funnily enough, one of the answers to his
questions (the size issue and the way flash draws pixels) was something I
read on the second link on Google when I did that very search as an example
for him that there was information out there on printing in Flash.  And this
is my point.  If you take the time to do a little research yourself, you
will learn something a lot faster than if you ask the list and wait for a
response.  Again, this is not specific to Corban.

When I wanted to print landscape in portrait using PrintJob, I searched the
Flashcoders archives first and found nothing.  Then, I searched the web and
found a solution.  Ended up it was extremely wrong and it took me awhile to
figure out why.  Now, I understand PrintJob a lot more than I used to
because I was forced to play around with it (and I found out that the class
has some undocumented bugs with printing scaled/rotated clips that require
workarounds).  When I figured it all out, I posted my results to Flashcoders
for the specific purpose of having something on the subject in the archives
for those who follow behind me, including linking to what google returned
and why it was wrong, just in case somebody searched for the solution like I
did.

If your intent is to not scare off new coders from asking questions here,
that's fine and good but new coders should also learn how to do their own
research first.  It will only benefit them to learn how to be more
resourceful.  Have you heard the fable about the computer lab at MIT?  It's
been said they have a teddy bear there that you must explain your problem to
in full before you ask the staff member in the lab.  The lesson is that
often you will solve your own problem by talking it out first.  Google can
be your teddy bear, 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] HOW TO: Print a MC - first try.

2006-02-21 Thread Steven Sacks
> All I get is a overly huge image in black/white that for some unknown
> reason is skewed also. How bout it anyone have some good 
> ideas for this
> first time PrintJob I am doing??? Thanks to you all!

Ok this is a valid question. You're having a specific problem implementing
code.  Being technical is what this list is all about.

First off, I suggest printing a movieclip and not the stage.  So, put your
card into the movieclip and specify that as the target instead of the root.

Next, the reason you're getting something large is because of how Flash
prints pixels. You're printing 675x425.  At 72dpi, that's going to be
9.4x5.9 inches.

If you put your card into a movieclip you can scale down your movieclip
prior to printing.  Important to note that even if you scale it down,
PrintJob.addPage() wants you to pass it the original width and height of the
movieclip prior to scaling even though it will print the scaled version.
Hopefully this will solve your skewing issue, as well.  I'm not entirely
sure why you're only getting black and white unless some preference for your
printer on the Print Dialog window is defaulting to print only black and
white (draft perhaps).

You can save yourself ink and paper by printing to a Microsoft Document
Image file (.mdi) and preview your results there (if you're on Windows).
When the print dialog opens, choose Microsoft Office Document Image Writer
as your printer.

___
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] HOW TO: Print a MC - first try.

2006-02-21 Thread Steven Sacks
> Right... Just wondered about any tutorials or peoples best practices.
> But if you feel like being a jerk to steam your own ego a bit 
> feel free.
> I didn't think this was a jerk off question one can be wrong.

Are you kidding me?  Open the Help panel in Flash and search for "print".
It's not egotistical to point out that you're being lazy.  Did you even
GOOGLE it?

#2 listing on google for the search "printing in flash"
http://www.devx.com/webdev/Article/27318

It is a jerk off question to ask something this simple without first
searching in Flash and the web for your answer.  Hence, read the freaking
manual.  But, since you're intent on not doing any footwork on your own,
here is the tutorial that is found inside Flash from the help panel.  Step
by step instructions.

Building a print job
To build a print job, you use functions that complete the tasks in the order
outlined in this section. The sections that follow the procedure provide
explanations of the functions and properties associated with the PrintJob
object.

Because you are spooling a print job to the user's operating system between
your calls to PrintJob.start() and PrintJob.send(), and because the PrintJob
functions might temporarily affect the Flash Player internal view of
onscreen Flash content, you should implement print-specific activities only
between your calls to PrintJob.start() and PrintJob.send(). For example, the
Flash content should not interact with the user between PrintJob.start() and
PrintJob.send(). Instead, you should expeditiously complete formatting of
your print job, add pages to the print job, and send the print job to the
printer.

To build a print job:
Create an instance of the print job object: new PrintJob(). 
Start the print job and display the print dialog box for the operating
system: PrintJob.start(). For more information, see Starting a print job. 
Add pages to the print job (call once per page to add to the print job):
PrintJob.addPage(). For more information, see Adding pages to a print job. 
Send the print job to the printer: PrintJob.send(). For more information,
see Sending the print job to the printer. 
Delete the print job: delete PrintJob. For more information, see Deleting
the print job. 
The following example shows ActionScript that creates a print job for a
button:

myButton.onRelease = function()
{
  var my_pj = new PrintJob();
  var myResult = my_pj.start();
  if(myResult){
myResult = my_pj.addPage (0, {xMin : 0, xMax: 400, yMin: 0, 
  yMax: 400});
myResult = my_pj.addPage ("myMovieClip", {xMin : 0, xMax: 400, 
  yMin: 400, yMax: 800},{printAsBitmap:true}, 1);
myResult = my_pj.addPage (1, null,{printAsBitmap:false}, 2);
myResult = my_pj.addPage (0);

my_pj.send();
  }
  delete my_pj;
}

Only one print job can run at any given time. A second print job cannot be
created until one of the following events has happened with the previous
print job: 

The print job was entirely successful and PrintJob.send() method was called.

The PrintJob.start() method returned a value of false. 
The PrintJob.addPage() method returned a value of false. 
The delete PrintJob method has been called. 
 

___
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] HOW TO: Print a MC - first try.

2006-02-21 Thread Steven Sacks
RTFM.

PrintJob

 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Corban Baxter
> Sent: Tuesday, February 21, 2006 8:18 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] HOW TO: Print a MC - first try.
> 
> 
> Hey guys I am looking to find a few good examples and maybe 
> get some of
> you to share a few good ideas. I am needing to setup up an online
> membership card that will have multiple dynamic parts from a 
> user image
> to member number, name etc. That part will be easy to display but what
> is the best way to capture this image to set to print. I 
> really want the
> easiest way but best way also. Can I just capture the MC and print it.
> Can I capture it as a JPEG or what is the best... flash paper? PDF? 
> 
> I would really appreciate any ideas/tutorials you all could 
> help me out
> with before I start this project. Thanks!
> 
> cb
> ___
> 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] Printing in landscape

2006-02-19 Thread Steven Sacks
I posted a solution to this a few weeks ago.  Here is a link to the solution
on the MM forums.  Skip to the bottom post:

http://tinyurl.com/e4cuf

Hope this helps!

___
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] How do you code your Flash applications?

2006-02-02 Thread Steven Sacks
> 1) If I can help it, I keep all my code in one place.  All in one
> frame, all the better.  All in one swf?  Better yet.

That's one of the worst things I've ever heard.  Maybe you should get on
medication for your OCD.

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


RE: [Flashcoders] Tell me more about "_global"

2006-02-01 Thread Steven Sacks
> You are clearly an idiot.
> 
> Scott

Thanks for noticing.  :) 

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


RE: [Flashcoders] Tell me more about "_global"

2006-02-01 Thread Steven Sacks
I'm not opposed to writing classes.  I'm opposed to overcomplicating things
that are simple and should stay simple.  You seem to get the impression that
I am a noob coder.

A global namespace as an object is all you need for managing global
variables.

If you have variables that need complicated watching and events then putting
them in a global namespace is the wrong place for them because they're
obviously more specialized and belong in a class that is meant for managing
what those variables are about, thereby nullifying the reason to put them in
a global namespace.  Technically, any variable in any class is, in effect, a
variable in a global namespace.  That doesn't mean you should write a class
for storing globals.  It's an extra layer of abstraction that only serves to
complicate something that is straightforward and simple.

Getting on mailing lists and telling people the most complicated way to do
something simple is ridiculous.  The original poster didn't have much
knowledge about global namespaces and you guys are going to immediately jump
into the most complicated way of handling it, sans any explanation (or your
lovely pseudocode).

I never said OOP is job security.  I never said OOP is complicated.  You
took what I was saying about coding simple things to be complicated and
tried to spin it to include all OOP.  Using a class to manage global
variables is complicated and is a ridiculous way to answer a simple question
(and handle a simple thing).  You don't need to put everything in a class or
component to code OOP correctly.  There is such a thing as taking OOP too
far.

We're talking about global variables here.  It's like you're saying "who
needs globals?"  If you think globals are so noob that they need to be
replaced with a dedicated class for managing variables, then why are global
variables present in pretty much every modern programming language?  I guess
you guys outsmarted all the engineers who write the languages you code in.
Kudos!

I mean, the fact that you need a class to manage your globals because it
makes it easier for debugging is telling.  How overcomplicated is your code
that it is so buggy that you need a class just to debug your global
variables?

 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of ryanm
> Sent: Wednesday, February 01, 2006 1:30 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Tell me more about "_global"
> 
> > 7/10 are interactive advertising, which means that I have usually 2 
> > weeks(at
> > best) to do something that doesn't relate and never had the 
> time to make 
> > me
> > own framework.
> >
> Has it occurred to you that if you built a class and got 
> in the habit of 
> using it, it would take exactly the same amount of time and 
> have 10x the 
> flexibility of your "faster" way? See, the whole idea of an 
> "architecture" 
> is to not have to redesign it for every app; you resuse it 
> every time so 
> that once it's there, you can use that codebase to build 
> anything you want.
> 
> All this talk about "real" programmers and "theorycoders" 
> is pretty 
> laughable. I especially like the part about using OOP 
> techniques as "job 
> security" so that they can't bring anyone else in to read 
> your code, when 
> that's actually pretty much the opposite of the reality of 
> the situation: 
> any *competent* programmer could understand it, and your 
> problems with these 
> methodologies speak more about you than your breadth of "experience".
> 
> I routinely have Java and C# programmers do code reviews 
> on my AS2 code. 
> You know how that's possible? I use OOP techniques, so that 
> it is apparent 
> what the code is doing even though the guy doing the review doesn't 
> understant the specific of the APIs I'm accessing. They don't 
> need to know 
> specifically why these APIs work the way they do, all they 
> need to do is 
> read my inline comments and look at the code changes, and it 
> is immediately 
> apparent to them what was changed and why. Any of those guys 
> could replace 
> me with a bit of time spent learning the APIs, the syntax is 
> essentially the 
> same and my codebase is clean and well documented, so it 
> would be easy for 
> anyone with any experience to take over it with a minimal 
> learning curve.
> 
> It's true, designing interactive banner ads generally 
> does not require 
> these lengths, but neither do banner ads usually require 
> maintenance, so 
> what difference does it make? If you build one-off, 
> deliver-it-and-forget-it 
> Flash work, good for you, your "coding style" is irrelevant, 
> both to you and 
> to the rest of the world, because no one will ever have to 
> look at it again. 
> For those of us who do actually have to revisit and maintain 
> code, and who 
> sometimes inherit large codebases, these things are not only 
> important, they 
> are essential.
> 
> I'll just close with a great quote from earlier in the thread

RE: [Flashcoders] Tell me more about "_global"

2006-02-01 Thread Steven Sacks
> Apart from that, your email takes a kind of
> i-won't-use-names-but-I'll-try-to-offend-you-all anyway tone, and your
> assumptions are just plain wrong on multiple levels. As I 
> said simply the
> tone of your email makes it clear there is no use discussing 
> it as well, you
> seem to have it all sorted out. 

Of course!  I explain, albeit sardonically, on multiple levels my stance,
and your response, not surprisingly is:

"You're wrong, and obviously you're not smart enough to understand why, so
I'm not going to bother to explain, but you're wrong on lots of things."

A stereotypical cop out.  I guess I was wrong.  You're not as smart and
clever as I gave you credit for.  ;)

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


RE: [Flashcoders] Tell me more about "_global"

2006-02-01 Thread Steven Sacks
Want an example?  I wrote this desktop application.

http://www.directv.com/see/landing/gametracker/gametracker.html 

In the first 6 months of deployment, they received THREE (count them 3)
requests for help, and all three ended up having to do with their backend
having issues.  The application is designed to run indefinitely on a
computer and as such is fast, efficient, extremely stable, and has extensive
memory management.

Oh, and it uses a global namespace.  :P



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Steven Sacks
> Sent: Wednesday, February 01, 2006 12:27 PM
> To: 'Flashcoders mailing list'
> Subject: RE: [Flashcoders] Tell me more about "_global"
> 
> Fast, bug-free ones.  ;)
>  
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On Behalf 
> > Of Robert Chyko
> > Sent: Wednesday, February 01, 2006 12:10 PM
> > To: Flashcoders mailing list
> > Subject: RE: [Flashcoders] Tell me more about "_global"
> > 
> > I'm just curious to know what kind of projects these are 
> that you are
> > working on?

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


RE: [Flashcoders] Tell me more about "_global"

2006-02-01 Thread Steven Sacks
They're theorycoders, the type that post pseudocode to forums and mailing
lists.  More often than not their pseudocode doesn't work and only serves to
confuse others who think they're getting a lesson from a smart and
experienced coder.  These theorycoders have book smarts but lack street
smarts.  They have never worked on a big project with other programmers so
they code in the most selfish and self-centered way as an exercise in mental
masturbation.
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Dave Mennenoh
> Sent: Wednesday, February 01, 2006 12:26 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Tell me more about "_global"
> 
> Really well put Steven! I agree 100% - OOP and components are 
> great - at 
> times. But forcing the issue really only shows lack of 
> programming knowledge 
> IMO. I use globals still - they are perfect for many things. 
> Anyone who says 
> different is merely showing their lack of experience at coding.
> 
> 
> Dave -
> www.blurredistinction.com
> www.macromedia.com/support/forums/team_macromedia/ 

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


RE: [Flashcoders] v2 components - are you kidding me?

2006-02-01 Thread Steven Sacks
AS1 syntax is deprecated?  That's news to me.
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Mike Britton
> Sent: Wednesday, February 01, 2006 12:10 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] v2 components - are you kidding me?
> 
> Ghostwire's are fast and simple, but the deprecated AS1 syntax makes
> me wonder how good they'll fit with a new project.  Are there plans to
> update these components?
> 
> Mike
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Tell me more about "_global"

2006-02-01 Thread Steven Sacks
Fast, bug-free ones.  ;)
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Robert Chyko
> Sent: Wednesday, February 01, 2006 12:10 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Tell me more about "_global"
> 
> I'm just curious to know what kind of projects these are that you are
> working on?

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


RE: [Flashcoders] v2 components - are you kidding me?

2006-02-01 Thread Steven Sacks
Have you even used the Ghostwire components?  They compile in AS2 without
any problems, unlike the Macromedia ones.  You shouldn't speak against
something you have never used based on your experience with Macromedia's
components, which is the whole point of this thread.
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of David Rorex
> Sent: Wednesday, February 01, 2006 11:40 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] v2 components - are you kidding me?
> 
> Unless you are writing AS1 projects, I would recommend 
> against using AS1
> components. Ghostwire is great most of the time, but there 
> are problems with
> the AS1 component model. Things like conflicts between 
> different versions,
> etc.
> 
> -David R
> 
> On 2/1/06, Steven Sacks <[EMAIL PROTECTED]> wrote:
> >
> > http://www.ghostwire.com/
> >
> > The Ghostwire components are slim, quick, use the same 
> methods that MMs
> > components use (dataProvider and what not), are easily 
> skinnable, are
> > written in AS1 so you can go in and hack them if you like, etc.
> >
> > I highly recommend them.
> >
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf
> > > Of Mike Britton
> > > Sent: Wednesday, February 01, 2006 6:15 AM
> > > To: Flashcoders mailing list
> > > Subject: Re: [Flashcoders] v2 components - are you kidding me?
> > >
> > > mCom components are an attractive alternative:
> > >
> > > http://www.metaliq.com/mCOM/
> > >
> > > These were formerly known as 'glic'.  Supposedly they are
> > > easier to skin, too.
> > >
> > >
> > > Mike
> > >
> > >
> > > On 2/1/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote:
> > > > 'something that can "play nicely" with stuff that other
> > > people are likely to
> > > > use'
> > > >
> > > > well, that's a good point, but it's hard to tell which
> > > stuff people are
> > > > likely to use, allthough macromedia's frameworks seems 
> a good bet.
> > > >
> > > > but perhaps take a look at some opensource projects, i
> > > think that's a
> > > > definitely a nice way to play. I haven't looked much into
> > > it, but aswing (
> > > > http://www.osflash.org/aswing) seems to be promising.
> > > >
> > > > But perhaps (v2) components aren't that evil though, I
> > > should get more into
> > > > it someday :).
> > > >
> > > > -Meinte
> > > >
> > > > On 1/31/06, Jason Rayles <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Meinte,
> > > > >
> > > > > Thanks for the tip. I don't intend to use v2 components
> > > myself. I am
> > > > > trying to make a component for distribution, and I would
> > > like to make
> > > > > something that can "play nicely" with stuff that 
> other people are
> > > > > likely to use.
> > > > >
> > > > > Jason
> > > > >
> > > > > On Jan 31, 2006, at 5:11 PM,
> > > [EMAIL PROTECTED]
> > > > > wrote:
> > > > >
> > > > > > From: Meinte van't Kruis <[EMAIL PROTECTED]>
> > > > > > Subject: Re: [Flashcoders] v2 components - are you 
> kidding me?
> > > > > > To: Flashcoders mailing list 
> 
> > > > > > Message-ID:
> > > > > >
> > > <[EMAIL PROTECTED]>
> > > > > > Content-Type: text/plain; charset=ISO-8859-1
> > > > > >
> > > > > > then maybe your question should be:
> > > > > >
> > > > > > Why do I use V2 components?
> > > > > >
> > > > > > -Meinte
> > > > > >
> > > > > > (the first time I even tried using components was when
> > > I discovered the
> > > > > > things it put on the highest level(of _root in that
> > > case), plus i saw
> > > > > > my
> > > > > > flash movie go from 5 to 60kb, I never looked at
> > > components again after
> > > > > > that.)
> > > > > >
> > > > 

RE: [Flashcoders] Tell me more about "_global"

2006-02-01 Thread Steven Sacks
Let's make classes for everything.  Let's make components out of everything.
There are so many benefits to complicating things and we CAN do it so we
SHOULD do it because it's so clever and smart to do it that way.  Let's code
everything in one frame when working closely with designers so we can make
them feel stupid and helpless when they go into our application and can't
find anything and we can feel so superior to them because it's so obvious
and now we have to walk them through it and by doing so can show them how
smart and clever we are.

Let's stroke our egos to prove what smart coders we are and program job
security into our applications by making it extremely difficult for our
clients to hire anyone else to work on our code, especially considering we
might not be available (busy, vacation, dead) to help walk anyone through
the complicated messaging system we've put into place to do something as
simple as storing global variables.  It's such a clever way of doing things,
don't you see?  We've built a better mousetrap!  Those people using a simple
global namespace objects are suckers!

I'm not saying variable watchers and events don't have their place, but
we're talking about a global namespace to store variables available to the
entire application, a replacement for _global and the conflicts that can
arise from it, something that has been done longer than you've been coding.
You're acting like a simple global namespace to store variables is only for
noob coders and that really smart coders make their code super complicated.
You guys are the reason Dreamweaver MX 2004, Photoshop 7, etc. take 10-20
seconds to start up instead of 1-3 like their predecessors.  You guys are
the reason many clients have bad tastes in their mouths from working with
independent contractors.  Why not apply your cleverness and creativity to
planning your next D&D campaign or go learn a real programming language like
C and learn to program games if you're so smart.

As far as debugging goes, I've never had trouble with standard debugging
techniques.  You know, like trace() and NetDebug.trace().  Quick and easy.
Here's my debug code:

import mx.remoting.debug.NetDebug;
NetDebug.initialize();
_global.out = function(m) {
trace(m);
NetDebug.trace(m);
}

Oh noes!  It's not complicated enough for you!  Feel superior in your
complicated debugging style!

;)

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


RE: [Flashcoders] v2 components - are you kidding me?

2006-02-01 Thread Steven Sacks
http://www.ghostwire.com/

The Ghostwire components are slim, quick, use the same methods that MMs
components use (dataProvider and what not), are easily skinnable, are
written in AS1 so you can go in and hack them if you like, etc.

I highly recommend them.



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Mike Britton
> Sent: Wednesday, February 01, 2006 6:15 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] v2 components - are you kidding me?
> 
> mCom components are an attractive alternative:
> 
> http://www.metaliq.com/mCOM/
> 
> These were formerly known as 'glic'.  Supposedly they are 
> easier to skin, too.
> 
> 
> Mike
> 
> 
> On 2/1/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote:
> > 'something that can "play nicely" with stuff that other 
> people are likely to
> > use'
> >
> > well, that's a good point, but it's hard to tell which 
> stuff people are
> > likely to use, allthough macromedia's frameworks seems a good bet.
> >
> > but perhaps take a look at some opensource projects, i 
> think that's a
> > definitely a nice way to play. I haven't looked much into 
> it, but aswing (
> > http://www.osflash.org/aswing) seems to be promising.
> >
> > But perhaps (v2) components aren't that evil though, I 
> should get more into
> > it someday :).
> >
> > -Meinte
> >
> > On 1/31/06, Jason Rayles <[EMAIL PROTECTED]> wrote:
> > >
> > > Meinte,
> > >
> > > Thanks for the tip. I don't intend to use v2 components 
> myself. I am
> > > trying to make a component for distribution, and I would 
> like to make
> > > something that can "play nicely" with stuff that other people are
> > > likely to use.
> > >
> > > Jason
> > >
> > > On Jan 31, 2006, at 5:11 PM, 
> [EMAIL PROTECTED]
> > > wrote:
> > >
> > > > From: Meinte van't Kruis <[EMAIL PROTECTED]>
> > > > Subject: Re: [Flashcoders] v2 components - are you kidding me?
> > > > To: Flashcoders mailing list 
> > > > Message-ID:
> > > >   
> <[EMAIL PROTECTED]>
> > > > Content-Type: text/plain; charset=ISO-8859-1
> > > >
> > > > then maybe your question should be:
> > > >
> > > > Why do I use V2 components?
> > > >
> > > > -Meinte
> > > >
> > > > (the first time I even tried using components was when 
> I discovered the
> > > > things it put on the highest level(of _root in that 
> case), plus i saw
> > > > my
> > > > flash movie go from 5 to 60kb, I never looked at 
> components again after
> > > > that.)
> > > >
> > > > On 1/31/06, Jason Rayles <[EMAIL PROTECTED]> wrote:
> > > >>
> > > >> My main question is: why does opening a v2 combobox 
> subsequently cause
> > > >> an onRollOut event to fire every time I click a button 
> or movieclip,
> > > >> and is there any way to prevent that?
> > > >>
> > > >> Some other questions I have are:
> > > >> Is there anything that the combobox does right?
> > > >>
> > > >> Why can I not use getNextHighestDepth anymore when I 
> put a component
> > > >> on
> > > >> the stage?
> > > >>
> > > >> Why does DepthManager.kCursor exist when I can still 
> attach all kinds
> > > >> of objects above that depth?
> > > >>
> > > >> Why can I attach movie clips at depths that are 
> outside the valid
> > > >> range?
> > > >>
> > >
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> 
> 
> --
> Mike
> --
> http://www.mikebritton.com
> http://www.mikenkim.com
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] can I know if I class/package has been imported in aswf?

2006-02-01 Thread Steven Sacks
> Is it possible to know if a class is being used in a flash movie? If 
> so, how?

Put a trace statement in the constructor of the class:

class foo {
function foo() {
trace("new foo");
}
} 


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


RE: [Flashcoders] Tell me more about "_global"

2006-01-31 Thread Steven Sacks
Making a class for globals is lame.  I don't get why people do stuff like
that.  It's completely unnecessary.  Here's how I make a namespace for
globals in one line.

On frame one of the root timeline:

_global.APP = {};

Wow. That was so hard.

APP.someglobal
APP.someotherglobal
APP.etc



> Nathan Derksen nderksen at sfu.ca wrote:
> >I generally keep at least one singleton class which is responsible  
> >for storing global properties. I make those properties accessible  
> >with getters and setters so that I can allow changes in those  
> >properties to trigger events. You can't really do that if you use  
> >_global to store your data. Also, there is always a risk in name  
> >space collision if you load in other elements that also use global,  
> >where one or more variables use the same name and are thus  
> >inadvertently shared for different uses. You definitely do not want  
> >to use _global within any classes that you create, as that 
> can cause  
> >entanglement, gives you no private protection, and does not 
> properly  
> >contain your code into a well-defined unit with a well-defined API.
> >
> >Nathan
> >http://www.nathanderksen.com
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Fav XML editor

2006-01-26 Thread Steven Sacks
I like Dreamweaver MX.  Sorry to mention it after you said not to, but it's
a great XML editor because it's slim and quick to load.  Granted, it doesn't
have the little XML conveniences that XMLSpy does, for instance, but I still
like it.

Every Dreamweaver version after MX is a bloated slow unusable piece of crap
and the coders of said versions are lazy ass motherfuggers who obviously
don't understand that what is ostensibly a text editor shouldn't take 10
seconds to initialize (should be near instantaenous).



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of eric dolecki
> Sent: Thursday, January 26, 2006 10:13 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Fav XML editor
> 
> I am starting to have to create more and more complex XML by 
> hand on the
> PC...
> 
> which is your favorite XML editor for authoring/editing XML 
> files for Flash?
> 
> I have tried oXygen and am now about to try XMLSpy 2006 EE...
> 
> No one mention DW please ;)
> 
> - edolecki
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] xml whitespace problem

2006-01-24 Thread Steven Sacks
JesterXL wrote:

> XML.ignoreWhite = true;
> XML.load

In response but 

david kraftsow wrote:

> Setting the ignoreWhite property does nothing.

Bad Jesse!  No cookie!

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


RE: [Flashcoders] ComboBox Focus problem

2006-01-24 Thread Steven Sacks
One solution:

http://www.ghostwire.com/

:)
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of [EMAIL PROTECTED]
> Sent: Tuesday, January 24, 2006 7:03 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] ComboBox Focus problem
> 
> Hi all,
> 
>  
> 
> I keep on getting this nasty focus problem with the 
> macromedia combobox
> component.
> 
> This occurs as soon as an swf loads another swf with a combobox in it.
> 
>  
> 
> After opening the combobox list:
> 
>  
> 
> when you drag the scrollbar up or down, and release it to select a
> certain item, the list closes by itself for some reason, and the "halo
> border" that the cbo gets on focus, stays too.
> 
>  
> 
> Ive tried the following but nothing worked to far :
> 
>  
> 
> -  adding the combobox to the root swf's library
> 
> -  using the lockroot statement
> 
> -  calling invalidate and/or redraw
> 
>  
> 
> Does anyone have a clue?
> 
>  
> 
>  
> 
>  
> 
> Bert Vandamme  *no prutsers*
> 
> 
> PointX nv  |  Engelse Wandeling 2K18  |  8500 Kortrijk  |  
> 056 36 21 94 
> 
>  
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] ComboBox problem when swf loading in another swf

2006-01-24 Thread Steven Sacks
A quick search through the flashcoders archives is a good idea as this
question recently came up.  At any rate, the host movie needs to have the
ComboBox component in its library.

HTH,
Steven


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of [EMAIL PROTECTED]
> Sent: Tuesday, January 24, 2006 1:33 AM
> To: flashcoders@chattyfig.figleaf.com; osflash@osflash.org; 
> [EMAIL PROTECTED]
> Subject: [Flashcoders] ComboBox problem when swf loading in 
> another swf
> 
> I have an swfA which is loaded into an swfB.
> 
>  
> 
> In swfA I have a ComboBox. When executing swfA (not loaded in another
> swf), the combobox works fine.
> 
>  
> 
> When executing swfB, problems occur with ComboBox in swfA. 
> Tell me why?
> 
>  
> 
> thx
> 
>  
> 
> Met vriendelijke groeten,
> Lieven Cardoen
> MULTIMEDIALOFT | POINT X
> Engelse Wandeling 2 K18v | 8500 Kortrijk | T +32 (0)56/36.11.97
> 
> // communicatie bij voorkeur op [EMAIL PROTECTED]
>  
> 
>  
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Dynamically named loadVars

2006-01-23 Thread Steven Sacks
myData["color_" + i] 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Mike Boutin
> Sent: Monday, January 23, 2006 2:42 PM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Dynamically named loadVars
> 
> What is the proper way to write the loop that the names of the posted 
> vars and be dynamically named based on "i" in the loop, as in 
> myData.color_0 = "white"; myData.color_1 = "blue" etc. Any ideas?
> 
> var myData:LoadVars = new LoadVars();
> myData.action = "create";
> myData.count = _root.shop_cart.size();
> for (i=0; i<_root.shop_cart.size(); i++) {
> var myProd:Product = _root.shop_cart.getElement(i);
> // myData.color_i = myProd.getColor();
> }
> delete myProd;
> trace(myData);
> 
> 
> Thanks!
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] how to deal with user-choosable skinning

2006-01-19 Thread Steven Sacks
It's easy to do with vector or bitmap graphics.  For bitmap, make your
buttons color free transparent PNGs, using semi-transparent greyscale
shading and shaping.  Under the button, mask a movieclip with a rectangle in
it - have the button shape be the mask (usually works, you might need to
play with it to get it just right).  Have that movieclip listen to a style
class - just make one movieclip in the library to do this.  Do not make
components out of these unless you want your movie to run slow. Assign said
movieclip to a particular style group, and then send the event onStyleUpdate
or whatever, passing the color and the group which that color belongs to,
which you then apply using standard movieclip color transform scripts.
Done.

HTH,
Steven

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Chad Royer
> Sent: Thursday, January 19, 2006 11:23 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] how to deal with user-choosable skinning
> 
> Hi all,
> I've been planning a flash ria for a while, and there are a few  
> things I'd like to do with the interface that I still haven't quite  
> figured out, maybe you can help.
> 
> The main puzzle I'm trying to work out is how I can set up a  
> selection of alternate graphical "skins" for the entire site 
> that the  
> end user can choose at runtime.  Ultimately, I'd want to have all of  
> my base graphic elements (button over and under states, arrows,  
> whatever) externalized in a library/movieClip that I can duplicate  
> and alter, then import based on a userPrefs variable on the  
> initialization of the site, and apply the graphic elements to the  
> rest of the movieclips in the app.  Has anyone done this sort of  
> setup before?  It seems like it should be easy enough, but I can't  
> find anything about it.
> 
> any help is mucho appreciated.
> chad
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] NetConnection Debugger not working in Flash 8?

2006-01-19 Thread Steven Sacks
Did you install Remoting for Flash 8?

Did you put the remoting components on the stage of your movie?
 
Did you try manually tracing?

NetDebug.trace("Hello world");



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Grant Cox
> Sent: Thursday, January 19, 2006 9:03 PM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] NetConnection Debugger not working in Flash 8?
> 
> I have just upgraded my workflow to Flash 8 and the latest 
> MTASC today, 
> and found that while my Remoting calls were working, nothing was 
> printing in the NetConnection Debugger.  After some debugging I have 
> found that I cannot get anything to print to the 
> NetConnection Debugger 
> even from within the Flash 8 IDE, and this is with a clean 
> reinstall of 
> Flash 8 (no previous version of Flash installed) and the Remoting 
> components.  I have set the Flash 8 security settings to 
> "Always Allow", 
> and to trust anything in "C:\".
> 
> The follow code, when applied to the first frame of an empty 
> movie with 
> just the RemotingConnector Component on the stage, works in 
> Flash 7, but 
> does not work in Flash 8.  The log messages work fine (and 
> the remoting 
> connection is created and works), but nothing appears in the 
> NetConnection Debugger.
> 
> Can anyone see a problem with this, or even replicate the error?
> 
> Regards,
> Grant Cox
> 
> 
> ///
> import mx.remoting.Service;
> import mx.services.Log;
> import mx.remoting.debug.NetDebug;
> 
> NetDebug.initialize();
> 
> var myLogger:Log = new Log(Log.DEBUG, "logger1");
> myLogger.onLog = function(message:String) {
> trace("NetConnection LOG: " + message);
> };
> 
> var gatewayURL:String = "http://localhost/myproject/gateway.php";;
>
> var userService:Service = new Service ( gatewayURL, myLogger, 
> "Users", 
> null, null );
> trace("gateway at: " + gatewayURL + " user service: " + userService );
> NetDebug.trace("testing testing testing");
> 
> stop();
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] MX 2004 and keyboard shortcuts

2006-01-18 Thread Steven Sacks
Because they're system level not application level.
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Roman Blöth
> Sent: Wednesday, January 18, 2006 1:57 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] MX 2004 and keyboard shortcuts
> 
> Hey there,
> 
> 
> has someone ever managed to change the keyboard shortcuts for Flash's 
> AS-editor's copy & paste from ctrl-c / ctrl-v to ctrl-ins / shift ins?
> 
> The menu item Edit -> Keyboard Shortcuts lets me change these 
> settings 
> explicitly, if I switch to my own settings (cannot change 
> these for the 
> Macromedia default - set), but it won't work as expected:
> 
> ctrl-c/-v still remains functional, though I disabled this, but 
> ctrl-/shift-ins doesn't work at all. Restart of Flash doesn't 
> make any 
> difference...
> 
> What is it that Flash and Director won't let Windows-users use these 
> left-handed(*) copy & paste shortcuts?
> 
> 
> Any hint welcome,
> Roman.
> 
> 
> (*) - at least for me as a left handed man the ins-versions 
> work much faster
> 
> -- 
> 
> ---
>  gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
>  t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
> ---
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] PrintJob Landscape printing with Portrait

2006-01-18 Thread Steven Sacks
Here is a refined version of my function:

function printImage(mc) {
var realW = mc._width;
var realH = mc._height;
pj = new PrintJob();
var pageCount = 0;
if (pj.start()) {
var cXscale, cYscale;
if (pj.orientation.toLowerCase() != "landscape") {
mc._rotation = 90;
mc._x = mc._width;
cXscale = (pj.pageWidth / realH) * 100;
cYscale = (pj.pageHeight / realW) * 100;
} else {
cXscale = (pj.pageWidth / realW) * 100;
cYscale = (pj.pageHeight / realH) * 100;
}   
mc._xscale = mc._yscale = Math.min(cXscale, cYscale);
if (pj.addPage(mc, {xMin:0, xMax:realW, yMin:0,
yMax:realH})) {
pageCount++;
}
}
if (pageCount > 0) {
pj.send();
}
mc._xscale = mc._yscale = 100;
mc._rotation = mc._x = mc._y = 0;
delete pj;
}

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


[Flashcoders] PrintJob Landscape printing with Portrait

2006-01-17 Thread Steven Sacks
Hello everyone,

I'm posting this here in order to provide another solution to the terrible
misinformation available on Macromedia's site about how to convert a
landscape image to portrait for printing using the PrintJob class.

The code posted here at Macromedia's forums is VERY WRONG:
http://tinyurl.com/e4cuf

Real URL:
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=288&;
threadid=1089277&enterthread=y

It's so wrong, in fact, that it took me a fair bit of debugging to figure
out just how wrong it was.  Whoever wrote it obviously didn't test the code
they posted as a solution.  It's pseudocode and you don't post pseudocode as
real code unless you're an asshat, which evollove is.  If you're on this
list, evollove, do us all a favor and don't post anymore solutions anywhere
on the web.  ;)

Here is the correct, tested code for rotating a movieclip to print as
landscape in portrait using PrintJob, for anyone who is looking for the
solution.

function printImage(mc) {
var realW = mc._width;
var realH = mc._height;
var origX = mc._x;
//
pj = new PrintJob();
var pageCount = 0;
if (pj.start()) {
var orient = pj.orientation;
if (orient.toLowerCase() != "landscape") {
mc._rotation = 90;
mc._x = mc._width;
}
var cWidth = mc._width;
var cHeight = mc._height;
var cXscale = (pj.pageWidth / cWidth) * 100;
var cYscale = (pj.pageHeight / cHeight) * 100;
mc._xscale = mc._yscale = Math.min(cXscale, cYscale);
if (pj.addPage(mc, {xMin:0, xMax:realW, yMin:0,
yMax:realH})) {
pageCount++;
}
}
if (pageCount > 0) {
pj.send();
}
mc._xscale = mc._yscale = 100;
mc._rotation = 0;
mc._x = origX;
delete pj;
}

// Explanation
Here are the places the original code was wrong and why, and how this proper
code works.  There are inconsistencies between the clip you're trying to
print and they way PrintJob handles that clip, due mostly to PrintJob being
a poorly written class, which doesn't surprise me.

When you rotate a movieclip 90 degrees, Flash swaps its _width and _height,
or rather, it returns the clip's current _width and _height, which when
rotated 90 degrees, are swapped.  If the clip was 1024x768 and you set its
_rotation = 90, its _width will now return 768 and its _height 1024.  This
is important because you're going to use the rotated width and height to
determine how much to scale the printClip down for PrintJob to print the
entire clip on the page.

When you're scaling an image you normally don't want to scale it out of
proportion, so you need to determine which scale difference is greater (the
lower of the 2 scales returned) and use that for both _xscale and _yscale
equally.  Evollove's script did not do this properly.

PrintJob is retarded in that you need to scale the target clip down for it
to print the entire clip image, but PrintJob still uses the clip's
non-scaled and non-rotated width and height as its xMax and yMax values, not
the _width and _height that Flash returns after rotation and scaling.
Evollove obviously didn't test his code because he passed the adjusted
values and didn't take the time to figure out that the PrintJob Class is
stupid.

This is important:  PrintJob requires you to rotate and scale the clip down
before you print it in order to fit the entire image on a page, but it still
wants you to pass the clip's original width and height (not adjusted for
rotation or scaling) for its print area.  Not only is this dumb and
inconsistent, it's not documented at all (nor are the properties like
orientation, pageWidth, pageHeight, etc.).  Par for the course.

Once you send the print job, reset the _xscale, _yscale, _rotation, and _x
of the clip(s) you were printing.

HTH!

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


[Flashcoders] PrintJob.orientation = "landscape" not working

2006-01-17 Thread Steven Sacks
Hey,

I did a Google to figure out how to set a PrintJob to default to landscape
and found this page:

http://tinyurl.com/8uqbw

PrintJob.orientation = "landscape";

But it doesn't work.  Any ideas?

Thanks,
Steven

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


[Flashcoders] Printing "bmovie" frame on a createMovieClip clip?

2006-01-17 Thread Steven Sacks
Hey all,

In Flash 7, how would you print a "bmovie" frame in a dynamically created
movieclip using createMovieClip()?

Thanks,
Steven

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


[Flashcoders] ComboBox not firing change event when selectedIndex set

2006-01-15 Thread Steven Sacks
function change() {
trace("change");
}
MyCmb.addEventListener("change", this);

MyCmb.selectedIndex = MyCmb.selectedIndex + 1;

Does not fire a change event.  How do I detect when the combo box has
changed from code not from direct user interaction with the component?  This
seems completely stupid to me because the combobox WAS CHANGED so it SHOULD
FIRE A CHANGE EVENT.

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


RE: [Flashcoders] Job Opportunity in Madrid (Spain)

2006-01-13 Thread Steven Sacks
Yeah, do they support telecommuting? 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of JesterXL
> Sent: Friday, January 13, 2006 8:07 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Job Opportunity in Madrid (Spain)
> 
> Do they support tele-commuting?
> 
> - Original Message - 
> From: "Kathleen E. Vitelli" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Friday, January 13, 2006 11:04 AM
> Subject: RE: [Flashcoders] Job Opportunity in Madrid (Spain)
> 
> 
> Hello all   So sorry to butt in on all your fun but I was 
> wondering if 
> you all knew any Flash Developers looking for a contracting 
> job   I have 
> 15 openings in NYC for 1 year contracts.They are looking 
> for people with 
> heavy Action Scripting...
> 
> I will pay referral bonuses as well  : )
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Vector shapes not showing up in Flash Player 7 with Flash 8 SWF

2006-01-11 Thread Steven Sacks
Wow. It looks like vector shapes aren't showing up in Flash player 7 from a
Flash 8 swf either.  I swore that there was a certain amount of backwards
compatibility.

What gives?

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


[Flashcoders] Text not showing up in Flash Player 7 with Flash 8 SWF

2006-01-11 Thread Steven Sacks
Hey,

Any reason why the static and dynamic text in my Flash 8 movie aren't
showing up in the Flash 7 player on Windows or Linux?  Nothing Flash 8 about
the text.  It just doesn't show up on Flash Player 7.0r14.

-s





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


RE: [Flashcoders] reducing build times

2006-01-11 Thread Steven Sacks
3rd party compilers are reported to be ridiculously faster than the IDE.

 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Nathan Derksen
> Sent: Wednesday, January 11, 2006 8:09 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] reducing build times
> 
> In the Flash IDE, you can convert movie clips in the library into  
> compiled clips. Select your movie clips, right click, and select  
> Convert to Compiled Clip. This will pre-compile these movie clips,  
> and their linkage IDs (if any) will also remain intact. I've done  
> this in the past with movie clips for custom skins, and it saved a  
> heap load of time from the compile process. I had one movie 
> clip as a  
> placeholder that contained a copy of all the other movie clips.  
> Compiling the one movie clip automatically included all the other  
> ones in the compiled clip. The one thing is that make sure you save  
> your original movie clips in another file, as once you convert then  
> delete the original clip, the compiled clip is not editable.
> 
> Nathan
> http://www.nathanderksen.com
> 
> 
> On Jan 8, 2006, at 4:49 PM, Mark Winterhalder wrote:
> 
> > On 1/9/06, Uri <[EMAIL PROTECTED]> wrote:
> >> i'm trying to reduce build (publish) times for a project i'm  
> >> working on. I
> >> have many vector symbols that have AS2 classes assigned to them.  
> >> Since i'm
> >> working with complex vector symbols, it takes flash quite a while  
> >> to publish
> >> the swf of the movie each time.
> >>
> >> Could anyone suggest a way to have the symbols' graphic vector  
> >> data compiled
> >> once, so that i can later change their AS2 class code without  
> >> compiling the
> >> vector data for them over and over again?
> >>
> >> thanks
> >> Uri
> >> ___
> >> Flashcoders mailing list
> >> Flashcoders@chattyfig.figleaf.com
> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Multiple Remoting Event Listeners

2006-01-09 Thread Steven Sacks
I want to add that what I've got is two identical clips that do the same
exact thing but they each need to make their own remoting call with their
own arguments being passed to the server, and they're going to make the
request at the same time sometimes.  I need a way to track which request
goes with which requester. I won't be getting anything back from the server
that tells me which it is supposed to go to.

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Steven Sacks
> Sent: Monday, January 09, 2006 5:01 AM
> To: 'Flashcoders mailing list'
> Subject: [Flashcoders] Multiple Remoting Event Listeners
> 
> I have a class that I'm using to make remoting calls.  When a 
> result comes
> back, it dispatches an event passing the result.
> 
> Sometimes, one of the remoting calls will go out to multiple 
> listeners but
> only the one who made the request should handle the result 
> event, the other
> will ignore it unless it was the one who request it.  What is 
> the best way
> to handle this?
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Multiple Remoting Event Listeners

2006-01-09 Thread Steven Sacks
I have a class that I'm using to make remoting calls.  When a result comes
back, it dispatches an event passing the result.

Sometimes, one of the remoting calls will go out to multiple listeners but
only the one who made the request should handle the result event, the other
will ignore it unless it was the one who request it.  What is the best way
to handle this?

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


<    6   7   8   9   10   11   12   >