Re: [Flashcoders] Text Stroke?

2008-11-21 Thread Hans Wichman
I think that's only possible using mxml... just kidding, sorry could't resist :) On Fri, Nov 21, 2008 at 8:45 AM, Elia Morling [EMAIL PROTECTED] wrote: Has the ugly Glow-Filter trick been replaced with anything better in CS4? Thanks, Elia ___

Re: [Flashcoders] Text Stroke?

2008-11-21 Thread Elia Morling
LOL - Original Message - From: Hans Wichman [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, November 21, 2008 9:40 AM Subject: Re: [Flashcoders] Text Stroke? I think that's only possible using mxml... just kidding, sorry could't resist :) On

Re: [Flashcoders] Flex vs. Flash

2008-11-21 Thread Cedric Muller
Jason, no pun intended. Adobe, pun intended: this marketing bu**s**t I think the term Flex is kind of confusing people though, as it can mean different things just like Flash cam. Sometimes people use Flex to refer to the framework and SDK, sometimes as Flexbuilder, sometimes as the

Re: [Flashcoders] Flex vs. Flash

2008-11-21 Thread Olivier Besson
hi, certainly OOT, but for the sake of exactness, Ecodazoo was not made with papervision. Roxik (http://roxik.com/) used a custom 3d engine (Sharikura): http://temp.roxik.com/ Olivier Merrill, Jason a écrit : Sure - I mean again, it just comes down to what KIND of sites you are comparing - a

Re: [Flashcoders] Flex vs. Flash

2008-11-21 Thread Cedric Muller
I never spoke about 'cool' sites ;) I agree we cannot compare applications and event/marketing sites, or even experimental sites. As a precision, I view EcoDaZoo as the best flash site ever made (MHO). First, because of the way it communicates, and then because of its technicity (inhouse 3D

Re: [Flashcoders] Flex vs. Flash

2008-11-21 Thread Cedric Muller
and that's when you don't do liquid layout in Flash ;) Yep - but to be honest the .fla still contains all the links to the external assets. Erm, Ian, all you need to reference in the FLA is ONE Class file; and that class file can then contain ALL the references to all the subclasses; so

Re: [Flashcoders] singleton returns null

2008-11-21 Thread Hans Wichman
Hi, im not sure about your syntax. This: class MyClass { public static var _instance:MyClass = this; } will not work. You are looking for something like: class MyClass { public static var _instance:MyClass = null; public function MyClass () { _instance = this; } } Although

[Flashcoders] singleton returns null

2008-11-21 Thread Fabio Pinatti
Hello list, I've been having a question since a time ago... I'm using a flash framework within my websites (Gaia), and between the classes, I use some singleton pattern to communicate between them. This way, theorically, I can get any class instance from another, and I don't need to know the path

Re: [Flashcoders] singleton returns null

2008-11-21 Thread Fabio Pinatti
Hello, About the syntax, I meant the second one, actually, declare the _instance just in constructor, but I just noticed a very weird thing...When I get null as I was referencing, if I just declare in my main class, a var casting the type of class that was returning null, it'll work. Seems

Re: [Flashcoders] get class by definition - or something like that

2008-11-21 Thread Joel Stransky
I love this list so far. Thanks for highlighting that Ian. I think you explained clearly that I'm bypassing good type checking so maybe you could help me with an alternative. The issue arose from Lee Brimelow's AS3 preloading videohttp://gotoandlearn.com/play?id=85. He basically defends that the

Re: [Flashcoders] get class by definition - or something like that

2008-11-21 Thread Ian Thomas
What I'd do to retain type-checking in this case is to define an interface: public interface IMyModule (or whatever) { function startUp():void; // and maybe other functions... } Make your document class implement IMyModule (i.e. it must define function startUp()). Then in your loading

Re: [Flashcoders] singleton returns null

2008-11-21 Thread Hans Wichman
Hi Fabio, could you maybe post 2 examples, one that works, and one that doesn't? A picture says more than a thousand words:) greetz JC On Fri, Nov 21, 2008 at 2:19 PM, Fabio Pinatti [EMAIL PROTECTED] wrote: Hello, About the syntax, I meant the second one, actually, declare the _instance

Re: [Flashcoders] get class by definition - or something like that

2008-11-21 Thread Joel Stransky
Wow I really should have thought of interfaces. That will work perfectly. On Fri, Nov 21, 2008 at 9:11 AM, Ian Thomas [EMAIL PROTECTED] wrote: What I'd do to retain type-checking in this case is to define an interface: public interface IMyModule (or whatever) { function startUp():void;

RE: [Flashcoders] Flex vs. Flash

2008-11-21 Thread Merrill, Jason
Interesting, I thought I had first been introduced to it via the Papervision 3D site - regardless, it's very impressive. Jason Merrill Bank of America Instructional Technology Media · GCIB Staff Support LLD Interested in Flash Platform technologies?  Join the Bank of America Flash

RE: [Flashcoders] Flex vs. Flash

2008-11-21 Thread Merrill, Jason
OK, you're right, you said, best and used words like slick, not cool - so I just assumed, sorry. I mean, we'd all probably agree opinions are all pretty subjective. Flash has been around a lot longer, so the developer community there certainly is more mature. Jason Merrill Bank of

RE: [Flashcoders] get class by definition - or something like that

