RE: [flexcoders] Re: FocusManager fun... Tab Loops redux

2009-03-13 Thread Alex Harui
Paul and I have discussed off line.  He's got a bunch of module panels that we 
wants to overlap and drag around the screen and have tabbing stay within which 
ever panel was clicked in and moved on top of the others.  Flex has all of this 
built-in.  Once he gets his modules popped up, he should be all set.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of jim.abbott45
Sent: Friday, March 13, 2009 3:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux


Feeling less than ecstatic? Then please VOTE for fixing of bug #16897.

See:  https://bugs.adobe.com/jira/browse/SDK-16897

--Jim



--- In flexcoders@yahoogroups.com, "aceoohay"  wrote:
>
> Alex:
>
> Neither of these options are practical in the real world (at least my world) 
> since we have over 135 modules currently, and up to 10 can be loaded at any 
> one time. We cannot have the cursor willy nilly hopping from module to module 
> going to panels that are partially obscured by other panels, etc.
>
> Does the mx.managers.FocusManager allow the ability to establish multiple tab 
> loops within a single application?
>
> If so, how can this be used to define a tab loop for a single container?
>
> If not, is there anything that will allow defining a tab loop for a 
> container?! With multiple tab loops available on the stage at one time. The 
> user can use the mouse to jump from module to module.
>
> Paul
>
> --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
> >
> > Setting tabEnabled on anything you don't want to have focus is one answer. 
> > So is non-modal popups.
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > Behalf Of aceoohay
> > Sent: Wednesday, March 11, 2009 8:00 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux
> >
> >
> > Alex:
> >
> > Let me restate my primary question;
> >
> &! gt; "...has anyone else tried to create a flex component with ! a separa 
> te tab loop, if so how did you make it work?"
> >
> > Since the documentation seems to indicate that FocusManager will allow 
> > multiple tab loops that was the approach I was investigating.
> >
> > My primary goal, irrespective of how I do it is to create what I call a 
> > "tab domain." Whatever it is called, what I need is the ability to define a 
> > captive group of objects from which focus will never leave by pressing the 
> > tab key.
> >
> > Paul
> >
>



RE: [flexcoders] Re: stage mouseUp not firing outside app window

2009-03-13 Thread Alex Harui
MouseLeave for me on windows.  What is your configuration?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of graham.t...@rocketmail.com
Sent: Friday, March 13, 2009 3:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: stage mouseUp not firing outside app window


You bet. Here's my current version (modified from my first post).

Many thanks!


http://www.adobe.com/2006/mxml"; layout="absolute"
applicationComplete="onApplicationComplete(event)" 
viewSourceURL="srcview/index.html">










--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> We use MOUSE_LEAVE successfully in Flex. Maybe post a simple test case.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of graham.t...@...
> Sent: Friday, March 13, 2009 2:43 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: stage mouseUp not firing outside app window
>
>
> Many thanks for the response!
>
> For me, this is behaving just like mouseUp.
>
> I do get a mouseLeave when I mouse out of the application, and I _can_ get 
> one when I click-drag out of the application.
>
> However, I do _not_ get a mouseLeave when I click on the label and drag out 
> of the application (and release the mouse).
>
> If I happened to click on that label, then I can't get it to work, and I need 
> it no matter where (or what) I click on the stage.
>
> I added the following to my prior test:
>
> stage.addEventListener(Event.MOUSE_LEAVE, onMouseLeave);
>
> and
>
> private function onMouseLeave(e:Event):void
> {
> trace ("onMouseLeave");
> }
>
> --- In 
> flexcoders@yahoogroups.com,
>  Alex Harui  wrote:
> >
> > A mouseup off-stage is usually sent as EVENT.as:MOUSE_LEAVE
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: 
> > flexcoders@yahoogroups.com
> >  
> > [mailto:flexcoders@yahoogroups.com]
> >  On Behalf Of graham.tony@
> > Sent: Friday, March 13, 2009 1:44 PM
> > To: 
> > flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: stage mouseUp not firing outside app window
> >
> >
> > I gave it a shot, but the behavior was the same: click-drag from a label to 
> > somewhere off the application screen won't report a rollOut or subsequent 
> > mouseUp.
> >
> > So I begin to think I simply can't track click-drag's off screen (or that 
> > they even went off-screen). I'm working on a particular scrolling feature; 
> > so this is problematic, given that users can click-drag from anywhere in my 
> > container.
> >
> > --- In 
> > flexcoders@yahoogroups.com,
> >  Fotis Chatzinikos  wrote:
> > >
> > > did you try on the Application.application (might be the same as stage but
> > > you never know...)
> > >
> > > On Fri, Mar 13, 2009 at 6:53 PM, graham.tony@ <
> > > graham.tony@> wrote:
> > >
> > > > Many thanks for your response!
> > > >
> > > > I was hoping for the mouseUp, but I did try the rollOut, as you 
> > > > suggested.
> > > > I couldn't even get it to work on Stage. SystemManager worked fine on a
> > > > normal rollOut, but it worked only intermittently (I know that sounds
> > > > strange, but it's what it is) on a click-drag from the label.
> > > >
> > > > Attempts:
> > > >
> > > >
> > > > //systemManager.topLevelSystemManager.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
> > > > stage.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
> > > >
> > > >
> > > > --- In 
> > > > flexcoders@yahoogroups.com
> > > >  , Fotis
> > > > Chatzinikos  wrote:
> > > > >
> > > > > I think this is a known problem... What about adding a stage rollout
> > > > event,
> > > > > and then there dispatch a mouse up if needed?
> > > > >
> > > > > Give it a go (have not tested myself)
> > > > >
> > > > > On Fri, Mar 13, 2009 at 5:45 PM, graham.tony@ <
> > > > > graham.tony@> wrote:
> > > > >
> > > > > >
> > > > > > In the following example, I've got a stage-level mouseUp listener. 
> > > > > > In
> > > > the
> > > > > > application window, I can click-drag off-window and, when I release,
> > > > the
> > > > > > mouseUp event will f

RE: [flexcoders] Re: canvas backgroundimage loadercontext

2009-03-13 Thread Alex Harui
One possibility would be to subclass flash.display.Loader and supply that as 
the backgroundImage "class" then have it load the image with a custom URL

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of rdibona
Sent: Friday, March 13, 2009 3:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: canvas backgroundimage loadercontext


Thanks for the reply.

Assuming that I am willing to take the risk of the server going down (the 
images are stored on Amazon S3 so they are pretty safe), how can I have a 
backgroundimage check the policy file, using LoaderContext or otherwise?

This is an app that has been working great for over 2 years and only with one 
of the latest releases of flash did this break so I am scrambling to try and 
fix it. The reason I can't really do it as an image with a child index of 0 is 
because the user can click things and drag them around and I don't want them to 
accidentally drag the background image -- I'd have to write a bunch of code to 
work through that scenario so I'd like to exhaust all other options first.

Thanks again,

Rich

--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> I'd avoid loading foreign content as the backgroundImage. If that server goes 
> down, your app will look very different.
> If you really want to, then it might be easier to put an Image behind all of 
> the other children and not use backgroundImage
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of rdibona
> Sent: Friday, March 13, 2009 11:15 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] canvas backgroundimage loadercontext
>
>
> Hi there,
>
> I have an application where I take a "snapshot" of a Canvas with various 
> other images on it using the bitmapdata.draw method. I had to change my code 
> to use a LoaderContext for each image load to avoid security errors, i.e.:
>
> var lc : LoaderContext;
> var img : Image;
>
> img = new Image();
> lc = new LoaderContext(true);
> img.loaderContext = lc;
> img.load(src);
>
> This has worked fine. However, I cannot figure out how to avoid a security 
> error when setting the backgroundImage style for a canvas, as it expects a 
> URL directly with no opportunity to specify another image as the value. It 
> does say you can specify a class, but how do you cast an image into a 
> compatible class? The images I am dealing with are dynamically loaded at 
> run-time so there is no opportunity to use the Embed directive.
>
> Thanks,
>
> Rich
>



[flexcoders] Question, I am having problems with my encrypted local store

2009-03-13 Thread djhatrick
I am saving some info, and when i save the int goes in correctly, but when I 
readInt()  it comes out a lot bigger, I can't find the relationship

Here's what i am dealing with:

##VirtualBounds (x=0, y=0, w=3200, h=1200)



READING this.virtualBounds 0 0 819200 307200



It's really confusing, what's funny, is that I have had no problems in the 
past.  

Any help, please.
Thanks,
Patrick



Re: Fw: [flexcoders] Sorting on Datagrid

2009-03-13 Thread wubac1
Please see ICollectionView and ListCollectionView source code.  You need to 
account for paging in your collection.  Since your collection inherits from 
ArrayCollection, the sorting is currently done as dicated by 
ListCollectionView.  Since ListCollectionView does not account for paging, your 
collection will have issues until you modify the PagedArrayCollection methods 
to account for sorting.

I'm also confused by the functions for navigation in the class: pageUp, 
pageDown, etc.  You shouldn't need those.  The beauty of collections is that 
you can encapsulate the paging and the components, such as a DataGrid, will 
function the same regardless of the collection.  By that, I mean you shouldn't 
need a next page and previous page button when you have a scroll bar.

--- In flexcoders@yahoogroups.com, kotha poornima  wrote:
>
> Hi,
> I used the pagableArrayCollection as input arraycollection to the datagrid. 
> Because of this only sorting is not working good. If we change it to 
> arraycollection its working fine. But i want pagableArraycollection for doing 
> pagination.
> PagableArrayCollection.mxml:(This file i got it from google)
> package com.cbeyond.dashboard.utils
> {
> import mx.collections.ArrayCollection;
> import mx.controls.Alert;
> 
> public class PagableArrayCollection extends ArrayCollection
> {   
> public function PagableArrayCollection(source:Array=null){
> super();
> this.source = source;
> pages=0;
> setFilter();
> }
> //Private variables
> private var _pages:Number;
> public var _itemsPerPage:Number = 4;
> private var _currentPage:Number = 1;
> private var _maxIndex:Number = 24;
> private var _minIndex:Number = 0;
> 
> //private methods
> private function set pages(value:Number):void{
>if(this.source.length % this.itemsPerPage == 0){
>_pages = this.source.length/this.itemsPerPage;
>}
>else{
>_pages =  int(this.source.length/this.itemsPerPage)+1;
>}
> }
> 
> public function setFilter():void{
> this._maxIndex = (this.currentPage * this.itemsPerPage)-1;
> this._minIndex = this._maxIndex - (this.itemsPerPage -1);
> this.filterFunction = filterData;
> this.refresh();
> 
> }
> 
> private function filterData(item:Object):Boolean{
> return (this.getItemIndex(item) >= _minIndex && 
> this.getItemIndex(item) <= _maxIndex)
> }
> 
> //public methods
> [Bindable]
> public function get itemsPerPage():Number{
> return _itemsPerPage;
> }
> 
> public function set itemsPerPage(value:Number):void{
> _itemsPerPage = value;
> this.pages = 0;
> if(this.currentPage > this.pages){
> this.currentPage = this.pages;
> }
> setFilter();
> }
> 
>  [Bindable]
> public function get currentPage():Number{
> return _currentPage;
> }
> 
> public function set currentPage(value:Number):void{
> _currentPage = value;
> setFilter();
> }
> 
> [Bindable]
> public function get pages():Number{
> return _pages;
> }
> 
> public function pageUp():void{
> 
>  if(this.currentPage < this.pages){
> this.currentPage += 1;
> }
> }
> 
> public function pageDown():void{
> 
> if(this.currentPage > 1){
> this.currentPage -= 1;
> }
> }
> public function enableNextButton():Boolean{
> //Alert.show(this.currentPage+","+this.pages);
> if(this.currentPage == this.pages)
> return false;
> else
> return true;
> }
> public function enablePrevButton():Boolean{
> if(this.currentPage == 1 || this.currentPage == 0)
> return false;
> else 
> return true;
> }
> }
> }
> 
> 
> Main.mxml
> 
> 
> 
> initialize="initDP();" width="550" height="400">
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 
>  headerText="In Stock"/>
> 
> 
>  
> 
> With this Sorting is not working. Just try it out so that u can understand it 
> well. If you replace PagableArrayCollection with ArrayCollection Sorting is 
> working fine. What is that missing in PagableArrayCollection. Or DataGrid 
> wont support pagableArrayCollection to sort. Please help me guys!!!
> 
> 
> - Forwarded Message 
> From: kotha poornima 
> To: flexcode

[flexcoders] null parent for ChartLabel

2009-03-13 Thread maciek9billion
(apologies if this is a double post--I'm having e-mail problems)

I'm getting the following stack trace when changing the layout of some
charts:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at mx.charts.chartClasses::ChartLabel/updateDisplayList()[C:\Work\flex
\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses
\ChartLabel.as:262]
at mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks
\projects\framework\src\mx\core\UIComponent.as:6214]
at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x
\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x
\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks
\projects\framework\src\mx\core\UIComponent.as:8460]
at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks
\projects\framework\src\mx\core\UIComponent.as:8403]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()


Line 262 in ChartLabel.as is the following:

if(parent.rotation == 90 && parent is AxisRenderer)

which, combined with the error, seems to imply that this ChartLabel has
no parent (!), and I've confirmed this in the debugger. I searched
through my code and I'm not creating any ChartLabels directly. Any ideas
why this could be happening (I can't nail down a simple set of steps to
this)? Any thoughts for workarounds?

Thanks,
Maciek




[flexcoders] Re: canvas backgroundimage loadercontext

2009-03-13 Thread rdibona
Thanks for the reply.

Assuming that I am willing to take the risk of the server going down (the 
images are stored on Amazon S3 so they are pretty safe), how can I have a 
backgroundimage check the policy file, using LoaderContext or otherwise?

This is an app that has been working great for over 2 years and only with one 
of the latest releases of flash did this break so I am scrambling to try and 
fix it. The reason I can't really do it as an image with a child index of 0 is 
because the user can click things and drag them around and I don't want them to 
accidentally drag the background image -- I'd have to write a bunch of code to 
work through that scenario so I'd like to exhaust all other options first.

Thanks again,

Rich

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I'd avoid loading foreign content as the backgroundImage.  If that server 
> goes down, your app will look very different.
> If you really want to, then it might be easier to put an Image behind all of 
> the other children and not use backgroundImage
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of rdibona
> Sent: Friday, March 13, 2009 11:15 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] canvas backgroundimage loadercontext
> 
> 
> Hi there,
> 
> I have an application where I take a "snapshot" of a Canvas with various 
> other images on it using the bitmapdata.draw method. I had to change my code 
> to use a LoaderContext for each image load to avoid security errors, i.e.:
> 
> var lc : LoaderContext;
> var img : Image;
> 
> img = new Image();
> lc = new LoaderContext(true);
> img.loaderContext = lc;
> img.load(src);
> 
> This has worked fine. However, I cannot figure out how to avoid a security 
> error when setting the backgroundImage style for a canvas, as it expects a 
> URL directly with no opportunity to specify another image as the value. It 
> does say you can specify a class, but how do you cast an image into a 
> compatible class? The images I am dealing with are dynamically loaded at 
> run-time so there is no opportunity to use the Embed directive.
> 
> Thanks,
> 
> Rich
>



[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread ppongtong
Please try
public function result(event:Object) :void
{
   var dummy :headlineVO; // add this line

   MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result);
}


--- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
>
> In the command result I have
> public function result(event:Object) : void {
> MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result);
> }
> 
> adminARCHeadlines is an ArrayCollection in MyModel.as
> 
> How do I tell it that it's an ArrayCollection of VOs?
> 
> On Fri, Mar 13, 2009 at 3:21 PM, ppongtong  wrote:
> > Actually, when u get the data from cfc, did u map it to your headlineVO?
> >
> >
> > --- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
> >>
> >> I have a vo headlineVO that has the following variables
> >> headline_id:Number
> >> headline:String
> >> effdate:Date
> >> endeffdate:Date
> >> actionuser:String
> >> actiondate:Date
> >> I have a cfc that returns an ArrayCollection of beans, each bean has
> >> the above variables too.
> >> I can populate a datagrid with this data and it shows fine.
> >> I'm trying to populate a new vo (currentVO) when the user selects a
> >> row and hits "edit".
> >> The new VO shows as being null in the debugger.
> >> This is what my code looks like
> >>
> >>  >> dataProvider="{MyModel.getInstance().adminARCHeadlines}"
> >> click="selectedHeadline" ...
> >> ...
> >> 
> >>
> >> above I have a function
> >> private function selectedHeadline():void {
> >> currentVO = headlinesDG.selectedItem as headlineVO;
> >> }
> >>
> >> and for the editButton.click I have another function that just Alert
> >> the currentVO.headline;
> >>
> >> I get a null object reference when I click on the edit Button.
> >> If I put a breakpoint above the Alert I can see that currentVO is
> >> null, how can I assign that selected row to my vo?
> >> Can anyone offer suggestions or things I should check?
> >>
> >> Thanks in advance!
> >>
> >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location: 
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
> >
> >
> >
> >
>




