[flexcoders] Re: Increasing the Panel scroll speed?

2009-04-13 Thread Michael Schmalle
Hi,

You can use these two properties to control scroll speed;

container.verticalLineScrollSize
container.verticalPageScrollSize

Mike

--- In flexcoders@yahoogroups.com, Sascha sbal...@... wrote:

 In Flex if you wrap a component into a Panel (or Canvas) which is larger
 than the Panel, by default the Panel will show scroll bars and can be
 scrolled. However the default speed for this scrolling is very slow so I'm
 wondering if there is any known workaround to make them faster? There seems
 to be no property or style which could control the speed.
 
 Sascha





[flexcoders] Re: Accessing the border of a container

2009-04-09 Thread Michael Schmalle
Hi,

using mx_internal you could;

import mx.core.mx_internal;

myInstance.tk_internal::background


or;

rawChildren.getChildByName(border);

Mike

--- In flexcoders@yahoogroups.com, florian.salihovic florian.saliho...@... 
wrote:

 I don't know if i'm just blind atm or if it's indded hard to access the 
 border of a Container.
 
 I can access the rawChildren. That's good since i could introspect the 
 children's class name and search for the classname of the asset. But my 
 problem ist, that the border get's compiled and the classname might change. 
 As far as i see, the original name will bechanged to something like:
 
 suprise__embed_cssflash_PlaylistAssets_swf_some_name_for the 
 asset_1052501028
 
 Is there a chance to simply get access to the border?
 
 Best regards!





[flexcoders] Re: Creating a SWc without the Flex classes?

2009-04-09 Thread Michael Schmalle
Hi,

I use this in my build file;

!-- Include the necessary framework libraries as external libraries --
arg line=-external-library-path '${flexsdk.libs.player.dir}'/
arg line=-external-library-path '${flexsdk.libs.dir}'/

This uses those swcs to compile against but bot include the byte code in your 
swc.

Mike

--- In flexcoders@yahoogroups.com, Sascha sbal...@... wrote:

 Hi List,
 
 I'm trying to compile a SWC with compc (Flex 3.3) from my source code
 library but the compiler always includes all the default Flex classes which
 makes the SWC quite large. Is there a way to exlude all the Flex classes
 from being in the resulting SWC or is this a necessity?
 
 Sascha





Re: [flexcoders] Re: UI component, a set function creationComplete

2008-10-30 Thread Michael Schmalle
Amy,
  These functions are in place for very good reasons, and if you try to
circumvent them you have a
really good chance of running into problems.
I will happily disagree with you on this and not say much else. I don't feel
like getting into a pissing match with documentation, as I am sure this is
what you are quoting. My information comes from 3 years of low level
component development experience.

 circumvent

Who ever said this? I don't think you quite understand what I am talking
about.

 you are probably going to fail miserably unless you put that logic in
 _before_ the super.commitProperties().
This is just plain wrong. I don't have time to write an essay on why you
don't understand what I said.

Mike

On Thu, Oct 30, 2008 at 1:53 AM, Eric Cooper [EMAIL PROTECTED] wrote:

   Thanks, Amy.

 I have decided that my own model is more convoluted than is healthy. So, I
 have reworked
 things on my side and stuck with createChildren(). I was tempted to try
 Mike's suggestion
 - and, had I felt really good about my implementation, I might have.

 At this point, with more checks for null values than ideally there should
 be, things are
 working in various scenarios.

 Thanks again,
 -Eric


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy
 [EMAIL PROTECTED] wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Michael Schmalle
  teoti.graphix@ wrote:
  
   Hi Eric,
So, my question is does your approach address this by creating
  children
   in
   commitProperties()
   Yes,
  
   This is basically what I do with all renderers in my commercial
  components.
   I rarely use createChildren(). The only time I use createChilren()
  is when
   the composite is 100% owned by it's parent containing the creation
  code.
  
   commitProperties() will solve all timing issues if implemented
  correctly.
  
   I'm not quite sure I get what you are asking in the second half
  but, all
   item renderers use this algorithm which their state is entirely
  dependent on
   the data being pushed into the component either through data or
  public
   accessors.
  
   This means that children will not be instantiated until the data is
  present
   for their instantiation.
  
   If this doesn't make sense, try to clarify a bit more.
 
  It's probably better practice to create children in createChildren,
  then use commitProperties to do whatever setting of properties needs
  to be done, and then use updateDisplayList() to do any layout, and
  measure() to resolve any sizing issues. These functions are in place
  for very good reasons, and if you try to circumvent them you have a
  really good chance of running into problems.
 
  For instance, if you put child creation logic in commitProperties(),
  you are probably going to fail miserably unless you put that logic in
  _before_ the super.commitProperties(). That's because any children
  should be created prior to commitProperties. And that's the reason
  there's a commitProperties() function that's separate from
  createChildren(). Oh, and if you do anything that edits layout,
  etc., in commitProperties, you better do it _after_ the super. Guess
  why?
 
  You should try and catch her state changes and defer them until the
  appropriate moment in the invalidation process.
 
  If what's going on is that her logic is affecting public properties
  or styles that you've exposed on your class, then you just need to
  make sure that they set a flag and call the right invalidation method
  so that you can execute at the correct place in the invalidation
  process.
 
  HTH;
 
  Amy
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: UI component, a set function creationComplete

2008-10-30 Thread Michael Schmalle
well big mouth has to say one more thing,

Imagine commitProperties() committing property states :) , all of your
properties have been committed. Children can be created at any time AFTER
super().

What you fail to see is commitProperties() is a glorified createChildren().
This only thing cool about createChildren() is Container calls
createComponentDescriptors() which is a heavy method.

Other than the above, commitProperties() ALWAYS runs before measure() and
updateDisplayList() so there is never a problem with creating children in
commitProperties().

But subclassing a UIComponent, give me a break. I was under the impression
from Eric's post that his issue was more than just create the children in
create children, why the hell would I tell him to circumvent a template
method!?

Sorry, your post felt a little personal.

Mike


On Thu, Oct 30, 2008 at 6:40 AM, Michael Schmalle
[EMAIL PROTECTED]wrote:

 Amy,
   These functions are in place for very good reasons, and if you try to
 circumvent them you have a
 really good chance of running into problems.
 I will happily disagree with you on this and not say much else. I don't
 feel like getting into a pissing match with documentation, as I am sure this
 is what you are quoting. My information comes from 3 years of low level
 component development experience.

  circumvent

 Who ever said this? I don't think you quite understand what I am talking
 about.

  you are probably going to fail miserably unless you put that logic in
  _before_ the super.commitProperties().
 This is just plain wrong. I don't have time to write an essay on why you
 don't understand what I said.

 Mike



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy
 [EMAIL PROTECTED] wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Michael Schmalle
  teoti.graphix@ wrote:
  
   Hi Eric,
So, my question is does your approach address this by creating
  children
   in
   commitProperties()
   Yes,
  
   This is basically what I do with all renderers in my commercial
  components.
   I rarely use createChildren(). The only time I use createChilren()
  is when
   the composite is 100% owned by it's parent containing the creation
  code.
  
   commitProperties() will solve all timing issues if implemented
  correctly.
  
   I'm not quite sure I get what you are asking in the second half
  but, all
   item renderers use this algorithm which their state is entirely
  dependent on
   the data being pushed into the component either through data or
  public
   accessors.
  
   This means that children will not be instantiated until the data is
  present
   for their instantiation.
  
   If this doesn't make sense, try to clarify a bit more.
 
  It's probably better practice to create children in createChildren,
  then use commitProperties to do whatever setting of properties needs
  to be done, and then use updateDisplayList() to do any layout, and
  measure() to resolve any sizing issues. These functions are in place
  for very good reasons, and if you try to circumvent them you have a
  really good chance of running into problems.
 
  For instance, if you put child creation logic in commitProperties(),
  you are probably going to fail miserably unless you put that logic in
  _before_ the super.commitProperties(). That's because any children
  should be created prior to commitProperties. And that's the reason
  there's a commitProperties() function that's separate from
  createChildren(). Oh, and if you do anything that edits layout,
  etc., in commitProperties, you better do it _after_ the super. Guess
  why?
 
  You should try and catch her state changes and defer them until the
  appropriate moment in the invalidation process.
 
  If what's going on is that her logic is affecting public properties
  or styles that you've exposed on your class, then you just need to
  make sure that they set a flag and call the right invalidation method
  so that you can execute at the correct place in the invalidation
  process.
 
  HTH;
 
  Amy
 

  




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: UI component, a set function creationComplete

2008-10-30 Thread Michael Schmalle
Clarification;
 Children can be created at any time AFTER super().

Since we all design software with a design, any property committal in a
super() call has nothing to do with an instance of a child you create in the
subclass (this is bad design). Thus, the above logic holds true.

Mike

On Thu, Oct 30, 2008 at 6:50 AM, Michael Schmalle
[EMAIL PROTECTED]wrote:

 well big mouth has to say one more thing,

 Imagine commitProperties() committing property states :) , all of your
 properties have been committed. Children can be created at any time AFTER
 super().

 What you fail to see is commitProperties() is a glorified createChildren().
 This only thing cool about createChildren() is Container calls
 createComponentDescriptors() which is a heavy method.

 Other than the above, commitProperties() ALWAYS runs before measure() and
 updateDisplayList() so there is never a problem with creating children in
 commitProperties().

 But subclassing a UIComponent, give me a break. I was under the impression
 from Eric's post that his issue was more than just create the children in
 create children, why the hell would I tell him to circumvent a template
 method!?

 Sorry, your post felt a little personal.

 Mike


 On Thu, Oct 30, 2008 at 6:40 AM, Michael Schmalle [EMAIL PROTECTED]
  wrote:

 Amy,
   These functions are in place for very good reasons, and if you try to
 circumvent them you have a
 really good chance of running into problems.
 I will happily disagree with you on this and not say much else. I don't
 feel like getting into a pissing match with documentation, as I am sure this
 is what you are quoting. My information comes from 3 years of low level
 component development experience.

  circumvent

 Who ever said this? I don't think you quite understand what I am talking
 about.

  you are probably going to fail miserably unless you put that logic in
  _before_ the super.commitProperties().
 This is just plain wrong. I don't have time to write an essay on why you
 don't understand what I said.

 Mike



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy
 [EMAIL PROTECTED] wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Michael Schmalle
  teoti.graphix@ wrote:
  
   Hi Eric,
So, my question is does your approach address this by creating
  children
   in
   commitProperties()
   Yes,
  
   This is basically what I do with all renderers in my commercial
  components.
   I rarely use createChildren(). The only time I use createChilren()
  is when
   the composite is 100% owned by it's parent containing the creation
  code.
  
   commitProperties() will solve all timing issues if implemented
  correctly.
  
   I'm not quite sure I get what you are asking in the second half
  but, all
   item renderers use this algorithm which their state is entirely
  dependent on
   the data being pushed into the component either through data or
  public
   accessors.
  
   This means that children will not be instantiated until the data is
  present
   for their instantiation.
  
   If this doesn't make sense, try to clarify a bit more.
 
  It's probably better practice to create children in createChildren,
  then use commitProperties to do whatever setting of properties needs
  to be done, and then use updateDisplayList() to do any layout, and
  measure() to resolve any sizing issues. These functions are in place
  for very good reasons, and if you try to circumvent them you have a
  really good chance of running into problems.
 
  For instance, if you put child creation logic in commitProperties(),
  you are probably going to fail miserably unless you put that logic in
  _before_ the super.commitProperties(). That's because any children
  should be created prior to commitProperties. And that's the reason
  there's a commitProperties() function that's separate from
  createChildren(). Oh, and if you do anything that edits layout,
  etc., in commitProperties, you better do it _after_ the super. Guess
  why?
 
  You should try and catch her state changes and defer them until the
  appropriate moment in the invalidation process.
 
  If what's going on is that her logic is affecting public properties
  or styles that you've exposed on your class, then you just need to
  make sure that they set a flag and call the right invalidation method
  so that you can execute at the correct place in the invalidation
  process.
 
  HTH;
 
  Amy
 

  




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: How do arguments to an AS3 class translate to MXML?

2008-10-30 Thread Michael Schmalle
Note ::
The IMXMLObject method signature is (d);

initializedhttp://127.0.0.1:49487/help/topic/com.adobe.flexbuilder.help/langref/mx/core/IMXMLObject.html#initialized()
(document:Objecthttp://127.0.0.1:49487/help/topic/com.adobe.flexbuilder.help/langref/Object.html,
id:Stringhttp://127.0.0.1:49487/help/topic/com.adobe.flexbuilder.help/langref/String.html
):voidhttp://127.0.0.1:49487/help/topic/com.adobe.flexbuilder.help/langref/specialTypes.html#void

the UIComponent's initializer is not initialized(), it's;

initialize():void

The UIComponent.initialized is a property not a method.

Mike

On Thu, Oct 30, 2008 at 10:33 AM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh
 McDonald [EMAIL PROTECTED] wrote:
 
  Public properties or setter methods will be available in MXML. You can
  annotate them with various forms on [Inspectable] to get useful
  code-completion as well. If you implement IMXMLObject, initialize()
 will be
  called once all the fields declared in the mxml tag have been set.

 Note that UIComponent contains a different initialize() method, so you
 can't use the IMXMLObject one for anything that inherits from
 UIComponent.

 HTH;

 Amy

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: How do arguments to an AS3 class translate to MXML?

2008-10-30 Thread Michael Schmalle
Regarding

 The AS3 class takes an argument.

For future reference, IMXMLObject implemented as3 classes cannot have
arguments in their constructors.

As josh said, just shift your constructor logic to a setter and treat it as
if it were an argument.

Mike


-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: UI component, a set function creationComplete

2008-10-30 Thread Michael Schmalle
Amy,
I have read all that you have written. 2 years of sales, no complaints on
the algorithm I use.

 So it very much matters where you create children when _other people_ are
going to be subclassing your work.

I have created a sub template in commitProperties(); That can
be overridden from any subclass since it separates operations into hooks.

1.

public function set titleBarRenderer(value:IFactory):void
{
if (_titleBarRenderer != value)
{
_titleBarRenderer = value;
titleBarRendererChanged = true;
invalidateProperties();
dispatchEvent(new Event(titleBarRendererChanged));
}
}

2.

override public function commitProperties():void
{
super.commitProperties();

if (titleBarRendererChanged)
{
commitTitleBarRenderer();
titleBarRendererChanged = false;
}
}

3.

protected function commitTitleBarRenderer():void
{
 createTitleBar();
}

4.

protected function createTitleBar():void
{
_titleBar  = PartFactory.createComponentPart(
TITLE_BAR_NAME, this, rawChildren,
DisplayObject(_titleBar));
}

5.

tk_internal function partAdded(name:String, instance:Object):void
{
if (instance == _titleBar )
{
    configuration
}
}

As far as not releasing code, this next iteration of products will have
source code, but the template is still the same.

I hear you on the I listen to respected developers on this list but, this
way works even better than how the framework is set up (for subclassing).
Adds more method calls but, it's impact is irrelevant since these calls are
not 100 every minute. I also use this template for other properties that are
not processor intensive or called to frequently.

Mike



On Thu, Oct 30, 2008 at 11:44 AM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Michael Schmalle
 [EMAIL PROTECTED] wrote:
 
  Clarification;
   Children can be created at any time AFTER super().
 
  Since we all design software with a design, any property committal
 in a
  super() call has nothing to do with an instance of a child you
 create in the
  subclass (this is bad design). Thus, the above logic holds true.

 But someone subclassing your Class may not have the same
 understanding of your design that you do, and it is quite common for
 developers to try to set properties on child objects in
 commitProperties. I've even been advised to do so in this forum by
 people I respect. Maybe in retrospect it was a bad idea to take such
 advice, but new developers are going to continue getting such advice
 and taking it.

 So it very much matters where you create children when _other people_
 are going to be subclassing your work.

 -Amy
 -Amy

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: How do arguments to an AS3 class translate to MXML?

2008-10-30 Thread Michael Schmalle
This wasn't a personal challenge. I didn't say you were wrong, I noted that
the mxml interface method had a d on the end. I then said UIComponent has
an initialized property like the method in the mxml interface.
Writing emails to a forum is kind of relaxing compared to the rest of the
day. Maybe you should ask me to clarify better before adding paragraphs
unrelated to what I was trying to convey.

If I interpreted the question wrong and you can see it (leading a developer
down the wrong road), try to clarify the misinterpretation with a question.

Mike

On Thu, Oct 30, 2008 at 2:22 PM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Michael Schmalle
 [EMAIL PROTECTED] wrote:
 
  Note ::
  The IMXMLObject method signature is (d);
 
 
 initializedhttp://127.0.0.1:49487/help/topic/com.adobe.flexbuilder.he
 lp/langref/mx/core/IMXMLObject.html#initialized()
 
 (document:Objecthttp://127.0.0.1:49487/help/topic/com.adobe.flexbuild
 er.help/langref/Object.html,
 
 id:Stringhttp://127.0.0.1:49487/help/topic/com.adobe.flexbuilder.help
 /langref/String.html
  ):voidhttp://127.0.0.1:49487/help/topic/com.adobe.flexbuilder.help/
 langref/specialTypes.html#void
 
  the UIComponent's initializer is not initialized(), it's;
 
  initialize():void
 
  The UIComponent.initialized is a property not a method.

 It's a setter, which is a method. IOW, you can't implement this
 interface with anything that inherits from UIComponent. Not sure why
 you take everything I say as a personal challenge, but feel free to
 try it if you don't believe me.

  



Re: [flexcoders] Daily WTF... Property top not found on mx.containers.HBox and there is no default value.

2008-10-29 Thread Michael Schmalle
Hi,
Whenever in doubt always look at the asdoc's before hitting critical mass.
:)

Also, Flex Builder uses icons next to code completion that give you the type
of member as well (event, effect, style or property).

Mike

On Tue, Oct 28, 2008 at 6:05 PM, Ralf Bokelberg [EMAIL PROTECTED]wrote:

   top is not a property, it is a style.
 The solution is to use setStyle instead of setProperty

 Ralf.


 On Tue, Oct 28, 2008 at 10:34 PM, Adrian Williams
 [EMAIL PROTECTED] adrianw%40familytreedna.com wrote:
  All,
 
  Ok, so this is a bit infuriating...how is it that this is choking on my
  setting a top property from within a state for an HBox, which by all
  appearances is a very valid property for an HBox? All I've found on
 Google
  is everyone saying...'oh you need to get the latest flash plugin'...well,
  all that does is surpress the error message...there's a reason I'm using
 the
  Flash debugger...
 
  So, here is the code:
 
  mx:HBox width=98% height=100% horizontalCenter=0
  top=10 bottom=10 id=groupedParts
  mx:AdvancedDataGrid
  .
  .
  .
 
  Then in my state change, I need to change the relative position of the
  hbox to allow for an inserted line of text:
 
  mx:SetProperty target={groupedParts} name=top value=27/
 
  So when I run the app and change the state, it throws the error
  ReferenceError: Error #1069: Property top not found on mx.containers.HBox
  and there is no default value.
  at
 
 mx.states::SetProperty/apply()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\states\SetProperty.as:205]
  .
  .
  .
 
  I would greatly appreciate any help anyone can provide into this very
  mysterious error...
 
  Thanks,
  Adrian
 
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Daily WTF... Property top not found on mx.containers.HBox and there is no default value.

2008-10-29 Thread Michael Schmalle
Yup, thats right.
Sorry I didn't mention these things, but the puff ball on crack, that is
original.

I'm sure in future versions there will be even more puff balls
to distinguish from. The Java perspective is awesome when it comes this
stuff, but Flex code analyzation has a ways to go.

Mike

On Wed, Oct 29, 2008 at 11:00 AM, Adrian Williams [EMAIL PROTECTED]
 wrote:

