Re: [flexcoders] oval canvas

2007-04-11 Thread dordea cosmin
use the graphics property and draw an ellipse into it with  the drawEllipse 
method

- Original Message 
From: David Buitenveld <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 11, 2007 4:02:36 PM
Subject: [flexcoders] oval canvas









  



Hi All -



can anyone point me to some ideas for creating an Canvas with an 

oval/circular border? I don't need the actual border line to be drawn, 

but rather need the background color of the Canvas to be a rounded shape..



thanks -



david




  
















  Don't be flakey.  Get Yahoo! Mail for Mobile and always stay connected to 
friends.http://mobile.yahoo.com/mail

Re: [flexcoders]PHP and Flex questions

2007-04-04 Thread dordea cosmin

When a Flex application in a browser
communicates with a php page for the first time a session is created.
This is the same behavior as user receiving a PHP page in their
browser. 
 - true , but the session is created only if the php installed in your server 
is configured to auto start a session or you manually start the session in your 
scrip.

- This session that is created last indefinitely with Flex
applications because Flex keeps the connection open / session alive on
the server. 

I am not  sure if  this is 100% true , but i believe by default , the http 
headers send Connection: Keep-Alive, so sessions remain alive. In my 
application it works okay, session doesn't expire while flex application runs. 
However, I believe if you send custom HTTP headers this behavior can be lost.
 


- Flex keeps the connection alive by periodically pinging the server. 

same as above

- Sessions will never timeout due to this behavior.
same as above


- When the user navigates away from the Flex application the session will 
timeout on the server. 

 true , it will timeout in the time specified in your php.ini




 To manually timeout a session on the server call a page or function that 
executes this code "
session.destroy( );" <-- not sure what the recommended method to clear the 
session on the server.


- true , depending on your php session you will call the correct function to 
destroy the session


Hope this helps.

- Original Message 
From: dorkie dork from dorktown <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 3, 2007 8:37:15 PM
Subject: [flexcoders]PHP and Flex questions









  



Can
someone tell me if these statements are true or false and if false what is
the correct answer?

- When a Flex application in a browser
communicates with a php page for the first time a session is created.
This is the same behavior as user receiving a PHP page in their
browser. 


- This session that is created last indefinitely with Flex
applications because Flex keeps the connection open / session alive on
the server. 

- Flex keeps the connection alive by periodically pinging the server. 


- Sessions will never timeout due to this behavior.

- When the user navigates away from the Flex application the session will 
timeout on the server. 

- To manually timeout a session on the server call a page or function that 
executes this code "
session.destroy( );" <-- not sure what the recommended method to clear the 
session on the server.


Any answers will help even partial. 




  
















 

We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

Re: [flexcoders] getChildren

2007-04-03 Thread dordea cosmin
only objects that inherit the Container class have this functions. When i have 
a situation like yours, I usually do something like :
 if  ( obj is Container)
{
  //code here
}

and it works fine. It is possible not to work if your object
was originally an Object , and you further created your 
object using a class reference.

- Original Message 
From: Michael Schmalle <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 3, 2007 11:51:48 AM
Subject: Re: [flexcoders] getChildren









  



Hi,

You could do this;

try {
   children = obj.getChildren( );
}
catch (e:Error)
{
   trace(e, "obj did not have getChildren( )");
}


Peace, Mike




On 03 Apr 2007 11:41:25 -0700, blc187 <[EMAIL PROTECTED] com> wrote:













  



is there a way to tell if an object has a getChildren method before 

calling it?



I'm calling something that takes any type as the first argument

public function myFunc(obj:* ):void



I need to tell if obj has a getChildren( ) method before I call it and 

get an error saying Error #1006: getChildren is not a function.






  



















-- 
Teoti Graphix
http://www.teotigra phix.com

Blog - Flex2Components
http://www.flex2com ponents.com


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


  
















 

Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

Re: [flexcoders] Drawing primitives in MXML

2007-02-21 Thread dordea cosmin
You can not use mxml to draw basic shapes because you have no components for 
these shapes. You have to use action script and draw into components graphics 
object. I needed once basic shapes at objects and created my own components 
that deal them, after that they could be used from mxml.
regards

