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
MovieClip. There is one display list that has things added and removed (or
transformed or Tweened) as the playhead advances. 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.

Is this explanation helpful?


2009/1/15 Joel Stransky stranskydes...@gmail.com

 I've read that before. a couple of times. The question here is what happens
 to frames after the playhead leaves, not when Loader.unload() is called. I
 wasn't sure if each frame had their own display list or or just one per
 timeline. It seems like the sensible thing to do would have been to make a
 Frame class that extends DisplayObjectContainer where their display lists
 were eligable for gc after the playhead left. I set up the test files with
 the intention of seeing if fp9 acted that way or not.

 On Thu, Jan 15, 2009 at 10:55 PM, Jason Boyd jayb...@gmail.com wrote:

  You are asking a key question with AS3. Cleaning up movie clips is
 *hard*.
  There is a list of things that must be done, and they've made it hard to
 do
  all that.
 
  Here's a decent place to start reading:
  http://www.gskinner.com/blog/archives/2008/04/failure_to_unlo.html
 
 
 
  2009/1/14 Joel Stransky j...@stranskydesign.com
 
   Are you saying display lists are persistent through an entire
 movieclips
   timeline?
  
   On Wed, Jan 14, 2009 at 7:32 AM, Cor c...@chello.nl wrote:
  
If you declare target_mc in your Parent class and
 addChild(target_mc)it
does exist everywhere.
   
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
  
  
  
   --
   --Joel Stransky
   stranskydesign.com
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



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

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


Re: [Flashcoders] [AS3] 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 blank 
keyframe. playing means that if the playhead was in play mode, the 
playhead continues playing, possibly triggering sounds, scripts, etc... :(


It seems that as3 dev team just forgot what a blank keyframe is.

I'm interested in the topic of removeMovieClip in as3, because it's a 
convenient use of the timeline, but I didn't take time to establish best 
practices about it.


However here are some tracks or tips:
- listen to REMOVED_FROM_STAGE at the top of display list. When an 
object is removed, stop it.
- add complex behaviors to displayObjects (such as listeners, sounds, 
timers, etc..) using a safe API. That is: when you add something new 
(for example A) to displayObject B, you listen B's REMOVED_FROM_STAGE to 
dispose A.


I don't want to use a IDisposable interface everywhere. Probably I will 
use a more brutal approach with a function similar to 
http://blog.gludion.com/2008/11/script-code-test.html (sorry it's in 
french but the script is quite self-explanatory).


I anyone has other ideas, don't hesitate to share ;)


--
Olivier Besson (gludion) - (33 1) 44 64 78 99
http://www.gludion.com
http://blog.gludion.com

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