[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread ppongtong
Actually, I just saw u have RemoteClass metadata already.

please try this...
public function result(event:Object) :void
{
   var temp :HeadLineVO; //just fake, that we import and use the class.

   MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result);
}


--- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
>
> In the command result I have
> public function result(event:Object) : void {
> MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result);
> }
> 




[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread ppongtong
Please try

public function result(evt:Event) :void
{
   var dummy :headlineVO; // dummy 
   MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result);
}


--- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
>
> In the command result I have
> public function result(event:Object) : void {
> MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result);
> }
> 
> adminARCHeadlines is an ArrayCollection in MyModel.as
> 
> How do I tell it that it's an ArrayCollection of VOs?
>



[flexcoders] Re: canvas backgroundimage loadercontext

2009-03-13 Thread rdibona
Thanks for the reply.

Assuming that I am willing to take the risk of the server going down (the 
images are stored on Amazon S3 so they are pretty safe), how can I have a 
backgroundimage check the policy file, using LoaderContext or otherwise?

This is an app that has been working great for over 2 years and only with one 
of the latest releases of flash did this break so I am scrambling to try and 
fix it. The reason I can't really do it as an image with a child index of 0 is 
because the user can click things and drag them around and I don't want them to 
accidentally drag the background image -- I'd have to write a bunch of code to 
work through that scenario so I'd like to exhaust all other options first.

Thanks again,

Rich

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I'd avoid loading foreign content as the backgroundImage.  If that server 
> goes down, your app will look very different.
> If you really want to, then it might be easier to put an Image behind all of 
> the other children and not use backgroundImage
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of rdibona
> Sent: Friday, March 13, 2009 11:15 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] canvas backgroundimage loadercontext
> 
> 
> Hi there,
> 
> I have an application where I take a "snapshot" of a Canvas with various 
> other images on it using the bitmapdata.draw method. I had to change my code 
> to use a LoaderContext for each image load to avoid security errors, i.e.:
> 
> var lc : LoaderContext;
> var img : Image;
> 
> img = new Image();
> lc = new LoaderContext(true);
> img.loaderContext = lc;
> img.load(src);
> 
> This has worked fine. However, I cannot figure out how to avoid a security 
> error when setting the backgroundImage style for a canvas, as it expects a 
> URL directly with no opportunity to specify another image as the value. It 
> does say you can specify a class, but how do you cast an image into a 
> compatible class? The images I am dealing with are dynamically loaded at 
> run-time so there is no opportunity to use the Embed directive.
> 
> Thanks,
> 
> Rich
>




Re: [flexcoders] Hiding Swf on a website

2009-03-13 Thread Rick Winscot
Hmm I guess I could have used application/x-shockwave-flash as the
content type. I'll change that - it looks sexier.

An fyi though - Flash has supported progressive download via HTTP for some
time. The browser is just the host/conduit - the wrapper is what hooks the
stream up to the Flash Player. In fact, you really don't even need the
headers in the php script (top three lines in the example).

Rick Winscot


On 3/13/09 7:18 PM, "Guy Morton"  wrote:

> Rick, I'm surprised setting the content-type to application/octet-
> stream worked...does it work in all browsers/OSes? Do you have to set
> the content type in the wrapper if you use that approach? If you don't
> it'd surprise me if all browsers were smart enough to do the right
> thing with the content.
> 
> 
> On 14/03/2009, at 10:01 AM, Rick Winscot wrote:
> 
>> Christophe ­ not sure if this helps... but I put together a sample
>> of one approach that might work for you.
>> 
>> http://www.quilix.com/node/31
>> 
>> Rick Winscot
>> 
>> 
>> 
>> On 3/13/09 7:08 AM, "christophe_jacquelin" >> wrote:
>> 
>>> 
>>> 
>>> 
>>> Hello,
>>> 
>>> How to hide swf files on a website, preventing their copy by a
>>> software like httptrack?
>>> 
>>> Thank you,
>>> Christophe,
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e6207
> 9f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
> 
> 
> 




RE: [flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread Tracy Spratt
It looks ok to me too.  One thing, your result handler should be typed
ResultEvent.  Also, assigning an object makes a reference to the original
object.  Could anything be nulling that original object.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Greg Morphis
Sent: Friday, March 13, 2009 5:13 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: datagrid.selectedItem to vo?

 

In the command result I have
public function result(event:Object) : void {
MyModel.getInstance().adminARCHeadlines = new ArrayCollection
(event.result);
}

adminARCHeadlines is an ArrayCollection in MyModel.as

How do I tell it that it's an ArrayCollection of VOs?

On Fri, Mar 13, 2009 at 3:21 PM, ppongtong mailto:ppongtong%40yahoo.com> com> wrote:
> Actually, when u get the data from cfc, did u map it to your headlineVO?
>
>
> --- In flexcod...@yahoogro  ups.com,
Greg Morphis  wrote:
>>
>> I have a vo headlineVO that has the following variables
>> headline_id:Number
>> headline:String
>> effdate:Date
>> endeffdate:Date
>> actionuser:String
>> actiondate:Date
>> I have a cfc that returns an ArrayCollection of beans, each bean has
>> the above variables too.
>> I can populate a datagrid with this data and it shows fine.
>> I'm trying to populate a new vo (currentVO) when the user selects a
>> row and hits "edit".
>> The new VO shows as being null in the debugger.
>> This is what my code looks like
>>
>> > dataProvider="{MyModel.getInstance().adminARCHeadlines}"
>> click="selectedHeadline" ...
>> ...
>> 
>>
>> above I have a function
>> private function selectedHeadline():void {
>> currentVO = headlinesDG.selectedItem as headlineVO;
>> }
>>
>> and for the editButton.click I have another function that just Alert
>> the currentVO.headline;
>>
>> I get a null object reference when I click on the edit Button.
>> If I put a breakpoint above the Alert I can see that currentVO is
>> null, how can I assign that selected row to my vo?
>> Can anyone offer suggestions or things I should check?
>>
>> Thanks in advance!
>>
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.

yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: https://share.

acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: http://www.mail-

archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>





RE: [flexcoders] changes on item renderers on a List

2009-03-13 Thread Tracy Spratt
I think I would approach this by having an "isExpanded" property on the
dataProvider items, and toggle that property using logic in a change
handler.  The renderer would use that property to set its visual state.

 

There won't be any clear relationship between selectedItems and the visual
renderers.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of gwangdesign
Sent: Friday, March 13, 2009 6:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] changes on item renderers on a List

 

Hi,

I am re-sending this question since this seemingly simple question has been
taking me a bit much longer than I expected;)

I have a whole bunch of item renderers inside a List (or it lays out and
scrolls the renderers the way a List does). Here is what I am trying to do:
I'd like to expand/shrink these item renderers based on whether they are
newly "selected" or "de-selected". My approach right now is extending List
class. I listen to ListEvent.CHANGE event and invalidate my component as it
occurs. I then try to figure out which renderer has been
selected/deselected... and I can't.

Basically my component is interested in the following actions:
1. When "allowMultipleSelection" is true, user selects an item that hasn't
been selected yet;
2. When "allowMultipleSelection" is true, user selects an already selected
item;
3. When "allowMultipleSelection" is false, user selects a new item;
4. When "allowMultipleSelection" is false, user selects an already selected
item;

I poke into the code of mx.controls.ListBase and List and the code is a bit
over my head right now;)

Any ideas? pseudo code is welcome!

Thanks and have a great weekend!

-geng





[flexcoders] Re: LCDS data management - original data on the client

2009-03-13 Thread Geoffrey
I'm interested in somehow showing that an item from a managed collection in a 
datagrid has pending changes, whatever they may be.  Change the color of the 
row, bold the text, add another column with a status symbol, etc  Something 
that let's the user know that this particular item has pending changes that 
need to be saved (we have autoCommit=false, but would also be good for off-line 
conops).

I looked up the DataService.getPendingOperation(item) method, but I'm not sure 
how to implement this in a manner that will update the visualization of the 
pending change in real time.  Any suggestions?  Is there a better way of doing 
what I'm trying to achieve?

Thanks,
 ~Geoff

--- In flexcoders@yahoogroups.com, Jeff Vroom  wrote:
>
> Unfortunately we currently only expose the 
> DataService.getPendingOperation(item) method.  We don’t let you get at the 
> original version of the item, list of changes, set of newly created or 
> deleted items yet.  This is something we’d like to offer but it is just not 
> there yet.
> 
> Jeff
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Zdenek Mikan
> Sent: Tuesday, July 22, 2008 10:24 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] LCDS data management - original data on the client
> 
> 
> I am using LCDS data management with Hibernate assembler. My dataservice
> is configured with autoSyncEnabled set to false and in my Flex
> application it is possible to make various changes to data in
> ArrayCollection resulting from fill operation. Then before commiting the
> dataservice I would like to inspect these changes. Are the old values of
> data (which were originally read by fill operation) accessible anywhere
> on the client?
> 
> Zdenek M
>




Re: [flexcoders] Hiding Swf on a website

2009-03-13 Thread Guy Morton
Rick, I'm surprised setting the content-type to application/octet- 
stream worked...does it work in all browsers/OSes? Do you have to set  
the content type in the wrapper if you use that approach? If you don't  
it'd surprise me if all browsers were smart enough to do the right  
thing with the content.


On 14/03/2009, at 10:01 AM, Rick Winscot wrote:

> Christophe – not sure if this helps... but I put together a sample  
> of one approach that might work for you.
>
> http://www.quilix.com/node/31
>
> Rick Winscot
>
>
>
> On 3/13/09 7:08 AM, "christophe_jacquelin"  > wrote:
>
>>
>>
>>
>> Hello,
>>
>> How to hide swf files on a website, preventing their copy by a  
>> software like httptrack?
>>
>> Thank you,
>> Christophe,
>>
>>
>>
>>
>>
>
> 





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

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



Re: [flexcoders] Hiding Swf on a website

2009-03-13 Thread Rick Winscot
Christophe ­ not sure if this helps... but I put together a sample of one
approach that might work for you.

http://www.quilix.com/node/31

Rick Winscot



On 3/13/09 7:08 AM, "christophe_jacquelin" 
wrote:

>  
>  
> 
> Hello,
> 
> How to hide swf files on a website, preventing their copy by a software like
> httptrack?
> 
> Thank you,
> Christophe, 
> 
>   
> 
> 
>> 



[flexcoders] Re: ColumnCharts - problem adding a LineSeries to ColumnChart w/o SecondSeries

2009-03-13 Thread EddieBerman
Just noticed - it appears that this behavior has been logged as a bug:
https://bugs.adobe.com/jira/browse/FLEXDMV-1957

Still looking for a workaround, in the event anyone's already dealt with this.
Thanks,
-Eddie


--- In flexcoders@yahoogroups.com, "EddieBerman"  wrote:
>
> I'm trying to add a LineSeries to a ColumnChart. The problem is that for each 
> LineSeries added, a "ghost" series of columns is also added. 
> 
> This doesn't happen if I add a LineSeries via the SecondSeries tag, but I'm 
> trying to avoid that since it's been deprecated.
> 
> Is there a way to avoid the ghost column series? Am I doing something wrong? 
> To better visualize the problem, look at this Adobe doc page:
> http://livedocs.adobe.com/flex/3/html/help.html?content=charts_types_12.html
> 
> Notice how the columns in the very top image are adjacent, unlike the two 
> examples below it which both contain "placeholders" for the added series, 
> which won't ever be drawn since the series is actually the LineSeries 
> floating on top.
> 
> Any help or alternative solutions very much appreciated.
> -Eddie
> 
> www.edberman.com
>




[flexcoders] Re: changes on item renderers on a List

2009-03-13 Thread gwangdesign
I guess what I am trying to figure out is how to get the "de-selected item" or 
"de-selected index" in a List? I know there are public members 
"selectedIndex"/"selectedItem"...



[flexcoders] Re: FocusManager fun... Tab Loops redux

2009-03-13 Thread jim.abbott45
Feeling less than ecstatic? Then please VOTE for fixing of bug #16897.

See:  https://bugs.adobe.com/jira/browse/SDK-16897


--Jim



--- In flexcoders@yahoogroups.com, "aceoohay"  wrote:
>
> Alex:
>
> Neither of these options are practical in the real world (at least my
world) since we have over 135 modules currently, and up to 10 can be
loaded at any one time. We cannot have the cursor willy nilly hopping
from module to module going to panels that are partially obscured by
other panels, etc.
>
> Does the mx.managers.FocusManager allow the ability to establish
multiple tab loops within a single application?
>
> If so, how can this be used to define a tab loop for a single
container?
>
> If not, is there anything that will allow defining a tab loop for a
container? With multiple tab loops available on the stage at one time.
The user can use the mouse to jump from module to module.
>
> Paul
>
> --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
> >
> > Setting tabEnabled on anything you don't want to have focus is one
answer.  So is non-modal popups.
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of aceoohay
> > Sent: Wednesday, March 11, 2009 8:00 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux
> >
> >
> > Alex:
> >
> > Let me restate my primary question;
> >
> > "...has anyone else tried to create a flex component with a separate
tab loop, if so how did you make it work?"
> >
> > Since the documentation seems to indicate that FocusManager will
allow multiple tab loops that was the approach I was investigating.
> >
> > My primary goal, irrespective of how I do it is to create what I
call a "tab domain." Whatever it is called, what I need is the ability
to define a captive group of objects from which focus will never leave
by pressing the tab key.
> >
> > Paul
> >
>



[flexcoders] ColumnCharts - problem adding a LineSeries to ColumnChart w/o SecondSeries

2009-03-13 Thread EddieBerman
I'm trying to add a LineSeries to a ColumnChart. The problem is that for each 
LineSeries added, a "ghost" series of columns is also added. 

This doesn't happen if I add a LineSeries via the SecondSeries tag, but I'm 
trying to avoid that since it's been deprecated.

Is there a way to avoid the ghost column series? Am I doing something wrong? To 
better visualize the problem, look at this Adobe doc page:
http://livedocs.adobe.com/flex/3/html/help.html?content=charts_types_12.html

Notice how the columns in the very top image are adjacent, unlike the two 
examples below it which both contain "placeholders" for the added series, which 
won't ever be drawn since the series is actually the LineSeries floating on top.

Any help or alternative solutions very much appreciated.
-Eddie

www.edberman.com





[flexcoders] Re: stage mouseUp not firing outside app window

2009-03-13 Thread graham.t...@rocketmail.com

You bet.  Here's my current version (modified from my first post).

Many thanks!


http://www.adobe.com/2006/mxml"; layout="absolute"
applicationComplete="onApplicationComplete(event)" 
viewSourceURL="srcview/index.html">