- Original Message 
From: Guy Morton <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 21, 2007 10:55:06 PM
Subject: [flexcoders] Drawing primitives in MXML









  



Hi there



I'm new to Flex, so forgive me if this is a dumb question. I've been  

trying to get my head around Flex using Flex builder/Flex 2.  

Previously I've been working with SVG. So far, I've been unable to  

figure out how you draw primitive shapes (circles, rectangles,  

roundedrects etc) in MXML. I can see how to do it in ActionScript and  

append them to a Canvas that's been declared in MXML, but not how to  

create them declaratively in the MXML itself. This seems such a basic  

thing to want to do I can't imagine it is impossible, but so far  

can't find a way to do it. Is this possible? If so, how? Or am I  

thinking about this all wrong?



TIA



Guy




  
















 

Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

Re: [flexcoders] [Flex2] Binding an image using @Embed...

2006-10-05 Thread dordea cosmin


You also must check your build file  for the 'use-network' flag. Quote :"A SWF file can access one type of external resource only, either local or over a network; 
  it cannot access both types. You determine the type of access allowed by the SWF file 
  using the use-network flag when you compile your application. 
  When the use-network flag is set to false, you can access 
  resources in the local file system, but not over the network. 
  The default value is true, which allows you to access resources 
  over the network, but not in the local file system.".This one skipped me when I first tried to display dynamic images , it gave me a headake , I was looking everywhere but not where I was supposed for the documentation . Anyway , it's a bit nasy only one resource type at a time can be used.  Regards.- Original Message From: Tom Chiverton <[EMAIL PROTECTED]>To: flexcoders@yahoogroups.comSent: Thursday, October 5, 2006 2:09:43 PMSubject: Re: [flexcoders] [Flex2] Binding an image using @Embed...On Thursday 05 October 2006 11:28, Thomas Rühl wrote:> great. at runtime, i have the path to lots and lots of images. for that,> i need to load them dynamically. so what is the proper way to do it?You could loop over the list and set the source property of Image.Of course, the images need to be
 visible to the clients web browser then.-- Tom ChivertonHelping to preemptively participate 24/7 relationshipsThis 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 St James's Court Brown Street Manchester M2 2JF.  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 Law Society.CONFIDENTIALITYThis 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 8008.For more information about Halliwells LLP visit www.halliwells.com.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___


Re: [flexcoders] Dynamically adding components to a panel?

2006-10-04 Thread dordea cosmin


Check the manuals , developers guide and building flex components , there is plenty of documentation.However , for your particular case , just add a click listener to the button , and on it do something likevar foo:Button = new Button();container.addChild(foo);for the shape thing ,  for each shape or object you want   make a component. .Flex knows about dragging ,  on mouse down just call startDrag  and on mouse down call endDrag , and create a new instanceof that particular component you want to place and init it's x and y properties with contentMouseX and contentMouseY.Hope this helps.- Original Message From: jack_freud <[EMAIL PROTECTED]>To: flexcoders@yahoogroups.comSent: Wednesday, October 4, 2006 9:48:01 PMSubject: [flexcoders] Dynamically adding components to a panel?








I'm still very new to Flex so what I thought should be hard is easy and
what I thought should be easy is hard!

I'm trying to find out how, to make an easy example, by pressing a
button, another new button would appear in the panel.

Ultimately I want to make a kind of toolbar or palette, where I could
drag a shape from the palette into the workspace, and a copy of that
shape would remain where I performed the drop.

I can't find any examples that do anything like this.

Thanks for anyone's help or direction.


  




__._,_.___





--
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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___


Re: [flexcoders] Re: tabbing in flex

2006-09-26 Thread dordea cosmin


Thanks for your reply. I think you agree it's not clear enough in the documentation. It requires less time tolook in the source code than parsing the documentation. I have been trough theflex getting started  , flex developer's guide, developing flex application documentations and I now have a general ideea about Flex , I have imagined going trough the API's is enough. A lot of custom componentsrequire focus , I dont't think  it is  an advanced topic. If you think about it , the UIComponent class documentation really gives you the impression focus is enabled by default .  At least a note should  be added there imho. Anyhow , your note is usefull  for the next steps in my application , I
 now have an answer to my question , thanks .- Original Message From: stephenmartin2 <[EMAIL PROTECTED]>To: flexcoders@yahoogroups.comSent: Monday, September 25, 2006 8:42:40 PMSubject: [flexcoders] Re: tabbing in flex





