Re: [flexcoders] Re: Styling AdvancedDataGridItemRenderer

2008-06-26 Thread Doug McCune
As a very general word of warning, I'd advise you to be more careful and
expect more pain when working with the following classes (and all associated
base classes, etc): AdvancedDataGrid, OLAPDataGrid, GroupingCollection.

I'll try to be extremely politically correct here, but I assume you'll catch
my drift... These classes were written by a different part of the Flex team,
in a different part of the world, and they are quite different than the
standard Flex framework code base. They often don't follow the same coding
standards, and in my opinion they are not up to the same quality level that
I have come to expect from the Flex framework. I'll stop at that before I
make too many Adobeans mad at me, but just know that I've learned to expect
a whole new kind of pain when working with those classes.

Doug

On Thu, Jun 26, 2008 at 3:04 PM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy
 [EMAIL PROTECTED] wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Jonathan Branam
  jonathan.lists@ wrote:
  
   There are a bunch of comments below, but to sum up, it seems like
  extending
   AdvancedDataGridGroupItemRenderer and drawing a background with
 the
  graphics
   property will meet all of your needs. I missed the requirement to
  preserve
   leaf icons and such. Is there a reason this doesn't meet your
  needs, because
   you seem to have known this already?
 
  I didn't know that I could use my patched
  AdvancedDataGridGroupItemRenderer as the regular itemRenderer as
 well
  and have it just work. I assumed that there are two distinctly and
  yes irritatingly different classes for a reason.
 
  It turns out I am having a problem dynamically setting the icon on
  leaf nodes... when I use an iconFunction, the function returns the
  right thing but it is never drawn (even with changing out the
  itemRenderer). When I use a groupIconFunction, it only runs for
 the
  items that are parents.

 That, at least, was solved relatively painlessly. Before I realized
 there were two different classes handling the rendering, I forced the
 first column to my patched regular ADGItemRenderer (because that put
 the color in more rows in that column). So the only time it used my
 GroupItemRenderer was when it actually was displaying a group, which
 seems to override the hardcoded itemRenderer.

  



Re: [flexcoders] Re: itemRender Debug Warnings

2008-06-26 Thread Doug McCune
The issue is that you are creating Objects and adding these Objects to your
dataprovider. Objects are not bindable. For a quick fix just do this:

var objDG:Object = {itemID: myID, index: myAC[myID].id, display:
gridDisplay, toolTip: tipText};

myList.dataProvider.addItem( new ObjectProxy(objDG) );

But it would be much better to get strongly-typed objects back gfrom the
server, or convert the items to strongly-typed objects instead of generic
Objects. So define a class called MyItem (or whatever) and make it a simple
class with bindable properties for itemID, index, display, and toolTip. THen
when you get your objects back from the server do this instead:

var objDG:MyItem = new MyItem();
obj.itemID = myID;
obj.index = myAC[myID].id
obj.display = gridDisplay;
obj.toolTip = tipText;

BTW, I'd argue that storing the index of the item in the collection doesn't
belong in the item itself..

Doug

myList.dataProvider.addItem( new ObjectProxy(objDG) );


On Thu, Jun 26, 2008 at 4:16 PM, Enjoy Jake [EMAIL PROTECTED] wrote:

   I'm not sure I understand what the problem is here, but if you're just
 looking to get rid of the warning you can do

 text={Object(data).display}



 - Original Message 
 From: Tracy Spratt [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, June 26, 2008 4:21:46 PM
 Subject: RE: [flexcoders] Re: itemRender Debug Warnings

 Dynamic objects, like that in the data property are not bindable.  I know
 how to handle that when I am dealing with XML, but I think you have dynamic
 objects as items in your AC.

  No warranty, but try:

 text={String(data. display)}

 Tracy
 --

 *From:* [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ]
 *On Behalf Of *jmfillman
 *Sent:* Thursday, June 26, 2008 6:48 PM
 *To:* [EMAIL PROTECTED] ups.com
 *Subject:* [flexcoders] Re: itemRender Debug Warnings



 I totally missed the last post or two on this topic, but I still need
 to resolve this.

 The full warning message looks like this, each time the itemRenderer
 is used:

 warning: unable to bind to property 'display' on class 'Object'
 (class is not an IEventDispatcher)

 warning: unable to bind to property 'toolTip' on class 'Object'
 (class is not an IEventDispatcher)

 The itemRenderer looks like this:

 mx:Canvas xmlns:mx=http://www.adobe. com/2006/ 
 mxmlhttp://www.adobe.com/2006/mxml
 width=80
 height=18 verticalScrollPolic y=off horizontalScrollPol icy=off 
 mx:Label text={data. display} height=100%  width=100%
 buttonMode= true fontSize=9 color=#535353
 toolTip={data. toolTip} textAlign=center /
 /mx:Canvas

 My list is defined like this:

 mx:List id=lstD0 left=0 top=15 right=0 bottom=0
 editable=false horizontalScrollPol icy=off
 itemRenderer= myComponents. myItemRenderer dataProvider= []/

 The data coming back from the RO call is assiged to the
 ArrayCollection like this:

 private function onResult(event: ResultEvent) :void {
 myArrayColl. source = event.result as Array;
 }

 I loop through myArrayColl and addItems to the list dataProvider
 based on certain criteria.


  



Re: [flexcoders] Looking for the right loop

2008-06-24 Thread Doug McCune
There's nothing wrong with your code. You can also use a for each loop
instead, which might be a bit faster, but doesn't give you elements in any
kind of order.

But you could try this for each loop:

for each(var thing:Object in things) {
if(thing.selected == false) {
//whatever
}
}

Just note that using a for loop from 0 to the number of items will give you
those items in order, but a for each loop will give you them in
non-sequential order.

Doug

On Tue, Jun 24, 2008 at 8:57 AM, fumeng5 [EMAIL PROTECTED] wrote:

   Hi,

 I'm confused on how to best create a loop to do the following:
 discover if each element's selected property is set to false.
 Basically, I just want to detect when all elements of my array have a
 selected property set to false.

 Here's my code:
 var numThings:int = things.length;

 for (var i:int=0;inumThings;i++){
 if(!numThings[i].selected){ //
 }
 }

 I know I'm not using the correct loop, I just can't figure out how to
 better approach this problem. Any tips are very much appreciated.
 Thank you.

 Fumeng.

  



Re: [flexcoders] Re: Some interesting flexcoders stats

2008-06-23 Thread Doug McCune
Ah, at first I'm just going to have one big table, with columns for
date, subject (normalized to removed string like RE: and [flexcoders]
I think), and sender (name of sender, not email address). On the first
pass I'm only going to get the date, not the full timestamp of each
message, but I might make a second pass and get the full timestamp
(either a new column or filling out the same date column) and maybe
even the full message body (although that will increase the size of
the DB substantially).

Doug

On Mon, Jun 23, 2008 at 4:05 AM, arieljake [EMAIL PROTECTED] wrote:
 Sorry, I meant what would the tables look like (model)?

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

 I'm planning on letting people download the sqlite database file.
 That's a single file (with the .db extension I think) that you can
 load into any air app and access. I could also do a CSV, but it's a
 lot of data (hell, excel can't even load that many rows).

 Doug

 On Sun, Jun 22, 2008 at 10:18 PM, arieljake [EMAIL PROTECTED] wrote:
  What will the data format be so we can plan ahead?
 
  --- In flexcoders@yahoogroups.com, Doug McCune doug@ wrote:
 
  Within then next week I hope to have a fairly complete dataset of
  date, subject, and name of who posted for close to all the messages
  ever posted to flexcoders. I might also do a second pass to get full
  text of each message too. I say close to all because I'm scraping
  the mail archive website and that only shows 95,000 message, but in
  reality I think there are more like 116,000. Plus some of the
 messages
  from 2004 seems to have gotten a bit jacked on the mail archive site
  and don't show up with the proper subjects and senders (there's a
  block of a few hundred).
 
  But once I get that I'm going to post a sqlite DB file that has
 it all
  that you can load into an air app to play with. I'll let y'all know
  when you can start playing with the data.
 
  Doug
 
  On Sun, Jun 22, 2008 at 5:29 PM, Tim Hoff TimHoff@ wrote:
  
   flexCodersStatus = (mostRecentlyPostedThread == The subject that
  shall
   not be named! ? Banned : Active);
  
   -TH :-)
  
   --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
  
   Hey folks,
  
   Given the recent big thread on the subject that shall not be
  named, my
   colleague Suchit went ahead and got some interesting
 membership stats
   since
   the beginning of the list.
  
   Number of people who:
  
   Joined group == 14036
   Left group == 3686
   Were Banned == 631
   Got Removed == 359
  
   I would say losing ~25% over time isn't too bad. That said we
 haven't
   done
   analysis to see if there's a trend in dates or if we're losing
 more
   people
   recently, etc. But interesting info for starters...
  
   Matt
  
  
  
 
 
 


 


Re: [flexcoders] Here's a great idea for flex 4 - simple color pallette utility

2008-06-23 Thread Doug McCune
I'd vote for this too, especially if it was something that came up in the
IDE as part of the code hinting for color style tags.

On Mon, Jun 23, 2008 at 11:51 AM, Paddy Keane [EMAIL PROTECTED] wrote:

   great idea ;)

 

 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com on behalf
 of djhatrick
 Sent: Mon 23/06/2008 19:44
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] Here's a great idea for flex 4 - simple color
 pallette utility


 How about a simple color browser, say if you have a hex color in your
 code and you want to see the value, you can highlight the color and
 then a little window you show you the color, without having to switch
 to design view. I have used flex for 2 years now, and don't really
 use the need for design view on complicated projects, things don't
 display correctly anyway.

 I always have to leave flash open and continuously paste color values
 in just to see their values.

 Thanks for your time,
 Patrick

  



Re: [flexcoders] Re: Some interesting flexcoders stats

2008-06-22 Thread Doug McCune
Within then next week I hope to have a fairly complete dataset of
date, subject, and name of who posted for close to all the messages
ever posted to flexcoders. I might also do a second pass to get full
text of each message too. I say close to all because I'm scraping
the mail archive website and that only shows 95,000 message, but in
reality I think there are more like 116,000. Plus some of the messages
from 2004 seems to have gotten a bit jacked on the mail archive site
and don't show up with the proper subjects and senders (there's a
block of a few hundred).

But once I get that I'm going to post a sqlite DB file that has it all
that you can load into an air app to play with. I'll let y'all know
when you can start playing with the data.

Doug

On Sun, Jun 22, 2008 at 5:29 PM, Tim Hoff [EMAIL PROTECTED] wrote:

 flexCodersStatus = (mostRecentlyPostedThread == The subject that shall
 not be named! ? Banned : Active);

 -TH :-)

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

 Hey folks,

 Given the recent big thread on the subject that shall not be named, my
 colleague Suchit went ahead and got some interesting membership stats
 since
 the beginning of the list.

 Number of people who:

 Joined group == 14036
 Left group == 3686
 Were Banned == 631
 Got Removed == 359

 I would say losing ~25% over time isn't too bad. That said we haven't
 done
 analysis to see if there's a trend in dates or if we're losing more
 people
 recently, etc. But interesting info for starters...

 Matt


 


Re: [flexcoders] Re: Some interesting flexcoders stats

2008-06-22 Thread Doug McCune
I'm planning on letting people download the sqlite database file.
That's a single file (with the .db extension I think) that you can
load into any air app and access. I could also do a CSV, but it's a
lot of data (hell, excel can't even load that many rows).

Doug

On Sun, Jun 22, 2008 at 10:18 PM, arieljake [EMAIL PROTECTED] wrote:
 What will the data format be so we can plan ahead?

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

 Within then next week I hope to have a fairly complete dataset of
 date, subject, and name of who posted for close to all the messages
 ever posted to flexcoders. I might also do a second pass to get full
 text of each message too. I say close to all because I'm scraping
 the mail archive website and that only shows 95,000 message, but in
 reality I think there are more like 116,000. Plus some of the messages
 from 2004 seems to have gotten a bit jacked on the mail archive site
 and don't show up with the proper subjects and senders (there's a
 block of a few hundred).

 But once I get that I'm going to post a sqlite DB file that has it all
 that you can load into an air app to play with. I'll let y'all know
 when you can start playing with the data.

 Doug

 On Sun, Jun 22, 2008 at 5:29 PM, Tim Hoff [EMAIL PROTECTED] wrote:
 
  flexCodersStatus = (mostRecentlyPostedThread == The subject that
 shall
  not be named! ? Banned : Active);
 
  -TH :-)
 
  --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  Hey folks,
 
  Given the recent big thread on the subject that shall not be
 named, my
  colleague Suchit went ahead and got some interesting membership stats
  since
  the beginning of the list.
 
  Number of people who:
 
  Joined group == 14036
  Left group == 3686
  Were Banned == 631
  Got Removed == 359
 
  I would say losing ~25% over time isn't too bad. That said we haven't
  done
  analysis to see if there's a trend in dates or if we're losing more
  people
  recently, etc. But interesting info for starters...
 
  Matt
 
 
 


 


Re: [flexcoders] Flex Efficiency

2008-06-21 Thread Doug McCune
The first step here is to verify that it's really the SWFs that are
causing the problem. Can you replace the animated SWFS with static
assets (like very simple non-animated SWFs, or even just blank Sprite
objects)? Then test and see if the performance is better. If not then
it's a Flex problem. If it turns out to really be your SWFs then
you're more or less stuck trying to go back and make those SWFS not
take up so much CPU. I second Josh's suggestion of checking any
filters on your SWFs. Try to make them as simple as possible to test.

Second, what is holding the 25 SWFs that you are moving around? The
biggest issue I can see if that if you're using a typical container,
then moving one of the SWfs or changing it's size might be triggering
an invalidation, which means that for every frame rendered there's a
full loop over every item in the display list. Might be worth using a
custom component to hold these 25 swfs instead of one of the Flex
containers.

Also, nobody has addressed the issue of why the CPU would spike after
adding a popup with the PopUpManager. I was originally going to say
that I thought this was probably due to the PopUpManager adding the
blur effect, but if the popup is non-modal then the PopUpManager
shouldn't add any blur effect to the app, so it doesn't make any sense
to me why that would make the CPU usage spike.

Doug

On Sat, Jun 21, 2008 at 3:07 PM, Alex Harui [EMAIL PROTECTED] wrote:
 There are no workarounds.  Good design for Flash minimizes use of resources.
  The profiler can help you tune things, but if you use lots of SWFs you're
 going to pay a price.  However, that may not be your main problem, and the
 profiler can help you determine that.



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Alen Balja
 Sent: Saturday, June 21, 2008 3:57 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex Efficiency



 Alex, do you have any more info on the subject, especially what are the
 workarounds? I  too am using lots of really tiny and simple external swf
 animations and performance is really really bad. If I remember correctly
 it's much worse than Flash Player 7.



 The profiler will help you find inefficiencies in your app.



 Loading lots of SWFs is, of course, going to eat resources.





 


Re: [flexcoders] Need Source code for Character Limit for TextArea....

2008-06-20 Thread Doug McCune
Posting twice, demanding source code for a solution, and telling us
you need it ASAP isn't going to do much besides piss people off. We're
not here to do your work. If you're in over your head and are going to
miss your deadline because you committed to developing with a
technology you haven't learned then this is the wrong place to look
for someone to bail you out.

Sorry for the rant, as we've been discussing on this list lately there
have been more and more questions like this. I certainly don't want to
come off as being condescending or arrogant, but saying give me
source code, I need it now for my deadline gets me a little riled up
:)

Doug

On Fri, Jun 20, 2008 at 11:09 AM, Ashwin Thota [EMAIL PROTECTED] wrote:


 Hi All,

 Can Anyone give me source code for Character limit for TextArea in Flex and
 Action Script.
 In my project I've been implementing a Text Area which should accept only
 4000 characters.
 It should also display the status as still how many characters left..? in
 a Label.
 If it exceeds 4000 characters it should not print any character in that Text
 Area.

 It is highly appreciated if I get this code today ASAP.

 Regards,
 Ashwin Thota.


 


Re: [flexcoders] Re: Return data to FileReference

2008-06-20 Thread Doug McCune
I'm guessing then that Event.COMPLETE and
DataEvent.UPLOAD_COMPLETE_DATA both are the string complete and you
just happened to get lucky with a bad naming convention. But that's
just a guess.

Doug

On Fri, Jun 20, 2008 at 4:19 PM, Tracy Spratt [EMAIL PROTECTED] wrote:
 Are you saying, complete event is of type flash.events.Event and does not
 have a data property… because of the docs?  (which do not list a data
 property)



 Because I am not proposing a theoretical solution, this is operating code.
 I am a bit confused, though about the event datatypes.  While I am listening
 for flash.events.Event from Filereference, my listener is typing the
 argument as DataEvent, and no exception is thrown, and I can access the
 .data property.



 Per the docs, flash.events.DataEvent.UPLOAD_COMPLETE_DATA is the correct
 event to use.



 Tracy



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Rich Tretola
 Sent: Friday, June 20, 2008 2:41 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: Return data to FileReference



 OK, the problem with your solution is that the FileReference complete event
 is of type flash.events.Event and does not have a data property and the
 target is the FileReference.


 On Fri, Jun 20, 2008 at 2:11 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

 I just verified it, my handler is working as expected and I can access the
 xml status node I am having the server return.

 Tracy



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tracy Spratt
 Sent: Friday, June 20, 2008 1:58 PM

 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: Return data to FileReference



 Hmm, looks like I am just using the Event.COMPLETE event.  Its been awhile
 since I ran this code, let me double check it.

 Tracy



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tracy Spratt
 Sent: Friday, June 20, 2008 1:55 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: Return data to FileReference



 The event.result should contain whatever your server sends back, just like
 with a normal httpservice request.  Below is the code I am using.  I send
 back an xml status node, but you could send anything:

 Tracy



   // Called on upload complete

   private function onUploadComplete(event:DataEvent):void {

 var sData:String = event.data;

 var xmlStatus:XML = XML(sData);

 if ([EMAIL PROTECTED] == error) {

   this.height = 200;

   lbStatus.setStyle(color,red);

   lbStatus.text = Error Uploading File:;

   txtError.text = [EMAIL PROTECTED];

   sCloseMode = ioerror

   //_timerStatus.delay = 6000;

   //_timerStatus.start()

 }

 else {

   _numCurrentUpload++;

   if (_numCurrentUpload  _aUploadFiles.length) {

 startUpload(false);

   } else {

 lbStatus.text = Upload successful;

 sCloseMode = success

 _timerStatus.start()

   }

   saveProjDoc();

 }

   }//onUploadComplete



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Rich Tretola
 Sent: Friday, June 20, 2008 1:16 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: Return data to FileReference



 Yes, but that file name is the name that was selected by the user, not the
 one that the file was actually renamed to by the servlet.



 On Fri, Jun 20, 2008 at 1:18 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

 You can get the event.result data in a handler for the uploadCompleteData
 event.



 http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html#event:uploadCompleteData



 Tracy



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Rich Tretola
 Sent: Friday, June 20, 2008 1:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Return data to FileReference



 I guess no one else has run into this before?


 On Fri, Jun 20, 2008 at 11:03 AM, Rich Tretola [EMAIL PROTECTED] wrote:

 Here is the situation:

 I am uploading files from Flex to a Servlet using the FileReferenceList
 class. Since there is no way to change the filename before it is uploaded, I
 am passing along a parameter which holds the file name I would like the file
 to ultimately be saved as.

 On the server side, all is well. The file is uploaded and then renamed to my
 parameter name.

 So my question is, is there a way to pass the new filename back to Flex so
 that I can access it within the FileReference Event.COMPLETE event listener?

 Rich







 



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

* To visit your group on the web, go to:
 

Re: [flexcoders] Re: way way OT: another flex?

2008-06-19 Thread Doug McCune
It's Flash, I decompiled it. It's got scripts all over movieclips. w.

Doug

On Thu, Jun 19, 2008 at 1:06 PM, Tim Hoff [EMAIL PROTECTED] wrote:

 16 city / 22 highway; oh yeah. It's funny, when this site first came
 out it was touted as being written in Flex. Looks more like a Flash
 site though.

 -TH

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

 Just like the AIR bus tour, Matt and Ely will travel the country in a
 Ford Flex touting Flex 4 when it ships. Watch for them at a gas
 station
 near you.



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On
 Behalf Of dnk
 Sent: Thursday, June 19, 2008 11:24 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: way way OT: another flex?



 never hurts to ask?





 On 19-Jun-08, at 10:13 AM, Matt Chotin wrote:





 Is it wrong of me to ask the company to buy one though just because of
 the synergy?

 On 6/19/08 8:28 AM, simonjpalmer [EMAIL PROTECTED]
 mailto:simonjpalmer%40yahoo.com  wrote:

 Looks more like the left-overs from the Range Rover parts bin...


 http://www.autobytel.com/images/carcom/06_LandRover_RangeRover/400/06_RA
 NGE_ROVER_RngRvr_exfrpass34.jpg

 http://www.autobytel.com/images/carcom/06_LandRo!%0d%0a%20ver_RangeRove
 r/400/06_RANGE_ROVER_RngRvr_exfrpass34.jpg

 --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com

 mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.co
 m , Paul Hastings paul.hastings@
 wrote:
 
  found this serendipitously while googling for flex...i like the name
 but it
  looks like a mini cooper on steroids ;-)
 
  http://www.fordvehicles.com/flex/
 http://www.fordvehicles.com/flex/
 


 


Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-18 Thread Doug McCune
Out of the last 100 threads on flexcomponents 22 were cross posted to
flexcoders. Almost every one (I think with one exception) was
cross-posted by the original author immediately to both lists
(sometimes as many as 5 lists! flexcoders, flex_india, flexcomponents,
ria-india). One of them was pretty much spam, and one of them was a
job post (which shouldn't have been posted to flexcoders or
flexcomponents, but only flexjobs).

If we look at flexcomponents as a microcosm, then we have: 22%
crossposting (1% legitimate cross-posting) and 2% spam.

Yeah, this isn't a scientific survey (although I do hope to get real
results comparing the full traffic of both lists soon). But I just
thought it was interesting.

Doug

On Wed, Jun 18, 2008 at 8:44 AM, Anatole Tartakovsky
[EMAIL PROTECTED] wrote:
 Hello Tom,

How is 1 list simpler than 1 list ?

 The same way threads by the topic are simplier then unsorted individual
 email - you read only the ones you need and fold the rest. While you can
 argue that you can sort and fold messages with some client email
 customization, it is not a trivial task unless your server or client
 supports it.

 Basically weborb is 10 messages a day, apollo is 1 and flexcomponents are 2
 - I can manage that in my daily emails. Imagine that we separated the main
 list in subtopics and one of them would be dashboards, charts and BI -
 getting 5-10 messages a day - would you rather moderate that or whole
 list? Would it get up in your inbox? What are the chances that a single
 mail  would get missed by specialist? What about the quality of the answer?
 Visibility of all questions and answers on the topic? Am I the only one who
 thinks that libraries place books by category for convenience and access
 simplicity?

 There is nothing simple about fishing in 100+ items. Tom, as BI specialist
 you know firsthand that sorting data in the beginning eliminates order of
 magnitude processing later. Let us apply it to our daily life.

 But if there are too many they'll just post to them all. 

 There are 2 types of crossposting people - the ones who did not receive the
 answer in the previous forum and the ones who cross post from the get go.
 The first type is OK - moderator or users can point them to a different
 forum. There are periods in flexcomponents that every second message gets
 RTFM or go to flexcoders responses. The second type needs some
 discipline. Here is what moderators and users do - saying this is not
 appropriate forum, remove the message to make life easier for the rest,
 giving warning bans for a day - however harsh it sounds, it works. The goal
 is to service the community - not to do somebodies homework. If the forums
 are speedy and high quality the crossposting ceases.

 I have seen heavily moderated product forums on compuserve (yes, before
 Internet) 15 years ago. You had less then one hour response (datetime
 US) time on 90+% of the questions. The volume was about 500 messages across
 20 forums. General list was getting about 100 threads, the rest were much
 smaller, The answers would be actually correct ones. Vendors would have team
 of community moderators that would answer 50%+ of the questions in their
 domain - with multiple moderators per topic. There was very little
 repetition of the questions as people could search much better.

 Things come in cycles. Please consider this as best practices from the
 historical point.

 Now for the next cycle - can single list be better then multiple lists - the
 answer is yes, but not now
 The only way I can see single as an alternative to multiple list is to
 enforce tagging of the questions. That in turn means next generation of
 email clients or forcing everybody to use RSS type readers instead of email.
 We will get to it in a few years, its requires serious update to the email
 system. Next generations of email that are to be spam proof can make
 topics/tagging exchange a part of handshake protocol. Till then there is no
 enforceable way to sort the messages on the senders end.


 Sincerely,
 Anatole Tartakovsky


 On Wed, Jun 18, 2008 at 5:02 AM, Tom Chiverton
 [EMAIL PROTECTED] wrote:

 On Tuesday 17 Jun 2008, Anatole Tartakovsky wrote:
  Multiple lists enforce thinking if it is appropriate before posting.

 Maybe. But if there are too many they'll just post to them all.

  Moderators can ban/redirect unappropriate message. Flexcomponents often
  redirect new users to flexcoders if the question is not about
  components.
  You almost never see questions on UI design in weborb.

 See what I and Matt said - I think we're on the same page here.

  All in all - let us have the simplest thing possible - multiple list - w

 How is 1 list simpler than 1 list ?

 --
 Tom Chiverton

 

 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 

Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-18 Thread Doug McCune
I'd just like to point out that we've just had a 108-message thread
among 20 different Flex developers in 2 days. Somehow among the
stagnation and overwhelming traffic we've all had a fantastic
discussion :) I think this thread is an argument that this list is
alive and very healthy.

