[flexcoders] Re: dynamic image gallery

2009-07-06 Thread stinasius
i hard-code an image path in imgGallery.mxml and it shows up perfectly bt i 
can't hard-code an image path in thumbnail.mxml coz its used as an item 
renderer for the horizontal list in imgGallery.mxml. but the image path work 
perfectly. 



[flexcoders] How to disable TitleWindow dragable

2009-07-06 Thread j2me_soul
How can I stop dragable function?



Re: [flexcoders] How to disable TitleWindow dragable

2009-07-06 Thread claudiu ursica
Do you mean that the Title window cannot be dragged anymore? 
C





From: j2me_soul j2me_s...@163.com
To: flexcoders flexcoders@yahoogroups.com
Sent: Monday, July 6, 2009 10:16:21 AM
Subject: [flexcoders] How to disable TitleWindow dragable





How can I stop dragable function?





 200万种商品,最低价格,疯狂诱惑你  
   


  

Re: [flexcoders] How to disable TitleWindow dragable

2009-07-06 Thread Sefi Ninio
Catch mouseEvent.DRAG_START, and in the handler stop it's propagation.
(event.stopImmediatePropagation)
Do the same for mouseEvent.DRAG_STOP.

On Mon, Jul 6, 2009 at 10:32 AM, claudiu ursica the_bran...@yahoo.comwrote:



 Do you mean that the Title window cannot be dragged anymore?
 C

 --
 *From:* j2me_soul j2me_s...@163.com
 *To:* flexcoders flexcoders@yahoogroups.com
 *Sent:* Monday, July 6, 2009 10:16:21 AM
 *Subject:* [flexcoders] How to disable TitleWindow dragable

  How can I stop dragable function?



 --
 200万种商品,最低价格,疯狂诱惑你http://count.mail.163.com/redirect/footer.htm?f=http://gouwu.youdao.com

  



Re: [flexcoders] HELP PLS

2009-07-06 Thread niamath basha
I think it will be helpful http://www.adobe.com/devnet/flex/quickstart.html
i started from here itself

With Regards,
Niamath Basha


On Fri, Jul 3, 2009 at 10:47 PM, Vivian Richard kanps...@gmail.com wrote:



 http://www.adobe.com/devnet/flex/videotraining/


 On Fri, Jul 3, 2009 at 8:21 AM, 
 veerendragaonkar.viren...@yahoo.comgaonkar.virendra%40yahoo.com
 wrote:
 
 
  I'm trying to learn Flex.
  Can anyone guide me, where I can get the information about this.
  I am beginner to Flex
  Thanks in Advance.
 
 
  



Re: [flexcoders] My itemrenderer is mercurial!!

2009-07-06 Thread leds usop
how are you setting the selection status of the checkbox? override the setter 
method for data, then place a default value (an if else perhaps) if the data is 
null, or is int's default state.

--- On Mon, 7/6/09, j2me_soul j2me_s...@163.com wrote:

From: j2me_soul j2me_s...@163.com
Subject: [flexcoders] My itemrenderer is mercurial!!
To: flexcoders flexcoders@yahoogroups.com
Date: Monday, July 6, 2009, 7:59 AM
















  
  The itemrenderer is a HBox. There is a check and a label in the HBox.
When I selected any of the checkbox and scrolled the scrollbar of the List 
which used the itemrenderer, the stange thing happened, the selected checkbox 
is no longer the same checkbox !! Maybe the last one, maybe the second one ~~~  
How can I fix this ?




200万种商品,最低价格,疯狂诱惑你

 

  




 

















  

Re: [flexcoders] My itemrenderer is mercurial!!

2009-07-06 Thread claudiu ursica
Item renderers are reused instead of being recreated ... That is why your state 
is inconsistent...
C





From: leds usop rptl...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Monday, July 6, 2009 10:59:58 AM
Subject: Re: [flexcoders] My itemrenderer is mercurial!!





how are you setting the selection status of the checkbox? override the setter 
method for data, then place a default value (an if else perhaps) if the data is 
null, or is int's default state.

--- On Mon, 7/6/09, j2me_soul j2me_s...@163. com wrote:


From: j2me_soul j2me_s...@163. com
Subject: [flexcoders] My itemrenderer is mercurial!!
To: flexcoders flexcod...@yahoogro ups.com
Date: Monday, July 6, 2009, 7:59 AM


The itemrenderer is a HBox. There is a check and a label in the HBox.
When I selected any of the checkbox and scrolled the scrollbar of the List 
which used the itemrenderer, the stange thing happened, the selected checkbox 
is no longer the same checkbox !! Maybe the last one, maybe the second one ~~~ 
 How can I fix this ?





 200万种商品,最低价格,疯狂诱惑你  
  

   


  

Re: [flexcoders] dynamic image gallery

2009-07-06 Thread thomas parquier
Maybe you should use {} in the list' itemRenderer attribute as :

 itemRenderer={components.Thumbnail}


thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net
téléphone portable : +33601 822 056


2009/7/3 stinasius stinas...@yahoo.com



 Hi guys I have a problem with an image gallery am trying to do. This is the
 scenario. In my application I have the main application file gallery.mxml
 and three custom components namely imageName.mxml, imageGallery.mxml and
 Thumbnail.mxml. what am trying to do is have a dynamic image gallery where
 imageName.mxml loads image names from a database and is used to point to a
 path to get corresponding images on the server. So am using events to tell
 the main application that image source has changed so that whenever someone
 clicks on the list of image names, different images are loaded in the
 horizontal list. Everything works perfectly well except the images are not
 showing up in the horizontal list component. Yet when I test the path to
 images everything is good and event the events are dispatched well. Please
 help me understand what is causing the images not to show in the horizontal
 list. Below is my code…. Thanks in advance.
 gallery.mxml
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute xmlns:ns1=components.*

 mx:Script
 ![CDATA[
 import mx.rpc.events.ResultEvent;
 import mx.controls.Alert;
 import mx.managers.CursorManager;
 import mx.collections.ArrayCollection;

 [Bindable]
 private var dataAr1:ArrayCollection;
 private function concernOriginalReceived(event:ResultEvent):void {
 dataAr1 = event.result as ArrayCollection;
 }

 private function imageListHandler(event:Event):void{
 trace(Someone clicked on the Large Green Button!);
 remoteObj.gallery.send();
 }

 ]]
 /mx:Script

 mx:RemoteObject id=remoteObj destination=ColdFusion
 source=gallery.cfcs.gallery
 mx:method name=gallery result=concernOriginalReceived(event)
 fault=Alert.show(event.fault.faultString,'Error');
 mx:arguments
 imgid_home{imgid_home.text}/imgid_home
 /mx:arguments
 /mx:method
 /mx:RemoteObject


 mx:Model id=homeImages
 images
 img1{dataAr1.getItemAt(0).img1}/img1
 img2{dataAr1.getItemAt(0).img2}/img2
 img3{dataAr1.getItemAt(0).img3}/img3
 img4{dataAr1.getItemAt(0).img4}/img4
 /images
 /mx:Model

 !--mx:Array id=home_img
 mx:Stringassets/homeprofile_pics/extra_pics/{homeImages.img1}/mx:String
 mx:Stringassets/homeprofile_pics/extra_pics/{homeImages.img2}/mx:String
 mx:Stringassets/homeprofile_pics/extra_pics/{homeImages.img3}/mx:String
 mx:Stringassets/homeprofile_pics/extra_pics/{homeImages.img4}/mx:String
 /mx:Array --
 ns1:imageName id=home_tiles x=0 y=140
 addImageEvent=imageListHandler(event)/
 ns1:imgGallery x=170 y=140/
 mx:Text id=imgid_home text={home_tiles.selectedItem.imgid_home}/
 mx:Label id=img1 x=254 y=0 text={dataAr1.getItemAt(0).img1}/
 mx:Image x=499 y=0
 mx:sourceassets/homeprofile_pics/extra_pics/{homeImages.img4}/mx:source
 /mx:Image
 /mx:Application

 imageName.mxml
 ?xml version=1.0 encoding=utf-8?
 mx:List xmlns:mx=http://www.adobe.com/2006/mxml; dataProvider={dataAr}
 labelField=location creationComplete=Init()
 change=ClickEventHandler()
 mx:Script
 ![CDATA[
 import mx.rpc.events.ResultEvent;
 import mx.controls.Alert;
 import mx.managers.CursorManager;
 import mx.collections.ArrayCollection;

 public function Init():void{
 homeSvc.load();
 }

 [Bindable]
 private var dataAr:ArrayCollection = new ArrayCollection;
 public function displayResult(event:ResultEvent):void{
 dataAr = new ArrayCollection( (event.result as ArrayCollection).source);
 }

 private function ClickEventHandler():void{
 trace(Ouch! I got clicked! Let me tell this to the world.);
 dispatchEvent(new Event(addImageEvent, true));// bubble to parent
 }
 ]]
 /mx:Script

 mx:RemoteObject id=homeSvc destination=ColdFusion
 source=gallery.cfcs.homes1 showBusyCursor=true
 fault=CursorManager.removeBusyCursor();Alert.show(event.fault.message)
 mx:method name=load result=displayResult(event) /
 /mx:RemoteObject

 mx:Metadata
 [Event(name=addImageEvent, type=flash.events.Event)]
 /mx:Metadata
 /mx:List
 imageGallery.mxml
 ?xml version=1.0 encoding=utf-8?
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
 xmlns:local=as_logic.* width=100% height=100% xmlns=components.*

 mx:Array id=home_img
 mx:Object label=img1
 fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img1}
 /
 mx:Object label=img2
 fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img2}
 /
 mx:Object label=img3
 fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img3}
 /
 mx:Object label=img4
 fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img4}
 /
 /mx:Array

 mx:Label text=Title: width=100% textAlign=center y=88
 fontSize=12/
 mx:Text width=100% text=Mable tiled walls, spacious kitchen with well
 

