[flexcoders] Re: problem with a "for each" loop

2006-12-12 Thread leo4beer
i have another question:

when I do the following:

for(var prop in instancOfB){
 //gets here only once as if instancOfB has only one member
}


bur if I do the following: 

for each(var prop in instancOfB){
//will show the values of all props
}

the problem is that for each will not give me the prop name but only
the value. a simple "for" gives me a name and value but fails to show
all props.


--- In flexcoders@yahoogroups.com, "leo4beer" <[EMAIL PROTECTED]> wrote:
>
> Thanks Peter, that was the problem.
> 
> 
> --- In flexcoders@yahoogroups.com, "Peter Farland"  wrote:
> >
> >  
> >
http://livedocs.macromedia.com/flex/2/langref/statements.html#for_each..
> > in
> >  
> > Note:
> >  
> > The for each..in statement iterates only through the dynamic
properties
> > of an object, not the fixed properties
> >  
> > Also note that the "dynamic" behavior of a type is not inherited.
> >  
> > You can use describeType() to get an XML description of a type to see
> > concrete properties on any given type:
> >  
> >
http://livedocs.macromedia.com/flex/2/langref/flash/utils/package.html#d
> > escribeType()
> >  
> > The utility class mx.utils.ObjectUtil.getClassInfo() does exactly this
> > and in the result Object it includes a "properties" method that
includes
> > the names of all of the fixed and dynamic properties for an
instance of
> > a type to help you iterate types in a generic manner.
> >  
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of leo4beer
> > Sent: Monday, December 11, 2006 3:45 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] problem with a "for each" loop
> > 
> > 
> > 
> > Hi, I got a problem with a "for each" loop.
> > 
> > I have a class (B), B has a long inheritance chain where the oldest
> > ancestor is class A.
> > Class A does not declare an extension of any other class therefore I
> > take it that it extends the Object class:
> > 
> > "All classes that don't declare an explicit base class extend the
> > built-in Object class."
> > http://livedocs.macromedia.com/flex/2/langref/Object.html
> > <http://livedocs.macromedia.com/flex/2/langref/Object.html> 
> > 
> > Somewhere in my code I'm trying to use a "for each" loop in order to
> > explore the members of B.
> > 
> > [code]
> > var obj = Object(instanceOfB);
> > 
> > for each(var prop:Object in obj){
> > //do some thing (my code never gets here)
> > } 
> > [/code]
> > 
> > The problem is that although B (and instanceOfB ) has a number of
> > members the "for each" loop ignores them all and never goes in side
> > the loop.
> > (I used the casting in order to demonstrate that I'm actually using an
> > inheritor of the class Object)
> > 
> > What am I doing wrong here?
> >
>




[flexcoders] Re: problem with a "for each" loop

2006-12-12 Thread leo4beer
Thanks Peter, that was the problem.


--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
>
>  
> http://livedocs.macromedia.com/flex/2/langref/statements.html#for_each..
> in
>  
> Note:
>  
> The for each..in statement iterates only through the dynamic properties
> of an object, not the fixed properties
>  
> Also note that the "dynamic" behavior of a type is not inherited.
>  
> You can use describeType() to get an XML description of a type to see
> concrete properties on any given type:
>  
> http://livedocs.macromedia.com/flex/2/langref/flash/utils/package.html#d
> escribeType()
>  
> The utility class mx.utils.ObjectUtil.getClassInfo() does exactly this
> and in the result Object it includes a "properties" method that includes
> the names of all of the fixed and dynamic properties for an instance of
> a type to help you iterate types in a generic manner.
>  
>  
> 
> ____
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of leo4beer
> Sent: Monday, December 11, 2006 3:45 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] problem with a "for each" loop
> 
> 
> 
> Hi, I got a problem with a "for each" loop.
> 
> I have a class (B), B has a long inheritance chain where the oldest
> ancestor is class A.
> Class A does not declare an extension of any other class therefore I
> take it that it extends the Object class:
> 
> "All classes that don't declare an explicit base class extend the
> built-in Object class."
> http://livedocs.macromedia.com/flex/2/langref/Object.html
> <http://livedocs.macromedia.com/flex/2/langref/Object.html> 
> 
> Somewhere in my code I'm trying to use a "for each" loop in order to
> explore the members of B.
> 
> [code]
> var obj = Object(instanceOfB);
> 
> for each(var prop:Object in obj){
> //do some thing (my code never gets here)
> } 
> [/code]
> 
> The problem is that although B (and instanceOfB ) has a number of
> members the "for each" loop ignores them all and never goes in side
> the loop.
> (I used the casting in order to demonstrate that I'm actually using an
> inheritor of the class Object)
> 
> What am I doing wrong here?
>