Actually, reading Mike's email...

 green circle == property
 blue squares == style
 lightning bolt == event
 puffball on crack == effect

 Does this sound right?

 Also, when looking at the navigator, in class view, the icons can be
 seen again...sort of

 green circle == public
 red square == private
 yellow diamond == internal

 Adrian

 Adrian Williams wrote:

  I was wondering the same thing...looks to me like

 green circle == property
 blue squares == style
 lightning bolt == function
 and no clue what the puffball-like icon is or what it's for

 Adrian

 Amy wrote:

  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Michael Schmalle
 [EMAIL PROTECTED] wrote:
 
  Hi,
  Whenever in doubt always look at the asdoc's before hitting critical
 mass.
  :)
 
  Also, Flex Builder uses icons next to code completion that give you
 the type
  of member as well (event, effect, style or property).

 Is there a document anywhere that defines what all these icons mean?

 




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Flex builder annoyance - library projects

2008-10-29 Thread Michael Schmalle
Hi,
I can say ANT is your answer, build the SWC using it. I have very complex
libraries, and all I maintain is a simple ant xml included file (that is
imported from the master build file, this includes multiple project library
builds at once) that lists the front end class clients, the linker resolves
the rest.

This way you can checkout and commit these files in collaboration.

Mike

On Wed, Oct 29, 2008 at 11:41 AM, diehlryan [EMAIL PROTECTED] wrote:

   Does anyone else find it annoying that you must explicitly specify the
 classes that are included in your library project via the Flex Library
 Build Path? This is especially annoying in a team environment when
 someone else adds a new class, and I have to explicitly add it in
 order to get a successful compilation. (I won't even go into the
 issues I have with the compiler).

 If you look at how Eclipse handles this, you specify a source folder
 and then can optionally specify anything that should be excluded from
 compilation. This way, you can just say my code is here and it
 picks up everything unless you tell it not to.

 Even if the compiler needs to know exactly which files to use, I think
 a nice feature would be to automatically generate that
 flexLibProperties file for you.

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: UI component, a set function creationComplete

2008-10-29 Thread Michael Schmalle
Hi Eric,
 So, my question is does your approach address this by creating children
in
commitProperties()
Yes,

This is basically what I do with all renderers in my commercial components.
I rarely use createChildren(). The only time I use createChilren() is when
the composite is 100% owned by it's parent containing the creation code.

commitProperties() will solve all timing issues if implemented correctly.

I'm not quite sure I get what you are asking in the second half but, all
item renderers use this algorithm which their state is entirely dependent on
the data being pushed into the component either through data or public
accessors.

This means that children will not be instantiated until the data is present
for their instantiation.

If this doesn't make sense, try to clarify a bit more.

Mike



On Wed, Oct 29, 2008 at 3:16 PM, Eric Cooper [EMAIL PROTECTED] wrote:

   Mike,
 I am wondering if what I am experiencing with createChildren() is similar
 to what you've
 described below. I am subclassing UIComponent - and I read that it is best
 to create
 children in a createChildren() method.

 However, I am tying into someone else's existing code and she has done some
 nice work
 with loading state. Her code creates a new instance (of the class mentioned
 above that
 extends UIComponent - let's call it BTProcess).

 What I am finding is that after the instantiation, the new object is having
 properties set ON
 children that have not yet been instantiated and hooked up to BTProcess.

 I am guessing that I could have the state-loading code broken into two
 parts: one the
 instantiates and one that listens for CREATION_COMPLETE event before
 setting properties.
 But I am wondering if there is a faster way to do this.

 So, my question is does your approach address this by creating children in
 commitProperties() and does this provide a work-around to the problem that
 I am
 experiencing.

 Thanks!
 -Eric


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael
 Schmalle [EMAIL PROTECTED] wrote:
 
  Well,
 
  Basically, if you subclass a UIComponent or decendent, and you are making
 a
  component that uses setters that 'communicate' with composite children, I
  would always use this algorithm.
 
  As far as the randomness, might have to do with bindings, other timing
  issues. If you set a property in mxml it will always be called before
  children are created, you can count on that.
 
  Mike
 
  On Thu, Sep 18, 2008 at 6:57 AM, Manu Dhanda [EMAIL PROTECTED]wrote:

 
  
   Thanks for the answer Mik.
  
   But, Isn't it strange that this situation can occur randomly??
   Or is there any particular case, when we always need to use the
 solution,
   like the one you provided.
  
   I am asking it because I had written other components in my code where
   everything is working seamlessly and I am worried now as if they are
 error
   prone??
  
   Thanks,
   Manu.
  
  
   Michael Schmalle wrote:
   
Hi Manu,
   
This is a pretty simple answer. The reason is the mxml properties get
looped
into your component before createChildren() creates the child
   descriptors.
   
This is why we need the invalidation system. You need the following.
   
public function set data(value:ArrayCollection) {
_data = value;
dataChanged = true;
invalidateProperties();
}
   
... in the same class
   
override protected function commitProperties()
{
super.commitProperties()
if (dataChanged)
{
// do things with child components IE
myGrid.data = _data;
dataChanged = false
}
}
   
   
Setting your child properties in commitProperties() guarantees your
children
will be created.
   
Peace,
Mik
   
   
   
On Thu, Sep 18, 2008 at 3:09 AM, Manu Dhanda
[EMAIL PROTECTED] manuraj.dhanda%40gmail.comwrote:

   
   
Hii Guyz,
   
I am having some strange issue here.
   
What I am doing is:
   
comps:CustomUIComponent Data={_dataP}/
   
I am using this component in some abc.mxml as above.
   
Data is something like:
   
public function set Data(value:ArrayCollection){
//set ur data here.
}
   
But strangely, when I do it(pay attention to bold mxml code of line
   above
now), I find one of flex components (say a Grid) in my
 CustomUIComponent
as
null, on which I want to set this Data.
   
Now, I am worried like how a method, say set Data can be called
 before
even creation complete of CustomUIComponent.
   
Can someone please put some light here..
   
Thanks,
Manu.
   
--
View this message in context:
   
  
 http://www.nabble.com/UI-component%2C-a-set-function---creationComplete-
 tp19547254p19547254.html
Sent from the FlexCoders mailing list archive at Nabble.com.
   
   
   
   
   
   
--
Teoti Graphix, LLC
http://www.teotigraphix.com
   
Teoti Graphix Blog
http://www.blog.teotigraphix.com
   
You can find more

Re: [flexcoders] Finding out the size of a component when everything is relative?

2008-10-28 Thread Michael Schmalle
Hi,
The properties with $ signs mean they are wrapped and mx_internal. The
$height and $width are the actual Flash Player version of height and width.

At what point are you trying to get the height and width? Do you know for
sure the canvas has children and has been measured and updated?

If you can see the canvas (with children), there is no way the width and
height will be zero. The borderColor property help with debugging to
actually see the canvas if it has no borderStyle, set to solid.

Mike

On Tue, Oct 28, 2008 at 7:36 AM, Libby [EMAIL PROTECTED] wrote:

   Flex 3
 At run time I am trying to find out if user has expanded a canvas or
 not. When I query the component or its parents, I always get the
 original size, x  y = 0, etc. In the debugger I can see $height and
 other $variables which appear to contain the correct values, but
 apparently this are a private property. What am I missing here?

 Thanks,
 Libby

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Gosh what a state to be in..

2008-10-28 Thread Michael Schmalle
So are you talking about a state machine table implementation with push -
pop based on the tables setup?
IE you can only push if the context is this and you can only pop if the
context is that

This would definitely allow sub-sub states very easily and allow restriction
in these sub states. I use this algorithm in an as3 parser.

Mike

On Tue, Oct 28, 2008 at 8:44 AM, Paul Andrews [EMAIL PROTECTED] wrote:

   In my case, on refection, it's probably easier to build separate state
 variants, so I'll have state A, B, C and the default, plus states aC and bC

 (going from a to C and from b to C). By using states aC and bC I can hide
 the view components that would otherwise be removed by just having a state
 C. By just hiding the components I can preserve their context. This
 strategy
 just wont work if there are too many states involved.

 Paul

 - Original Message -
 From: Paul Andrews [EMAIL PROTECTED] paul%40ipauland.com
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Sent: Tuesday, October 28, 2008 12:05 PM
 Subject: Re: [flexcoders] Re: Gosh what a state to be in..

  - Original Message -
  From: florian.salihovic [EMAIL PROTECTED]florian.salihovic%40gmail.com
 
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Sent: Tuesday, October 28, 2008 11:59 AM
  Subject: [flexcoders] Re: Gosh what a state to be in..
 
 
  Hm, actually i don't quite get the problem, i think.
 
  States should be used in my opinion to really abstract view-states. The
  state of the
  application should be stored in a domain model.
 
  Yes, you're right.
 
  If u have buttons - just register listeners for the interaction and let
 a
  controller decide
  what to to depending on the view state.
 
  Yes, absolutely.
 
  As i understand your problem it's like you have
  different states, which not only refer to view states but als to states
  in
  terms of
  functionality which is bound directly to a statewhich i think leads to
  too
  much logic in view
  components...
 
  You are mostly there, but it's not to do with the view components
  themselves - it's about preserving context between state changes - I'm
 not
  suggesting that's a function of the view, it's a controller issue.
 
  Or i just didn't get your intention right...
 
  Mostly right. Thanks for posting.
 
  Paul
 
  Best regards
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul
 Andrews [EMAIL PROTECTED] wrote:
 
  I think I know the answer to this, but here goes..
 
  Lets suppose I have an application with states A, B and C, plus the
  default.
 
  There are buttons in states A, B and default to switch the application
  to
  state C.
 
  That would be all fine and dandy, but once I have entered state C, I
 can
  press a button to leave state C and return to the state from whence it
  was
  called (A, B or default).
 
  Still, no problem with that, but I'd like to keep the context of the
  previous state so that when I return to state A (for example) from
 state
  C,
  I can present the same view as before.
 
  Similarly, it may be that state B is really a substate of A (state Ab,
  if
  you like), so returning to the status quo might be a bit more
  difficullt.
 
  Really speaking I just need a state/state context stack that I push and
  pop
  as I move from one state to the next and back.
 
  Anyone already done similar with a different approach?
 
  I know I could get away without the stack if I implemented variants of
  state
  C that took into account the 'calling' state, but it quickly becomes a
  nightmare.
 
  This is certainly doable, I'm just seeing if there's a tried and tested
  way
  of managing state contexts like this.
 
  Paul
 
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
  Links
 
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
  Links
 
 
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Flex 3 Style Explorer is available

2008-10-28 Thread Michael Schmalle
I get a bunch of weirdness in google chrome fp10.
Seems like this history manager is buggy with the accordion. Clicking on
some other controls the application jumps to different views.

I do see the have Beta at the top, nothing like the beta trend. It's ok to
have buggy software, just stick beta on it for it's life time. ;-) ...
google ...

Mike

On Tue, Oct 28, 2008 at 9:36 AM, Tom Chiverton [EMAIL PROTECTED]
 wrote:

 On Tuesday 28 Oct 2008, Blair Cox wrote:
  and I find there are parts that do not work - at least with Firefox on a
  Mac.

 FireFox on 'nix seems OK, in particular 

  Namely, Navigation - Accordion. When I attempt to alter the colours, or
  pretty well any of the settings, nothing happens in the sandbox.

 ... that is fine here.
 What Flash player version ? Is it the debug build ?

 --
 Tom Chiverton
 Helping to administratively reinvent fine-grained eye-catching segments



 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A
 list of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.

 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Finding out the size of a component when everything is relative?

2008-10-28 Thread Michael Schmalle
Hi,
Have you tried looking at the measuredWidth and measuredHeight properties of
both?

Mike

On Tue, Oct 28, 2008 at 11:12 AM, Libby [EMAIL PROTECTED] wrote:

   actually the canvas is wrapped because the screen is too small (not
 mazimized). I need to know how much real estate the wrapped canvas is
 occupying. So far I can'r find any evidence internally that it is
 wrapped. I need to know the actual x,y of the lowest corner of it I
 guess. But how?

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael
 Schmalle
 [EMAIL PROTECTED] wrote:
 
  Hi,
  The properties with $ signs mean they are wrapped and mx_internal.
 The
  $height and $width are the actual Flash Player version of height
 and width.
 
  At what point are you trying to get the height and width? Do you
 know for
  sure the canvas has children and has been measured and updated?
 
  If you can see the canvas (with children), there is no way the
 width and
  height will be zero. The borderColor property help with debugging to
  actually see the canvas if it has no borderStyle, set to solid.
 
  Mike
 
  On Tue, Oct 28, 2008 at 7:36 AM, Libby [EMAIL PROTECTED] wrote:
 
   Flex 3
   At run time I am trying to find out if user has expanded a canvas
 or
   not. When I query the component or its parents, I always get the
   original size, x  y = 0, etc. In the debugger I can see $height
 and
   other $variables which appear to contain the correct values, but
   apparently this are a private property. What am I missing here?
  
   Thanks,
   Libby
  
  
  
 
 
 
  --
  Teoti Graphix, LLC
  http://www.teotigraphix.com
 
  Teoti Graphix Blog
  http://www.blog.teotigraphix.com
 
  You can find more by solving the problem then by 'asking the
 question'.
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Programatically skinning a container, but what to do about the nested children?

2008-10-28 Thread Michael Schmalle
Hi,
Try subclassing RectangularBorder instead, then you can override the
borderMetrics property and set it based on how much right offset you need.

Mike

On Tue, Oct 28, 2008 at 4:28 PM, Todd [EMAIL PROTECTED] wrote:

   Crap, the email messed up my beautifully renditioned ASCII art of what
 I was drawing. Anyway, I was basically trying to show that there's a
 hanging tab off the main part of the container, effectively increasing
 the size of the container.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Todd
 [EMAIL PROTECTED] wrote:
 
  I've created a custom skin and applied it to a VBox. This skin isn't
  just a regular border, but has some file-tab like protrusion on one
  side. The border looks like:
 
  ___
  | |
  | |
  ---| |
  XX | |
  
 
  (The area with the X's shouldn't calculate in parent's child layout.)
 
  Now my question is, is there's something inside the skin that I can
  set to mask off where controls are allowed to be laid out? Or, do I
  just have to manually make sure that layout of controls in the parent
  container are manually adjusted for my programmatic skin?
 
  What's the best way to deal with this. Ideally, my skin would notify
  the container to a valid layout area.
 
  Thanks
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: mouse wheel behaviour mxml and actionscript based components

2008-10-27 Thread Michael Schmalle
Hi
Sorry I didn't get back to you but I couldn't answer this question.

 The problems are on Firefox 3.0.3 - windows - XP...

That is why, I still didn't have confidence to upgrade, I'm still using 2 so
I can't see your bug.

Mike

On Thu, Oct 23, 2008 at 2:32 PM, fotis.chatzinikos 
[EMAIL PROTECTED] wrote:

   Jim, you are right! In IE 7 the trees scroll without any extra
 codes-automagically :-) (no need to attach a mouse wheel event and
 handle scrolling- the tree does it already...)

 The problems are on Firefox 3.0.3 - windows - XP...

 This is strange. Firefox used to be my favorite, but lately i have
 lots of wierd problems with flash... Videos not playing (youtube and
 others), audio is mute after a while and i need to restart and now this...

 Can anybody else test this situation on firefox / windows xp or vista?

 TIA,
 Fotis

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jim
 Hayes [EMAIL PROTECTED] wrote:
 
  The mouse wheel events are not getting eaten by the browser before they
  get to your swf, are they?
  Perhaps due to some difference in the html embed code?
  (I've not seen this happen, but what you describe sounds odd)
 
  I'm wondering what happens if you were to try publishing your test file
  as AIR, or perhaps try a different browser ?
  It might at least help eliminate the possibility?
 
  -Original Message-
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of fotis.chatzinikos
  Sent: 23 October 2008 12:45
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: mouse wheel behaviour mxml and actionscript
  based components
 
  This is driving me nuts!
 
  Go here:
  http://examples.adobe.com/flex3/componentexplorer/explorer.html
  http://examples.adobe.com/flex3/componentexplorer/explorer.html
 
  open visual components-general controls-Tree
 
  mouse wheel works!
 
  copy paste the code in a new flex (3) project, run the project, NO
  MOUSE WHEEL functionality...
 
  Any ideas?
 
  Can somebody (Mike are you there? :-) have a look at the previous post
  code and see if there is something wrong with my mouse_wheel handler?
 
  Anybody from adobe?
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com

  , Fotis Chatzinikos
  fotis.chatzinikos@ wrote:
  
   Mike, thinks for the reply, here is some code:
  
   From the following code we are interested in the following line:
  
   t.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelTreeListener)
   ;//noluck
  
   is there something wrong with what you see? The alert is never called
  
   TIA,
   Fotis
  
  
   private function
  mouseWheelTreeListener(event:MouseEvent):void
   {
   Alert.show(wheel);
   }
  
   //tree code:
  
   var c:Canvas = new Canvas();
  
   c.label = a string;
   c.width = 185 ;
   c.horizontalScrollPolicy=ScrollPolicy.OFF ;
   c.verticalScrollPolicy=ScrollPolicy.OFF ;
   c.percentHeight = 100 ;
  
   var t:Tree = new Tree() ;
   t.width = c.width ;
   t.percentHeight = 100 ;
   t.setStyle(backgroundColor,0xFF) ;
  
   t.dataProvider = categories.getItemAt(i).children
   ;//some tree data
   t.addEventListener(ListEvent.CHANGE,categoryChanged)
   ;//works
   t.addEventListener(MouseEvent.MOUSE_WHEEL,
   mouseWheelTreeListener) ;//noluck
   c.addChild(t);
  
   categoriesAccordionID.addChild(c);
  
   On Tue, Oct 21, 2008 at 7:33 PM, Michael Schmalle
   teoti.graphix@wrote:
  
Hi,
   
No, it's automatic.
   
Without an example I can't help. :)
   
Mike
   
   
On Tue, Oct 21, 2008 at 12:01 PM, fotis.chatzinikos 
fotis.chatzinikos@ wrote:
   
Hello Michael,
   
i just tried your suggestion and i still do not get the mouse
  wheel to
scroll the tree. I also did a quick test to see if it will work on
  an
mxml based tree control and surprisinly it does not scroll
   
Do i remember something wrong? I thought i have seen some trees
  scroll
without writting any special code...
   
Do i need to implement listeners to get the tree to scroll via
  mouse
wheel? I thought it was automatically done... :-(
   
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com
 flexcoders%40yahoogroups.com,

Michael Schmalle
   
teoti.graphix@ wrote:

 Hi,
 Usually the reason for no mouse wheel events is a lack of
  background
color.

 Can you give some examples (mxml/as) of what 'doesn't' work for
  you?

 Anyway, you need a background color for the control to
  broadcast mouse
 wheel events.

 Other than that it's just a guess what the problem could be
  without an
 example.

 Mike

 On Mon, Oct 20, 2008 at 7:03 PM, fotis.chatzinikos 
 fotis.chatzinikos@ wrote:

  Hello all

Re: [flexcoders] flex builder interface

2008-10-27 Thread Michael Schmalle
Hi,
That is the Flex Builder Plugin that gets installed into the Eclipse
version.

You are using the stand alone version of Flex Builder which uses Adobe's
look and feel.

Mike

On Mon, Oct 27, 2008 at 4:58 AM, elliotwilliams77 
[EMAIL PROTECTED] wrote:

   does anyone know how to change the flex builder interface? ..

 i noticed that some have this blue wavy tabs in their interface...
 mine is just box how do i change it?

 its blue and wavy like in the flex navigator tab, outline tab, help
 tab and so forth

 would really appreciate any help

 thanks

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Equivalent to Java's Class.isInstance(Object) instance method?

2008-10-27 Thread Michael Schmalle
Adding to the insight, if you wanted to use the 'is' operator with those two
arguments, you need to create an instance of the Class and then use the 'is'
operator.
This would let you know if it is an instance of the object passed.

public static function
isObjectInstanceOfClass(obj:Object, cls:Class):Boolean
{
return obj is new cls();
}

We have asked the player engineers about the performance hit on this is not
as bad as describeType in some instances.


Mike

On Mon, Oct 27, 2008 at 9:55 AM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mark
 Carter [EMAIL PROTECTED] wrote:
 
 
  I don't think that works when I have a variable of Class type.
 
  public static function isObjectInstanceOfClass(obj:Object,
  cls:Class):Boolean {
  return obj is cls; // compile error
  }

 By definition, a variable of type Class is not an instance of
 anything. Typically this is handled in the Framework code by casting
 whatever variable ought to be a Class to Class type.

 HTH;

 Amy

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Equivalent to Java's Class.isInstance(Object) instance method?

2008-10-27 Thread Michael Schmalle
I messed up, what I said does not work, to early in the morning for me. :)
'is' tests an instance to a class reference. I was thinking in the opposite
direction when I gave that example.

Eric shows you.

Mike

On Mon, Oct 27, 2008 at 11:41 AM, Eric Cooper [EMAIL PROTECTED] wrote:

   The question has been answered (yes, it is possible to use is as part
 of isInstanceOf() method. Here's an example of my use of
 this mechanism (for determining if geometric shapes share an instance of a
 particular class of constraint, e.g. are these two line
 segments perpendicular to each other?)

 public function sharesConstraintWith(that:MPShape,
 constraintClass:Class):MPConstraint
 {
 // Get those constraints that are shared between this and that, if there
 are any.
 for each (var c0:MPConstraint in this.constraints)
 {
 for each (var c1:MPConstraint in that.constraints)
 {
 if (c0 == c1  c0 is constraintClass)
 return c0;
 }
 }
 return null;
 }

 It works for me.
 -Eric


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mark
 Carter [EMAIL PROTECTED] wrote:
 
 
  Hi Mike - sorry, you've lost me there...
 
  The few tests I've done show that obj is cls is what I need. Are you
  saying that does not work?
 
 
  Michael Schmalle wrote:
  
   Adding to the insight, if you wanted to use the 'is' operator with
 those
   two
   arguments, you need to create an instance of the Class and then use the
   'is'
   operator.
   This would let you know if it is an instance of the object passed.
  
   public static function
   isObjectInstanceOfClass(obj:Object, cls:Class):Boolean
   {
   return obj is new cls();
   }
  
   We have asked the player engineers about the performance hit on this is
   not
   as bad as describeType in some instances.
  
  
   Mike
  
 
  --
  View this message in context:
 http://www.nabble.com/Equivalent-to-Java%27s-Class.isInstance%28Object%29-instance-
 method--tp20171501p20190188.html
  Sent from the FlexCoders mailing list archive at Nabble.com.
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Do you use a Mac?

2008-10-24 Thread Michael Schmalle
 While computer mfg/OS affiliations are akin to a religion, computers are
tools nothing more.
I have no comment on the issue since this comes up on flexcoders about every
other month but this statement is what I was telling myself when reading
some of these posts, this has been the only fact given.

My analogy is nature has it right, mankind seems to love trends and
affiliations (we seem to need identities).

A tree has been a tree for as long as trees have stood on the earth. Nature
made trees as a tool, to regenerate oxygen so the earth might live just a
little longer.

I can see it now, in another dimension the deciduous hate the conifers and
the conifers hate the deciduous.

Mike

On Fri, Oct 24, 2008 at 9:45 AM, Howard Fore [EMAIL PROTECTED] wrote:

   Well, since you've picked the car analogy...

 There are plenty of things that you can play with in OS X. You can even
 play with stuff that Apple says isn't supposed to by played with. But don't
 be surprised if the next upgrade replaces something you've tinkered with.
 Just like you wouldn't be suprised if you took your car to the dealer after
 installing a hydrogen injector to the engine to increase the MPG and the
 dealer said, sorry, you've modified the engine, we won't work on it.

 I've used Macs since the original 128 (and Apple ][ before that) and all my
 personal computers are Macs. I have to use Windows at work because some
 standards committee in some far flung part of the corporate beast decided it
 had to be that way. My personal servers are Linux (the $/usability ratio
 isn't low enough for my cheap wallet to host on OS X right now). Computers,
 whether they run OS X, Windows XP/Vista, or Linux, are complex machines that
 sometimes break for inexplicable reasons. I've worked on Macs that were
 buggy until I worked out the right combination of OS and third-party
 software. I've worked on Macs that are as stable as a rock (I can't remember
 the last time my PowerBook crashed). The same goes for my experiences with
 Windows. YMMV. While computer mfg/OS affiliations are akin to a religion,
 computers are tools nothing more. Everyone has their preferences (mine's a
 Mac running OS X).


 On Thu, Oct 23, 2008 at 10:56 PM, Dmitri Girski [EMAIL PROTECTED] wrote:

 Actually, I don't think that is wrong - computers should be easy to
 use.  I presume that you don't know how do injectors work in your
 car's engine. Neither do I.  And this is good. But if you are a
 mechanic and you want to work on Apple's car you will find that
 everything consists of a roseish/shiny plastic things which don't
 allow hammering/screwing and other actions. But their conform with
 every National Standard.




 --
 Howard Fore, [EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Still no one knows ? Please help.

2008-10-22 Thread Michael Schmalle
Hi,
Use a ProgramaticSkin subclass.

Then use the method drawCircle() to draw the circle based on the value of
getStyle(color), which is your text color of the parent.

Pseudo;

override protected function updateDisplayList(w:Number, h:Number):void
{
var color:unit = getStyle(color);
var g:Graphics = graphics;

g.clear();

g.beginFill(color, 1)
g.drawCircle(0, 0, w, h);
g.endFill();
}


Mike

On Wed, Oct 22, 2008 at 12:00 AM, itdanny2002 [EMAIL PROTECTED] wrote:

   Thank you but I wanna to draw the circle
 or checkmark instead of using symbol. I have
 tried to embed image files. It works. However,
 I wanna to use the color as same as text.
 Since the color of my application can be changed,
 I can't predict what color user used and I can
 prepare so many different colors icon. So, how to do
 if I want to draw my own icon ?

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] createChildren(): adding 20 identical buttons to panel?

2008-10-22 Thread Michael Schmalle
 class to a layout). Because b1 cannot be reused for another
 addChild(), how would you add the other buttons? TIA,

It can't be ?

Yes, of course it can be reused, the type can't change. Which this is not
the case since you are suing Button for all 20 instances.

You can do;

b1 = new Button()
addChild(b1):

b1 = new Button()
addChild(b1):

b1 = new Button()
addChild(b1):

as many times as you want. It's getting the instances back that you need to
plan for.

As far as retrieving them, as Tom said, and array object hash, or
dictionary.

Mike

On Wed, Oct 22, 2008 at 6:10 AM, Tom Chiverton [EMAIL PROTECTED]
 wrote:

 On Wednesday 22 Oct 2008, Mic wrote:
  In order to add another 19 buttons, must vars b2 to b20 be declared

 No.
 Not unless you need to get at them again without using getChildByName() or
 similar.
 You could simple push each instances on to an array, rather than having b1
 ..
 bN.

  class to a layout). Because b1 cannot be reused for another
  addChild(), how would you add the other buttons? TIA,

 It can't be ?

 --
 Tom Chiverton
 Helping to revolutionarily mesh networks



 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A
 list of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.

 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] dividerSkin problem