Re: [flexcoders] How to disable TitleWindow dragable

2009-07-06 Thread Benoitcn
I have stoped every event. But the problem is still there.
Did I miss something ?

addEventListener(DragEvent.DRAG_ENTER, stopDragableHandler);
addEventListener(DragEvent.DRAG_START, stopDragableHandler);
addEventListener(DragEvent.DRAG_COMPLETE, stopDragableHandler);
addEventListener(DragEvent.DRAG_DROP, stopDragableHandler);
addEventListener(DragEvent.DRAG_EXIT, stopDragableHandler);


   public function stopDragableHandler(event:DragEvent = null):void
   {
event.stopPropagation();
event.stopImmediatePropagation();
   }


  - Original Message - 
  From: Sefi Ninio 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, July 06, 2009 3:43 PM
  Subject: Re: [flexcoders] How to disable TitleWindow dragable






  Catch mouseEvent.DRAG_START, and in the handler stop it's propagation. 
(event.stopImmediatePropagation)
  Do the same for mouseEvent.DRAG_STOP.


  On Mon, Jul 6, 2009 at 10:32 AM, claudiu ursica the_bran...@yahoo.com wrote:





Do you mean that the Title window cannot be dragged anymore? 
C





From: j2me_soul j2me_s...@163.com
To: flexcoders flexcoders@yahoogroups.com
Sent: Monday, July 6, 2009 10:16:21 AM
Subject: [flexcoders] How to disable TitleWindow dragable




How can I stop dragable function?






200万种商品,最低价格,疯狂诱惑你 





  

Re: [flexcoders] Problem With debugging

2009-07-06 Thread John McCormack
Vamsi,

 flex builder 3.0
My Flex Builder was updated to 3.02 some time ago.
Such an update might cure link problems with the system but I suspect your code 
is picking up something that won't run in the debugger.

I suspect that your SWF is not getting built properly.
Your build process may not be using the code you think it is.
Try a version of your SWF that has almost nothing in it.
Start to add back content to the point where it fails.
Comment out everything, including variable that load symbols etc.,
Just have the very first class with one line in it - perhaps just to set a 
variable.
Try to step through that.

You might try out a decompiler to see if your code contains the modules you 
think it does.

By the way, I found FlashPlayers here:
C:\Program Files (x86)\Adobe\Adobe Flash CS4\Players\Release
C:\Program Files (x86)\Adobe\Adobe Flash CS4\Players\Debug
C:\Program Files (x86)\Adobe\Adobe Flash CS4\Players

C:\Program Files (x86)\Adobe\Flex Builder 3 Plug-in\Player\10\win
C:\Program Files (x86)\Adobe\Flex Builder 3 Plug-in\Player\win

The file NPSWF32.DLL is also used in some cases (Firefox?)
When I ran the msdos command line window and did a dir npswf32 /s files.txt
I found that the collected entries in files.txt were numerous - i.e. possibly 
unused versions sprinkled about.


John








Re: [flexcoders] How to disable TitleWindow dragable

2009-07-06 Thread Simon Bailey
Create a custom component that extends TitleWindow and override the  
startDragging() method:


override protected function startDragging( event:MouseEvent ):void {};

Cheers,

Simon @newtriks.com

On 6 Jul 2009, at 08:16, j2me_soul wrote:





How can I stop dragable function?



200万种商品,最低价格,疯狂诱惑你






Re: [flexcoders] Re: Flex Browse File

2009-07-06 Thread Tom Chiverton
On Thursday 02 Jul 2009, Adrian Resa Jones wrote:
 cut  paste means. I really need a better solution...

Well, what's your use case ? Why do you care where the file comes from ?

-- 
Helping to revolutionarily maintain content as part of the IT team of the 
year, '09 and '08



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 together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. 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] Getting exception while using FABridge

2009-07-06 Thread sreekanth_kalluru
Hi,


I am FABridge for communication with Flex and Javascript.In local application 
running fine but when come staging its showing the eeror as fallows.In my 
application iam loading images from remote location.Can  any one help to how 
solve this issue.


Error calling method on NPObject! [plugin exception: Error in Actionscript. Use 
a try/catch block to find error.]


Thanks
srikanth



Re: [flexcoders] How to disable TitleWindow dragable

2009-07-06 Thread Sefi Ninio
Aye, that'll work...

2009/7/6 Simon Bailey si...@newtriks.com



 Create a custom component that extends TitleWindow and override the
 startDragging() method:

 override protected function startDragging( event:MouseEvent ):void {};

 Cheers,

 Simon @newtriks.com

 On 6 Jul 2009, at 08:16, j2me_soul wrote:




 How can I stop dragable function?



 --
 200万种商品,最低价格,疯狂诱惑你http://count.mail.163.com/redirect/footer.htm?f=http://gouwu.youdao.com


  



[flexcoders] Nested Objects with webORB PHP

2009-07-06 Thread raja_s_patil
Hi,

In my project I want to save/retrieve following objects

class PurchaseOrderVO
{
PO_no:int;
. other header info ...
Items:arraycollection;
}
The Items arraycollection contains array of
following class

class POItem
{
Item_cd:string;
Item_rate:number;
Qty:Number;
Amount:Number;
schedule:Arraycollection;
}

the schedule array collection contains following class objects
class itemSchedule
{
DeliveryDate:date;
Qty:number;
remarks:string;
}

can somebody guide me about Flex and PHP code
I should use to save these to three different tables

PO_Master; // po header table
PO_Items; // po items FK in POmaster
PO_SChedule; // schedules FK in POItems

Thanks and best regards

Raja




RE: [flexcoders] About effect in Flex4

2009-07-06 Thread Chet Haase

Transitions work just fine in flex4, but you need to declare them in a 
transitions block (just like in flex3), not in the Declarations block:

s:transitions
s:Transition fromState=”primary” toState=”secondary”
s:Sequence targets=”{[panel1]}”
// etc.

Note that Blur is not an effect in Flex4, but it should work fine as long as 
you target a component (flex3 effects don’t work on graphic elements, which is 
one of the reasons for the new flex4 effects). To get a flex4 effect that runs 
a blur, use AnimateFilter with a BlurFilter specified as the filter you are 
animating.

Chet.


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of j2me_soul
Sent: Tuesday, June 23, 2009 11:30 PM
To: flexcoders
Subject: [flexcoders] About effect in Flex4




When I clicked the button to change state,but the transition effect doesn't 
work.
I wonder if the transition is still available in Flex4?
s:states
  s:State name=premiere /
  s:State name=secondary /
 /s:states

 fx:Declarations
  mx:Transition fromState=premiere toState=secondary
   mx:Sequence id=t1 targets={[panel1]}
mx:Blur duration=100 blurXFrom=0.0 blurXTo=10.0
   blurYFrom=0.0 blurYTo=10.0/
mx:Parallel
 mx:Move  duration=400 xTo=0 yTo=428/
 mx:Resize duration=400 widthTo=106 heightTo=52/
/mx:Parallel
mx:Blur duration=100 blurXFrom=10.0 blurXTo=0.0
   blurYFrom=10.0 blurYTo=0.0/
   /mx:Sequence
  /mx:Transition
 /fx:Declarations

 s:Panel id=panel1 title=Panel Horizontal
x.premiere=0 y.premiere=313.1 width.premiere=1021 
height.premiere=167 
  s:HGroup
   s:Button label=Up label.secondary=Up
   click.premiere=currentState='secondary' 
click.secondary=currentState='premiere'
   label.premiere=Down/
  /s:HGroup
 /s:Panel




200万种商品,最低价格,疯狂诱惑你http://count.mail.163.com/redirect/footer.htm?f=http://gouwu.youdao.com



RE: [flexcoders] About Effect in Flex4

2009-07-06 Thread Chet Haase
both Parallel and Sequence work the same in flex4 as they did in flex3. So this:
s:Sequence
s:Move/
s:Resize/
/s:Sequence
is valid and function in flex4.