--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> We use MOUSE_LEAVE successfully in Flex.  Maybe post a simple test case.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of graham.t...@...
> Sent: Friday, March 13, 2009 2:43 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: stage mouseUp not firing outside app window
> 
> 
> Many thanks for the response!
> 
> For me, this is behaving just like mouseUp.
> 
> I do get a mouseLeave when I mouse out of the application, and I _can_ get 
> one when I click-drag out of the application.
> 
> However, I do _not_ get a mouseLeave when I click on the label and drag out 
> of the application (and release the mouse).
> 
> If I happened to click on that label, then I can't get it to work, and I need 
> it no matter where (or what) I click on the stage.
> 
> I added the following to my prior test:
> 
> stage.addEventListener(Event.MOUSE_LEAVE, onMouseLeave);
> 
> and
> 
> private function onMouseLeave(e:Event):void
> {
> trace ("onMouseLeave");
> }
> 
> --- In flexcoders@yahoogroups.com, Alex 
> Harui  wrote:
> >
> > A mouseup off-stage is usually sent as EVENT.as:MOUSE_LEAVE
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com] On 
> > Behalf Of graham.tony@
> > Sent: Friday, March 13, 2009 1:44 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: stage mouseUp not firing outside app window
> >
> >
> > I gave it a shot, but the behavior was the same: click-drag from a label to 
> > somewhere off the application screen won't report a rollOut or subsequent 
> > mouseUp.
> >
> > So I begin to think I simply can't track click-drag's off screen (or that 
> > they even went off-screen). I'm working on a particular scrolling feature; 
> > so this is problematic, given that users can click-drag from anywhere in my 
> > container.
> >
> > --- In 
> > flexcoders@yahoogroups.com,
> >  Fotis Chatzinikos  wrote:
> > >
> > > did you try on the Application.application (might be the same as stage but
> > > you never know...)
> > >
> > > On Fri, Mar 13, 2009 at 6:53 PM, graham.tony@ <
> > > graham.tony@> wrote:
> > >
> > > > Many thanks for your response!
> > > >
> > > > I was hoping for the mouseUp, but I did try the rollOut, as you 
> > > > suggested.
> > > > I couldn't even get it to work on Stage. SystemManager worked fine on a
> > > > normal rollOut, but it worked only intermittently (I know that sounds
> > > > strange, but it's what it is) on a click-drag from the label.
> > > >
> > > > Attempts:
> > > >
> > > >
> > > > //systemManager.topLevelSystemManager.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
> > > > stage.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
> > > >
> > > >
> > > > --- In 
> > > > flexcoders@yahoogroups.com
> > > >  , Fotis
> > > > Chatzinikos  wrote:
> > > > >
> > > > > I think this is a known problem... What about adding a stage rollout
> > > > event,
> > > > > and then there dispatch a mouse up if needed?
> > > > >
> > > > > Give it a go (have not tested myself)
> > > > >
> > > > > On Fri, Mar 13, 2009 at 5:45 PM, graham.tony@ <
> > > > > graham.tony@> wrote:
> > > > >
> > > > > >
> > > > > > In the following example, I've got a stage-level mouseUp listener. 
> > > > > > In
> > > > the
> > > > > > application window, I can click-drag off-window and, when I release,
> > > > the
> > > > > > mouseUp event will fire.
> > > > > >
> > > > > > However, if I start my click-drag on the label and release 
> > > > > > off-screen,
> > > > I do
> > > > > > _not_ get the mouseUp event.
> > > > > >
> > > > > > (I think setting mouseChildren=false on thetestContainer resolves 
> > > > > > the
> > > > issue
> > > > > > for this test, but it's not practical for my application.)
> > > > > >
> > > > > > Anyone have any ideas?
> > > > > >
> > > > > > 
> > > > > > http://www.adobe.com/2006/mxml";
> > > > > > layout="absolute"
> > > > > > applicationComplete="onApplicationComplete(event)">
> > > > > >
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > >
> > > > > >  > > > > > backgroundColor="#00ff00">
> > > > > > 
> > > > > 

RE: [flexcoders] Weired Focus Change behaviour on tab pressing

2009-03-13 Thread Alex Harui
You have to set groupName, not group.








Same for the other radiobuttons

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of anuj181
Sent: Friday, March 13, 2009 10:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Weired Focus Change behaviour on tab pressing


Hi Guys
I am trying to make the focus changed consistently to different components in 
my app but it is showing different behavior when user presses tab. Few things 
are happening here if one of the radio button from the first radio group has 
been selected then pressing tab button will keep on cycling through first 3 
components and if the radio buttons are not selected then changing focus on the 
tab pressing works fine, All I need is that whenever user presses tab key, it 
changes the focus consistently through all of the components(doesn't matter if 
the radio button is selected or not) and the same behavior will be followed 
when user presses the shift+Tab.
Anyone has any idea about whats going on here,Please help me in fixing this 
issue,
Thanks a lot
geekyDeveloper
/***CODE***/

http://www.adobe.com/2006/mxml"; layout="absolute">


















































[flexcoders] changes on item renderers on a List

2009-03-13 Thread gwangdesign
Hi,

I am re-sending this question since this seemingly simple question has been 
taking me a bit much longer than I expected;)

I have a whole bunch of item renderers inside a List (or it lays out and 
scrolls the renderers the way a List does). Here is what I am trying to do: I'd 
like to expand/shrink these item renderers based on whether they are newly 
"selected" or "de-selected". My approach right now is extending List class. I 
listen to ListEvent.CHANGE event and invalidate my component as it occurs. I 
then try to figure out which renderer has been selected/deselected... and I 
can't.

Basically my component is interested in the following actions:
1. When "allowMultipleSelection" is true, user selects an item that hasn't been 
selected yet;
2. When "allowMultipleSelection" is true, user selects an already selected item;
3. When "allowMultipleSelection" is false, user selects a new item;
4. When "allowMultipleSelection" is false, user selects an already selected 
item;

I poke into the code of mx.controls.ListBase and List and the code is a bit 
over my head right now;)

Any ideas? pseudo code is welcome!

Thanks and have a great weekend!

-geng





RE: [flexcoders] Re: stage mouseUp not firing outside app window

2009-03-13 Thread Alex Harui
We use MOUSE_LEAVE successfully in Flex.  Maybe post a simple test case.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of graham.t...@rocketmail.com
Sent: Friday, March 13, 2009 2:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: stage mouseUp not firing outside app window


Many thanks for the response!

For me, this is behaving just like mouseUp.

I do get a mouseLeave when I mouse out of the application, and I _can_ get one 
when I click-drag out of the application.

However, I do _not_ get a mouseLeave when I click on the label and drag out of 
the application (and release the mouse).

If I happened to click on that label, then I can't get it to work, and I need 
it no matter where (or what) I click on the stage.

I added the following to my prior test:

stage.addEventListener(Event.MOUSE_LEAVE, onMouseLeave);

and

private function onMouseLeave(e:Event):void
{
trace ("onMouseLeave");
}

--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> A mouseup off-stage is usually sent as EVENT.as:MOUSE_LEAVE
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of graham.t...@...
> Sent: Friday, March 13, 2009 1:44 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: stage mouseUp not firing outside app window
>
>
> I gave it a shot, but the behavior was the same: click-drag from a label to 
> somewhere off the application screen won't report a rollOut or subsequent 
> mouseUp.
>
> So I begin to think I simply can't track click-drag's off screen (or that 
> they even went off-screen). I'm working on a particular scrolling feature; so 
> this is problematic, given that users can click-drag from anywhere in my 
> container.
>
> --- In 
> flexcoders@yahoogroups.com,
>  Fotis Chatzinikos  wrote:
> >
> > did you try on the Application.application (might be the same as stage but
> > you never know...)
> >
> > On Fri, Mar 13, 2009 at 6:53 PM, graham.tony@ <
> > graham.tony@> wrote:
> >
> > > Many thanks for your response!
> > >
> > > I was hoping for the mouseUp, but I did try the rollOut, as you suggested.
> > > I couldn't even get it to work on Stage. SystemManager worked fine on a
> > > normal rollOut, but it worked only intermittently (I know that sounds
> > > strange, but it's what it is) on a click-drag from the label.
> > >
> > > Attempts:
> > >
> > >
> > > //systemManager.topLevelSystemManager.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
> > > stage.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
> > >
> > >
> > > --- In 
> > > flexcoders@yahoogroups.com
> > >  , Fotis
> > > Chatzinikos  wrote:
> > > >
> > > > I think this is a known problem... What about adding a stage rollout
> > > event,
> > > > and then there dispatch a mouse up if needed?
> > > >
> > > > Give it a go (have not tested myself)
> > > >
> > > > On Fri, Mar 13, 2009 at 5:45 PM, graham.tony@ <
> > > > graham.tony@> wrote:
> > > >
> > > > >
> > > > > In the following example, I've got a stage-level mouseUp listener. In
> > > the
> > > > > application window, I can click-drag off-window and, when I release,
> > > the
> > > > > mouseUp event will fire.
> > > > >
> > > > > However, if I start my click-drag on the label and release off-screen,
> > > I do
> > > > > _not_ get the mouseUp event.
> > > > >
> > > > > (I think setting mouseChildren=false on thetestContainer resolves the
> > > issue
> > > > > for this test, but it's not practical for my application.)
> > > > >
> > > > > Anyone have any ideas?
> > > > >
> > > > > 
> > > > > http://www.adobe.com/2006/mxml";
> > > > > layout="absolute"
> > > > > applicationComplete="onApplicationComplete(event)">
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > >  > > > > backgroundColor="#00ff00">
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Fotis Chatzinikos, Ph.D.
> > > > Founder,
> > > > Phinnovation
> > > > Fotis.Chatzinikos@,
> > > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > Fotis Chatzinikos, Ph.D.
> > Founder,
> > Phinnovation
> > Fotis.Chatzinikos@,
> >
>



RE: [flexcoders] char Type

2009-03-13 Thread Gordon Smith
It's probably more efficient to use character codes. The charCodeAt() method of 
String returns a Number which will actually be an integer between 0 and 65535.

BTW, Unicode experts will recognize that this means that sometime it takes two 
"chars" (a "surrogate pair") in an AS String to represent a single Unicode code 
point, since there are more than 65536 Unicode characters.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Maciek Sakrejda
Sent: Friday, March 13, 2009 8:19 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] char Type


It does not--you would typically use Strings instead. E.g.,
String.charAt(index) returns a String.
--
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: christophe_jacquelin 
mailto:christophe_jacquelin%40yahoo.fr>>
Reply-to: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] char Type
Date: Fri, 13 Mar 2009 11:46:38 -

Hello,

Did the char type exist in Flex ? And how to make it if not ?

Thank you,
Christophe,



RE: [flexcoders] Array of objects

2009-03-13 Thread Gordon Smith
Array elements are untyped, but Vector supports strongly-typed elements.

var v:Vector. = new Vector.();
v[0] = "Hello";
v[1] = "World";

Note that there is no literal syntax for Vector similar to [ "foo", "bar" ] for 
Array. However, you can convert an Array to a Vector:

var v:Vector. = Vector.(["Hello", "World"]);

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Paul Andrews
Sent: Friday, March 13, 2009 2:03 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Array of objects


LOL, I should be doing the tutorials!

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=metadata_141_05.html

Paul

- Original Message -
From: "Paul Andrews" mailto:paul%40ipauland.com>>
To: mailto:flexcoders%40yahoogroups.com>>
Sent: Friday, March 13, 2009 8:59 AM
Subject: Re: [flexcoders] Array of objects

>
> - Original Message -
> From: "christophe_jacquelin" 
> mailto:christophe_jacquelin%40yahoo.fr>>
> To: mailto:flexcoders%40yahoogroups.com>>
> Sent: Friday, March 13, 2009 8:46 AM
> Subject: [flexcoders] Array of objects
>
>
>> Hello,
>>
>> How to declare an array of n Objects of the class myClass ? How did we
>> indicates the type of the object to the array ?
>
> private var myArray:Array = []; // You cannot give the array a dimension,
> nor can you type the obects it holds
> private var anArray:Array = new Array(); // alternative. Naturally it
> doesn't have to be private..
>
> Please do some tutorials Christophe.
>
> Paul
>
>>
>> Thank you,
>> Christophe,
>>
>>
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>



[flexcoders] null parent for ChartLabel

2009-03-13 Thread Maciek Sakrejda
I'm getting the following stack trace when changing the layout of some
charts:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at mx.charts.chartClasses::ChartLabel/updateDisplayList()[C:\Work\flex
\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses
\ChartLabel.as:262]
at mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks
\projects\framework\src\mx\core\UIComponent.as:6214]
at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x
\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x
\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks
\projects\framework\src\mx\core\UIComponent.as:8460]
at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks
\projects\framework\src\mx\core\UIComponent.as:8403]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()


Line 262 in ChartLabel.as is the following:

if(parent.rotation == 90 && parent is AxisRenderer)

which, combined with the error, seems to imply that this ChartLabel has
no parent (!), and I've confirmed this in the debugger. I searched
through my code and I'm not creating any ChartLabels directly. Any ideas
why this could be happening (I can't nail down a simple set of steps to
this)? Any thoughts for workarounds?

Thanks,
Maciek




[flexcoders] Re: stage mouseUp not firing outside app window

2009-03-13 Thread graham.t...@rocketmail.com

Many thanks for the response!

For me, this is behaving just like mouseUp.

I do get a mouseLeave when I mouse out of the application, and I _can_ get one 
when I click-drag out of the application.

However, I do _not_ get a mouseLeave when I click on the label and drag out of 
the application (and release the mouse).

If I happened to click on that label, then I can't get it to work, and I need 
it no matter where (or what) I click on the stage.

I added the following to my prior test:

stage.addEventListener(Event.MOUSE_LEAVE, onMouseLeave);

and