2008-10-22 Thread Michael Schmalle
Hi Guy,
There is no logic in the divider container that checks the minimum width or
height of the dividers relative to the size of their container.

I don't think this is to weird on Adobe's part since they usually have a
policy (unwritten) that chrome is not part of the measurement algorithm. The
dividers are considered chrome and exist in their own UIComponent layer .

You probably could subclass and add this measurement but it's not that easy
since the DividedBox by nature does not like calling measure(). They do this
for performance and relates to their layout implementation.

Mike

On Tue, Oct 21, 2008 at 6:14 PM, Guy Morton [EMAIL PROTECTED] wrote:

   Hello

 If I use dividerSkin to set the skin of a HDividedBox to an image
 file, and the HDividedBox sits inside a VDividedBox, and the image
 file I'm using for the skin is wider than the HDividedBox, the skin
 image is drawn over the content in the other pane of the VDividedBox,
 ie it is not truncated to fit within the bounds of the HDividedBox.

 This seems very wrong to me. I've tried using clipContent=true but
 that makes no difference. I've also tried using a vector-based SVG
 image as the skin, but that doesn't help either.

 Am I doing something wrong or is Flex just a bit stoopid in this
 regard? What possible justification could there be for a HDividedBox
 with a custom skin to allow it's custom divider to be drawn outside
 it's own bounds?

 Guy
  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Still no one knows ? Please help.

2008-10-22 Thread Michael Schmalle
Hi,
Since you are using an itemRenderer, this could be tricky. You need to find
out where the parent is (MenuItem instance) and cast that reference to
IStyleClient.

IE

var color = IStyleClient(parent.parent).getStyle(color);

Mike

On Wed, Oct 22, 2008 at 9:40 AM, itdanny2002 [EMAIL PROTECTED] wrote:

   Thank you very much.

 Hi, may I know how to get parent style ?
 when I get the style, it returns error.
 I found that the stylename is null and
 return undefined when got Color style.
 How can it search the chain and get its parent
 style ? Many Many Thanks.

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Still no one knows ? Please help.

2008-10-22 Thread Michael Schmalle
Amy,
I don't know if what I said was the 'correct' way. But he wanted his bullet
color to be the same as the text color, so using the color style seemed
right.

As far as the styleName being null like he said, I haven't looked into that.
That was what this last post was concerning.

I'd have to look at the Menu - MenuItem code to see what is really going on
when the menu item is created.

Mike

On Wed, Oct 22, 2008 at 11:46 AM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Michael Schmalle
 [EMAIL PROTECTED] wrote:
 
  Hi,
  Since you are using an itemRenderer, this could be tricky. You need
 to find
  out where the parent is (MenuItem instance) and cast that reference to
  IStyleClient.
 
  IE
 
  var color = IStyleClient(parent.parent).getStyle(color);

 The button should push the iconColor style down into the icon class by
 default...?

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Are my eyes painted on, or is FormItem not available in design mode?

2008-10-21 Thread Michael Schmalle
Hi Josh,
It's hard coded into the Flex Builder java code. They figured since they
thought it only needed to be in a form that they would remove it from the
components panel (hard coded) and add it majikly when a designer dropped a
control into a form (container).

Seems like this is creating your own reality and I myself really don't like
these kind of hard coded aspects of flex builder. There should be a
preference to enable-disable this type of functionality, disabled from the
start.

Mike

On Mon, Oct 20, 2008 at 10:18 PM, Josh McDonald [EMAIL PROTECTED] wrote:

   Hey guys,

 If I create mx:FormItem components via MXML code, I can interact with
 them and manage their properties just fine in design mode, but I can't seem
 to add them without dropping back to code view, ie it's not in the
 Components list. Is there a reason for this that I can't figure out?

 -Josh

 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 Like the cut of my jib? Check out my Flex blog!

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
 :: http://flex.joshmcdonald.info/

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] mouse wheel behaviour mxml and actionscript based components

2008-10-21 Thread Michael Schmalle
Hi,
Usually the reason for no mouse wheel events is a lack of background color.

Can you give some examples (mxml/as) of what 'doesn't' work for you?

Anyway, you need a background color for the control to broadcast mouse
wheel events.

Other than that it's just a guess what the problem could be without an
example.

Mike

On Mon, Oct 20, 2008 at 7:03 PM, fotis.chatzinikos 
[EMAIL PROTECTED] wrote:

   Hello all,

 any ideas what is the expected behaviour of the mouse wheel in flex apps?

 I have noticed that some mxml based trees scroll with the mouse wheel
 while actionscript based ones do not.

 A few minutes ago i also did a test with the main (root /
 mainApplication) making bigger than 100% of the screen (lets assume
 3000 pixels hight) so a scroll bar would appear. Can only scroll via
 the bar, not the mouse wheel...

 Has any of you any pointers, on this?

 TIA,
 Fotis

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Still no one knows ? Please help.

2008-10-21 Thread Michael Schmalle
Hi,
I see what you r problem is now,

You need to change these icons (styles);

radioIcon, radioDisabledIcon, checkIcon, checkDisabledIcon.

You see the default.css is;

radioIcon: Embed(source=Assets.swf,symbol=MenuRadioEnabled);

That will solve your problem.

Mike

On Tue, Oct 21, 2008 at 5:58 AM, itdanny2002 [EMAIL PROTECTED] wrote:

   Please check the code:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute backgroundGradientAlphas=[1.0, 1.0]
 backgroundGradientColors=[#33, #33]
 mx:Script
 ![CDATA[
 [Bindable]
 private var setData:Array = [
 {label:Menu, type:normal, children:[
 {label: A, type:radio, groupName: S1},
 {label: B, type:radio, groupName: S1, toggled:true},
 {label: C, type:check,toggled:true }]}];
 ]]
 /mx:Script

 mx:Style
 .menuStyle {
 iconColor: #00;
 background-color: #33;
 textSelectedColor: #00;
 color: #00;
 }
 /mx:Style

 mx:MenuBar dataProvider={setData} menuStyleName=menuStyle
 /mx:MenuBar

 /mx:Application

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] actionscript made canvas scrollpolicy problems-similar to previous vbox problem

2008-10-21 Thread Michael Schmalle
Hi,
Consult the ASDoc (API), you are trying to set properties with styles. This
won't work.

The correct implementation is;

myContainer.verticalScrollPolicy = ScrollPolicy.OFF;

Mike

On Tue, Oct 21, 2008 at 6:19 AM, fotis.chatzinikos 
[EMAIL PROTECTED] wrote:

   Hello again, this time i am trying to create a canvas inside a canvas
 with their scroll policies set to off - It does not work -again...

 I tried both:

 setStyle(verticalScrollPolicy,off)

 setStyle(verticalScrollPolicy,ScrollPolicy.OFF)

 I assume that the second line is the correct code to use?

 full code here (assume that a number of components are added
 dynamically in the inside canvas @ runtime, FYI: the scroll bars do
 not work even before the extra components are added...):

 Am i doing something wrong again?
 TIA,
 Fotis

 extraTagsChildSelectionContainerCanvas = new Canvas() ;
 extraTagsChildSelectionContainerCanvas.width = 200 ;
 extraTagsChildSelectionContainerCanvas.height = 285 ;
 extraTagsChildSelectionContainerCanvas.setStyle(cornerRadius,10) ;

 extraTagsChildSelectionContainerCanvas.setStyle(backgroundColor,0xFF);
 extraTagsChildSelectionContainerCanvas.setStyle(borderStyle,solid);
 extraTagsChildSelectionContainerCanvas.setStyle(borderThickness,3)
 ;

 extraTagsChildSelectionContainerCanvas.setStyle(verticalScrollPolicy,ScrollPolicy.OFF);

 extraTagsChildSelectionContainerCanvas.setStyle(horizontalScrollPolicy,ScrollPolicy.OFF);

 extraTagsChildRollingCanvas = new Canvas() ;
 extraTagsChildRollingCanvas.x = 5 ;
 extraTagsChildRollingCanvas.y = 5 ;
 extraTagsChildRollingCanvas.width = 190 ;
 extraTagsChildRollingCanvas.height = 285 ;

 extraTagsChildRollingCanvas.setStyle(verticalScrollPolicy,ScrollPolicy.OFF);


 extraTagsChildRollingCanvas.setStyle(horizontalScrollPolicy,ScrollPolicy.OFF);
 extraTagsChildRollingCanvas.setStyle(backgroundColor,0x00FF00);


 extraTagsChildSelectionContainerCanvas.addChild(extraTagsChildRollingCanvas);


  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Bindable popupmanager

2008-10-21 Thread Michael Schmalle
Hi,
You can create a bindable model class, the bind this classes popupText to
each of your TextInput.text properties.

Mike

class Model
{
[Bindable]
public var sharedText:String = ;
}

... your control (not popup)

mx:TextInput id=controlInput text={Model.getInstance().sharedText}/

... then in the popup

mx:TextInput id=popUpInput text={Model.getInstance().sharedText}/


Mike

On Tue, Oct 21, 2008 at 8:48 AM, Giro [EMAIL PROTECTED] wrote:

   Is possible for example to make a input with a bindable text, but
 this text content come from another input text inside a component thas
 is used as popup?

 Thanks
 Giro
  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: mouse wheel behaviour mxml and actionscript based components

2008-10-21 Thread Michael Schmalle
Hi,
No, it's automatic.

Without an example I can't help. :)

Mike

On Tue, Oct 21, 2008 at 12:01 PM, fotis.chatzinikos 
[EMAIL PROTECTED] wrote:

   Hello Michael,

 i just tried your suggestion and i still do not get the mouse wheel to
 scroll the tree. I also did a quick test to see if it will work on an
 mxml based tree control and surprisinly it does not scroll

 Do i remember something wrong? I thought i have seen some trees scroll
 without writting any special code...

 Do i need to implement listeners to get the tree to scroll via mouse
 wheel? I thought it was automatically done... :-(

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael
 Schmalle

 [EMAIL PROTECTED] wrote:
 
  Hi,
  Usually the reason for no mouse wheel events is a lack of background
 color.
 
  Can you give some examples (mxml/as) of what 'doesn't' work for you?
 
  Anyway, you need a background color for the control to broadcast mouse
  wheel events.
 
  Other than that it's just a guess what the problem could be without an
  example.
 
  Mike
 
  On Mon, Oct 20, 2008 at 7:03 PM, fotis.chatzinikos 
  [EMAIL PROTECTED] wrote:
 
   Hello all,
  
   any ideas what is the expected behaviour of the mouse wheel in
 flex apps?
  
   I have noticed that some mxml based trees scroll with the mouse wheel
   while actionscript based ones do not.
  
   A few minutes ago i also did a test with the main (root /
   mainApplication) making bigger than 100% of the screen (lets assume
   3000 pixels hight) so a scroll bar would appear. Can only scroll via
   the bar, not the mouse wheel...
  
   Has any of you any pointers, on this?
  
   TIA,
   Fotis
  
  
  
 
 
 
  --
  Teoti Graphix, LLC
  http://www.teotigraphix.com
 
  Teoti Graphix Blog
  http://www.blog.teotigraphix.com
 
  You can find more by solving the problem then by 'asking the question'.
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Still no one knows ? Please help.

2008-10-20 Thread Michael Schmalle
I answered;
Which style name control the color

No need to post twice, it was the weekend. :)

PS The title of this thread could have be a bit more descriptive since there
are hundreds of posts a day.

Mike

On Mon, Oct 20, 2008 at 4:14 AM, itdanny2002 [EMAIL PROTECTED] wrote:

   Does anyone knows how to change the
 color of bullet (radio) or checkmark
 in menu box ? Always black.

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Which style name control the color

2008-10-20 Thread Michael Schmalle
Hi,
It's the 'iconColor' style.

These are available for the checkbox;

borderColor, iconColor, fillAlphas, fillColors, highlightAlphas
and themeColor.

Mike



On Sun, Oct 19, 2008 at 7:20 AM, itdanny2002 [EMAIL PROTECTED] wrote:

   Which style name control the color
 of bullet / checkmark in menu control ?

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Creating custom components in flex using actionscript 3.0

2008-10-20 Thread Michael Schmalle
Hi,
I see two things that need to be changed in your code;

1. When setting setStyle() you need to use the correct style type. You are
using strings for numbers IE 2, this is not correct and could cause weird
behavior, change this and see if you still have your issue.

2. In your commitProperties() override, you need to create a flag so you are
not calling setStyle() on each property invalidation.

- you don't need this line either; this.creationPolicy = all;

To clarify, it's the outer box that you don't want scrollbars on?

Mike