Chet.


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of j2me_soul
Sent: Tuesday, June 23, 2009 10:33 PM
To: flexcoders
Subject: [flexcoders] About Effect in Flex4




Is there something like parallel or sequence in flex4 ?
If not, how can I achieve the function like that ?




200万种商品,最低价格,疯狂诱惑你http://count.mail.163.com/redirect/footer.htm?f=http://gouwu.youdao.com



[flexcoders] Re: How to disable TitleWindow dragable

2009-07-06 Thread Teoti Graphix, LLC
  How can I stop dragable function?

Hi,

If you are specifically talking about the TitleWindow, you can use;

myWindow.isPopUp = false;

This will not allow the window to be dragged. Check the source code in 
Panel and you will see an if() statement blocking the drag behavior if 
the isPopUp property is false.

Panel : line 2096

Mike



[flexcoders] How to copy a arraycollection to a another

2009-07-06 Thread Darrin Kay
Good Day,
  I have a datasource and it is I need the data in 2 different
arraycollection (i know easy), but in one of them I need to add a new item.
When I do that it addes it to both.  Anyone have a way to copy or clone
where they are not pointers to the data.

thanks,
 Darrin


Re: [flexcoders] How to copy a arraycollection to a another

2009-07-06 Thread Howard Fore
ObjectUtil.copy()

But also see
http://www.darronschall.com/weblog/2007/08/on-transient-objectutilcopy-and-casting.cfm

--
Howard Fore, howard.f...@hofo.com
The worthwhile problems are the ones you can really solve or help solve,
the ones you can really contribute something to. ... No problem is too small
or too trivial if we can really do something about it. - Richard P. Feynman


On Mon, Jul 6, 2009 at 9:58 AM, Darrin Kay dar...@stop-ing.com wrote:



 Good Day,
   I have a datasource and it is I need the data in 2 different
 arraycollection (i know easy), but in one of them I need to add a new item.
 When I do that it addes it to both.  Anyone have a way to copy or clone
 where they are not pointers to the data.

 thanks,
  Darrin


 



[flexcoders] Continuous Multi-colored Line Chart

2009-07-06 Thread kenny14390
Hi all. It's been a year since my last question and this one seems like an 
interesting problem.

First to give you some background, I'm making a stats page for a game. The game 
consists of three rounds and each round consists of five clicks. Each click can 
either add or subtract points from your score. So after each round I'd like to 
show a line chart to plot out the value of the users' points (y axis) against 
each click (x axis). Since the second round starts with the points from the 
first and the third from the second, the graph of the entire game (all three 
rounds) is continuous.

In order to graphically distinguish which clicks came from a certain round, I 
would really like to have the line be broken up into three colored segments.

I couldn't find a good solution so I tried to hack my own by simply drawing 
three individual segments head to tail. However, this doesn't work for two 
reasons: the line needs to be continuous and it needs to show data tips. The 
three segments at a glance appear to be continuous, but I set the line to be 
curved so it's smooth. Back-to-back lines don't curve corners and all of a 
sudden a smooth line has a sharp angle. Secondly, since the ending point of the 
first or second round is the starting point of the next round, hovering over 
that point on the chart displays two data tips; one for each round (displaying 
the same point values).


Does anyone know of anything built in to simply say starting at x-value X 
change line color to #xx?


Thanks!



Re: [flexcoders] How to copy a arraycollection to a another

2009-07-06 Thread Darrin Kay
Thanks for the help HoFo, that helped now I have a tougher one for
youlol...  You still at the Fed?  I am now working in the UK for NATO,
doing flex, cf and other fun stuff.

  I got a question for you, I am using cfsearch and was wondering how I can
search on 2 fields, ie the file itself and a custom field?

so criteria=*#searchText#* OR CF_CUSTOM1 = *#searchText#*, but that is not
working...so need help

If I use : criteria=*#searchText#*  it will search through the file fine,
but I need to also get a custom field into the search

Thanks,
 Darrin

On Mon, Jul 6, 2009 at 3:14 PM, Howard Fore howard.f...@hofo.com wrote:



 ObjectUtil.copy()

 But also see
 http://www.darronschall.com/weblog/2007/08/on-transient-objectutilcopy-and-casting.cfm

 --
 Howard Fore, howard.f...@hofo.com
 The worthwhile problems are the ones you can really solve or help solve,
 the ones you can really contribute something to. ... No problem is too small
 or too trivial if we can really do something about it. - Richard P. Feynman




 On Mon, Jul 6, 2009 at 9:58 AM, Darrin Kay dar...@stop-ing.com wrote:



 Good Day,
   I have a datasource and it is I need the data in 2 different
 arraycollection (i know easy), but in one of them I need to add a new item.
 When I do that it addes it to both.  Anyone have a way to copy or clone
 where they are not pointers to the data.

 thanks,
  Darrin



  



Re:Re: [flexcoders] Bring forward something in flex

2009-07-06 Thread kenny14390
Here's an easy fix:

parent.setChildIndex(obj,i);

Where parent is the container (can be this), obj is the child object you want 
to re-order, and i is the stack index of the position amongst the parent's 
children. The higher i is, the closer to the front it is. i cannot be higher 
than the number of children.




--- In flexcoders@yahoogroups.com, j2me_soul j2me_s...@... wrote:

 It very useful to me. Thanks Jeffry!
 
 
 
 ÔÚ2009-07-03£¬Jeffry Houser j...@... дµÀ£º
 
 
 
 
 
 
   The initial layout is related tot he order you declare things in MXML, but 
 that doesn't help him move children around by clicking on something in the 
 background.
 
  Take a look at SwapChildren and/or SwampChildrenAt:  
 http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObjectContainer.html#swapChildren()
 http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObjectContainer.html#swapChildrenAt()
 
 claudiu ursica wrote: 
 
 It is related to the order that you declare component in your mxml ... The 
 latter the better. 
 
 C
 
 
 
 From: j2me_soul j2me_s...@...
 To: flexcoders flexcoders@yahoogroups.com
 Sent: Friday, July 3, 2009 11:36:20 AM
 Subject: [flexcoders] Bring forward something in flex
 
 
 I have a lot titlewindow in the application. But the main panel which wrote 
 by mxml is always covered by some titlewindow. How can I bring the main panel 
 forward when I clicked it ?
 
 
 
 
 
 200 ÍòÖÖÉÌÆ·,×îµÍ¼Û¸ñ,·è¿ñÓÕ»óÄã
 
 
 
 
 -- 
 Jeffry Houser, Technical Entrepreneur
 Adobe Community Expert: 
 http://tinyurl.com/684b5hhttp://www.twitter.com/reboog711  | Phone: 
 203-379-0773
 --
 Easy to use Interface Components for Flex Developers
 http://www.flextras.com?c=104
 --
 http://www.theflexshow.comhttp://www.jeffryhouser.com
 --
 Part of the DotComIt Brain Trust





Re: [flexcoders] Re: How to disable TitleWindow dragable

2009-07-06 Thread Benoitcn
Yes,it works. But I wanna enable dragable function when clicked this 
titlewindow. If I set isPopUp = false; the mouseClickEvent can't be catched so 
I can't interact with users. I just wanna to disable this ability temporary. Is 
there a wish way to achieve this ?



  - Original Message - 
  From: Teoti Graphix, LLC 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, July 06, 2009 9:55 PM
  Subject: [flexcoders] Re: How to disable TitleWindow dragable





   How can I stop dragable function?

  Hi,

  If you are specifically talking about the TitleWindow, you can use;

  myWindow.isPopUp = false;

  This will not allow the window to be dragged. Check the source code in 
  Panel and you will see an if() statement blocking the drag behavior if 
  the isPopUp property is false.

  Panel : line 2096

  Mike



  

Re:[flexcoders] Re: How to disable TitleWindow dragable

2009-07-06 Thread j2me_soul
Yes,it works. But I wanna enable dragable function when clicked this 
titlewindow. If I set isPopUp = false; the mouseClickEvent can't be catched so 
I can't interact with users. I just wanna to disable this ability temporary. Is 
there a wish way to achieve this ?



在2009-07-06,Teoti Graphix, LLC teoti.grap...@gmail.com 写道:





 How can I stop dragable function?

Hi,

If you are specifically talking about the TitleWindow, you can use;

myWindow.isPopUp = false;

This will not allow the window to be dragged. Check the source code in 
Panel and you will see an if() statement blocking the drag behavior if 
the isPopUp property is false.

Panel : line 2096

Mike





Re: [flexcoders] How to copy a arraycollection to a another

2009-07-06 Thread Howard Fore
Sorry, can't help you there, having never bothered with Verity and CFSearch
myself.

--
Howard Fore, howard.f...@hofo.com
The worthwhile problems are the ones you can really solve or help solve,
the ones you can really contribute something to. ... No problem is too small
or too trivial if we can really do something about it. - Richard P. Feynman