2008-11-21 Thread Merrill, Jason
Thanks Ian, very interesting. Thanks everyone - good discussion. Jason Merrill Bank of America Instructional Technology Media · GCIB Staff Support LLD Interested in Flash Platform technologies?  Join the Bank of America Flash Platform Developer Community Interested in innovative

Re: [Flashcoders] Flex vs. Flash

2008-11-21 Thread Carmine Casciato
You should try using git with flex builder projects, amazing. Changing branches on the fly and Flex Builder with go right along with you, saving your different swfs as well. On Thu, Nov 20, 2008 at 4:03 AM, Ian Thomas [EMAIL PROTECTED] wrote: On Thu, Nov 20, 2008 at 8:59 AM, Ian Thomas [EMAIL

Re: [Flashcoders] singleton returns null

2008-11-21 Thread Fabio Pinatti
Sure thing! In my main document class, I have class BaseClass { public function BaseClass() { } } I have a second document class, that is loaded inside the first one. class SecondClass { public static var _instance:SecondClass; public function SecondClass() {

Re: [Flashcoders] singleton returns null

2008-11-21 Thread Todd Kerpelman
Hmmm... I'm not sure I can pinpoint exactly where the problem is in your code. But there is some weirdness there around where and how that _instance variable of yours is getting instantiated. It seems like there's nothing to enforce it only gets created once or doesn't get overwritten multiple

Re: [Flashcoders] Flex vs. Flash

2008-11-21 Thread sebastian
??? This is totally not a valid comment, either I don't understand the term liquid, or other's don't know how to implement it. Cedric Muller wrote: and that's when you don't do liquid layout in Flash ;) Yep - but to be honest the .fla still contains all the links to the external assets.

Re: [Flashcoders] Text Stroke?

2008-11-21 Thread sebastian
haha, nice one. Well, honestly the glow can be 'massaged' to look acceptable. :P Elia Morling wrote: LOL - Original Message - From: Hans Wichman [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, November 21, 2008 9:40 AM Subject: Re:

Re: [Flashcoders] singleton returns null

2008-11-21 Thread Ricky Blaha
Fábio, The reason you are seeing null is because your getInstance() does not assign the instance of SecondClass to _instance if it hasn't already been instantiated: public static function getInstance():SecondClass { return _instance; //_instance has never been assigned

[Flashcoders] [Flash CS3] Extremely weird playhead action

2008-11-21 Thread Joel Stransky
So I'm writing the most basic of timeline preloaders and flash seems to have a mind of its own. My test.fla has two frames. Frame 1 has a text field and a progress bar movieclip. Frame 2 has a very large image. There is no code what so over. The document class is set to Test.as and is essentially:

[Flashcoders] showing code progress with progress bar

2008-11-21 Thread Mac Angell
Is it possible to show the progress of a code loop on a progress bar? For example, if I have a progress bar named pbar already defined on the stage, and I execute the following function: private function init():void { var total:int = 10; for (var i:int = 0; i total; i++)

[Flashcoders] Re: [Flash CS3] Extremely weird playhead action

2008-11-21 Thread Joel Stransky
Don't worry, I doubt it even fk'ing matters anyway. I can't access a stage instance on frame 2 or higher without some psychotic hack I've yet to find on google. How the f*ck did macromedia expect any common flash designers to keep up? I don't want to write a custom class for each stage instance

Re: [Flashcoders] showing code progress with progress bar

2008-11-21 Thread Joel Stransky
Just simulate a for loop with an ENTER_FRAME listener. var total:int = 1; var i:int = 0; root.addEventListener(Event.ENTER_FRAME, simLoop); private function simLoop(e:Event):void { if(i = total){ root.removeEventListener(Event.ENTER_FRAME, simLoop); }; pbar.setProgress(i, total); i++; }

Re: [Flashcoders] showing code progress with progress bar

2008-11-21 Thread jonathan howe
Yikes! I don't think he actually wants the loop to take any longer than necessary. I'm assuming he's got some sort of computationally expensive operation (huge parse or something) that he wants to show the progress. How about subdividing your loop into more manageable chunks that get called once a

Re: [Flashcoders] Re: [Flash CS3] Extremely weird playhead action

2008-11-21 Thread jonathan howe
Hi, Joel, I'm taking a longshot guess that you had the same problem I had last week when the list helped me...? I had an instance on a keyframe of the stage and it (sometimes) wasn't available i.e. null when I gotoAndPlay() to the frame it first appears? Did you find a solution? I have had good

[Flashcoders] synchronous app

2008-11-21 Thread poste9
someone discovered some way to make synchronous app? something like that: foo = doSomeHttpRequest(); and the response from http request is attribued to foo var -- = Grupo Comunidade de Comunicação Rafael Lúcio 29809.099333, fazendo do

Re: [Flashcoders] synchronous app

2008-11-21 Thread Hans Wichman
nah where'd be the fun in that!? :) On Sat, Nov 22, 2008 at 6:14 AM, poste9 [EMAIL PROTECTED] wrote: someone discovered some way to make synchronous app? something like that: foo = doSomeHttpRequest(); and the response from http request is attribued to foo var --

Re: [Flashcoders] showing code progress with progress bar

2008-11-21 Thread Hans Wichman
Hi, the onenterframe will work, but you can approach it a little differently, in pseudo: onEnterFrame { if (no items to process left) { clear onEnterFrame, signal done; } set loop start time while (currenttime - loop start time 100 ms) { process loop item } update progressbar } greetz