On Sun, Oct 19, 2008 at 5:30 PM, ashok [EMAIL PROTECTED] wrote:

   Hi,
 I am sorry if this is a repeat question. have read through the
 articles time and again from the adobe docs and some posts in this
 forum, but could not resolve my issue.

 My class extends a VBox and I try to create components in it. To
 simplify and debug the issue, got down to only creating a simple hbox
 inside the class and adding a button to it. So the steps are

 1. create a class which extends vbox.
 2. override createChildren method and set the height, width, and other
 styles of the vbox and then call super.createChildren()

 3. create a new HBox inside the createChildren method and then add a
 button to it.I am setting the verticalScrollPolicy and
 horizontalScrollPolicy to off, inside the createChildren method before
 calling addchild.

 On doing this I always see the horizontal scrollbar enabled. How do we
 debug such an issue. i traced through the code and found that the
 width and the height of the hbox is much lesser than the height and
 width of the vbox. Is there any reason why this should be happening.

 I also implemented the commitProperties method and I tried setting the
 properties for the hbox in there but that did not help either.

 the code is as shown below. i am working on getting the layout right
 for quiet a while without any luck. so please gurus of flex help me
 out here.

 //

 package edu.csula.cairngorm_emulator.view.fileupload
 {

 import mx.collections.ArrayCollection;
 import mx.containers.HBox;
 import mx.containers.VBox;
 import mx.controls.Button;

 public class TestCoreVocabCompAS extends VBox
 {

 private var _coreContainer:HBox = new HBox();

 public function TestCoreVocabCompAS():void
 {
 super();
 }

 public function get coreContainer():HBox
 {
 return this._coreContainer;
 }

 public function set coreContainer(coreContainer:HBox):void
 {
 this._coreContainer = coreContainer;
 }

 override protected function createChildren():void {

 this.width = 228;
 this.height = 130;
 this.setStyle(verticalGap, 0);
 this.setStyle(verticalScrollPolicy, off);
 this.setStyle(horizontalScrollPolicy, off);
 this.setStyle(horizontalAlign, center);
 this.setStyle(verticalAlign, middle);
 this.setStyle(paddingTop, 0);
 this.setStyle(paddingBottom, 0);
 this.creationPolicy = all;

 super.createChildren();
 trace (this height =  + this.height);
 trace (this width =  + this.width);

 // set the poperties of the hbox
 if(this._coreContainer != null)
 {
 //set the styles.
 this._coreContainer.setStyle(paddingLeft, 2.0);
 this._coreContainer.setStyle(paddingRight, 2.0);
 this._coreContainer.setStyle(verticalScrollPolicy, off);
 this._coreContainer.setStyle(horizontalScrollPolicy, off);
 this._coreContainer.explicitHeight = 93;
 this._coreContainer.width = 200;
 //set the properties
 this.addChild(_coreContainer);

 trace (_coreContainer height =  + this._coreContainer.height);
 trace (_coreContainer widtd =  + this._coreContainer.width);

 //add the child components
 if(this.img != null)
 {
 var button:Button = new Button();
 this._coreContainer.addChild(button);
 button.percentHeight = 100;
 button.width = 94;
 trace (button height =  + button.height);
 trace (button widtd =  + button.width);
 this.img.percentHeight = 100;
 this.img.width = 94;
 }




 }

 // Implement the commitProperties() method.
 override protected function commitProperties():void {
 super.commitProperties();
 this._coreContainer.setStyle(paddingLeft, 2.0);
 this._coreContainer.setStyle(paddingRight, 2.0);
 this._coreContainer.setStyle(verticalScrollPolicy, off);
 this._coreContainer.setStyle(horizontalScrollPolicy, off);

 }



  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Resizing a class file

2008-10-20 Thread Michael Schmalle
Hi,
It's more like you have to create an instance.

The Class is an actionscript type like Boolean or String. This is like
asking can you write Boolean.value = true;

Try;

override protected function createChildren():void
{
super.createChildren();
instance = new myIcon();
instance.width = 25;
addChild(instance);
}

Mike

On Mon, Oct 20, 2008 at 10:20 AM, florian.salihovic 
[EMAIL PROTECTED] wrote:

   Why don't u want to create an instance?

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 flexaustin [EMAIL PROTECTED] wrote:
 
  Is it possible to resize a Class file? Say you embed a swf or png. Can
  you then resize it by casting is as something else?
 
  [Bindable]
  [Embed(source=ui/nicePngImage.png)]
  static public var myIcon:Class;
  myIcon.width = 30; // won't work
 
  TIA
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] programmatic vbox serious bug?

2008-10-20 Thread Michael Schmalle
Hi,
extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
extraTagsSelectionVBox.setStyle(backgroundColor,#00FF00) ;

Set your styles with correct as3 Types;

extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
extraTagsSelectionVBox.setStyle(backgroundColor, 0x00FF00) ;

Mike

On Mon, Oct 20, 2008 at 11:59 AM, fotis.chatzinikos 
[EMAIL PROTECTED] wrote:

   Hi, i am making a vbox via actionscript and set its width and height
 to 200x300... After adding a single button (or anything else) if i
 throw an alert with its width and height they seem correct
 but...scroll bars appear which can scroll the vbox as if it was 2000
 by 2000 pixels wide/high...

 The relevant code is:

 var extraTagsSelectionVBox:VBox = new VBox() ;
 extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
 extraTagsSelectionVBox.setStyle(backgroundColor,#00FF00) ;
 extraTagsSelectionVBox.setStyle(borderStyle,solid) ;
 extraTagsSelectionVBox.setStyle(borderThickness,3) ;
 extraTagsSelectionVBox.setStyle(paddingLeft,5) ;
 extraTagsSelectionVBox.setStyle(paddingRight,5) ;
 extraTagsSelectionVBox.setStyle(paddingTop,5) ;
 extraTagsSelectionVBox.setStyle(paddingBottom,5) ;

 var b:Button = new Button() ;
 b.label = Extra Tags [Close] ;
 b.addEventListener(MouseEvent.CLICK,closeExtraTagsSelection) ;
 extraTagsSelectionVBox.addChild(b) ;

 //THIS ADDS the VBox in a parent container
 //rawchildren...

 mainContainerID.rawChildren.addChild(extraTagsSelectionVBox) ;

 please can someone have a look?

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Resizing a class file

2008-10-20 Thread Michael Schmalle
Hi,
Your looking at the problem wrong.

You never assign an instance to a Class variable type. You need to create
another variable at the class level to hold the new instances that are type
Image.

functiontoGetImage() are you returning an instance or a Class to
instantiate?

Mike

On Mon, Oct 20, 2008 at 2:05 PM, flexaustin [EMAIL PROTECTED] wrote:

   Sorry I should have been more specific.

 [Bindable]
 public var myImage:Class;

 myImage = functiontoGetImage(someparam); //obtained via CSS

 [Embed(source=ui/nicePngImage.png)]
 myImage.width = 10; // no code hinting for height for type Class.
 myImage.height = 10; // no code hinting for width for type Class.
 or
 myImage.scaleX = .2;
 myImage.scaleY = .2;
 //if I size them anyway I get no errors but then nothing happens.

 the trick is, from my implementation is, you eventually have to do
 something like this.

 DisplayObject(displayIconObject).height = 10;
 DisplayObject(displayIconObject).width = 10;

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael
 Schmalle
 [EMAIL PROTECTED] wrote:
 
  Hi,
  It's more like you have to create an instance.
 
  The Class is an actionscript type like Boolean or String. This is like
  asking can you write Boolean.value = true;
 
  Try;
 
  override protected function createChildren():void
  {
  super.createChildren();
  instance = new myIcon();
  instance.width = 25;
  addChild(instance);
  }
 
  Mike
 
  On Mon, Oct 20, 2008 at 10:20 AM, florian.salihovic 
  [EMAIL PROTECTED] wrote:
 
   Why don't u want to create an instance?
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,
   flexaustin flexaustin@ wrote:
   
Is it possible to resize a Class file? Say you embed a swf or
 png. Can
you then resize it by casting is as something else?
   
[Bindable]
[Embed(source=ui/nicePngImage.png)]
static public var myIcon:Class;
myIcon.width = 30; // won't work
   
TIA
   
  
  
  
 
 
 
  --
  Teoti Graphix, LLC
  http://www.teotigraphix.com
 
  Teoti Graphix Blog
  http://www.blog.teotigraphix.com
 
  You can find more by solving the problem then by 'asking the question'.
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Extending UIComponent memory issues.

2008-10-17 Thread Michael Schmalle
Jason,
What I suggested is probably a bit to complex for what you need. It's kind
of a reimplementation of what you are doing.

1. Subclass UIComponent to make your container.
2. Create the layout algorithm in that component.
3. Create a subclass of FlexSprite that is your loader component.
4. Add the FlexSprite subclass instances (your content) to your UIComponent
container class with custom layout.
5. Add the UIComponent class to a Container.

The above is not really a solution for you right now I'm sure, I was just
saying this is what I would do to get maximum performance and memory
management.

The reason I say this is I have no idea how you are laying out those
instances with reflection etc. How are you laying them out (with what layout
algorithm) ?

Mike


On Fri, Oct 17, 2008 at 10:21 AM, flexaustin [EMAIL PROTECTED] wrote:

   Michael, I have tried using Flexsprite but throws errors about needing
 to implementing IUIcomponent. Did I miss something and give up to early?

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael
 Schmalle

 [EMAIL PROTECTED] wrote:
 
  Doug, Jason,
  Since I am a self-centered person that doesn't like to be misunderstood,
  ;-), I could have brought up the 4000 object issue. In previous
 threads with
  Jason, he said this was a requirement from the higher order. So I
 left it
  where it was, 4000 objects.
 
  As far as the IUIComponent issue, it is Container that requires them not
  'Flex' itself.
 
  This is where as flex projects, Web 2.0 and performance are reaching
 a point
  where it's not just making a Flash IDE animation anymore.
 
  When the requirements of these projects come to this level there is more
  engineering involved and Flex out of the box is not going to handle
  situations like this.
 
  The absolute way to do this is creating a UIComponent subclass that
 is the
  container, creating your layout algorithm in this component. Subclass
  FlexSprite, make that your content loader component.
 
  Then instantiate the content components in the UIComponent
 container. This
  is the lean version of your design I envision. You could even
 recycle the
  content renderers in your container component Lot's of things
 you could
  do ;-)
 
  Mike
 
 
  On Wed, Oct 15, 2008 at 10:47 PM, flexaustin [EMAIL PROTECTED] wrote:
 
   Doug, what would you go with? Sprite?
  
   I thought sprite, but you need to implement all the IUIComponent stuff
   or use composition correct? Wouldn't composition reduce the benefits
   gained by using Sprite?
  
   Doug, if you message me and I can tell you where to see the component.
  
   jason (underscore) newport {at) hot mail
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,

 Doug
   McCune doug@ wrote:
   
You've got 4,000 things all moving around at once? Are all 4,000 of
   those
actually visible? 4,000 UI components seems like a lot for any
 layout
manager to have to deal with. I'd try to focus on figuring out how
   to reduce
the number of UIComponents before I worried about how much memory
   each one
is taking up. I may be totally off base, but I can't imagine a
 scenario
where you want 4,000 images all on the screen at the same time.
   
And if you do really need to load 4,000 swfs all at the same time
   then you
probably want something that's lighter than custom UIComponent
 classes,
which would keep those 4,000 objects out of the normal
invalidation/validation cycles of the display list.
   
Doug
   
On Wed, Oct 15, 2008 at 1:34 PM, Michael Schmalle
teoti.graphix@wrote:
   
 A side note,
 You are doing some very expensive leg work in the 'content'
 setter.

 You need to break that out into commitProperties() and
   updateDisplayList().

 You would get a huge performance increase for sure.

 As far as the memory, doesn't look to weird, event listeners
   without weak
 references can make thing hang around as well.

 Mike


 On Wed, Oct 15, 2008 at 3:08 PM, flexaustin flexaustin@ wrote:

 So I have this base component, that when running profiler,
 says its
 eating up tons of memory. I have about 4000 of these at one
 time in
 my Flex app (see component code below). This base component is
 extended by two other components, which are then extended by
 two more
 components each so 3 or 4 levels above this base component.

 1. My first question is does the profiler just point to the base
   class
 or are there actually 4000 of these being created outside of
 their
 extended children?

 2. My 2nd question is is their anything wrong with the code
   below? Why
 is it eatin memory? The parameter content when pulled in is
 a swf
 file (icon) that is 5kb each so 5kb * 4000... you get the math.

 When I run this progam the CarouselImage's are using up 30%
 to 35% of
 my apps memory

Re: [flexcoders] how to add internal padding in canvas?

2008-10-17 Thread Michael Schmalle
A hack that can be done if you really want Canvas is;
Create a subclass of Canvas and override the usePadding property.

override mx_internal get usePadding():Boolean
{
return true;
}

This will turn the padding back on when the
layout calculates viewMetricsAndPadding.

Mike

On Fri, Oct 17, 2008 at 10:17 AM, claudiu ursica [EMAIL PROTECTED]wrote:

   The panel component supports padding, wil that suit you?

 HTH,
 Claudiu

 - Original Message 
 From: markflex2007 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, October 17, 2008 5:07:27 PM
 Subject: [flexcoders] how to add internal padding in canvas?

  I want to add right padding and left padding inside canvas so the
 controls in side do not touch the side of canvas, but canvas do not
 have padding attribute, how to do this.

 Thanks

 MK


 __
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] web compiler

2008-10-17 Thread Michael Schmalle
Matt,
 They're only meant for dev-time, not production,

What do you mean by that? I thought you could use them to compile are you
saying they are buggy or not completely implemented?

Mike

On Fri, Oct 17, 2008 at 12:26 PM, Matt Chotin [EMAIL PROTECTED] wrote:

   We have a web compiler available for Apache, IIS, and J2EE. They're only
 meant for dev-time, not production, but I'd imagine that's what's being
 used. You need to make sure that they're set up with the same config as Flex
 Builder.

 Matt


 On 10/17/08 4:07 AM, Tom Chiverton [EMAIL 
 PROTECTED]tom.chiverton%40halliwells.com
 wrote:

 On Friday 17 Oct 2008, jitendra jain wrote:
  I want to do some load testing and that's why iam using .mxml files.

 But you'll only do the compile once for each release, not once for each
 request... it can't be as important as the calls that application actually
 makes.

 --
 Tom Chiverton
 Helping to paradigmatically morph B2C fourth-generation methodologies

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP. Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.

 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: how to add internal padding in canvas?

2008-10-17 Thread Michael Schmalle
Tracy,
Container::getScrollableRect():Rectangle

uses usePadding,

Dumb answer on my part. I had to subclass canvas where I actually wanted the
padding to count in the scrollRect.

Sorry for the noise, I'm thinking to much these days. I agree, from a design
perspective there is no need to do what I said.

But for the sake of an explanation, usePadding has to do with the
contentPane and how it gets shifted when there is scrollable content, so
overriding that would give you padding even though your component is at 0,0
in the contentPane.

Mike

On Fri, Oct 17, 2008 at 1:36 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

Hold on a minute.  Canvas uses absolute positioning.  So padding
 would only affect percentage resizing?  And 0,0 would still be top left
 corner, regardless of the padding?



 This seems kind of confusing.  I'm with Tim, and think this would be better
 solved with constraints.  I suppose you could declare Spacers of
 height=100% and whatever width you wanted, and position them with
 constraints.



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Tim Hoff
 *Sent:* Friday, October 17, 2008 12:01 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: how to add internal padding in canvas?




 Another alternative, if you have to use a Canvas and don't want to
 subclass, is to use constraints (top, bottom, left, right) on the
 children.

 -TH

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 markflex2007 [EMAIL PROTECTED]
 wrote:
 
  Hi,Mike
 
  Please let me know this in detail.
 
  I can extends Canvas and create a new class (like samrtcavas).
 
  I confuse how to use the class in mxml and how to set left/right
 paddings
 
  Thanks for your help
 
  Mark
 
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Michael Schmalle
  teoti.graphix@ wrote:
  
   A hack that can be done if you really want Canvas is;
   Create a subclass of Canvas and override the usePadding property.
  
   override mx_internal get usePadding():Boolean
   {
   return true;
   }
  
   This will turn the padding back on when the
   layout calculates viewMetricsAndPadding.
  
   Mike
  
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] web compiler

2008-10-17 Thread Michael Schmalle
Ok,
I had this in my plans to investigate in a couple months for my server.

So is there something that caches swf on the first run, then only recompiles
when the mxml has changed?

Where did I hear that? This is in my head from a year or two ago.

Mike

On Fri, Oct 17, 2008 at 1:46 PM, Paul Andrews [EMAIL PROTECTED] wrote:

If there isn't a mechanism for caching the compilation result (user
 requests mxml, but actually gets html/swf), performance in a production
 environment would be appaling. That wouldn't matter for development.

 - Original Message -
 *From:* Michael Schmalle [EMAIL PROTECTED]
 *To:* flexcoders@yahoogroups.com
 *Sent:* Friday, October 17, 2008 5:57 PM
 *Subject:* Re: [flexcoders] web compiler

 Matt,
  They're only meant for dev-time, not production,

 What do you mean by that? I thought you could use them to compile are you
 saying they are buggy or not completely implemented?

 Mike

 On Fri, Oct 17, 2008 at 12:26 PM, Matt Chotin [EMAIL PROTECTED] wrote:

   We have a web compiler available for Apache, IIS, and J2EE. They're
 only meant for dev-time, not production, but I'd imagine that's what's being
 used. You need to make sure that they're set up with the same config as Flex
 Builder.

 Matt


 On 10/17/08 4:07 AM, Tom Chiverton [EMAIL 
 PROTECTED]tom.chiverton%40halliwells.com
 wrote:

 On Friday 17 Oct 2008, jitendra jain wrote:
  I want to do some load testing and that's why iam using .mxml files.

 But you'll only do the compile once for each release, not once for each
 request... it can't be as important as the calls that application actually
 makes.

 --
 Tom Chiverton
 Helping to paradigmatically morph B2C fourth-generation methodologies

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office address
 is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.
 A list of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP. Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.

 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: how to add internal padding in canvas?

2008-10-17 Thread Michael Schmalle
The irony to all this over analyzation is;
We never heard the OP say WHY he even wanted to do this (padding in Canvas)
let alone if he even needed a canvas to do what he needed to do!

I just need to stay out of these application questions. ;-)

Tim, It is really exciting to see the future of flex and CSS.
I definitely encourage using things that deal with styles since the
framework is going to tip that way soon anyway. This is in reference to
using constraints.

I see loading style sheets as modules sooner than later. :)

Mike


On Fri, Oct 17, 2008 at 3:19 PM, Tim Hoff [EMAIL PROTECTED] wrote:


 I hear ya man. Just like to keep things simple and, when possible,
 allow for pulling the styles out to CSS. I'm sure using a Box with
 padding would work for this too; instead of having two containers.


 -TH

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul
 Andrews [EMAIL PROTECTED] wrote:
 
  Yes, I'm just old school this time round!
  - Original Message -
  From: Tim Hoff
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Sent: Friday, October 17, 2008 7:58 PM
  Subject: [flexcoders] Re: how to add internal padding in canvas?
 
 
  Just preference, but I'd rather see:
 
  mx:Canvas id=outer
  mx:Canvas id=inner top=10 bottom=10 left=10 right=10
  // my content
  /mx:Canvas
  /mx:Canvas
 
  -TH
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul
 Andrews paul@ wrote:
  
   - Original Message -
   From: Paul Andrews paul@
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Sent: Friday, October 17, 2008 7:22 PM
   Subject: Re: [flexcoders] Re: how to add internal padding in canvas?
  
  
- Original Message -
From: markflex2007 markflex2007@
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Sent: Friday, October 17, 2008 6:51 PM
Subject: [flexcoders] Re: how to add internal padding in canvas?
   
   
Please give me a simple demo,how to do  nest the canvas inside
another container to get the margin?
   
Something like this perhaps..
   
I'm assuming that the reason for the margin is to leave a gap
 around the
edges. Lets say you want a 5 pixel gap.
   
mx:Canvas id=outerCanvas
mx:Canvas id=innerCanvas width={outerCanvas-10}
  
   Oops.. mx:Canvas id=innerCanvas width={outerCanvas.width-10}
  
height={outerCanvas-10} x=5 y=5 
  
   height={outerCanvas.height-10} x=5 y=5 
  
   
add other stuff here
   
/mx:Canvas
/mx:Canvas
   
Any good?
   
Maybe I've got the wrong idea about why you want the margin.
   
Paul
   
   
   
Thanks for help
   
Mark
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Paul Andrews paul@ wrote:
   
You can always nest the canvas inside another container to get
 the
margin..
   
   
   

   
--
Flexcoders Mailing List
FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
   
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
 1e62079f6847https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
 Groups
Links
   
   
   
   
   
   

   
--
Flexcoders Mailing List
FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
   
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
 1e62079f6847https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
 Groups
Links
   
   
   
   
  
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Extending UIComponent memory issues.

2008-10-16 Thread Michael Schmalle
Doug, Jason,
Since I am a self-centered person that doesn't like to be misunderstood,
;-), I could have brought up the 4000 object issue. In previous threads with
Jason, he said this was a requirement from the higher order. So I left it
where it was, 4000 objects.

As far as the IUIComponent issue, it is Container that requires them not
'Flex' itself.

This is where as flex projects, Web 2.0 and performance are reaching a point
where it's not just making a Flash IDE animation anymore.

When the requirements of these projects come to this level there is more
engineering involved and Flex out of the box is not going to handle
situations like this.

The absolute way to do this is creating a UIComponent subclass that is the
container, creating your layout algorithm in this component. Subclass
FlexSprite, make that your content loader component.

Then instantiate the content components in the UIComponent container. This
is the lean version of your design I envision. You could even recycle the
content renderers in your container component Lot's of things you could
do ;-)

Mike


On Wed, Oct 15, 2008 at 10:47 PM, flexaustin [EMAIL PROTECTED] wrote:

   Doug, what would you go with? Sprite?

 I thought sprite, but you need to implement all the IUIComponent stuff
 or use composition correct? Wouldn't composition reduce the benefits
 gained by using Sprite?

 Doug, if you message me and I can tell you where to see the component.

 jason (underscore) newport {at) hot mail

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Doug
 McCune [EMAIL PROTECTED] wrote:
 
  You've got 4,000 things all moving around at once? Are all 4,000 of
 those
  actually visible? 4,000 UI components seems like a lot for any layout
  manager to have to deal with. I'd try to focus on figuring out how
 to reduce
  the number of UIComponents before I worried about how much memory
 each one
  is taking up. I may be totally off base, but I can't imagine a scenario
  where you want 4,000 images all on the screen at the same time.
 
  And if you do really need to load 4,000 swfs all at the same time
 then you
  probably want something that's lighter than custom UIComponent classes,
  which would keep those 4,000 objects out of the normal
  invalidation/validation cycles of the display list.
 
  Doug
 
  On Wed, Oct 15, 2008 at 1:34 PM, Michael Schmalle
  [EMAIL PROTECTED]wrote:
 
   A side note,
   You are doing some very expensive leg work in the 'content' setter.
  
   You need to break that out into commitProperties() and
 updateDisplayList().
  
   You would get a huge performance increase for sure.
  
   As far as the memory, doesn't look to weird, event listeners
 without weak
   references can make thing hang around as well.
  
   Mike
  
  
   On Wed, Oct 15, 2008 at 3:08 PM, flexaustin [EMAIL PROTECTED] wrote:
  
   So I have this base component, that when running profiler, says its
   eating up tons of memory. I have about 4000 of these at one time in
   my Flex app (see component code below). This base component is
   extended by two other components, which are then extended by two more
   components each so 3 or 4 levels above this base component.
  
   1. My first question is does the profiler just point to the base
 class
   or are there actually 4000 of these being created outside of their
   extended children?
  
   2. My 2nd question is is their anything wrong with the code
 below? Why
   is it eatin memory? The parameter content when pulled in is a swf
   file (icon) that is 5kb each so 5kb * 4000... you get the math.
  
   When I run this progam the CarouselImage's are using up 30% to 35% of
   my apps memory usage. And my app is eating up 725,000kb of mem usage,
   thus crashing my pretty decent computer.
  
   // --- BEGIN CODE --
   package com.mysite.views.components
   {
  
   import flash.display.DisplayObject;
   import flash.system.ApplicationDomain;
  
   import mx.core.UIComponent;
   import mx.events.ResizeEvent;
  
   public class CarouselImage extends UIComponent
   {
   // Content
   private var _content:DisplayObject;
   private var _contentWidth:Number;
   private var _contentHeight:Number;
  
   public function CarouselImage(content:*=null)
   {
   super();
  
   // Set content
   this.content = content;
   }
  
   // Properties
   [Inspectable]
   public function get content():DisplayObject
   {
   return _content;
   }
  
   public function set content(value:*):void
   {
   if (_content != null)
   {
   removeChild(_content)
   removeEventListener(ResizeEvent.RESIZE, handleResize);
   }
  
   if (value is String)
   {
   try
   {
   value = ApplicationDomain.currentDomain.getDefinition(value);
   }
   catch (error:*)
   {
   // Do nothing
   }
   }
  
   if (value is Class)
   value = new value();
  
   _content = value as DisplayObject;
  
   if (_content != null)
   {
   _contentWidth = _content.width;
   _contentHeight = _content.height

Re: [flexcoders] Override mx:Window close function

2008-10-16 Thread Michael Schmalle
Hi,
If I remeber correctly, you need to listen for window closing event and call
event.preventDefault().

This will stop the default behavior and then allow you to hide the window,
setting the visible or whatever implementation you have.

Mike

On Thu, Oct 16, 2008 at 12:11 PM, Nick Collins [EMAIL PROTECTED] wrote:

   I'm attempting to override a mx:Window's response to a close, so that if
 someone closes the window, it only hides it. The use case is that it's a
 properties window that can then be reopened when they select another
 element. The problem, of course, is that once a window has been closed you
 cannot reopen it.

 I have overridden the close function, but that is not having the effect I
 want. It seems I somehow need to override the event that is called when the
 deactivate event is called. How might I go about doing this?
  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Efficiency and objects in the display list

2008-10-16 Thread Michael Schmalle
And to put the icing on the cake...
The deal is the LayoutManager loves the IUIComponent interface which has
another buddy called IFlexDisplayObject.

IFlexDisplayObject is instrumental in coupling measurements plus nesting
levels that the layout manager needs to do it's queue sorting when laying
out display objects.

Navigators need Container children because Container is hard coded into them
all. :) They have implemented IContainer and added some members to it. I
hope they get all these concrete references out of the framework eventually.

If the Flex framework is going to be really successful in the long run,
everything needs to be renderers/factories and interfaces. I got three years
on riding Alex's coattails in this area. ;-)

Like how about IScrollContainer... this is in my framework now.

Mike



On Thu, Oct 16, 2008 at 2:06 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

I think that is correct.  Quoting Alex, Navigator children must be
 Containers, Container children must be IUIComponents, and UIComponent
 children can be anything.

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Amy
 *Sent:* Wednesday, October 15, 2008 11:36 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Efficiency and objects in the display list



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tracy
 Spratt [EMAIL PROTECTED] wrote:
 
  Container children must be UIComponents. You will need to add the
  sprites to a UIComponent first.

 I think technically there's just an interface that has to be
 implemented on whatever you add (IFlexDisplayObject? IUIComponent?).
 If you extend Sprite or whatever and implement whichever one is needed,
 you could add it to a container.

 -Amy

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Efficiency and objects in the display list

2008-10-16 Thread Michael Schmalle
One correction on my part.
It's IUIComponent that is important. IFlexDisplayObject is for skins so you
can call move(), setActualSize() and get a measuredWidth and measuredHeight
from them. The allows for the polymorphic behavior when laying out skins and
components. Your code can see the same thing and does not have to
differentiate between a component or skin (Shape).

The IFlexDisplayObject gives an impression of the core DisplayObject as
well.

The ILayoutManagerClient interface allows the layoutManager to use nesting
and call validation on the components in the queue.

Mike

On Thu, Oct 16, 2008 at 2:11 PM, Michael Schmalle
[EMAIL PROTECTED]wrote:

 And to put the icing on the cake...
 The deal is the LayoutManager loves the IUIComponent interface which has
 another buddy called IFlexDisplayObject.

 IFlexDisplayObject is instrumental in coupling measurements plus nesting
 levels that the layout manager needs to do it's queue sorting when laying
 out display objects.

 Navigators need Container children because Container is hard coded into
 them all. :) They have implemented IContainer and added some members to it.
 I hope they get all these concrete references out of the framework
 eventually.

 If the Flex framework is going to be really successful in the long run,
 everything needs to be renderers/factories and interfaces. I got three years
 on riding Alex's coattails in this area. ;-)

 Like how about IScrollContainer... this is in my framework now.

 Mike



 On Thu, Oct 16, 2008 at 2:06 PM, Tracy Spratt [EMAIL PROTECTED]wrote:

I think that is correct.  Quoting Alex, Navigator children must be
 Containers, Container children must be IUIComponents, and UIComponent
 children can be anything.

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Amy
 *Sent:* Wednesday, October 15, 2008 11:36 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Efficiency and objects in the display list



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tracy
 Spratt [EMAIL PROTECTED] wrote:
 
  Container children must be UIComponents. You will need to add the
  sprites to a UIComponent first.

 I think technically there's just an interface that has to be
 implemented on whatever you add (IFlexDisplayObject? IUIComponent?).
 If you extend Sprite or whatever and implement whichever one is needed,
 you could add it to a container.

 -Amy

  




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Interfaces with Styles

2008-10-15 Thread Michael Schmalle
Hi Amy,
No, the metadata is what instructs the compiler to add style definitions and
[Style()] meta is not allowed in an interface.

Needs to be done in the class package definition.

Mike

On Wed, Oct 15, 2008 at 2:33 PM, Amy [EMAIL PROTECTED] wrote:

   Is it possible to write an interface that specifies that a component
 will expose particular styles?

 Thanks;

 Amy

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Extending UIComponent memory issues.

2008-10-15 Thread Michael Schmalle
A side note,
You are doing some very expensive leg work in the 'content' setter.

You need to break that out into commitProperties() and updateDisplayList().

You would get a huge performance increase for sure.

As far as the memory, doesn't look to weird, event listeners without weak
references can make thing hang around as well.

Mike

On Wed, Oct 15, 2008 at 3:08 PM, flexaustin [EMAIL PROTECTED] wrote:

   So I have this base component, that when running profiler, says its
 eating up tons of memory. I have about 4000 of these at one time in
 my Flex app (see component code below). This base component is
 extended by two other components, which are then extended by two more
 components each so 3 or 4 levels above this base component.

 1. My first question is does the profiler just point to the base class
 or are there actually 4000 of these being created outside of their
 extended children?

 2. My 2nd question is is their anything wrong with the code below? Why
 is it eatin memory? The parameter content when pulled in is a swf
 file (icon) that is 5kb each so 5kb * 4000... you get the math.

 When I run this progam the CarouselImage's are using up 30% to 35% of
 my apps memory usage. And my app is eating up 725,000kb of mem usage,
 thus crashing my pretty decent computer.

 // --- BEGIN CODE --
 package com.mysite.views.components
 {

 import flash.display.DisplayObject;
 import flash.system.ApplicationDomain;

 import mx.core.UIComponent;
 import mx.events.ResizeEvent;

 public class CarouselImage extends UIComponent
 {
 // Content
 private var _content:DisplayObject;
 private var _contentWidth:Number;
 private var _contentHeight:Number;

 public function CarouselImage(content:*=null)
 {
 super();

 // Set content
 this.content = content;
 }

 // Properties
 [Inspectable]
 public function get content():DisplayObject
 {
 return _content;
 }

 public function set content(value:*):void
 {
 if (_content != null)
 {
 removeChild(_content)
 removeEventListener(ResizeEvent.RESIZE, handleResize);
 }

 if (value is String)
 {
 try
 {
 value = ApplicationDomain.currentDomain.getDefinition(value);
 }
 catch (error:*)
 {
 // Do nothing
 }
 }

 if (value is Class)
 value = new value();

 _content = value as DisplayObject;

 if (_content != null)
 {
 _contentWidth = _content.width;
 _contentHeight = _content.height;

 addChild(_content);
 addEventListener(ResizeEvent.RESIZE, handleResize);

 scaleContent();
 }

 this.invalidateDisplayList();
 this.invalidateProperties();
 this.invalidateSize();
 }

 public function get contentWidth():Number
 {
 return _contentWidth;
 }

 public function get contentHeight():Number
 {
 return _contentHeight;
 }

 // Measure and draw
 private function scaleContent():void
 {
 if (_content != null  width  0  height  0)
 {
 // Width
 _content.scaleX = width / contentWidth;
 // Center the image
 _content.x = (width - (contentWidth * _content.scaleX)) * 0.5;

 // Height
 _content.scaleY = height / contentHeight;
 // Center the image
 _content.y = (height - (contentHeight * _content.scaleY)) * 0.5;
 }
 }

 // Event handlers
 private function handleResize(event:ResizeEvent):void
 {
 scaleContent();
 this.invalidateDisplayList();
 this.invalidateProperties();
 this.invalidateSize();
 }

 }
 }
 // - END CODE 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Where is Alex Ahauri??

2008-10-14 Thread Michael Schmalle
Hi,
He was on vacation for over a month.

If I was him, after that long of vacation not doing anything job related, I
would be enjoying programming in flex again. I bet that is what he is
doing... enjoying his work again. :)

I'm sure you will see him around. Personally, I can't see how he can answer
so much when he still has his framework engineering to do.

Mike

On Tue, Oct 14, 2008 at 6:46 AM, jitendra jain [EMAIL PROTECTED]
 wrote:

   Hi Alex,

 So many days we have not witnessed any messages from you... Where are you??

 Thanks,

 with Regards,
 Jitendra Jain



 --
 Add more friends to your messenger and enjoy! Invite them 
 now.http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] component resize on registration point revisit?

2008-10-14 Thread Michael Schmalle
  IEEE floats aren't very nice.
I second that!

They make you become creative... add scale and rotation together, the IEEE
floats start to float away.

Mike

On Tue, Oct 14, 2008 at 6:50 PM, Josh McDonald [EMAIL PROTECTED] wrote:

   Without looking at your code, it's probably just a rounding error, IEEE
 floats aren't very nice. I'd keep the original top/left value put aside for
 when you return it to full size.

 -Josh

 On Wed, Oct 15, 2008 at 8:46 AM, gwangdesign [EMAIL PROTECTED]wrote:

 I did this little exercise to shrink a UIComponent from center. The
 component is scaled down when a button is clicked and scaled back to
 its original size when the mouse is released. It seems working fine
 except that the component shifts a little bit to top-left with each click.

 I cannot figure out which part goes wrong, but my guess in shrinkBack?

 Here is the swf and the source code:


 http://maohao.com/blogs/wordpress/TestSomething/bin-release/TestResize.html

 Sorry about the cross/duplicate post in advance. I can't remember if I
 post this or not...

 Have a good one.


 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 Like the cut of my jib? Check out my Flex blog!

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
 :: http://flex.joshmcdonald.info/

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Flex themes

2008-10-14 Thread Michael Schmalle
Amy,
A flex theme is just a SWC file.

Use the -theme compiler flag and add it to the options. Why would this be
silly? Probably would take me the time it took you to write that paragraph.
;-) But I don't have the theme.swc sitting in my test project, so add 1 more
minute. :)

Mike

On Tue, Oct 14, 2008 at 6:43 PM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 nathanpdaniel [EMAIL PROTECTED] wrote:
 
  The themes that come with flex are only css based. They're located
  under the install directory, {install dir}\sdks\{sdk #}
  \frameworks\themes
  You can import these the same way you do other artwork (File-Import-
  Skin Artwork) You can't really change the theme of the Flex project
  without importing first - there's not a theme property for an
  application.
  Hope this helps! :D

 I think to use them you have to change your compiler options. Seems
 silly to have to do that just to find out what they look like. Aren't
 there any pages hosted by Adobe that demo what they look like?

 Thanks;

 Amy

  ._,___




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Flex themes

2008-10-14 Thread Michael Schmalle
I was just seeing if you were actually reading my posts. :)
Mike

On Tue, Oct 14, 2008 at 7:07 PM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Michael Schmalle
 [EMAIL PROTECTED] wrote:
 
  Amy,
  A flex theme is just a SWC file.
 
  Use the -theme compiler flag and add it to the options. Why would
 this be
  silly? Probably would take me the time it took you to write that
 paragraph.
  ;-) But I don't have the theme.swc sitting in my test project, so add
 1 more
  minute. :)

 Because you'd need to create a test bed app similar to the style
 explorer to really get a feel for it.

 Thanks;

 Amy

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Create Help System in Flex - how to display html in a canvas or component?

2008-10-14 Thread Michael Schmalle
I'm writing a component that will integrate help in applications using the
DocBook xml format and an as3 parser - ui converter. This is coupled with
an asdoc generator application.
Patterns are based of of Eclipse's help system framework.

I think I might release this open source some day.

Screw HTML.

Mike


On Tue, Oct 14, 2008 at 2:30 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

..As far as Robohelp, they were acquired by Macromedia and so now
 Adobe has that too.  Actually I knew that and was slyly hinting that
 Adobe has to tools to produce a full solution to the
 help-system-in-Flash-Player problem.  I have googled for some indication
 that such an integration was being considered, but did not find any
 discussion.

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Brian Kurzius
 *Sent:* Saturday, October 11, 2008 4:41 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Create Help System in Flex - how to display
 html in a canvas or component?



 I agree with Jeff. I have been building an app that includes an rss
 reader and found that html formatted RSS entries work pretty well --
 it even properly displays links and images. The one problem
 (ironically) was that it can't display inline flash--like YouTube
 videos. So I tried the iframe approach but decided in the end to parse
 out any unsupported html tags and just display it in Flex. Much
 cleaner that way. In your case its even easier since you'll have
 control of the html you use in your help files.

 As far as Robohelp, they were acquired by Macromedia and so now Adobe
 has that too: http://www.adobe.com/products/robohelp/

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Battershall, Jeff
 [EMAIL PROTECTED] wrote:
 
  If your HTML rendering needs are rudimentary, you can use HTTPService to
  retrieve HTML files and use them for the htmlText property of the Text
  control. It supports (but not that well) such things as unordered
  lists, paragraphs and such. I've used this in combination with a vew
  stack and button bar to display multiple pages of help text. It's crude,
  but it works. Conceivably you could incorporate a Tree component and
  use that as a menuing system to retreive content via HTTP and display it
  in your content area.
 
  Jeff
 
  -Original Message-
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of Tracy Spratt
  Sent: Friday, October 10, 2008 2:25 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: RE: [flexcoders] Create Help System in Flex - how to
  display html in a canvas or component?
 
 
 
  Displaying full html in Flex (Flash Player) is not yet possible.
 
 
 
  What are your requirements? The simplest solution is to use a
  separate browser to display the html help pages. The Flex side needs to
  know where in the app the user is, and be able to determine the url to
  display. Using ExternalInterface you can exercise quite a bit of
  control over that window's behavior.
 
 
 
  Doing it all in Flex will be more difficult, primarily on the
  editing side. Dynamic display based on xml content is easy, but
  building a dynamic layout that looks like a help system might be a bit
  tricky. Directly editing xml files is not advised for non-developers,
  so you would need some king of wysiwyg editor...
 
 
 
  I would really like to see a Flex integration of something like
  RoboHelp. Who owns RoboHelp anyway?
 
 
 
  Tracy
 
 
 
 
 
 
  
 
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of scottyale2008
  Sent: Thursday, October 09, 2008 6:59 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Create Help System in Flex - how to
  display html in a canvas or component?
 
 
 
  I've built a flex gui that I want to display html files (or
  least that
  was my original thought). I tried doing some of the IFrame
  techniques but it doesn't seem to work on a mac.
 
  Anyway, the end-goal is for creating a help system. When certain
  links are clicked, I just want to display text in panel or
  component.
  The html files (or text files) would be separate so they can be
  easily edited and/or changed without a recompile of the swf.
 
  Should I try doing the external files in html, txt, or xml
  files? If
  XML, would I just fill up the node with pages of the text that
  represent the text?
 
  Sure I could do this with an html editor without flex, but I
  want this
  in a flex app!
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Custom itemRenderer for Tree

2008-10-13 Thread Michael Schmalle
 I am using the following code:
Did you use fontColor = white; ;-)

Can't see the following code.

Mike

On Mon, Oct 13, 2008 at 9:15 AM, Weyert de Boer [EMAIL PROTECTED] wrote:

   Hello,

 I am currently trying to work on a itemRenderer for the Flex Tree
 component. Only I am having some trouble with it.
 I would like to to hard-code the itemHeight of every item in the list.
 My objective is to make an itemRenderer which
 has a image item and a label and together with two 1px thick lines (on
 the top and bottom). Only the problem is that
 it looks clumsy somehow.

 The problems I am experiencing is:

 - The selection highlight indicator has disappeared
 - The vertical alignment of the text and image box is odd

 I am using the following code:

 Does anyone know how I can make this using MXML?

 Yours,
 Weyert de Boer
  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Real canvas height and width

2008-10-10 Thread Michael Schmalle
Hi,
When you explicitly set the width OR height of a component, the measure()
method will not be called since you have already locked in the dimensions
of the component canvas.

Use this method instead

v1.getExplicitOrMeasuredHeight()

You will see it traces your set height.

Now, take out the height and width assignments in MXML and you will see that
it now traces;

Height: 32
Measured Height: 32

Mike



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: set height of a Container back to default? (resize to content)

2008-10-10 Thread Michael Schmalle
Hi,
This is not right... throwing an error.

Can you post the error?

The hack your co-worker gave you is definitely unnecessary.

Can you post some code that will reproduce what you are trying to achieve?

Setting the container's height = NaN will force the container to ditch the
last height metric. When this happens the container invalidates it's size,
thus calling measure(), remeasuring child preferred widths and heights.

On the next validateDisplayList() call the layout manager will then set your
container to it's measuredHeight since there is no explicit height set.

I need to know the error you are getting.

Mike




On Thu, Oct 9, 2008 at 10:58 PM, Ryan [EMAIL PROTECTED] wrote:

   thanks, but I tried NaN and that doesn't work- throws an error.

 One hacky solution my co-worker came up with is to use a spacer inside
 the container and set the spacer's height when necessary.

 there should really be a way to remove the height property or set it
 back to auto. Anyone? Adobe? Adobe?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy
 [EMAIL PROTECTED] wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ryan
 drjimmy11@ wrote:
  
   I have the following quandary:
  
   I have a container which most of the time resizes to what it's
   holding. Fine.
  
   But sometimes I need it to be an explicit height- so i set the height-
   also fine.
  
   Then I need to set it back to resize to it's content. Problem. Setting
   height to null doesn't work. How can i take away the height property
   altogether?
 
  Just a guess, but try setting it to NaN.
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Flex Builder 4?

2008-10-10 Thread Michael Schmalle
Adobe loves releasing things at the end of summer into fall. I would guess
that.
Mike

2008/10/10 Battershall, Jeff [EMAIL PROTECTED]

I believe I saw H2 2009 somewhere for Flex 4, which I'm assuming means
 second-half of 2009.

  -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dimitrios Gianninas
 *Sent:* Friday, October 10, 2008 9:09 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Flex Builder 4?

 No one from Adobe has said anything yet, but one must assume it will be out
 at the same time as Flex 4, which is most likely sometime in 2009.

 *Dimitrios Gianninas*
 *RIA Developer Team Lead*
 *Optimal Payments Inc.*


  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *oneworld95
 *Sent:* Friday, October 10, 2008 8:40 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex Builder 4?

  How far away is Flex Builder 4 from release? I've downloaded the Gumbo
 SDK files from the Adobe OpenSource site but wondered when the next
 version of Flex Builder will be available. Thanks.

   *AVIS IMPORTANT*

 *WARNING*

 Ce message électronique et ses pièces jointes peuvent contenir des
 renseignements confidentiels, exclusifs ou légalement privilégiés destinés
 au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun
 privilège ou à aucun autre droit si le présent message a été transmis
 involontairement ou s'il est retransmis sans son autorisation. Si vous
 n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu
 par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi
 que toutes ses pièces jointes, de votre système. La lecture, la
 distribution, la copie ou tout autre usage du présent message ou de ses
 pièces jointes par des personnes autres que le destinataire visé ne sont pas
 autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
 électronique par erreur, veuillez en aviser l'expéditeur.

 This electronic message and its attachments may contain confidential,
 proprietary or legally privileged information, which is solely for the use
 of the intended recipient. No privilege or other rights are waived by any
 unintended transmission or unauthorized retransmission of this message. If
 you are not the intended recipient of this message, or if you have received
 it in error, you should immediately stop reading this message and delete it
 and all attachments from your system. The reading, distribution, copying or
 other use of this message or its attachments by unintended recipients is
 unauthorized and may be unlawful. If you have received this e-mail in error,
 please notify the sender.

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Screen freezes when running code in result callback function of HTTPService

2008-10-10 Thread Michael Schmalle
Hi,
This is a single thread problem. The problem is you are parsing data that is
taking that single thread the Flash Player uses to do all of it's work.

The solution is to batch your xml parsing into a timer queue of sorts,
dispatch an event to the progress bar updating the batch total to completed.
Then your screen will not lock up either.

I have done this with quite a bit of things, batching definitely works. You
as the developer need to figure out how to abstract the parsing into chunks.

Mike

On Thu, Oct 9, 2008 at 5:30 PM, johnsonpaul1014
[EMAIL PROTECTED]wrote:

   A project I am working on is using HTTPService to retrieve a large XML
 data set, parse it using e4x and display the data in charts. Since it
 is taking quite a bit of time to process the data, I decided to add a
 progress bar. The problem is the screen is not refreshing until all
 the data has been loaded and prepared for the charts. In fact, I
 tried using an indeterminate progress bar temporarily, and as soon as
 the result handler for HTTPService gets called, the animation on the
 bar stops until all the code executes and the charts are displayed.
 Please help.

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Interfaces WHY?

2008-10-10 Thread Michael Schmalle
Hi,
It's ICommand.

The reason is you can stack interfaces on top of each other allowing more
decoupling to the implementing concrete classes.

This interface is obvious. Any class that implements it needs eval() and
only eval. It's like a singleton declaration of implementation.

If you jammed this evel() method into IUIComponent, maybe all components
don't need eval. Make sense?

Also another good example of this type of interface in the flex framework is
IDataRenderer, it's only declared property is 'data'.

Mike

On Fri, Oct 10, 2008 at 9:19 AM, flexaustin [EMAIL PROTECTED] wrote:

   I was wondering if someone can explain why you would need an interface
 so short?

 INTERFACE:

 package my.package.area
 {
 /**
 * Interface for methods that evaluate an object and return a result.
 */
 public interface IEval
 {
 /**
 * Evaluates the input object
 * @o the object to evaluate
 * @return the computed result value
 */
 function eval(o:Object=null):*;

 } // end of interface IEval
 }

 USAGE OF INTERFACE:

 if (value is IEval) { value = IEval(value).eval(o) };

 Cairngorm has a short interface like this as well, though I cannot
 remember what it is. In Cairngorm they say its for naming or to make
 the code easier to understand? I am just not sure why you would do
 this? Help me see the light!

 TIA

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Interfaces WHY?

2008-10-10 Thread Michael Schmalle
 But in general I think implementation inheritance is over-used and
multiple inheritance can get you into trouble.
WORD!

Especially in UIComponent designs, I would discourage the use of extends
with interfaces.

It's a lot easier if your class just implements what it needs and leave
the inheritance to the class framework that is implementing the interfaces.

This is not to say don't, but careful design of User Interface interface
frameworks is needed. Adobe did a pretty good job at this.

If you were around in the Flex 2 betas especially the alpha you saw how
the scrubbed the interfaces and completely refactored out
some inheritance they used in the interface framework.

Mike

On Fri, Oct 10, 2008 at 11:14 AM, Richard Rodseth [EMAIL PROTECTED]wrote:

   Except that pseudo sounds disparaging, and I actually like an object
 model which has multiple inheritance of interfaces and single inheritance of
 implementations (same as Java, and maybe C# too?). Multiple inheritance of
 implementation results in ambiguity. Composition/delegation is a better
 approach in my view. Lots of literature about this that the original poster
 can read.

 Having said that, I did have one occasion in my career when I followed an
 example from Bertrand Meyer's book and implemented a tree node in C++ as a
 link and a list. But in general I think implementation inheritance is
 over-used and multiple inheritance can get you into trouble.


 On Fri, Oct 10, 2008 at 7:57 AM, Ryan Gravener [EMAIL PROTECTED]wrote:

   Pseudo multiple inheritance.

 Ryan Gravener
 http://twitter.com/ryangravener



 On Fri, Oct 10, 2008 at 10:23 AM, Richard Rodseth [EMAIL PROTECTED]wrote:

   And sometimes you even have interfaces with no methods. In this case
 it's a marker (often a parent of other interfaces) and when used in method
 signatures you get type checking.


 On Fri, Oct 10, 2008 at 6:26 AM, Michael Schmalle 
 [EMAIL PROTECTED] wrote:

   Hi,
 It's ICommand.

 The reason is you can stack interfaces on top of each other allowing
 more decoupling to the implementing concrete classes.

 This interface is obvious. Any class that implements it needs eval() and
 only eval. It's like a singleton declaration of implementation.

 If you jammed this evel() method into IUIComponent, maybe all components
 don't need eval. Make sense?

 Also another good example of this type of interface in the flex
 framework is IDataRenderer, it's only declared property is 'data'.

 Mike

  On Fri, Oct 10, 2008 at 9:19 AM, flexaustin [EMAIL PROTECTED]wrote:

   I was wondering if someone can explain why you would need an
 interface
 so short?

 INTERFACE:

 package my.package.area
 {
 /**
 * Interface for methods that evaluate an object and return a result.
 */
 public interface IEval
 {
 /**
 * Evaluates the input object
 * @o the object to evaluate
 * @return the computed result value
 */
 function eval(o:Object=null):*;

 } // end of interface IEval
 }

 USAGE OF INTERFACE:

 if (value is IEval) { value = IEval(value).eval(o) };

 Cairngorm has a short interface like this as well, though I cannot
 remember what it is. In Cairngorm they say its for naming or to make
 the code easier to understand? I am just not sure why you would do
 this? Help me see the light!

 TIA




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.




  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] using callLater with setter?

2008-10-10 Thread Michael Schmalle
Hi,
This works, I tested it;

callLater(function (stack:ViewStack, container:Container):void {
stack.selectedChild = container;
}, [viewStack, someBox]);


Mike

On Fri, Oct 10, 2008 at 12:10 PM, Pan Troglodytes [EMAIL PROTECTED]wrote:

   Is there some way to use callLater to set a property that has a setter?
 So far, all I can think of is to create a dummy function that does the
 setting and pass it in the callLater:

 private function setSelectedChild(viewStack:ViewStack,
 newChild:Container):void
 {
   viewStack.selectedChild = newChild;
 }

 ...

 callLater(setSelectedChild, [someBox]);


 Any better way to do it?

 --
 Jason

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] using callLater with setter?

2008-10-10 Thread Michael Schmalle
Yeah, I understand.
The problem as you know is they use apply() so you need the real name of the
setter when flex compiles it. I thought they uses 'setSelectedChild', I
tried that and it was not defined.

Maybe keep generated as could show something.

Mike

On Fri, Oct 10, 2008 at 12:47 PM, Pan Troglodytes [EMAIL PROTECTED]wrote:

   Thanks Mike, but that's really what I was trying to avoid.  That's the
 same as my example, only the function is anonymous instead.  I thought maybe
 there was some way to get Flex to realize I wanted the setter function, not
 the property.

 On Fri, Oct 10, 2008 at 11:30 AM, Michael Schmalle 
 [EMAIL PROTECTED] wrote:

   Hi,
 This works, I tested it;

 callLater(function (stack:ViewStack, container:Container):void {
 stack.selectedChild = container;
 }, [viewStack, someBox]);


 Mike


 On Fri, Oct 10, 2008 at 12:10 PM, Pan Troglodytes [EMAIL PROTECTED]
  wrote:

   Is there some way to use callLater to set a property that has a
 setter?  So far, all I can think of is to create a dummy function that does
 the setting and pass it in the callLater:

 private function setSelectedChild(viewStack:ViewStack,
 newChild:Container):void
 {
   viewStack.selectedChild = newChild;
 }

 ...

 callLater(setSelectedChild, [someBox]);


 Any better way to do it?

 --
 Jason




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.




 --
 Jason

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] using callLater with setter?

2008-10-10 Thread Michael Schmalle
Ah never mind about the generated, just checked.
I thought I saw somewhere, where a dev actually accessed the real method
that the compiler creates.

Mike

PS The anonymous function isn't that bad since it doesn't pollute your
classes api.

On Fri, Oct 10, 2008 at 12:52 PM, Michael Schmalle
[EMAIL PROTECTED]wrote:

 Yeah, I understand.
 The problem as you know is they use apply() so you need the real name of
 the setter when flex compiles it. I thought they uses 'setSelectedChild', I
 tried that and it was not defined.

 Maybe keep generated as could show something.

 Mike


 On Fri, Oct 10, 2008 at 12:47 PM, Pan Troglodytes [EMAIL PROTECTED]wrote:

   Thanks Mike, but that's really what I was trying to avoid.  That's the
 same as my example, only the function is anonymous instead.  I thought maybe
 there was some way to get Flex to realize I wanted the setter function, not
 the property.

 On Fri, Oct 10, 2008 at 11:30 AM, Michael Schmalle 
 [EMAIL PROTECTED] wrote:

   Hi,
 This works, I tested it;

 callLater(function (stack:ViewStack, container:Container):void {
 stack.selectedChild = container;
 }, [viewStack, someBox]);


 Mike


 On Fri, Oct 10, 2008 at 12:10 PM, Pan Troglodytes 
 [EMAIL PROTECTED] wrote:

   Is there some way to use callLater to set a property that has a
 setter?  So far, all I can think of is to create a dummy function that does
 the setting and pass it in the callLater:

 private function setSelectedChild(viewStack:ViewStack,
 newChild:Container):void
 {
   viewStack.selectedChild = newChild;
 }

 ...

 callLater(setSelectedChild, [someBox]);


 Any better way to do it?

 --
 Jason




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.




 --
 Jason

  




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: How to make a Docking Window Framework/component like Eclipse/InfoDock/JDock

2008-10-09 Thread Michael Schmalle
Yeah, I forgot about that.
There are probably 20 different ways you could implement something like
this. From my experience you want to start out thinking abstraction and not
program to much into your views.

Mike

On Thu, Oct 9, 2008 at 7:16 AM, nathanleewei [EMAIL PROTECTED] wrote:

   maybe I should get some idea from
 SuperTabNavigator(flexlib/dougmccune)

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: How to make a Docking Window Framework/component like Eclipse/InfoDock/JDocking

2008-10-09 Thread Michael Schmalle
@Josh
Well buddy, this dads gotta make money for the little people in his house
but, since you are one of the groupies around here, I could use some beta
testers and then flip you it for free (for your time ;-)

@Tim

Thanks, and these frameworks were designed with love. If you look at my
blog, it looks like I died or got abducted by aliens. Really, I have been
working hard on something I could finally feel comfortable saying this could
be around for 5+ years.

Coming up;

Windowing Framework
Transformation Framework
View Framework
Docking Framework

The windowing framework plays a major role in anything I do from here out.
The framework will cross pollinate with AIR. I also borrowed some design
patterns from eclipse that abstract window implementation from the actual
view component itself. This is the first one I'm releasing. Plus this time I
am selling the source code as well.

Mike

On Wed, Oct 8, 2008 at 10:00 PM, Tim Hoff [EMAIL PROTECTED] wrote:


 If it's anything like your components and/or framework Mike, it's going
 to rock! I've found them to be very useful.

 -TH


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh
 McDonald [EMAIL PROTECTED] wrote:
 
  Mike, I'm very interested in this. Will it be for-pay, or OSS? If it's
 OSS,
  need any help?
 
  -Josh
 
  On Wed, Oct 8, 2008 at 11:37 PM, Michael Schmalle
  [EMAIL PROTECTED]:
 
  
  
   Ironically, I am releasing a framework like this in 2 months. Truth
 be
   told, I have spent 1 1/2 years creating a base framework that made
 it
   happen.
  
   Mike
  
  
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
 
  http://flex.joshmcdonald.info/
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Error 1150 when overriding protected function

2008-10-09 Thread Michael Schmalle
Hi,
You have a brace mismatch in your class/package. :)

Mike

On Thu, Oct 9, 2008 at 4:59 PM, Amy [EMAIL PROTECTED] wrote:

   I'm trying to do a quick and dirty extension of LegendItem to fix the
 fact that, since the UITextFields don't wordwrap, they don't respect
 the 100% width given to them by Legend. When I try to override
 createChildren to get my fingers on the UITextField, I get a compiler
 error 1150: The protected attribute can only be used on class
 property definitions.

 Here's my function:

 override protected function createChildren():void{
 super.createChildren();
 for (var i:int=0;inumChildren; i++){
 var child:DisplayObject=getChildAt(i);
 var txt:UITextField = child as UITextField;
 if (!(txt==null)){
 txt.wordWrap=true;
 txt.invalidateSize();
 }
 }
 }

 There's something odd about this class, because usually when you
 start typing override protected function in a class, it has a whole
 list of functions you might be overriding. But in this class, that
 doesn't happen.

 If anyone has any ideas, I'd be very grateful.

 Thanks;

 Amy

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Error 1150 when overriding protected function

2008-10-09 Thread Michael Schmalle
Hi,
You Do have a mismatch brace


package com.magnoliamultimedia.views
{
import flash.display.DisplayObject;

import mx.charts.LegendItem;
import mx.core.UITextField;

public class WrappingLegendItem extends LegendItem
{
public function WrappingLegendItem()
{
super();
}

} --- WRONG !!! :)
override protected function createChildren():void{

}
}

Right where the wrong is.

Should be...


package com.magnoliamultimedia.views
{
import flash.display.DisplayObject;

import mx.charts.LegendItem;
import mx.core.UITextField;

public class WrappingLegendItem extends LegendItem
{
   public function WrappingLegendItem()
   {
  super();

   }


   override protected function createChildren():void{

   }
}
}



Mike



On Thu, Oct 9, 2008 at 5:37 PM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Michael Schmalle
 [EMAIL PROTECTED] wrote:
 
  Hi,
  You have a brace mismatch in your class/package. :)

 Still trying to troubleshoot this. Even just this throws the same
 error:

 package com.magnoliamultimedia.views
 {
 import flash.display.DisplayObject;

 import mx.charts.LegendItem;
 import mx.core.UITextField;

 public class WrappingLegendItem extends LegendItem
 {
 public function WrappingLegendItem()
 {
 super();
 }

 }
 override protected function createChildren():void{

 }
 }

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] How to make a Docking Window Framework/component like Eclipse/InfoDock/JDocking

2008-10-08 Thread Michael Schmalle
Hi,
No need to cross post from flexcomponents to flexcoders most of us read
both.

This is a bit of engineering on your part. This is like asking where do I
start to make a space ship. There are so many details, you will need to
design this from your knowledge of flex components.

You might look at the flexlib and it's MDI implementation. That might give
you some ideas on where to start.

Ironically, I am releasing a framework like this in 2 months. Truth be told,
I have spent 1 1/2 years creating a base framework that made it happen.

Mike

On Wed, Oct 8, 2008 at 12:39 AM, nathanleewei [EMAIL PROTECTED]wrote:

   How to make a Docking Window Framework/Component like
 Eclipse/InfoDock/JDocking?

 +RootWindow
 |
 +--SplitWindow
 |
 +--SplitWindow
 | |
 | +--TabWindow
 | +--TabWindow
 |
 +--TabWindow
 |
 +--Tabbar
 +--ViewStack
 +--Max Buttton
 +--Min Button

 Where should I start?
 How to implement TabWindow? TabNavigator + buttons or Tabbar+
 ViewStack?

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Refresh Flex Navigator's Projects in Flex Builder

2008-10-07 Thread Michael Schmalle
You can also hit F5 when the project is selected and it will re-sync the
disk drive directories and content.
Mike

On Tue, Oct 7, 2008 at 10:51 AM, Tom Chiverton [EMAIL PROTECTED]
 wrote:

 On Monday 06 Oct 2008, itdanny2002 wrote:
  How to refresh all projects in flex builder ?

 Close and reopen Builder.

 --
 Tom Chiverton
 Helping to globally embrace systems



 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A
 list of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.

 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] any way to integrate 3rd-party help into FB?

2008-10-06 Thread Michael Schmalle
Hi Jason,
Eclipse plugin project with a plugin.xml like


?xml version=1.0 encoding=UTF-8?
?eclipse version=3.2?
plugin

   extension
 point=org.eclipse.help.toc
  toc
file=toc.xml primary=true
  /toc
   /extension

/plugin


This is the only way you will get it to show up as a 'book' in the FB help.

I've done it and it works great, you can even create an update site, that
can keep the docs fresh.

You need the PDE plugin to create a plugin. I use a different version of
eclipse (not FB) to create plugins.

See the Creating a plugin using the help extension point (in the PDE docs).
 This might be worthy of a blog post someday. :)

Mike

On Mon, Oct 6, 2008 at 12:15 PM, Pan Troglodytes [EMAIL PROTECTED]wrote:

   I'm been hunting around to no avail on this question.  I have created
 help for my components using ASDOC.  What's the recommended procedure to get
 that help to show up in FB?  Is there one?

 Thanks.

 --
 Jason

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Base component Sprite vs. UIComponent.

2008-10-03 Thread Michael Schmalle
 It's the container layouts that kill performance anyway!
EDIT ::

It's the [WAY WE USE] container layouts that kill performance anyway!

Mike


On Fri, Oct 3, 2008 at 10:04 AM, Gregor Kiddie [EMAIL PROTECTED] wrote:

We had literally the same discussion this morning! We've just
 re-implemented a UI heavy component to use Sprites right until the point
 that we needed Flex components rather than just Flash ones.

 We found that using UIComponent had very little difference speed wise over
 using Sprite and re-implementing the IUIInterface, so went with using
 UIComponent.



 It's the container layouts that kill performance anyway!



 Gk.

 *Gregor Kiddie*
 Senior Developer
 *INPS*

 Tel:   01382 564343

 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

 Registered Number: 1788577

 Registered in the UK

 Visit our Internet Web site at www.inps.co.uk

 The information in this internet email is confidential and is intended
 solely for the addressee. Access, copying or re-use of information in it by
 anyone else is not authorised. Any views or opinions presented are solely
 those of the author and do not necessarily represent those of INPS or any of
 its affiliates. If you are not the intended recipient please contact
 [EMAIL PROTECTED]
   --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *flexaustin
 *Sent:* 03 October 2008 14:59
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Base component Sprite vs. UIComponent.



 Is there any benefit (memory/cpu usage) to using Sprite as your base
 component over UIComponent? I know if use Sprite in Flex you need to
 use IUIComponent then implement all the methods require, which is a
 huge pain.

 Or you can use composition and create and instance of a UIComponent
 and use that, but then that kind of defeats the purpose of not using
 or instantiating an instance of a UIComponent as now you have both a
 UIComponent and Sprite.

 The reason I ask is I have a very rendering intensive app that is
 dragging my CPU down and its all caused by a UIComponent that contains
 several children and it has a dropshadow (C level says we need to have
 dropshadow so can't remove it).

 I am thinking I will just need to use UIComponent and move on.

 TIA

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Base component Sprite vs. UIComponent.

2008-10-03 Thread Michael Schmalle
Hi,
  caused by a UIComponent that contains
several children and it has a dropshadow (C level says we need to have
dropshadow so can't remove it).

I can't believe a UIComponent is killing your performance that bad, I would
be willing to bet there is something else going on here but without code,  I
can only speculate.

Mike

On Fri, Oct 3, 2008 at 9:59 AM, flexaustin [EMAIL PROTECTED] wrote:

   Is there any benefit (memory/cpu usage) to using Sprite as your base
 component over UIComponent? I know if use Sprite in Flex you need to
 use IUIComponent then implement all the methods require, which is a
 huge pain.

 Or you can use composition and create and instance of a UIComponent
 and use that, but then that kind of defeats the purpose of not using
 or instantiating an instance of a UIComponent as now you have both a
 UIComponent and Sprite.

 The reason I ask is I have a very rendering intensive app that is
 dragging my CPU down and its all caused by a UIComponent that contains
 several children and it has a dropshadow (C level says we need to have
 dropshadow so can't remove it).

 I am thinking I will just need to use UIComponent and move on.

 TIA

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Base component Sprite vs. UIComponent.

2008-10-03 Thread Michael Schmalle
 reflections and dropshadows
Ah yeah, Web 2.0 right? Well I guess your application will speed up when Web
3.0 comes out and dropshadows - reflections are passe. ;-)

Mainly the dumb reflection fad right now.

Mike

On Fri, Oct 3, 2008 at 2:18 PM, flexaustin [EMAIL PROTECTED] wrote:

   There are upto 200 UIComponents with reflections and dropshadows that
 scale as you move something like a carousel.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael
 Schmalle

 [EMAIL PROTECTED] wrote:
 
  Hi,
   caused by a UIComponent that contains
  several children and it has a dropshadow (C level says we need to have
  dropshadow so can't remove it).
 
  I can't believe a UIComponent is killing your performance that bad,
 I would
  be willing to bet there is something else going on here but without
 code, I
  can only speculate.
 
  Mike
 
  On Fri, Oct 3, 2008 at 9:59 AM, flexaustin [EMAIL PROTECTED] wrote:
 
   Is there any benefit (memory/cpu usage) to using Sprite as your base
   component over UIComponent? I know if use Sprite in Flex you need to
   use IUIComponent then implement all the methods require, which is a
   huge pain.
  
   Or you can use composition and create and instance of a UIComponent
   and use that, but then that kind of defeats the purpose of not using
   or instantiating an instance of a UIComponent as now you have both a
   UIComponent and Sprite.
  
   The reason I ask is I have a very rendering intensive app that is
   dragging my CPU down and its all caused by a UIComponent that contains
   several children and it has a dropshadow (C level says we need to have
   dropshadow so can't remove it).
  
   I am thinking I will just need to use UIComponent and move on.
  
   TIA
  
  
  
 
 
 
  --
  Teoti Graphix, LLC
  http://www.teotigraphix.com
 
  Teoti Graphix Blog
  http://www.blog.teotigraphix.com
 
  You can find more by solving the problem then by 'asking the question'.
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] component reuse

2008-10-02 Thread Michael Schmalle
 Is it possible to lazy load a SWC?

No, SWC have to be compiled with the mxmlc compiler into the app.

RSLs can lazy load component libraries though.

Mike

On Thu, Oct 2, 2008 at 3:39 AM, Sefi Ninio [EMAIL PROTECTED] wrote:

   Hey Scott,

 I actually thought of creating a SWC as well, but I wanted to leverage lazy
 loading into the main app, that's why I thought more along the lines of a
 module loaded first time it's needed.
 Is it possible to lazy load a SWC?

 On Thu, Oct 2, 2008 at 10:17 AM, Scott Melby [EMAIL PROTECTED]wrote:

I would be inclined to use the component compiler 
 (compchttp://livedocs.adobe.com/flex/3/html/help.html?content=compilers_22.html)
 to build a component into a .swc library (think flexlib) that you could then
 easily use from each version of your application (just load the .swc as a
 library).

 hth
 Scott

 --
 Scott Melby
 Founder, Fast Lane Software LLC
 http://www.fastlanesw.com



 sefi.ninio wrote:

  Hi everyone.

 I have a functionality that needs to be implemented both as a
 standalone app (for users with restricted access) and as a module in
 the main app (for users with full rights access).

 In the effort of code reuse (and laziness, of course), I'd like to
 implement the functionality once and pack it as a standalone
 application and as a module to be loaded inside the main app.

 I am in the middle of the process of thinking how to achieve this, and
 would appreciate any suggestions the community here might have to offer.

 I thought of packing it as a module and make both main app and
 restricted app load it as a module - that seems the obvious approach,
 but I'm curious if there are more elegant ways to resolve this.

 Thanks,
 Sefi



  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] component reuse

2008-10-02 Thread Michael Schmalle
Hi,
SWCs have nothing to do with loading and runtime. An SWC is a collection of
abc bytecode that gets compiled into a application with the mxmlc compiler.

You have to create the rsl from an SWC with the compiler.

Mike

On Thu, Oct 2, 2008 at 7:29 AM, Sefi Ninio [EMAIL PROTECTED] wrote:

   Hmm... I thought that for SWC to be lazy loaded as RSLs, they need to be
 SWZ (which only Adobe can create)...

 On Thu, Oct 2, 2008 at 1:53 PM, Michael Schmalle [EMAIL PROTECTED]wrote:

Is it possible to lazy load a SWC?

 No, SWC have to be compiled with the mxmlc compiler into the app.

 RSLs can lazy load component libraries though.

 Mike

 On Thu, Oct 2, 2008 at 3:39 AM, Sefi Ninio [EMAIL PROTECTED] wrote:

   Hey Scott,

 I actually thought of creating a SWC as well, but I wanted to leverage
 lazy loading into the main app, that's why I thought more along the lines of
 a module loaded first time it's needed.
 Is it possible to lazy load a SWC?

 On Thu, Oct 2, 2008 at 10:17 AM, Scott Melby [EMAIL PROTECTED]wrote:

I would be inclined to use the component compiler 
 (compchttp://livedocs.adobe.com/flex/3/html/help.html?content=compilers_22.html)
 to build a component into a .swc library (think flexlib) that you could 
 then
 easily use from each version of your application (just load the .swc as a
 library).

 hth
 Scott

 --
 Scott Melby
 Founder, Fast Lane Software LLC
 http://www.fastlanesw.com



 sefi.ninio wrote:

  Hi everyone.

 I have a functionality that needs to be implemented both as a
 standalone app (for users with restricted access) and as a module in
 the main app (for users with full rights access).

 In the effort of code reuse (and laziness, of course), I'd like to
 implement the functionality once and pack it as a standalone
 application and as a module to be loaded inside the main app.

 I am in the middle of the process of thinking how to achieve this, and
 would appreciate any suggestions the community here might have to offer.

 I thought of packing it as a module and make both main app and
 restricted app load it as a module - that seems the obvious approach,
 but I'm curious if there are more elegant ways to resolve this.

 Thanks,
 Sefi






 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.


  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: [ANN] Announcing Smartypants IOC, a dependency-injection library for Flex.

2008-10-02 Thread Michael Schmalle
 Hey FO Smartypants
I'm reporting you to YAHOO POLICE Tim! This is un exceptable list protocol!

Expect a summons in the mail next week.

... the bitter one

On Thu, Oct 2, 2008 at 4:47 PM, Josh McDonald [EMAIL PROTECTED] wrote:

   Aw jeeze, I'm getting tired of fixing that! What browser are you on? I
 thought it worked on ie 6...

 On Fri, Oct 3, 2008 at 4:17 AM, Tim Hoff [EMAIL PROTECTED] wrote:


 Hey FO Smartypants.  Totally kidding Josh.  Good on you mate.  But, I'm
 getting a blank page for the blog post.  Just a heads up.

 Cheers,
 -TH

 --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:
 
  Hey guys,
 
  Just wanted to let you know I've publicly released my
 dependency-injection
  library, Smartypants IOC! It uses an AS3-based DSL to to specify
 rules, and
  injection points are defined via AS3 metadata, similar to Google
 Guice.
 
  Blog post:
 
 http://flex.joshmcdonald.info/2008/10/announcing-smartypants-ioc-depende\http://flex.joshmcdonald.info/2008/10/announcing-smartypants-ioc-depende%5C
 ncy.html
 
  Google code: http://code.google.com/p/smartypants-ioc/
 
  API Reference: http://smartypants.gfunk007.com/api/
 
  Thanks go out to everybody who helped with ideas for the rule DSL, and
 those
  who've been looking forward to the public release of Smartypants IOC,
 and
  I'm looking forward to your thoughts, opinions and suggestions!
 
  Cheers,
 
  -Josh
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
 
  http://flex.joshmcdonald.info/
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
 




 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 http://flex.joshmcdonald.info/

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Dimensions of a UIComponent are allways 0, 0?!

2008-10-01 Thread Michael Schmalle
Hi,
Search the archives for this, I know I have explained it quite a bit. :)

If you can't find it there read up on Creating Custom Components.

You problem has to do with the fact you have not overridden measure() and
set measuredWidth and measuredHeight of you component.

If you don't do this, the layout manager will set the size of your component
to 0,0.

Mike

On Wed, Oct 1, 2008 at 4:02 AM, florian.salihovic 
[EMAIL PROTECTED] wrote:

   I have a UIComponent which Dimensions never change?! When i add a child
 in the overriden
 createChildren i expect the dimensions to be changed... but nothing
 happens...

 override protected function createChildren():void {
 super.createChildren();
 if (!this._uibase) {
 this._uibase = new UIBase();
 this.addChild(_uibase);
 }

 The UIBase class is a component made with the Flex Component Kit and it has
 width an
 height  0.

 I have no clue what i am doin wrong...

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Module vs Application

2008-10-01 Thread Michael Schmalle
I'm no expert on this but, I would say memory/design principles.
A module extends LayoutContainer, where as Application is the whole shabang.

Loading multiple Application instances into another Application using
SWFLoader is bound to take a lot more memory.

I think compilation of modules directly relates to how you 'design' your
main application's architecture.

Think about this, if you can design modules in a way that encapsulates what
changes into 'modules' and keep logic out of them that doesn't, compilation
will speed up.

I'm really talking about class architecture, using factories, getting 2 or 3
levels of abstraction. This is what I do and it works well.

Mike

On Wed, Oct 1, 2008 at 5:41 AM, Manu Dhanda [EMAIL PROTECTED]wrote:


 Hii Guyz,

 My question is regarding the modular applications.

 What will be the performance or logical effect on the application if we
 will
 use small applications as modules under a big wrapper application?

 The benefits I see here is maintenance is easier. While you are making any
 changes to any (modular) application, your other applications will be
 un-affected and to me, it reduces compilation time to a major extent.

 I would like to get the other expert opinions.

 Thanks,
 Manu.
 --
 View this message in context:
 http://www.nabble.com/Module-vs-Application-tp19757230p19757230.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] The Tree component sux but .... I need help :)

2008-10-01 Thread Michael Schmalle
Matthew,
The Tree component doesn't suck that bad, try a different title.

I'll answer your question though, openItems uses references(unique id's),
it's not majik man. You have to understand instance references, then you can
say the Tree doesn't suck, I just didn't understand it.

This is the key, right here;

_openItems[itemToUID(item)] = item;

What this means is, if you do not supply the items with the same
instance(unique), this property will never work.

Sounds like you need to do a little leg work and save the state of your tree
before you set the dataProvider, then create a new openItems Array with the
current instances that ARE IN the tree.

What kind of objects are held in your dataProvider? ... Object, or a custom
model class?

Mike

On Tue, Sep 30, 2008 at 6:16 PM, flashalisious [EMAIL PROTECTED]wrote:

   I have a Tree Component that I have bound an ArrayCollection of data
 too.

 The tree will have two branches. each branch will have several
 children. Basically a list of files. So the user will upload a new
 file by clicking an browsing for a new file.

 I then as AMFPHP to give the list of files again and update the
 ArrayCollection with new data. Before I ask for the new
 ArrayCollection of data I store the try components open items like this

 tempOpenItems = mytree.openItems;

 after the new data is set I then would like to say

 mytree.openItems = tempOpenItems;

 this does not work.

 Has anyone figured out how to add new data to the Tree dataProvider
 and maintain the Trees view state of open Items?

 thanks,
 matthew

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] old internal package mx.core.ext.UIObjectExtensions

2008-10-01 Thread Michael Schmalle
Hi,
If I remember right, that class mixed in styles and other prototype
functions. I might be wrong, the version 2 framework seems like such a long
time ago now. :)

That class no longer exists.

Are you going to use the HaloBorder in Flex 3? You really shouldn't have a
problem. Post some code that you are having a hard time converting.

Mike

On Wed, Oct 1, 2008 at 3:47 PM, greenfishinwater 
[EMAIL PROTECTED] wrote:

   I am converting a Flex 1.5 project to Flex 3, and it contains
 references to mx.core.ext.UIObjectExtensions, for example
 UIObjectExtensions.extensions()

 I cant find any reference in the Flex 3 API to UIObjectExtensions.

 Anybody any ideas?

 The project I am working on is extending mx.skins.halo.HaloBorder

 Thanks Andrew

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] your 3d engine

2008-09-26 Thread Michael Schmalle
Might want to make sure that you are sending to the actual private email
before you hit send or it's all public,
Mike

On Fri, Sep 26, 2008 at 3:35 AM, Samuel Colak [EMAIL PROTECTED]wrote:

   Jon,

 Lets talk over IM or gtalk or something. will be better and ill send you a
 copy of the engine.
 Obviously there are strings attached to using it - at the moment at least
 ;)

 Regards
 Samuel



 Im-At-Home BV
 http://www.im-at-home.com

 Overtoom 238-II / 1054HZ Amsterdam / The Netherlands
 Tel: +31 20 750 8304 (Amsterdam, NL) / +1 646 385 7345 (Manhattan, US)
 / Mobile: +31 64 328 5922

 Skype: samcolak / MSN: [EMAIL PROTECTED] / AIM: [EMAIL PROTECTED]

 On Sep 25, 2008, at 11:29 PM, Jon Bradley wrote:


 On Sep 25, 2008, at 12:54 PM, Samuel Colak wrote:

 Jon,
 There is really no api documentation - im looking to release the code line
 into the community or basically
 just keep this internal. I've done alot of work into getting the framerate
 acceptable without hitting the CPU dramatically.



 Samuel,

 Sounds cool.  Definitely would like to have a look at some point,
 especially if you got he OS route.

 As far as your statement on flexcoders that this is all written in Flex ..
 does that imply that you didn't use any AS to write this stuff? I see
 classes referenced in the code that you sent as a snippet in the last email
 (com.***).

 cheers,

 jon



  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Hi Alex

2008-09-26 Thread Michael Schmalle
Deepa,
This is a professional list, the title Hi Alex just doesn't work here,
please try a more descriptive title for your next post.

Mike

On Fri, Sep 26, 2008 at 2:31 AM, Manu Dhanda [EMAIL PROTECTED]wrote:


 First of all, you should be talking about an application (not an swf).
 Now, the SIX pages, I took it as SIX views.

 There are many ways to do that. One of them is:
 mx:Application
 mx:Script
 private function return nextPrevView():void{
 if(buttonClicked == prev){
 viewstack.selectedIndex =
 viewstack.selectedIndex(viewstack.selectedIndex-1);
 }
 if(buttonClicked == next){
 viewstack.selectedIndex =
 viewstack.selectedIndex(viewstack.selectedIndex+1);
 }

 }
 /mx:Script

 mx:ViewStack
 view1/view1
 view2/view2
 view3/view3
 view4/view4
 view5/view5
 view6/view6
 /ViewStack
 buttonPrev/buttonNext/
 /Application

 It's just an outlook of an application.
 Get it worked by urself.

 -Manu.


 deepa_pathuri wrote:
 
  I have a .swf file which has 6 pages in it.i want to control that
  .swf ie to show each page of .swf file on click of next and previous
  button...How can i do this
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Hi-Alex-tp19681631p19683180.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] getItemAt *removes* item from ArrayCollection?

2008-09-26 Thread Michael Schmalle
Hi,
Sounds like you need to check your bindings.

I don't think there is any way possible that the ArrayCollection can become
intelligent and start deleting items without being told to by some outside
force. ;-)

Sounds like it has to do with the;

flightToMarkAsRemoved.flightHasBeenClearedByUser=true

That would be my guess.

Mike