On Mon, Jul 6, 2009 at 10:36 AM, Darrin Kay dar...@stop-ing.com wrote:

I got a question for you, I am using cfsearch and was wondering how I
 can search on 2 fields, ie the file itself and a custom field?

 so criteria=*#searchText#* OR CF_CUSTOM1 = *#searchText#*, but that is
 not working...so need help

 If I use : criteria=*#searchText#*  it will search through the file fine,
 but I need to also get a custom field into the search




[flexcoders] How to handle keyboard shortcut globally?

2009-07-06 Thread Sergey Kovalyov
Hi All!

We want our projector to be full screen always. To do that we add the
keyboard event listener to the stage and then if the user has pressed Esc
button, turn full screen mode on:


*switch* (event.keyCode) {

*case* Keyboard.ESCAPE :

*try* {

stage.displayState = StageDisplayState.FULL_SCREEN;

} *catch* (e : Error) {}

*break*;

But this event handler does not work when some pop up is focused.
Subscription to systemManager does not fix the problem either.


mx:Application

xmlns:mx=http://www.adobe.com/2006/mxml;

layout=absolute

applicationComplete=onApplicationComplete()

mx:Script

![CDATA[

*import* mx.controls.Alert;

*private* *function* onApplicationComplete() : *void* {

stage.displayState = StageDisplayState.FULL_SCREEN;

stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);

Alert.show(*'Alert!'*);

}

*private* *function* onKeyDown(event : KeyboardEvent) : *void* {

*trace*(*Key down!*);

}

]]

/mx:Script

/mx:Application

Any ideas how to implement really global Esc keyboard button press handler?
Sergey.


Re: [flexcoders] LiveCycle / BlazeDS question - If anyone knows

2009-07-06 Thread Tom Chiverton
On Thursday 02 Jul 2009, Wally Kolcz wrote:
 Can Either or Both of these data services stream video and audio similar to
 FMS? We're looking into getting FMS and I would rather have a DS for my
 Flex apps if they can :-) 

Not as far as I know. Do you really need DS support though ? RemoteObject() 
covers most peoples bases fine.


-- 
Helping to ambassadorially lead deliverables as part of the IT team of the 
year, '09 and '08



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 together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. 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] Re: How to disable TitleWindow dragable

2009-07-06 Thread Simon Bailey

Yes as I replied in your original post man:

Create a custom component that extends TitleWindow and override the  
startDragging() method:


override protected function startDragging( event:MouseEvent ):void {};

You can leave it as it is above to simply stop dragging or add logic  
according to your needs!


Cheers,

Simon @newtriks.com

On 6 Jul 2009, at 15:50, j2me_soul wrote:





Yes,it works. But I wanna enable dragable function when clicked this  
titlewindow. If I set isPopUp = false; the mouseClickEvent can't be  
catched so I can't interact with users. I just wanna to disable this  
ability temporary. Is there a wish way to achieve this ?



在2009-07-06,Teoti Graphix, LLC teoti.grap...@gmail.com 写道:


 How can I stop dragable function?

Hi,

If you are specifically talking about the TitleWindow, you can use;

myWindow.isPopUp = false;

This will not allow the window to be dragged. Check the source code in
Panel and you will see an if() statement blocking the drag behavior if
the isPopUp property is false.

Panel : line 2096

Mike




200万种商品,最低价格,疯狂诱惑你






[flexcoders] Re: dynamic image gallery

2009-07-06 Thread stinasius
nop that doesn't work, but when i hard-code the image path in the array the 
images show up but when i use a dynamic path, no image shows up. below is the 
hard-coded array of images and the same array of images but with a dynamic 
path
imgGallery.mxml

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

mx:Script
![CDATA[
import mx.collections.*;

[Bindable]
private var home_img1:ArrayCollection = new 
ArrayCollection(home_img);

]]
/mx:Script

!--mx:Array id=home_img
mx:Object label=img1 
fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img1} 
/
mx:Object label=img2 
fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img2} 
/
mx:Object label=img3 
fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img3} 
/
mx:Object label=img4 
fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img4} 
/
/mx:Array --

mx:Array id=home_img
mx:Object label=img1 
fullImage=assets/homeprofile_pics/extra_pics/bedroom-decorations.jpg /
mx:Object label=img2 
fullImage=assets/homeprofile_pics/extra_pics/Interior_Classical_bedroom_interior_005016_.jpg
 /
mx:Object label=img3 
fullImage=assets/homeprofile_pics/extra_pics/clean-livingroom.jpg /
mx:Object label=img4 
fullImage=assets/homeprofile_pics/extra_pics/regreen-interior-design-ideas-remodeling-green-kitchen.jpg
 /
/mx:Array

mx:Label text=Title: width=100% textAlign=center y=88 
fontSize=12/  
mx:Text width=100% text=Mable tiled walls, spacious kitchen with 
well furnished furniture y=115 textAlign=center fontSize=12/
mx:Label x=190 y=143 id=home_id 
text={parentDocument.home_tiles.selectedItem.imgid_home}/

mx:VBox width=100% verticalGap=2 horizontalAlign=center 
borderStyle=solid cornerRadius=10 bottom=0
mx:HorizontalList id=photoList dataProvider={home_img} 
labelField=label iconField=fullImage itemRenderer=components.Thumbnail 
columnCount=4 width=98%/
/mx:VBox
!--image used to test if parentDocument.homeImages actually loads an 
image and the result was a success. it loads an image--
mx:Image x=348.5 y=169 
source=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img4}/
/mx:Canvas




Re: [flexcoders] Re: dynamic image gallery

2009-07-06 Thread thomas parquier
I think parentDocument from itemRenderer is horizontalList not gallery.mxml.

thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net
téléphone portable : +33601 822 056


2009/7/6 stinasius stinas...@yahoo.com



 nop that doesn't work, but when i hard-code the image path in the array the
 images show up but when i use a dynamic path, no image shows up. below is
 the hard-coded array of images and the same array of images but with a
 dynamic path
 imgGallery.mxml


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

 mx:Script
 ![CDATA[
 import mx.collections.*;

 [Bindable]
 private var home_img1:ArrayCollection = new ArrayCollection(home_img);

 ]]
 /mx:Script

 !--mx:Array id=home_img
 mx:Object label=img1
 fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img1}
 /
 mx:Object label=img2
 fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img2}
 /
 mx:Object label=img3
 fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img3}
 /
 mx:Object label=img4
 fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img4}
 /
 /mx:Array --

 mx:Array id=home_img
 mx:Object label=img1
 fullImage=assets/homeprofile_pics/extra_pics/bedroom-decorations.jpg /
 mx:Object label=img2
 fullImage=assets/homeprofile_pics/extra_pics/Interior_Classical_bedroom_interior_005016_.jpg
 /
 mx:Object label=img3
 fullImage=assets/homeprofile_pics/extra_pics/clean-livingroom.jpg /
 mx:Object label=img4
 fullImage=assets/homeprofile_pics/extra_pics/regreen-interior-design-ideas-remodeling-green-kitchen.jpg
 /
 /mx:Array

 mx:Label text=Title: width=100% textAlign=center y=88
 fontSize=12/
 mx:Text width=100% text=Mable tiled walls, spacious kitchen with well
 furnished furniture y=115 textAlign=center fontSize=12/
 mx:Label x=190 y=143 id=home_id
 text={parentDocument.home_tiles.selectedItem.imgid_home}/

 mx:VBox width=100% verticalGap=2 horizontalAlign=center
 borderStyle=solid cornerRadius=10 bottom=0
 mx:HorizontalList id=photoList dataProvider={home_img}
 labelField=label iconField=fullImage itemRenderer=components.Thumbnail
 columnCount=4 width=98%/
 /mx:VBox
 !--image used to test if parentDocument.homeImages actually loads an
 image and the result was a success. it loads an image--
 mx:Image x=348.5 y=169
 source=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img4}/
 /mx:Canvas

  



[flexcoders] Re: dynamic image gallery

2009-07-06 Thread stinasius
You dont get it. the parentDocument is the main application where the 
horizontal list is loaded. here is the complete code...

gallery.mxml

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
xmlns:ns1=components.*

mx:Script
![CDATA[
import mx.rpc.events.ResultEvent;   
import mx.controls.Alert;
import mx.managers.CursorManager;
import mx.collections.ArrayCollection;

 [Bindable]
private var dataAr1:ArrayCollection;
private function 
concernOriginalReceived(event:ResultEvent):void {
dataAr1 = event.result as ArrayCollection;  

}

private function imageListHandler(event:Event):void{
trace(Someone clicked on the Large Green 
Button!);
remoteObj.gallery.send();
}

]]
/mx:Script