[flexcoders] problem with a "for each" loop

2006-12-11 Thread leo4beer
Hi, I got a problem with a  "for each" loop.

I have a class (B), B has a long inheritance chain where the oldest
ancestor is class A.
Class A does not declare an extension of any other class therefore I
take it that it extends the Object class:

"All classes that don't declare an explicit base class extend the
built-in Object class."
http://livedocs.macromedia.com/flex/2/langref/Object.html

Somewhere in my code I'm trying to use a "for each" loop in order to
explore the members of B.

[code]
var obj = Object(instanceOfB);

for each(var prop:Object in obj){
//do some thing (my code never gets here)
}   
[/code]

The problem is that although B (and instanceOfB ) has a number of
members the "for each" loop ignores them all and never goes in side
the loop.
(I used the casting in order to demonstrate that I'm actually using an
inheritor of the class Object)

What am I doing wrong here?




[flexcoders] Re: AS3 substitute for UIObject.destroyObject() ?

2006-10-12 Thread leo4beer
Thanks, will try this instead

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> removeChild() or removeChildAt(), which UIComponent inherits from
> DisplayObjectContainer.
> 
>  
> 
> - Gordon
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of leo4beer
> Sent: Wednesday, October 11, 2006 5:49 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] AS3 substitute for UIObject.destroyObject() ?
> 
>  
> 
> Hi, I'm migrating code from Flex 1.5 to Flex 2.
> I've noticed the UIObject.destroyObject() no longer exists in AS3
> 
> What should I use instead?
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] AS3 substitute for UIObject.destroyObject() ?

2006-10-11 Thread leo4beer
Hi, I'm migrating code from Flex 1.5 to Flex 2.
I've noticed the UIObject.destroyObject()  no longer exists in AS3

What should I use instead?






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Canvas – getting the topmost viable pixel

2006-09-03 Thread leo4beer
Hi, I'm using flex 1.5.

I have a canvas with a scrollbar; the canvas content may be resized or
scrolled, each time it's resized I'd like to know the number of the
topmost pixel that is viewable.

I know this number exists and is used when extracting vPosition,
according to the docs vPosition "is equal to the distance (in pixels)
between the top edge of the scrollable surface and the topmost piece
of the surface that is currently visible.", what I'm looking for is
the topmost piece of the surface that is currently visible.

Any ideas?

Thanks.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Flex 1.5 Label class, need background

2006-06-25 Thread leo4beer
Thanks Gordon, I'll try that.

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Sorry, I see that you said Flex 1.5. You would override draw()
instead in your custom component, and the drawing methods like
beginFill() and drawRect() are on the Label itself rather than on the
Label's Graphics object. It should look something like this
> 
> LabelWithBackground.mxml:
> 
> 
> 
> 
> public function draw():Void
> {
> super.draw();
> 
> clear();
> beginFill(0x00);
> drawRect(0, 0, width, height);
> endFill();
> }
> 
> 
> 
> 
> although I've probably messed something up because I've been working
with Flex 2 for the last 18 months and have forgotten most of what I
knew about Flex 1.5.
> 
> - Gordon
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Gordon Smith
> Sent: Thursday, June 22, 2006 11:33 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Flex 1.5 Label class, need background
> 
> The background of the standard Label is always transparent, but it
is easy to override this behavior by overriding the
updateDisplayList() method. Do you know how to do programmatic drawing
with the Graphics class?
>  
> - Gordon
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of leo4beer
> Sent: Thursday, June 22, 2006 3:24 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex 1.5 Label class, need background
>  
> Is it possible to set a background for a Label class? Is there an
> alternative to these classes? It seems like the Labels I'm using have
> a transparent background.
> 
> thanks.
> 
> Label class:
> http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/Label.html
>






 Yahoo! Groups Sponsor ~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Flex 1.5 Label class, need background

2006-06-22 Thread leo4beer
Is it possible to set a background for a Label class? Is there an
alternative to these classes? It seems like the Labels I'm using have
a transparent background.

thanks.

Label class:
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/Label.html






 Yahoo! Groups Sponsor ~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Accepting MXML attribute's width in percentage on a custom component

2006-05-15 Thread leo4beer



Accepting MXML attribute's width in percentage in a custom component

Hi, I have a component I've created by inheriting UIObject class

In my mxml I have the following lines used for initiating my component:



In my AS code I can trace the value of __width, in this case the
result will be "400".

My problem is that when I set the value as percentage:



In this case the value of __width is "undefined"

What should I do in order to get the correct value when setting the
width in percentage and not in pixels??

Thanks












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Source code for Macromedia Flex 1.5 components?

2006-05-11 Thread leo4beer



Hi, I was wondering where the source code for Macromedia Flex 1.5
components could be found.

I have the classes that can be found in FlexForFlash.zip distributed
with MX2004, I've also found Flex classes in Flash 8 folders.
Both versions seem to be identical; they also seem to be compliant
with Flex 1.0 and not Flex 1.5.
  
I was wondering if anyone knows where I can get the source of Flex 1.5
components.

Thanks.










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Dynamically scaling a custom component

2006-05-07 Thread leo4beer



Hi, I have the following class structure:

Class Map extends UIComponent 

the class creates an instance of the following class:

Class MapMainView extends UIComponent

In MXML I have the following code:



In Map I have the following code:

function createChildren():Void {
    .
    .
    createClassObject(MapMainView,"mmv ",99);
    mmv._width = 400;
    mmv._height = 300;

Then in MapMainView I'm trying to draw a border according to the
component's size...

First get the current size:

function measure():Void{
    
    super.measure();
    MapMainViewAreaWidth = _width � 20
    gridAreaAreaHeight = _height -20
  }

Later, under draw I'm using the drawing API to draw the border:

Function Draw(){
.
lineTo(20, MapMainViewAreaWidth)
  .
}

It seems like _with is null and I'm unable to draw the border

Any ideas?

Thanks in advance,
Leo.










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Best practice for building AS components for Flex

2006-05-05 Thread leo4beer



Hi, I need to make a number of features to be included in a Flex 1.5
application.
These features are relatively complicated and therefore should no be
coded in MXML.

for instance on of the features is a fully functional gahnt chart,
users may be able set session and events using that chart.

I can think of a number of methods for doing this:

1. extend one of the relevant Flex components like the Chart
component, add additional components as children.
2. extend a container component and code the entire feature using AS,
add additional components as children.
3. Use the Flash IDE and prepare an application by dragging and
dropping "Flash for Flex" components, make the relent code changes and
compile everything as a Flash component.

So far I've been aiming for option 2. I've been using an article
titled "Developing Flex Components and Themes in Flash Authoring" from
Macromedia.

Do you think this is the right approach?
What would you do?
Are there any other options available?

Thanks in advance,
Leo.











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: scrolling inside an AS based component

2006-05-04 Thread leo4beer



Sorry Manish but I don't think I follow you...

I know what setting a mask means, my problem is making my content
respond to a scroll bar. in Flash I would do this using the scroll
pane. how would I do this in a Flex application using AS code only?

Thanks again for your time and sorry for my ignorance :) , I've been
developing for Flash for many years now, I switched to Flex and still
trying to learn the diffrences.

Leo.


--- In flexcoders@yahoogroups.com, "Manish Jethani"
<[EMAIL PROTECTED]> wrote:
>
> On 5/4/06, leo4beer <[EMAIL PROTECTED]> wrote:
> > I would still need to enable scrolling...how would you recomand that i
> > do this?
> 
> Setting a mask does not affect scrolling. So scrolling will work as it
> does normally.
>











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: scrolling inside an AS based component

2006-05-04 Thread leo4beer



I would still need to enable scrolling...how would you recomand that i
do this?

--- In flexcoders@yahoogroups.com, "Manish Jethani"
<[EMAIL PROTECTED]> wrote:
>
> On 5/4/06, leo4beer <[EMAIL PROTECTED]> wrote:
> 
> >
> > is 'updateDisplayList' a Flex 2 method? I'm using 1.5
> 
> Hmm...
> 
> Then you'll have to settle for masking. There's plenty of examples on
> the web of how to use a mask.
>











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: scrolling inside an AS based component

2006-05-04 Thread leo4beer



thanks but it doesn't seem to work for me.


is 'updateDisplayList' a Flex 2 method? I'm using 1.5

--- In flexcoders@yahoogroups.com, "Manish Jethani"
<[EMAIL PROTECTED]> wrote:
>
> On 5/4/06, leo4beer <[EMAIL PROTECTED]> wrote:
> 
> > I'm building an AS component for Flex (using as only).
> > My component will contain a dynamic nap loader which the users may be
> > able to scroll.
> 
> > What should I use in order to enable scrolling with pure AS component?
> 
> The easiest option is to make your component a *container* by
> extending mx.core.Container. Lay out the children in
> 'updateDisplayList' (you probably have only one child at 0,0) and the
> scrollbars should show up automatically if the child is larger than
> the container's area.
> 
> There's a difference between containers and controls. If you strictly
> want your component to be a control, then you could also extend it
> from mx.core.ScrollControlBase and calling the 'setScrollProperties'
> method in your 'updateDisplayList' implementation. See a recent thread
> on this forum about this topic.
>











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: Flex Numeric Stepper

2006-05-04 Thread leo4beer



you can try setting __value but I guess it's not recomended

--- In flexcoders@yahoogroups.com, "Omar Ramos" <[EMAIL PROTECTED]> wrote:
>
> Hi Guys,
> 
> 
> Does anyone know a way to reset a numeric stepper value to 1 with code
> without having it fire the change event? If you do this
> stepperInstance.value = 1; It will fire the change event. Any ideas?
> 
> Omar Ramos
>










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: Drwaing API inside an AS based component - not working

2006-05-04 Thread leo4beer



it was the width and height, thanks again









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: Drwaing API inside an AS based component - not working

2006-05-04 Thread leo4beer



You were right, i did not set the line style.

Thanks!

--- In flexcoders@yahoogroups.com, Mark Wales <[EMAIL PROTECTED]> wrote:
>
> Not sure which version you are using, but in Flex 2 Beta 2, I also have 
> a component that extends the UIComponent.
> 
> When you say you are using the drawing API, I presume you are doing 
> something like this:
> 
> this.graphics.clear();
> this.graphics.beginFill(0xff);
> this.graphics.drawRect(-25, -25, 50, 50);
> 
> One thought is that you may not be setting the line color or line
width. 
> Is that a possibility? Make sure you have something equivalent to this:
> 
> c.graphics.lineStyle(1, 0xff);
> 
> -Mark
> 
> leo4beer wrote:
> 
> >Using the drawing API inside a component.
> >
> >Hi, I've made a custom component by extending the UIComponent class,
> >in my component I've overridden the draw() method and used drawing API
> >to draw a few lines.
> >I've embedded my component in an MXML page but I don't see the lines…I
> >must be doing something wrong, any ideas?
> >
> >Thanks in advance,
> >
> >Leo.
> >
> >
> >
> >
> >
> >
> >
> >--
> >Flexcoders Mailing List
> >FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> >Yahoo! Groups Links
> >
> >
> >
> > 
> >
> >
> >
> >
> >
> >  
> >
>










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Drwaing API inside an AS based component - not working

2006-05-04 Thread leo4beer



Using the drawing API inside a component.

Hi, I've made a custom component by extending the UIComponent class,
in my component I've overridden the draw() method and used drawing API
to draw a few lines.
I've embedded my component in an MXML page but I don't see the lines…I
must be doing something wrong, any ideas?

Thanks in advance,

Leo.










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: scrolling inside an AS based component

2006-05-04 Thread leo4beer



--- In flexcoders@yahoogroups.com, "Manish Jethani"
<[EMAIL PROTECTED]> wrote:
>
> On 5/4/06, leo4beer <[EMAIL PROTECTED]> wrote:
> 
> > I'm building an AS component for Flex (using as only).
> > My component will contain a dynamic nap loader which the users may be
> > able to scroll.
> 
> > What should I use in order to enable scrolling with pure AS component?
> 
> The easiest option is to make your component a *container* by
> extending mx.core.Container. Lay out the children in
> 'updateDisplayList' (you probably have only one child at 0,0) and the
> scrollbars should show up automatically if the child is larger than
> the container's area.
> 
> There's a difference between containers and controls. If you strictly
> want your component to be a control, then you could also extend it
> from mx.core.ScrollControlBase and calling the 'setScrollProperties'
> method in your 'updateDisplayList' implementation. See a recent thread
> on this forum about this topic.
>

Thanks, I also will check that thread...










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] scrolling inside an AS based component

2006-05-04 Thread leo4beer



Hi

I'm building an AS component for Flex (using as only).
My component will contain a dynamic nap loader which the users may be
able to scroll.
Obviously I will need to combine a scroll component inside my
component. Flash MX introduced the ScrollPane class,I've noticed Flex
does not consist this class (I guess Flex has better alternatives)
What should I use in order to enable scrolling with pure AS component?

Thanks in advance,
Leo.










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: Embedding the fonts of a Tab Label.

2006-04-24 Thread leo4beer



Thanx for the reply, I'll be using icons and not text labels.

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> Have you made sure the font is truly embedded, using one of the
> techniques mentioned in the docs?
> 
> E.g., http://livedocs.macromedia.com/labs/1/flex20beta2/1052.html
> 
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of leo4beer
> Sent: Sunday, April 23, 2006 6:56 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Embedding the fonts of a Tab Label...
> 
> Embedding the fonts of a Tab Label...
> 
> Hi, I'm extending the TabBar class in order to make a vertical tab
> bar...
> When I rotate a tab the fonts must be embedded otherwise they will not
> appear.
> Currently my main problem is embedding the fonts. 
> 
> I've tried embedding the font in various ways:
> 
> 
> //child is a tab, I'm referring to it in a loop when overdding the
> base class layoutChildren() method
> child.labelPath.labelField.embedFonts = true;
> //or
> child.labelPath.setStyle("embedFonts", true);
> 
> both methods did not work and I'm unable to view the text...
> 
> Any ideas?
> 
> Thanks in advance.
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Embedding the fonts of a Tab Label…

2006-04-23 Thread leo4beer



Embedding the fonts of a Tab Label…

Hi, I'm extending the TabBar class in order to make a vertical tab bar…
When I rotate a tab the fonts must be embedded otherwise they will not
appear.
Currently my main problem is embedding the fonts. 

I've tried embedding the font in various ways:


//child is a tab, I'm referring to it in a loop when overdding the
base class layoutChildren() method
child.labelPath.labelField.embedFonts = true;
//or
child.labelPath.setStyle("embedFonts", true);

both methods did not work and I'm unable to view the text…

Any ideas?

Thanks in advance.












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Strange ComboBox problem

2006-04-11 Thread leo4beer
Hi,

I've ran into a bug I'm unable to trace, I was wondering if anyone
here encountered this (so far I could not find anything on the web)

I'm extending a Flex control, in my new class I'm attaching a ComboBox
to the control. The problem is:

When I change the CB selection for the first time the selection is
ignored, instead it gets back to it's default selection.
This will happen only on the first time and after that the CB behavior
is normal.

Any ideas??

Thanks. 










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Vertical tabs

2006-04-05 Thread leo4beer
Hi all,

This is my first post to this list 
I was wondering if it's possible to create vertical tabs in Flex (I'm
on 1.5).

Thanks in advance,
Leo4Beer 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/