Doug

On Wed, Jun 18, 2008 at 2:40 PM, Joseph Balderson [EMAIL PROTECTED] wrote:
  From the perspective of someone who in his opinion is only just edging
 into the advanced category in Flex, I've been a lurker for many years
 but only just now gradually changing to a more active status on the list.

 To me, the volume of emails to the list was intimidating, until I
 decided to manage my lists a little better through Thunderbird
 filtering, and be disciplined about the time I take every day to review
 the list, so it doesn't impact my productivity, much like I do every day
 with the MXNA.

 So I'm not convinced that splitting up the list simply to make things
 more efficient and the volume less intimidating for some people
 outweighs the potential risks. I agree with Tim Hoff (16/06/2008 10:53
 PM) -- my concern is less for new users and lurkers than it is for
 frequent posters who are the lifeblood of this community, having to
 divide their precious attention from one list to however-many, which
 would dilute the quality of all lists, and could ultimately lead to
 abandonment by regular users on all lists.

 A community such as this must be a delicate balance between questions
 and answers, new users and advanced users, lurkers and frequent
 contributors. My concern is that for many, the formula works, our
 numbers are steady, and there is still a huge number of A-list
 participation. In attempting to improve the list, we could be killing it
 -- so we need to be very sure of our data before proceeding IMO.


 A FAQ would be very welcome, as would Doug's recommendation for most
 commonly asked threads, as would tags, regardless of what the decision
 is on the split.

 But I would request that FAQ links and tag keywords be indicated in the
 signature of each email from the list, so that the many users who don't
 use the yahoo list's web interface can easily find the info and know
 what tags to use without having to switch between their mail client and
 a browser, otherwise having a FAQ and anything else apart from the
 emails is pointless.

 In fact, just having a FAQ and encouraging the use of tags could help
 many with list post management, and provide this list the boost it
 needs without taking drastic measures. This would be my request, and my
 recommendation. In addition, we could even include in the FAQ some post
 management strategies, such as filtering, tagging and colour-coding to
 help users manage the flow.

 And I would suggest an automated email generated by an algorithm with
 some text like You have not posted in ___ months... or You have now
 unsubscribed... followed by please help us make flexcoders a better
 community experience by telling us why you have _

 This would be a far less intrusive and intimidating follow up and data
 collection method than an email personally send from a moderator,
 especially one from Adobe. Some people might perceive such attention as
 singling them out, and using an autogenerated email would eliminate the
 manpower necessary to collect data on infrequent/unsubscribed accounts.

 If we do decide to split the list at all, I would keep the number small
 just to make sure. My recommendation would be to split things into just
 three lists:
 flexcoders
 flexnewbie
 flexenterprise

 Even though the definitions are a little fuzzy, I think flexnewbie could
 be defined as not the difficulty of the question but the experience the
 user perceives themselves to be at, so there may very well be advanced
 and newbie questions on both lists, and that's okay. Likewise there will
 probably be some crossover into the flexenterprise list. I think it's
 fair to say that questions involving a substantial amount of Java/data
 services/large teams/enterprise workflows would qualify, without
 requiring the definition of enterprise be defined with scientific
 precision to participate. Too narrow a definition is a recipe for
 failure, any new the list needs to be defined without being too
 exclusive IMO.

 Thanks for listening,

 --
 ___

 Joseph Balderson | http://joeflash.ca
 Flex  Flash Platform Developer | Abobe Certified Developer  Trainer
 Author, Professional Flex 3 (coming Winter 2008)
 Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674



 Tom Chiverton wrote:
 On Tuesday 17 Jun 2008, Matt Chotin wrote:
 Hey folks, let's calm down a little here, K?

 Aye.

 1) Let's get an FAQ going that can be edited by moderators or members of
 the community.

 This would be a huge bonus, esp. given #3.

 Center.  But for now how about we just allocate a page off of the
 opensource wiki.  We can pick some moderators 

Re: [flexcoders] Diagonal (hatched) fill

2008-06-18 Thread Doug McCune
I did something like this with degrafa... I used the CSSSkin they have
in there and applied a small hatch graphic as the background fill (I
made a tiny one-liner diagonal image in photoshop). Worked really well
and was completely controlled by CSS.

Doug

On Wed, Jun 18, 2008 at 5:54 PM, Josh McDonald [EMAIL PROTECTED] wrote:
 I don't think there's anything built in, but you could create a Sprite, draw
 your pattern, use it to create a BitmapData and use that as a fill. A few
 steps, but should be able to get what you want, and you can do most of it
 only once and keep the final BitmapData around.

 There might be support for doing this sort of thing in DeGrafa though, so
 I'd check there first! :)

 -Josh

 On Thu, Jun 19, 2008 at 8:03 AM, simonjpalmer [EMAIL PROTECTED]
 wrote:

 anyone know whether there is built in support for a fill containing
 diagonal lines?  I want to have a stacked bar chart with the upper
 portion of the stack being hatched.

 Any clues?  I can't find anything.
 Thx


 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 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.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
 


Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Doug McCune
 How about an agreed list of acronyms that we use to prepend the Subject
line with: NEWB, MXML, AS3, DESIGN, HTTP, ALL, etc., and we do the sorting
ourselves with the mail rules?



You can't force people to add keywords to their subjects (I'd also argues
that any categories you come up with are inherently flawed and topics
usually apply to many categories), since people unfamiliar with the list
won't do it, and the biggest problem I see has to do with people new to Flex
and this list (note that I highly support new developers getting involved
and asking questions, but they should do a little research first and not ask
someone to do their work for them). If people start tagging their subjects
it might catch on and people might be smart enough to see the traffic on the
list and adhere to the standard before posting, but I give it a very small
chance.

And if someone replied and changed the subject line then threading gets all
jacked, which is why I suggested someone replying with a certain tag in the
body of the message that we can use to filter the threads (not to categorize
legit threads, simply to filter out illegitimate ones).

Doug


Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Doug McCune
Actually, this is worth going back to, because your initial email said that
the group was stagnant and has plateaued with the number of new users and
questions. Except your reason for bringing it up is that the traffic has
gotten too much for you to read every message. So clearly the level of
traffic isn't stagnant. Unless what you're saying is that about 6 months ago
the traffic reached a critical level where you couldn't deal with the
traffic but then it stopped growing.

So I guess I'm saying I question the claim that this list is stagnant.
Almost 10,000 members and an average of 100 messages a day. Are you saying
that these stats have been the same for the past 6 months? And even if that
is true (although I'd like to see numbers before I accept that) then I don't
even necessarily think that this indicates that there's a problem. There's a
simple fact that a ton of questions have already been accurately answered by
this list. I would hope that the archived knowledge of the list serves to
answer more and more questions that newcomers have, meaning they don't need
to post the questions over and over.

What is the real problem? I haven't heard anyone say that the traffic on
this single list has stopped them from asking any questions (although I'm
open to the possibility that this is true, and just hasn't been voiced). And
largely I think that the number of people answering questions has remained
high and the response times are still good. I have heard that the traffic
level has stopped people from reading the questions that others ask (I
certainly skim and sometimes skip entire days). I'd argue that a combination
of self-moderated subject tagging, as well as more aggressive pointing
repeat questions to cached answered (and then tagging the entire thread as a
repeat) will largely solve this problem.

So do you have numbers that indicate the stagnation you are worried about?

Doug

On Tue, Jun 17, 2008 at 1:28 PM, Anatole Tartakovsky 
[EMAIL PROTECTED] wrote:

   Matt,
Let us review the goal - in the original post I explained that single
 group causes stagnation.  If you agree with the numbers and reasoning behind
 it, let us look at the proposition in that light. IMHO, the mentioned
 measures while staying  within the same single group would probably extend
 the number of users by 20-30%  byhoping to reduce number of posted messages
 by the same percentage - but it is hardly the goal we are trying to achieve
 here.

   Realistically Adobe should be looking for place public pace to exchange
 ideas and networking as well as getting trivial help. The product and
 community are just too big for one group.  Let us split it up and let each
 subgroup speak their own language. I would gladly moderate standalone
 enterprise/j2ee/best practices track. But looking few times a day @ the
 whole stream to fish out what might be related to the topic and having some
 messages falling through the cracks might be not the recommended best
 practices solution.

 Sincerely,
 Anatole




 On Tue, Jun 17, 2008 at 1:48 PM, Matt Chotin [EMAIL PROTECTED] wrote:

   Hey folks, let's calm down a little here, K?

 Alright, based on what I've been seeing people say, here's my suggestion.

 1) Let's get an FAQ going that can be edited by moderators or members of
 the community. This will be about common problems that folks run into. One
 suggestion of course from me would be that we use the Cookbook for how-to
 type questions. But for things that don't seem like they're cookbook
 appropriate, we can put them in the FAQ. I like the idea of doing it in
 Buzzword, though Buzzword docs won't come up in Google. Long-term I think
 the right place might be in whatever we set up in the Adobe Developer
 Center. But for now how about we just allocate a page off of the opensource
 wiki. We can pick some moderators who can edit the page and I will get them
 added so they can take care of it. We can also add the link to the FAQ to
 the bottom of every email.

 2) Some folks suggested that you either mark in the body or in the subject
 something that indicates what you're talking about. Seems reasonable. We
 could use some of the topics that were being suggested. [UX], [Enterprise],
 [Data Services] [Announce], etc. We don't need to limit this, but by
 following a convention of placing the general area of discussion, folks will
 know if they're going to be capable of getting involved in the thread. The
 more people follow this convention, the more efficient it will become.

 3) We can get aggressive on the moderation. Rather than just scanning for
 spam, moderators can actually look at the posts by new users and decide if
 they meet the general criteria for asking a question. If they don't, the
 moderator can reject the post and point the user to the forum FAQ which has
 posting guidelines.

 4) We can update the flexcoders FAQ (which is actually linked at the
 bottom of every single post) to include the updated posting guidelines and
 remove the 

Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Doug McCune
OK, I eat my words in terms of message growth then :) Touche. Thanks for
those stats. I'd actually be interested in getting access to the raw data
dump for the entire list to run some analysis, but that's getting off topic.

Just one point, which has already been brought up, but now that we're
looking at #s, here are the #s for flexcomponents (note also that this
doesn't discount for cross-posts to flexcoders as well, which I assume are a
large portion too):

Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec  2008
159http://tech.groups.yahoo.com/group/flexcomponents/messages/3300
153 http://tech.groups.yahoo.com/group/flexcomponents/messages/3459
88http://tech.groups.yahoo.com/group/flexcomponents/messages/3612
59 http://tech.groups.yahoo.com/group/flexcomponents/messages/3700
45http://tech.groups.yahoo.com/group/flexcomponents/messages/3759
39 http://tech.groups.yahoo.com/group/flexcomponents/messages/3804





 2007 190 http://tech.groups.yahoo.com/group/flexcomponents/messages/1087
234 http://tech.groups.yahoo.com/group/flexcomponents/messages/1277
442http://tech.groups.yahoo.com/group/flexcomponents/messages/1511
149 http://tech.groups.yahoo.com/group/flexcomponents/messages/1953
168http://tech.groups.yahoo.com/group/flexcomponents/messages/2102
260 http://tech.groups.yahoo.com/group/flexcomponents/messages/2270
103http://tech.groups.yahoo.com/group/flexcomponents/messages/2530
183 http://tech.groups.yahoo.com/group/flexcomponents/messages/2633
96http://tech.groups.yahoo.com/group/flexcomponents/messages/2816
119 http://tech.groups.yahoo.com/group/flexcomponents/messages/2912
129http://tech.groups.yahoo.com/group/flexcomponents/messages/3031
140 http://tech.groups.yahoo.com/group/flexcomponents/messages/3160  2006





 297 http://tech.groups.yahoo.com/group/flexcomponents/messages/1
68http://tech.groups.yahoo.com/group/flexcomponents/messages/298
211 http://tech.groups.yahoo.com/group/flexcomponents/messages/366
89http://tech.groups.yahoo.com/group/flexcomponents/messages/577
184 http://tech.groups.yahoo.com/group/flexcomponents/messages/666
237http://tech.groups.yahoo.com/group/flexcomponents/messages/850
I'm not saying that if you split the group all the small groups will follow
that fate, but as everyone has mentioned, flexcomponents was specifically
made to try to keep custom component development out of the main flexcoders
mailing list, and I don't think anyone will argue that that has worked.

Doug


On Tue, Jun 17, 2008 at 3:15 PM, Anatole Tartakovsky 
[EMAIL PROTECTED] wrote:

   Doug,
 As far as I know, I am the only one in the  NY office who did not
 unsubscribe from the group. Looks at the stats ( provided by Tim) or just go
 to the group page. Also, the number of users if I remember it correctly has
 been in 9K for at least 6 month - meaning you have the same number of
 people in and OUT - obviously you need to ask Matt if he has more detailed
 stats on unsubscribes count.
 Regards,
 Anatole

 On Tue, Jun 17, 2008 at 5:35 PM, Doug McCune [EMAIL PROTECTED] wrote:

   Actually, this is worth going back to, because your initial email said
 that the group was stagnant and has plateaued with the number of new users
 and questions. Except your reason for bringing it up is that the traffic has
 gotten too much for you to read every message. So clearly the level of
 traffic isn't stagnant. Unless what you're saying is that about 6 months ago
 the traffic reached a critical level where you couldn't deal with the
 traffic but then it stopped growing.

 So I guess I'm saying I question the claim that this list is stagnant.
 Almost 10,000 members and an average of 100 messages a day. Are you saying
 that these stats have been the same for the past 6 months? And even if that
 is true (although I'd like to see numbers before I accept that) then I don't
 even necessarily think that this indicates that there's a problem. There's a
 simple fact that a ton of questions have already been accurately answered by
 this list. I would hope that the archived knowledge of the list serves to
 answer more and more questions that newcomers have, meaning they don't need
 to post the questions over and over.

 What is the real problem? I haven't heard anyone say that the traffic on
 this single list has stopped them from asking any questions (although I'm
 open to the possibility that this is true, and just hasn't been voiced). And
 largely I think that the number of people answering questions has remained
 high and the response times are still good. I have heard that the traffic
 level has stopped people from reading the questions that others ask (I
 certainly skim and sometimes skip entire days). I'd argue that a combination
 of self-moderated subject tagging, as well as more aggressive pointing
 repeat questions to cached answered (and then tagging the entire thread as a
 repeat) will largely solve this problem.

 So do you have numbers that indicate the stagnation you are worried about?

 Doug


 On Tue, Jun 17, 2008

Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Doug McCune
I plan on gathering a complete archive of the list over the next week
and doing some analysis. I'll post the full dataset once I get it
compiled to let others play with it too. I'm working on a variety of
ways to get a compiled list of all messages, but I think between
either scraping the mail archive site and scraping the yahoo group
site I should have it figured out in another week.

Then of course I'll build some flex apps to crunch some of the data :)

Doug

On Tue, Jun 17, 2008 at 6:20 PM, Matt Chotin [EMAIL PROTECTED] wrote:
 As far as stats, we've had about 100 people join in the last week. I don't
 know how many folks unsubscribed, that seems to be a little harder to track
 easily and I don't have time to read through all the logs (if someone would
 like to write some scripts to go through the logs and build up these kinds
 of stats let me know and I'll get you access). Also hard to know how many of
 the folks who joined are spammers, but I don't think that many :-)

 This is a tough position for me to comment on because we want the community
 to thrive and have a life of its own that isn't controlled by Adobe. That
 said, we clearly want to see it succeed and will involve ourselves as
 necessary to try to make that happen.

 Based on the comments I'm seeing in this thread I don't see the big clamor
 to divide the list. I see folks who have figured out workflows that work for
 them, and suggestions for how to make things more manageable. That said, the
 issue that Anatole raises is whether we are preventing new users from
 getting help, or preventing advanced users from participating. Most of those
 folks who have been hurt we can assume are folks who are not on the list
 anymore, so it's difficult to really know without some sort of data as to
 why they left the list. If people are willing to wait a few weeks, maybe we
 could work on trying to gather that data and make a decision after. Another
 piece of data we could use is an analysis of the kinds of posts that have
 happened recently, perhaps compared to posts from a year ago, and see if the
 skill level of posters is increasing, how many threads are going un
 answered, semi-subjective view of signal vs. noise. This would help us
 understand if there is meaning behind the low rate of increase in total
 number of members, as well as the generally flat nature of posts per month.

 Does doing this kind of analysis interest anyone? Are the folks who advocate
 separating the list interested in waiting for this kind of analysis? For me,
 it seems kind of critical to have real data before making this kind of
 decision, as we're going with hunches as to what's really happening here.
 I'd have a hard time getting behind a real split when we don't know if doing
 so would actually improve things.

 Matt

 On 6/17/08 3:15 PM, Anatole Tartakovsky [EMAIL PROTECTED]
 wrote:

 Doug,
 As far as I know, I am the only one in the NY office who did not unsubscribe
 from the group. Looks at the stats ( provided by Tim) or just go to the
 group page. Also, the number of users if I remember it correctly has been in
 9K for at least 6 month - meaning you have the same number of people in and
 OUT - obviously you need to ask Matt if he has more detailed stats on
 unsubscribes count.
 Regards,
 Anatole

 On Tue, Jun 17, 2008 at 5:35 PM, Doug McCune [EMAIL PROTECTED] wrote:
 Actually, this is worth going back to, because your initial email said that
 the group was stagnant and has plateaued with the number of new users and
 questions. Except your reason for bringing it up is that the traffic has
 gotten too much for you to read every message. So clearly the level of
 traffic isn't stagnant. Unless what you're saying is that about 6 months ago
 the traffic reached a critical level where you couldn't deal with the
 traffic but then it stopped growing.

 So I guess I'm saying I question the claim that this list is stagnant.
 Almost 10,000 members and an average of 100 messages a day. Are you saying
 that these stats have been the same for the past 6 months? And even if that
 is true (although I'd like to see numbers before I accept that) then I don't
 even necessarily think that this indicates that there's a problem. There's a
 simple fact that a ton of questions have already been accurately answered by
 this list. I would hope that the archived knowledge of the list serves to
 answer more and more questions that newcomers have, meaning they don't need
 to post the questions over and over.

 What is the real problem? I haven't heard anyone say that the traffic on
 this single list has stopped them from asking any questions (although I'm
 open to the possibility that this is true, and just hasn't been voiced). And
 largely I think that the number of people answering questions has remained
 high and the response times are still good. I have heard that the traffic
 level has stopped people from reading the questions that others ask (I
 certainly skim and sometimes skip entire

Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Doug McCune
Out of morbid curiosity, am I the only one who has multiple email
lists all being filtered into the same mega-list? I have flexcoders,
flexcomponents, apollocoders, papervision, degrafa, flexlib, and
flexjobs all dropped into a mondo folder in gmail. I color code each
list accordingly so I can at a glance see which list a message is
from, but typically I read them all in the master list. Nobody else
does this? Somehow I can stay on top  of it all, although I'm sure you
could argue that at times it's certainly not helping my productivity
:)

Doug

On Tue, Jun 17, 2008 at 9:17 PM, Bjorn Schultheiss
[EMAIL PROTECTED] wrote:
 cool.

 This discussion needs some resolving though.

 I'm all for the creation of another 15 lists.
 With all the cross-posting, subject-meta, gmail, stats,
 my-left-arm-is-longer-than-my-right arguments, my vote is still with
 the split.

 best-practices, architecture, components, unit-testing, deployment,
 flash-flex, remote services, java-flex architectures, design ux,
 announcements, etc..

 lets do it.

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

 I think of Best Practices and Architecture/Concepts as separate but
 overlapping categories so I guess that's why I thought no one else
 brought
 it up.

 On Tue, Jun 17, 2008 at 11:57 PM, Bjorn Schultheiss 
 [EMAIL PROTECTED] wrote:

   Also, to Bjorn, that's a point I hadn't thought of. The idea of
  having an
   arch/concepts list might be interesting. The two questions I
 would have
   would be: 1) would the questions on this list have any connection to
  Flex
 
  Anatole mentioned it earlier in a 'Best Practices' list.
 
  For example at MAX thy had that Best Practices panel and some
  interesting topics were brought up and discussed.
 
  From my point of view I'm always learning.
  It would be an interesting read for me.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Daniel
  Freiman FreimanCQ@ wrote:
  
   I agree that a FAQ seems like a good idea no matter what. Is anyone
  against
   this idea independent of the argument of whether or not to split the
  list?
  
   As far as splitting lists, I still think if people want to propose
  potential
   new lists, they need to be much more explicit about what the list
  will be
   for. I'll take the enterprise example. Let's assume for a second
  it has
   only one correct meaning (which is an assumption I agree with,
 but many
   people disagree with me on that). Enterprise has become a
  buzzword with
   many different commonly understood meanings, and most of those
  meanings are
   vague. There's no way for everyone on the list to be sure that we're
   talking about the same thing unless someone explicitly spells out
  what we
   are talking about (I'm not going to because I'm against having a
   enterprise list given every way I know to interpret the word).
  And if we
   don't have a common understanding of the proposal we can't
 efficiently
   criticize/support/amend the proposal. I'm not saying there has to
  be a fine
   line separating the lists, but it should at least be a fuzzy line.
  
   Also, to Bjorn, that's a point I hadn't thought of. The idea of
  having an
   arch/concepts list might be interesting. The two questions I
 would have
   would be: 1) would the questions on this list have any connection to
  Flex
   other than the fact that the users code in Flex (I think it probably
  would)
   or would it just be piggybacking on the user base; 2) Will it avoid
   stratification of the user base (i.e. will it be practically
  accessible to
   users of all skill levels)?
  
   Lastly, I'm going to reiterate my opinion that we shouldn't
 separate the
   lists based on skill/level difficulty. The distinction is too fuzzy
  (Too
   much cross-posting and too much posting to the wrong list).
  Sometimes you
   don't know if you're question is advanced or not until you get the
  answer.
   I've had a few times where I've asked what I thought was a simple
  question
   and the response from Gordon was I talked to a guy on the player
  team...
   If a question has a one line answer it can't be complex...unless
 the one
   line required going through the player or compiler code to
 understand it
   (sorry for the overstatement).
  
   - Daniel Freiman
  
   On Tue, Jun 17, 2008 at 10:31 PM, Douglas Knudsen douglasknudsen@
 
   wrote:
  
Having been on this list since 2004, yeah back when the Iteration
folks were not Adobe Robe Wearers yet, I've seen this
 discussion come
up a few times. I've asked for a associated FAQ a few times, but
there was no interest from the Iteration folks on this or
 splitting up
things, no offense Alistair or Stephen you more than rocked with
helping this community. I'd certainly agree to a good FAQ be made
available and sent to the list monthly for all to be reminded
 and have
it linked at the footer.
   
Bjorn has a good point later in this thread about the 

Re: [flexcoders] Re: OOP and Work for Hire

2008-06-12 Thread Doug McCune
I'm bowing out of this discussion. Things have gotten far too polarized and
nit-picky.

However, I still feel it is worthwhile to at least chime in one more time
because I think some of the points raised here leave developers with wrong
and dangerous information. The overall opinion that you don't need to worry
about re-using your source code from other clients' projects is simply
false, and has the potential to get you into a lot of legal trouble. If you
find yourself copying code from work you did for a previous client, please
please go back and re-read the contract you signed, and be sure that you
properly understand what you're doing and the legal implications. When it
comes to these issues it is always better to err on the side of caution.
I'll stop giving my opinion on what's right or wrong, and just say that as a
developer, you need to have a thorough understanding of IP law before you go
down that road, so read up and please don't rely on mailing lists for legal
advice :)

Doug

On Thu, Jun 12, 2008 at 5:44 AM, b_alen [EMAIL PROTECTED] wrote:

   You can use it again definitely otherwise no one here would be allowed
 to do even a sorting algorithm ever again. Come on, some guys even
 went so far that every single digital line of code is client's. So
 even the mx:Button / I can't implement ever again, because it
 belongs to the customer.

  Algorithm, you can probably use it again. It depends how obvious or
  unique it is. In theory, algorithms / approaches to solving problems
  are not patentable. In reality such algorithms may be patentable or
  considered trade secrets.

 Depends, but usually there are changes for the better in each iteration.

  Even if you sit down to implement the algorithm a second time, I
 bet it
  will come out quite different than what you did the first tie.

  



Re: [flexcoders] Re: Any best-practice for labelField=field.innerField on things like DataGridC

2008-06-11 Thread Doug McCune
I've done something like this before, where fullField is the String
representation of the field (like field1.field2.field3) and item is the
top-level data object:

var split:Array = fullField.split(.);

var valueObj:Object = item;
for(var i:int=0; isplit.length; i++) {
valueObj = valueObj[split[i]];
}