[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 for those dynamic
textfields, the textfield loses all formatting it had, so, I need to rewrite
via TextFormat. Am I doing something wrong, or isn't possible use timeline
text formatting in runtime?

Thanks so much,

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 Coders List
Subject: [Flashcoders] [flash textfield] lose formatting

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 for those dynamic
textfields, the textfield loses all formatting it had, so, I need to rewrite
via TextFormat. Am I doing something wrong, or isn't possible use timeline
text formatting in runtime?

Thanks so much,

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.10.8/1897 - Release Date: 16-1-2009
6:52


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


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 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 Coders List
 Subject: [Flashcoders] [flash textfield] lose formatting

 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 for those
 dynamic
 textfields, the textfield loses all formatting it had, so, I need to
 rewrite
 via TextFormat. Am I doing something wrong, or isn't possible use timeline
 text formatting in runtime?

 Thanks so much,

 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.10.8/1897 - Release Date: 16-1-2009
 6:52


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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 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 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 Coders List
Subject: [Flashcoders] [flash textfield] lose formatting

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 for those
dynamic
textfields, the textfield loses all formatting it had, so, I need to
rewrite
via TextFormat. Am I doing something wrong, or isn't possible use timeline
text formatting in runtime?

Thanks so much,

--
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.8/1897 - Release Date: 16-1-2009
6:52


___
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] [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 g...@engineeredarts.co.ukwrote:

 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 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 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 Coders List
 Subject: [Flashcoders] [flash textfield] lose formatting

 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 for those
 dynamic
 textfields, the textfield loses all formatting it had, so, I need to
 rewrite
 via TextFormat. Am I doing something wrong, or isn't possible use
 timeline
 text formatting in runtime?

 Thanks so much,

 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.10.8/1897 - Release Date:
 16-1-2009
 6:52


 ___
 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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 = new FFFInterface().fontName;
fmt1.size = 18;

var fmt2:TextFormat = new TextFormat(); 
fmt2.font = new LasVegasD().fontName; 
fmt2.size = 18;

var txt:TextField = new TextField();
txt.width = 400;
txt.embedFonts = true;
txt.text=ActionScript;
//set textformat from beginIndex to EndIndex
txt.setTextFormat(fmt1,0,6);
txt.setTextFormat(fmt2,6,12);
txt.y = 10;
addChild(txt);


//CSS Example
var style:StyleSheet = new StyleSheet();

var heading:Object = new Object();
heading.fontFamily = new Wdings().fontName;
heading.fontSize=24;
heading.fontWeight=bold;
heading.fontStyle=italic;
heading.color=#FF;

var body:Object = new Object();
body.fontFamily = new LasVegasD().fontName;
body.fontSize=24;
body.fontWeight=bold;
body.fontStyle=italic;
body.color=#FF;

style.setStyle(.heading, heading);
style.setStyle(body, body);

var label:TextField = new TextField();
label.width = 400;
label.embedFonts = true;
label.styleSheet=style;
label.htmlText=bodyspan class='heading'Hello/span World.../body;
label.y = 80;
addChild(label);

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


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
 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 g...@engineeredarts.co.uk
 wrote:

  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 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 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 Coders List
  Subject: [Flashcoders] [flash textfield] lose formatting
 
  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 for those
  dynamic
  textfields, the textfield loses all formatting it had, so, I need to
  rewrite
  via TextFormat. Am I doing something wrong, or isn't possible use
  timeline
  text formatting in runtime?
 
  Thanks so much,
 
  --
  Fábio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com
  Version: 8.0.176 / Virus Database: 270.10.8/1897 - Release Date:
  16-1-2009
  6:52
 
 
  ___
  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
 



 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


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 List
Subject: Re: [Flashcoders] [flash textfield] lose formatting

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 g...@engineeredarts.co.ukwrote:

 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 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 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 Coders List
 Subject: [Flashcoders] [flash textfield] lose formatting

 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 for those
 dynamic
 textfields, the textfield loses all formatting it had, so, I need to
 rewrite
 via TextFormat. Am I doing something wrong, or isn't possible use
 timeline
 text formatting in runtime?

 Thanks so much,

 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.10.8/1897 - Release Date:
 16-1-2009
 6:52


 ___
 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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.10.8/1897 - Release Date: 16-1-2009
6:52


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


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 to easily create TextField and apply styles from a 
stylesheet, you can set a lot TextField and TextFormat properties 
straight from the stylesheet if you wish. It is a single class that is 
extending the TextField built-in one, very easy to use.


Quick intro:
http://www.soundstep.com/blog/2009/01/07/somatext-standalone/

Source:
http://www.soundstep.com/blog/downloads/somatext/

List of properties you can use in the stylesheet:
http://www.soundstep.com/somaprotest/www/#/stylesheet/css-properties/

And for the curious, SomaText is part of Soma (MVC Framework):
http://www.soundstep.com/somaprotest/

Hope it helps.

Romu
www.soundstep.com

Cor wrote:

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 = new FFFInterface().fontName;
fmt1.size = 18;

var fmt2:TextFormat = new TextFormat(); 
fmt2.font = new LasVegasD().fontName; 
fmt2.size = 18;


var txt:TextField = new TextField();
txt.width = 400;
txt.embedFonts = true;
txt.text=ActionScript;
//set textformat from beginIndex to EndIndex
txt.setTextFormat(fmt1,0,6);
txt.setTextFormat(fmt2,6,12);
txt.y = 10;
addChild(txt);


//CSS Example
var style:StyleSheet = new StyleSheet();

var heading:Object = new Object();
heading.fontFamily = new Wdings().fontName;
heading.fontSize=24;
heading.fontWeight=bold;
heading.fontStyle=italic;
heading.color=#FF;

var body:Object = new Object();
body.fontFamily = new LasVegasD().fontName;
body.fontSize=24;
body.fontWeight=bold;
body.fontStyle=italic;
body.color=#FF;

style.setStyle(.heading, heading);
style.setStyle(body, body);

var label:TextField = new TextField();
label.width = 400;
label.embedFonts = true;
label.styleSheet=style;
label.htmlText=bodyspan class='heading'Hello/span World.../body;
label.y = 80;
addChild(label);

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

  


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


[Flashcoders] RE: 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 know the precedence of multiplication means I didn't really need to
put the parenthesis around txtPad * 2 but I like to make things more
readable.

 

Anyway, assigning the DataGrid's headerRenderer style to the new
HeaderRenderer class has everything working properly.

 

 

Craig Bowman

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


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: 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 Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] [JOB] 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 lindawel...@sbcglobal.netwrote:

 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: 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 Software
 http://www.figleaf.com/

 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 ___
 Flashcoders 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




