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

2009-01-16 Thread Jason Boyd
Frames aren't objects in memory; they are just concepts. (Key)frames are simply time markers when actions occur. Some of these actions are authored as ActionScript code; others are authored graphically, but the latter are the equivalent of writing addChild() and removeChild() statements to the

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

2009-01-16 Thread Olivier Besson
Objects removed at any key frame therefore should be eligible for garbage collection, assuming no event listeners or other code created a reference to them. Yes. Another problem is: even if no listener or code references to these objects, they continue playing when they are removed by a

[Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Fabio Pinatti
Hello guru list, A basic question. A designer setup a fla file, with a lot of textfields. He'd adjusted font size, spacing, leading, etc. When I'll use his fla, I have to convert all static fields into dynamic fields, and all looks good. The question and problem is, when I compile and set a text

Re: [Flashcoders] [JOB] FLEX Consultant, New Jersey

2009-01-16 Thread Dave Watts
Beau: Thanks for the interest but, I need to live in Los Angeles, CA 90064. Keep me in mind for Flex. Best,Linda Please don't respond to recruiters on the list. If you want to contact a recruiter who posts on Flashcoders, contact him or her off-list. Thanks! Dave Watts, CTO, Fig Leaf

RE: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Cor
With dynamic fields you NEED to embed the fonts or set it through a class, a CSS or TextFormat. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Fabio Pinatti Sent: vrijdag 16 januari 2009 13:06 To: Flash

Re: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Fabio Pinatti
the fonts are embedded. The problem actually isn't the font appears, because it's. The problem is, seems after I changed the text of an existing textfield, it formatting is gone. Tks F On Fri, Jan 16, 2009 at 12:51 PM, Cor c...@chello.nl wrote: With dynamic fields you NEED to embed the fonts

Re: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Glen Pike
Hi, You can do this each time you add text with AS: //Get the text format before you change the text. var tf:TextFormat = myTextField.getTextFormat(); myTextField.html = newText; myTextField.setTextFormat(tf); Glen Fabio Pinatti wrote: the fonts are embedded. The

Re: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Fabio Pinatti
Hello Glen, hey, that's it! I didn't know that it was required to do, with simple textfields created in authortime. Flash could not lost the formatting unless we specify, don't you think? =) Thanks so much for you, my question is clear now! Fabio On Fri, Jan 16, 2009 at 1:47 PM, Glen Pike

RE: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Cor
OK, here are some options: HTH Cor /* Create in library: New Font My embedded fonts have Linkage classes of FFFInterface, LasVegasD and Wdings. Both of these seemed to work for me. Fonts should be on the develop PC */ //TextFormat example var fmt1:TextFormat = new TextFormat(); fmt1.font =

Re: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Joel Stransky
or you can set the defaultTextFormat property and be done with it. On Fri, Jan 16, 2009 at 10:58 AM, Fabio Pinatti fpina...@gmail.com wrote: Hello Glen, hey, that's it! I didn't know that it was required to do, with simple textfields created in authortime. Flash could not lost the formatting

RE: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Cor
If you have to do it each time, it is time to create a class to do it for you. HTH Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Fabio Pinatti Sent: vrijdag 16 januari 2009 16:58 To: Flash Coders

Re: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Romuald Quantin
I have already posted that here but, I think this (a single class that is extending TextField) can help you as it is a kind of things Ive already done (and I was bored to struggle with textfield, textformat, style, etc). I've extracted a text tool from my framework: SomaText. It allows you

[Flashcoders] RE: AS3 DataGrid header text alignment problem

2009-01-16 Thread Craig Bowman
FYI I went into the component source code, found the bug and fixed it. It meant deriving a new class from the HeaderRenderer class and then going into the drawLayout function and changing the line textField.width = tmpWidth; to textField.width = width - (txtPad * 2) - paddedIconW; Yes I

Re: [Flashcoders] [JOB] FLEX Consultant, New Jersey

2009-01-16 Thread Linda Weller
Sorry, that was an accidental reply. --- On Fri, 1/16/09, Dave Watts dwa...@figleaf.com wrote: From: Dave Watts dwa...@figleaf.com Subject: Re: [Flashcoders] [JOB] FLEX Consultant, New Jersey To: Flash Coders List flashcoders@chattyfig.figleaf.com Date: Friday, January 16, 2009, 5:08 AM Beau:

Re: [Flashcoders] [JOB] FLEX Consultant, New Jersey

2009-01-16 Thread Nate Beck
It's okay... at least it's not as bad as when the CEO of the startup I worked at decided to reply-all to the entire company. Telling his partner that we've run out of money, and needed to lay off half of the company. That was an interesting day. On Fri, Jan 16, 2009 at 9:09 AM, Linda Weller

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

2009-01-16 Thread Joel Stransky
@Jason, Yes, that is the sad truth I was hoping to avoid here. It's just another argument for adobe developing a built in Frame class. @Olivier, While listening for REMOVED_FROM_STAGE is a nice trick, its just one more listener to remove as part of clean. I'll trust myself to stop, close and

[Flashcoders] help stopping an external clip on as3

2009-01-16 Thread Gustavo Duenas
Ok Coders I have a loader which loads a external movieclip, and I want it to stop when I say, but unfortunately all my efforts are useless I've been using. in some frame. myLoader.stop(); and nothing or myLoader.stop; and is the same...any ideas? every time is the same error,

RE: [Flashcoders] help stopping an external clip on as3

2009-01-16 Thread Robert Leisle
Hi Gustavo, Try this: var mc:MovieClip = myLoader.content as MovieClip; mc.stop(); or MovieClip(myLoader.content).stop(); Either one should work. hth, Bob -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of

[Flashcoders] AS3 Nice Knob(s)

2009-01-16 Thread Eric E. Dolecki
I am looking for an AS3 knob that is close to this: http://keith-hair.net/blog/examples/niceknobs/ yet is something I can use in the Flash CS4 IDE - a SWC would even be nice to link up to. The URL above is just an example. Being able to optionally check + or - movements on 360º revolutions

RE: [Flashcoders] AS3 Nice Knob(s)

2009-01-16 Thread Patrick Matte|BLITZ
http://www.bit-101.com/blog/?p=1337 -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Friday, January 16, 2009 11:51 AM To: Flash Coders List Subject: [Flashcoders] AS3 Nice Knob(s) I

Re: [Flashcoders] AS3 Nice Knob(s)

2009-01-16 Thread Eric E. Dolecki
Thats nice, but it works like a slider (manipulated). Looking more for a traditional behaving knob. On Fri, Jan 16, 2009 at 3:06 PM, Patrick Matte|BLITZ pma...@blitzagency.com wrote: http://www.bit-101.com/blog/?p=1337 -Original Message- From:

[Flashcoders] Algorithm for distributing labels along a timeline without overlapping

2009-01-16 Thread matt stuehler
All, Hope I can phrase this question clearly... I'm working on an application that will display a visual timeline with a vertical orientation. At various points along the timeline, it will display key markers/milestones. Each one of these markers will have a label. The problem arises when

RE: [Flashcoders] AS3 Nice Knob(s)

2009-01-16 Thread Patrick Matte|BLITZ
I think in general, knobs always behave like sliders. Take for example Ableton Live, a music software which use a lot of knobs, they all behave like sliders. I think the knobs on the link you were referring to may seem more realistic but are actually harder to use. -Original Message-

[Flashcoders] Algorithm for distributing labels along a timeline without overlapping

2009-01-16 Thread matt stuehler
All, [Sorry if this is a repost... some email issues today...] Hope I can phrase this question clearly... I'm working on an application that will display a visual timeline with a vertical orientation. At various points along the timeline, it will display key markers/milestones. Each one of

Re: [Flashcoders] Algorithm for distributing labels along a timeline without overlapping

2009-01-16 Thread Bob Wohl
Check the height vs. y pos of the first and evenly distribute. Something like 'total with in range' x 'height' and then iterate position via start y -= totalHeight/2. rough idea but some where to start. B. On Fri, Jan 16, 2009 at 1:17 PM, matt stuehler stuehler.t...@gmail.comwrote: All, Hope

Re: [Flashcoders] AS3 Nice Knob(s)

2009-01-16 Thread Bob Wohl
real knobs spin forever? just work it like a slider but update % and position via max/min distance and maintain the math. 3 rotations is max slider x3. Keeping track of rotation works but you'll have to calculate for negative rotation. B. On Fri, Jan 16, 2009 at 1:42 PM, Eric E. Dolecki

Re: [Flashcoders] AS3 Nice Knob(s)

2009-01-16 Thread Eric E. Dolecki
I get the slider idea - makes sense, except for when you want a knob to revolve as many times as a real one might. So you don't necessarily always want a min and a max. Operate it like a true spinning dial and perhaps decrement or increment some kind of value per º rotated. On Fri, Jan 16, 2009

Re: [Flashcoders] AS3 Nice Knob(s)

2009-01-16 Thread Eric E. Dolecki
They can. I am just going to roll my own and then maybe release it. Concentric ring support as well as some other stuff to make it super flexible. Already wrote the custom events and the base class. Sent from my iPod On Jan 16, 2009, at 3:47 PM, Bob Wohl bob.w...@gmail.com wrote: real

Re: [Flashcoders] AS3 Nice Knob(s)

2009-01-16 Thread Anthony Pace
I know most applications use sliders; yet, I actually prefer the knobs that are more realistic. In my opinion, if you are going to make it look like a knob, it should function like one. To create them, I think a good way is to track the mouse's x,y and angle, using the centre of the knob as