[flexcoders] Re: Does Adobe have plans for OplenGL Primitives or not?

2007-09-08 Thread barry.beattie
depends.

I'm still hoping it'll be the full flash player on mobile devices
somwday soon, not just flashlite.

or perhaps give up now and have divergence right here? bloat the flash
player with OpenGL support while flashlite progresses on regardless?

I'm just hoping to eventually make flex apps for both web and mobile,
esp where I don't need high graphics support.

eh my 2c.
barry.b



[flexcoders] Invite from Sebastien Arbogast ([EMAIL PROTECTED])

2007-09-08 Thread Sebastien Arbogast
SebastienArbogast ([EMAIL PROTECTED])
has invited you as a friend on Quechup... 
...the social networking platform sweeping the globe

Go to: http://quechup.com/join.php/aT0wMDAwMDAwMDA5ODc1NTk1JmM9MTAxNDQ3 to
accept Sebastien's invite

You can use Quechup to meet new people, catch up with old friends,
maintain a blog, share videos amp; photos, chat with other members, play
games, and more.
It's no wonder Quechup is fast becoming 'The Social Networking site to be
on'

Join Sebastien and his friends today:
http://quechup.com/join.php/aT0wMDAwMDAwMDA5ODc1NTk1JmM9MTAxNDQ3
--
You received this because Sebastien Arbogast
([EMAIL PROTECTED]) knows and agreed to invite you. You will
only receive one invitation from [EMAIL PROTECTED] Quechup will
not spam or sell your email address, see our privacy policy -
http://quechup.com/privacy.php
Go to
http://quechup.com/emailunsubscribe.php/ZW09ZmxleGNvZGVyc0B5YWhvb2dyb3Vwcy5jb20%3D
if you do not wish to receive any more emails from Quechup.
--
Copyright Quechup.com 2007.

Go to
http://quechup.com/emailunsubscribe.php/ZW09ZmxleGNvZGVyc0B5YWhvb2dyb3Vwcy5jb20%3D
if you do not wish to receive any more emails from Quechup


RE: [SPAM] RE: [SPAM] RE: [flexcoders] Display item renderer in only some rows of a datagrid

2007-09-08 Thread Paul Steven
Thanks for the reply Alex

 

I create the xml data dynamically by retrieving the values from various
objects so I can pretty much create whatever data representation I want.

 

With regards interaction rules, the only interaction is to be able to set
the values of the combo boxes then when a button is clicked it stores all
these values first in an object then when the application is closed it
stores this data in an xml file.

 

Now I have had a go at creating a custom component that includes a datagrid
and then using a repeater to duplicate this for all the data. This kind of
works as you can see here http://www.mediakitchen.co.uk/mymarksheet.jpg

 

I am able to get all the data into the custom component by passing all the
xml data into it and then within the setter function of the custom
component, parsing the relevant data for the combobox, datagrid and text
fields. 

 

The problem now hopefully is a cosmetic problem which will no doubt be a
tough oneJ

 

Thanks

 

Paul

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 07 September 2007 23:57
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Display item renderer in only
some rows of a datagrid

 

Usually, the data is given to you in some representation.  How do you
currently have the data stored for the picture you showed us?

 

It probably can be done, but is going to be significant work.  Also knowing
what the interaction rules are will help us guide you.  For example, are the
columns resizable?  Are things collapsible?  Can things be edited or clicked
on or selected? 

 

Also, how many items total?

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Friday, September 07, 2007 6:05 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Display item renderer in only some rows
of a datagrid

Unfortunately not Tom.

This project is being developed in Flex Builder 2 and needs to be finished
next week. Client wouldn't be keen on using a beta product unfortunately.

So I am hoping it can be done in Flex 2:)

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
On
Behalf Of Tom Chiverton
Sent: 07 September 2007 13:51
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Subject: Re: [SPAM] RE: [flexcoders] Display item renderer in only some rows
of a datagrid

On Friday 07 Sep 2007, [EMAIL PROTECTED]
mailto:paul_steven%40btinternet.com  wrote:
 I could do with some further advice on how to represent this data

Flex 3's AdvancedDataGrid an option ?