mx:RemoteObject id=remoteObj destination=ColdFusion 
source=gallery.cfcs.gallery
mx:method name=gallery 
result=concernOriginalReceived(event) 
fault=Alert.show(event.fault.faultString,'Error');
mx:arguments
imgid_home{imgid_home.text}/imgid_home
/mx:arguments
/mx:method
 /mx:RemoteObject
 

mx:Model id=homeImages
images
img1{dataAr1.getItemAt(0).img1}/img1
img2{dataAr1.getItemAt(0).img2}/img2
img3{dataAr1.getItemAt(0).img3}/img3
img4{dataAr1.getItemAt(0).img4}/img4

/images
 /mx:Model



ns1:imageName id=home_tiles x=0 y=140 
addImageEvent=imageListHandler(event)/
ns1:imgGallery x=170 y=140/   
mx:Text id=imgid_home text={home_tiles.selectedItem.imgid_home}/
mx:Label id=img1 x=254 y=0 text={dataAr1.getItemAt(0).img1}/
mx:Image x=499 y=0

mx:sourceassets/homeprofile_pics/extra_pics/{homeImages.img4}/mx:source
/mx:Image
/mx:Application

imageName.mxml

?xml version=1.0 encoding=utf-8?
mx:List xmlns:mx=http://www.adobe.com/2006/mxml; dataProvider={dataAr} 
labelField=location creationComplete=Init() change=ClickEventHandler()
mx:Script
![CDATA[
import mx.rpc.events.ResultEvent;   
import mx.controls.Alert;
import mx.managers.CursorManager;
import mx.collections.ArrayCollection;

public function Init():void{
homeSvc.load();
}

[Bindable]
   private var dataAr:ArrayCollection = new ArrayCollection;
   public function displayResult(event:ResultEvent):void{
dataAr = new ArrayCollection( (event.result as 
ArrayCollection).source);
   }
   
   private function ClickEventHandler():void{
trace(Ouch! I got clicked! Let me tell this to 
the world.);
dispatchEvent(new Event(addImageEvent, 
true));// bubble to parent
   }
]]
/mx:Script

mx:RemoteObject id=homeSvc destination=ColdFusion 
source=gallery.cfcs.homes1 showBusyCursor=true 
fault=CursorManager.removeBusyCursor();Alert.show(event.fault.message)
mx:method name=load result=displayResult(event) / 

/mx:RemoteObject

mx:Metadata
[Event(name=addImageEvent, type=flash.events.Event)]
/mx:Metadata
/mx:List


imgGallery.mxml

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

mx:Script
![CDATA[
import mx.collections.*;

[Bindable]
private var home_img1:ArrayCollection = new 
ArrayCollection(home_img);

]]
/mx:Script

!--mx:Array id=home_img
mx:Object label=img1 
fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img1} 
/
mx:Object label=img2 
fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img2} 
/
mx:Object label=img3 
fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img3} 
/
mx:Object label=img4 
fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img4} 
/
/mx:Array --


[flexcoders] Panel skin problem

2009-07-06 Thread j2me_soul
I make a flex skin using flash. But if I apply the border-skin style to the 
panel , the child components will not judge the correct top-left corner. They 
will cover the panel title. I think I miss something in the css file. How can I 
fix this ? 
 
Thanks very much.


[flexcoders] Re: List ScrollToIndex does not work for last item in List

2009-07-06 Thread flexcoder2008
bump

--- In flexcoders@yahoogroups.com, flexcoder2008 djohnso...@... wrote:

 How do you make scrollToIndex work on a List where the last item in the List 
 is currently not visible?
 
 When I use List.scrollToIndex it works for any item above my current 
 selection, but will never scroll to the end of the List.





Re: [flexcoders] Re: dynamic image gallery

2009-07-06 Thread thomas parquier
Maybe home_img in imgGallery.mxml is not refreshed when homeImages is
updated or not bindable too.

thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net
téléphone portable : +33601 822 056


2009/7/6 stinasius stinas...@yahoo.com



 You dont get it. the parentDocument is the main application where the
 horizontal list is loaded. here is the complete code...


 gallery.mxml

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute xmlns:ns1=components.*

 mx:Script
 ![CDATA[

 import mx.rpc.events.ResultEvent;
 import mx.controls.Alert;
 import mx.managers.CursorManager;
 import mx.collections.ArrayCollection;

 [Bindable]
 private var dataAr1:ArrayCollection;
 private function concernOriginalReceived(event:ResultEvent):void {
 dataAr1 = event.result as ArrayCollection;
 }

 private function imageListHandler(event:Event):void{
 trace(Someone clicked on the Large Green Button!);
 remoteObj.gallery.send();
 }

 ]]
 /mx:Script

 mx:RemoteObject id=remoteObj destination=ColdFusion
 source=gallery.cfcs.gallery
 mx:method name=gallery result=concernOriginalReceived(event)
 fault=Alert.show(event.fault.faultString,'Error');
 mx:arguments
 imgid_home{imgid_home.text}/imgid_home
 /mx:arguments
 /mx:method
 /mx:RemoteObject


 mx:Model id=homeImages
 images
 img1{dataAr1.getItemAt(0).img1}/img1
 img2{dataAr1.getItemAt(0).img2}/img2
 img3{dataAr1.getItemAt(0).img3}/img3
 img4{dataAr1.getItemAt(0).img4}/img4
 /images
 /mx:Model


 ns1:imageName id=home_tiles x=0 y=140
 addImageEvent=imageListHandler(event)/
 ns1:imgGallery x=170 y=140/
 mx:Text id=imgid_home text={home_tiles.selectedItem.imgid_home}/
 mx:Label id=img1 x=254 y=0 text={dataAr1.getItemAt(0).img1}/
 mx:Image x=499 y=0
 mx:sourceassets/homeprofile_pics/extra_pics/{homeImages.img4}/mx:source
 /mx:Image
 /mx:Application

 imageName.mxml

 ?xml version=1.0 encoding=utf-8?
 mx:List xmlns:mx=http://www.adobe.com/2006/mxml; dataProvider={dataAr}
 labelField=location creationComplete=Init()
 change=ClickEventHandler()
 mx:Script
 ![CDATA[
 import mx.rpc.events.ResultEvent;
 import mx.controls.Alert;
 import mx.managers.CursorManager;
 import mx.collections.ArrayCollection;

 public function Init():void{
 homeSvc.load();
 }

 [Bindable]
 private var dataAr:ArrayCollection = new ArrayCollection;
 public function displayResult(event:ResultEvent):void{
 dataAr = new ArrayCollection( (event.result as ArrayCollection).source);
 }

 private function ClickEventHandler():void{
 trace(Ouch! I got clicked! Let me tell this to the world.);
 dispatchEvent(new Event(addImageEvent, true));// bubble to parent
 }
 ]]
 /mx:Script

 mx:RemoteObject id=homeSvc destination=ColdFusion
 source=gallery.cfcs.homes1 showBusyCursor=true
 fault=CursorManager.removeBusyCursor();Alert.show(event.fault.message)
 mx:method name=load result=displayResult(event) /
 /mx:RemoteObject

 mx:Metadata
 [Event(name=addImageEvent, type=flash.events.Event)]
 /mx:Metadata
 /mx:List

 imgGallery.mxml

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

 mx:Script
 ![CDATA[
 import mx.collections.*;

 [Bindable]
 private var home_img1:ArrayCollection = new ArrayCollection(home_img);

 ]]
 /mx:Script

 !--mx:Array id=home_img
 mx:Object label=img1
 fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img1}
 /
 mx:Object label=img2
 fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img2}
 /
 mx:Object label=img3
 fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img3}
 /
 mx:Object label=img4
 fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img4}
 /
 /mx:Array --

 mx:Array id=home_img
 mx:Object label=img1
 fullImage=assets/homeprofile_pics/extra_pics/bedroom-decorations.jpg /
 mx:Object label=img2
 fullImage=assets/homeprofile_pics/extra_pics/Interior_Classical_bedroom_interior_005016_.jpg
 /
 mx:Object label=img3
 fullImage=assets/homeprofile_pics/extra_pics/clean-livingroom.jpg /
 mx:Object label=img4
 fullImage=assets/homeprofile_pics/extra_pics/regreen-interior-design-ideas-remodeling-green-kitchen.jpg
 /
 /mx:Array

 mx:Label text=Title: width=100% textAlign=center y=88
 fontSize=12/
 mx:Text width=100% text=Mable tiled walls, spacious kitchen with well
 furnished furniture y=115 textAlign=center fontSize=12/
 mx:Label x=190 y=143 id=home_id
 text={parentDocument.home_tiles.selectedItem.imgid_home}/

 mx:VBox width=100% verticalGap=2 horizontalAlign=center
 borderStyle=solid cornerRadius=10 bottom=0
 mx:HorizontalList id=photoList dataProvider={home_img}
 labelField=label iconField=fullImage itemRenderer=components.Thumbnail
 columnCount=4 width=98%/
 /mx:VBox
 !--image used to test if parentDocument.homeImages actually loads an
 image and the result was a success. it loads an image--
 mx:Image x=348.5 y=169
 