-- 

Cheers,
Nate

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


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
remove everything I've started for now. I do like that superDestroy()
function though.

On Fri, Jan 16, 2009 at 6:31 AM, Olivier Besson ol...@gludion.com wrote:



   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 blank keyframe.
 playing means that if the playhead was in play mode, the playhead
 continues playing, possibly triggering sounds, scripts, etc... :(

 It seems that as3 dev team just forgot what a blank keyframe is.

 I'm interested in the topic of removeMovieClip in as3, because it's a
 convenient use of the timeline, but I didn't take time to establish best
 practices about it.

 However here are some tracks or tips:
 - listen to REMOVED_FROM_STAGE at the top of display list. When an object
 is removed, stop it.
 - add complex behaviors to displayObjects (such as listeners, sounds,
 timers, etc..) using a safe API. That is: when you add something new (for
 example A) to displayObject B, you listen B's REMOVED_FROM_STAGE to
 dispose A.

 I don't want to use a IDisposable interface everywhere. Probably I will use
 a more brutal approach with a function similar to
 http://blog.gludion.com/2008/11/script-code-test.html (sorry it's in
 french but the script is quite self-explanatory).

 I anyone has other ideas, don't hesitate to share ;)


 --
 Olivier Besson (gludion) - (33 1) 44 64 78 99
 http://www.gludion.com
 http://blog.gludion.com


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




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


[Flashcoders] 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, someone(there is no reference to stop()  
in the display library???) knows how to stop it?


Gustavo D.


Gustavo A. Duenas

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


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 Gustavo
Duenas
Sent: Friday, January 16, 2009 10:43 AM
To: Flash Coders List
Subject: [Flashcoders] help stopping an external clip on as3



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, someone(there is no reference to stop()  
in the display library???) knows how to stop it?

Gustavo D.


Gustavo A. Duenas

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


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


[Flashcoders] 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
(detents) would be a huge plus.

If the code is accessible, that would be super awesome for tweaking.

Tried googling, haven't found anything close yet. Any help?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 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
(detents) would be a huge plus.

If the code is accessible, that would be super awesome for tweaking.