There is some mention of implementing IFocusManager in the doc. In the
Creating Components book when describing how to implement AS components:
 
http://livedocs. macromedia. com/flex/ 2/docs/1727. html
 
And an example in the doc on creating item editors:
 
http://livedocs. macromedia. com/flex/ 2/docs/0863. html
 
But it probably deserves a section on its own. We should be able to
add something for the next release.
 
Stephen

--- In [EMAIL PROTECTED] ups.com, dordea cosmin <[EMAIL PROTECTED] ..> wrote:
>
> Thanks for your reply. I wasn't aware that you actually have to
write in the code 
> "implement IFocusManager"  to have focus enabled. I took a look in the 
> UI component source code and in the Button component source code and
saw what I had to do.
> Now back to my original question, is this specified anywhere in the
official documentation? .When reading the UIComponent
> documentation ,  focus options  looked like activated by default.
The effort to have focus is minimal, but i didn't see anywhere
> that you have to "implement the FocusManager interface" to have them
activated.  Thanks.
> 
> - Original Message 
> From: Dustin Mercer 
> To: [EMAIL PROTECTED] ups.com
> Sent: Friday, September 22, 2006 2:43:53 AM
> Subject: RE: [flexcoders] Re: tabbing in flex
> 
>
>   Yeah, this one was a bit annoying⦠Here is what I had to do to
get it working. I had to set the tabChilden property to true in your
custom component, override the setFocus method, and implement the
IFocusManagerCompon ent interface.  This is only if your component is
a pure AS component.  I found the mxml components tabbed fine.  One
side note:  There still seems to be some really weird tabbing issues
when tabbing out of the component.  Sometimes when you tab out of the
component, it tabs back to the beginning of the form.  Just some weird
things, I didnât have a chance to trace it down though.  Iâll see
if I can get some time to fix that.  I included the source to a time
picker component that I built If you need something to reference
(itâs not perfect, but it should illustrate the solution).
>  
>  
>   From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED]
ups.com ] On Behalf Of khelonium
>  Sent: Thursday, September 21, 2006 8:04 AM
>  To: [EMAIL PROTECTED] ups.com
>  Subject: [flexcoders] Re: tabbing in flex
>
> 
>  I have the same problem and don't have a solution yet.
>  If I extend the UIComponent , shouldn't all the focus aspects work by
>  default? The documentation specifies that focus is enabled by
>  default. But it doesn't . If I try to use setFocus in a mouse event ,
>  focusEvents are not received by my component. Is there something that
>  I must do and it is not specified in the documentation to have
>  focusing work(mouse click , tab ,focus events)? Thank you.
>  
>  --- In [EMAIL PROTECTED] ups.com, "b0b0bb0b" 
wrote:
>  >
>  > well there are two things, one is a controlBar with buttons in it, 
>  > and when tabbed the first button will be highlighted then it will 
>  > just move onto the next text box in the VBox rather than the other 
>  > buttons in the controlBar. I haven't implented the below, so I was 
>  > just using the default settings. I then tried telling flex to make 
>  > them all true but the program tabbed in the same way.
>  > 
>  > 
>  > The other custom component is a mxml file that contains a dateField 
>  > and a text box. this get skiped altoghter when tabbing.
>  > 
>  > thanks
>  > 
>  > 
>  > 
>  > 
>  > 
>  > --- In [EMAIL PROTECTED] ups.com, "JesterXL"  wrote:
>  > >
>  > > Does it extend UIComponent (or a sub-class)? Does it implment:
>  > > 

Re: [flexcoders] How does a component communicate with the Application

2006-09-25 Thread dordea cosmin