[flexcoders] Styling Chart Selection Square

2009-07-06 Thread kidl33t
Hello,

I have a cartesian chart and I would like to style the blue box that highlights 
data when you click and drag.  It is the one that is enabled when you set 
selectionMode=multiple.  I have searched the Adobe docs and I cannot find it. 
 Is this even possible?

Background Information:  I have my own double chart in which the bottom chart 
shows the total range of information, and a top chart which shows the 
information in a 'window' on the bottom chart.  Moving around the top chart can 
be done either by moving the window on the bottom chart, or by dragging around 
gridlines in the background of the top chart.  I also require the ability to 
highlight certain data points on the top chart to display summary information.  
The trouble is that moving the top chart by clicking and dragging the 
background is also how you select.  I have solved this by stopping the panning 
action when either they start dragging on a data point or when they hold shift 
and drag.  The trouble is is that when selectionMode=multiple you always get 
the blue rectangle, so even though my chart properly disables the panning when 
required, the rectangle shows up.  Switching the selection mode on the fly 
doesn't seem to work.  My thought was to style the selection box such it is 
clear until I want a selection then I Will make it visible.  

Thanks,



[flexcoders] File Navigator sample

2009-07-06 Thread jimmydpublicemail
Need to create an interface for people to navigate through a series of files 
and directories, and use interface to provide notes / help information about 
each file.  Also, want people to be able to double-click and launch the default 
application for each file.

Any direction on code samples, demos, code libraries, and such would be greatly 
appreciated.  

JD.



[flexcoders] Smooth Manual setProgress

2009-07-06 Thread kenny14390
Hey. I'm using a manual ProgressBar to display progress towards a goal. As the 
amount increases or decreases, the setProgress method updates the progress 
accordingly but jumpy. Is there a way to smooth out the graphic of the progress 
transition?

Thanks!



[flexcoders] Re: Styling Chart Selection Square

2009-07-06 Thread kenny14390
You can change the rollover/selection color from the default 0x009dff, but I 
don't know about styles.


--- In flexcoders@yahoogroups.com, kidl33t kidl...@... wrote:

 Hello,
 
 I have a cartesian chart and I would like to style the blue box that 
 highlights data when you click and drag.  It is the one that is enabled when 
 you set selectionMode=multiple.  I have searched the Adobe docs and I 
 cannot find it.  Is this even possible?
 
 Background Information:  I have my own double chart in which the bottom chart 
 shows the total range of information, and a top chart which shows the 
 information in a 'window' on the bottom chart.  Moving around the top chart 
 can be done either by moving the window on the bottom chart, or by dragging 
 around gridlines in the background of the top chart.  I also require the 
 ability to highlight certain data points on the top chart to display summary 
 information.  The trouble is that moving the top chart by clicking and 
 dragging the background is also how you select.  I have solved this by 
 stopping the panning action when either they start dragging on a data point 
 or when they hold shift and drag.  The trouble is is that when 
 selectionMode=multiple you always get the blue rectangle, so even though my 
 chart properly disables the panning when required, the rectangle shows up.  
 Switching the selection mode on the fly doesn't seem to work.  My thought was 
 to style the selection box such it is clear until I want a selection then I 
 Will make it visible.  
 
 Thanks,





RE: [flexcoders] Re: dynamic image gallery

2009-07-06 Thread Tracy Spratt
Implement you renderer using a set data override function so that you can
debug the path.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Monday, July 06, 2009 12:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: dynamic image gallery

 






You dont get it. the parentDocument is the main application where the
horizontal list is loaded. here is the complete code...

gallery.mxml

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml
com/2006/mxml layout=absolute xmlns:ns1=components.*

mx:Script
![CDATA[
import mx.rpc.events.ResultEvent; 
import mx.controls.Alert;
import mx.managers.CursorManager;
import mx.collections.ArrayCollection;

[Bindable]
private var dataAr1:ArrayCollection;
private function concernOriginalReceived(event:ResultEvent):void {
dataAr1 = event.result as ArrayCollection; 
}

private function imageListHandler(event:Event):void{
trace(Someone clicked on the Large Green Button!);
remoteObj.gallery.send();
}

]]
/mx:Script

mx:RemoteObject id=remoteObj destination=ColdFusion
source=gallery.cfcs.gallery
mx:method name=gallery result=concernOriginalReceived(event)
fault=Alert.show(event.fault.faultString,'Error');
mx:arguments
imgid_home{imgid_home.text}/imgid_home
/mx:arguments
/mx:method
/mx:RemoteObject


mx:Model id=homeImages
images
img1{dataAr1.getItemAt(0).img1}/img1
img2{dataAr1.getItemAt(0).img2}/img2
img3{dataAr1.getItemAt(0).img3}/img3
img4{dataAr1.getItemAt(0).img4}/img4 
/images
/mx:Model 


ns1:imageName id=home_tiles x=0 y=140
addImageEvent=imageListHandler(event)/
ns1:imgGallery x=170 y=140/ 
mx:Text id=imgid_home text={home_tiles.selectedItem.imgid_home}/
mx:Label id=img1 x=254 y=0 text={dataAr1.getItemAt(0).img1}/
mx:Image x=499 y=0
mx:sourceassets/homeprofile_pics/extra_pics/{homeImages.img4}/mx:source
/mx:Image
/mx:Application

imageName.mxml

?xml version=1.0 encoding=utf-8?
mx:List xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml
com/2006/mxml dataProvider={dataAr} labelField=location
creationComplete=Init() change=ClickEventHandler()
mx:Script
![CDATA[
import mx.rpc.events.ResultEvent; 
import mx.controls.Alert;
import mx.managers.CursorManager;
import mx.collections.ArrayCollection;

public function Init():void{
homeSvc.load();
}

[Bindable]
private var dataAr:ArrayCollection = new ArrayCollection;
public function displayResult(event:ResultEvent):void{
dataAr = new ArrayCollection( (event.result as ArrayCollection).source);
}

private function ClickEventHandler():void{
trace(Ouch! I got clicked! Let me tell this to the world.);
dispatchEvent(new Event(addImageEvent, true));// bubble to parent
} 
]]
/mx:Script

mx:RemoteObject id=homeSvc destination=ColdFusion
source=gallery.cfcs.homes1 showBusyCursor=true
fault=CursorManager.removeBusyCursor();Alert.show(event.fault.message)
mx:method name=load result=displayResult(event) / 
/mx:RemoteObject

mx:Metadata
[Event(name=addImageEvent, type=flash.events.Event)]
/mx:Metadata
/mx:List

imgGallery.mxml

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

mx:Script
![CDATA[
import mx.collections.*;

[Bindable]
private var home_img1:ArrayCollection = new ArrayCollection(home_img);

]]
/mx:Script

!--mx:Array id=home_img
mx:Object label=img1
fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img
1} /
mx:Object label=img2
fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img
2} /
mx:Object label=img3
fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img
3} /
mx:Object label=img4
fullImage=assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img
4} / 
/mx:Array --

mx:Array id=home_img
mx:Object label=img1
fullImage=assets/homeprofile_pics/extra_pics/bedroom-decorations.jpg /
mx:Object label=img2
fullImage=assets/homeprofile_pics/extra_pics/Interior_Classical_bedroom_int
erior_005016_.jpg /
mx:Object label=img3
fullImage=assets/homeprofile_pics/extra_pics/clean-livingroom.jpg /
mx:Object label=img4
fullImage=assets/homeprofile_pics/extra_pics/regreen-interior-design-ideas-
remodeling-green-kitchen.jpg / 
/mx:Array

mx:Label text=Title: width=100% textAlign=center y=88
fontSize=12/ 
mx:Text width=100% text=Mable tiled walls, spacious kitchen with well
furnished furniture y=115 textAlign=center fontSize=12/
mx:Label x=190 y=143 id=home_id
text={parentDocument.home_tiles.selectedItem.imgid_home}/

mx:VBox width=100% verticalGap=2 horizontalAlign=center
borderStyle=solid cornerRadius=10 bottom=0
mx:HorizontalList id=photoList dataProvider={home_img}
labelField=label iconField=fullImage itemRenderer=components.Thumbnail
columnCount=4 width=98%/
/mx:VBox
!--image used to test if parentDocument.homeImages actually loads an
image and the result was a success. it loads an 

RE: [flexcoders] XML data translated to wrong datatype

2009-07-06 Thread Tracy Spratt
The default resultFormat is object, which attempts to cnvert your xml into
a tree of dynamic objects, making its best guess about the data types.

 

Switch to resultFormat=e4x which will give you your data in its unmodified
xml/string format.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of danapayne
Sent: Sunday, June 28, 2009 9:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML data translated to wrong datatype

 






I have one particular piece of data in an XML file, retrieved via
HTTPService, that is being mistakenly being translated incorrectly. I'm
using a Value Object and it's defined in there as a String datatype.