Tried googling, haven't found anything close yet. Any help?

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


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-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 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
 (detents) would be a huge plus.

 If the code is accessible, that would be super awesome for tweaking.

 Tried googling, haven't found anything close yet. Any help?

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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[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 several milestones are bunched together. If I
draw the label for each marker at the exact y coordinate that
corresponds with that particular point in time, the labels will
overlap, and are unreadable.

One obvious solution is to stack the labels horizontally, but because
of the particular layout of this application, that's not possible.

So, what I need is an algorithm that will nudge the Y coordinate of
various labels just enough to get everything to fit. Then, I'll draw a
hairline from the label to the exact Y coordinate on the timeline that
it's associated with.

I could start with the top label, and then step through each label
below, moving them each down enough to remove overlaps. But that could
result in a lot more moving than necessary, and won't use space
optimally. A better solution would be one that moves some up, some
down, to minimize the total distance.

Here's an exact example of what I'm trying to accomplish:
http://www.smartmoney.com/fundanalyzer/

Is anyone aware of an algorithm that does something like this?

Many thanks in advance for any insights or advice!

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


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-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki
Sent: Friday, January 16, 2009 12:17 PM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 Nice Knob(s)

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-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 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
 (detents) would be a huge plus.

 If the code is accessible, that would be super awesome for tweaking.

 Tried googling, haven't found anything close yet. Any help?

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




--
http://ericd.net
Interactive design and development

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


[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 these markers will have a label.

The problem arises when several milestones are bunched together. If I
draw the label for each marker at the exact y coordinate that
corresponds with that particular point in time, the labels will
overlap, and are unreadable.

One obvious solution is to stack the labels horizontally, but because
of the particular layout of this application, that's not possible.

So, what I need is an algorithm that will nudge the Y coordinate of
various labels just enough to get everything to fit. Then, I'll draw a
hairline from the label to the exact Y coordinate on the timeline that
it's associated with.

I could start with the top label, and then step through each label
below, moving them each down enough to remove overlaps. But that could
result in a lot more moving than necessary, and won't use space
optimally. A better solution would be one that moves some up, some
down, to minimize the total distance.

Here's an exact example of what I'm trying to accomplish:
http://www.smartmoney.com/fundanalyzer/

Is anyone aware of an algorithm that does something like this?

Many thanks in advance for any insights or advice!

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


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 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 several milestones are bunched together. If I
 draw the label for each marker at the exact y coordinate that
 corresponds with that particular point in time, the labels will
 overlap, and are unreadable.

 One obvious solution is to stack the labels horizontally, but because
 of the particular layout of this application, that's not possible.

 So, what I need is an algorithm that will nudge the Y coordinate of
 various labels just enough to get everything to fit. Then, I'll draw a
 hairline from the label to the exact Y coordinate on the timeline that
 it's associated with.

 I could start with the top label, and then step through each label
 below, moving them each down enough to remove overlaps. But that could
 result in a lot more moving than necessary, and won't use space
 optimally. A better solution would be one that moves some up, some
 down, to minimize the total distance.

 Here's an exact example of what I'm trying to accomplish:
 http://www.smartmoney.com/fundanalyzer/

 Is anyone aware of an algorithm that does something like this?

 Many thanks in advance for any insights or advice!

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

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


Re: [Flashcoders] AS3 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 edole...@gmail.com wrote:

 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 at 3:27 PM, Patrick Matte|BLITZ 
 pma...@blitzagency.com
  wrote:

  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-
  From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
  flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki
  Sent: Friday, January 16, 2009 12:17 PM
  To: Flash Coders List
  Subject: Re: [Flashcoders] AS3 Nice Knob(s)
 
  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-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 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
   (detents) would be a huge plus.
  
   If the code is accessible, that would be super awesome for tweaking.
  
   Tried googling, haven't found anything close yet. Any help?
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
  --
  http://ericd.net
  Interactive design and development
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 http://ericd.net
 Interactive design and development

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


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


Re: [Flashcoders] AS3 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 at 3:27 PM, Patrick Matte|BLITZ pma...@blitzagency.com
 wrote:

 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-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki
 Sent: Friday, January 16, 2009 12:17 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] AS3 Nice Knob(s)

 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-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 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
  (detents) would be a huge plus.
 
  If the code is accessible, that would be super awesome for tweaking.
 
  Tried googling, haven't found anything close yet. Any help?
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 http://ericd.net
 Interactive design and development

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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 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  
edole...@gmail.com wrote:


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 at 3:27 PM, Patrick Matte|BLITZ 
pma...@blitzagency.com

wrote:


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-
From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E.  
Dolecki

Sent: Friday, January 16, 2009 12:17 PM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 Nice Knob(s)

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-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 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º revolu 
tions

(detents) would be a huge plus.

If the code is accessible, that would be super awesome for  
tweaking.


Tried googling, haven't found anything close yet. Any help?

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





--
http://ericd.net
Interactive design and development

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





--
http://ericd.net
Interactive design and development

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



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


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


Re: [Flashcoders] AS3 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 the origin, and then if cursor.y 
 origin.y disable the knob from moving past given points, unless the 
user goes backward.


Patrick Matte|BLITZ wrote:

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-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki
Sent: Friday, January 16, 2009 12:17 PM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 Nice Knob(s)

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-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 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
(detents) would be a huge plus.

If the code is accessible, that would be super awesome for tweaking.

Tried googling, haven't found anything close yet. Any help?

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






--
http://ericd.net
Interactive design and development

___
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