-- 
Tom Chiverton
Helping to appropriately differentiate advanced action-items
on: http://thefalken.livejournal.com



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

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

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

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

 



Re: [flexcoders] stop a Title window from being dragged

2007-09-08 Thread li wenzhi
do you means the isPopUp property of UIComponent?


- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, September 7, 2007 12:02:13 PM
Subject: RE: [flexcoders] stop a Title window from being dragged

popUp = false




From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Sheriff
Sent: Thursday, September 06, 2007 7:53 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] stop a Title window from being dragged


i want the titleWindow to center first then to not move even if the user wants 
it to move, i tried to override the move method but i can't center it
 as a result. i tried preventing the mouse event.preventDefaul t, that doest 
work. What else can i do




Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, 
when. 



  

Park yourself in front of a world of choices in alternative vehicles. Visit the 
Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/ 

Re: [flexcoders] stop a Title window from being dragged

2007-09-08 Thread Sheriff

i actually got it to work, just 
override public function startDragging(Whatever is in there):void{
//leave it empty
}

- Original Message 
From: li wenzhi [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, September 8, 2007 10:24:03 AM
Subject: Re: [flexcoders] stop a Title window from being dragged









  




do you means the isPopUp property of UIComponent?


- Original Message 
From: Alex Harui [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Friday, September 7, 2007 12:02:13 PM
Subject: RE: [flexcoders] stop a Title window from being dragged





popUp = false




From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Sheriff
Sent: Thursday, September 06, 2007 7:53 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] stop a Title window from being dragged









i want the titleWindow to center first then to not move even if the user wants 
it to move, i tried to override the move method but i can't center it
 as a result. i tried preventing the mouse event.preventDefaul t, that doest 
work. What else can i do





Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, 
when. 









  Choose the right car based on your needs.  
Check out Yahoo! Autos new Car Finder tool.


  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o{font-size:0;}
.MsoNormal{
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq{margin:4;}
--








   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 
http://mobile.yahoo.com/go?refer=1GNXIC

Re: [flexcoders] Link in one tab that opens the sister tab

2007-09-08 Thread Tony Alves
I control my tabs like this from the container/application holding the tab.
myTab.selectedIndex=myTab.getChildIndex(sisterID);

This is how I control the tabs from within the children
var tn:TabNavigator = parent as TabNavigator;
tn.selectedIndex = 
tn.getChildIndex(tn.getChildByName(sisterID));


its_llpj wrote:

 Is there a way to link from one tab to its sister tab?

 I have a datagrid within one tab and if the record is related to the
 sister tab I would like to have a link that when clicked will open the
 sister tab and show the related record. Is this possible?

 __


[flexcoders] Custom namespaces and getter methods

2007-09-08 Thread Janis Radins
hey ppl!

I just stumbled upon problem to define getter methods with custom
namespaces.
Could anyone confirm that getters can not be assigned to custom namespaces
or point to error?
What I do now is this:
[File modelInternal.as]
package model {
 namespace modelInternal;
}

[File SomeVO.as]
package model {
 use namespace modelInternal;
 public class SomeVO {
 protected var _foo:String;
 modelInternal function set foo(value:string):void {
 _foo = value;
 }
 }
}


[File TestClass.as]
package model {
 use namespace modelInternal;
 public class TestClass {
 protected var someVO:SomeVO;
 private function bar():void {
 someVO.foo = blah;
 }
 }
}


thanks in advance.

Jānis


[flexcoders] Re: Custom namespaces and getter methods

2007-09-08 Thread Janis Radins
Forhot to mention, I created regular function right next to that getter like
modelInternal function setFoo(value:String):void {

}

And that does'nt give me Ambiguous reference error unlike previously
posted code.


RE: [SPAM] RE: [SPAM] RE: [flexcoders] Display item renderer in only some rows of a datagrid

2007-09-08 Thread Alex Harui
OK, good luck.

 

You chose repeating DataGrids or custom renderers in a DataGrid?

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Saturday, September 08, 2007 4:06 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [SPAM] RE: [flexcoders] Display item renderer in
only some rows of a datagrid

 

Thanks for the reply Alex

 

I create the xml data dynamically by retrieving the values from various
objects so I can pretty much create whatever data representation I want.

 

With regards interaction rules, the only interaction is to be able to
set the values of the combo boxes then when a button is clicked it
stores all these values first in an object then when the application is
closed it stores this data in an xml file.

 

Now I have had a go at creating a custom component that includes a
datagrid and then using a repeater to duplicate this for all the data.
This kind of works as you can see here
http://www.mediakitchen.co.uk/mymarksheet.jpg
http://www.mediakitchen.co.uk/mymarksheet.jpg 

 

I am able to get all the data into the custom component by passing all
the xml data into it and then within the setter function of the custom
component, parsing the relevant data for the combobox, datagrid and text
fields. 

 

The problem now hopefully is a cosmetic problem which will no doubt be a
tough one:-)

 

Thanks

 

Paul

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 07 September 2007 23:57
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Display item renderer in
only some rows of a datagrid

 

Usually, the data is given to you in some representation.  How do you
currently have the data stored for the picture you showed us?

 

It probably can be done, but is going to be significant work.  Also
knowing what the interaction rules are will help us guide you.  For
example, are the columns resizable?  Are things collapsible?  Can things
be edited or clicked on or selected? 

 

Also, how many items total?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Friday, September 07, 2007 6:05 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Display item renderer in only some
rows of a datagrid

Unfortunately not Tom.

This project is being developed in Flex Builder 2 and needs to be
finished
next week. Client wouldn't be keen on using a beta product
unfortunately.

So I am hoping it can be done in Flex 2:)

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
Behalf Of Tom Chiverton
Sent: 07 September 2007 13:51
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Subject: Re: [SPAM] RE: [flexcoders] Display item renderer in only some
rows
of a datagrid