There's not a problem until the data contains something that can be
interpreted as exponential notation, for example 1E01, which it thinks means
the number 10 or anything starting with 1E.

At first I tried to fix it in the Value Object but I've looked at the debug
information and this translation appears to be happening at the HTTPService
end of things because the result event already shows the changed value. BTW,
this same annoying thing happens in an Excel spreadsheet with the same data
in it - Excel keeps wanting to interpret it as a Number type.

Anyone know how I can fix this problem and let the data come through
unchanged?

Dana





RE: [flexcoders] How to popup a titlewindow in precise position

2009-07-06 Thread Tracy Spratt
Set the popup x and y properties to whatever you need.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of j2me_soul
Sent: Tuesday, June 30, 2009 4:52 AM
To: flexcoders
Subject: [flexcoders] How to popup a titlewindow in precise position

 






I have a lot of nested buttons in a vbox. How can I put a popuped
titlewindow in the center position of the button clicked. 

The codes is:

 mx:Canvas width=100% bottom=0
  mx:Canvas backgroundImage=@Embed('/assets/background/ButtonBar.png') 
   width=100% y=15 height=30 horizontalCenter=0/
  mx:HBox id=ButtonGroup y=6 horizontalCenter=0
   mx:Button id=WorkAlertBtn label=工作提醒
click=workAlert_clickHandler(event) width=95/
   mx:Button id=IntergratedQueryBtn label=综合查询 width=95/
   mx:Button id=SummarizeBtn label=综合概况 width=95/
   mx:Button id=ThematicBtn label=专题图 width=95/
   mx:Button id=StatisticalAnalysisBtn label=统计分析 width=95/
   mx:Button id=DocumentBtn label=电子文档 width=95/
   mx:Button id=ChatBtn label=交流平台
click=ChatBtn_clickHandler(event) width=95/
  /mx:HBox

...

...

 



 






  _  

200
http://count.mail.163.com/redirect/footer.htm?f=http://gouwu.youdao.com 万
种商品,最低价格,疯狂诱惑你 





RE: [flexcoders] How to handle keyboard shortcut globally?

2009-07-06 Thread Tracy Spratt
Why do you say using systemManager does not work?  It does for me.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Sergey Kovalyov
Sent: Monday, July 06, 2009 11:04 AM
To: flexcoders@yahoogroups.com; flexcompone...@yahoogroups.com
Subject: [flexcoders] How to handle keyboard shortcut globally?

 






Hi All!

 

We want our projector to be full screen always. To do that we add the
keyboard event listener to the stage and then if the user has pressed Esc
button, turn full screen mode on:

 

switch (event.keyCode) { 

case Keyboard.ESCAPE : 

try { 

stage.displayState = StageDisplayState.FULL_SCREEN;

} 

catch (e : Error) {} 

break;

 

But this event handler does not work when some pop up is focused.
Subscription to systemManager does not fix the problem either.

 

mx:Application 

xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml com/2006/mxml 

layout=absolute

applicationComplete=onApplicationComplete()

mx:Script

![CDATA[

import mx.controls.Alert;

private function onApplicationComplete() : void {

stage.displayState = StageDisplayState.FULL_SCREEN;

stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);

Alert.show('Alert!');

}

private function onKeyDown(event : KeyboardEvent) : void {

trace(Key down!);

}

]]

/mx:Script

/mx:Application

Any ideas how to implement really global Esc keyboard button press handler?

Sergey.





RE: [flexcoders] How to iterate items in repeater?

2009-07-06 Thread Tracy Spratt
If a repeated element has an id, say “myId”, you can reference the element
using myId[n], where “n” is the index of the dataProvider item.

 

But first, do not do your repeated content in-line. Instead, create a
component that encapsulates all of the behaviors you want, including the
style changes, and repeat that.  You will find this often eliminates the
need to iterate the repeated content.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of j2me_soul
Sent: Saturday, July 04, 2009 10:11 PM
To: flexcoders
Subject: [flexcoders] How to iterate items in repeater?

 






I wanna change some specific item's style which inside the repeater
component.

How can I iterate the items in the repeater and filtrate them ?






  _  

200
http://count.mail.163.com/redirect/footer.htm?f=http://gouwu.youdao.com 万
种商品,最低价格,疯狂诱惑你 





RE: [flexcoders] How to pass Query String in Url

2009-07-06 Thread Tracy Spratt
Rather, I would leave it as a POST and change the server to use the posted
name=value pairs instead of the qureystring parms.

 

If that is not possible, change to GET and build the url dynamically:

Var sUrl:String = http://base_url/?login=
http://base_url/?login=%20+%20loginname%20+%20password=%20password  +
loginname + password= password;

loginService.url = sUrl;

loginService.send();

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Charles Parcell
Sent: Saturday, July 04, 2009 9:19 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to pass Query String in Url

 






Instead of POST perhaps you want GET for your method.

CP



On Sat, Jul 4, 2009 at 2:50 AM, balaji mcabal...@gmail.
mailto:mcabal...@gmail.com com wrote:

Hi all,

 I am a newbie to flex , I am trying to pass the querystring to URL but it
is not working .

 The url : http://base_ http://base_url/?login=loginnamepassword=password
url/?login=loginnamepassword=password

 I tried to pass the arguments like this

 mx:HTTPService id=loginService url=base_url method=POST
 resultFormat=text result={handleLogin(event)} fault=
 {handleFault(event)}
 mx:request
   login{username.text}/login
   password{password.text}/password
 /mx:request
 /mx:HTTPService

 I need your help in fixing the issue ,

Thanks in Advance

Balaji








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


   (Yahoo! ID required)

   mailto:flexcoders-fullfeat
mailto:flexcoders-fullfeatu...@yahoogroups.com u...@yahoogroups.com


 





RE: [flexcoders] Popup in new Browser window

2009-07-06 Thread Tracy Spratt
Are you committed to using a new browser window?  Why not use a non-modal
popup?

 

You could do it with a separate browser, but it would be much harder.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of ferrari_hunk
Sent: Friday, July 03, 2009 5:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Popup in new Browser window

 






Hi,

I am facing some trouble on working with Popups. In my application, I have 2
panels, leftPanel(contains a tree) and rightPanel(shows charts/live data
from DB based on the selected tree leaf and it autorefreshes every 10
seconds). I am trying to implement a functionality in which I have a
button(show in new window) in the rightPanel, and on clicking the button, I
would like the current contents of the right panel to be presented in a new
Browser Window. The user can then choose some other tree leaf(from
leftPanel) and view other chart on the rightPanel, while the popped up
browser window still show data pertaining to the first tree leaf.

Can someone please help me out?

Thanks





[flexcoders] Fishbone Chart/Ishikawa Chart

2009-07-06 Thread Pedro Sena
Hi Guys,

I need to develop a fishbone(Ishikawa) chart .

I would like to know if someone already did it and can point me some
resource/link, even paid softwares I'm accepting.

I could generate it in PHP also, if it's not available in flex.

Create 'by hand' such a chart would be very complicated, I suppose.

Thanks for your time,

-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


RE: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-06 Thread Tracy Spratt
Why not use XMLListCollection and send the xml to .net as a string?  There
is little value in building an ArrayCollection of generic obects.  You can
sort/filter an XMLListCollection.

 

XML is more verbose than some other methods, but if bandwidth is truly an
issue, then you should be looking at a binary protocol.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Angelo Anolin
Sent: Friday, July 03, 2009 2:09 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] ArrayCollection Does Not Show Items In Order When
Passed to .NET WebService

 






Hi Sam,

Basically this is the process which I am using.

 

.NET
Retrieve records from Oracle DB and store the same into a dataset.  Return
the dataset as XML string via the command DataSet.GetXML.

 

Flex
In the event handler of my webservice method call, I parse the string into
XML, then ArrayCollection via the following codes:

 

private var _xmlData:XML;
[Bindable] private var arrDP:ArrayCollection = new ArrayCollection;

_xmlData = XML(event.result);
var oTemp:Object;
var xl:XMLList = _xmlData.children();

var i:int;
for(i = 0; i  xl.length(); i++)  
{
 oTemp = {NAME:xl[i].NAME.text(), TEAM:xl[i].TEAM.text(), 
JERSEY:xl[i].JERSEY.text(), MANAGER:xl[i].MANAGER.text()};
 arrDP.addItem(oTemp);
}

 

and in my datagrid, I am setting its dataProvider to the arrDP variable.

 

I used Array Collection because I implemented a search and filter
functionality which searches and filters the data accordingly for the
dataprovider which is then reflected back to the datagrid.

Now, when I need to return the ArrayCollection to .NET, I simply pass the
same as a parameter to a .NET function which accepts ArrayList as parameter.

 

.NET
Once the function receieves the arraycollection (which is then now an array
list), I get the arrays inside the arraylist and get the values inside the
array. 

 