On Tue, Jun 10, 2008 at 9:30 PM, Alex Harui [EMAIL PROTECTED] wrote:

There's a DeepDataGridColumn example on my blog that can do simple
 field.subfield


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *ben.clinkinbeard
 *Sent:* Tuesday, June 10, 2008 7:50 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Any best-practice for
 labelField=field.innerField on things like DataGridC



 I don't think you can do field.subField but you could use
 labelFunctions to accomplish essentially the same thing. Heck, you
 might even be able to set dataField = field.subField and then use a
 generic labelFunction that does something like return
 data[column.dataField]. Just a guess on that part but labelFunction is
 definitely the core of what you'll need.

 HTH,
 Ben

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh
 McDonald [EMAIL PROTECTED] wrote:
 
  Hey guys,
  Is there a well-used trick to reference field.subField rather than
 just
  field when setting up datagrid columns? I'd rather not have to
 flatten my
  DTOs or add a bunch of redundant get functions if possible - the DTO is
  bindable and the fields are just public vars.
 
  Cheers,
  -Josh
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
 

  



Re: [flexcoders] Conditional Statement Problem

2008-06-11 Thread Doug McCune
or just do:

f ( disabledDates[a] == stayLength[i] ) {
Alert.show(Date Overbooked!, Sorry, Alert.OK);}
break;
}

Doug

On Wed, Jun 11, 2008 at 9:55 AM, Michael Schmalle [EMAIL PROTECTED]
wrote:

   Hi,

 This might help;

 var i:int = 0;
 var overbooked:Boolean = false;


 while ( startDate = endDate ){

 for (var a:int = 0; a = disabledDates.length; a++) {

 stayLength[i] = year.toString() + , + month.toString() + , +
 startDate.toString();

 if ( disabledDates[a] == stayLength[i] ) {
 overbooked = true;
 }

 i++;
 startDate++;

 }

 if (overbooked)
 {
 Alert.show(Date Overbooked!, Sorry, Alert.OK);
 }

 Mike

 On Wed, Jun 11, 2008 at 12:24 PM, tspyro2002 [EMAIL PROTECTED]
 wrote:

   Hi,

 I have a problem where I am processing dates and cross checking them
 across two Arrays. One array holds user selected dates, the other
 holds dates which are disabled.

 The loop I have at the minute checks them OK but outputs an Alert box
 for every date which is the same.

 How can I adjust the code so that only one alert box is displayed?

 CODE SEGMENT

 var i:int = 0;

 while ( startDate = endDate ){

 for (var a:int = 0; a = disabledDates.length; a++) {

 stayLength[i] = year.toString() + , + month.toString() + , +
 startDate.toString();

 if ( disabledDates[a] == stayLength[i] ) {

 Alert.show(Date Overbooked!, Sorry, Alert.OK);}

 }

 i++;
 startDate++;

 }




 --
 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: OOP and Work for Hire

2008-06-11 Thread Doug McCune
Typed code is what you are paid to deliver. That is what the client is
buying. When the client pays you you are selling those digital lines of
code.

I just wrote a book for wiley. I cannot copy and paste any of the prose that
I wrote and post it on my blog. It belongs to wiley. I sold it to them (for
almost nothing, but that's beside the point). Yes, I can take the knowledge
I gained while writing that book and write completely new tutorials that I
post on my blog (although a non-compete prohibits me from writing a
competitive book). But the instant I copy and paste something I am breaking
the legal contract that I signed.

The original question was about taking the exact code that was created for
one client and using it in another project (either for a client or as open
source code for the community). I don't think there's much of a legal gray
area here. Yes, everyone agrees that the knowledge and techniques that you
gain while writing code are yours and can often be used in other projects.
But that is not at all the same as saying it's ok to copy a class or chunks
of code verbatim.

Doug

On Wed, Jun 11, 2008 at 10:48 AM, b_alen [EMAIL PROTECTED] wrote:

   That's exactly what I was saying from the beginning. Typing code is
 not programming, as some on this thread think. Using your experience
 and knowledge to solve problems is programming. And nobody can take
 away that. I can delete all the code I have and I'll make even better
 in no time, once I cracked the problems and figured out the best
 architecture for certain business needs.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Kerry
 Thompson [EMAIL PROTECTED] wrote:
 
  Jeffry Houser wrote:
 
   It really depends on what that knowledge is.
 
  That's really key. Let me give you a real-world example involving code,
  rather than hardwood floors and toothbrushes ;-)
 
  I've specialized in localization and internationalization for 15-20
 years.
  I'm bilingual, so that helps--that's a pre-existing skill I bring to
 every
  job, and no contract is ever going to take that away from me.
 
  About 10-15 years ago, in the Windows 3.1 days, I wrote a library,
 in C, to
  display Chinese characters on English Windows 3.1. It was breakthrough
  technology back then, and Sony paid me well for it. There is no way
 I could
  ethically or legally use that code again (it's a moot point now, of
 course).
 
  Last year I had a Director project in 8 languages, including 4 Asian
  languages. The current version of Director then, MX 2004, didn't support
  Unicode, and had no way to display Chinese. So I did what a genius
 friend of
  mine, Mark Jonkman, did--I used a Flash sprite to display the CCJK text.
 
  I can't legally or ethically re-use that same code. But I can darn
 sure use
  Flash to display Unicode text within a Director movie. It might soon
 be a
  moot point also, since Director 11 supports Unicode, and Director 12
 might
  be usable, but the point is that I'm using a known, pre-existing
 technique.
  Sure, I refined and polished it, and I'll take that skill and
 knowledge with
  me to the next gig. Just not the code. Snippets, maybe, but not the
 whole
  shebang.
 
  Cordially,
 
  Kerry Thompson
 

  



Re: [flexcoders] Re: OOP and Work for Hire

2008-06-11 Thread Doug McCune
The company that you worked for has the right to patent the implementation
of that great algorithm that you came up with. So if that's really an
inventive algorithm then yeah, they have the right to use it and you do
not. In the real world is this how things play out? often no, but I'm just
trying to explain my (non-professional) understanding of intellectual
property law.

Doug

On Wed, Jun 11, 2008 at 11:55 AM, b_alen [EMAIL PROTECTED] wrote:

   So if I create a great algorithm for collision detection while working
 for a client I can not use it ever again? And if I have to make it for
 10 different clients in a year, I have to create 10 completely
 different solutions for the same problem, so I don't copy. First of
 all that's impossible. Second, if I do use the same knowledge and
 techniques like you said, then the code is of secondary importance
 anyway. I can heavily refactor the code and change all the variable
 names but the heart of the algorithm will stay the same.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Doug
 McCune [EMAIL PROTECTED] wrote:
 
  Typed code is what you are paid to deliver. That is what the client is
  buying. When the client pays you you are selling those digital lines of
  code.
 
  I just wrote a book for wiley. I cannot copy and paste any of the
 prose that
  I wrote and post it on my blog. It belongs to wiley. I sold it to
 them (for
  almost nothing, but that's beside the point). Yes, I can take the
 knowledge
  I gained while writing that book and write completely new tutorials
 that I
  post on my blog (although a non-compete prohibits me from writing a
  competitive book). But the instant I copy and paste something I am
 breaking
  the legal contract that I signed.
 
  The original question was about taking the exact code that was
 created for
  one client and using it in another project (either for a client or
 as open
  source code for the community). I don't think there's much of a
 legal gray
  area here. Yes, everyone agrees that the knowledge and techniques
 that you
  gain while writing code are yours and can often be used in other
 projects.
  But that is not at all the same as saying it's ok to copy a class or
 chunks
  of code verbatim.
 
  Doug
 
  On Wed, Jun 11, 2008 at 10:48 AM, b_alen [EMAIL PROTECTED] wrote:
 
   That's exactly what I was saying from the beginning. Typing code is
   not programming, as some on this thread think. Using your experience
   and knowledge to solve problems is programming. And nobody can take
   away that. I can delete all the code I have and I'll make even better
   in no time, once I cracked the problems and figured out the best
   architecture for certain business needs.
  
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,

 Kerry
   Thompson alpha@ wrote:
   
Jeffry Houser wrote:
   
 It really depends on what that knowledge is.
   
That's really key. Let me give you a real-world example
 involving code,
rather than hardwood floors and toothbrushes ;-)
   
I've specialized in localization and internationalization for 15-20
   years.
I'm bilingual, so that helps--that's a pre-existing skill I bring to
   every
job, and no contract is ever going to take that away from me.
   
About 10-15 years ago, in the Windows 3.1 days, I wrote a library,
   in C, to
display Chinese characters on English Windows 3.1. It was
 breakthrough
technology back then, and Sony paid me well for it. There is no way
   I could
ethically or legally use that code again (it's a moot point now, of
   course).
   
Last year I had a Director project in 8 languages, including 4 Asian
languages. The current version of Director then, MX 2004, didn't
 support
Unicode, and had no way to display Chinese. So I did what a genius
   friend of
mine, Mark Jonkman, did--I used a Flash sprite to display the
 CCJK text.
   
I can't legally or ethically re-use that same code. But I can darn
   sure use
Flash to display Unicode text within a Director movie. It might soon
   be a
moot point also, since Director 11 supports Unicode, and Director 12
   might
be usable, but the point is that I'm using a known, pre-existing
   technique.
Sure, I refined and polished it, and I'll take that skill and
   knowledge with
me to the next gig. Just not the code. Snippets, maybe, but not the
   whole
shebang.
   
Cordially,
   
Kerry Thompson
   
  
  
  
 

  



Re: [flexcoders] Re: OOP and Work for Hire

2008-06-11 Thread Doug McCune
What if you spin it as a PR opportunity for the company, and ask to be able
to use the code you write as the basis for explanatory tutorials, without
giving away any company-specific trade secrets, and give credit to the
company for contributing the code? Could be a win-win for everyone involved.
You get to blaze the path for other eLearning developers, the client company
gets to be seen as open and contributing back to the community, they get
their name out in the blogopshere a bit with a positive spin.

But get that in writing, otherwise I'd say you'll have to do the project,
then write whatever tutorials you want to do from scratch. Depends on the
company of course and how willing they'd be to do something like that, most
large companies I've dealt with are simply too beuracratic to ever deviate
from the standard agreements the lawyers drafted up. It often doesn't matter
what your argument is, the lawyers wrote an agreement and that's the only
one they'll ever get you to sign.

Doug


On Wed, Jun 11, 2008 at 3:02 PM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 [EMAIL PROTECTED] wrote:
 
  Amy - that would be a breach of confidentiality in the legal and
 business world. You can not share information like that when a
 company is paying you to develop/code that information, unless it is
 specifically called out in any agreements. I suspect that the company
 looking to hire you for this project is also looking to obtain a
 competitive advantage, soyour sharing of information outside of
 the employing company would be counter to their desired end game

 eLearning isn't usually about competitive advantages. I suspect that
 the whole work for hire thing is because they also _do_ have some
 business critical code that they contract out. But in general the
 only reason businesses care _how_ eLearning is coded is based on how
 that affects code.

 The eLearning community, however, is waiting with bated breath for
 Flex example code that will allow people to get their heads around
 how, for instance, they can present pages of data driven content with
 a coherent navigational structure. It's been almost a year since
 Authorware's EOD was announced, and people need something else they
 can do to with this type of content. And if I retain the freedom to
 post generic code that doesn't reveal the specific business practices
 of the client, I'm in a better position to help people move forward.

 The ideal would be for Adobe to step forward and provide some example
 code or assist community leaders in doing so, but so far we've gotten
 loads of lip service from various parties but no actual help. So the
 ownership of the code isn't so much an issue for me personally, but
 more for the eLearning community that would like to use this tool but
 so far has been stymied by lack of a clearly documented path on how
 to do so.

 -Amy

  



Re: [flexcoders] Re: OOP and Work for Hire

2008-06-10 Thread Doug McCune
The company is buying the code that you write. They are not buying your
time. They might pay you based on how long it takes you to write the code,
but in the end all they care about is owning that code. If they pay you
$10,000 to write code, and then you turn around to another company and bid
on a similar project for $500 because you already wrote the code and you
just use the same codebase, they're going to be rightly upset. Anything you
store in your head is yours (lessons learned, techniques used, etc). But
anything you write is theirs. That's just the way this world works.

I'm surprised at the previous response about not giving ownership of the
code but instead only signing a non-compete. That's a pretty sweet deal if
you can swing it, but I'd be really surprised if you found a large company
that would go for that. For consulting projects I know that we sometimes ask
for the IP of certain portions of code (ie things not specific to the
project or general utility classes), but every time we do, we explicitly ask
for exactly what IP we want to hold onto (and every time it is a huge legal
hurdle). Whatever you do, be completely up-front from the beginning about
what, if any, pieces of what you're writing is not the client's exclusive
IP.

Also be sure that you have an understanding about any open source code that
you are using in a client's project. Sometimes clients can be very adamant
about not allowing open source code of any kind, since they don't own the
exclusive rights to that. But they often change their mind after you tell
them how much money they will save if you don't have to reinvent what the
open source community has already done. But it's important that you and the
client have the same clear understanding about all this stuff.

Doug

On Tue, Jun 10, 2008 at 2:58 PM, wesley.petrowski [EMAIL PROTECTED]
wrote:

   I imagine this is the norm, unless there is something different with
 Flex-specific shops. I think the general idea is they don't want to
 pay people to write code, only to have them quit and take the stuff
 they wrote to a competitor. You can still reuse your code, as long as
 you do it for the same company. :)


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy
 [EMAIL PROTECTED] wrote:
 
  I was recently asked to sign an agreement that would designate a Flex
  project as Work for Hire. I.e. I would not retain any ownership of
  the code I wrote for the project. This seems to defeat the purpose
 of
  OOP, if I create a whole body of code that I can't then reuse. How
 do
  most Flex developers handle the idea of Work for Hire?
 
  Thanks;
 
  Amy
 

  



Re: [flexcoders] Re: SWC Encrypt 2.0 - Does it work?

2008-06-04 Thread Doug McCune
Just to clarify, Andrew is in fact talking about encryption, not
obfuscation. The NitroLM product (which I have not used) actually does raw
byte encryption on your swf, which then gets loaded by a wrapper swf and
decrypted at runtime based on a secret key that gets sent over a secure
connection after valid credentials are passed to the server. You would have
to be able to crack the swf encryption before a decompiler would even be
able to give you any decompiled code.

Doug

On Wed, Jun 4, 2008 at 1:35 PM, Joseph Balderson [EMAIL PROTECTED] wrote:

   I meant to say ...and the code is completely _un_intelligible...

 __

 Joseph Balderson | http://joeflash.ca
 Flex  Flash Platform Developer | Abobe Certified Developer  Trainer
 Author, Professional Flex 3 (coming Winter 2008)
 Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674

 Joseph Balderson wrote:
  What you both just described is obfuscation, not encryption. And there
  are varying levels of obfuscation. The barest level is replacing all
  props with _loc_1, whcih is child's play. I think what Andrew is
  referring to is strong obfuscation, that will replace vars with a
  meaningless string of characters which include illegal characters. The
  SWF will still play fine, but the moment you try and decompile into
  classes and recompile, you get a zillion compiler errors from all the
  illegal characters, and the code is completely intelligible, cause all
  custom class members have been replaced by goobledygook. That is what I
  call strong obfuscation.
 
  True SWF encryption is only possible with code injection decrypted at
  runtime, using either encrypted data or preferably over a secure
  streaming connection (RTMPE or the like) as far as I know, though I've
  never actually seen anyone go to the trouble.
 
 
  __
 
  Joseph Balderson | http://joeflash.ca
  Flex  Flash Platform Developer | Abobe Certified Developer  Trainer
  Author, Professional Flex 3 (coming Winter 2008)
  Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674
 
 
 
  Sherif Abdou wrote:
  The local variable get changed to _loc_1, so your best best is to write
  some sort of script that changes the public/private variables to
  something like
  __var_1, and make sure u increment by 1. you can do the same for
  functions function __test__1();. I dont think encryption will matter
  unless some crazy person wants to decipher what all they mean.
 
  - Original Message 
  From: andrewwestberg [EMAIL PROTECTED]andrewwestberg%40gmail.com
 
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Sent: Tuesday, June 3, 2008 4:54:14 PM
  Subject: [flexcoders] Re: SWC Encrypt 2.0 - Does it work?
 
   - We ran SWCEncrypt on a Flex SWC and then tried decompiling a
  Flex app
   created with the encrypted SWC versus the unencrypted SWC. I
  could not tell
   any difference whatsoever. Both decompiled just fine, it appeared
  as if
   SWCEncrypt did absolutely nothing to the SWC file. I don't know
  if we were
   doing soemthing wrong (although really how can you? you just run
  it on a
   SWC), or if the encryptor doesn't support Flex SWCs specifically.
 
  I tested SWC encrypt on my flex swc today and I can also verify that
  it didn't do a darn thing to the code as viewed through Sothink's
  decompiler. (disclaimer: I consult for a company that does SWF and
  Flex/AIR module encryption that could be considered a competitor of
  these guys. Just checkin out the competition ;) )
 
  -Andrew
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links
 
 
 
 
  



Re: [flexcoders] Accordion, How to show it vertically like xx|yy|zz

2008-06-03 Thread Doug McCune
oh hai! Did u check out flexlib??

http://code.google.com/p/flexlib/
http://flexlib.googlecode.com/svn/trunk/examples/HAccordion/HAccordion_Sample.swf

zomgz! u can haz HAccordion!

kthnxbye,
Doug

On Tue, Jun 3, 2008 at 10:03 AM, Tracy Spratt [EMAIL PROTECTED] wrote:

Someone has created one of these already.  Google for it.  horizontal
 accordion maybe.

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Manu Dhanda
 *Sent:* Tuesday, June 03, 2008 12:50 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Accordion, How to show it vertically like xx|yy|zz




 Hii Guyz,

 How can I have an accordion that will display the bars vertically as in
 xx|yy|zz...

 which property do I need to set in or where can I find the resources for
 that??

 Thanks,
 Manu.
 --
 View this message in context:
 http://www.nabble.com/Accordion%2C-How-to-show-it-vertically-like-xx%7Cyy%7Czz-tp17628206p17628206.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  



Re: [flexcoders] Re: SWC Encrypt 2.0 - Does it work?

2008-06-03 Thread Doug McCune
That last comment isn't true. The Sothink decompiler works just fine on Flex
swfs.

Here's my experience with SWF Encrypt and SWC Encrypt:

   - We ran SWCEncrypt on a Flex SWC and then tried decompiling a Flex app
   created with the encrypted SWC versus the unencrypted SWC. I could not tell
   any difference whatsoever. Both decompiled just fine, it appeared as if
   SWCEncrypt did absolutely nothing to the SWC file. I don't know if we were
   doing soemthing wrong (although really how can you? you just run it on a
   SWC), or if the encryptor doesn't support Flex SWCs specifically.
   - SWFEncrypt, on the other hand, works. But it does not work for Flex
   swfs. If you try to encrypt a full Flex SWF the encryptor goes overboard and
   jacks up the Flex framework code and makes your SWF unrunnable.
   - What did seem to work was creating a SWF module that did not include
   the Flex framework code, encrypting that, and loading that module into a
   wrapper Flex app.
   - Neither SWCEncrypt nor SWFEncrypt seems to actually encrypt anything,
   All of it can still be decompiled with the Sothink decompiler (maybe the
   decompiler just knows how to decrypt whatever encryption is used).
   SWFEncrypt does seem to obfuscate the code though. A decompiled SWF that has
   been run through SWFEncrypt is harder to read than a non-obfuscated one.


On Tue, Jun 3, 2008 at 11:49 AM, Cato Paus [EMAIL PROTECTED] wrote:

   right now the Flex framework is too much to decode. decoders only
 hang that I know of


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom
 Chiverton [EMAIL PROTECTED]
 wrote:
 
  On Monday 02 Jun 2008, jmfillman wrote:
   Has anyone had experience using SWC Encrypt 2.0, by Amayeta? Does
 it
   work, or would I just be wasting my money?
 
  Have you tried decompiling a swfencrypt'ed SWF ?
 
  --
  Tom Chiverton
 
  
 
  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.
 

  



Re: [flexcoders] Casting Problem.. Type Coercion Failed

2008-06-01 Thread Doug McCune
ALL_USERS isn't a collection of UserVO objects it seems. Looks like it's a
collection of generic Objects. How did you create the collection? Did you
use AMF? Did you load from XML? Somehow the objects that got created did not
get created as the proper UserVO objects. So check the collection when it
gets set, it's not getting set right. If you're using AMF then you might
need to include a reference to the UserVO class so the compiler knows to
include it, otherwise it won't get deserialized right. If you're using some
other method (like loading XML, etc) then make sure in the parsing of the
data that you are explicitly creating UserVO objects.

Doug

On Sun, Jun 1, 2008 at 6:35 AM, Manu Dhanda [EMAIL PROTECTED]
wrote:


 Hii

 am writing a simple application where for logging in, am checking the
 values
 against the value objects contained in an ArrayCollection.

 While

 if((evt.userVO.email == ModelLocator.ALL_USERS[i].email)  (evt.userVO.pwd
 == ModelLocator.ALL_USERS[i].pwd))

 returns true, then why it throws this Type coercion error at this following
 line:

 model.currentUser = ModelLocator.ALL_USERS[i];
 //UserVO(ModelLocator.ALL_USERS[i]);

 currentUser is type UserVO and ALL_USERS is a collection of UserVO objects.

 I had tried by explicitely casting the above line(as commented), but still
 the same.

 Here is the error, I received while debugging:

 Explicit casting:-

 TypeError: Error #1034: Type Coercion failed: cannot convert
 [EMAIL PROTECTED]
 to com.live.flats.vo.UserVO.
 at

 com.live.flats.commands::LoginInfoCommand/execute()[F:\xampp\htdocs\flats\flex_src\com\live\flats\commands\LoginInfoCommand.as:60]
 at

 com.adobe.cairngorm.control::FrontController/executeCommand()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\FrontController.as:215]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at

 com.adobe.cairngorm.control::CairngormEventDispatcher/dispatchEvent()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEventDispatcher.as:113]
 at

 com.adobe.cairngorm.control::CairngormEvent/dispatch()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEvent.as:77]
 at

 com.live.flats.view::LoginPanelBar/loginUser()[F:\xampp\htdocs\flats\flex_src\com\live\flats\view\LoginPanelBar.mxml:29]
 at

 com.live.flats.view::LoginPanelBar/__loginButton_click()[F:\xampp\htdocs\flats\flex_src\com\live\flats\view\LoginPanelBar.mxml:74]

 Implicit Casting:-

 TypeError: Error #1034: Type Coercion failed: cannot convert
 [EMAIL PROTECTED]
 to com.live.flats.vo.UserVO.
 at

 com.live.flats.commands::LoginInfoCommand/execute()[F:\xampp\htdocs\flats\flex_src\com\live\flats\commands\LoginInfoCommand.as:60]
 at

 com.adobe.cairngorm.control::FrontController/executeCommand()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\FrontController.as:215]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at

 com.adobe.cairngorm.control::CairngormEventDispatcher/dispatchEvent()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEventDispatcher.as:113]
 at

 com.adobe.cairngorm.control::CairngormEvent/dispatch()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEvent.as:77]
 at

 com.live.flats.view::LoginPanelBar/loginUser()[F:\xampp\htdocs\flats\flex_src\com\live\flats\view\LoginPanelBar.mxml:29]
 at

 com.live.flats.view::LoginPanelBar/__loginButton_click()[F:\xampp\htdocs\flats\flex_src\com\live\flats\view\LoginPanelBar.mxml:74]

 Any help would be great.
 Thanks.

 --
 View this message in context:
 http://www.nabble.com/Casting-Problem..-Type-Coercion-Failed-tp17585702p17585702.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  



Re: [flexcoders] Performance issues while creating several instances of DisplayObject at the same

2008-05-30 Thread Doug McCune
A few suggestions:

   - don't set explicitWidth in updateDisplayList, use setActualSize()
   - like Alex said, Container does extra processing, so use UIComponent as
   the base of both ParentView and ChildView. SInce you are managing the layout
   of the children manually and you don't require scrolling or clipping these
   componentns you don't need to overhead of Canvas
   - take out the updateDisplayList method of ChildLayoutContainer. Instead,
   use the built in layout stuff in VBox by setting the percentWidth property
   of the chioldren when you add them. Your method adds an additional
   uneccessary loop over all the children.
   - use UITextField instead of Label if appropriate. THe UITextField class
   is a bit faster when it comes to measurement and layout. Label adds the
   ability for the text to be truncated with ..., but that's about all you get.
   So if either you a) don't care if the text has ... or is simply cut off or
   b) the text doesn't need truncation (like for your numbers) then use
   UITextFiled instaed of Label
   - No need for the call to invalidateDipslayList in addChildView method in
   ParentView. This probably doesn't add much to the total time, but it's an
   uneeded call (adding a child automatically invalidates)

With some modifications I got your sample running in under 300 milliseconds.
If I converted to UITextField objects that got down to under 200
milliseconds (using UITextField and the textWidth property for measurement).

Doug
On Fri, May 30, 2008 at 10:21 AM, Alex Harui [EMAIL PROTECTED] wrote:

Containers are heavy.  They measure their children, think about
 clipping and scrollbars, compute the size and position of children, think
 about borders, background colors and more.  If you aren't using 80% of those
 features, then you shouldn't be using a container.



 A UIComponent can be easily subclassed to position its children
 vertically.and won't spend time thinking about those other things.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *christian.menzinger
 *Sent:* Friday, May 30, 2008 9:04 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Performance issues while creating several
 instances of DisplayObject at the same



 Hi there,

 while experimenting with Containers and UIComponents I received very
 strange results. Is it possible that the instantiation and rendering
 of about 150 DisplayObjects can take up to 3 seconds of processing time?

 I have a very light weight application attached where 20 views
 (containing a Label and a VBox) and in average 4 child views
 (containing 2 Labels next to each other) are instantiated and rendered
 at the same time.

 The rendering of 1000 native FlashObjects like TextField in a pure
 AS-Project takes about 95ms(!) to update the display!

 The performance differs extremely if you don't set any width on the
 parentViews.

 Could you please check if I have overseen something or used bad code?
 It would be great to get a hint how to increase the overall
 performance. I need a solution which increases rendering performance
 as much as possible and allows me to use text truncation and dynamic
 setting of widths.

 Thanks a lot in advance for everything that could lead me into the
 right direction.

 view sample Application (could download source by right clicking)

 http://www.metadudes.com/samples/flex/performance_issue/LightWeightChildCreation.html

 BR,
 Chris

  



Re: [flexcoders] Trial Flex Builder 3 has expired

2008-05-28 Thread Doug McCune
ha! I love it. You brought a smile to my face this morning. Thanks Rick.
I've often thought of making little lolcat images to reply to many of the
messages on this list. Oh noes!!1 The trial iz expire! Help plz. kthnxbye


On Wed, May 28, 2008 at 5:25 AM, Rick Winscot [EMAIL PROTECTED]
wrote:

This message is to buy softwares. Pay Adobe for their hard works please
 for to remove this message.



 Rick Winscot





 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *txakin
 *Sent:* Wednesday, May 28, 2008 4:49 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Trial Flex Builder 3 has expired



 Hi all.

 Since 1 week i have one problem with my Eclipse

 In my computer Windows XP i have installed the next programs :

- *Eclipse 3.3.0 *
- *MyEclipse 6.0 plug-in*

 One week ago my Flex Builder Trial Version was expired, then i decided to
 download new one form the Adobe web. Then i uninstalled the old version and
 installed the new one

- *Flex Builder 3.0 Trial Version (build 3.0.194161)*

 Right now i can open my eclipsebut i can not use anything from
 flexall the time i get the same problem : *Trial Flex Builder 3 has
 expired*

 All my colleges has made the same stepsand they can run the Flex
 Builder success.i´m the stupid one or the unlucky one? Pleasecan
 someone tell me why i can have this kind of problem?

 Thanks in advance.

   



Re: [flexcoders] 5,000 record dataset needs love

2008-05-21 Thread Doug McCune
Figure out where the real bottleneck is. I just did a demo app that loads
over 35,000 records from an uncompressed CSV file (over 2 meg). It's all
doable, you just have to figure out which part is slow. You basically have
these possibilities in terms of what's taking the most time:

   1. Loading
   2. Parsing
   3. Rendering

If the time is spent loading the file then simply compressing the file and
sending the compressed version across the wire might help. Using a binary
protocol like AMF will get you the best transfer speed though. I actually
like CSV files because they're small and easy to export from Excel.

If parsing the data is taking a long time then examine what you are doing as
you parse the data. Moving away from JSON will likely save time, since JSON
has to be decoded and processed even before your own processing happens. I'd
guess that XML would be faster than JSON, although I don't know that. If you
use AMF then you mostly get this step for free, since AMF decodes as native
AS3 objects (although that takes time, but it's fast). Assuming you're doing
the conversion to your VOs manually, a few tips:

   - the big thing here is make sure that your VOs do not use databinding.
   If your VOs are Bindable objects or have bindable properties you will want
   to remove those and control the binding manually. You can still have
   bindable properties, but you should control the bindings yourself.
   - Do not parse the records into an ArrayCollection. Parse them into an
   Array. If you use addItem() of an ArrayCollection then the collection
   dispatches an event every time you add an item. Instead, parse into a simple
   Array, and if you want to use an ArrayCollection in your app then create
   your AC after the parsing and set the source of the collection.
   - Do the parsing in batches. If you can split up the parsing then you can
   keep your app UI from locking up. I usually parse around 500 records at a
   time This won't speed up the processing (in fact, it will add to the total
   time a tiny bit), but this lets you show progress as your are parsing. I
   have my parsers dispatching progress events as they process batches and I
   show that progress in a progress bar.

And if the most proessing time is spent after you have your data loaded and
parsed then figure out what you're doing to render that data. Try to show
less items, or group the items, or something. I assume you don't need to
create 5,000 renderers all at once. Use the list controls to take advantage
of item renderers, etc.

In my example app that loads 35,000 records the loading of the 2 meg file
takes about 10 seconds. Looping over all the records and turning them into
AS3 value objects takes about 2-3 seconds. Then post-processing those
records to group them takes about 10 seconds (this loops over the entire
dataset and does some aggregation calculations). So all in all that takes
almost 30 seconds, but it's 35 thousand frickin records and during the
entire process the app is responsive and progress is shown for each step.

Doug

On Wed, May 21, 2008 at 12:51 PM, Battershall, Jeff 
[EMAIL PROTECTED] wrote:

Is there a reason why the entire dataset is needed all at once?  Some
 sort of pagination scheme would help.

 Jeff

  -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Tracy Spratt
 *Sent:* Wednesday, May 21, 2008 3:40 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] 5,000 record dataset needs love

  Are you certain the bottleneck is the processing as opposed to the
 rendering?

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Tom Longson
 *Sent:* Tuesday, May 20, 2008 10:53 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] 5,000 record dataset needs love



 Dear Super Smart Flex Developer Mailing List,

 We are currently having major issues processing a dataset that is
 essential for our skunkworks web site. The dataset is stored as JSON,
 consists of 5000 records, and has numerous strings. It is 1.4mb
 uncompressed / 85kb compressed. Processing the data, which involves
 creating a custom object to hold it, currently takes a much as 60 seconds.

 We are in the process of attacking this beast to make it run faster,
 and we are considering the following approaches:

 1. Create an index for repetitive strings within the dataset to avoid
 repetitive strings because integer assignment is faster than string
 assignment (we assume).
 2. Try substituting XML for JSON (no idea if this would be faster or not).
 3. Attempt to deliver an actionscript binary blob to the application
 from PHP (not even sure if that's possible... ASON?).
 4. Create a compiled swf with our data postprocessed and attempt to
 access it (again, not sure if that's possible).
 5. insert your solution here

 Your expert, snarky, helpful advice is much appreciated,
 Tom

   



Re: [flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Doug McCune
:) I've thoroughly enjoyed this thread so far...

Doug

On Thu, May 8, 2008 at 10:20 PM, Josh McDonald [EMAIL PROTECTED] wrote:

   Apologies to the list, I meant to address that off-list!

 -J


 On Fri, May 9, 2008 at 3:20 PM, Josh McDonald [EMAIL PROTECTED] wrote:

 Say what?

 The only point I was trying to make was that I already know about SQL and
 such. And the reason I can't just switch to Flex 3 to do some profiling is
 bugs Adobe introduced into SOAPEncoder with 2.01 HF2. When I get time, I'll
 try and fix them, but I haven't got enough time and I've only managed to fix
 one so far.

 I wasn't trying to be a big man saying the swf was large, I was just after
 some info about whether or not I needed to worry. If the answer is simply
 no, why be a dick?

 I don't know anything about 3 x 5 cards (I'm not the Thoughtworks type),
 and I don't give a shit who lives here. If there's some sort of training
 going on around here for people who're already fairly familiar with Flex,
 why don't you just point me to it, rather than practicing more
 douchebaggery? What the hell is wrong with you?

 And my nuts are just fine, thanks.


 On Fri, May 9, 2008 at 3:07 PM, Rick Winscot [EMAIL PROTECTED]
 wrote:

JEE Ninja huh? I love that video on YouTUBE of the Shaolin Monk (
 http://www.youtube.com/watch?v=wMJ_b9uV1Lo) PWN_ER_FYING. So… who said
 you can't use that cool new feature in the IDE to switch to the 3.0 SDK and
 profile your brains out… and then switch back to the 2.0.1 Hotfix
 whatever??? Your answers aren't in any JEE box (the one you are thinking
 inside of).



 Generally – if your 1MB app erratically exceeds a 10MB footprint… modules
 probably aren't going to help you. When you said large app – I was thinking
 a little more than 1MB cough 20mb… cough 50mb. If you are worried about
 this one 1MB guy – I would think you need to be coming to the table with
 very specific and targeted questions on how to improve the performance of
 feature x.



 Ah… Brisbane. Alas – you are right. The earth if flat… Doug, Tracy,
 Steve, Alex and Matt are a figment of our imagination… and the sum of all
 things Flex can be written on one side of a 3 X 5 card.



 Do yer' nuts hurt? Hmm… cause I just kicked em' There are more answers
 than questions these days – enough in this earth for every/any one to have
 more than a fair share of light and knowledge.  The only real obstacle is
 not coming to the table hungry.



 Rick Winscot







 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Josh McDonald
 *Sent:* Friday, May 09, 2008 12:12 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] How big does a SWF get before IE starts to
 worry?



 Thanks for those tips, although I don't think I can action any of them on
 this project, given it's targeting Flex 2 (no profiler, no rpc source), I'm
 in Brisbane (unlikely there's any training that will benefit my skill level
 unfortunately), and I'm already a full-stack JEE ninja ;-)

 I'm definitely hoping we don't have to switch this project to modules, as
 it's 3/4 done already, I've been thrown in because there's some serious
 deadlines approaching, and I was just mainly wondering about how much leeway
 we'll have as the SWF for this is already over a meg. It's not CRM, but it's
 not a dashboard widget either ;-)

 -J

 On Fri, May 9, 2008 at 1:53 PM, Rick Winscot [EMAIL PROTECTED]
 wrote:

 If you are creating widgets or gizmos with Flex/Flash… I don't think you
 will ever hit the 'pain threshold.' However, if you are developing a
 substantive application – workforce management, crm, data management,
 repository, asset management or the like… realistically you can code up to
 release oblivious of what is happening with memory management and system
 performance. The difficulty is that developing in Flex is so freaking cool
 that you can easily get caught up in features and visual sweetness that
 you'll will forget to profile as you go to help you target bottlenecks.
 Frankly – if you save performance tuning til' the 11th hour… it's going
 to be rough.



 It's not just about the size of the swf – it all about coding to the
 platform… most reasonably configured system will be fine.  Here is a top
 five-ish list of things to think about.



 #. Modularize your app – you _*can*_eat a whale… one bite at a time.

 #. Profile as you go – if you start to see 'the signs' stop and figure
 out what the problem is. If you are patient the knowledge you gain in the
 process will provide a feedback loop re-injecting better approaches and
 broader understanding into your work.

 #. Training… there I said it. Spending a few bucks in a session with a
  guru will be incalculable.

 #. Source. Source. Source. It's all about looking into the Flex SDK
 source as much as you can. Building 'hot rods' is a process of developing
 (fanatical) deep understanding of your subject – to the point you know when
 to bend the rules and when not to.

 #. Become 

Re: [flexcoders] Re: Extending Alert

2008-05-02 Thread Doug McCune
BTW, if you want to add an Alert via MXML just do this:

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns:controls=mx.controls.*
controls:Alert /
/mx:Application

Alert isn't included in the manifest XML file so the compiler doesn't know
that it's in the http://www.adobe.com/2006/mxml; namespace, but if you
explicitly reference the package that contains Alert you can do it just
fine.

Doug

On Fri, May 2, 2008 at 1:28 AM, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Thursday 01 May 2008, climbfar wrote:
  Basically I would like to create a similar component that would be
  used for configuring some task modally and presumably extending it
  off the Alert or TitleWindow component.

 At a guess, it's not present in the manifest for the SDK.
 Even if you shipped your code such that that was true for your code, I
 think
 someone could just tweak your manifest.

 Don't bother. I don't know what problem you are trying to solve, but I
 doubt
 this is the answer.
 used for configuring some task modally sounds like you just want to use
 PopUpManger, tbh.

 --
 Tom Chiverton
 Helping to enormously architect bricks-and-clicks technologies
 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 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
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






Re: [flexcoders] Re: Large application strategy - Flex or Flash?

2008-04-28 Thread Doug McCune
  No current requirement for Flex components

 That seems like a relevant factor in the decision..





I'd argue that the lack of a need for any Flex controls is an argument for
not using the Flex framework, but not necessarily for not using Flex Builder
as the development tool. Even if you are doing an AS3 only Flash project, it
might still make sense to use Flex Builder (or Flash Develop or FDT, I don't
have experience with those). The fact that Eclipse has plugins that support
SVN and CVS for version control, Mylyn for trac integration, supports ant
and maven, supports code hinting, etc etc are all reasons to use FB as the
dev tool.

So assuming you can put your timeline-needing Flash devs in a room and give
them Flash authoring and your devs can just get SWFs they don't have to
edit, then it sounds like Flex Builder is probably the way to go. But if you
need to tweak timeline animations you'll need to crank open Flash Authoring.
But crank it up, do your work, and get the hell out so you can get back to a
decent dev environment with code hinting and all the good stuff.

Doug


Re: [flexcoders] Re: Collapsible controls

2008-04-24 Thread Doug McCune
btw, I'm hoping to roll that component together with the existing
WindowShade one in flexlib and get the combined component in the flexlib
project. One I find a free minute...

Doug

On Thu, Apr 24, 2008 at 10:58 AM, Richard Rodseth [EMAIL PROTECTED]
wrote:

   This looks quite promising:

 http://vanderblog.typepad.com/blog/2008/03/collapsiblebo-1.html


 On Thu, Apr 24, 2008 at 9:55 AM, Dominic Pazula [EMAIL 
 PROTECTED]dompazz%40yahoo.com
 wrote:
 
 
 
 
 
 
  I don't have any ideas, but I am very interested in something like
  this. I was contemplating something very similar earlier today.
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Richard Rodseth [EMAIL PROTECTED]
  wrote:
 
 
  
   It seems to me that it's pretty common to need some UI that is
   modeless (i.e. not in a pop-up) but easy to get out of the way to save
   real estate.
  
   I've seen the FlexStore (haven't studied the code in a while) , the
   WindowShade in flexlib, and examples of programmatically dividing a
   DividedBox. I like the latter, because when the collapsible UI is
   expanded, the ability to resize is still valuable. Is it possible to
   skin or otherwise customize the HDividedBox so that additional buttons
   could be placed with the thumb?
  
   Any other approaches that have worked well for any of you?
  
 
 
  



Re: [flexcoders] binding problems

2008-04-20 Thread Doug McCune
You're creating a bindable Array that is full of non-bindable Objects.

Since your Array is bindable you would be able to bind to the Array itself,
and bindings would get fired when the Array changes (ir you do something
like objs = new Array()). But inside that Array are simple Objects that are
not bindable. So no bindings will ever fire when: a) objects are added and
removed from the array, if you wanted that you should use ArrayCollection
and getItemAt(), and b) no bindings fire when properties of those Objects
get updated.

So one way to change your example is to use a VO class to hold the data that
is in those objects, and make the entire class, or certain properties,
bindable. So if you had a VO class that had x, y, percent, and type
properties that were all bindable then your example would work. If you want
a quick but pretty dirty solution try just wrapping your objects in the
ObjectProxy class, so your Array creation line might look like this:

public var objs:Array = new Array(new ObjectProxy({x:30, y:22, percent:20,
type:community}) ... );

But it's worth having a proper undertanding of how binding really works, so
I'd advise against using ObjectProxy to force binding to work.

Doug

On Sun, Apr 20, 2008 at 7:18 PM, grimmwerks [EMAIL PROTECTED] wrote:

   Could someone PLEASE point out what I'm doing wrong in the following? I
 want to bind a numeric stepper to a certain size and have it changed live;
 I'm trying to change the scale of these buttons to the numeric steppers;
 here's a test:

 ---
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  width=100%
 height=100% horizontalScrollPolicy=off verticalScrollPolicy=off  

 mx:Repeater id=rep dataProvider={objs}
 mx:Button  x={Number(rep.currentItem.x)} y={Number(rep.currentItem.y)}
 width={(Number(rep.currentItem.percent)*defaultSize)}
   height={(Number(rep.currentItem.percent)*defaultSize)} styleName={
 String(rep.currentItem.type)} label={
 String(rep.currentItem.type).toUpperCase()}
 toolTip={'At the moment '+ String(rep.currentItem.type)+' is '
 +rep.currentItem.percent+'% of my life at the moment'}  /
 /mx:Repeater 

 mx:NumericStepper id=tmp change={objs.getItemAt(0).percent=tmp.value}
 value={objs[0].percent} maximum=100 /



 mx:Script
 ![CDATA[
 import mx.controls.Button;
 import mx.core.BitmapAsset;
 import mx.managers.DragManager;
 import mx.core.DragSource;
  import mx.events.DragEvent;
import flash.events.MouseEvent;
 import mx.effects.easing.*;
 import mx.binding.utils.BindingUtils;
 import mx.collections.ArrayCollection;


 import mx.controls.Alert;
 import mx.utils.ObjectUtil;
 import mx.core.Application;


 private var offX:Number;
 private var offY:Number;


 [Bindable]
 public var objs:Array = new Array({x:30, y:22, percent:20, type:
 community},{x:90, y:22, percent:25, type:work},{x:110, y:72,
 percent:45, type:self},{x:70, y:120, percent:15, type:faily});


 [Bindable]
 private var defaultSize:Number = new Number(6);




 ]]
 /mx:Script




 /mx:Application

  



Re: [flexcoders] binding problems

2008-04-20 Thread Doug McCune
yeah, you have the right idea, VO just means Value Object (sorry, too many
business apps start to make you talk funny), and I only meant create a
specific class that has the correct bindable properties. So a class called
Circle that has a bindable property for percent (and any of the others that
would need binding supported).

And yeah, if you're loading a bunch of XML to create those circles, I'd say
convert the XML into an array of real Circle objects to get binding to work.
That also makes things a lot easier to debug, since you can investigate and
not have to wade through XML to figure out what's going on. So when you load
your XML, loop over all the circle nodes, create new Circle objects (which
have bindable properties) and set those in your array.

The main issue is just that using a generic Object, or XML doesn't make the
properties bindable. So you need to use a class that explicitly makes them
bindable.

Doug


On Sun, Apr 20, 2008 at 8:53 PM, grimmwerks [EMAIL PROTECTED] wrote:

   Doug, thanks for weighing in, it's appreciated.

 I'm sorry - don't understand the VO class reference - I'm assuming that
 you're just making up a class named VO, right?

 So I should create this Class that has the properties I want and push them
 into the array?

 It gets hairier actually - originally I had one xml object (here's the
 actual xml):

 item id=2 date=2007-03-15T06:14:23Z
 info
 circleText![CDATA[Could there by styles? How about iitalic/i.
 bBoldness/b? Why, yes, there is. This is stll more example text
 regarding the circle data. Typing is fun. It will be full html text at when
 finished and saved to the database when finished. The editor itself will be
 full html control]]/circleText
 workingText![CDATA[I could write all day about example text regarding
 the 'what I'm working on' section. It will be full html text at when
 finished and saved to the database when finished. The editor itself will be
 full html control]]/workingText
 needText![CDATA[This could very well be boldstill/bold more example
 text regarding what I need from you. It will be full html text at when
 finished and saved to the database when finished. The editor itself will be
 full html control]]/needText
 /info
 circle type=work x=100 y=300 percent=25 /
 circle type=home x=10 y=120 percent=40 /
 circle type=community x=150 y=10 percent=10 /
 circle type=self x=200 y=100 percent=25 /
 /item



 Originally I had a class called CircleData that was a singleton, and
 binding to the currentData variable; of course everytime I loaded in a new
 xml, everything would change properly, but the minute I'd try changing the
 data of one circle's percent, nothing on stage would be updated. Same
 problem as above it seems.

 So you think creating a new Circle class and binding the buttons to each
 circle in an array, when changing the array(circle1.percent) (yeah, fake) --
 should be enough.


 By the way, love the blog. 2 thumbs up.


 On Apr 20, 2008, at 11:45 PM, Doug McCune wrote:

 You're creating a bindable Array that is full of non-bindable Objects.

 Since your Array is bindable you would be able to bind to the Array
 itself, and bindings would get fired when the Array changes (ir you do
 something like objs = new Array()). But inside that Array are simple Objects
 that are not bindable. So no bindings will ever fire when: a) objects are
 added and removed from the array, if you wanted that you should use
 ArrayCollection and getItemAt(), and b) no bindings fire when properties of
 those Objects get updated.

 So one way to change your example is to use a VO class to hold the data
 that is in those objects, and make the entire class, or certain properties,
 bindable. So if you had a VO class that had x, y, percent, and type
 properties that were all bindable then your example would work. If you want
 a quick but pretty dirty solution try just wrapping your objects in the
 ObjectProxy class, so your Array creation line might look like this:

 public var objs:Array = new Array(new ObjectProxy({x:30, y:22, percent:20,
 type:community}) ... );

 But it's worth having a proper undertanding of how binding really works,
 so I'd advise against using ObjectProxy to force binding to work.

 Doug

 On Sun, Apr 20, 2008 at 7:18 PM, grimmwerks [EMAIL PROTECTED] wrote:

  Could someone PLEASE point out what I'm doing wrong in the following? I
  want to bind a numeric stepper to a certain size and have it changed live;
  I'm trying to change the scale of these buttons to the numeric steppers;
  here's a test:
 
  ---
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  width=100%
  height=100% horizontalScrollPolicy=off verticalScrollPolicy=off  
 
  mx:Repeater id=rep dataProvider={objs}
  mx:Button  x={Number(rep.currentItem.x)} y={
  Number(rep.currentItem.y)} width={
  (Number(rep.currentItem.percent)*defaultSize)}
height={(Number(rep.currentItem.percent)*defaultSize)} styleName={
  String

Re: [flexcoders] Re: What would cause a Canvas subclass to not clip its content?

2008-04-15 Thread Doug McCune
Being able to set clipContent to false is very useful. Even if there was an
additional flag to force clipping at all times, I would also want to ability
to turn off clipping at all times (which is what clipContent=false already
does).

Doug

On Tue, Apr 15, 2008 at 10:43 AM, esaltelli [EMAIL PROTECTED] wrote:

   Let's make sure that the clipContent property is deprecated when that
 enhancement is added ;)


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Doug
 McCune [EMAIL PROTECTED] wrote:
 
  But then what would I do with these arcane bits of framework
 knowledge
  I have stored up? My life would lack meaning.
 
  But yeah, I'd vote for that enhancement request. Something like a
  forceClipping boolean on all containers that support content
 clipping?
 
  Doug
 
  On Mon, Apr 14, 2008 at 9:59 AM, Ben Clinkinbeard
  [EMAIL PROTECTED] wrote:
  
  
  
  
  
  
   Does anyone besides me think it would be nice to be able to force
 content
   clipping for scenarios like this? Dealing with an extra child can
 be a bit
   of a pain sometimes, like in my current component. If anyone else
 thinks its
   worthy I will file an enhancement request.
  
   Ben
  
  
  
   On Mon, Apr 14, 2008 at 12:36 PM, Ben Clinkinbeard
   [EMAIL PROTECTED] wrote:
Holy hell Batman, that worked like a charm. Thanks!
   
   
   
   
   
   
On Mon, Apr 14, 2008 at 12:29 PM, Doug McCune [EMAIL PROTECTED] wrote:
   






 Every once in a while I'll drop a dummy UIComponent child
 into a
 canvas and set it to have an x position of -1. That will
 force the
 canvas to clip it's children. A canvas only applies the
 clipping mask
 if it checks its children and thinks that one of them extends
 beyond
 the bounds. If you have a dummy UIComponent with x at -1 then
 it will
 always force clipping.

 Doug


 On Mon, Apr 14, 2008 at 6:14 AM, ben.clinkinbeard
 [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
  I have a Canvas subclass that creates a number of SWFLoader
 children.
  The SWFLoaders each dynamically load a PNG. When the PNG
 finishes
  loading it is positioned via swfLoader.content.x =
 someNumber. The
  problem is that when these PNGs hang over any edge of the
 Canvas
  subclass they are not clipped. At first I thought maybe
 dynamic
  content was the issue but I created a test case and
 dynamically loaded
  and positioned PNGs were correctly clipped.
 
  Any ideas what the problem could be?
 
  Thanks,
  Ben
 
 

   
   
  
  
 

  



Re: [flexcoders] What would cause a Canvas subclass to not clip its content?

2008-04-14 Thread Doug McCune
Every once in a while I'll drop a dummy UIComponent child into a
canvas and set it to have an x position of -1. That will force the
canvas to clip it's children. A canvas only applies the clipping mask
if it checks its children and thinks that one of them extends beyond
the bounds. If you have a dummy UIComponent with x at -1 then it will
always force clipping.

Doug

On Mon, Apr 14, 2008 at 6:14 AM, ben.clinkinbeard
[EMAIL PROTECTED] wrote:






 I have a Canvas subclass that creates a number of SWFLoader children.
  The SWFLoaders each dynamically load a PNG. When the PNG finishes
  loading it is positioned via swfLoader.content.x = someNumber. The
  problem is that when these PNGs hang over any edge of the Canvas
  subclass they are not clipped. At first I thought maybe dynamic
  content was the issue but I created a test case and dynamically loaded
  and positioned PNGs were correctly clipped.

  Any ideas what the problem could be?

  Thanks,
  Ben

  


Re: [flexcoders] What would cause a Canvas subclass to not clip its content?

2008-04-14 Thread Doug McCune
But then what would I do with these arcane bits of framework knowledge
I have stored up? My life would lack meaning.

But yeah, I'd vote for that enhancement request. Something like a
forceClipping boolean on all containers that support content clipping?

Doug

On Mon, Apr 14, 2008 at 9:59 AM, Ben Clinkinbeard
[EMAIL PROTECTED] wrote:






 Does anyone besides me think it would be nice to be able to force content
 clipping for scenarios like this? Dealing with an extra child can be a bit
 of a pain sometimes, like in my current component. If anyone else thinks its
 worthy I will file an enhancement request.

 Ben



 On Mon, Apr 14, 2008 at 12:36 PM, Ben Clinkinbeard
 [EMAIL PROTECTED] wrote:
  Holy hell Batman, that worked like a charm. Thanks!
 
 
 
 
 
 
  On Mon, Apr 14, 2008 at 12:29 PM, Doug McCune [EMAIL PROTECTED] wrote:
 
  
  
  
  
  
  
   Every once in a while I'll drop a dummy UIComponent child into a
   canvas and set it to have an x position of -1. That will force the
   canvas to clip it's children. A canvas only applies the clipping mask
   if it checks its children and thinks that one of them extends beyond
   the bounds. If you have a dummy UIComponent with x at -1 then it will
   always force clipping.
  
   Doug
  
  
   On Mon, Apr 14, 2008 at 6:14 AM, ben.clinkinbeard
   [EMAIL PROTECTED] wrote:
   
   
   
   
   
   
I have a Canvas subclass that creates a number of SWFLoader children.
The SWFLoaders each dynamically load a PNG. When the PNG finishes
loading it is positioned via swfLoader.content.x = someNumber. The
problem is that when these PNGs hang over any edge of the Canvas
subclass they are not clipped. At first I thought maybe dynamic
content was the issue but I created a test case and dynamically loaded
and positioned PNGs were correctly clipped.
   
Any ideas what the problem could be?
   
Thanks,
Ben
   
   
  
 
 

  


Re: [flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-13 Thread Doug McCune
BTW, the EventGenerator class in the UM extensions is specifically for
sequencing events. You can wrap a bunch of events in the
EventGenerator and tell the generator whether the events should run in
sequence or in parallel. Then you fire off the generator and it will
queue up all the events and make sure they fire in the right order
(and will wait for each one to come back, etc and give you a final
result event once they all finish). Maybe EventSequencer or
EventManager would have been a more self-explanatory name, but I think
the idea behind the name is that the EventGenerator is responsible for
creating and firing (generating) events, in order, with the option of
queueing them in sequence.

And yeah, there aren't many public examples out there yet that use all
this stuff, but it is used internally on a lot of projects. I assume
we'll be pushing out more examples, especially of how to use the
EventGenerator since that's something I think a lot of people have
needed to do.

Doug

On Sat, Apr 12, 2008 at 9:51 PM, ACE [EMAIL PROTECTED] wrote:






 It is not so much of using If/new callbacks, it is more of a generic
  approach. I personally do not like If(s), not a fan at all.

  What I find missing is an easy way of sequencing events as i would
  have done in traditional threaded applications. If I was do a
  callback, i would prefer to pass a function than a class as you know
  then what is going to come back where.

  On a slightly different note, I find that both Cairngorm/UM extensions
  have not really provided ways to use the Command pattern, like no ways
  to do Undo, wizards etc. What they have with them is a very bare-bones
  framework, that I believe has miles to go.

  Nevertheless, good stuff - we have a beginning.

  Thanks for the help.

  


Re: [flexcoders] How the hell do you debug a 1009 error from SOAP?

2008-04-13 Thread Doug McCune
Here is a recent IM conversation I had with someone who shall remain
nameless. I apologize for the language, but it wasn't even me this
time.

4:43:38 PM [EMAIL PROTECTED]: fucking new flashplayer broke [my app]
and i have no idea why
4:43:49 PM [EMAIL PROTECTED]: i didn't think any of that security shit
applied to us
4:43:59 PM [EMAIL PROTECTED]: security! yay! we love it!
4:48:02 PM [EMAIL PROTECTED]: aha. fuckers.
4:48:03 PM [EMAIL PROTECTED]: Allowing SOAPAction header for web services

When using Flash Player in conjunction with web services, make sure
the SOAPAction header is allowed.
4:48:15 PM [EMAIL PROTECTED]: hidden at the bottom of some technote

So maybe check to make sure the SOAPAction header is allowed? I'd say
check all the recent stuff with the April security release of Flash
Player and go over every tech note with a fine tooth comb.

Doug


On Sun, Apr 13, 2008 at 5:21 PM, Douglas Knudsen
[EMAIL PROTECTED] wrote:






 Service Capture, trace(), and some chicken bones :)  Seriously, I'd invest
 in Service Capture or Charles to sniff your SOAP.  You  can certainly use
 Wireshark or FireBug too, but not for AMF sniffing which smells better to
 me!

 DK


 On Sun, Apr 13, 2008 at 7:27 PM, Josh McDonald [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
  I've started getting a 1009 error for no apparent reason when trying to
 call a SOAP method, and there's absolutely no useful debugging information,
 it just comes up as a fault event. How is one supposed to track down and fix
 something like this? I'm stuck on 2.01 so there's no source to rpc.* to
 browse.
 
  Any help much appreciated.
 
  -J
 
  --
  Therefore, send not to know For whom the bell tolls, It tolls for thee.
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]



 --
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it? 


Re: [flexcoders] some one must know this!!! Please tell me!!!

2008-04-12 Thread Doug McCune
 There is too much traffic on this list to read everything, and we choose what 
 to read based on whether we think we can help with the problem expressed in 
 the subject.

* except for Tracy, who obviously reads every message, especially the
ones with the most exclamation points in the subject. For the best
chance of getting your question answered be sure to use a subject
similar to this: Flex is broken!!! Plz fix this bug

I'm thinking about making a little flexcoders leader board to see who
has answered the most questions on this list. I'm curious to see who
would win between Tracy and Alex Harui.

Sorry for additional unimportant blabber on the list :) Just wanted to
thank Tracy for his dedication to helping everyone out.


Re: [flexcoders] how do I know when a component is invisible

2008-04-12 Thread Doug McCune
Ugly way #1:
Try adding a listener to SystemManager for the FlexEvent.SHOW and
FlexEvent.HIDE event using the capture phase. Then when that comes in
loop over all the children of the component that is being shown and do
whatever it is you need to do when you find a certain component is
being shown or hidden

Ugly way #2:
monkey patch UIComponent. Change the getter for visible. If the
UIComponent has normal visibility set to true, then check if it  has a
parent, if so return the parent's visibility (and since you're monkey
patching UIComponent that would trickle all the way up the display
list)

What is it exactly that you need to do if somewhere up in the display
list a parent has visible set to false?

Doug

On Sat, Apr 12, 2008 at 7:35 PM, Alex Harui [EMAIL PROTECTED] wrote:









 There's no quick answer, you have to test each parent.



  


 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jason Rayles
  Sent: Saturday, April 12, 2008 10:56 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] how do I know when a component is invisible







 I have some custom components, and they live inside various containers
  inside various containers.

  How can I let my components know that they are invisible, whether it is
  the component itself that has visible=false or the parent's visibility
  is false or if its parent's parent is not the current view in a
  viewstack or any other permutation?

  Thanks,
  Jason

  


Re: [flexcoders] how do I know when a component is invisible

2008-04-12 Thread Doug McCune
or if its parent's parent is not the current view in a viewstack

I think when the selected child changes in a ViewStack the ViewStack
sets the visible property of the old child to false, so checking
visibility of parents would still work in that case (same with TabNav
or Accordion).

Doug

On Sat, Apr 12, 2008 at 7:52 PM, Doug McCune [EMAIL PROTECTED] wrote:
 Ugly way #1:
  Try adding a listener to SystemManager for the FlexEvent.SHOW and
  FlexEvent.HIDE event using the capture phase. Then when that comes in
  loop over all the children of the component that is being shown and do
  whatever it is you need to do when you find a certain component is
  being shown or hidden

  Ugly way #2:
  monkey patch UIComponent. Change the getter for visible. If the
  UIComponent has normal visibility set to true, then check if it  has a
  parent, if so return the parent's visibility (and since you're monkey
  patching UIComponent that would trickle all the way up the display
  list)

  What is it exactly that you need to do if somewhere up in the display
  list a parent has visible set to false?

  Doug



  On Sat, Apr 12, 2008 at 7:35 PM, Alex Harui [EMAIL PROTECTED] wrote:
  
  
  
  
  
  
  
  
  
   There's no quick answer, you have to test each parent.
  
  
  

  
  
   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
   Behalf Of Jason Rayles
Sent: Saturday, April 12, 2008 10:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how do I know when a component is invisible
  
  
  
  
  
  
  
   I have some custom components, and they live inside various containers
inside various containers.
  
How can I let my components know that they are invisible, whether it is
the component itself that has visible=false or the parent's visibility
is false or if its parent's parent is not the current view in a
viewstack or any other permutation?
  
Thanks,
Jason
  




Re: [flexcoders] how do I know when a component is invisible

2008-04-12 Thread Doug McCune
I did say ugly :P

If you can rely on calling a method to check for visibility something
like this in your custom component should work I'd think:

public function isReallyVisible():Boolean {
var isVisible:Boolean = visible;
var parent:UIComponent = this.parent;

while(parent != null  isVisible) {
isVisible = parent.visible;
parent = parent.parent;
}

return isVisible;
}

FYI I haven't run that code at all.

Doug

On Sat, Apr 12, 2008 at 8:18 PM, Alex Harui [EMAIL PROTECTED] wrote:









 I was about to say that #1 and #2 could have serious performance
 implications.  Visibility is changed at least once per UIComponent (they are
 invisible when created).



  


 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Doug McCune
  Sent: Saturday, April 12, 2008 8:00 PM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] how do I know when a component is invisible








 or if its parent's parent is not the current view in a viewstack

  I think when the selected child changes in a ViewStack the ViewStack
  sets the visible property of the old child to false, so checking
  visibility of parents would still work in that case (same with TabNav
  or Accordion).

  Doug

  On Sat, Apr 12, 2008 at 7:52 PM, Doug McCune [EMAIL PROTECTED] wrote:
   Ugly way #1:
   Try adding a listener to SystemManager for the FlexEvent.SHOW and
   FlexEvent.HIDE event using the capture phase. Then when that comes in
   loop over all the children of the component that is being shown and do
   whatever it is you need to do when you find a certain component is
   being shown or hidden
  
   Ugly way #2:
   monkey patch UIComponent. Change the getter for visible. If the
   UIComponent has normal visibility set to true, then check if it has a
   parent, if so return the parent's visibility (and since you're monkey
   patching UIComponent that would trickle all the way up the display
   list)
  
   What is it exactly that you need to do if somewhere up in the display
   list a parent has visible set to false?
  
   Doug
  
  
  
   On Sat, Apr 12, 2008 at 7:35 PM, Alex Harui [EMAIL PROTECTED] wrote:
   
   
   
   
   
   
   
   
   
There's no quick answer, you have to test each parent.
   
   
   

   
   
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason Rayles
Sent: Saturday, April 12, 2008 10:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how do I know when a component is invisible
   
   
   
   
   
   
   
I have some custom components, and they live inside various containers
inside various containers.
   
How can I let my components know that they are invisible, whether it is
the component itself that has visible=false or the parent's visibility
is false or if its parent's parent is not the current view in a
viewstack or any other permutation?
   
Thanks,
Jason
   
   
  

  


Re: [flexcoders] Re: Selecting item in comboBox drop down.

2008-04-12 Thread Doug McCune
Just to play devil's advocate, is there any reason you're not just
using one of the auto complete components out there? There's an
auto-complete text component in Yahoo's astra flex component set.
There's also another auto-complete text box done by some adobe peeps
(the link I found to adobe exchange seemed broken, so you'll have to
google).

And some of my fellow coworkers came up with what I think is the exact
component you're looking for and posted it a few weeks ago:
http://blog.strikefish.com/blog/index.cfm/2008/3/21/Flex-Smart-Combo-aka-look-ahead-combo

Doug

On Sat, Apr 12, 2008 at 8:20 PM, aceoohay [EMAIL PROTECTED] wrote:






 Alex:

  I extended ComboBox, the relavent code is below;

  override protected function focusOutHandler
  (event:FocusEvent):void
  {
  super.focusOutHandler(event);
  _typedText = ;
  }

  override protected function focusInHandler
  (event:FocusEvent):void
  {
  super.focusInHandler(event);
  _typedText = ;
  }

  override protected function keyDownHandler
  (event:KeyboardEvent):void
  {
  // super.keyDownHandler(event);

  if(!event.ctrlKey)
  {
  if (event.keyCode ==
  Keyboard.BACKSPACE || event.keyCode == Keyboard.DELETE)
  {
  _typedText = _typedText.substr
  (0,_typedText.length -1);
  }
  if (event.charCode  31 
  event.charCode  128)
  {
  _typedText +=
  String.fromCharCode(event.charCode);
  }
  if (!findFirstItem(_typedText))
  {
  _typedText = _typedText.substr
  (0,_typedText.length -1);
  }
  }
  }

  private function findFirstItem
  (strFindItem:String):Boolean
  {
  if (this.dataProvider != null)
  {
  for (var
  i:int=0;ithis.dataProvider.length;i++)
  {
  if (this.dataProvider[i]
  [this.labelField].toString().substr(0,strFindItem.length).toUpperCase
  () == strFindItem.toUpperCase())
  {
  this.close();
  this.selectedIndex =
  i;
  this.open();
  return true;
  }
  }
  }
  return false;
  }

  Paul



  --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:
  
   In theory, if you set selectedIndex, the dropdown should reflect
  that.
  
  
  
   Not sure how to wrote your code, but I would've subclassed List, and
   changed the dropdownFactory in the ComboBox. Keystrokes are
  forwarded
   to the List.
  
  
  
   
  
   From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
   Behalf Of aceoohay
   Sent: Saturday, April 12, 2008 7:21 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Selecting item in comboBox drop down.
  
  
  
   I am creating an enhanced ComboBox component. The feature I am
   currently adding is the ability to type the letters b, o, b
  and
   have it find bob in the dropdown. I have the code working
   reasonably well, in that it finds what I am looking for, and
  selects
   it.
  
   The problem I am having is that if the dropdown is visible, it
   displays the correct item, but doesn't move the list to coincide
  with
   the item selected so I end up with;
  
   bob - The item selected
   abel
   bill
   bob
   chuck
  
   what I would like is;
  
   bob - The item selected
   bill
   bob - highlighted
   chuck
   don
  
   Does anyone know the method that will cause the dropdown to scroll
  to
   and highlight the selectedItem?
  
   As a kludge, I can close and reopen the combobox, but that looks
   nasty as a person is typing.
  
   On a related note, is there a way of telling whether the comboBox
  is
   open or closed?
  
   Paul
  

  


Re: [flexcoders] Writing text directly to Graphics object.

2008-04-11 Thread Doug McCune
You can draw a TextField to a BitmapData object (using the draw() method)
and then use graphics.beginBitmapFill and pass in that BitmapData (make sure
to specify the right matrix for where to start the fill). But no, as far as
I know there is not way to do it directly, I often use BitmapData as an
intermediary to do stuff like that.

Doug

On Fri, Apr 11, 2008 at 3:50 PM, Eric Cooper [EMAIL PROTECTED] wrote:

   Is there any way to write/draw text directly to a Graphics object? For
 that matter is there
 anyway to draw text (single line of static text) into a Canvas? I suspect
 that the answer is no,
 having searched and searched... but maybe there's some obscure utility
 class that I've
 overlooked.
 Thanks in advance.
 -Eric

  



Re: [flexcoders] How is a checkbox check, but not check

2008-04-05 Thread Doug McCune
Hey Tracy, you ever realize that you're posted 150 messages on flexcoders
about itemRenderers?

http://tech.groups.yahoo.com/group/flexcoders/msearch?query=itemRenderer/group/flexcoders/msearch?query=itemRenderersn=Tracy+Spratt

:)


On Sat, Apr 5, 2008 at 1:39 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

Item renderers get recycled. Sigh.



 Your checkbox renderer must update a property on the dataProvider item
 object  and use that property value to sets its selected state.



 Google: Alex Harui itemRenderer recycle, for a full explanation and many
 examples.   I also have a simple checkbox renderer on www.cflex.net



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *dbronk
 *Sent:* Saturday, April 05, 2008 11:32 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] How is a checkbox check, but not check



 Okay, I have a DataGrid with one of the columns being a checkbox so
 the user can select what they want to work on. I'm using the
 following mxml for this column:

 mx:DataGridColumn editorDataField=selected editable=true
 mx:itemRenderer
 mx:Component
 mx:CheckBox click=outerDocument.onClickFormCheckbox(event, [EMAIL 
 PROTECTED]) /
 /mx:Component
 /mx:itemRenderer
 /mx:DataGridColumn

 When I select the checkbox everything works fine. My application is
 setup pretty basic also. I have the normal C clamp design. ie:
 banner on top, footer on bottom, middle is two columns (left column is
 nav, right column is content). I also have a button at the top of the
 nav column which will collapse the width of the nav column as well as
 expand it back so that we can maximize the area of the content area.

 Very standard application setup.

 Well, here is the issue. I check a checkbox in the DataGrid and then
 I click the button that shrinks the width of the nav column to widen
 the content area. When I do this the checkbox view becomes
 unchecked?!?!?!?!?

 But wait, there's more. The checkbox is still marked as selected. I
 added a change event to the checkbox and it is fired when I select the
 checkbox, but it is not when I change the width of the nav column,
 even though the check mark disappears.

 Any ideas?

 Thanks,
 Dale

  



Re: [flexcoders] Chart Styling | BarChart -- Controlling How Total Width Is Allocated Between Data Area (e.g. Bars) vs Labels

2008-04-05 Thread Doug McCune
Try using the gutterLeft, gutterRight, gutterTop, and gutterBottom styles on
the chart itself. If you set those you can control how many pixels are used
for the axes. You can also play with the font size and rotation of the
labels on the axis renderers you use.

Doug

On Sat, Apr 5, 2008 at 4:53 PM, greg h [EMAIL PROTECTED] wrote:

   I am working with the charting components.

 By default, the charting components seem to have internal logic
 controlling layout. Specifically, what percent of the total area is
 allocated to the chart's graphics (aka data area), and what percent is
 allocated to the chart's labels.

 I have a requirement where I need to override the default value
 controlling how much of the total area is allocated between the graphics and
 labels. Specifically I am working with BarChart.

 I have closely reviewed the documentation (Language 
 Referencehttp://livedocs.adobe.com/flex/3/langref/index.htmland the Flex
 3 Advanced Data Visualization Developer 
 Guidehttp://livedocs.adobe.com/flex/3/html/Part1_charting_1.html(datavis_flex3.pdf)).
  I also have searched prior posts here on FlexCoders.

 Thus far it is unclear to me how I can change the ratio controlling how
 the total chart area is allocated between the chart's graphics and labels.

 Is anyone aware of which combination of properties or styles can control
 this?

 Thanks,

 g
  



Re: [flexcoders] Re: Announcement: Join us in a Flex-Related Focus Group

2008-03-31 Thread Doug McCune
I like all designs that give me $50.

On Mon, Mar 31, 2008 at 3:20 PM, Jeffry Houser [EMAIL PROTECTED] wrote:


 I just wanted to thank Cutter and The Saj for the kind words. ;)

 For the record, I don't like the design all that much either.


 Cutter (Flex Related) wrote:
 
 
  For those unfamiliar, Jeffrey has been extensively involved in the
  ColdFusion Community for years, contributing articles, writing blog
  posts, and helping out where ever he could. He has also proven himself
  as a rock solid Flex developer, and was recently added to the Flex group
  of Adobe Community Experts.
 
  In other words, he's on the up-and-up. Don't judge him on the site
  design, he's a programmer/developer;)
 
  Steve Cutter Blades
  Adobe Certified Professional
  Advanced Macromedia ColdFusion MX 7 Developer
  _
  http://blog.cutterscrossing.com http://blog.cutterscrossing.com

 
  lytvynyuk wrote:
  
  
   Hm, sorry, but I don't like design of http://www.dot-com-it.com
  http://www.dot-com-it.com
   http://www.dot-com-it.com http://www.dot-com-it.com
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com,
   Jeffry Houser [EMAIL PROTECTED] wrote:
   
Hi Everybody,
   
Some of you may know me, but many probably not. I'm Jeffry Houser,
producer of The Flex Show, a flex related podcast. I also run a
DotComIt ( http://www.dot-com-it.com http://www.dot-com-it.com
  http://www.dot-com-it.com http://www.dot-com-it.com ),
   an Adobe Solutions Partner
specializing in Flex Development. DotComIt is working on a line of
commercial Flex Components, and we'd like to get some feedback from
 the
developer community. In order to do this, we will be conducting some
focus groups over the course of the next few months and want to
 welcome
all Flex developers to participate.
   
* What is a focus group?* A focus group is a group of potential
customers who are brought together to get their opinions,
 perceptions,
and ideas that will help to shape the design, strategy, and
   direction of
DotComIt's product development.
   
*Why Participate in a DotComIt Flex Component Focus Group?*
   
1. Get $50 for your participation (paid via PayPal or iTunes).
2. An opportunity to provide your input, perspective, and opinion(s)
about Flex and the use of components within Flex.
3. Hear the opinions and perspectives of other developers like
yourself, first hand.
4. Make sure your needs and wants are heard and perhaps help shape
DotComIt's component development road map.
   
To be eligible, you'll just have to fill out a short survey at
http://www.dot-com-it.com/survey.
  http://www.dot-com-it.com/survey. http://www.dot-com-it.com/survey.
  http://www.dot-com-it.com/survey.
   We want to talk to developer's with
all levels of experience, so no matter how much, or how little, you
   know
about Flex we want to hear from you. The survey will close on Friday
April 4th, and we will contact selected participants the following
 week
to discuss specific details.
**
The focus groups are being conducted by a business development
   firm on
DotComIt's behalf. So, for those that know me, you can participate
 w/o
being fear of conflict of interests or upsetting me.
   
Please feel free to pass this on to anyone who you think may be
interested. Now back to your regularly schedule lists posts.
   
--
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711 | Phone: 1-203-379-0773
--
Adobe Community Expert
   http://www.adobe.com/communities/experts/members/JeffryHouser.html
  http://www.adobe.com/communities/experts/members/JeffryHouser.html
   http://www.adobe.com/communities/experts/members/JeffryHouser.html
  http://www.adobe.com/communities/experts/members/JeffryHouser.html
My Company: http://www.dot-com-it.com http://www.dot-com-it.com
  http://www.dot-com-it.com http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
  http://www.theflexshow.com http://www.theflexshow.com
  http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com
  http://www.jeffryhouser.com http://www.jeffryhouser.com
   
  
  
 
 

 --
 Jeffry Houser
 Flex, ColdFusion, AIR
 AIM: Reboog711 | Phone: 1-203-379-0773
 --
 Adobe Community Expert
 http://www.adobe.com/communities/experts/members/JeffryHouser.html
 My Company: http://www.dot-com-it.com
 My Podcast: http://www.theflexshow.com
 My Blog: http://www.jeffryhouser.com

  



Re: [flexcoders] TabNavigator Question

2008-03-23 Thread Doug McCune
try this example

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Canvas height=100%
mx:TabNavigator horizontalAlign=right height=100%
mx:HBox width=800 label=Tab 1 /
mx:HBox width=800 label=Tab 2 /
mx:HBox width=800 label=Tab 3 /
mx:HBox width=800 label=Tab 4 /
/mx:TabNavigator

mx:HSlider /
/mx:Canvas
/mx:Application

Doug

On Sun, Mar 23, 2008 at 10:38 AM, Anuj Gakhar [EMAIL PROTECTED] wrote:

   Hi Alex,
 Do you mind showing me a little example of how to do this?
 That would be really great...

 - Original Message 
 From: Alex Harui [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, March 20, 2008 5:28:29 PM
 Subject: RE: [flexcoders] TabNavigator Question

   Wrap the TabNav in a Canvas, and place whatver you want in the open area


  --

 *From:* [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ]
 *On Behalf Of *anujgakhar
 *Sent:* Monday, March 17, 2008 2:59 PM
 *To:* [EMAIL PROTECTED] ups.com
 *Subject:* [flexcoders] TabNavigator Question



 hi all,

 I have a TabNavigator with 4 tabs in it. Each tab has got a HBox with
 a widt of 800. now when this shows up on the screen, it shows me 4
 tabs as expected.

 My tabs are right aligned and I want to be able to utilize the empty
 space on the left side of the tabs for something more useful, is this
 even possible ? So just to be clear, a HBox of width 800 and 4 tabs on
 top would leave some empty space towards the left at the top of
 Box...can I put some control in that space...e.g. a slider control ?

 I am just running out of ideas on this one...so thought I should ask
 here..

 any help would be appreciated.



 --
 Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
 now.http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
 



Re: [flexcoders] Error message is unclear: 1020: Method marked override must override another method.

2008-03-23 Thread Doug McCune
$10 says either 1, 2, or 3 aren't quite true ;)

paste some code of the method and tell us which class you're extending.

Doug

On Sun, Mar 23, 2008 at 5:57 PM, justSteve [EMAIL PROTECTED]
wrote:

   Im attempting to override a function where I've verified that:
 1) I'm importing the correct package
 2) The method I'm trying to override is public
 3) The signatures match.

 Some other condition is causing the error message:
 1020: Method marked override must override another method.

 Where should I look?

 thx
 --steve...
  