private function onMouseLeave(e:Event):void
{
trace ("onMouseLeave");
}


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> A mouseup off-stage is usually sent as EVENT.as:MOUSE_LEAVE
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of graham.t...@...
> Sent: Friday, March 13, 2009 1:44 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: stage mouseUp not firing outside app window
> 
> 
> I gave it a shot, but the behavior was the same: click-drag from a label to 
> somewhere off the application screen won't report a rollOut or subsequent 
> mouseUp.
> 
> So I begin to think I simply can't track click-drag's off screen (or that 
> they even went off-screen). I'm working on a particular scrolling feature; so 
> this is problematic, given that users can click-drag from anywhere in my 
> container.
> 
> --- In flexcoders@yahoogroups.com, Fotis 
> Chatzinikos  wrote:
> >
> > did you try on the Application.application (might be the same as stage but
> > you never know...)
> >
> > On Fri, Mar 13, 2009 at 6:53 PM, graham.tony@ <
> > graham.tony@> wrote:
> >
> > > Many thanks for your response!
> > >
> > > I was hoping for the mouseUp, but I did try the rollOut, as you suggested.
> > > I couldn't even get it to work on Stage. SystemManager worked fine on a
> > > normal rollOut, but it worked only intermittently (I know that sounds
> > > strange, but it's what it is) on a click-drag from the label.
> > >
> > > Attempts:
> > >
> > >
> > > //systemManager.topLevelSystemManager.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
> > > stage.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
> > >
> > >
> > > --- In flexcoders@yahoogroups.com 
> > > , Fotis
> > > Chatzinikos  wrote:
> > > >
> > > > I think this is a known problem... What about adding a stage rollout
> > > event,
> > > > and then there dispatch a mouse up if needed?
> > > >
> > > > Give it a go (have not tested myself)
> > > >
> > > > On Fri, Mar 13, 2009 at 5:45 PM, graham.tony@ <
> > > > graham.tony@> wrote:
> > > >
> > > > >
> > > > > In the following example, I've got a stage-level mouseUp listener. In
> > > the
> > > > > application window, I can click-drag off-window and, when I release,
> > > the
> > > > > mouseUp event will fire.
> > > > >
> > > > > However, if I start my click-drag on the label and release off-screen,
> > > I do
> > > > > _not_ get the mouseUp event.
> > > > >
> > > > > (I think setting mouseChildren=false on thetestContainer resolves the
> > > issue
> > > > > for this test, but it's not practical for my application.)
> > > > >
> > > > > Anyone have any ideas?
> > > > >
> > > > > 
> > > > > http://www.adobe.com/2006/mxml";
> > > > > layout="absolute"
> > > > > applicationComplete="onApplicationComplete(event)">
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > >  > > > > backgroundColor="#00ff00">
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Fotis Chatzinikos, Ph.D.
> > > > Founder,
> > > > Phinnovation
> > > > Fotis.Chatzinikos@,
> > > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > Fotis Chatzinikos, Ph.D.
> > Founder,
> > Phinnovation
> > Fotis.Chatzinikos@,
> >
>




[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread ppongtong
Are you using RemoteObject to call cfc?

If you do, check this one out...
http://sherifabdou.com/2008/06/understanding-the-remoteclass-metadata-and-its-use-in-flex-and-coldfusion/


--- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
>
> In the command result I have
> public function result(event:Object) : void {
> MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result);
> }
> 
> adminARCHeadlines is an ArrayCollection in MyModel.as




RE: [flexcoders] Drag move or copy depending on SOURCE's container

2009-03-13 Thread Alex Harui
Set the allowMOve parameter to doDrag?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Christoph Pingel
Sent: Friday, March 13, 2009 3:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Drag move or copy depending on SOURCE's container


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

What is the best way to tell a drag-and-drop operation to move OR
copy, depending on where the drag starts?

I have an area whith 'source' images that are dragged (copied) to
other containers from where these images rest until the are _moved_.
I came up with attaching a new mouseMove event handler on the copied
images, adding a special object to the dragSource (containing the
information that we want a move operation next time).

The dragDrop event handler then reads this information and creates a
new item or uses the dragged one accordingly. I haven't worked with
drag and drop a lot, and this feels like a hack to me. Is there a
more standard way to specify the drap operation according to the drag
source instead of drop target?

thanks,
best regards,
Christoph
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkm6MOwACgkQZwp0O/P7cZuFxwCeOdJGLRED09FidBs4dLxgscdL
zgsAnRfoL/aPuG8Sy7Rg/7rYIwq/oQWY
=BT63
-END PGP SIGNATURE-



RE: [flexcoders] Error 'Send Failed' while loading swf file

2009-03-13 Thread Alex Harui
NetConnection is not used to load SWFs.  Looks like a problem with your server 
connectivity

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of gnv_vishwanath
Sent: Friday, March 13, 2009 7:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error 'Send Failed' while loading swf file


Facing the issue in loading the swf file, but the same is working fine in local 
machine. When trying to execute in other machine its not working, gives the 
message as below:

faultCode:Client.Error.MessageSend
faultString:'Send failed'
faultDetail:'Channel.Connect.Failed error
NetConnection.Call.Failed: HTTP: Failed: url:
'http://16.25.168.193/shubbuild/messagebroker/amf''

Please help me in resolving this issue...



RE: [flexcoders] canvas backgroundimage loadercontext

2009-03-13 Thread Alex Harui
I'd avoid loading foreign content as the backgroundImage.  If that server goes 
down, your app will look very different.
If you really want to, then it might be easier to put an Image behind all of 
the other children and not use backgroundImage

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of rdibona
Sent: Friday, March 13, 2009 11:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] canvas backgroundimage loadercontext


Hi there,

I have an application where I take a "snapshot" of a Canvas with various other 
images on it using the bitmapdata.draw method. I had to change my code to use a 
LoaderContext for each image load to avoid security errors, i.e.:

var lc : LoaderContext;
var img : Image;

img = new Image();
lc = new LoaderContext(true);
img.loaderContext = lc;
img.load(src);

This has worked fine. However, I cannot figure out how to avoid a security 
error when setting the backgroundImage style for a canvas, as it expects a URL 
directly with no opportunity to specify another image as the value. It does say 
you can specify a class, but how do you cast an image into a compatible class? 
The images I am dealing with are dynamically loaded at run-time so there is no 
opportunity to use the Embed directive.

Thanks,

Rich



RE: [flexcoders] Re: stage mouseUp not firing outside app window

2009-03-13 Thread Alex Harui
A mouseup off-stage is usually sent as EVENT.as:MOUSE_LEAVE

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of graham.t...@rocketmail.com
Sent: Friday, March 13, 2009 1:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: stage mouseUp not firing outside app window


I gave it a shot, but the behavior was the same: click-drag from a label to 
somewhere off the application screen won't report a rollOut or subsequent 
mouseUp.

So I begin to think I simply can't track click-drag's off screen (or that they 
even went off-screen). I'm working on a particular scrolling feature; so this 
is problematic, given that users can click-drag from anywhere in my container.

--- In flexcoders@yahoogroups.com, Fotis 
Chatzinikos  wrote:
>
> did you try on the Application.application (might be the same as stage but
> you never know...)
>
> On Fri, Mar 13, 2009 at 6:53 PM, graham.t...@... <
> graham.t...@...> wrote:
>
> > Many thanks for your response!
> >
> > I was hoping for the mouseUp, but I did try the rollOut, as you suggested.
> > I couldn't even get it to work on Stage. SystemManager worked fine on a
> > normal rollOut, but it worked only intermittently (I know that sounds
> > strange, but it's what it is) on a click-drag from the label.
> >
> > Attempts:
> >
> >
> > //systemManager.topLevelSystemManager.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
> > stage.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
> >
> >
> > --- In flexcoders@yahoogroups.com 
> > , Fotis
> > Chatzinikos  wrote:
> > >
> > > I think this is a known problem... What about adding a stage rollout
> > event,
> > > and then there dispatch a mouse up if needed?
> > >
> > > Give it a go (have not tested myself)
> > >
> > > On Fri, Mar 13, 2009 at 5:45 PM, graham.tony@ <
> > > graham.tony@> wrote:
> > >
> > > >
> > > > In the following example, I've got a stage-level mouseUp listener. In
> > the
> > > > application window, I can click-drag off-window and, when I release,
> > the
> > > > mouseUp event will fire.
> > > >
> > > > However, if I start my click-drag on the label and release off-screen,
> > I do
> > > > _not_ get the mouseUp event.
> > > >
> > > > (I think setting mouseChildren=false on thetestContainer resolves the
> > issue
> > > > for this test, but it's not practical for my application.)
> > > >
> > > > Anyone have any ideas?
> > > >
> > > > 
> > > > http://www.adobe.com/2006/mxml";
> > > > layout="absolute"
> > > > applicationComplete="onApplicationComplete(event)">
> > > >
> > > > 
> > > > 
> > > > 
> > > >
> > > >  > > > backgroundColor="#00ff00">
> > > > 
> > > > 
> > > > 
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Fotis Chatzinikos, Ph.D.
> > > Founder,
> > > Phinnovation
> > > Fotis.Chatzinikos@,
> > >
> >
> >
> >
>
>
>
> --
> Fotis Chatzinikos, Ph.D.
> Founder,
> Phinnovation
> fotis.chatzini...@...,
>



Re: [flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread Greg Morphis
In the command result I have
public function result(event:Object) : void {
MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result);
}

adminARCHeadlines is an ArrayCollection in MyModel.as

How do I tell it that it's an ArrayCollection of VOs?

On Fri, Mar 13, 2009 at 3:21 PM, ppongtong  wrote:
> Actually, when u get the data from cfc, did u map it to your headlineVO?
>
>
> --- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
>>
>> I have a vo headlineVO that has the following variables
>> headline_id:Number
>> headline:String
>> effdate:Date
>> endeffdate:Date
>> actionuser:String
>> actiondate:Date
>> I have a cfc that returns an ArrayCollection of beans, each bean has
>> the above variables too.
>> I can populate a datagrid with this data and it shows fine.
>> I'm trying to populate a new vo (currentVO) when the user selects a
>> row and hits "edit".
>> The new VO shows as being null in the debugger.
>> This is what my code looks like
>>
>> > dataProvider="{MyModel.getInstance().adminARCHeadlines}"
>> click="selectedHeadline" ...
>> ...
>> 
>>
>> above I have a function
>> private function selectedHeadline():void {
>> currentVO = headlinesDG.selectedItem as headlineVO;
>> }
>>
>> and for the editButton.click I have another function that just Alert
>> the currentVO.headline;
>>
>> I get a null object reference when I click on the edit Button.
>> If I put a breakpoint above the Alert I can see that currentVO is
>> null, how can I assign that selected row to my vo?
>> Can anyone offer suggestions or things I should check?
>>
>> Thanks in advance!
>>
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread valdhor
If everything is working right, event.target.selectedItem should be typed as a 
headlineVO. Check with Charles as to what type of object is actually being 
returned.

--- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
>
> event.target.selectedItem says it's Object (@b3063a9) but lists all of
> the variables: actiondate, actionuser, effdate, endeffdate, headline,
> headline_id of my VO it also has a mx_internal_id
> 
> but I check 'this.currentVO' and it shows "null" after the assignment:
> currentVO = event.target.selectedItem as headlineVO;
> 
> currentVO is declared as a headlineVO as the top of the mxml page..
> 
> [Bindable]
> private var currentVO:headlineVO = new headlineVO();
> 
> In my headlineVO.as I'm linking to my bean
> [RemoteClass(alias="Arc.model.Headlines.headline")]
> 
> I'm missing something... currentVO shouldnt be null
> 
> 
> 
> On Fri, Mar 13, 2009 at 3:18 PM, ppongtong  wrote:
> > Please try
> >  >
> >
> > --- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
> >>
> >> I have a vo headlineVO that has the following variables
> >> headline_id:Number
> >> headline:String
> >> effdate:Date
> >> endeffdate:Date
> >> actionuser:String
> >> actiondate:Date
> >> I have a cfc that returns an ArrayCollection of beans, each bean has
> >> the above variables too.
> >> I can populate a datagrid with this data and it shows fine.
> >> I'm trying to populate a new vo (currentVO) when the user selects a
> >> row and hits "edit".
> >> The new VO shows as being null in the debugger.
> >> This is what my code looks like
> >>
> >>  >> dataProvider="{MyModel.getInstance().adminARCHeadlines}"
> >> click="selectedHeadline" ...
> >> ...
> >> 
> >>
> >> above I have a function
> >> private function selectedHeadline():void {
> >> currentVO = headlinesDG.selectedItem as headlineVO;
> >> }
> >>
> >> and for the editButton.click I have another function that just Alert
> >> the currentVO.headline;
> >>
> >> I get a null object reference when I click on the edit Button.
> >> If I put a breakpoint above the Alert I can see that currentVO is
> >> null, how can I assign that selected row to my vo?
> >> Can anyone offer suggestions or things I should check?
> >>
> >> Thanks in advance!
> >>
> >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location: 
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
> >
> >
> >
> >
>




Re: [flexcoders] Re: Developing Rich Clients with Macromedia Flex - source code?

2009-03-13 Thread Jeffry Houser


Glad to hear it! 


Libby wrote:

They help! I love you man!

--- In flexcoders@yahoogroups.com, Jeffry Houser  wrote:
  
 Although completely unrelate to the book, would these screencasts help, 
on item Renderers, the DataGrid, and item Editors. 


http://www.theflexshow.com/blog/index.cfm/2008/10/15/The-Flex-Show--Fifteen-Minutes-With-Flex--Episode-8--Custom-Item-Renderers
http://www.theflexshow.com/blog/index.cfm/2008/12/24/The-Flex-Show--Fifteen-Minutes-With-Flex--Episode-13--DataGrids
http://www.theflexshow.com/blog/index.cfm/2009/1/7/The-Flex-Show--Fifteen-Minutes-With-Flex--Episode-14-Item-Editors

Libby wrote:


Hi Matt
My copy of the book refers to Flex 2.0 ... anyway I remember in their examples 
they did a datagrid itemrenderer and I just wanted to refresh my memory cause 
the one I'm working on is not working the way I expected it to.

--- In flexcoders@yahoogroups.com, Matt Chotin  wrote:
  
  

Hey Libby,

I checked and the machine that had this code went offline.  It's all Flex 1.0 
code, you sure you really need it?

Matt


On 3/5/09 10:28 AM, "Libby"  wrote:




Hi, I have this book but lost my copy of the source code I originally 
downloaded. The authors website (http://flexbook.iterationtwo.com/, 
http://www.flexbook.iterationtwo.com/) is down. Does anyone know how to contact 
the authors Stephen Webster and Alistair McCleod or maybe has a copy?

Thanks,
Libby








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




  
  

--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://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.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust









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




  


--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://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.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



[flexcoders] Re: stage mouseUp not firing outside app window

2009-03-13 Thread graham.t...@rocketmail.com

I gave it a shot, but the behavior was the same: click-drag from a label to 
somewhere off the application screen won't report a rollOut or subsequent 
mouseUp.  

So I begin to think I simply can't track click-drag's off screen (or that they 
even went off-screen).  I'm working on a particular scrolling feature; so this 
is problematic, given that users can click-drag from anywhere in my container.




--- In flexcoders@yahoogroups.com, Fotis Chatzinikos  
wrote:
>
> did you try on the Application.application (might be the same as stage but
> you never know...)
> 
> On Fri, Mar 13, 2009 at 6:53 PM, graham.t...@... <
> graham.t...@...> wrote:
> 
> >   Many thanks for your response!
> >
> > I was hoping for the mouseUp, but I did try the rollOut, as you suggested.
> > I couldn't even get it to work on Stage. SystemManager worked fine on a
> > normal rollOut, but it worked only intermittently (I know that sounds
> > strange, but it's what it is) on a click-drag from the label.
> >
> > Attempts:
> >
> >
> > //systemManager.topLevelSystemManager.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
> > stage.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
> >
> >
> > --- In flexcoders@yahoogroups.com , Fotis
> > Chatzinikos  wrote:
> > >
> > > I think this is a known problem... What about adding a stage rollout
> > event,
> > > and then there dispatch a mouse up if needed?
> > >
> > > Give it a go (have not tested myself)
> > >
> > > On Fri, Mar 13, 2009 at 5:45 PM, graham.tony@ <
> > > graham.tony@> wrote:
> > >
> > > >
> > > > In the following example, I've got a stage-level mouseUp listener. In
> > the
> > > > application window, I can click-drag off-window and, when I release,
> > the
> > > > mouseUp event will fire.
> > > >
> > > > However, if I start my click-drag on the label and release off-screen,
> > I do
> > > > _not_ get the mouseUp event.
> > > >
> > > > (I think setting mouseChildren=false on thetestContainer resolves the
> > issue
> > > > for this test, but it's not practical for my application.)
> > > >
> > > > Anyone have any ideas?
> > > >
> > > > 
> > > > http://www.adobe.com/2006/mxml";
> > > > layout="absolute"
> > > > applicationComplete="onApplicationComplete(event)">
> > > >
> > > > 
> > > > 
> > > > 
> > > >
> > > >  > > > backgroundColor="#00ff00">
> > > > 
> > > > 
> > > > 
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Fotis Chatzinikos, Ph.D.
> > > Founder,
> > > Phinnovation
> > > Fotis.Chatzinikos@,
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Fotis Chatzinikos, Ph.D.
> Founder,
> Phinnovation
> fotis.chatzini...@...,
>




Re: [flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread Greg Morphis
event.target.selectedItem says it's Object (@b3063a9) but lists all of
the variables: actiondate, actionuser, effdate, endeffdate, headline,
headline_id of my VO it also has a mx_internal_id

but I check 'this.currentVO' and it shows "null" after the assignment:
currentVO = event.target.selectedItem as headlineVO;

currentVO is declared as a headlineVO as the top of the mxml page..

[Bindable]
private var currentVO:headlineVO = new headlineVO();

In my headlineVO.as I'm linking to my bean
[RemoteClass(alias="Arc.model.Headlines.headline")]

I'm missing something... currentVO shouldnt be null



On Fri, Mar 13, 2009 at 3:18 PM, ppongtong  wrote:
> Please try
> 
>
> --- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
>>
>> I have a vo headlineVO that has the following variables
>> headline_id:Number
>> headline:String
>> effdate:Date
>> endeffdate:Date
>> actionuser:String
>> actiondate:Date
>> I have a cfc that returns an ArrayCollection of beans, each bean has
>> the above variables too.
>> I can populate a datagrid with this data and it shows fine.
>> I'm trying to populate a new vo (currentVO) when the user selects a
>> row and hits "edit".
>> The new VO shows as being null in the debugger.
>> This is what my code looks like
>>
>> > dataProvider="{MyModel.getInstance().adminARCHeadlines}"
>> click="selectedHeadline" ...
>> ...
>> 
>>
>> above I have a function
>> private function selectedHeadline():void {
>> currentVO = headlinesDG.selectedItem as headlineVO;
>> }
>>
>> and for the editButton.click I have another function that just Alert
>> the currentVO.headline;
>>
>> I get a null object reference when I click on the edit Button.
>> If I put a breakpoint above the Alert I can see that currentVO is
>> null, how can I assign that selected row to my vo?
>> Can anyone offer suggestions or things I should check?
>>
>> Thanks in advance!
>>
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


[flexcoders] Re: Developing Rich Clients with Macromedia Flex - source code?

2009-03-13 Thread Libby
They help! I love you man!

--- In flexcoders@yahoogroups.com, Jeffry Houser  wrote:
>
>  Although completely unrelate to the book, would these screencasts help, 
> on item Renderers, the DataGrid, and item Editors. 
> 
> http://www.theflexshow.com/blog/index.cfm/2008/10/15/The-Flex-Show--Fifteen-Minutes-With-Flex--Episode-8--Custom-Item-Renderers
> http://www.theflexshow.com/blog/index.cfm/2008/12/24/The-Flex-Show--Fifteen-Minutes-With-Flex--Episode-13--DataGrids
> http://www.theflexshow.com/blog/index.cfm/2009/1/7/The-Flex-Show--Fifteen-Minutes-With-Flex--Episode-14-Item-Editors
> 
> Libby wrote:
> > Hi Matt
> > My copy of the book refers to Flex 2.0 ... anyway I remember in their 
> > examples they did a datagrid itemrenderer and I just wanted to refresh my 
> > memory cause the one I'm working on is not working the way I expected it to.
> >
> > --- In flexcoders@yahoogroups.com, Matt Chotin  wrote:
> >   
> >> Hey Libby,
> >>
> >> I checked and the machine that had this code went offline.  It's all Flex 
> >> 1.0 code, you sure you really need it?
> >>
> >> Matt
> >>
> >>
> >> On 3/5/09 10:28 AM, "Libby"  wrote:
> >>
> >>
> >>
> >>
> >> Hi, I have this book but lost my copy of the source code I originally 
> >> downloaded. The authors website (http://flexbook.iterationtwo.com/, 
> >> http://www.flexbook.iterationtwo.com/) is down. Does anyone know how to 
> >> contact the authors Stephen Webster and Alistair McCleod or maybe has a 
> >> copy?
> >>
> >> Thanks,
> >> Libby
> >>
> >> 
> >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location: 
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
> >
> >
> >
> >
> >   
> 
> -- 
> Jeffry Houser, Technical Entrepreneur
> Adobe Community Expert: http://tinyurl.com/684b5h
> http://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.com
> http://www.jeffryhouser.com
> --
> Part of the DotComIt Brain Trust
>




[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread ppongtong
Actually, when u get the data from cfc, did u map it to your headlineVO?


--- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
>
> I have a vo headlineVO that has the following variables
> headline_id:Number
> headline:String
> effdate:Date
> endeffdate:Date
> actionuser:String
> actiondate:Date
> I have a cfc that returns an ArrayCollection of beans, each bean has
> the above variables too.
> I can populate a datagrid with this data and it shows fine.
> I'm trying to populate a new vo (currentVO) when the user selects a
> row and hits "edit".
> The new VO shows as being null in the debugger.
> This is what my code looks like
> 
>  dataProvider="{MyModel.getInstance().adminARCHeadlines}"
> click="selectedHeadline" ...
> ...
> 
> 
> above I have a function
> private function selectedHeadline():void {
> currentVO = headlinesDG.selectedItem as headlineVO;
> }
> 
> and for the editButton.click I have another function that just Alert
> the currentVO.headline;
> 
> I get a null object reference when I click on the edit Button.
> If I put a breakpoint above the Alert I can see that currentVO is
> null, how can I assign that selected row to my vo?
> Can anyone offer suggestions or things I should check?
> 
> Thanks in advance!
>




[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread ppongtong
Please try
 wrote:
>
> I have a vo headlineVO that has the following variables
> headline_id:Number
> headline:String
> effdate:Date
> endeffdate:Date
> actionuser:String
> actiondate:Date
> I have a cfc that returns an ArrayCollection of beans, each bean has
> the above variables too.
> I can populate a datagrid with this data and it shows fine.
> I'm trying to populate a new vo (currentVO) when the user selects a
> row and hits "edit".
> The new VO shows as being null in the debugger.
> This is what my code looks like
> 
>  dataProvider="{MyModel.getInstance().adminARCHeadlines}"
> click="selectedHeadline" ...
> ...
> 
> 
> above I have a function
> private function selectedHeadline():void {
> currentVO = headlinesDG.selectedItem as headlineVO;
> }
> 
> and for the editButton.click I have another function that just Alert
> the currentVO.headline;
> 
> I get a null object reference when I click on the edit Button.
> If I put a breakpoint above the Alert I can see that currentVO is
> null, how can I assign that selected row to my vo?
> Can anyone offer suggestions or things I should check?
> 
> Thanks in advance!
>




[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread Tim Hoff

Hey Greg,

Have you tried using change instead of click.  Everything else looks
fine; assuming that currentVO is a HeadlineVO.

-TH

--- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
>
> I have a vo headlineVO that has the following variables
> headline_id:Number
> headline:String
> effdate:Date
> endeffdate:Date
> actionuser:String
> actiondate:Date
> I have a cfc that returns an ArrayCollection of beans, each bean has
> the above variables too.
> I can populate a datagrid with this data and it shows fine.
> I'm trying to populate a new vo (currentVO) when the user selects a
> row and hits "edit".
> The new VO shows as being null in the debugger.
> This is what my code looks like
>
>  dataProvider="{MyModel.getInstance().adminARCHeadlines}"
> click="selectedHeadline" ...
> ...
> 
>
> above I have a function
> private function selectedHeadline():void {
> currentVO = headlinesDG.selectedItem as headlineVO;
> }
>
> and for the editButton.click I have another function that just Alert
> the currentVO.headline;
>
> I get a null object reference when I click on the edit Button.
> If I put a breakpoint above the Alert I can see that currentVO is
> null, how can I assign that selected row to my vo?
> Can anyone offer suggestions or things I should check?
>
> Thanks in advance!
>





[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread valdhor
You should be using events...



private function selectedHeadline(event:ListEvent):void {
currentVO = event.target.selectedItem as headlineVO;
}



--- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
>
> I have a vo headlineVO that has the following variables
> headline_id:Number
> headline:String
> effdate:Date
> endeffdate:Date
> actionuser:String
> actiondate:Date
> I have a cfc that returns an ArrayCollection of beans, each bean has
> the above variables too.
> I can populate a datagrid with this data and it shows fine.
> I'm trying to populate a new vo (currentVO) when the user selects a
> row and hits "edit".
> The new VO shows as being null in the debugger.
> This is what my code looks like
>
>  dataProvider="{MyModel.getInstance().adminARCHeadlines}"
> click="selectedHeadline" ...
> ...
> 
>
> above I have a function
> private function selectedHeadline():void {
> currentVO = headlinesDG.selectedItem as headlineVO;
> }
>
> and for the editButton.click I have another function that just Alert
> the currentVO.headline;
>
> I get a null object reference when I click on the edit Button.
> If I put a breakpoint above the Alert I can see that currentVO is
> null, how can I assign that selected row to my vo?
> Can anyone offer suggestions or things I should check?
>
> Thanks in advance!
>



[flexcoders] datagrid.selectedItem to vo?

2009-03-13 Thread Greg Morphis
I have a vo headlineVO that has the following variables
headline_id:Number
headline:String
effdate:Date
endeffdate:Date
actionuser:String
actiondate:Date
I have a cfc that returns an ArrayCollection of beans, each bean has
the above variables too.
I can populate a datagrid with this data and it shows fine.
I'm trying to populate a new vo (currentVO) when the user selects a
row and hits "edit".
The new VO shows as being null in the debugger.
This is what my code looks like



above I have a function
private function selectedHeadline():void {
currentVO = headlinesDG.selectedItem as headlineVO;
}

and for the editButton.click I have another function that just Alert
the currentVO.headline;

I get a null object reference when I click on the edit Button.
If I put a breakpoint above the Alert I can see that currentVO is
null, how can I assign that selected row to my vo?
Can anyone offer suggestions or things I should check?

Thanks in advance!


[flexcoders] Re: Framework Caching Affecting Security Settings?

2009-03-13 Thread reflexactions
Yeah I can see it now (couldn't before).

I voted for it as I think this is needed to go along with the other RSL caching 
fixes that are coming up in 3.4 in order to make modules and Framework RSLs a 
viable option. 

Actually I think maybe it would be good if all the Framework RSL caching bugs 
could be reviewed as a whole to see which can/should be done for 3.4 rather 
than each one viewed individually.



--- In flexcoders@yahoogroups.com, Matt Chotin  wrote:
>
> I made the bug public, setting severity of Security will immediately make the 
> bug only visible to Adobe folks as a just-in-case measure.  The dot on the 
> end of the link can screw things up, just make sure the dot is gone and now 
> you can see the bug and vote for it.
> 
> 
> On 3/13/09 10:27 AM, "Jamie S"  wrote:
> 
> 
> 
> 
> I can't see it either. Because it's related to security I think you
> need some sort of higher level account to see it. When I filed the bug
> I got a notice that it would be obscured for this reason.
> 
> Jamie
> 
> On Fri, Mar 13, 2009 at 6:08 AM, valdhor   > wrote:
> > Works for me. Have you signed up for an account?
> >
> > Oh, one other thing. Check the URL in the address bar. Does it have a period
> > (".") at the end? If so, remove it.
> >
> > --- In flexcoders@yahoogroups.com  , 
> > "Yves Riel"  wrote:
> >>
> >> Don't know if I'm the only one but I cannot access that page!?
> >>
> >> 
> >>
> >> From: flexcoders@yahoogroups.com   
> >> [mailto:flexcoders@yahoogroups.com  ] 
> >> On
> >> Behalf Of Alex Harui
> >> Sent: Friday, March 13, 2009 1:03 AM
> >> To: flexcoders@yahoogroups.com 
> >> Subject: RE: [flexcoders] Re: Framework Caching Affecting Security
> >> Settings?
> >>
> >>
> >>
> >> Vote for this bug: https://bugs.adobe.com/jira/browse/SDK-16050.
> >>
> >> Alex Harui
> >>
> >> Flex SDK Developer
> >>
> >> Adobe Systems Inc. 
> >>
> >> Blog: http://blogs.adobe.com/aharui 
> >>
> >> From: flexcoders@yahoogroups.com   
> >> [mailto:flexcoders@yahoogroups.com  ] 
> >> On
> >> Behalf Of jedierikb
> >> Sent: Wednesday, March 11, 2009 8:11 PM
> >> To: flexcoders@yahoogroups.com 
> >> Subject: [flexcoders] Re: Framework Caching Affecting Security Settings?
> >>
> >> [Hello. New to the list. Found you from a google search for a bug I've
> >> encountered. Looks like I've found the right people!]
> >>
> >> I have encountered this same bug and wonder if there was ever a
> >> resolution?
> >>
> >> As a work around, I have removed every bit of "security enabled" code
> >> (no javascript to actionscript calls) from my home-rolled rsl libraries.
> >>
> >> Is there a way to build the SWC/SWFs or link to them or some
> >> crossdomain.xml trickery which can properly solve this problem?
> >>
> >> --- In flexcoders@yahoogroups.com   
> >> 
> >> , "Jamie S"  wrote:
> >> >
> >> > Does Framework Caching affect the security settings?
> >> >
> >> > I was banging my head against a wall because my app was throwing
> >> > security violations all over the place when an outside swf ( or
> >> > JavaScript ) tried to access the main app. I was using
> >> > Security.allowDomain("*") but it was being ignored completely. I
> >> > turned framework caching off and everything worked again.
> >> >
> >> > What is the connection? How can I use framework caching and still keep
> >> > my security settings intact?
> >> >
> >> > Jamie
> >> >
> >>
> >
> >
>




[flexcoders] how to detect that flash is "visible"

2009-03-13 Thread v.cekvenich
Some of the flash ads detect when ad is "seen". Like when I scroll down bellow 
the fold, it start animation once it's shown.

How? What is the event generated?

tia,
.V




Re: [flexcoders] Re: Ribbon in FLEX

2009-03-13 Thread Jeffry Houser


 Thanks for the plug Paul; but just to clarify..

It's not something we're working on yet.  It's just one idea of 
many.we're considering. 


( But, yeah everyone check out Flextras.com )

Paul Kukiel wrote:

I believe Jeffery Houser is in the process of building a Ribon like
the Office one for Flex and in 20 mins he has a live Demo and Q&A of
his latest Flex creations:

Flextras: Flextras Friday Meetup in 1 hour. Today: Mind Mapping an API
http://is.gd/iDhV Random Q&A to follow

Meeting URL:  https://admin.na3.acrobat.com/_a204547676/flextras/

All welcome.

http://www.flextras.com/  <- His site

Paul.



On Fri, Mar 13, 2009 at 12:25 PM, Allan Pichler  wrote:
  

Hi all….



Let me dig up the files sometime today ( should be around here somewhere
although I made it back in December 07 ) and I will send it to all
interested parties as well as add them to my experimental site
http://www.unzipmenow.com for anyone interested at a later stage.



Thanks for all your kind words



Best regards and have a nice day!



Allan Pichler

Brewmaster - ColdFusion/Flex/Ajax/UI



Email: dreamc...@gmail.com

Phone: (415) 683 0313

Skype: apichler

Yahoo: allan_pichler







From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Marius-Remus Mate
Sent: Friday, March 13, 2009 3:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Ribbon in FLEX



Check this out

http://mindomo.com/demo.htm

You should contact the nice guys at Mindomo, maybe you can work something
out.

--- In flexcoders@yahoogroups.com, "Claudio M. E. Bastos Iorio"
 wrote:


Hi,

Is there any component (free or paid) similar to the office 2007 ribbon
control?



TIA



__

Claudio M. E. Bastos Iorio

  






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




  


--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://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.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread Jeremy Rottman
Here is a good example that you can use.

Here is a link to the source code. Right click to view.
http://view.myhomesmart.com/singleton/singleton.html

Here is the cfc code.








SELECT
tbl_smartPanel_User.fld_user_UUID,
tbl_smartPanel_User.fld_user_Username,

concat(tbl_smartPanel_User_Detail.fld_userDetails_FirstName, ' ' , 
tbl_smartPanel_User_Detail.fld_userDetails_LastName) AS fullName
FROM
tbl_smartPanel_User
Inner Join tbl_smartPanel_User_Detail ON 
tbl_smartPanel_User.fld_user_UUID = tbl_smartPanel_User_Detail.fld_user_UUID
WHERE
tbl_smartPanel_User.fld_user_Username = 

AND
tbl_smartPanel_User.fld_user_Password = 
















Re: [flexcoders] Re: binding not updating for ArrayCollection when item changes?

2009-03-13 Thread John Robinson
Thanks Josh! I haven't tried to implement this yet but so far it makes  
sense.


Thanks again,
John


On Mar 12, 2009, at 9:01 PM, Josh McDonald wrote:


In your custom control, change this:


public function set dataProvider(dp:ArrayCollection):void {
_dp = dp;
	trace("this fires when the AC is created, but not when it's  
contents change");	

}

to something like this:


public function set dataProvider(value : ArrayCollection) : void
{
if (_dp == value)
return;

if (dataProvider)
 
dataProvider.removeEventListener(CollectionEvent.COLLECTION_CHANGE,  
handleUpdatedProvider);


_dp = value;

if (dataProvider)
 
dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE,  
handleUpdatedProvider, ???, ???, true); // Weak listener!


handleUpdatedProvider(null);
}

private function handleUpdatedProvider(event : CollectionEvent) : void
{
//... do stuff
}


Note that this is just typed out of the top of my head, probably  
full of typos, and you need to put the default options in place of  
"???" when attaching the listener :)


-Josh


2009/3/13 John Robinson 
Yeah, I've been directly updating the properties. Here's the weird  
part... if I use the ArrayCollection as a dataProvider for a List  
control, it updates. If I use it for a custom control that I've  
created, it does not.



Example:

This works as expected:


This does not:


//pseudo component source


private var _dp:ArrayCollection;

public function set dataProvider(dp:ArrayCollection):void {
_dp = dp;
	trace("this fires when the AC is created, but not when it's  
contents change");	

}




Thanks again!
John

On Mar 10, 2009, at 4:44 PM, valdhor wrote:

How do you update a given UserVO's userData? Do you directly access  
the public properties?


I have never done it this way - I use getters and setters...

package com.jrobinson.model.VO
{
[Bindable]
public class UserVO
{
private var _id:int = -1;
private var _username:String = null;
private var _enabled:Boolean = false;
private var _userData:XMLList = null;

public function UserVO(id:int, username:String,  
enabled:Boolean, userData:XMLList)

{
_id = id;
_username = username;
_enabled = enabled;
_userData = userData;
}

//accessor methods
public function get id():int {return _id;}
public function get username():String {return _username;}
public function get enabled():Boolean {return _enabled;}
public function get userData():XMLList {return _userData;}

//mutator methods
public function set id(id:int):void {_id = id;}
public function set username(username:String):void  
{_username = username;}
public function set enabled(enabled:Boolean):void {_enabled  
= enabled;}
public function set userData(userData:XMLList):void  
{_userData = userData;}

}
}


> >> I have a strange issue with data binding not updating when an  
item in

> >> an ArrayCollection is changed. I'm using Cairngorm and have the
> >> following setup. In my ModelLocator I have a 'users'  
ArrayCollection
> >> that contains 'UserVO' objects. I have a two views that binds  
their
> >> dataProvider to the 'users' AC in the ModelLocator. My UserVO  
looks

> >> like so:
> >>
> >> package com.jrobinson.model.VO
> >> {
> >> [Bindable]
> >> public class UserVO
> >> {
> >> public var id:int = -1;
> >> public var username:String = null;
> >> public var enabled:Boolean = false;
> >> public var userData:XMLList = null;
> >>
> >>
> >> public function UserVO(user_id:int, uName:String,  
enabled:Boolean,

> >> d:XMLList)
> >> {
> >> id = user_id;
> >> username = uName;
> >> enabled = enabled;
> >> userData = d;
> >> }
> >>
> >> }
> >> }
> >>
> >> I first have a command that loads all of the users and  
populates the

> >> AC. This updates the bindings as expected. I then have a second
> >> command that loads the userData portion for a given user. Once
> >> retrieved, I update the given UserVO's userData, but this  
time, the

> >> bindings fail to update.
> >>
> >> I feel like I've seen this before but can't find where or what  
the
> >> workaround might be. I guess I'm just looking for confirmation  
that

> >> this should or shouldn't work.
> >>
> >> Thanks!
> >> John
> >>





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


Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/








[flexcoders] canvas backgroundimage loadercontext

2009-03-13 Thread rdibona
Hi there,

I have an application where I take a "snapshot" of a Canvas with various other 
images on it using the bitmapdata.draw method. I had to change my code to use a 
LoaderContext for each image load to avoid security errors, i.e.:

var lc : LoaderContext;
var img : Image;

img = new Image();
lc = new LoaderContext(true);
img.loaderContext = lc;
img.load(src);

This has worked fine. However, I cannot figure out how to avoid a security 
error when setting the backgroundImage style for a canvas, as it expects a URL 
directly with no opportunity to specify another image as the value. It does say 
you can specify a class, but how do you cast an image into a compatible class? 
The images I am dealing with are dynamically loaded at run-time so there is no 
opportunity to use the Embed directive.

Thanks,

Rich




RE: [flexcoders] previously selected indices in List?

2009-03-13 Thread Tracy Spratt
You are misunderstanding the invalidation process.  "invalidateProperties()"
does not call commitProperties, it just tells the framework that
commitProperties needs to be called.  The line after invalidateProperties
will be called immediately, commitproperties will be called at some later
time.

 

I haven't worked with multi select list a lot but I would set the
selectedIndices whenever the selection happens.  I suspect that the indices
have already been changed when the handler is called.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of gwangdesign
Sent: Friday, March 13, 2009 12:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] previously selected indices in List?

 

Hi,

This might be a simple one but I am having a hard time figuring it out: How
do I get the previous selectedIndices when a ListEvent.CHANGE event occurs
on a List control, "within" the Flex component framework?

Basically I'd like to change all the selected item renderers states on a
List control and I'd like to wrap this functionality into a subclass of
List. 

If I am not subclass List or ListBase, everything seems straightforward. But
if I extend List class, how do I capture this changes?

private function listChangeHandler(event:ListEvent):void
{
_bSelectedIndicesChanged = true;
invalidateProperties();
//this gets exectuted before commitProperties.
_prevSelectedIndices = selectedIndices.concat();
}

By the time commitProperties() gets called, _prevSelectedIndices =
selectedIndices.concat(); has already been executed.

What am I missing here? Are there any easy way to either get previously
selected index or previously selected indices on a List component?

Thanks.





Re: [flexcoders] Re: Framework Caching Affecting Security Settings?

2009-03-13 Thread Matt Chotin
I made the bug public, setting severity of Security will immediately make the 
bug only visible to Adobe folks as a just-in-case measure.  The dot on the end 
of the link can screw things up, just make sure the dot is gone and now you can 
see the bug and vote for it.


On 3/13/09 10:27 AM, "Jamie S"  wrote:




I can't see it either. Because it's related to security I think you
need some sort of higher level account to see it. When I filed the bug
I got a notice that it would be obscured for this reason.

Jamie

On Fri, Mar 13, 2009 at 6:08 AM, valdhor mailto:valdhorlists%40embarqmail.com> > wrote:
> Works for me. Have you signed up for an account?
>
> Oh, one other thing. Check the URL in the address bar. Does it have a period
> (".") at the end? If so, remove it.
>
> --- In flexcoders@yahoogroups.com  , 
> "Yves Riel"  wrote:
>>
>> Don't know if I'm the only one but I cannot access that page!?
>>
>> 
>>
>> From: flexcoders@yahoogroups.com   
>> [mailto:flexcoders@yahoogroups.com  ] On
>> Behalf Of Alex Harui
>> Sent: Friday, March 13, 2009 1:03 AM
>> To: flexcoders@yahoogroups.com 
>> Subject: RE: [flexcoders] Re: Framework Caching Affecting Security
>> Settings?
>>
>>
>>
>> Vote for this bug: https://bugs.adobe.com/jira/browse/SDK-16050.
>>
>> Alex Harui
>>
>> Flex SDK Developer
>>
>> Adobe Systems Inc. 
>>
>> Blog: http://blogs.adobe.com/aharui 
>>
>> From: flexcoders@yahoogroups.com   
>> [mailto:flexcoders@yahoogroups.com  ] On
>> Behalf Of jedierikb
>> Sent: Wednesday, March 11, 2009 8:11 PM
>> To: flexcoders@yahoogroups.com 
>> Subject: [flexcoders] Re: Framework Caching Affecting Security Settings?
>>
>> [Hello. New to the list. Found you from a google search for a bug I've
>> encountered. Looks like I've found the right people!]
>>
>> I have encountered this same bug and wonder if there was ever a
>> resolution?
>>
>> As a work around, I have removed every bit of "security enabled" code
>> (no javascript to actionscript calls) from my home-rolled rsl libraries.
>>
>> Is there a way to build the SWC/SWFs or link to them or some
>> crossdomain.xml trickery which can properly solve this problem?
>>
>> --- In flexcoders@yahoogroups.com   
>> 
>> , "Jamie S"  wrote:
>> >
>> > Does Framework Caching affect the security settings?
>> >
>> > I was banging my head against a wall because my app was throwing
>> > security violations all over the place when an outside swf ( or
>> > JavaScript ) tried to access the main app. I was using
>> > Security.allowDomain("*") but it was being ignored completely. I
>> > turned framework caching off and everything worked again.
>> >
>> > What is the connection? How can I use framework caching and still keep
>> > my security settings intact?
>> >
>> > Jamie
>> >
>>
>
>






Re: [flexcoders] Re: stage mouseUp not firing outside app window

2009-03-13 Thread Fotis Chatzinikos
did you try on the Application.application (might be the same as stage but
you never know...)

On Fri, Mar 13, 2009 at 6:53 PM, graham.t...@rocketmail.com <
graham.t...@rocketmail.com> wrote:

>   Many thanks for your response!
>
> I was hoping for the mouseUp, but I did try the rollOut, as you suggested.
> I couldn't even get it to work on Stage. SystemManager worked fine on a
> normal rollOut, but it worked only intermittently (I know that sounds
> strange, but it's what it is) on a click-drag from the label.
>
> Attempts:
>
>
> //systemManager.topLevelSystemManager.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
> stage.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
>
>
> --- In flexcoders@yahoogroups.com , Fotis
> Chatzinikos  wrote:
> >
> > I think this is a known problem... What about adding a stage rollout
> event,
> > and then there dispatch a mouse up if needed?
> >
> > Give it a go (have not tested myself)
> >
> > On Fri, Mar 13, 2009 at 5:45 PM, graham.t...@... <
> > graham.t...@...> wrote:
> >
> > >
> > > In the following example, I've got a stage-level mouseUp listener. In
> the
> > > application window, I can click-drag off-window and, when I release,
> the
> > > mouseUp event will fire.
> > >
> > > However, if I start my click-drag on the label and release off-screen,
> I do
> > > _not_ get the mouseUp event.
> > >
> > > (I think setting mouseChildren=false on thetestContainer resolves the
> issue
> > > for this test, but it's not practical for my application.)
> > >
> > > Anyone have any ideas?
> > >
> > > 
> > > http://www.adobe.com/2006/mxml";
> > > layout="absolute"
> > > applicationComplete="onApplicationComplete(event)">
> > >
> > > 
> > > 
> > > 
> > >
> > >  > > backgroundColor="#00ff00">
> > > 
> > > 
> > > 
> > >
> > >
> > >
> >
> >
> >
> > --
> > Fotis Chatzinikos, Ph.D.
> > Founder,
> > Phinnovation
> > fotis.chatzini...@...,
> >
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


Re: [flexcoders] Re: Framework Caching Affecting Security Settings?

2009-03-13 Thread Jamie S
I can't see it either. Because it's related to security I think you
need some sort of higher level account to see it. When I filed the bug
I got a notice that it would be obscured for this reason.

Jamie

On Fri, Mar 13, 2009 at 6:08 AM, valdhor  wrote:
> Works for me. Have you signed up for an account?
>
> Oh, one other thing. Check the URL in the address bar. Does it have a period
> (".") at the end? If so, remove it.
>
> --- In flexcoders@yahoogroups.com, "Yves Riel"  wrote:
>>
>> Don't know if I'm the only one but I cannot access that page!?
>>
>> 
>>
>> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
>> Behalf Of Alex Harui
>> Sent: Friday, March 13, 2009 1:03 AM
>> To: flexcoders@yahoogroups.com
>> Subject: RE: [flexcoders] Re: Framework Caching Affecting Security
>> Settings?
>>
>>
>>
>> Vote for this bug: https://bugs.adobe.com/jira/browse/SDK-16050.
>>
>> Alex Harui
>>
>> Flex SDK Developer
>>
>> Adobe Systems Inc. 
>>
>> Blog: http://blogs.adobe.com/aharui 
>>
>> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
>> Behalf Of jedierikb
>> Sent: Wednesday, March 11, 2009 8:11 PM
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] Re: Framework Caching Affecting Security Settings?
>>
>> [Hello. New to the list. Found you from a google search for a bug I've
>> encountered. Looks like I've found the right people!]
>>
>> I have encountered this same bug and wonder if there was ever a
>> resolution?
>>
>> As a work around, I have removed every bit of "security enabled" code
>> (no javascript to actionscript calls) from my home-rolled rsl libraries.
>>
>> Is there a way to build the SWC/SWFs or link to them or some
>> crossdomain.xml trickery which can properly solve this problem?
>>
>> --- In flexcoders@yahoogroups.com 
>> , "Jamie S"  wrote:
>> >
>> > Does Framework Caching affect the security settings?
>> >
>> > I was banging my head against a wall because my app was throwing
>> > security violations all over the place when an outside swf ( or
>> > JavaScript ) tried to access the main app. I was using
>> > Security.allowDomain("*") but it was being ignored completely. I
>> > turned framework caching off and everything worked again.
>> >
>> > What is the connection? How can I use framework caching and still keep
>> > my security settings intact?
>> >
>> > Jamie
>> >
>>
>
> 


[flexcoders] Weired Focus Change behaviour on tab pressing

2009-03-13 Thread anuj181
Hi Guys
I am trying to make the focus changed consistently to different components in 
my app but it is showing different behavior when user presses tab. Few things 
are happening here if one of the radio button from the first radio group has 
been selected then pressing tab button will keep on cycling through first 3 
components and if the radio buttons are not selected then changing focus on the 
tab pressing works fine, All I need is that whenever user presses tab key, it 
changes the focus consistently through all of the components(doesn't matter if 
the radio button is selected or not) and the same behavior will be followed 
when user presses the shift+Tab.
Anyone has any idea about whats going on here,Please help me in fixing this 
issue,
Thanks a lot
geekyDeveloper
/***CODE***/

http://www.adobe.com/2006/mxml"; layout="absolute">






  

 










































[flexcoders] previously selected indices in List?

2009-03-13 Thread gwangdesign
Hi,

This might be a simple one but I am having a hard time figuring it out: How do 
I get the previous selectedIndices when a ListEvent.CHANGE event occurs on a 
List control, "within" the Flex component framework?

Basically I'd like to change all the selected item renderers states on a List 
control and I'd like to wrap this functionality into a subclass of List. 

If I am not subclass List or ListBase, everything seems straightforward. But if 
I extend List class, how do I capture this changes?

private function listChangeHandler(event:ListEvent):void
{
_bSelectedIndicesChanged = true;
invalidateProperties();
//this gets exectuted before commitProperties.
_prevSelectedIndices = selectedIndices.concat();
}

By the time commitProperties() gets called, _prevSelectedIndices = 
selectedIndices.concat(); has already been executed.

What am I missing here? Are there any easy way to either get previously 
selected index or previously selected indices on a List component?

Thanks.



[flexcoders] Re: stage mouseUp not firing outside app window

2009-03-13 Thread graham.t...@rocketmail.com
Many thanks for your response!

I was hoping for the mouseUp, but I did try the rollOut, as you suggested.  I 
couldn't even get it to work on Stage.  SystemManager worked fine on a normal 
rollOut, but it worked only intermittently (I know that sounds strange, but 
it's what it is) on a click-drag from the label.

Attempts:

//systemManager.topLevelSystemManager.addEventListener(MouseEvent.ROLL_OUT,onRollOut);
stage.addEventListener(MouseEvent.ROLL_OUT,onRollOut);


--- In flexcoders@yahoogroups.com, Fotis Chatzinikos  
wrote:
>
> I think this is a known problem... What about adding a stage rollout event,
> and then there dispatch a mouse up if needed?
> 
> Give it a go (have not tested myself)
> 
> On Fri, Mar 13, 2009 at 5:45 PM, graham.t...@... <
> graham.t...@...> wrote:
> 
> >
> > In the following example, I've got a stage-level mouseUp listener. In the
> > application window, I can click-drag off-window and, when I release, the
> > mouseUp event will fire.
> >
> > However, if I start my click-drag on the label and release off-screen, I do
> > _not_ get the mouseUp event.
> >
> > (I think setting mouseChildren=false on thetestContainer resolves the issue
> > for this test, but it's not practical for my application.)
> >
> > Anyone have any ideas?
> >
> > 
> > http://www.adobe.com/2006/mxml";
> > layout="absolute"
> > applicationComplete="onApplicationComplete(event)">
> >
> > 
> > 
> > 
> >
> >  > backgroundColor="#00ff00">
> > 
> > 
> > 
> >
> >  
> >
> 
> 
> 
> -- 
> Fotis Chatzinikos, Ph.D.
> Founder,
> Phinnovation
> fotis.chatzini...@...,
>




Re: [flexcoders] Ribbon in FLEX

2009-03-13 Thread Jeffry Houser


This is one of the components were were considering for Flextras; 
however I'm unclear how a Ribbon is different than a TabNavigator, though. 

I'd love to hear more thoughts on it, either on-list or off. 


Sam Lai wrote:

http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL100796341033#2

Kind of like the toolbar for picking controls in Adobe Dreamweaver
(unless they've changed it in recent versions).

Unfortunately I haven't heard of any Flash implementations, only
Silverlight implementations. You could implement it yourself using a
TabNavigator and Panel controls inside each tab for groups, and
buttons inside them. It's the styling that will be a pain - the
official specs are available from Microsoft for free though, with some
conditions attached
(http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also
use the images and even code if you know XAML from the Silverlight
version - http://silverlightribbon.codeplex.com/

Personally I'd be making my own interpretation of the ribbon control
instead of following the Microsoft version to the dot, especially
seeing as they have changed a few bits in Windows 7 which will
probably filter down to Office in Office 2010 (e.g. the confusion with
the File menu - the Orb in the top corner is now gone).

2009/3/13 Tracy Spratt :
  

I am not familiar with that control, can you describe it?



Tracy Spratt,

Lariat Services, development services available



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Claudio M. E. Bastos Iorio
Sent: Friday, March 13, 2009 2:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Ribbon in FLEX



Hi,

Is there any component (free or paid) similar to the office 2007 ribbon
control?



TIA



__

Claudio M. E. Bastos Iorio










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




  


--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://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.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] Re: Ribbon in FLEX

2009-03-13 Thread Paul Kukiel
I believe Jeffery Houser is in the process of building a Ribon like
the Office one for Flex and in 20 mins he has a live Demo and Q&A of
his latest Flex creations:

Flextras: Flextras Friday Meetup in 1 hour. Today: Mind Mapping an API
http://is.gd/iDhV Random Q&A to follow

Meeting URL:  https://admin.na3.acrobat.com/_a204547676/flextras/

All welcome.

http://www.flextras.com/  <- His site

Paul.



On Fri, Mar 13, 2009 at 12:25 PM, Allan Pichler  wrote:
> Hi all….
>
>
>
> Let me dig up the files sometime today ( should be around here somewhere
> although I made it back in December 07 ) and I will send it to all
> interested parties as well as add them to my experimental site
> http://www.unzipmenow.com for anyone interested at a later stage.
>
>
>
> Thanks for all your kind words
>
>
>
> Best regards and have a nice day!
>
>
>
> Allan Pichler
>
> Brewmaster - ColdFusion/Flex/Ajax/UI
>
>
>
> Email: dreamc...@gmail.com
>
> Phone: (415) 683 0313
>
> Skype: apichler
>
> Yahoo: allan_pichler
>
>
>
>
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Marius-Remus Mate
> Sent: Friday, March 13, 2009 3:57 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Ribbon in FLEX
>
>
>
> Check this out
>
> http://mindomo.com/demo.htm
>
> You should contact the nice guys at Mindomo, maybe you can work something
> out.
>
> --- In flexcoders@yahoogroups.com, "Claudio M. E. Bastos Iorio"
>  wrote:
>>
>> Hi,
>>
>> Is there any component (free or paid) similar to the office 2007 ribbon
>> control?
>>
>>
>>
>> TIA
>>
>>
>>
>> __
>>
>> Claudio M. E. Bastos Iorio
>>
>
> 




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

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



RE: [flexcoders] Re: Ribbon in FLEX

2009-03-13 Thread Allan Pichler
Hi all..

 

Let me dig up the files sometime today ( should be around here somewhere
although I made it back in December 07 ) and I will send it to all
interested parties as well as add them to my experimental site
http://www.unzipmenow.com for anyone interested at a later stage.

 

Thanks for all your kind words

 

Best regards and have a nice day!

 

Allan Pichler

Brewmaster - ColdFusion/Flex/Ajax/UI

 

Email: dreamc...@gmail.com

Phone: (415) 683 0313

Skype: apichler

Yahoo: allan_pichler

 

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Marius-Remus Mate
Sent: Friday, March 13, 2009 3:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Ribbon in FLEX

 

Check this out

http://mindomo.com/demo.htm

You should contact the nice guys at Mindomo, maybe you can work something
out.

--- In flexcoders@yahoogroups.com  ,
"Claudio M. E. Bastos Iorio"  wrote:
>
> Hi,
> 
> Is there any component (free or paid) similar to the office 2007 ribbon
> control?
> 
> 
> 
> TIA
> 
> 
> 
> __
> 
> Claudio M. E. Bastos Iorio
>



<><>

Re: [flexcoders] Array of objects

2009-03-13 Thread Johannes Nel
the annotation is not only for mxml. Vector is really fast, so if possible
use that.

On Fri, Mar 13, 2009 at 5:25 PM, Maciek Sakrejda wrote:

>   Note that the annotation is only for compile-time checking (and only for
> MXML, it looks like?), so you were still mostly correct, Paul.
>
> If he wants to get really fancy and can require FlashPlayer 10, there's
> always Vector: http://livedocs.adobe.com/flex/3/langref/Vector.html
>
> --
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.com
>
>
> -Original Message-
> From: Paul Andrews >
> Reply-to: flexcoders@yahoogroups.com 
> To: flexcoders@yahoogroups.com 
> Subject: Re: [flexcoders] Array of objects
> Date: Fri, 13 Mar 2009 09:02:55 -
>
> LOL, I should be doing the tutorials!
>
>
> http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=metadata_141_05.html
>
> Paul
>
> - Original Message -
> From: "Paul Andrews" >
> To: >
> Sent: Friday, March 13, 2009 8:59 AM
> Subject: Re: [flexcoders] Array of objects
>
> >
> > - Original Message -
> > From: "christophe_jacquelin" 
> > 
> >
> > To: >
> > Sent: Friday, March 13, 2009 8:46 AM
> > Subject: [flexcoders] Array of objects
> >
> >
> >> Hello,
> >>
> >> How to declare an array of n Objects of the class myClass ? How did
> we
> >> indicates the type of the object to the array ?
> >
> > private var myArray:Array = []; // You cannot give the array a
> dimension,
> > nor can you type the obects it holds
> > private var anArray:Array = new Array(); // alternative. Naturally it
> > doesn't have to be private..
> >
> > Please do some tutorials Christophe.
> >
> > Paul
> >
> >>
> >> Thank you,
> >> Christophe,
> >>
> >>
> >>
> >> 
> >>
> >> --
> >> Flexcoders Mailing List
> >> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> Alternative FAQ location:
> >>
>
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> >> Search Archives:
> >> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> >> Links
> >>
> >>
> >>
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> >
>
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
>
>  
>



-- 
j:pn
\\no comment


Re: [flexcoders] stage mouseUp not firing outside app window

2009-03-13 Thread Fotis Chatzinikos
I think this is a known problem... What about adding a stage rollout event,
and then there dispatch a mouse up if needed?

Give it a go (have not tested myself)

On Fri, Mar 13, 2009 at 5:45 PM, graham.t...@rocketmail.com <
graham.t...@rocketmail.com> wrote:

>
> In the following example, I've got a stage-level mouseUp listener. In the
> application window, I can click-drag off-window and, when I release, the
> mouseUp event will fire.
>
> However, if I start my click-drag on the label and release off-screen, I do
> _not_ get the mouseUp event.
>
> (I think setting mouseChildren=false on thetestContainer resolves the issue
> for this test, but it's not practical for my application.)
>
> Anyone have any ideas?
>
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute"
> applicationComplete="onApplicationComplete(event)">
>
> 
> 
> 
>
>  backgroundColor="#00ff00">
> 
> 
> 
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


Re: [flexcoders] Automation updates with 3.3 SDK?

2009-03-13 Thread Beau Scott
Nevermind, I just pulled it from what came with Flex Builder 3.0.2 because I
couldn't find the dataviz package anywhere for 3.2. Even tried modifying the
url that is on the current dataviz link.

FYI, the links from the opensource sdk site,

http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 ,

to the 3.2 sdk zip goes to the main flex product download page rather than
to where it should:

http://opensource.adobe.com/wiki/display/flexsdk/download?build=3.2.0.3958&pkgtype=1

Beau



On Fri, Mar 13, 2009 at 8:41 AM, Beau Scott  wrote:

> K, I'm updating from 3.1, and I'm not sure exactly where to find the 3.2
> updates now that 3.3 has been posted to
> http://www.adobe.com/products/flex/flexdownloads/ and all the files are
> the same. Anyone have a link I can get the 3.2 stuff from?
>
> Beau
>
>
>
>
> On Wed, Mar 11, 2009 at 3:31 PM, Matt Chotin  wrote:
>
>>And if not, then just copy them from 3.2, nothing should have changed.
>>
>>
>> On 3/11/09 2:30 PM, "Matt Chotin"  wrote:
>>
>> They should be included in the datavisualization download that’s on the
>> Flex download page.  http://www.adobe.com/products/flex/flexdownloads/
>>
>> Matt
>>
>>
>> On 3/11/09 1:10 PM, "Beau Scott"  wrote:
>>
>>
>>
>>
>> Just curious if the automation libraries were updated as well? and if so,
>> where to obtain them.
>>
>>  
>>
>
>
>
> --
> Beau D. Scott
> Software Engineer
>



-- 
Beau D. Scott
Software Engineer


[flexcoders] stage mouseUp not firing outside app window

2009-03-13 Thread graham.t...@rocketmail.com

In the following example, I've got a stage-level mouseUp listener.  In the 
application window, I can click-drag off-window and, when I release, the 
mouseUp event will fire.

However, if I start my click-drag on the label and release off-screen, I do 
_not_ get the mouseUp event.  

(I think setting mouseChildren=false on thetestContainer resolves the issue for 
this test, but it's not practical for my application.)

Anyone have any ideas?


http://www.adobe.com/2006/mxml"; layout="absolute"
applicationComplete="onApplicationComplete(event)">













Re: [flexcoders] Array of objects

2009-03-13 Thread Maciek Sakrejda
Note that the annotation is only for compile-time checking (and only for
MXML, it looks like?), so you were still mostly correct, Paul.

If he wants to get really fancy and can require FlashPlayer 10, there's
always Vector: http://livedocs.adobe.com/flex/3/langref/Vector.html

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Paul Andrews 
Reply-to: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Array of objects
Date: Fri, 13 Mar 2009 09:02:55 -

LOL, I should be doing the tutorials!

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=metadata_141_05.html

Paul

- Original Message - 
From: "Paul Andrews" 
To: 
Sent: Friday, March 13, 2009 8:59 AM
Subject: Re: [flexcoders] Array of objects

>
> - Original Message - 
> From: "christophe_jacquelin" 
> To: 
> Sent: Friday, March 13, 2009 8:46 AM
> Subject: [flexcoders] Array of objects
>
>
>> Hello,
>>
>> How to declare an array of n Objects of the class myClass ? How did
we
>> indicates the type of the object to the array ?
>
> private var myArray:Array = []; // You cannot give the array a
dimension,
> nor can you type the obects it holds
> private var anArray:Array = new Array(); // alternative. Naturally it
> doesn't have to be private..
>
> Please do some tutorials Christophe.
>
> Paul
>
>>
>> Thank you,
>> Christophe,
>>
>>
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>>
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
>
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>









Re: [flexcoders] char Type

2009-03-13 Thread Maciek Sakrejda
It does not--you would typically use Strings instead. E.g.,
String.charAt(index) returns a String.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: christophe_jacquelin 
Reply-to: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] char Type
Date: Fri, 13 Mar 2009 11:46:38 -

Hello, 

Did the char type exist in Flex ? And how to make it if not ?

Thank you,
Christophe, 









[flexcoders] Re: Sorting on Datagrid

2009-03-13 Thread ross_w_henderson
Poornima,

Can you give a little more information?  

Are you using any item renderers?


Ross




Re: [flexcoders] Automation updates with 3.3 SDK?

2009-03-13 Thread Beau Scott
K, I'm updating from 3.1, and I'm not sure exactly where to find the 3.2
updates now that 3.3 has been posted to
http://www.adobe.com/products/flex/flexdownloads/ and all the files are the
same. Anyone have a link I can get the 3.2 stuff from?

Beau



On Wed, Mar 11, 2009 at 3:31 PM, Matt Chotin  wrote:

>And if not, then just copy them from 3.2, nothing should have changed.
>
>
> On 3/11/09 2:30 PM, "Matt Chotin"  wrote:
>
> They should be included in the datavisualization download that’s on the
> Flex download page.  http://www.adobe.com/products/flex/flexdownloads/
>
> Matt
>
>
> On 3/11/09 1:10 PM, "Beau Scott"  wrote:
>
>
>
>
> Just curious if the automation libraries were updated as well? and if so,
> where to obtain them.
>
>  
>



-- 
Beau D. Scott
Software Engineer


[flexcoders] Error 'Send Failed' while loading swf file

2009-03-13 Thread gnv_vishwanath
Facing the issue in loading the swf file, but the same is working fine in local 
machine. When trying to execute in other machine its not working, gives the 
message as below:

faultCode:Client.Error.MessageSend 
faultString:'Send failed' 
faultDetail:'Channel.Connect.Failed error 
NetConnection.Call.Failed: HTTP: Failed: url: 
'http://16.25.168.193/shubbuild/messagebroker/amf''

Please help me in resolving this issue...



Fw: [flexcoders] Sorting on Datagrid

2009-03-13 Thread kotha poornima
Hi,
I used the pagableArrayCollection as input arraycollection to the datagrid. 
Because of this only sorting is not working good. If we change it to 
arraycollection its working fine. But i want pagableArraycollection for doing 
pagination.
PagableArrayCollection.mxml:(This file i got it from google)
package com.cbeyond.dashboard.utils
{
import mx.collections.ArrayCollection;
import mx.controls.Alert;

public class PagableArrayCollection extends ArrayCollection
{   
public function PagableArrayCollection(source:Array=null){
super();
this.source = source;
pages=0;
setFilter();
}
//Private variables
private var _pages:Number;
public var _itemsPerPage:Number = 4;
private var _currentPage:Number = 1;
private var _maxIndex:Number = 24;
private var _minIndex:Number = 0;

//private methods
private function set pages(value:Number):void{
   if(this.source.length % this.itemsPerPage == 0){
   _pages = this.source.length/this.itemsPerPage;
   }
   else{
   _pages =  int(this.source.length/this.itemsPerPage)+1;
   }
}

public function setFilter():void{
this._maxIndex = (this.currentPage * this.itemsPerPage)-1;
this._minIndex = this._maxIndex - (this.itemsPerPage -1);
this.filterFunction = filterData;
this.refresh();

}

private function filterData(item:Object):Boolean{
return (this.getItemIndex(item) >= _minIndex && 
this.getItemIndex(item) <= _maxIndex)
}

//public methods
[Bindable]
public function get itemsPerPage():Number{
return _itemsPerPage;
}

public function set itemsPerPage(value:Number):void{
_itemsPerPage = value;
this.pages = 0;
if(this.currentPage > this.pages){
this.currentPage = this.pages;
}
setFilter();
}

 [Bindable]
public function get currentPage():Number{
return _currentPage;
}

public function set currentPage(value:Number):void{
_currentPage = value;
setFilter();
}

[Bindable]
public function get pages():Number{
return _pages;
}

public function pageUp():void{

 if(this.currentPage < this.pages){
this.currentPage += 1;
}
}

public function pageDown():void{

if(this.currentPage > 1){
this.currentPage -= 1;
}
}
public function enableNextButton():Boolean{
//Alert.show(this.currentPage+","+this.pages);
if(this.currentPage == this.pages)
return false;
else
return true;
}
public function enablePrevButton():Boolean{
if(this.currentPage == 1 || this.currentPage == 0)
return false;
else 
return true;
}
}
}


Main.mxml



initialize="initDP();" width="550" height="400">





 








 

With this Sorting is not working. Just try it out so that u can understand it 
well. If you replace PagableArrayCollection with ArrayCollection Sorting is 
working fine. What is that missing in PagableArrayCollection. Or DataGrid wont 
support pagableArrayCollection to sort. Please help me guys!!!


- Forwarded Message 
From: kotha poornima 
To: flexcoders 
Sent: Friday, March 13, 2009 5:33:00 PM
Subject: [flexcoders] Sorting on Datagrid


Hi All,
I have one datagrid whose values populated from the httpserver response, but 
here the problem is when i click on the datagrid header iam getting the rows 
sorted but some of the rows are missing. Why is this happening?? Can anyone 
faced this issue before. Please suggest me how to solve this issue.

Thanks in Advance,
poornima


   


  

[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread valdhor
Which is just an extension of the examples at the links I provided.

By using Bruce Phillips example; The CRUD example at 
http://flexcf.com/tutorials; and the Ben Forta Adobe TV presentation at 
http://www.adobe.com/devnet/coldfusion/articles/adobetv_cfpwrdflex.html, anyone 
should have a good idea at how to do what stinasius wants.

All it requires is creating a value object in Flex with username and password; 
Sending that object to coldfusion and receiving a userinfo value object back 
containing authentication info and, if authenticated, all the users details. 
With my extremely limited knowledge of ColdFusion I could probably have 
something that works in about four hours.

If someone wants to pay me for my time I would be happy to put together an 
example ;-}


--- In flexcoders@yahoogroups.com, "johndoematrix"  wrote:
>
> Valdhor, i think what stinasius is asking abt has nothing to do with the 
> links you provided. bruce phillip's example is about login in flex with 
> coldfusion backend. the problem is not the login, the problem is how to store 
> the result of the login query in the static class for use throughout the flex 
> example. say the user wants to edit his info like username, email, date of 
> birth etc he/she has to first login and then edit the info returned by the 
> cfc query.
>




Re: [flexcoders] Re: offline flex3 app - security error

2009-03-13 Thread Tom Chiverton
On Thursday 12 Mar 2009, banshee...@ymail.com wrote:
> Now i tried the app on 3 windows laptops, IE and FF, and ... no problem !
> Only on the macs here there is the network access warning  (?) I'll have to
> try on other windows pc's...

And what Player versions were those ?

-- 
Tom Chiverton
Helping to enormously seize eye-catching patterns
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] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread johndoematrix
Valdhor, i think what stinasius is asking abt has nothing to do with the links 
you provided. bruce phillip's example is about login in flex with coldfusion 
backend. the problem is not the login, the problem is how to store the result 
of the login query in the static class for use throughout the flex example. say 
the user wants to edit his info like username, email, date of birth etc he/she 
has to first login and then edit the info returned by the cfc query.



Re: [flexcoders] Hiding Swf on a website

2009-03-13 Thread Guy Morton

What is your actual objective, and why?

There's no way to stop users doing whatever they like with your files  
once they have them on their pc, so your only solution is to prevent  
them getting the file in the first place.


Are you going to allow access to the public? Your only hope is to  
obscure the nature of your content slightly (eg removing the file  
extension and serving it via a cgi script with correct content-type  
headers would make the files obscure to windows users).


If not, some kind of http auth could protect your content.

Guy



On 13/03/2009, at 10:08 PM, christophe_jacquelin wrote:


Hello,

How to hide swf files on a website, preventing their copy by a  
software like httptrack?


Thank you,
Christophe,







Re: [flexcoders] Re: flex + mysql unicode support

2009-03-13 Thread Alan K
Yes.  Guy and Gordon are correct - going with system default is probably the
safest. Using custom fonts with international apps will require further
testing.

There is Arial Unicode which is a Microsoft font, and is included with the
default installation of Windows.  OS X is different, somehow, but does
include international fonts by default as well.

I don't know about Linux systems.

Alan


>We have an app with multilingual support and we just use the default system
font.

>Don't some device fonts (e.g., Arial on Windows?) include glyphs for large
portions of Unicode?




[flexcoders] Re: Framework Caching Affecting Security Settings?

2009-03-13 Thread valdhor
Works for me. Have you signed up for an account?

Oh, one other thing. Check the URL in the address bar. Does it have a period 
(".") at the end? If so, remove it.


--- In flexcoders@yahoogroups.com, "Yves Riel"  wrote:
>
> Don't know if I'm the only one but I cannot access that page!?
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Alex Harui
> Sent: Friday, March 13, 2009 1:03 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Re: Framework Caching Affecting Security
> Settings?
> 
> 
> 
> Vote for this bug: https://bugs.adobe.com/jira/browse/SDK-16050.
> 
> Alex Harui
> 
> Flex SDK Developer
> 
> Adobe Systems Inc.  
> 
> Blog: http://blogs.adobe.com/aharui  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of jedierikb
> Sent: Wednesday, March 11, 2009 8:11 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Framework Caching Affecting Security Settings?
> 
> [Hello. New to the list. Found you from a google search for a bug I've
> encountered. Looks like I've found the right people!]
> 
> I have encountered this same bug and wonder if there was ever a
> resolution?
> 
> As a work around, I have removed every bit of "security enabled" code
> (no javascript to actionscript calls) from my home-rolled rsl libraries.
> 
> Is there a way to build the SWC/SWFs or link to them or some
> crossdomain.xml trickery which can properly solve this problem?
> 
> --- In flexcoders@yahoogroups.com 
> , "Jamie S"  wrote:
> >
> > Does Framework Caching affect the security settings?
> > 
> > I was banging my head against a wall because my app was throwing
> > security violations all over the place when an outside swf ( or
> > JavaScript ) tried to access the main app. I was using
> > Security.allowDomain("*") but it was being ignored completely. I
> > turned framework caching off and everything worked again.
> > 
> > What is the connection? How can I use framework caching and still keep
> > my security settings intact?
> > 
> > Jamie
> >
>




[flexcoders] Re: Convert arraycollection to XML

2009-03-13 Thread oneworld95
http://nsdevaraj.wordpress.com/2008/08/20/arraycollection-xml/

- Alex C

--- In flexcoders@yahoogroups.com, venkat eswar  wrote:
>
> How to Convert arraycollection to XML
>




[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread valdhor
If I were you I would go through the tutorials at...

http://flexcf.com/tutorials
http://blogs.adobe.com/flexdoc/2007/02/hello_world_application_for_fl_1.html
http://www.adobe.com/devnet/coldfusion/articles/adobetv_cfpwrdflex.html
http://www.brucephillips.name/blog/index.cfm/2007/3/16/Developing-A-Login-System-For-A-Flex-Application-With-A-ColdFusion-and-Database-Backend-Part-1
http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=618
http://coldfusion.sys-con.com/node/256076

and this FlexCoders thread...

http://tech.groups.yahoo.com/group/flexcoders/message/132528

Especially Bruce Phillips six part article titled "Developing A Login System 
For A Flex Application With A ColdFusion and Database Backend".


--- In flexcoders@yahoogroups.com, "johndoematrix"  wrote:
>
> i have also had the same problem with login authentication in flex and 
> coldfusion. this is not well addressed especially for beginners like me.i 
> wish someone could come up with a tutorial that does login authentication 
> through database and cfc remote object calls and then shows how to store 
> login info for use through out the application. so far i have to say i am 
> where stinasius is and failed to progress.
>




[flexcoders] Convert arraycollection to XML

2009-03-13 Thread venkat eswar
How to Convert arraycollection to XML


  

[flexcoders] Re: Ribbon in FLEX

2009-03-13 Thread Marius-Remus Mate
Check this out

http://mindomo.com/demo.htm

You should contact the nice guys at Mindomo, maybe you can work something out.


--- In flexcoders@yahoogroups.com, "Claudio M. E. Bastos Iorio" 
 wrote:
>
> Hi,
> 
> Is there any component (free or paid) similar to the office 2007 ribbon
> control?
> 
>  
> 
> TIA
> 
>  
> 
> __
> 
> Claudio M. E. Bastos Iorio
>




[flexcoders] Drag move or copy depending on SOURCE's container

2009-03-13 Thread Christoph Pingel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

What is the best way to tell a drag-and-drop operation to move OR  
copy, depending on where the drag starts?

I have an area whith 'source' images that are dragged (copied) to  
other containers from where these images rest until the are _moved_.
I came up with attaching a new mouseMove event handler on the copied  
images, adding a special object to the dragSource (containing the  
information that we want a move operation next time).

The dragDrop event handler then reads this information and creates a  
new item or uses the dragged one accordingly. I haven't worked with  
drag and drop a lot, and this feels like a hack to me. Is there a  
more standard way to specify the drap operation according to the drag  
source instead of drop target?

thanks,
best regards,
Christoph
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkm6MOwACgkQZwp0O/P7cZuFxwCeOdJGLRED09FidBs4dLxgscdL
zgsAnRfoL/aPuG8Sy7Rg/7rYIwq/oQWY
=BT63
-END PGP SIGNATURE-


[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread stinasius
when i try that i get the following error

ReferenceError: Error #1069: Property message not found on 
mx.messaging.messages.ErrorMessage and there is no default value.
at components::Login/serverFault()
at components::Login/___Operation1_fault()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at NetConnectionMessageResponder/statusHandler()
at mx.messaging::MessageResponder/status()



RE: [flexcoders] Re: Framework Caching Affecting Security Settings?

2009-03-13 Thread Yves Riel
Don't know if I'm the only one but I cannot access that page!?



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Friday, March 13, 2009 1:03 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Framework Caching Affecting Security
Settings?



Vote for this bug: https://bugs.adobe.com/jira/browse/SDK-16050.

Alex Harui

Flex SDK Developer

Adobe Systems Inc.  

Blog: http://blogs.adobe.com/aharui  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jedierikb
Sent: Wednesday, March 11, 2009 8:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Framework Caching Affecting Security Settings?

[Hello. New to the list. Found you from a google search for a bug I've
encountered. Looks like I've found the right people!]

I have encountered this same bug and wonder if there was ever a
resolution?

As a work around, I have removed every bit of "security enabled" code
(no javascript to actionscript calls) from my home-rolled rsl libraries.

Is there a way to build the SWC/SWFs or link to them or some
crossdomain.xml trickery which can properly solve this problem?

--- In flexcoders@yahoogroups.com 
, "Jamie S"  wrote:
>
> Does Framework Caching affect the security settings?
> 
> I was banging my head against a wall because my app was throwing
> security violations all over the place when an outside swf ( or
> JavaScript ) tried to access the main app. I was using
> Security.allowDomain("*") but it was being ignored completely. I
> turned framework caching off and everything worked again.
> 
> What is the connection? How can I use framework caching and still keep
> my security settings intact?
> 
> Jamie
>




[flexcoders] Sorting on Datagrid

2009-03-13 Thread kotha poornima
Hi All,
I have one datagrid whose values populated from the httpserver response, but 
here the problem is when i click on the datagrid header iam getting the rows 
sorted but some of the rows are missing. Why is this happening?? Can anyone 
faced this issue before. Please suggest me how to solve this issue.

Thanks in Advance,
poornima



  

[flexcoders] char Type

2009-03-13 Thread christophe_jacquelin
Hello, 

Did the char type exist in Flex ? And how to make it if not ?

Thank you,
Christophe, 




[flexcoders] Hiding Swf on a website

2009-03-13 Thread christophe_jacquelin
Hello,

How to hide swf files on a website, preventing their copy by a software like 
httptrack?

Thank you,
Christophe, 




[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread alinmircea_s
give this a try ,  the problem may be the return type, struct for successful 
and boolean for unsuccessful


//do your stuff














private function login_result(event:ResultEvent):void
{
if(Number(event.result.success) == 1 || 
String(event.result.success).toLowerCase() == "true")
{
this.dispatchEvent( new Event('loginSuccessful') );
var store:ArrayCollection = new 
ArrayCollection(ArrayUtil.toArray(event.result.lastResult))
}
else
errorMessage("Login unsuccessful");
}



[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-13 Thread johndoematrix
i have also had the same problem with login authentication in flex and 
coldfusion. this is not well addressed especially for beginners like me.i wish 
someone could come up with a tutorial that does login authentication through 
database and cfc remote object calls and then shows how to store login info for 
use through out the application. so far i have to say i am where stinasius is 
and failed to progress.



Re: [flexcoders] Array of objects

2009-03-13 Thread Paul Andrews
LOL, I should be doing the tutorials!

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=metadata_141_05.html

Paul

- Original Message - 
From: "Paul Andrews" 
To: 
Sent: Friday, March 13, 2009 8:59 AM
Subject: Re: [flexcoders] Array of objects


>
> - Original Message - 
> From: "christophe_jacquelin" 
> To: 
> Sent: Friday, March 13, 2009 8:46 AM
> Subject: [flexcoders] Array of objects
>
>
>> Hello,
>>
>> How to declare an array of n Objects of the class myClass ? How did we
>> indicates the type of the object to the array ?
>
> private var myArray:Array = []; // You cannot give the array a dimension,
> nor can you type the obects it holds
> private var anArray:Array = new Array(); // alternative. Naturally it
> doesn't have to be private..
>
> Please do some tutorials Christophe.
>
> Paul
>
>>
>> Thank you,
>> Christophe,
>>
>>
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>



Re: [flexcoders] Array of objects

2009-03-13 Thread Paul Andrews

- Original Message - 
From: "christophe_jacquelin" 
To: 
Sent: Friday, March 13, 2009 8:46 AM
Subject: [flexcoders] Array of objects


> Hello,
>
> How to declare an array of n Objects of the class myClass ? How did we 
> indicates the type of the object to the array ?

private var myArray:Array = []; // You cannot give the array a dimension, 
nor can you type the obects it holds
private var anArray:Array = new Array(); // alternative. Naturally it 
doesn't have to be private..

Please do some tutorials Christophe.

Paul

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



Re: [flexcoders] Array of objects

2009-03-13 Thread claudiu ursica
[ArrayElementType("com.blah.blah.YourClassName")]
publica var ar:Array = new Array();

C





From: christophe_jacquelin 
To: flexcoders@yahoogroups.com
Sent: Friday, March 13, 2009 10:46:55 AM
Subject: [flexcoders] Array of objects


Hello,

How to declare an array of n Objects of the class myClass ? How did we 
indicates the type of the object to the array ?

Thank you,
Christophe, 


   


  

[flexcoders] Array of objects

2009-03-13 Thread christophe_jacquelin
Hello,

How to declare an array of n Objects of the class myClass ? How did we 
indicates the type of the object to the array ?

Thank you,
Christophe, 



Re: [flexcoders] Ribbon in FLEX

2009-03-13 Thread Thibaud Van Vreckem
I know I could do it using tabs and panels, but an existing FLEX version
could save me a lot of time.

that ribbon design  is a perfect example of what flex shines for.
it's nothing more than tabs and canvas/Hbox panels. that's probably about 5
sec setup.
I'm not sure I understand what you would you need a component for ..

On Fri, Mar 13, 2009 at 9:29 AM, Claudio M. E. Bastos Iorio <
selecter...@gmail.com> wrote:

>Thanks for your answer and links.
>
> The silverlight version looks really great. Check this online demo
> (silverlight required):
> http://silverlight.services.live.com/invoke/60108/SilverlightRibbon/iframe.html
>
>
>
> I’m not trying to copy exactly the ribbon. Just the concept.
>
> I know I could do it using tabs and panels, but an existing FLEX version
> could save me a lot of time.
>
> If I don’t find any FLEX version, the silverlight version will help me a
> lot, thanks.
>
> I wish I could use silverlight + .NET, but this is an AIR project L
>
>
>
>
>
> __
>
> Claudio M. E. Bastos Iorio
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Sam Lai
> *Sent:* Friday, March 13, 2009 3:53 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Ribbon in FLEX
>
>
>
>
> http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL100796341033#2
>
> Kind of like the toolbar for picking controls in Adobe Dreamweaver
> (unless they've changed it in recent versions).
>
> Unfortunately I haven't heard of any Flash implementations, only
> Silverlight implementations. You could implement it yourself using a
> TabNavigator and Panel controls inside each tab for groups, and
> buttons inside them. It's the styling that will be a pain - the
> official specs are available from Microsoft for free though, with some
> conditions attached
> (http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also
> use the images and even code if you know XAML from the Silverlight
> version - http://silverlightribbon.codeplex.com/
>
> Personally I'd be making my own interpretation of the ribbon control
> instead of following the Microsoft version to the dot, especially
> seeing as they have changed a few bits in Windows 7 which will
> probably filter down to Office in Office 2010 (e.g. the confusion with
> the File menu - the Orb in the top corner is now gone).
>
> 2009/3/13 Tracy Spratt >:
> > I am not familiar with that control, can you describe it?
> >
> >
> >
> > Tracy Spratt,
> >
> > Lariat Services, development services available
> >
> > 
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On
> > Behalf Of Claudio M. E. Bastos Iorio
> > Sent: Friday, March 13, 2009 2:13 AM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Ribbon in FLEX
> >
> >
> >
> > Hi,
> >
> > Is there any component (free or paid) similar to the office 2007 ribbon
> > control?
> >
> >
> >
> > TIA
> >
> >
> >
> > __
> >
> > Claudio M. E. Bastos Iorio
> >
> >
> >
> >
>
>   
>


RE: [flexcoders] Ribbon in FLEX

2009-03-13 Thread Claudio M. E. Bastos Iorio
Thanks for your answer and links.

The silverlight version looks really great. Check this online demo
(silverlight required):
http://silverlight.services.live.com/invoke/60108/SilverlightRibbon/iframe.h
tml

 

I'm not trying to copy exactly the ribbon. Just the concept. 

I know I could do it using tabs and panels, but an existing FLEX version
could save me a lot of time.

If I don't find any FLEX version, the silverlight version will help me a
lot, thanks. 

I wish I could use silverlight + .NET, but this is an AIR project L

 

 

__

Claudio M. E. Bastos Iorio

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Sam Lai
Sent: Friday, March 13, 2009 3:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Ribbon in FLEX

 

http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL1007963
41033#2

Kind of like the toolbar for picking controls in Adobe Dreamweaver
(unless they've changed it in recent versions).

Unfortunately I haven't heard of any Flash implementations, only
Silverlight implementations. You could implement it yourself using a
TabNavigator and Panel controls inside each tab for groups, and
buttons inside them. It's the styling that will be a pain - the
official specs are available from Microsoft for free though, with some
conditions attached
(http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also
use the images and even code if you know XAML from the Silverlight
version - http://silverlightribbon.codeplex.com/

Personally I'd be making my own interpretation of the ribbon control
instead of following the Microsoft version to the dot, especially
seeing as they have changed a few bits in Windows 7 which will
probably filter down to Office in Office 2010 (e.g. the confusion with
the File menu - the Orb in the top corner is now gone).

2009/3/13 Tracy Spratt mailto:tspratt%40lariatinc.com> >:
> I am not familiar with that control, can you describe it?
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>
> 
>
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On
> Behalf Of Claudio M. E. Bastos Iorio
> Sent: Friday, March 13, 2009 2:13 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Ribbon in FLEX
>
>
>
> Hi,
>
> Is there any component (free or paid) similar to the office 2007 ribbon
> control?
>
>
>
> TIA
>
>
>
> __
>
> Claudio M. E. Bastos Iorio
>
>
>
> 





[flexcoders] Easing Effect when scrolled

2009-03-13 Thread chandruflex
Hi,

Is it possible to apply an easing effect when an arrow button in the ScrollBar 
of a container is clicked?