I think by doing things like this, it may not be the best way.

 

You mentioned you'd map the XML to typed objects in .NET.  How can I do
this?

 

Instead of using arraycollection as dataprovider in my datagrid, can I use
another which would be much easier when I pass back to the .NET function?

 

Whats the best way to interact large set of data (datasets) between .NET and
Flex?

 

Thanks a lot.


 

 

  _  

From: Sam Lai samuel@gmail.com
To: flexcoders@yahoogroups.com
Sent: Friday, 3 July, 2009 13:52:12
Subject: Re: [flexcoders] ArrayCollection Does Not Show Items In Order When
Passed to .NET WebService

Instead of using an array list and trying to emulate the type-less
abilities of AS3, I'd try to map the XML to typed objects in .NET. Or
does the XML from your Flex app differ too wildly to do this?

Are you using the XmlSerializer to deserialize this? Or are you using
WCF? Or are you doing it some other way, or manually?

I'd provide an example, but I don't know enough details on your
situation to give something useful :)

2009/7/3 Angelo Anolin angelo_anolin@ mailto:angelo_anolin%40yahoo.com
yahoo.com:


 Hi Sam,

 Care to show some examples? I am parsing the arrayCollection into an
 ArrayList on .NET.  This is particularly not too appealing since I just
 discovered that for example, if one of the objects in the arraycollection
 would have an empty string value, the number of items inside the array is
 not reflected properly in .NET.

 Like:

 private var arrR:ArrayCollectio n = new ArrayCollection( [{ID:001 ,
 Value:Select },
 {ID:002,
 Value:Choose },
 {ID:003,
 Value:},]) ;

 When I pass this var arrR into a .NET webservice and delegate it to an
 ArrayList, the items in the array list will have one of the arrays only
 containing 1 item (instead of 2).

 Adding to my problem is the fact that the arrays inside the array list
when
 read in .NET should have the object ID and Value be in order but they are
 not.  This is further true when there are many items in the array
 collection.  Sometimes, the first item becomes the last one in the array
 list, and sometimes the order is not well.

 In any case, I am finding a solution on how I would be able to pass an
 ArrayCollection to .NET and be able to parse it properly.

 Thanks.

  _ _ __
 From: Sam Lai samuel@gmail. com mailto:samuel.lai%40gmail.com 
 To: flexcod...@yahoogro ups.com mailto:flexcoders%40yahoogroups.com 
 Sent: Thursday, 2 July, 2009 15:46:58
 Subject: Re: [flexcoders] ArrayCollection Does Not Show Items In Order
When
 Passed to .NET WebService

 How is it being parsed in .NET? You can parse it into a hashtable, or
 better yet, use a pre-defined object.

 Not sure why the order is different, but it is probably fragile to
 rely on the order in this case.

 2009/7/2 Angelo Anolin angelo_anolin@ yahoo.com:


 Hi FlexCoders,

 I have an array 

RE: [flexcoders] Re: Item Renderer doesn't work with just one Item :-(

2009-07-06 Thread Tracy Spratt
If you are using the default resultFormat, this behavior is an issue.  I'd
advise e4x.  Or, test the result to see what it contains and conditionally
react.  ArrayUtil.toArray might also be helpful.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Nate Pearson
Sent: Thursday, July 02, 2009 12:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Item Renderer doesn't work with just one Item :-(

 






I have a filter function applied. Could that be part of it?

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
valdhor valdhorli...@... wrote:

 I seem to remember some time back (Although my memory is not what it used
to be) that if returned data only has one item it is not converted to an
array (ie. it is only a string). You may like to try checking to see if it
is an array and, if not, coercing it to an array.
 
 I could be completely off track here though.
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Nate Pearson napearson99@ wrote:
 
  I have a custom item render on a bar chart. 
  
  When my the data provider for my bar chart has just one item in it the
set data function is never gets called. Updatedisplaylist doesn't trigger
and my bar chart is blank.
  
  Any ideas? I've had this bug for a while but I need to figure it out
now.
  
  Thanks!
  
  -Nate
 






[flexcoders] TitleWindow closeButton Color

2009-07-06 Thread jmfillman
Is there a style for the color of the closeButton in a TitleWindow? I can't 
seem to find it, but it seems odd to have black be the only option. Can't seem 
to embed an image for the closeButtonSkin either.

Setting a style in CSS doesn't work, or...??

TitleWindow {
 closeButtonSkin: Embed(assets/close.png);
}



[flexcoders] Re: Styling Chart Selection Square

2009-07-06 Thread kidl33t
Excellent!  Where is that property exposed?  

--- In flexcoders@yahoogroups.com, kenny14390 kenny14...@... wrote:

 You can change the rollover/selection color from the default 0x009dff, but I 
 don't know about styles.
 
 
 --- In flexcoders@yahoogroups.com, kidl33t kidl33t@ wrote:
 
  Hello,
  
  I have a cartesian chart and I would like to style the blue box that 
  highlights data when you click and drag.  It is the one that is enabled 
  when you set selectionMode=multiple.  I have searched the Adobe docs and 
  I cannot find it.  Is this even possible?
  
  Background Information:  I have my own double chart in which the bottom 
  chart shows the total range of information, and a top chart which shows the 
  information in a 'window' on the bottom chart.  Moving around the top chart 
  can be done either by moving the window on the bottom chart, or by dragging 
  around gridlines in the background of the top chart.  I also require the 
  ability to highlight certain data points on the top chart to display 
  summary information.  The trouble is that moving the top chart by clicking 
  and dragging the background is also how you select.  I have solved this by 
  stopping the panning action when either they start dragging on a data point 
  or when they hold shift and drag.  The trouble is is that when 
  selectionMode=multiple you always get the blue rectangle, so even though 
  my chart properly disables the panning when required, the rectangle shows 
  up.  Switching the selection mode on the fly doesn't seem to work.  My 
  thought was to style the selection box such it is clear until I want a 
  selection then I Will make it visible.  
  
  Thanks,
 





[flexcoders] Re: Continuous Multi-colored Line Chart

2009-07-06 Thread Tim Hoff

That one is a little tricky.  But, here's one way that you can do it:

http://www.timothyhoff.com/projects/LineRendererSample/LineRendererSampl\
e.html
http://www.timothyhoff.com/projects/LineRendererSample/LineRendererSamp\
le.html
(right click to view source)

-TH

--- In flexcoders@yahoogroups.com, kenny14390 kenny14...@... wrote:

 Hi all. It's been a year since my last question and this one seems
like an interesting problem.

 First to give you some background, I'm making a stats page for a game.
The game consists of three rounds and each round consists of five
clicks. Each click can either add or subtract points from your score. So
after each round I'd like to show a line chart to plot out the value of
the users' points (y axis) against each click (x axis). Since the second
round starts with the points from the first and the third from the
second, the graph of the entire game (all three rounds) is continuous.

 In order to graphically distinguish which clicks came from a certain
round, I would really like to have the line be broken up into three
colored segments.

 I couldn't find a good solution so I tried to hack my own by simply
drawing three individual segments head to tail. However, this doesn't
work for two reasons: the line needs to be continuous and it needs to
show data tips. The three segments at a glance appear to be continuous,
but I set the line to be curved so it's smooth. Back-to-back lines
don't curve corners and all of a sudden a smooth line has a sharp angle.
Secondly, since the ending point of the first or second round is the
starting point of the next round, hovering over that point on the chart
displays two data tips; one for each round (displaying the same point
values).


 Does anyone know of anything built in to simply say starting at
x-value X change line color to #xx?


 Thanks!





[flexcoders] Use cairngorm problem

2009-07-06 Thread j2me_soul
I am being tortured by a strange problem using cairngorm.

This is error reports:


Unable to resolve resource bundle CairngormMessages for locale en_US.  
testLCDS 

3608: 'getString' has been deprecated since 3.0.  Please use 
'ResourceManager.getInstance().getString()'. testLCDS/[source path] 
src/com/adobe/cairngorm CairngormError.as line 53 





[flexcoders] Horrible... 3 seconds initialization time for the first frame? Frustrated....

2009-07-06 Thread Dan
Hi,

Does anyone have any idea on why it takes nearlly 3 to 4 seconds after a swf 
completely downloaded, is it SystemManager initialized and go to the second 
frame of the movie? 

It is such a great penality for an web application.
Should I put tasks, such as automatic login to the preloader, in order to 
shorten this penality period??? Otherwise, no matter whatever tuning techique 
flexcoders applied, the Adobe penality is still too great.

I understand there should be initialization time, and that may depends on the 
client machine configuration. However, for a simplest swf with an Application 
tag only mxml, a log is being output on the onEnterFrame event, it already 
takes 3 to 4 seconds for the first log after the swf complete download, (time 
logged from Charles), it is so frustrated... 

Does it means that we have no way for a faster response time if we choose Flex? 
(Didn't mention about the download time for swf already...)

Anyone can help?
Dan