On Fri, Sep 26, 2008 at 10:03 AM, djbrown_rotonews 
[EMAIL PROTECTED] wrote:

   has anyone run into this problem? The code below is *removing* the
 item from the ArrayCollection when I modify that one attribute on
 the object. And the size of my ArrayCollection isn't increasing
 after the call to addItem() either. the call to getItemIndex is
 working just fine, but the object is removed and the size of the
 ArrayCollection is decreased by 1 when the
 flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
 line is reached.

 any ideas?

 
 var flightToMarkAsRemoved:SOCAdvisorVO = event.flightToErase;
 var indexOfFlightToEdit:int =
 flightsForStation.getItemIndex(flightToMarkAsRemoved);
 flightToMarkAsRemoved.flightHasBeenClearedByUser=true;

 // for some reason, simply setting the attrib to true is causing
 //the item to be removed from the array collection.
 flightsForStation.addItem(flightToMarkAsRemoved);

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Hi Alex

2008-09-26 Thread Michael Schmalle
Hi,
If I understand you correctly, thats not the point (reading the
question regardless of the title). The archives get searched all the time
and titles that are ambiguous serve no purpose. I read the question to, just
moderating.

Mike

On Fri, Sep 26, 2008 at 11:17 AM, krshnaonweb [EMAIL PROTECTED] wrote:

   Mike!!

 I did not notice the title at all. Just saw her query.  Thats it ;)


 .kr

 On Fri, Sep 26, 2008 at 4:50 PM, Michael Schmalle [EMAIL PROTECTED]
  wrote:

   Deepa,
 This is a professional list, the title Hi Alex just doesn't work here,
 please try a more descriptive title for your next post.

 Mike


 On Fri, Sep 26, 2008 at 2:31 AM, Manu Dhanda [EMAIL PROTECTED]wrote:


 First of all, you should be talking about an application (not an swf).
 Now, the SIX pages, I took it as SIX views.

 There are many ways to do that. One of them is:
 mx:Application
 mx:Script
 private function return nextPrevView():void{
 if(buttonClicked == prev){
 viewstack.selectedIndex =
 viewstack.selectedIndex(viewstack.selectedIndex-1);
 }
 if(buttonClicked == next){
 viewstack.selectedIndex =
 viewstack.selectedIndex(viewstack.selectedIndex+1);
 }

 }
 /mx:Script

 mx:ViewStack
 view1/view1
 view2/view2
 view3/view3
 view4/view4
 view5/view5
 view6/view6
 /ViewStack
 buttonPrev/buttonNext/
 /Application

 It's just an outlook of an application.
 Get it worked by urself.

 -Manu.


 deepa_pathuri wrote:
 
  I have a .swf file which has 6 pages in it.i want to control that
  .swf ie to show each page of .swf file on click of next and previous
  button...How can i do this
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Hi-Alex-tp19681631p19683180.html
 Sent from the FlexCoders mailing list archive at Nabble.com.




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.




 --
 Thanks and Regards,
 Krishna
 Read my blogs
 http://flashactions.wordpress .com
 Gtalk:krshnaraj
 YahooIM:krishna.rajs
 Live Messenger: krishna.rajs
 Skype: krishna.rajs
 Linkedin: http://www.linkedin.com/in /krishnarajs
 Cellular Contact: 0091.998.5013.316
 Cellular Contact: 0091.924.8763.069
 Twitter:krshnaonweb

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Error when PopupManager hides a popup in the middle of an effect

2008-09-26 Thread Michael Schmalle
Hi,
That is an interesting error. Basically it's telling you that the tween for
the actual effect got de-referenced somehow.

two places that could happen;

end()

and onTweenEnd()

Can you get a simple example to reproduce this in mxml? ... Quick little
application.

Mike

On Fri, Sep 26, 2008 at 2:03 PM, ozziegt [EMAIL PROTECTED] wrote:

   I have a popup with an addedEffect defined on it. It works great when
 I call PopUpManager.addPopup, but if I click anyhere while the effect
 is in progress, looks like the tweening engine barfs since the popup
 is gone.

 Any suggestions on what I can to do prevent this from happening?

 Here is the top of the stacktrace:

 TypeError: Error #1009: Cannot access a property or method of a null
 object reference.
 at

 mx.effects.effectClasses::ZoomInstance/onTweenUpdate()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\effectClasses\ZoomInstance.as:422]

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Getting multiple addedToStage events

2008-09-24 Thread Michael Schmalle
 Event.REMOVED

Containers cannot use this since their child list is not updated.

UIComponent listens to the Event.REMOVED and stops propagation of it so
there is no way to listen for it. The component will then dispatch
FlexEvent.REMOVE at the correct time after child lists are correctly
situated.

This is what I was trying to say in my original comment to the OP. I used
CHILD_REMOVE, CHILD_ADD but FlexEvent.REMOVE and FlexEvent.ADD is the same
really except backwards.

Mike

@Tom

 Helping to biannually compete 24/7 magnetic convergence

Wow, this is freaky, I love reading your constantly changing signatures. :)


On Wed, Sep 24, 2008 at 6:00 AM, Samuel Colak [EMAIL PROTECTED]wrote:


 All objects dispatch FlexEvent.Remove when they are removed from a
 container - this occurs on the stage and also
 in Container objects (since Container and Stage both exhibit the same
 behaviour).




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Any other alternative to find the type of an object (object is oftype)

2008-09-24 Thread Michael Schmalle
Naaga,
Try posting a new thread (with new title), your answer will never get heard
here other than adding a question that is irrelevant to this current thread.

Mike

On Wed, Sep 24, 2008 at 6:08 AM, Naaga Maniccam
[EMAIL PROTECTED]wrote:

   Hi Guys,

 sorry for interrupting  u , i need help , how to connect flex to mysql,
 could u please help in this regard

 Cheers,,

 NAAGAMANICCAM.T

 - Original Message 
 From: Ralf Bokelberg [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, 24 September, 2008 2:54:31 PM
 Subject: Re: [flexcoders] Any other alternative to find the type of an
 object (object is oftype)

  Of cause. This makes perfect sense. We don't want to reference the class.

 Cheers
 Ralf.

 On Wed, Sep 24, 2008 at 10:25 AM, Josh McDonald [EMAIL PROTECTED] 
 comdznuts%40gmail.com
 wrote:
  You can't have an object of a type that's not part of the VM at runtime,
 but
  it doesn't include any classes into the swf of the class making that
 call.
  It returns a String, which you can then use with getDefinitionByName ()
  without ever knowing (or referencing) the Class object.
 
  -Josh
 
  On Wed, Sep 24, 2008 at 5:52 PM, Ralf Bokelberg ralf.bokelberg@
 gmail.com ralf.bokelberg%40gmail.com
  wrote:
 
  Hi Josh
 
  Does it work without the class beeing linked to the project? Is it a
  compiler instruction?
 
  Cheers
  Ralf.
 
 
  On Wed, Sep 24, 2008 at 9:19 AM, Josh McDonald [EMAIL PROTECTED] 
  comdznuts%40gmail.com
 wrote:
   getFullyQualifiedCl assName(instance );

  
   -Josh
  
   On Wed, Sep 24, 2008 at 5:11 PM, Ralf Bokelberg
   ralf.bokelberg@ gmail.com ralf.bokelberg%40gmail.com
   wrote:
  
   I don't think this is possible, unless you put the class name in a
   string property of your object. If you want to use introspection (eg.
   is, instanceof, describeType) , the class itself has to be available,
   otherwise there is nothing to introspect really.
  
   Cheers
   Ralf.
  
   On Wed, Sep 24, 2008 at 12:53 AM, pratikshah83 pratikshah83@
 yahoo.com pratikshah83%40yahoo.com
   wrote:
Hi Guys,
   
I would like to know if there is any other way to find out if the
object is of a particular type.
   
I am currently using the IS keyword to check if the object is of
 a
particular type. (Object is Type)
   
But doing that is loading the complete class in the swf file which
 if
increasing the size of the swf to a great extend and affecting the
performance of the application.
   
Can you suggest me any way to check for an object is of some type
which would not increase the swf size of than (Object is Type).
   
Thanks
Pratik
   
   
  
    - - --
  
   --
   Flexcoders Mailing List
   FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
 sFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Alternative FAQ location:
  
   https://share. acrobat.com/ adc/document. do?docid= 942dbdc8-
 e469-446f- b4cf-1e62079f684 
 7https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
   Search Archives:
   http://www.mail- archive.com/ flexcoders% 40yahoogroups. 
   comYahoohttp://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
 Groups
   Links
  
  
  
  
  
  
   --
   Therefore, send not to know For whom the bell tolls. It tolls for
   thee.
  
   http://flex. joshmcdonald. info/ http://flex.joshmcdonald.info/
  
   :: Josh 'G-Funk' McDonald
   :: 0437 221 380 :: [EMAIL PROTECTED] com josh%40gfunk007.com
  
 
   - - --
 
  --
  Flexcoders Mailing List
  FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
 sFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
  https://share. acrobat.com/ adc/document. do?docid= 942dbdc8-
 e469-446f- b4cf-1e62079f684 
 7https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives:
  http://www.mail- archive.com/ flexcoders% 40yahoogroups. 
  comYahoohttp://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
 Groups Links
 
 
 
 
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for thee.
 
  http://flex. joshmcdonald. info/ http://flex.joshmcdonald.info/
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED] com josh%40gfunk007.com
 


 --
 Connect with friends all over the world. Get Yahoo! India 
 Messenger.http://in.rd.yahoo.com/tagline_messenger_1/*http://in.messenger.yahoo.com/?wm=n/

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Speeding up draw time with nested VBoxes

2008-09-24 Thread Michael Schmalle
Jason,
 values 'y={something.x + something.y}'

Avoid bindings at all costs. When you create a binding expression, it adds
many more calls to the stack during runtime. Not saying there bad, but here
again, they need to be used in the correct places.

commitProperties() is your friend. If you are creating a custom component
that needs to 'perform'  IE itemRenderer, do it in actionscript, you will
always make out better in the end and it's more maintainable.

Until there is greater code creation optimization from the mxml compiler,
binding adds weight and stack calls, it's definitely not free.

Mike

On Wed, Sep 24, 2008 at 11:40 AM, Jason Reynolds 
[EMAIL PROTECTED] wrote:

Ya, I was joking about the grudge -- just some nice frustrated learning
 experience feelings! I don't know why but I've always had the impression
 that item renderers slowed down the list/datagrid display, so it's good to
 see people telling me I'm wrong.

 I'll do the custom renderer on my 2nd pass of finishing up this
 application. With this experience I've also found that using binded x/y
 values 'y={something.x + something.y}' really really slows things down as
 well. Changing that code I was able to get down to around 1000ms. Not what I
 wanted, but more acceptable forsure!!

 I can see where renderers would make the code much more managable, so it
 will always be in the back of my mind as well.

 I appreciate all the feedback and pointers...
 Thanks much,
 Jason


 - Original Message -
 *From:* Michael Schmalle [EMAIL PROTECTED]
 *To:* flexcoders@yahoogroups.com
 *Sent:* Tuesday, September 23, 2008 6:26 PM
 *Subject:* Re: [flexcoders] Speeding up draw time with nested VBoxes

   plus I have a grudge against vboxes now :P
 It's not the gun that kills but the finger that pulled the trigger... ;-)

 VBoxs serve their purposes and perform great when they are used
 'correctly'. I know that sounds bad but I don't mean it like that.

 There are while(loops) in the layout code that acts like a circular saw,
 when it's grinding it's taking A LOT of energy from the Player, the large
 the wood, the more power it needs.

 The plus side is, since the algorithms are so good in it, with controls
 that have limited children and layout logic, there is a lot you can do with
 boxes (stretching).

 But Tracy is totally right, item renderers are what you need. I think this
 will change  in the future, the way developers look at 'renderers'.
 Renderers abstract and decouple your repetitive layout and child creation
 code from the main component controller. You can then at any time in the
 future optimize a renderer of any kind easily and efficiently.

 Mike



 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 3468 (20080924) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Retry: Question for Doug McCune on Drag-drop component?

2008-09-24 Thread Michael Schmalle
Hi,
The reason it simple, with 3 event handlers you can control everything about
your custom dragging and/or dropping you need.

The drag manager has flaws, trust me I made a docking component and almost
ditched the manager but I had to use it since I didn't have the time to
rewrite it.

Think of it as capturing each user gesture individually, you cannot do this
with the DragManager.

Mike

On Wed, Sep 24, 2008 at 11:49 AM, gwangdesign [EMAIL PROTECTED] wrote:

   Hi Josh,

 I am curious of your experience when you messed with drag and drop.
 Have you ever thought about the DragManager in Flex? What would be the
 reason of not using it in the scenario of something like BumpTop
 (physics drag without drop target)?

 Thanks!


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh
 McDonald [EMAIL PROTECTED] wrote:
 
  Doug, you're a store (and distribution point) of much useful Flex
 kung-fu :)
 
  I didn't think of doing that last time I was messing with
 drag-n-drop, but
  it's a great idea.
 
  On Wed, Sep 24, 2008 at 6:02 AM, Doug McCune [EMAIL PROTECTED] wrote:
 
   For basic dragging stuff, here's typically what I do. Have a mouse
   down listener on whatever component you want to drag. On mouse down
   you keep track of the coordinates where the user pressed. Then you add
   a mouse move listener to the system manager. Also add a mouse up
   listener to system manager. Then when the user moves the mouse (which
   you catch with the system manager listener), perform the calculation
   of how far from the original mouse down position the mouse is and move
   the component to the right place. Then when you catch the mouse up
   event (again, from system manager), you remove the mouse move listener
   and you're done.
  
   See the code in the Panel class in the Flex framework for an example
   of this type of dragging. The big thing to know is that you want to
   use mouse move and mouse up events from the system manager, not from
   the component itself. If you use the component itself you'll end up
   losing the mouse movement if the user drags quickly off the component,
   or you might get stuck in endless dragging if the mouse is released
   while not over the component.
  
   You should also probably have a listener for when the mouse leaves the
   stage and stop dragging at that point too, since not doing that can
   make the drag operation continue after the release the mouse (if they
   move the mouse off your app and the release).
  
   Doug
  
   On Tue, Sep 23, 2008 at 12:30 PM, gwangdesign [EMAIL PROTECTED]
   wrote:
Sorry if this question should be better showing up at the
flexcomponent group. I didn't have any luck there so far;)
   
Suppose I am motivated enough to roll up my sleeves to do something
like what McCune is doing here at tileUI.com:
   
http://www.youtube.com/watch?v=T0N7tgF7OOM
   
Just for the drag part to get started, am I better off implementing
the darg-drop framework that Flex provide or should I start from the
more basic mouseUp/mouseDown?
   
I guess this question is for every Flex guru besides Doug;) I
appreciate it.
   
   
  
   
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Alternative FAQ location:
  

 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
   Search Archives:
   http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
   Links
  
  
  
  
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
 
  http://flex.joshmcdonald.info/
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Questions on AIR and Flex Builder

2008-09-23 Thread Michael Schmalle
 I know that there's an Apollo list, but I don't want to subscribe for a
couple of questions.
That just sounds funny. ;-)

1. Do you have a semi-simple mxml/as setup that shows this or is application
pretty large?

2. Give a procedure of what you do, I could see if it messes up in mine as
well.

FlexBuilder 3.0.1 right?

Mike

On Mon, Sep 22, 2008 at 10:13 PM, Amy [EMAIL PROTECTED] wrote:

   I know that there's an Apollo list, but I don't want to subscribe for a
 couple of questions.

 I'm having problems using Flex Builder to build an AIR application.
 For one thing, it seems like after a couple of builds of my AIR app,
 AIR will stop building applications and I have to reboot my computer to
 get it to work again.

 The second issue is that it doesn't seem like any of the AIR specific
 classes work with code hinting and a lot of times they won't show up on
 searches of the language reference. How do I fix this?

 Thanks;

 Amy

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] scale9Grid: What am I missing?

2008-09-23 Thread Michael Schmalle
Hi Amy,
I remember something weird about this, try loosing the apostrophe's around
the numbers.

[Embed(source='images/window.png', scaleGridTop=40,
scaleGridBottom=185, scaleGridLeft=300, scaleGridRight=585)]

Mike





-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Scrolling screws up display

2008-09-23 Thread Michael Schmalle
Hi,
I have had this happen before but I was messing around with the contentPane
(low level stuff).

Can you post something semi simple to reproduce this?

Mike

On Tue, Sep 23, 2008 at 11:12 AM, Randy Martin [EMAIL PROTECTED] wrote:

   Anyone?? This is really driving me crazy!


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Randy
 Martin [EMAIL PROTECTED] wrote:
 
  This is a strange problem that only seems to happen in Flex 3 (not
 2).
  I have a form that pops up in a panel that needs to scroll
 vertically.
  If I use the wheel or click on the scrollbar arrows, the form scrolls
  correctly. But, if I click and drag the scrollbar thumb, the display
  goes haywire. By that I mean that only parts of the display scroll
 and
  the rest just sits there. If you move the thumb up and down enough,
  pretty soon the entire display is just a mass of jumbled pixels.
 
  Anyone have any idea what could be causing this?
 
  TIA,
  ~randy
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: scale9Grid: What am I missing?

2008-09-23 Thread Michael Schmalle
Ok,
I think that needs to be without quotes but Jon is probably right, you need
to try setting some sort of height.

When you get it working, try it with the quotes, then you can be sure. :)

Mike

On Tue, Sep 23, 2008 at 11:51 AM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy
 [EMAIL PROTECTED] wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Michael Schmalle
  teoti.graphix@ wrote:
  
   Hi Amy,
   I remember something weird about this, try loosing the apostrophe's
  around
   the numbers.
  
   [Embed(source='images/window.png', scaleGridTop=40,
   scaleGridBottom=185, scaleGridLeft=300, scaleGridRight=585)]
 
  OK, thanks :-)
 

 Oops...I tried this and it didn't work :-(.

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Speeding up draw time with nested VBoxes

2008-09-23 Thread Michael Schmalle
 plus I have a grudge against vboxes now :P
It's not the gun that kills but the finger that pulled the trigger... ;-)

VBoxs serve their purposes and perform great when they are used 'correctly'.
I know that sounds bad but I don't mean it like that.

There are while(loops) in the layout code that acts like a circular saw,
when it's grinding it's taking A LOT of energy from the Player, the large
the wood, the more power it needs.

The plus side is, since the algorithms are so good in it, with controls that
have limited children and layout logic, there is a lot you can do with boxes
(stretching).

But Tracy is totally right, item renderers are what you need. I think this
will change  in the future, the way developers look at 'renderers'.
Renderers abstract and decouple your repetitive layout and child creation
code from the main component controller. You can then at any time in the
future optimize a renderer of any kind easily and efficiently.

Mike


Re: [flexcoders] Flex 2.01 - TabBar

2008-09-22 Thread Michael Schmalle
Hi Jack,
Take a look at mx.skins.halo.TabSkin

This class is not like the ButtonSkin, you can see in this line exactly what
the skin is doing.

case upSkin:
{
   var upFillColors:Array =
[ falseFillColors[0], falseFillColors[1] ];

You will need to implement your own skin for that functionality.

Mike


On Mon, Sep 22, 2008 at 12:26 PM, jwc_wensan [EMAIL PROTECTED] wrote:

   Good morning:

 I have set the the 3rd and 4th colors for my TabBar as such in the
 CSS file. Example: fillColors: #DDE7F4, #DDE7F4, #FA075D, #FA075D;

 However, it does not use the second set of values. I set the second
 set to red in the example just to get a contrast.

 The Language Reference indicates you can use either one set or both
 sets for fillColors in a TabBar.

 The second set is for mouseover.

 Does this not work in Flex 2.01?

 I looked at the Flex 2.01 Explorer application and it only has 1 set
 of colors to select from.

 I even tried using a TabNavigator but it does not use the second set
 of colors either.

 In both cases, on mouse over, it displays a lighter color
 combination of the first set of colors.

 Does it work in Flex 3?

 Thanks,

 Jack

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


  1   2   3   4   5   6   7   8   9   10   >