On Friday 07 Sep 2007, [EMAIL PROTECTED]
mailto:paul_steven%40btinternet.com  wrote:
 I could do with some further advice on how to represent this data

Flex 3's AdvancedDataGrid an option ?

-- 
Tom Chiverton
Helping to appropriately differentiate advanced action-items
on: http://thefalken.livejournal.com http://thefalken.livejournal.com 



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

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

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

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

 



[flexcoders] Global variable - Best Practice

2007-09-08 Thread Ben Marchbanks
I have an application in which I current set a [Bindable] variable
baseURL to the application URL. I have been accessing this variable
from other components in the app using this.parentDocument.baseURL. 
This is a clunky solution since components may have their own children
so I windup with this.parentDocument.parentDocument.baseURL - What is
the best way to create and reference an application wide variable ?



RE: [flexcoders] Global variable - Best Practice

2007-09-08 Thread Gordon Smith
One way is
 
parentApplication.baseURL
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ben Marchbanks
Sent: Saturday, September 08, 2007 3:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Global variable - Best Practice



I have an application in which I current set a [Bindable] variable
baseURL to the application URL. I have been accessing this variable
from other components in the app using this.parentDocument.baseURL. 
This is a clunky solution since components may have their own children
so I windup with this.parentDocument.parentDocument.baseURL - What is
the best way to create and reference an application wide variable ?



 


Re: [flexcoders] Global variable - Best Practice

2007-09-08 Thread Paul Andrews
You could use a static Class/Singleton to give you a single variable 
accessible from anywhere.