Re: [flexcoders] Flex 3 trial version says it expaired

2008-03-02 Thread Doug McCune
Try wiping out the license.properties file on your machine (or just rename
it in case you want to go back to using beta 3 without the charting
watermark). I had this issue with an old serial # for the last FB3 beta.

Doug

On 3/2/08, hworke [EMAIL PROTECTED] wrote:



 Hi I just downloaded flex 3 professional trial version
 but as I was trying to start it, I got a trial expired
 message. I still have flex 3 beta 2 installed installed
 in my system; am I getting this because if this version?
 Did any one else also had this problem?

 Thanks...

  



Re: [flexcoders] Flex Builder 3.0 Serial No. Need

2008-03-01 Thread Doug McCune
Heh, I was about to comment about what a funny request this is to this group
considering the number of Adobe employees who read this list. But then I
realized that this dude is an expert in Special Kicks, Foot-Works, Flips,
Combining various Martial Arts like Karate-Do, Tae Kwon-Do, Wu-Shu, capoeira
with gymnastics and acrobatics.

http://www.dangerouskicker.com/

You better give him his serial number or the guy may just kick you in the
face :)


On 3/1/08, devang solanki [EMAIL PROTECTED] wrote:

   Dear Friends

 if any one have flex builder 3.0 serial no or crack, then please forward
 to me, i need it

 Regards
 Devang

  



Re: [flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-01 Thread Doug McCune
Oooh, that's right, the dude is the owner of Magic Legs Martial Arts
Academy. You think that academy qualifies for the education discount?
http://www.linkedin.com/in/dangeoruskicker


On 3/1/08, Sherif Abdou [EMAIL PROTECTED] wrote:

   and then there is always the education version too

 - Original Message 
 From: ben.clinkinbeard [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Saturday, March 1, 2008 10:56:45 PM
 Subject: [flexcoders] Re: Flex Builder 3.0 Serial No. Need

  U. There is a 60 day trial available from the Adobe site. Install
 it and start saving your money so you can buy it in 2 months.

 --- In [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com, devang
 solanki devang.flex@ ...
 wrote:
 
  Dear Friends
 
  if any one have flex builder 3.0 serial no or crack, then please
 forward to
  me, i need it
 
  Regards
  Devang
 



 --
 Looking for last minute shopping deals? Find them fast with Yahoo! 
 Search.http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping

  



Re: [flexcoders] Pros and cons of bindable versus dispatching one's own events?

2008-02-29 Thread Doug McCune
You can make read-only properties bindable. In your case your age property
is a read-only property since it only has a getter. The normal bindable
stuff doesn't work on that because bindable properties require both a getter
and a setter to work. But if you define only a getter you can still use the
[Bindable] metadata tag, but you have to dispatch a custom event that tells
everything that the value has updated.

Check out these links:
http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex
http://dynamicflash.com/2006/12/databinding-to-read-only-properties-in-flex-2/

(I googled for 'flex binding read only')

Doug

On 2/29/08, JustusLogan [EMAIL PROTECTED] wrote:

   I'm very new to Flex, and am trying to work through some structural
 issues. I'm trying to plan out my model-view separation, and am
 exploring how the UI listens to changes in the model.

 For the sake of discussion, I've attached two simplistic examples. Each
 example has class Human (my model) with three properties: name,
 date of birth (dob) and age. Name and dob have instance fields, but age
 doesn't since it simply does some arithmetic and returns a value.
 There are two custom components: one that views Human properties, and one
 that edits them.

 The question sort of focuses on the age property, with some
 ramifications.

 The first versionhttp://www.rahder.com/junk/bindable/Main%20Bindable.swf
 has Human defined as bindable, then binds its name and dob to fields in the
 UI. That works since those properties are backed by variables. But there is
 no age variable, so it's impossible to bind on that property. (Right?)

 Run the first version -- the one that uses [Bindable] on the class. If you
 change the person's DOB or name you see the change propogate, as
 expected. But if you scroll way over and choose a DOB from a few years
 back, you'll notice that the age do not change.

 So what's the right way to write the view code so it updates itself as age
 changes? Hopefully this can be done in a way that's the same as it handles
 name and dob. I *could* have Human subclass EventDispatcher (or implement
 IEventDispatcher, or add an event dispatcher property) and have the Human
 age and dob setters fire a change event -- the views could add a listener in
 their person setter. But that seems inconsistent: it would mean the view
 needs to be aware that the age property isn't backed by a variable, which
 seems like pretty poor encapsulation.

 The second version http://www.rahder.com/junk/not_bindable/Main.swfdoesn't 
 bind Human, but instead, uses an event dispatcher for all changes to
 Human. The UI's code is a little more complex, but at least it consistently
 handles changes rather than having to handle some property changes one way
 and other changes another way.

 Is this a case where people go ahead and use a bindable business class,
 and accept the inconsistent handling of the property that's not
 associated with an instance field, with a it's no biggie, that's life
 attitude, or is it better in the long run to forget automatic binding and do
 it manually through one's own event dispatcher?

 Thanks for your advice! :-)
  



Re: [flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2008-02-21 Thread Doug McCune
Just FYI, I posted an example of monkey patching FlexSprite to get this
functionality:
http://dougmccune.com/blog/2008/02/21/monkey-patching-flexsprite-to-list-all-event-listeners-on-any-flex-component/

Doug

On 11/28/07, ben.clinkinbeard [EMAIL PROTECTED] wrote:

   Gotcha. Maybe you should try sending cookies along with the request,
 I've heard it works well on the Flex team. :)

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Gordon
 Smith [EMAIL PROTECTED] wrote:
 
  That would make sense, but it would be up to the Player team since
  EventDispatcher is a Player class. The Flex team can lobby the Player
  team for new features, but we don't get everything we ask for.
 
  Gordon Smith
  Adobe Flex SDK Team
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of ben.clinkinbeard
  Sent: Wednesday, November 28, 2007 12:35 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: Am I the only one who wishes EventDispatcher
  exposed its listeners?
 
 
 
  Why in subclasses and not EventDispatcher itself?
 
  Ben
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders%40yahoogroups.com
  , Gordon Smith gosmith@ wrote:
  
Does anyone from Adobe have info on why its not and/or if it might
  be
   someday?
  
   The Player's EventDispatcher class doesn't provide this capability,
   probably because it isn't part of the Document Object Model Level 3
   Events Specification. (The Player obviously keeps a list of listeners,
   but this is done in C++ code and the list isn't exposed in
   ActionScript.) However, I suppose the framework could accomplish what
   you want by overriding addEventListener() and removeEventListener() in
   every subclass of EventDispatcher to keep track of the listeners.
  Please
   file an enhancement request at http://bugs.adobe.com/flex.
  http://bugs.adobe.com/flex.
  
   Gordon Smith
   Adobe Flex SDK Team
  
   
  
   From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders%40yahoogroups.com
  ] On
   Behalf Of ben.clinkinbeard
   Sent: Wednesday, November 28, 2007 6:04 AM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:
 flexcoders%40yahoogroups.com
   Subject: [flexcoders] Am I the only one who wishes EventDispatcher
   exposed its listeners?
  
  
  
   Sometimes it would be really nice be able to access a list of
   currently attached listeners by doing something like
   myButton.listeners. Having that return a collection of objects that
   expose the event type and handler method would be nice and it doesn't
   seem like it would be that hard to implement since they're obviously
   already kept track of somewhere.
  
   Does anybody else wish this was provided? Does anyone from Adobe have
   info on why its not and/or if it might be someday?
  
   Thanks,
   Ben
  
 

  



Re: [flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2008-02-21 Thread Doug McCune
It's a feature of the flex compiler, which will take the newest version of
any of the classes that it finds and use that version in the final app. So
when you name classes exactly the same as the Flex framework classes (in
this case mx.core.FlexSprite) then the compiler will use your local version
instead of the version in the framework. On other languages similar
functionality is called monkey patching, so that name has kind of stuck for
this approach.

Doug

On 2/21/08, Jerome Clarke [EMAIL PROTECTED] wrote:

   is that a bug or something in the way Flex works... I've been thinking
 about this sort of feature for a long time... If I knew about it before (
 assuming it's not a bug ) I would have done this a long time ago... along
 with implementing other things like deconstruct etc etc

 monkey patching eh... never heard of it

 thanks Doug


 On Thu, Feb 21, 2008 at 7:19 PM, Doug McCune [EMAIL PROTECTED] wrote:

Just FYI, I posted an example of monkey patching FlexSprite to get
  this functionality:
  http://dougmccune.com/blog/2008/02/21/monkey-patching-flexsprite-to-list-all-event-listeners-on-any-flex-component/
 
  Doug
 
  On 11/28/07, ben.clinkinbeard [EMAIL PROTECTED] wrote:
 
 Gotcha. Maybe you should try sending cookies along with the request,
   I've heard it works well on the Flex team. :)
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
   Gordon Smith [EMAIL PROTECTED] wrote:
   
That would make sense, but it would be up to the Player team since
EventDispatcher is a Player class. The Flex team can lobby the
   Player
team for new features, but we don't get everything we ask for.
   
Gordon Smith
Adobe Flex SDK Team
   

   
From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto:
   flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, November 28, 2007 12:35 PM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: Am I the only one who wishes
   EventDispatcher
exposed its listeners?
   
   
   
Why in subclasses and not EventDispatcher itself?
   
Ben
   
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
   flexcoders%40yahoogroups.com
, Gordon Smith gosmith@ wrote:

  Does anyone from Adobe have info on why its not and/or if it
   might
be
 someday?

 The Player's EventDispatcher class doesn't provide this
   capability,
 probably because it isn't part of the Document Object Model Level
   3
 Events Specification. (The Player obviously keeps a list of
   listeners,
 but this is done in C++ code and the list isn't exposed in
 ActionScript.) However, I suppose the framework could accomplish
   what
 you want by overriding addEventListener() and
   removeEventListener() in
 every subclass of EventDispatcher to keep track of the listeners.
Please
 file an enhancement request at http://bugs.adobe.com/flex.
http://bugs.adobe.com/flex.

 Gordon Smith
 Adobe Flex SDK Team

 

 From: flexcoders@yahoogroups.com 
 flexcoders%40yahoogroups.commailto:
   flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.commailto:
   flexcoders%40yahoogroups.com
] On
 Behalf Of ben.clinkinbeard
 Sent: Wednesday, November 28, 2007 6:04 AM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
   flexcoders%40yahoogroups.com
  Subject: [flexcoders] Am I the only one who wishes
   EventDispatcher
 exposed its listeners?



 Sometimes it would be really nice be able to access a list of
 currently attached listeners by doing something like
 myButton.listeners. Having that return a collection of objects
   that
 expose the event type and handler method would be nice and it
   doesn't
 seem like it would be that hard to implement since they're
   obviously
 already kept track of somewhere.

 Does anybody else wish this was provided? Does anyone from Adobe
   have
 info on why its not and/or if it might be someday?

 Thanks,
 Ben

   
  
  
 
  



Re: [flexcoders] do you need CS Degree to get a job?

2008-02-19 Thread Doug McCune
I don't think I've ever been asked about my education when discussing
potential work. When I was first getting into Flex consulting I didn't even
give out resumes with that information before getting hired. If you have
solid samples that's all anybody cares about. Start a blog and post like
hell.

Doug

On 2/19/08, Matt Chotin [EMAIL PROTECTED] wrote:

   In my opinion, a degree primarily counts if you're looking to get a job
 out of school when you have little to show your prospective employers. Once
 you've had industry jobs it's your experience that matters, not your degree.
 Degrees get you the interview potentially, they don't get you the job.

 Matt

 On 2/19/08 4:12 PM, Sherif Abdou [EMAIL PROTECTED]sherif626%40yahoo.com
 wrote:

 A bit off-topic but I was just wondering since i have no reminescense of
 this and their seems to be a lot of programmers on here I thought I would
 ask this question. Do you actually need some sort of CS degree or Computer
 Related degree to get a job say in programming Web Applications or getting a
 Job at Adobe or MSFT or Google. I have a degree in Molecular Biology with a
 Chem Minor. I am Self-Taught so let me here some stories. Thanks.

 
 Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
 now. 
 http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
 http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
 

  



Re: [flexcoders] Transparent=true on BitmapData not working

2008-02-19 Thread Doug McCune
add in a fill color for the initial BitmapData that is a full argb hex
string. If you don't do this the transparency won't work as far as I know.
So try changing the line to:

var bmd : BitmapData = new BitmapData(dragInitiator.width,
dragInitiator.height, true, 0x);

Doug

On 2/19/08, Josh McDonald [EMAIL PROTECTED] wrote:

   Hi guys,

 I can't seem to get transparent=false to work when creating a BitmapData.
 I'm using it as a dragproxy, and I get a white box instead of nothing when I
 do the following:

 var bmd : BitmapData = new BitmapData(dragInitiator.width,
 dragInitiator.height, true);
 //bmd.draw(dragInitiator);
  dragProxy.graphics.beginBitmapFill(bmd);
  dragProxy.graphics.drawRect(0, 0, dragProxy.width,
 dragProxy.height);

 if I uncomment the bmd.draw() line everything goes according to plan, but
 the dragInitiator component has rounded edges so I can see 4 little white
 corners, which is definitely not the way I'd like it to work.

 Any ideas?

 -J

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

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
  



Re: [flexcoders] Re: Sort of OT: RSS Feeds

2008-02-19 Thread Doug McCune
a lot of browsers nowadays format RSS feeds to look nice, since they figure
humans might want to actually read the content, but it can be a little
confusing since you're expecting to look at raw XML.

Doug

On 2/19/08, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Max
 Frigge [EMAIL PROTECTED] wrote:
 
  Hi,
 
  when click the link View Feed XML in the upper right
  corner you get the raw xml data.
  The location is:
  http://feeds.feedburner.com/writersguidelinesdatabase?format=xml

 That looks like a regular formatted html page. I see when I look at
 the source now that it's not, but it also doesn't look like other RSS
 I've used in the past. Oh, well, guess I'll give it a whirl.

 Thanks;

 Amy

  



Re: [flexcoders] Hide Track in HSlider Component.

2008-01-21 Thread Doug McCune
When I want to remove the skin of various components like this I often set
the skin class to ProgrammaticSkin, which is the base skin class but doesn't
actually render anything. So if you set trackSkin to ProgrammaticSkin it
should hopefully do what you want.

Doug

On 1/20/08, Sherif Abdou [EMAIL PROTECTED] wrote:

   actually i think you can just create a custom skin and change the
 trackSkin style so set its alpha, check under

 mx.skins.halo.SliderTrackSkin



  so extend the Border class and do your own methods or just override the
 stuff in the SliderTrackSkin


 - Original Message 
 From: Sherif Abdou [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Sunday, January 20, 2008 9:40:30 PM
 Subject: Re: [flexcoders] Hide Track in HSlider Component.

   from the looks of it, the methods that create the track are private so
 you would not be able to access them, i guess the only way would be to copy
 the entire Slider Class and just manually remove the calls for the track
 methods but I am no expert.

 - Original Message 
 From: flexawesome flexawesome@ yahoo.com
 To: [EMAIL PROTECTED] ups.com
 Sent: Sunday, January 20, 2008 9:16:37 PM
 Subject: [flexcoders] Hide Track in HSlider Component.

  Hi there,

 Is there any way to hide the track in HSlider? Something like

 track.alpha = 0

 thank you



 --
 Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
 now.http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



 --
 Never miss a thing. Make Yahoo your 
 homepage.http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs

  



Re: [flexcoders] Error: Call to a possibly undefined method setTextFormat

2008-01-17 Thread Doug McCune
setTextFormat is not a method of TextArea. setTextFormat is a method of
TextField. TextArea is not the same as TextField. TextArea is a Flex
control. TextField is a base Flash player control. TextArea uses a TextField
control internally. If you were to subclass TextArea you could access the
protected variable textField, which is the TextField control within
TextArea. Then you could call textField.setTextFormat from within your
extended class.

Doug

On 1/17/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   I checked it and double checked it. very frustrating. .


 Sherif Abdou wrote:
  There is no setTextFromat property in the TextArea
 
  - Original Message 
  From: [EMAIL PROTECTED] info1%40reenie.org [EMAIL 
  PROTECTED]info1%40reenie.org
 
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Sent: Thursday, January 17, 2008 10:58:06 AM
  Subject: [flexcoders] Error: Call to a possibly undefined method
  setTextFormat
 
  Why am I getting:  Error: Call to a possibly undefined method
  setTextFormat ?
 
  I did a search on google and got zero results for Error: Call to a
  possibly undefined method setTextFormat
  I totally do not understand why I am the only person in the history of
  the world who is getting this error.
 
  Feedback IS a TextArea, and setTextFormat IS a method of TextArea so it
  makes no sense at all.
 
  var formatter:TextForma t= new TextFormat() ;
  formatter.bold= true;
  formatter.size= 30;
  feedback.setTextFor mat(formatter) ;
 
  mx:TextArea id=feedback width=230 fontWeight= bold text=
 x=350
  y=100 
 
  /mx:TextArea 
 
 
 
  --
  Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
  it now.
  
 http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20

 
 

  



Re: [flexcoders] Imports being lost

2008-01-13 Thread Doug McCune
I also remember seeing this, but I don't think it has happened since the
latest beta. If I remember correctly the issue seems to occur when organize
imports would get run (possibly automatically) before I had edited the file
(ie if it was just opened). I think I noticed that if I just hit ctrl-Z to
undo it would put all the imports back, then if I edited the file and did an
organize imports it would organize them correctly. I also remember seeing
other weird things with organize imports, like the imports for things like
getTimer would get lost, but again I think that was all with a previous
beta.

So if you're not running the latest beta definitely try that.

Doug

On 1/13/08, Douglas Knudsen [EMAIL PROTECTED] wrote:

   Patrick, I have noticed this behavior.  I have not noticed since I
 upgraded to the latest beta 3 though, so far.

 DK

 On Jan 12, 2008 5:20 PM, Dealy, Brian  [EMAIL PROTECTED] wrote:

 Patrick
 
  this may be obvious to most, but sometimes I don't realize that
  flexbuilder collapses the imports
 
  and represents that by putting a plus next to the first one indicating
  it can be expanded by
 
  clicking on plus sign next to the first import…
 
 
 
  sometimes the little things can elude us.
 
  Brian
 
 
 
  *From:*
  [EMAIL PROTECTED]:
  [EMAIL PROTECTED]
  *On Behalf Of *djhatrick
  *Sent:* Saturday, January 12, 2008 12:15 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Imports being lost
 
 
 
  I have noticed several times throughout my AS3 project in Flexbuilder,
  with linked libraries, that sometimes a few of imports at the top of
  the files, all of a sudden go missing? It's a weird bug. Anybody
  notice this?
 
  Thanks,
  Patrick
 
 


 --
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?
  



Re: [flexcoders] Imports being lost

2008-01-13 Thread Doug McCune
oh yeah, I've seen that too, that's a good one :) But at least it's better
than losing all your imports... two steps forward, one step back...

On 1/13/08, Bjorn Schultheiss [EMAIL PROTECTED] wrote:

   Latest beta will imports protected functions for you :P

 mx:HBox
 xmlns:mx=http://www.adobe.com/2006/mxml; 
 mx:Script
 ![CDATA[
 import mx.core.Container.commitProperties;
 override protected function commitProperties():void { }
 ]]
 /mx:Script
 /mx:HBox


 On 14/01/2008, at 4:10 PM, Doug McCune wrote:

 I also remember seeing this, but I don't think it has happened since the
 latest beta. If I remember correctly the issue seems to occur when organize
 imports would get run (possibly automatically) before I had edited the file
 (ie if it was just opened). I think I noticed that if I just hit ctrl-Z to
 undo it would put all the imports back, then if I edited the file and did an
 organize imports it would organize them correctly. I also remember seeing
 other weird things with organize imports, like the imports for things like
 getTimer would get lost, but again I think that was all with a previous
 beta.

 So if you're not running the latest beta definitely try that.

 Doug

 On 1/13/08, Douglas Knudsen  [EMAIL PROTECTED][EMAIL PROTECTED]
 wrote:
 
  Patrick, I have noticed this behavior.  I have not noticed since I
  upgraded to the latest beta 3 though, so far.
 
  DK
 
  On Jan 12, 2008 5:20 PM, Dealy, Brian  [EMAIL PROTECTED] wrote:
 
   Patrick
  
   this may be obvious to most, but sometimes I don't realize that
   flexbuilder collapses the imports
  
   and represents that by putting a plus next to the first one indicating
   it can be expanded by
  
   clicking on plus sign next to the first import…
  
  
  
   sometimes the little things can elude us.
  
   Brian
  
  
  
   *From:*
   [EMAIL PROTECTED]
[EMAIL PROTECTED]
   [mailto:
   [EMAIL PROTECTED]
[EMAIL PROTECTED]
   ] *On Behalf Of *djhatrick
   *Sent:* Saturday, January 12, 2008 12:15 PM
   *To:* flexcoders@yahoogroups.com
   *Subject:* [flexcoders] Imports being lost
  
  
  
   I have noticed several times throughout my AS3 project in Flexbuilder,
   with linked libraries, that sometimes a few of imports at the top of
   the files, all of a sudden go missing? It's a weird bug. Anybody
   notice this?
  
   Thanks,
   Patrick
  
  
 
 
  --
  Douglas Knudsen
  http://www.cubicleman.com  http://www.cubicleman.com
  this is my signature, like it?
 



  


Re: [flexcoders] Setting custom component properties in MXML

2008-01-13 Thread Doug McCune
To go back to your original example, it does seem a bit kludgy to me too. In
this case I would use databinding like so:

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=500
height=800
mx:Script
![CDATA[
[Bindable]
public var imageSource:String;
]]
/mx:Script
mx:Panel x=100 y=100
mx:Image source={imageSource} x=10 y=10/
/mx:Panel
/mx:Canvas

If I'm making MXML components I often do stuff like that and just use
bindable public properties to pass through variables, which works well for
these simple cases.

Doug

On 1/13/08, Joseph Balderson [EMAIL PROTECTED] wrote:

   If you are defining your component in MXML, then no, id cannot be
 private. When you define a component in MXML, the component class will
 inherit from whatever the main container class is, which in this case is
 Canvas. Canvas extends UIComponent, which defines the id attribute as
 being public. The only way to create a component with a private id
 attribute is to create the component in ActionScript, extend a subclass
 of UIcomponent, then override the id getter setter. And this goes for
 'redefining' any built-in property of a UIComponent class.

 __

 Joseph Balderson, Flash Platform Developer | http://joeflash.ca
 Writing partner, Community MX | http://www.communitymx.com
 Abobe Certified Developer  Trainer


 Merrill, Jason wrote:
  When using your own custom made components in MXML, what is the best way
  to easily set properties? I.e., say I have a simple component that has
  an image inside a panel, and I want to set the image source in my MXML,
  like this:
 
  c:MyImageComponent imageSource=myPhoto.jpg /
 
  The way I figured was to setup the component like this with a public
  property - this works, but seems kinda kludgy - isn't there a more
  preferred way (WITHOUT doing it all in Actionscript)?
 
  mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
  width=500 height=800 creationComplete=update()
  mx:Script
  ![CDATA[
  public var imageSource:String;
 
  private function update():void
  {
  userPhotoImage.source = imageSource;
  }
  ]]
  /mx:Script
  mx:Panel x=100 y=100
  mx:Image id=userPhotoImage x=10 y=10/
  /mx:Panel
  /mx:Canvas
 
  Bonus question - is there a way to make the component ids inside of the
  main component private? (i.e., in the example above, make the id for
  the mx:Image component private). Because when I see code hinting, I
  see both the public property imageSource, but also the Image component's
  id, userPhotoImage, which I would prefer to keep private.
 
 
 
  Jason Merrill
  Bank of America
  GTO LLD Solutions Design  Development
  eTools  Multimedia
 
  Bank of America Flash Platform Developer Community
 
 
 
 
 
 
  --
  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] Flex 3 AdvancedDataGrid sources

2008-01-09 Thread Doug McCune
A valid flex builder 3 license will unlock the ADG sources. But the classes
in the Data Visualization package (ADG, charting, OLAP, etc) are not going
to be open-sourced like the rest of the Flex SDK. So once the Flex SDK is
open sourced that still won't include the Advanced Data Grid.

Doug

On 1/9/08, xhanin [EMAIL PROTECTED] wrote:

   Hi,

 I've read that Flex 3 will be open sourced, but are the sources
 available yet? I'm specifically looking for the sources for
 AdvancedDataGrid, and haven't find them so far. Am I missing the obvious?

 Thanks,

 Xavier

  



Re: [flexcoders] Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread Doug McCune
I can see this functionality being useful for various reasons. Ben, are you
thinking you want to track down any listeners that are left over that are
preventing garbage collection?

Doug

On 11/28/07, ben.clinkinbeard [EMAIL PROTECTED] wrote:

   Sometimes it would be really nice be able to access a list of
 currently attached listeners by doing something like
 myButton.listeners. Having that return a collection of objects that
 expose the event type and handler method would be nice and it doesn't
 seem like it would be that hard to implement since they're obviously
 already kept track of somewhere.

 Does anybody else wish this was provided? Does anyone from Adobe have
 info on why its not and/or if it might be someday?

 Thanks,
 Ben

  



Re: [flexcoders] Aha... did someone say C/C++ to AS3???

2007-11-03 Thread Doug McCune
 Yes, the player is fantastic. But how will adobe make money out of it
 if... their business model ( with regards to the flash platform ) now
 revolves around development tools and data/media infrastructure, not
 the player itself which, licensed as you say it is, didn't cost me or
 anyone I know a single penny.

They make mad money off the player in mobile devices.

 So they are, in a sense, putting things at risk by maximizing
 portability and lending their technology for others to leverage
 against their mainstream products.


Where's the risk? Adobe doesn't make bank from Flex Builder. They make
nothing form the Flex framework itself. I don't know the numbers for
how much they make from Flash Authoring, but the point is that these
tools are all a means to an end. That end is getting licensable
versions of the player (ie mobile) onto as many handsets as possible
and selling licenses of their enterprise-level LiveCycle stuff. That's
where the money is. Being able to port c++ code to AS3 has no negative
impact whatsoever. All it means is that more and more code will run on
the Flash Player, which generates more revenue from embedded devices
and likely sells more copies of LiveCycle.


Re: [flexcoders] Carousel component

2007-10-29 Thread Doug McCune
For 3D: http://theflashblog.com/?p=293
For 2D:
http://blogs.digitalprimates.net/codeSlinger/index.cfm/2007/10/28/Max-Presentation

Doug

On 10/29/07, Anzer [EMAIL PROTECTED] wrote:

Where can I get a good implementation of Carousel component in Flex 2 ?

  



Re: [flexcoders] Tween Motion along a path

2007-10-28 Thread Doug McCune
For starters, the presentation you're referring from Michael Labriola to was
just posted online: http://blogs.digitalpri
mates.net/codeSlinger/index.cfm/2007/10/28/Max-Presentation

The basic idea that I think makes sense for you to approach the problem with
is that you want a function that lays out all your items for any given
rotation of the circle. This function doesn't do anything in terms of
animating. All it does is lays out your items given a particular rotation of
your circle. So if you have a method like:

function layoutItems(angle:Number):void {
//layout all your items here for the given angle passed in
}

then you just make sure to call that function whenever you change the
rotation of your circle. You can make that happen in a setter for a property
on your class, and then you can tween that property. Not sure if that's all
making sense. Take a look at the code from the MAX preso in the link above.
You'll see a setter for a property called currentPosition. That setter calls
invalidateDisplayList(), and in updateDisplayist he's got the code that
moves all the items to their proper positions given whatever currentPosition
has been set to.

Then what he does is tweens the currentPosition property. So he doesn't have
to have a bazillion tweens running for each of his items. He tweens a single
property, and then when that property gets set, he makes sure to re-layout
the items.

If you want to go completely overboard and learn how to do crazy stuff with
animating on paths (in 2D and in 3D) then you can read up on Jim Armstrong's
blog: http://algorithmist.wordpress.com He has tons of stuff about animating
along curves and gets into the crazy math you need. That's overkill for what
you're trying to do, but worth checking out.

Doug

On 10/28/07, Bjorn Schultheiss [EMAIL PROTECTED] wrote:

   I wasn't at Max, but have you seen this,
 http://labs.zeh.com.br/blog/?p=95 ?

 Bjorn


 On 29/10/2007, at 1:34 AM, snowjunkie73 wrote:

 At Adobe Max 2007 I went to a session on creating custom components in
 Flex. The example component used in the session was a custom carousel
 component where objects would tween along a circular path. The source
 for this example class was never released, but I am fairly certain
 that the math for the path was done entirely in Flex, and it was not
 using a Flash CS3 generated path. The movement was nice and smooth.

 I'm trying to do my own tweening along a circular path but in a flat
 2d manner. I've done all the math in action script 3 to find the
 circular path but I am having trouble getting objects to move smoothly
 along the path. Basically I pick a number of points along the path
 and use Move effects from point to point. The more points I pick the
 closer it appears to be on a true circle. I've tried both manually
 kicking off each individual move effect from the effect end event and
 also putting the move effects in a sequence effect. Both methods
 cause the motion to be either extremely slow (if I set each move
 duration to be large) or pretty jerky (if I set the move duration to
 be very small like 0-2). It appears that there is a pause between the
 end of each move effect before the next move effect starts.

 The reason I want to do it all in code is that I want to be able to
 vary the radius of my circular path dynamically. Anyone have ideas on
 how I can get smoother motion along my path? Thanks in advance.


  


Re: [flexcoders] Re: iterating across an object

2007-10-28 Thread Doug McCune
BTW, check out Josh Tynjala's writeup of some of the new stuff that's going
to be in ECMAScript:
http://www.zeuslabs.us/2007/10/28/discover-ecmascript-4-the-future-of-actionscript/

Included is Map  :)

You can read the document outlining some of the new stuff in ECMAScript 4
here: http://www.ecmascript.org/es4/spec/overview.pdf

Doug

On 10/27/07, ben.clinkinbeard [EMAIL PROTECTED] wrote:

   // iterate over strings/property names
 for(var prop:String in obj)
 {
 trace(prop +  =  + obj[prop]);
 }

 // iterate over properties
 for each(var member:Object in obj)
 {
 trace(member);
 }

 Should be more complete descriptions in the docs.

  any idea why there is no formal Map object in AS3
 Nope. Maybe ECMAScript doesn't support them? Just guessing.

 HTH,
 Ben

  



Re: [flexcoders] accordion with more than one item open at the same time

2007-10-26 Thread Doug McCune
Yup, here it is:
http://weblogs.macromedia.com/pent/archives/2007/04/the_stack_compo.cfm


Re: [flexcoders] nested viewstack does not initialize in time

2007-10-21 Thread Doug McCune
creationPolicy=all

I'll let someone else reply telling you why that's a bad idea.

On 10/20/07, Thomas Spellman [EMAIL PROTECTED] wrote:

I have a simple navigation interface with a navbar on the left, and a
 content section on the right.  The navbar is composed of several main
 sections (canvases), each of which has several sub sections (a linkbar bound
 to a viewstack).   The content area has a main viewstack with a canvas for
 each main section, and each of those has a viewstack that is bound to the
 subsection linkbars in the navbar.



 The problem is that only the first of the subsection (nested) viewstacks
 is initialized at runtime.  When the user clicks on any section other than
 the first, that section expands, but is empty, because the linkbar's
 dataProvider is still null.  It's only the second time it's selected that
 it's displayed.  When the nav section is expanded (which could be 1 minute
 after loading), the dataProvider of the linkbar is still null.



 Is there some way to force it to initialize all of the nested viewstacks?



 I tried to do this in Application.creationComplete(), but when I iterated
 through the main viewstack and attempted to list the child controls of its
 canvases (there should be 1 viewstack in each), I got an exception because
 they had 0 children at that point.  Any ideas?



 Here's the app, right-click for source.  To see the problem, try clicking
 on a different section twice.  The first time it fails, and the second time
 it works normally.



 http://thosmos.com/develop/mockup/bin/darkroom.html



 T

  



Re: [flexcoders] Re: Import Statement keeps disappearing

2007-10-13 Thread Doug McCune
I noticed this prior to Beta 2 as well, basically organize imports removes a
few things that you don't want removed. mx_internal is one, and getTimer is
another I know has issues. I think this has been a problem and might have
become noticeable with beta 2 because like Jeff said, organize imports is
toggled on by default now.

Another thing I noticed that really sucked is that I had a SWC with a
certain package structure, and I also had local package structure that was
the same as the SWC package structure. Organize imports removed all the
import statements that referenced my local AS classes (ie weren't in the
compiled SWC). Yeah, that was a fun one to manually fix by hand...

Doug

On 10/13/07, reflexactions [EMAIL PROTECTED] wrote:

   I was definitely using it actually in 2 different classes but it
 still removed it.

 Actually from what you describe I can sort of understand the issue,
 in this case to access a variable in a framework super class it
 required mx_internal namespace to be declared but it didnt require it
 to be explicitly used in a reference.

 ie to access isShowingDropdown I only need to use namespace
 mx_internal I dont need to do mx_internal::isShowingDropdown.

 However if I dont do mx_internal::isShowingDropdown then randomly the
 import statement will be removed.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sheriff
 [EMAIL PROTECTED] wrote:
 
  if you dont use a class when you compile flex gets rid of it, so
 save import mx.controls.label but u never use the label as in var
 l:Label = new Label(), then compile -- Import for label gone. so
 when you do mx_internal just make sure you state it somewhere so if
 ur using a function then do mx_internal public function etc..
 
  - Original Message 
  From: reflexactions [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Sent: Saturday, October 13, 2007 2:47:20 AM
  Subject: [flexcoders] Import Statement keeps disappearing
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  FB3 Beta2.
 
 
 
  I have a class where I need to use the mx_internal namespace.
 
 
 
  So I import mx.core.mx_internal and declare use namespace
 mx_internal.
 
 
 
  OK fine so far and it compiles and runs..
 
 
 
  BUT about every 4 or 5 compiles I get an error telling me the
 
  namespace is unknown and lo and behold the import statement has
 gone.
 
  I put it back in and off I go until the next time it occurs. In
 
  between occurences the class files have never been closed, its just
 
  open in my editor and I am working on it and the import only
 vanishes
 
  during the compile process.
 
 
 
  This only happens with mx_internal but it does happen with every
 
  class that uses mx_internal.
 
 
 
  Has anyone seen this issue and if so what is the way to stop it
 
  happening.
 
 
 
  Tks.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  !--
 
  #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{
  

Re: [flexcoders] Any non-attendee access to Adobe Max presentations?

2007-09-25 Thread Doug McCune
Just FYI, Ted Patrick wrote this on his blog:

I think you will be pleasently suprized by what we have planned. This year
MAX is going to reach a lot more people than who attend.

MAX + AMP = ???

See:
http://www.onflex.org/ted/2007/09/adobe-max-flex-top-11-biased-list-of.php#comments

So I wouldn't be surprised if 1) Adobe Media Player is launched at MAX and
2) the recorded sessions from MAX are available through AMP

That's just how it looks to me...

Doug

On 9/24/07, Ed Capistrano [EMAIL PROTECTED] wrote:

   I hope they will... But it will take some time.

 Ed
 proud  happy member
 --- flexcoders@yahoogroups.com flexcoders%40yahoogroups.com 
 [EMAIL PROTECTED] psconnolly%40gmail.com
 wrote:
  Just wondering, since I can't afford to go to
 Chicago...
 
  Will Adobe be providing access to any of the
 presentation materials
  from this year's Max conference?
 
  TIA,
  pc

 __
 Luggage? GPS? Comic books?
 Check out fitting gifts for grads at Yahoo! Search
 http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz
  



Re: [flexcoders] possible solution for RTL (right to left) text input

2007-09-24 Thread Doug McCune
let me save you a bajillion hours of work: give up on this one. RTL is too
hard. Wait for player 10, which will support bi-di text.

I normally don't try to shoot down people's ideas, but seriously, you're not
going to solve this one. It's really damn hard.

That said I'll be pretty damn impressed if you actually do it. But I have a
feeling you're drastically underestimating what's involved.

Doug

On 9/24/07, Willy Ci [EMAIL PROTECTED] wrote:

   ok, thanks,
 let me add more to my code.


 On 9/24/07, paulh [EMAIL PROTECTED] wrote:
 
wci.geo wrote:
   for me? See if it is working in a real RTL environment.
 
  actually it's not just RTL, technically it's BIDI (bidirectional) as
  not
  everything's RTL, numbers are still LTR. so one hundred is still 100 in
  locales
  w/RTL writing systems, not 001. for data entry, the arrow key directions
  also
  need to be reversed (ie left should go right). ditto for the some chars
  like (
  which should come after ). your app needs more intelligence (this
  isn't a
  trivial problem).
 
  btw if you're on mac/windows it's easy enough to add in locales to test.
 



 --
 Willy

 --
 maybe today is a good day to write some code,
 hold on, late me take a nap first  ... Zzzz

 Q: How do you spell google?
 A: Why don't you google it?
 --
  



Re: [flexcoders] JPGEncoder with progress support?

2007-09-22 Thread Doug McCune
This is doable, but requires a little more work than you probably think. To
do this you would modify JPEGEncoder, if you're using Moxie take a look at
the JPEGEncoder class around line 121. You'll see this double for loop:

for (var ypos:int = 0; ypos  height; ypos += 8)
{
for (var xpos:int = 0; xpos  width; xpos += 8)
{
RGB2YUV(source, xpos, ypos, width, height);
DCY = processDU(YDU, fdtbl_Y, DCY, YDC_HT, YAC_HT);
DCU = processDU(UDU, fdtbl_UV, DCU, UVDC_HT, UVAC_HT);
DCV = processDU(VDU, fdtbl_UV, DCV, UVDC_HT, UVAC_HT);
}
}

As far as I can tell that's where the bulk of the processing happens. What
you're going to want to do is add progress events dispatching in there. But
simply dispatching progress events isn't going to be enough. That would
effectively give you notifications for progress of encoding, but since flash
player is single threaded, your display won't ever have time to update while
those for loops are running.

So you'll need to split the processing up into smaller tasks and insert idle
times between them. You'll want to use the Timer class to make your code
wait for a given period (I've found that even just a few milliseconds is
enough for the display to update).

I would split up the algorithm to process one row at a time (so basically
that inner for loop gets turned into its own function). Then have the
function that processes a row start a timer once it's completed, and once
that timer completes, then run the function for the next row and so on until
you finish. That was you can dispatch a progress event for each row and the
display will have time to update.

Hope some of that makes sense.

Doug

On 9/22/07, Jon Bradley [EMAIL PROTECTED] wrote:

   Has anyone attempted to modify the corelib JPGEncoder to support
 progress. Rather than letting it bang away for a seemingly long time,
 I'd like to provide feedback for JPG (and PNG) compression if possible.

 many thanks for any pointers...

 - jon
  



Re: [flexcoders] Re: Eeeeek! Development grinds to a halt due to stupid syntax problem

2007-09-22 Thread Doug McCune
Multiple people have already said this on both of the threads you posted
with the same question: use square brackets to reference your properties.

Try: selectedItem[ADDRESS_LINE#2]

And if that doesn't work tell us that it doesn't and what happens if you
try.

On 9/22/07, candysmate [EMAIL PROTECTED] wrote:

   It's actually a Sage Line 100 database if that means anything to you.
 Sage have now uses SQL Server 2005 i believe, but this old proprietary
 format that I have to work with doesn't allow for anything 'creative'.

 Looks like I'm hosed, unless one of you clever people can think of a
 way around it.

  



Re: [flexcoders] Re: Anyone seen this effect as Flex module - Accordion Menu

2007-09-22 Thread Doug McCune
Here's my example with write-up and source code:
http://dougmccune.com/blog/2007/09/22/nifty-flex-accordion-menu-like-on-applecom/

Or straight to the example (right click to view source):
http://dougmccune.com/flex/apple_accordion/

Doug

On 9/20/07, Tony Alves [EMAIL PROTECTED] wrote:

Doug,
 That is off the board.  Do you think it will be possible to get rid of the
 history tracking on it.
 For some reason that always bothers me about the accordion, so I turn it
 off usually.
 Still, nice job!  You rock dude.

 Tony


 Doug McCune wrote:

  holla

 http://dougmccune.com/flex/apple_accordion

 source will be coming soon, gotta do a little cleanup and write up a blog
 post. It uses a slightly modified Accordion component and some flexlib
 components.

 Doug

  On 9/20/07, Mike Krotscheck [EMAIL PROTECTED] wrote:
 
 We did something very similar to this using a VBox and container
  resizing. Basically, every other element is a clickresponsive component that
  on rollover changes the height of the previous container, with a resize
  effect added for good measure. Fairly simple, should take a decent developer
  about 30 minutes to implement.
 
 
 
  *Michael Krotscheck*
 
  Senior Developer
 
 
 
 
  *RESOURCE INTERACTIVE*
 
  www.resource.com
 
  [EMAIL PROTECTED]
--
 
  *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
  *On Behalf Of *Michael Schmalle
  *Sent:* Thursday, September 20, 2007 2:04 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] Re: Anyone seen this effect as Flex module -
  Accordion Menu
 
 
 
  Hi,
 
  I also found another workaround for the rollover. I added a timer to the
  dispatch method and it will wait the determined amount of milliseconds
  before firing the open event.
 
  This improves usability greatly.
 
  Peace, Mike
 
  On 9/20/07, *Michael Schmalle* [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I slapped this together. There are a lot of things that could be
  improved but, you be the judge.
 
  One thing is it doesn't quite 'slide' like the apple example does but,
  that would be another component that used a canvas and funky depth
  management.
 
  Plus whenever you use rollOver, there are bound to be issues. MouseDowns
  are much better but, this uses rollOver. For the time I put into it about 1
  1/2 hours it's close.
 
  The Image is actually the content that could be whatever you want. The
  gray part is the custom titleBar that was made with an inline itemRenderer
  with the Component tag.
 
  http://www.teotigraphix.com/flexAssets/taskpanefx/AppleMenu.html
 
  The example was done with this product;
 
  http://www.teotigraphix.com/components/containers/taskpanefx
 
  Peace, Mike
 
 
 
  On 9/20/07, *Tony Alves *[EMAIL PROTECTED]  wrote:
 
  Now there is an example of why you should use flex over ajax.
 
  oneproofdk wrote:
 
   Hi Mike
 
  Sounds good - if you dont mind the trouble - I'd love to see an
  example on how to make the Apple version
 
  Thanks for your reply though.
 
  Mark
 
 
 
 
 
--
  Teoti Graphix
  http://www.teotigraphix.com
 
  Blog - Flex2Components
  http://www.flex2components.com
 
  You can find more by solving the problem then by 'asking the question'.
 
 
 
 
  --
  Teoti Graphix
  http://www.teotigraphix.com
 
  Blog - Flex2Components
  http://www.flex2components.com
 
  You can find more by solving the problem then by 'asking the question'.
 

   



Re: [flexcoders] Re: Anyone seen this effect as Flex module - Accordion Menu

2007-09-20 Thread Doug McCune
holla

http://dougmccune.com/flex/apple_accordion

source will be coming soon, gotta do a little cleanup and write up a blog
post. It uses a slightly modified Accordion component and some flexlib
components.

Doug

On 9/20/07, Mike Krotscheck [EMAIL PROTECTED] wrote:

We did something very similar to this using a VBox and container
 resizing. Basically, every other element is a clickresponsive component that
 on rollover changes the height of the previous container, with a resize
 effect added for good measure. Fairly simple, should take a decent developer
 about 30 minutes to implement.



 *Michael Krotscheck*

 Senior Developer




 *RESOURCE INTERACTIVE*

 http://www.resource.com/www.resource.com

 [EMAIL PROTECTED]
   --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Michael Schmalle
 *Sent:* Thursday, September 20, 2007 2:04 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Anyone seen this effect as Flex module -
 Accordion Menu



 Hi,

 I also found another workaround for the rollover. I added a timer to the
 dispatch method and it will wait the determined amount of milliseconds
 before firing the open event.

 This improves usability greatly.

 Peace, Mike

 On 9/20/07, *Michael Schmalle* [EMAIL PROTECTED] wrote:

 Hi,

 I slapped this together. There are a lot of things that could be improved
 but, you be the judge.

 One thing is it doesn't quite 'slide' like the apple example does but,
 that would be another component that used a canvas and funky depth
 management.

 Plus whenever you use rollOver, there are bound to be issues. MouseDowns
 are much better but, this uses rollOver. For the time I put into it about 1
 1/2 hours it's close.

 The Image is actually the content that could be whatever you want. The
 gray part is the custom titleBar that was made with an inline itemRenderer
 with the Component tag.

 http://www.teotigraphix.com/flexAssets/taskpanefx/AppleMenu.html

 The example was done with this product;

 http://www.teotigraphix.com/components/containers/taskpanefx

 Peace, Mike



 On 9/20/07, *Tony Alves *[EMAIL PROTECTED]  wrote:

 Now there is an example of why you should use flex over ajax.

 oneproofdk wrote:

  Hi Mike

 Sounds good - if you dont mind the trouble - I'd love to see an
 example on how to make the Apple version

 Thanks for your reply though.

 Mark





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

 Blog - Flex2Components
 http://www.flex2components.com

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




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

 Blog - Flex2Components
 http://www.flex2components.com

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


Re: [flexcoders] Adding buttons to an Accordion header

2007-09-18 Thread Doug McCune
I might try to do a full post about this soon, but you can try checking out
the CanvasButton component in FlexLib. Basically this is a subclass of
Button that works like Canvas, so you can easily add whatever children to it
that you want. So you would use that to create your header renderer, which
you can set as a header renderer because it actually subclasses Button. You
can get the FlexLib components here: http://code.google.com/p/flexlib/

Hopefully that makes some sense. I'll try to write up a post soon since I've
seen this question asked multiple times.

Doug

On 9/17/07, Alex Harui [EMAIL PROTECTED] wrote:

Yes, but you have to float buttons over the header.  Someone may have
 done this already.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *kundigee
 *Sent:* Monday, September 17, 2007 8:27 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Adding buttons to an Accordion header



 I am dynamically creating an Accordion at run time. I place a new
 panel in the Accordion which generates a new Accordion header that I
 attribute an icon to. All good so far. I need to dynamically place +/-
 buttons on the right side of each header to give the user the ability
 to replicate, or delete the panel/Accordion component. I can't seem to
 addChild to the header with a child button. The Accordion header is a
 button itself and not a container. I started to create a custom MXML
 module extending Button, which I intended to substitute via the
 headerRenderer if I could work something out, but that also will not
 allow me to drop anything onto the component, as it is not a container.

 Is there any way to do what I am trying to accomplish?

  



Re: [flexcoders] Adding buttons to an Accordion header

2007-09-18 Thread Doug McCune
Aight, check this out:

http://dougmccune.com/blog/2007/09/18/using-complex-headers-with-the-flex-accordion/

Doug

On 9/17/07, Doug McCune [EMAIL PROTECTED] wrote:

 I might try to do a full post about this soon, but you can try checking
 out the CanvasButton component in FlexLib. Basically this is a subclass of
 Button that works like Canvas, so you can easily add whatever children to it
 that you want. So you would use that to create your header renderer, which
 you can set as a header renderer because it actually subclasses Button. You
 can get the FlexLib components here: http://code.google.com/p/flexlib/

 Hopefully that makes some sense. I'll try to write up a post soon since
 I've seen this question asked multiple times.

 Doug

 On 9/17/07, Alex Harui [EMAIL PROTECTED] wrote:
 
 Yes, but you have to float buttons over the header.  Someone may have
  done this already.
 
 
   --
 
  *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED]
  *On Behalf Of *kundigee
  *Sent:* Monday, September 17, 2007 8:27 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Adding buttons to an Accordion header
 
 
 
  I am dynamically creating an Accordion at run time. I place a new
  panel in the Accordion which generates a new Accordion header that I
  attribute an icon to. All good so far. I need to dynamically place +/-
  buttons on the right side of each header to give the user the ability
  to replicate, or delete the panel/Accordion component. I can't seem to
  addChild to the header with a child button. The Accordion header is a
  button itself and not a container. I started to create a custom MXML
  module extending Button, which I intended to substitute via the
  headerRenderer if I could work something out, but that also will not
  allow me to drop anything onto the component, as it is not a container.
 
  Is there any way to do what I am trying to accomplish?
 
   
 




Re: [flexcoders] Re: Adding buttons to an Accordion header

2007-09-18 Thread Doug McCune
I'm using Flex Builder 3 and the example I posted seems to work for me.
Yeah, you might not get to use Design View, but then just don't use Design
View :) I didn't even realize this since I rarely ever use DV, but yeah, it
won't let you drop stuff on the CanvasButton. I have no problems adding via
MXML though. You're saying that if you add children in the MXML file then
FB3 won't compile that?

BTW, you should get the latest flexlib source code to use the
CanvasButtonAccordionHeader that I just added.

Doug

On 9/18/07, kundigee [EMAIL PROTECTED] wrote:

   Thanks guys for the great advise, although I'm still kinda stuck

 1) Floating the buttons won't really work as the Accordions are
 dynamically created and the number of headers and panels can become
 very large requiring the headers to scroll on and off of the screen,
 sometime 1/2 off. This would be dificult for me to keep up with, not
 immpossible, but a lot of work..
 2) Tried the CanvasButton and I thought that this would work, but I
 can't seem to get it to work (I am using Flex 3 BETA). The internal
 ActionScript adds the canvas to the button, as a child, but the
 Canvas never shows up and the IDE won't allow anything to be dropped
 on the Button/Canvas or manually inserted via MXML. I get the
 warning message Design Mode: Cannot create Button because Button is
 not a vallid parent for that kind of item.

 Am I doing something wrong, or does it just not work in Flex 3?

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Doug
 McCune [EMAIL PROTECTED] wrote:
 
  I might try to do a full post about this soon, but you can try
 checking out
  the CanvasButton component in FlexLib. Basically this is a subclass
 of
  Button that works like Canvas, so you can easily add whatever
 children to it
  that you want. So you would use that to create your header
 renderer, which
  you can set as a header renderer because it actually subclasses
 Button. You
  can get the FlexLib components here:
 http://code.google.com/p/flexlib/
 
  Hopefully that makes some sense. I'll try to write up a post soon
 since I've
  seen this question asked multiple times.
 
  Doug
 
  On 9/17/07, Alex Harui [EMAIL PROTECTED] wrote:
  
   Yes, but you have to float buttons over the header. Someone
 may have
   done this already.
  
  
   --
  
   *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com

 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On
   Behalf Of *kundigee
   *Sent:* Monday, September 17, 2007 8:27 PM
   *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   *Subject:* [flexcoders] Adding buttons to an Accordion header
  
  
  
   I am dynamically creating an Accordion at run time. I place a new
   panel in the Accordion which generates a new Accordion header
 that I
   attribute an icon to. All good so far. I need to dynamically
 place +/-
   buttons on the right side of each header to give the user the
 ability
   to replicate, or delete the panel/Accordion component. I can't
 seem to
   addChild to the header with a child button. The Accordion header
 is a
   button itself and not a container. I started to create a custom
 MXML
   module extending Button, which I intended to substitute via the
   headerRenderer if I could work something out, but that also will
 not
   allow me to drop anything onto the component, as it is not a
 container.
  
   Is there any way to do what I am trying to accomplish?
  
  
  
 

  



Re: [flexcoders] Adding buttons to an Accordion header

2007-09-18 Thread Doug McCune
Yeah, you need to download flexlib. I just updated the zip file to include
the CanvasButtonAccordionHeader component. Download it here:
http://code.google.com/p/flexlib/downloads/list

unzip that zip file, grab the flexlib.swc file out of the bin directory that
gets unzipped. Add that into your project directory and set the project
preferences panel to reference that SWC file.

Doug

On 9/18/07, Steve Hueners [EMAIL PROTECTED] wrote:

   I seem to be missing a step in configuring my project's implementation
 of this [to Peter Griffinize my adulation] freak'n awesome component.

 Am told:
 Could not resolve CanvasButtonAccordionHeader to a component
 implementation. HeaderRenderer.mxml CanvasButtonAccodionHeader

 I've set a sourcepath but with no import being declared it isn't clear
 how/where sourcepath is referenced. given the http in the namespace is
 everything coming from flexlib?

 utmost thx
 --steve...


 On 9/18/07, Doug McCune [EMAIL PROTECTED] doug%40dougmccune.com
 wrote:
 
 
 
 
 
 
  Aight, check this out:
 
 
 http://dougmccune.com/blog/2007/09/18/using-complex-headers-with-the-flex-accordion/
 
  Doug
 
 
 
  On 9/17/07, Doug McCune [EMAIL PROTECTED] doug%40dougmccune.com
 wrote:
   I might try to do a full post about this soon, but you can try
 checking out the CanvasButton component in FlexLib. Basically this is a
 subclass of Button that works like Canvas, so you can easily add whatever
 children to it that you want. So you would use that to create your header
 renderer, which you can set as a header renderer because it actually
 subclasses Button. You can get the FlexLib components here:
 http://code.google.com/p/flexlib/
  
   Hopefully that makes some sense. I'll try to write up a post soon
 since I've seen this question asked multiple times.
  
   Doug
  
  
   On 9/17/07, Alex Harui  [EMAIL PROTECTED] aharui%40adobe.com wrote:
   
   
   
   
   
   
   
   
   
Yes, but you have to float buttons over the header. Someone may have
 done this already.
   
   
   


   
From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@
 yahoogroups.com] On Behalf Of kundigee
   
Sent: Monday, September 17, 2007 8:27 PM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: [flexcoders] Adding buttons to an Accordion header
   
   
   
   
   
   
   
I am dynamically creating an Accordion at run time. I place a new
panel in the Accordion which generates a new Accordion header that I
attribute an icon to. All good so far. I need to dynamically place
 +/-
buttons on the right side of each header to give the user the
 ability
to replicate, or delete the panel/Accordion component. I can't seem
 to
addChild to the header with a child button. The Accordion header is
 a
button itself and not a container. I started to create a custom MXML
module extending Button, which I intended to substitute via the
headerRenderer if I could work something out, but that also will not
allow me to drop anything onto the component, as it is not a
 container.
   
Is there any way to do what I am trying to accomplish?
   
   
   
   
   
  
  
 
 
 
 
 

  



Re: [flexcoders] Request for statistics/statements that demonstrate the growing interest on Flex

2007-09-15 Thread Doug McCune
Mike Potter has a few posts about the number of flex job postings. Check out
the most recent one here:
http://www.riapedia.com/2007/09/14/flex_jobs_continue_amazing_growth

On 9/15/07, João [EMAIL PROTECTED] wrote:

   Hey guys,

 I'm writing a document to prove that there is more and more interest
 on the Flex/Flash Platform everyday. We all know that this is true
 from our personal experiences, but I need some statistics/statements
 from reliable sources to prove my point of view.
 Can you give me some help with this?

 Thanks,

 João Saleiro

  



Re: [flexcoders] TitleWindow icon

2007-09-14 Thread Doug McCune
titleIcon is a different property. Why I'll never know.

On 9/14/07, candysmate [EMAIL PROTECTED] wrote:

   Is this correct for inserting an icon into a TitleWindow?

 icon=@Embed(source='../images/dissectionicon.png')

 Try as I might, I cannot get the icon to appear. My TitleWindow is
 being used as a popup by PopUpManager. Hmm...

  



Re: [flexcoders] How can I get the Accordion headerRender instances

2007-09-14 Thread Doug McCune
To not answering your question and instead ask another one: Why do you need
access to the header renderer? If you want to alter the label, or blank out
the label, you can use a custom extension of Button and set that as your
header renderer (ie if you wanted header renderers that always converted the
labels to uppercase or something). Or if you just want to get access to the
labels, that's simply the label property of each child, so looping over the
children will get you what you need.

Doug

On 9/14/07, Brian Holmes [EMAIL PROTECTED] wrote:

I'm trying to extend the Accordion class, I'm listening for
 creationComplete, and when it fires I'd like to loop over the headers and
 pull off the labels, but I can't seem to get a handle on them. I've tried
 looping over the children() but I need to get the actual headerRenderer
 instance. I'm willing to trade the answer for a digg! or I might be able to
 be talked into sending the first person who answers a free t shirt.



 Thanks for any help!



 Brian..

 --
 ***
 The information in this e-mail is confidential and intended solely for the
 individual or entity to whom it is addressed. If you have received this
 e-mail in error please notify the sender by return e-mail delete this e-mail
 and refrain from any disclosure or action based on the information.
 ***

  



Re: [flexcoders] Re: Breakpoint jumps away

2007-09-11 Thread Doug McCune
I've seen this mostly when you're debugging code that was compiled, then you
altered the code and are still debugging the old one. So if you're debugging
and then you add in 2 whitespace lines to the code, the debugger gets thrown
off by two lines. I've also seen this when I try to debug a module and the
app has a compiler error but the IDE didn't catch it and pretended like it
compiled anyway. The basic idea is your code doesn't match the code that was
compiled.

If you're in the middle of a debug session, you add in a bunch of code, then
you try to add a breakpoint to your new code it won't work until you stop
the debug session.

This might not be your issue at all, but that's the only time I've
experienced weird jumping of break points.

Doug


On 9/11/07, Michael Schmalle [EMAIL PROTECTED] wrote:

   I have had this problem also, seems sporadic.

 You double click on a executing line and it jumps to a weird line 3-8
 lines down out of the method.

 Peace, Mike


 On 9/11/07, Tracy Spratt [EMAIL PROTECTED] wrote:
 
 Check the project settings to be sure you still have generate html
  wrapper selected.
 
 
 
  Then look for errors in the problems tab.
 
 
 
  Tracy
 
 
   --
 
  *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
  *On Behalf Of *Steve Hueners
  *Sent:* Tuesday, September 11, 2007 7:29 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] Re: Breakpoint jumps away
 
 
 
  After Project | Clean the project would no longer connect the debugger.
  It'd timeout complaining at the absence of appName-debug.*  apparently,
  non-recreatable. Had to restore to a checkpoint.
 
  Is this 'just the way it is' or are there best practices for IDE
  stability optimization published?
 
  Appreciate the help...thx
  --steve...
 
  On 9/11/07, *Mike Morearty* [EMAIL PROTECTED] wrote:
 
  The only time Flex Builder does this is when, as Sherriff said, the
  line where you set the breakpoint doesn't have any code on it.
  Obviously in this case something has gone wrong, and Flex Builder
  thinks there is no code on that line when there is in fact code there.
 
  A couple of things to try (I don't know of any bugs in this area, but
  these are just things that are worth a shot):
 
  - Project  Clean
  - Close the editor file and reopen it
 
  Mike Morearty, Adobe Flex Builder team
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Steve
  Hueners [EMAIL PROTECTED] wrote:
  
   Here's the code in question. I set it on (call it) line #5 -
   listOfTitles.push. It jumps down to the leftbrace of the next
  function. Not
   to the function declaration itself...to the line below. [sigh]
  
   The problem i'm troubleshooting is related to that array -
  listOfTitles. So
   I figured at least I could stay inside the function if I'd put a dummy
   assignment on the line below the push. The breakpoint _still drops
  down to
   the next function.
  
   public function MenuItem ( value:String, ordinal:int )
   {
   this.value = value;
   this.ordinal = ordinal;
   listOfTitles.push(value);
  
   }
  
  
   public function get list():Array
   {
   return listOfTitles;
   }
  
  
  
   On 9/11/07, Sheriff [EMAIL PROTECTED] wrote:
   
   
you have to set it on a Line of Code and not just an empty line or
  a line
with comments, sometimes i do that and the same thing happens to me.
- Original Message 
From: Steve Hueners [EMAIL PROTECTED]
To: flexcoders flexcoders@yahoogroups.comflexcoders%40yahoogroups.com
  
Sent: Tuesday, September 11, 2007 1:19:14 PM
Subject: [flexcoders] Breakpoint jumps away
   
I've set a breakpoint at a specific line - a blue dot verifies the
accuracy of my double click...then when I click debug the dot jumps
all the way out of the function to a spot of zero interest to me.
   
whatzzthat?
   
thx
--steve...
   
   
--
Shape Yahoo! in your own image. Join our Network Research Panel
  today!http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
 
  http://us.rd.yahoo.com/evt=48517/*http:/surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
  
   
   
   
  
 
 
 
 


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

 Blog - Flex2Components
 http://www.flex2components.com

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

  



Re: [flexcoders] Re: Flex eye candy source

2007-09-10 Thread Doug McCune
Here's that app stepped up a notch:
http://dougmccune.com/blog/2007/03/27/updated-mxna-rss-reader-flex-app-now-with-source/

I posted the code for that one.

Doug

On 9/10/07, Abyss Knight [EMAIL PROTECTED] wrote:

   Most likely its from here, the cube effect that is:


 http://weblogs.macromedia.com/auhlmann/archives/2007/03/distortion_effe.cfm

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, 
 garrett.reynolds
 [EMAIL PROTECTED] wrote:
 
  Hi all was wondering if anyone knew where I could find the source
  code for the following Flex app? - There was no mention of the code on
  the site. I'm familar with the reflective effect but combined with the
  moving images and spinning box it is amazing
 
  http://dougmccune.com/flex/awesomerss2/
 
  Thanks, Garrett
 

  



Re: [flexcoders] AS3 Components?

2007-08-31 Thread Doug McCune
FlexLib is Flex-framework dependent, I think Jesse was asking about AS3,
non-Flex libraries (ie you can use them in Flash projects).

Doug

On 8/31/07, greg h [EMAIL PROTECTED] wrote:

   flexlib.net

 now redirecting to:
 http://code.google.com/p/flexlib/

 and also now including:
 Flex Scheduling Framework
 http://labs.adobe.com/wiki/index.php/Flex_Scheduling_Framework
  



Re: [flexcoders] AS3 Components?

2007-08-31 Thread Doug McCune
touche

On 8/31/07, Michael Schmalle [EMAIL PROTECTED] wrote:

   Doug,

 How can you use 'Flex 2 SDKhttp://www.adobe.com/products/flex/downloads/'
 in Flash CS3 ?

 Peace, Mike

 On 8/31/07, Doug McCune [EMAIL PROTECTED] wrote:
 
FlexLib is Flex-framework dependent, I think Jesse was asking about
  AS3, non-Flex libraries (ie you can use them in Flash projects).
 
  Doug
 
  On 8/31/07, greg h [EMAIL PROTECTED] wrote:
  
 flexlib.net
  
   now redirecting to:
   http://code.google.com/p/flexlib/
  
   and also now including:
   Flex Scheduling Framework
   http://labs.adobe.com/wiki/index.php/Flex_Scheduling_Framework
  
 
 


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

 Blog - Flex2Components
 http://www.flex2components.com

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



Re: [flexcoders] Where to learn intermediate/advanced Flex?

2007-08-30 Thread Doug McCune
Dive into the Framework source. IMO that's the best thing to study. Figure
out how Adobe made all the components in the Framework. Pick something that
you don't like about one of the framework components and try to change it.
Subclass the framework class you want to alter and hack away.

If you want some fun things to figure out try understanding how the
scrolling classes work (ListBase, DataGrid, etc), that should occupy you for
a while :)

An approach I took was listen for what kinds of components people are asking
for on flexcoders or on their blogs and try to make them. That's how nearly
all my components in flexlib started.

Doug

On 8/30/07, Peter Connolly [EMAIL PROTECTED] wrote:

   There's the Flex 2 Developer's Guide
 http://www.adobe.com/support/documentation/en/flex/.  That's pretty
 comprehensive and I find a lot of answers in there.

 On 8/30/07, Kyle Neath [EMAIL PROTECTED] wrote:
 
I feel like I'm coming to a point now where I get the basics of Flex.
  I've got the whole component architecture down, I know the basics of
  Actionscript. I can create my own components by extending UIComponent
  and implementing the proper interfaces.
 
  But I still feel like there's so much I have to learn: and I'm not
  sure where to look anymore. I've tried looking for books: but I
  honestly haven't found one that isn't either a complete beginners
  book, or isn't written for Flex 1/1.5. I've tried looking for online
  communities around Flex, but haven't found anything really at all.
 
  Any advice on where to look next? Or should I just start tackling
  projects and learn as I go?
 
  -Kyle
 

  



Re: [flexcoders] Re: Using [Event...] in Custom Classes

2007-08-25 Thread Doug McCune
Yeah, here's the way I think it works in the current FB 3 release anyway
(which is the way ben described too):

You put metadata in your class, something like:

[Event(name=myEvent, type=com.me.MyEvent)]

So then you type: myClass.addEventListener( and then the auto events come up
in the list that allows you to select one of the possible events. The IDE
knows that there is an event named myEvent, which is defined by the
metadata. The IDE does not know what static constant myEvent is actually
defined by, but the IDE does try to substitute in a static constant from the
MyEvent class. It just converts the string that is in the metadata tag into
a format like MY_EVENT. It converts all characters to uppercase, and then
anywhere that there is a change in case in your event it adds in an
underscore. So if you had metadata that defined an event called
myReallyCoolEvent, then the IDE would bring up code hinting that read like
this: MyEvent.MY_REALLY_COOL_EVENT.

So in you MyEvent class, if you don't have the event defined with that
naming convention, then the code autocomplete isn't going to work for you.
You'll type .addEventListener(, get the list of events that the IDE thinks
should be defined in certain constants, and then you'll have to change it
after the fact to redefine the proper const names.

I've taken to just naming my stuff based on what the IDE assumes. So if I
define an event of type myEvent, I know that I need to have MY_EVENT
constant in the event class.

There are actually a few cases of this not working with the framework
classes. I don't remember where I've seen it, but some of the internal
framework source defines events that don't conform to the proper naming
convention, so when you get the autocomplete for the addEventListener call
it actually fills in with undefined constants that won't compile.

Doug

On 8/25/07, Tony Alves [EMAIL PROTECTED] wrote:

   ok, I see your point. I did not look at it that way. So, it is a bug
 then.

 ben.clinkinbeard wrote:
 
  Event metadata is definitely not ignored in AS. Take a look at just
  about any class in the framework and you'll see plenty [Event] tags.
  It is there specifically to provide code hinting and support for
  binding in MXML.
 
  The problem here is that the code completion engine is offering class
  constants that don't exist. They seem to be based on the constant
  value, with some reformatting applied to convert to all uppercase and
  inserting underscores anywhere there is a lowercase next to uppercase.
  So MyEvtClass.FLY = flyAway appears in the completion list as
  MyEvtClass.FLY_AWAY
 
  Ben
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  mailto:flexcoders% flexcoders%2540yahoogroups.com, Tony Alves
 [EMAIL PROTECTED] wrote:
  
   Jurgen,
   I believe the problem here is that you are setting up a metadata tag
 on
   your class in actionscript which is not needed and I think it was said
   that Event meta tags are ignored by the compiler in ActionScript
   classes. Someone here can clear that up for us. I am not sure why,
  but
   it is only needed on MXML when setting up an event. Because you are
   extending your class as an EventDispatcher, you only just need to
   dispatch the event you are setting up.
  
   package components
   {
   import flash.events.Event;
   public class MyClass extends EventDispatcher
   {
   public static const MY_EVENT:String = myEvent;
  
   private function myFunction():void
   {
   dispatchEvent(new Event(MyClass.MY_EVENT));
   }
   }
   }
  
   THEN you can instantiate a MyClass variable and add an event listener:
   var mine:MyClass = new MyClass();
   mine.addEventListener(MyClass.MY_EVENT,someHandlerFunction);
  
   The code assist is trying to show you the events on the event
  dispatcher
   and there really is just the two by default (activate and deactivate).
   Don't ask me why though. I always set up my Event types as constant
   vars on my class, so I know I need to access them off my class name.
   This should work the same way for custom Events also.
  
   Maybe an adobe flex expert can explain this better than I, but that is
   my understanding.
  
   Regards,
   Tony
  
   P.S. ( you were borrowing (some call it hijacking) another thread and
 I
   think it was getting missed.)
  
   Jurgen Wrote: 
   There seems to be an issue using a custom class' event metadata in an
   addEventListener statement. Here is an example:
  
   package com.example
   {
  
   import flash.events.EventDispatcher;
  
   [Event(name=myEvent, type=flash.events.Event)]
  
   public class MyClass extends EventDispatcher
   {
  
   // class code
  
   private function myFunction():void
   {
   dispatchEvent(new Event(myEvent));
   }
  
   }
  
   }
  
   When using an instance of that class and creating an addEventListener
 in
   code (not using it with MXML tags) Flex Builder's code assist lists
 the
   event, but splits it apart and shows it as Event.MY_EVENT.
  
   That of course throws a 

Re: [flexcoders]Can't convert XML to ArrayCollection in AS3

2007-06-08 Thread Doug McCune

XMLListCollection has a toArray() method.

So maybe:

var ac:ArrayCollection = new ArrayCollection(new
XMLListCollection(xml.menuas XMLList).toArray());

it might be a bit nicer written on more than one line, but you get the idea.

Doug

On 6/8/07, dorkie dork from dorktown [EMAIL PROTECTED]
wrote:


  Since the ArrayCollection can only accept an Array I think my problem is
how to convert an XMLList from an XML object into an Array.


On 6/8/07, dorkie dork from dorktown [EMAIL PROTECTED]
wrote:

 I cant successfully convert xml to a array collection. I don't know what
 I'm doing wrong. It works in MXML not AS3.

 Here is the result from a service call:

 public function resultHandler(event:ResultEvent):void {

 trace(result : + event.result);
 var myXML:XML = XML(event.result);
 var ac:ArrayCollection = new ArrayCollection();
 ac.source = myXML.menu as Array;
 ac.refresh();
 trace(ac.length);
 linkBarNav.dataProvider = ac;

 }


 TypeError: Error #1034: Type Coercion failed: cannot convert
 [EMAIL PROTECTED] to Class.

 It works fine with this model :

 mx:Model id=menuXML
 mainmenu
 menu id=madmin label=Maintenance role=admin
 roleAction=hide
 submenu id=mudacControl label=UDAC Controls
 link=/das/admin/udacControlMaint.faces role=base roleAction=diable/
 submenu id=mcmrlUsers label=CMRL Users
 link=/das/admin/cmrlUsersMaint.faces role=base roleAction=diable/
 submenu id=mtemplates label=Templates
 link=/das/admin/templateMaint.faces role=base roleAction=diable/
 submenu id=mquestions label=Questions
 link=/das/admin/questionMaint.faces role=base roleAction=diable/
 /menu
 menu id=mwork label=Queues role=base
 submenu id=mworkQueue label=Work Queue
 link=/das/work/workQueue.faces role=base roleAction=diable/
 submenu id=missuesQueue label=Issues Queue
 link=/das/work/issuesQueue.faces role=base roleAction=diable/
 submenu id=mjbpmNodes label=Nodes
 link=/das/work/nodes.faces role=base roleAction=diable/
 /menu
 menu id=mhelp label=Help role=base
 submenu id=mhelpDoc label=Help Document
 link=/somelink role=base roleAction=diable/
 /menu
 /mainmenu
 /mx:Model

 mx:ArrayCollection id=myAC source={menuXML.menu}
 filterFunction=filterMenu/


 



Re: [flexcoders] Trouble skinning HSlider

2007-06-05 Thread Doug McCune

Extend mx.controls.sliderClasses.SliderThumb

override the measure() function with something like this:

override protected function measure():void
   {
   super.measure();

   measuredWidth = THE_WIDTH_YOU_WANT;
   measuredHeight = THE_HEIGHT_YOU_WANT;
   }

Then set the sliderThumbClass attribute of your Slider to the class
reference for your extended thumb class. The default SliderThumb class has a
width and height of 12 hardcoded in.

Doug



On 6/5/07, joshbuhler [EMAIL PROTECTED] wrote:


  First, a picture of what's going on:

http://joshbuhler.com/images/sliders.jpg

I want the slider to appear like the slider on the right. However, once it
loads in Flex, I get
the slider on the left - with the shrunken thumb button.

The graphics were done in Flash CS3, and have been exported into a swf.
The CSS rule I've
defined for the slider is as follows:

Slider {
thumbDisabledSkin: Embed(source=/assets/skins/viewerSkin.swf,
symbol=SliderThumb_disabledSkin);
thumbDownSkin: Embed(source=/assets/skins/viewerSkin.swf,
symbol=SliderThumb_downSkin);
thumbOverSkin: Embed(source=/assets/skins/viewerSkin.swf,
symbol=SliderThumb_overSkin);
thumbUpSkin: Embed(source=/assets/skins/viewerSkin.swf,
symbol=SliderThumb_upSkin);
trackHighlightSkin: Embed(source=/assets/skins/viewerSkin.swf,
symbol=SliderHighlight_Skin);
trackSkin: Embed(source=/assets/skins/viewerSkin.swf,
symbol=SliderTrack_Skin);
dataTipOffset: -50;
}

I've been searching for ways to specify the height of the thumb for a
while now, and
haven't had any luck. Any suggestions?

 



Re: [flexcoders] Chart snapshots

2007-06-03 Thread Doug McCune

This doesn't get you a 100% solution, but maybe it's good enough for you:
http://dougmccune.com/blog/2007/06/03/save-a-snapshot-image-of-a-flex-app-without-a-server/

It opens a popup window with a snapshot image of whatever Flex component you
specify. The user can then right click and copy or save. It doesn't work in
IE.

Doug

On 6/3/07, Brendan Meutzner [EMAIL PROTECTED] wrote:


  Andrew Trice has a great tutorial on this...


http://www.cynergysystems.com/blogs/page/andrewtrice?entry=flex_2_bitmapdata_tricks_and




On 6/3/07, simonjpalmer [EMAIL PROTECTED] wrote:

   I have a requirement to be able to copy and paste a chart from my
 flex app to another application via the clipboard. The chart has to
 come exactly as it appears on the screen, almost like an
 alt-printscreen, but only the portion of the screen displaying the
 chart.

 Has anyone tried anything like this?

 I spotted a display object method called cacheAsBitmap which seems to
 be an optimisation for rendering, but I wondered if it was possible to
 get access to the display bitmap.

 Any clues?




--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca
 



<    1   2   3   >