All visual components that extend the UIComponent have the parentApplication property which is what I think you need.For more information  check http://livedocs.macromedia.com/flex/2/langref/mx/core/UIComponent.html#parentApplication- Original Message From: boy_trike <[EMAIL PROTECTED]>To: flexcoders@yahoogroups.comSent: Monday,
 September 25, 2006 11:44:52 PMSubject: [flexcoders] How does a component communicate with the Application





I am trying to build a modular application (that means, with a lot of components).  I have a lot 
of common code  that I would like to include ONCE in the application and make available to 
all of the components.  My question is how do I have a component access a function / 
variable that is in the main application?

Thanks

Bruce


  


 


__._,_.___





--
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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___


Re: [flexcoders] Re: tabbing in flex

2006-09-24 Thread dordea cosmin


Thanks for your reply. I wasn't aware that you actually have to write in the code "implement IFocusManager"  to have focus enabled. I took a look in the UI component source code and in the Button component source code and saw what I had to do.Now back to my original question, is this specified anywhere in the official documentation? .When reading the UIComponentdocumentation ,  focus options  looked like activated by default. The effort to have focus is minimal, but i didn't see anywherethat you have to "implement the FocusManager interface" to have them activated.  Thanks.- Original Message From: Dustin Mercer <[EMAIL PROTECTED]>To: flexcoders@yahoogroups.comSent: Friday, September 22, 2006 2:43:53 AMSubject: RE: [flexcoders] Re: tabbing in flex















Yeah, this one was a bit annoying…
Here is what I had to do to get it working. I had to set the tabChilden
property to true in your custom component, override the setFocus method, and
implement the IFocusManagerCompon ent interface.  This is only if your
component is a pure AS component.  I found the mxml components tabbed
fine.  One side note:  There still seems to be some really weird
tabbing issues when tabbing out of the component.  Sometimes when you tab
out of the component, it tabs back to the beginning of the form.  Just
some weird things, I didn’t have a chance to trace it down though. 
I’ll see if I can get some time to fix that.  I included the source
to a time picker component that I built If you need something to reference
(it’s not perfect, but it should illustrate the solution). 

   









From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf Of khelonium
Sent: Thursday, September 21, 2006
8:04 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Re: tabbing
in flex 



   







I have the same problem and don't have a solution yet.
If I extend the UIComponent , shouldn't all the focus aspects work by
default? The documentation specifies that focus is enabled by
default. But it doesn't . If I try to use setFocus in a mouse event ,
focusEvents are not received by my component. Is there something that
I must do and it is not specified in the documentation to have
focusing work(mouse click , tab ,focus events)? Thank you.

--- In [EMAIL PROTECTED] ups.com,
"b0b0bb0b"  wrote:
>
> well there are two things, one is a controlBar with buttons in it, 
> and when tabbed the first button will be highlighted then it will 
> just move onto the next text box in the VBox rather than the other 
> buttons in the controlBar. I haven't implented the below, so I was 
> just using the default settings. I then tried telling flex to make 
> them all true but the program tabbed in the same way.
> 
> 
> The other custom component is a mxml file that contains a dateField 
> and a text box. this get skiped altoghter when tabbing.
> 
> thanks
> 
> 
> 
> 
> 
> --- In [EMAIL PROTECTED] ups.com,
"JesterXL"  wrote:
> >
> > Does it extend UIComponent (or a sub-class)? Does it implment:
> > 
> > tabChildren = false;
> > tabEnabled = true;
> > focusEnabled = true;
> > 
> > ???
> > 
> > - Original Message - 
> > From: "b0b0bb0b" 
> > To: <[EMAIL PROTECTED] ups.com>
> > Sent: Friday, July 21, 2006 10:04 AM
> > Subject: [flexcoders] tabbing in flex
> > 
> > 
> > if I have a Vbox with say 10 items in it. from buttons to text 
> boxes, 
> > as well as a custom component which I've extended. then when the 
> app 
> > loads I tab my way through the app which works fine until it comes 
> to 
> > the custom component. it has a tabIndex like the rest of the 
> buttons 
> > and text boxes, but it never recieves focus if you tab. the focus 
> moves 
> > straight to the next non-custom component.
> > Any ideas how to get around this.
> > cheers. I'm using flex 1.5
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: 
> http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visi