Paul
- Original Message - 
From: Ben Marchbanks [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, September 08, 2007 11:01 PM
Subject: [flexcoders] Global variable - Best Practice


I have an application in which I current set a [Bindable] variable
 baseURL to the application URL. I have been accessing this variable
 from other components in the app using this.parentDocument.baseURL.
 This is a clunky solution since components may have their own children
 so I windup with this.parentDocument.parentDocument.baseURL - What is
 the best way to create and reference an application wide variable ?



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



 



Re: [flexcoders] Global variable - Best Practice

2007-09-08 Thread Sheriff
maybe have it as an event and just listen for it

- Original Message 
From: Gordon Smith [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, September 8, 2007 5:25:00 PM
Subject: RE: [flexcoders] Global variable - Best Practice









  







One way is

 


parentApplication. baseURL

 

- Gordon




From: [EMAIL PROTECTED] ups.com 
[mailto:flexcoders@ yahoogroups. com] On Behalf Of Ben 
Marchbanks
Sent: Saturday, September 08, 2007 3:02 PM
To: 
[EMAIL PROTECTED] ups.com
Subject: [flexcoders] Global variable - 
Best Practice






I have an application in which I current set a [Bindable] 
variable
baseURL to the application URL. I have been accessing this 
variable
from other components in the app using 
this.parentDocument .baseURL. 
This is a clunky solution since components 
may have their own children
so I windup with 
this.parentDocument .parentDocument. baseURL - What is
the best way 
to create and reference an application wide variable ?






  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o{font-size:0;}
.MsoNormal{
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq{margin:4;}
--








   
Ready
 for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

Re: [flexcoders] Video and rtmp using Flex

2007-09-08 Thread greg h
Hi Philip,

Do you have your RTMP URI?

If so, you can take the example in the docs for the VideoDisplay component,
and for the source= tag property, just replace this:
source=assets/phone.flv
with
source=rtmp://myURI

I have done it and it works fine.

You can find the full example code here:
http://livedocs.adobe.com/flex/201/langref/mx/controls/VideoDisplay.html#includeExamplesSummary

Or is your question more about the basics of rtmp addresses?  Or by video
player did you have something in mind other than the VideoDisplay
component?

Please post back regarding whether this reply was of assistance, or if you
have any further questions. Also, if you want to provide your rtmp address
but not share it here on the forum, please do not hesitate to email me off
list.

hth,

g


[flexcoders] private / getters and setters

2007-09-08 Thread Sheriff
what is the best practice for this, show i always have the private variables on 
top and then getters/setters later or just group both of them right after the 
other

private var _test:Number

//Constructor here
//events etcc
//getters and setters or

//construct
//vents
//private var_test:Number
getters/setters




   

Be a better Heartthrob. Get better relationship answers from someone who knows. 
Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=listsid=396545433

[flexcoders] Re: Drawing lines with undo function

2007-09-08 Thread philza1985
I've figured out a roundabout solution myself. I created 2 canvases
(one a normal canvas, and another a class that extended ui component
that can hold sprites). 

I called the normal canvas 'canvas' and the ui component class 'canvas_ui'

I drew on 'canvas' using canvas.graphics.lineTo(x, y) and recorded
points in an array I called lineCoordinates.

when the line is finished i.e. using mouse move functions etc, I added
a sprite to the canvas_ui and looped through the array with lineTo
commands thus replicating the line on the other canvas. I then cleared
the graphics from the first canvas and reset the lineCoordinates (
lineCoordinates = new Array() ). 

Using a spriteNum variable, I increment it by one every time a new
sprite is added.  

The point of this is so I can delete lines with an undo button that
basically says canvas_ui.removeChildAt(spriteNum). I then decrement
spriteNum by one.

This is roundabout but it works. if anyones got a simpler solution I'm
happy to hear it.



--- In flexcoders@yahoogroups.com, philza1985
[EMAIL PROTECTED] wrote:

 Does anyone know of any tutorials creating a drawing application with
 an undo function like the graffiti application on facebook.
 
 I've been trying to add a sprite to a drawing canvas ui component
 class which is successful as follows, 
 
 
 --
 private function beginLine():void 
 {
 var sprite:Sprite = new Sprite;
   
 sprite.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
 sprite.addEventListener(MouseEvent.MOUSE_UP, onEndLine);
 
 dwg_canvas.addChild(sprite);
 
 sprite.graphics.moveTo(mouseX, mouseY);
 sprite.graphics.lineStyle(lineWidth, lineColor, 1);
 sprite.graphics.lineTo(mouseX+1, mouseY); // this draws a dot
 }
 --
 
 
 but when I create an EventListener on the sprite it doesn't go into
 the mouseMove function which says
 
 
 --
 private function onMouseMove(event:MouseEvent):void 
 {
 event.target.graphics.lineTo(mouseX, mouseY);
 }
 -
 
 
 the plan is to have all these sprites created then store the number in
 the modelLocator so that in order to undo I just have to say
 
 dwg_canvas.removeChildAt(spriteNum);
 
 Again the main thing is not the code but just to get a basic undo
 function working, so if anyone out there has any tutorials, that would
 be great. 
 
 thanks.





[flexcoders] content not allowed in prolog?

2007-09-08 Thread grimmwerks
I'm getting this error and I don't know what it means...


[flexcoders] Using the Spring Loaded Tree

2007-09-08 Thread jensen.axel
This is an example of Jason Hawryluk's Spring loaded tree but re done
to use the datadescriptor rather than xml for finding branches... 

it's a great component... you can drag and hover over the node you
want, and it opens right up...

http://axel.cfwebtools.com/index.cfm/2007/9/7/Using-a-tree-with-drag-and-drop-FROM-a-grid




[flexcoders] variableRowHeight=true in List messing up height of last row

2007-09-08 Thread jandersen1978
I'm adding simple chat functionality to an application I'm working on
and have the following List displaying messages:

mx:List width=100% height=85% id=lstMessages
itemRenderer=org.MessageRenderer
variableRowHeight=true dataChange=handleDataChange(event)
dataProvider={messages} 
/mx:List

here's the event handler:
private function handleDataChange(e:FlexEvent):void{
lstMessages.scrollToIndex(lstMessages.rowCount -1);
}

the MessageRenderer is as follows:

mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100%
mx:Text text={data.fromName} width=20% id=lblUser
color={data.color}/
mx:Text text={data.message} id=lblMessage width=80%
color={data.color}/
/mx:HBox

What I'm finding is that with variableRowHeight=true the last row in
the List is always rendered with virtually no height such that none of
the message text shows up.  You can only see that it's there by
mousing over it to see that it does display a few pixels of height (a
border or padding perhaps?).  When a new message is added, the
previously squashed row displays normally and the new row is now
vertically challenged.

With variableRowHeight=false each row displays normally (except that
text wrapping in the messsages doesn't work which is why I have it set
to true in the first place...).  I tried adding a call to
lstMessages.invalidate() in handleDataChange but it had no effect. 
One other item of note--with only a single message in the list it
seems to display OK.

Any ideas?



RE: [flexcoders] variableRowHeight=true in List messing up height of last row

2007-09-08 Thread Alex Harui
I would override measure() and see what you're getting for the
measuredHeight of the renderer.  I'm guessing that it won't be right due
to fact that flow-based text is hard to measure.

 

A custom measure() routine would probably be better.  Renderers have
their explicitWidth set when they are measured and you'll need to use
that to fix the widths of the text widgets to get an accurate height.

 

If it were me, I'd use a UIComponent with two TextFields and a custom
measure() method.

 

-Alex

blogs.adobe.com/aharui

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jandersen1978
Sent: Saturday, September 08, 2007 9:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] variableRowHeight=true in List messing up height
of last row

 

I'm adding simple chat functionality to an application I'm working on
and have the following List displaying messages:

mx:List width=100% height=85% id=lstMessages
itemRenderer=org.MessageRenderer
variableRowHeight=true dataChange=handleDataChange(event)
dataProvider={messages} 
/mx:List

here's the event handler:
private function handleDataChange(e:FlexEvent):void{
lstMessages.scrollToIndex(lstMessages.rowCount -1);
}

the MessageRenderer is as follows:

mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  width=100%
mx:Text text={data.fromName} width=20% id=lblUser
color={data.color}/
mx:Text text={data.message} id=lblMessage width=80%
color={data.color}/
/mx:HBox

What I'm finding is that with variableRowHeight=true the last row in
the List is always rendered with virtually no height such that none of
the message text shows up. You can only see that it's there by
mousing over it to see that it does display a few pixels of height (a
border or padding perhaps?). When a new message is added, the
previously squashed row displays normally and the new row is now
vertically challenged.

With variableRowHeight=false each row displays normally (except that
text wrapping in the messsages doesn't work which is why I have it set
to true in the first place...). I tried adding a call to
lstMessages.invalidate() in handleDataChange but it had no effect. 
One other item of note--with only a single message in the list it
seems to display OK.

Any ideas?

 



[flexcoders] How to know what is in mx_internal

2007-09-08 Thread Sheriff
I checked out the FlexLib on google, the superTabNavigator etc.. and they used 
alot of mx_internal stuff, now i tried finding any documentation about the 
stuff in there but couldnt find anything so i was wondering how did they find 
out what do to use. 




   

Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting