[flexcoders] Re: How to change title in myFileReference.browse() system dialog?

2009-09-11 Thread grg_blls
Hi again,

I am re-posting this, still looking for a work around the subject...

Thanks all
George

--- In flexcoders@yahoogroups.com, grg_blls grg_b...@... wrote:

 Hi all,
 
 I want to change the standard displayed title Select file to upload by 
 localhost, that comes with the file-browsing dialog box opened by the 
 FileReference.browse() method.
 Where/how can I do this?
 
 thanks 
 George





[flexcoders] How to change title in myFileReference.browse() system dialog?

2009-09-05 Thread grg_blls
Hi all,

I want to change the standard displayed title Select file to upload by 
localhost, that comes with the file-browsing dialog box opened by the 
FileReference.browse() method.
Where/how can I do this?

thanks 
George



[flexcoders] Re: how to show icon in ToggleButtonBar

2009-09-03 Thread grg_blls
Thank you Steve for the example. 
(I also had a look at the links you provided :)

Though all seem very straightforward, somehow it keeps on disregarding showing 
the icons, without any errors. 
Looks like the itemRenderer 'forgets' to place the icons, even if the iconField 
is set at the mx:Menu control and points correctly to @icon property of the 
dataProvider :)
The icons are properly embedded of course!

As other matters are more pressing now, I will drop this icon looks 
improvement and remain with the labels already there, while keeping on with the 
main project development. When I have time I will look again to this problem 
for the shake of it.

Thanks again for your help 
George
  

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 Using examples from
 http://livedocs.adobe.com/flex/3/langref/mx/controls/MenuBar.html#includ\
 eExamplesSummary and
 http://blog.flexexamples.com/2007/08/18/displaying-icons-in-a-flex-combo\
 box-control/ I came up with the following example:
 
 ?xml version=1.0?
 !-- Simple example to demonstrate the MenuBar control. --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 creationComplete=initCollections(); 
  mx:Script
  ![CDATA[
  import mx.events.MenuEvent;
  import mx.controls.Alert;
  import mx.collections.*;
 
  [Bindable] public var menuBarCollection:XMLListCollection;
  [Bindable] [Embed(source=assets/bulletCheck.png)] public
 var BulletCheck:Class;
  [Bindable] [Embed(source=assets/bulletWarning.png)] public
 var BulletWarning:Class;
  [Bindable] [Embed(source=assets/bulletCritical.png)]
 public var BulletCritical:Class;
 
  private var menubarXML:XMLList =
  
  menuitem label=Menu1 data=top
  menuitem label=MenuItem 1-A data=1A
 icon=BulletWarning/
  menuitem label=MenuItem 1-B data=1B
 icon=BulletCheck/
  /menuitem
  menuitem label=Menu2 data=top
  menuitem label=MenuItem 2-A type=check
 data=2A icon=BulletWarning/
  menuitem type=separator/
  menuitem label=MenuItem 2-B
 icon=BulletCritical
  menuitem label=SubMenuItem 3-A
 type=radio groupName=one data=3A icon=BulletCritical/
  menuitem label=SubMenuItem 3-B
 type=radio groupName=one data=3B icon=BulletCheck/
  /menuitem
  /menuitem
  /;
 
  // Event handler to initialize the MenuBar control.
  private function initCollections():void
  {
  menuBarCollection = new XMLListCollection(menubarXML);
  }
 
  // Event handler for the MenuBar control's itemClick event.
  private function menuHandler(event:MenuEvent):void
  {
  // Don't open the Alert for a menu bar item that
  // opens a popup submenu.
  if (event.it...@data != top)
  {
  Alert.show(Label:  + event.it...@label + \n +
 Data:  + event.it...@data, Clicked menu item);
  }
  }
   ]]
  /mx:Script
  mx:Panel title=MenuBar Control Example height=75% width=75%
 paddingTop=10 paddingLeft=10
  mx:Label width=100% color=blue text=Select a menu item./
  mx:MenuBar labelField=@label iconField=@icon
 itemClick=menuHandler(event); dataProvider={menuBarCollection} /
  /mx:Panel
 /mx:Application
 
 
 HTH
 
 
 
 Steve
 
 --- In flexcoders@yahoogroups.com, grg_blls grg_blls@ wrote:
 
  Excuse me guys for dropping in to ask, but as to the first post: The
 second part of the code is about a menuBar control showing icons -
 though the post is titled how to show icon in ToggleButtonBar.
  As I have a same problem with a menuBar here trying to show some icons
 along with the labels, I gave it a try and no icons appear also here.
 BTW it doesn't throw any error.
  (My dataProvider is also a XMLList, with more subMenus, but same in
 concept to your example).
  So what's going on?
 
  Thanks
  George
 
  --- In flexcoders@yahoogroups.com, nathanleewei nathanleewei@ wrote:
  
   Are icons shown in ToggleButtonBar?
  
   What's your flex sdk version?
  
  
   --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
   
Works for me. Do you get any errors?
  
 





[Spam] Re: [flexcoders] click and doubleClick on the same button?

2009-09-02 Thread grg_blls
Hi!

May I ask why you need a MouseEvent.CLICK and a MouseEvent.DOUBLE_CLICK event 
on the same button? Wouldn't that be possible to use a simple Mouse.CLICK event 
together with a ctrlKey (or a altKey or shiftKey) pressed?
Just wondering..

Thanks
George


--- In flexcoders@yahoogroups.com, Nick Middleweek n...@... wrote:

 Beau,
 
 Thanks for this code... I've got another question though, I'll post it as
 another thread...
 
 
 Cheers,
 Nick
 
 
 
 
 2009/9/1 Beau Scott beau.sc...@...
 
 
 
  The only way I've been able to accomplish this is to use a timer to filter
  out a double click, and then ferry the original click event to an eventual
  click handler. The downside to this is the hardcoded timer delay doesn't
  reflect the user's system's double-click delay, and I'm not sure how to read
  that in (I'm not even sure that Flex uses this anyway).
 
  Example:
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=horizontal xmlns:local=*
  mx:Script
  ![CDATA[
 
  private var doubleClickFilterTimer:Timer;
  private var pendingMouseEvent:MouseEvent;
 
  private function button_doubClickHandler(event:MouseEvent):void
  {
  if(doubleClickFilterTimer)
 doubleClickFilterTimer.stop();
  trace('double clicked');
  }
 
  private function button_clickHandler(event:MouseEvent):void
  {
  if(!doubleClickFilterTimer)
  {
  doubleClickFilterTimer = new Timer(200, 1);
 
  doubleClickFilterTimer.addEventListener(TimerEvent.TIMER_COMPLETE,
  doubleClickFilterTimer_timerCompleteHandler);
  }
  else
  {
  doubleClickFilterTimer.reset();
  }
  pendingMouseEvent = event;
  doubleClickFilterTimer.start();
  }
 
  private function
  doubleClickFilterTimer_timerCompleteHandler(event:TimerEvent):void
  {
  finishClickHandler(pendingMouseEvent);
  pendingMouseEvent = null;
  }
 
  private function finishClickHandler(event:MouseEvent):void
  {
  trace('clicked');
  }
  ]]
  /mx:Script
 
  mx:Button label=Click or Double-Click Me
  click=button_clickHandler(event)
  doubleClickEnabled=true
  doubleClick=button_doubClickHandler(event) /
 
  /mx:Application
 
 
 
  Hope that helps,
 
  Beau
 
 
  On Tue, Sep 1, 2009 at 9:27 AM, Nick Middleweek n...@...wrote:
 
 
 
  Hello,
 
  I'm having difficulty setting both a click and a doubleClick event on the
  same button. Is it possible?
 
 
  Thanks,
  Nick
 
 
 
 
  --
  Beau D. Scott
  Software Engineer
   
 





[Spam] [Spam] Re: [flexcoders] click and doubleClick on the same button?

2009-09-02 Thread grg_blls
Well then, :)

George

--- In flexcoders@yahoogroups.com, Nick Middleweek n...@... wrote:

 Hi George,
 
 This post was part of research into fixing a problem with Event bubbling...
 See thread: Stopping double-click of a button 'bubble' to the datagrid
 row.
 
 
 Cheers,
 Nick
 
 
 
 2009/9/2 grg_blls grg_b...@...
 
 
 
  Hi!
 
  May I ask why you need a MouseEvent.CLICK and a MouseEvent.DOUBLE_CLICK
  event on the same button? Wouldn't that be possible to use a simple
  Mouse.CLICK event together with a ctrlKey (or a altKey or shiftKey) pressed?
  Just wondering..
 
  Thanks
  George
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick
  Middleweek nick@ wrote:
  
   Beau,
  
   Thanks for this code... I've got another question though, I'll post it as
   another thread...
  
  
   Cheers,
   Nick
  
  
  
  
   2009/9/1 Beau Scott beau.scott@
 
  
   
   
The only way I've been able to accomplish this is to use a timer to
  filter
out a double click, and then ferry the original click event to an
  eventual
click handler. The downside to this is the hardcoded timer delay
  doesn't
reflect the user's system's double-click delay, and I'm not sure how to
  read
that in (I'm not even sure that Flex uses this anyway).
   
Example:
   
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=horizontal xmlns:local=*
mx:Script
![CDATA[
   
private var doubleClickFilterTimer:Timer;
private var pendingMouseEvent:MouseEvent;
   
private function button_doubClickHandler(event:MouseEvent):void
{
if(doubleClickFilterTimer)
doubleClickFilterTimer.stop();
trace('double clicked');
}
   
private function button_clickHandler(event:MouseEvent):void
{
if(!doubleClickFilterTimer)
{
doubleClickFilterTimer = new Timer(200, 1);
   
doubleClickFilterTimer.addEventListener(TimerEvent.TIMER_COMPLETE,
doubleClickFilterTimer_timerCompleteHandler);
}
else
{
doubleClickFilterTimer.reset();
}
pendingMouseEvent = event;
doubleClickFilterTimer.start();
}
   
private function
doubleClickFilterTimer_timerCompleteHandler(event:TimerEvent):void
{
finishClickHandler(pendingMouseEvent);
pendingMouseEvent = null;
}
   
private function finishClickHandler(event:MouseEvent):void
{
trace('clicked');
}
]]
/mx:Script
   
mx:Button label=Click or Double-Click Me
click=button_clickHandler(event)
doubleClickEnabled=true
doubleClick=button_doubClickHandler(event) /
   
/mx:Application
   
   
   
Hope that helps,
   
Beau
   
   
On Tue, Sep 1, 2009 at 9:27 AM, Nick Middleweek nick@wrote:
   
   
   
Hello,
   
I'm having difficulty setting both a click and a doubleClick event on
  the
same button. Is it possible?
   
   
Thanks,
Nick
   
   
   
   
--
Beau D. Scott
Software Engineer
   
   
  
 
   
 





[flexcoders] Re: how to show icon in ToggleButtonBar

2009-09-02 Thread grg_blls
Excuse me guys for dropping in to ask, but as to the first post: The second 
part of the code is about a menuBar control showing icons - though the post is 
titled how to show icon in ToggleButtonBar. 
As I have a same problem with a menuBar here trying to show some icons along 
with the labels, I gave it a try and no icons appear also here. BTW it doesn't 
throw any error.
(My dataProvider is also a XMLList, with more subMenus, but same in concept to 
your example).
So what's going on? 

Thanks
George

--- In flexcoders@yahoogroups.com, nathanleewei nathanlee...@... wrote:

 Are icons shown in ToggleButtonBar?
 
 What's your flex sdk version?
 
 
 --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
 
  Works for me. Do you get any errors?





[flexcoders] Re: Switching from LCDS to Blazed DS

2009-08-24 Thread grg_blls
Hi,

you may have a look at:
http://www.adobe.com/devnet/flex/articles/flex_hibernate.html
http://www.bfaig.org/blog/?cat=14
http://backbeatlabs.com/?p=3

thanks 
George


--- In flexcoders@yahoogroups.com, Paul Kukiel pkuk...@... wrote:

 I am considering the same move.  I havnt watched/read it all yet but  
 AAron West has some walkthroughs here:  
 http://www.trajiklyhip.com/blog/index.cfm/2008/8/28/Integrating-BlazeDS-with-ColdFusion-8
 
 Paul.
 
 
 On Aug 21, 2009, at 6:56 PM, jarottman wrote:
 
  So I am toying with the idea of switching from LCDS express to  
  Blazed DS for all my data push needs. Does anyone know where I can  
  view a few examples for the setup/testing/code of a Blazed  
  DS(coldfusion9) / flex environment?,_._,___
 





[flexcoders] Re: VBox constrains - A simple question :-p

2009-08-21 Thread grg_blls
Hi Fotis, hi Wesley

Thanks Wesley for the tip on VBox. (I was just looking how to face the same 
problem with a VBox here, when your post came in :)

Then let me add one more such counter-intuitive setting I came across some time 
ago. I had a ADG with non-sortable columns, and I was trying (in vain) to get 
rid of the vertical separator bar that shows up in the column headers (that 
separates the sort indicator-arrow). 
In my case columns were non sortable and the arrow was just an empty space, 
thus no need for the separator bar.

The setting that does the trick is: sortExpertMode=true (!!!) Another example 
IMO of not exactly intuitive terminology. Isn't it?

Thanks 
George


--- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzini...@... 
wrote:

 Thanks! Setting the minimum height works but still its counterintuitive at
 the least...
 
 Can somebody from Adobe point me to the docs explaining this behaviour?
 
 TIA,
 Fotis
 
 On Thu, Aug 20, 2009 at 10:39 AM, Wesley Acheson
 wesley.ache...@...wrote:
 
 
 
  Sorry no I meant the min height.
 
  I didn't have a lot of time to answer when I typed this reply out before.
 
  I've seen this behaviour with dataGrid and I got stuck with it too, I asked
  here on the flexcoders mailing list.  Basically when the items in a
  container are larger than its height.  The container when it calculates
  the size of the children sets the minHeight to be a height that contains all
  its children. (or width).  It then uses the minHeight as the height of the
  container. However if you explictly set a minHeight that is smaller than the
  sum of the children heights e.g. 0. This minimum height isn't overridden by
  the container.  This allows the container to pick up its height property.
 
  Thats the tehory behind why I suggested it. I don't know if it works for
  VBox and I don't know if the problem applies to numeric heights as opposed
  to percentage heights. However I thought it may be worth a shot as its an
  easy thing to test.
 
  Regards,
 
  Wes
 
  On Thu, Aug 20, 2009 at 12:23 AM, Fotis Chatzinikos 
  fotis.chatzini...@... wrote:
 
 
 
  Hi Wesley, do you mean the maxHeight?
 
  My problem is with the height of the box getting bigger than the
  application instead of staying @ bottom 10.
 
  If i set the height or maxHeight it works as advertised.
 
  I am not trying to just fix it though.. I am trying to understand/know why
  it does not work..
 
  Thanks, for the reply though
 
 
  On Thu, Aug 20, 2009 at 12:47 AM, Wesley Acheson 
  wesley.ache...@... wrote:
 
 
 
  try setting the minWidth also.
 
  On Wed, Aug 19, 2009 at 6:29 PM, fotis.chatzinikos 
  fotis.chatzini...@... wrote:
 
  mx:Application
 xmlns:mx=http://www.adobe.com/2006/mxml;
 width=640
 height=480
 
 mx:VBox top=100 bottom=10 horizontalCenter=0 width=90%
  horizontalAlign=left verticalGap=5 id=debugWinVB_ID
 /mx:VBox
  /mx:Application
 
 
  At the start of the application the VBox height is 370
  (Application.height - vbox.top - vbox.bottom) - Correct.
 
  Child labels are added to this vbox in runtime and as soon as the
  cumulative labels height becomes  370 the vbox expands and scroll bars
  appear @ the Application level...Why?
 
  Should not the Vbox remain @ 370 height and display inner scrollbars,
  according to the following rule:?
 
 * Component size determined by a pair of constraint-based layout
  properties (left-right or top-bottom) overrides any explicit or
  percentage-based size specifications. For example, if you specify both 
  left
  and right constraints, the calculated constraint-based width overrides 
  the
  width set by a width or percentWidth property.
 
 
 
 
  
 
  --
  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
 
 
 
 
 
 
 
  --
  Fotis Chatzinikos, Ph.D.
  Founder,
  Phinnovation
  fotis.chatzini...@...,
 
 
 
   
 
 
 
 
 -- 
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@...,





[flexcoders] Re: Scale a Class file (png, gif, etc...)

2009-08-18 Thread grg_blls
Hi,

Downscaling of a bitmap image can be done in a number of ways (downsampling is 
a better term and procedure). 

The real problem is: what do you expect the outcome to be, if you scale down a 
line graphic of 1 pixel width, or a detail in the bitmap of 1 pixel in the 
original 50x50 bitmap that has to be scaled to 15x15 pixels, i.e. 330% down! 
(this is the original question). 
One third of a pixel? 

Do it any way you like it, but the result has to be 1/3 of a pixel whatever 
that means and however this appears ... :)

thanks
George


--- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote:

 Yes, code would be great! I can't believe how difficult this is to get 
 implemented. Hope these things become easier in Flex 5.
 
 J
 
 --- In flexcoders@yahoogroups.com, ag_rcuren robert.vancuren.jr@ wrote:
 
  I ran into this same problem and could not find and easy fix. I ended up 
  extending the LinkButton class. I created a button class that can load it's 
  icons on the fly from any where local, net, or embedded. Instead of needing 
  to set them strictly to Class I created a iconSource property. This allowed 
  me to load the image scale it down and then use that scaled image as the 
  icon. This required some trickery as you have to get the icon for each 
  state by name and manually add your custom icons, but it does work just 
  fine. I don't have time to include code right now but I can post some 
  example code later if you would like. I hope what I said made sense.
  
  
  --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote:
  
   I am trying to use a LinkButton in my app and assign an image to the icon 
   variable, but I need to scale down or make sure the image isn't any 
   larger than 15 x 15 pixels.
   
   Is there a way to scale a class file?  I tried to load a png file then 
   convert the png to Bitmap, tried BitmapData, and tried BitmapAsset and 
   then scale the embedded image, but non of this worked.
   
   So to recap embed and image (which is 50x50 pixels) and shrink it down to 
   (15x15 pixels) and assign it to a linkButtons icon. 
   
   Anyone know of a solution?
  
 





[flexcoders] Re: Scale a Class file (png, gif, etc...)

2009-08-17 Thread grg_blls
Hi,
 
Bitmaps aren't usually 'shrinked' (this or another way) as they lose in context.

You should use a image processing program to first convert by downsampling to 
this lower resolution, and if you still can make out what the original image 
was like, OK. Otherwise you should 'enhance' the result to make up for the lost 
information.
Sorry if there is no easy way to effectively scale down bitmaps.
George


--- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote:

 I am trying to use a LinkButton in my app and assign an image to the icon 
 variable, but I need to scale down or make sure the image isn't any larger 
 than 15 x 15 pixels.
 
 Is there a way to scale a class file?  I tried to load a png file then 
 convert the png to Bitmap, tried BitmapData, and tried BitmapAsset and then 
 scale the embedded image, but non of this worked.
 
 So to recap embed and image (which is 50x50 pixels) and shrink it down to 
 (15x15 pixels) and assign it to a linkButtons icon. 
 
 Anyone know of a solution?





[flexcoders] Re: Scale a Class file (png, gif, etc...)

2009-08-17 Thread grg_blls
Hi,

BitmapAsset () Constructor 
public function BitmapAsset(bitmapData:BitmapData = null, pixelSnapping:String 
= auto, smoothing:Boolean = false) 
Constructor. 

Parameters  bitmapData:BitmapData (default = null) — The data for the bitmap 
image.  
 pixelSnapping:String (default = auto) — Whether or not the bitmap is snapped 
to the nearest pixel.  
 smoothing:Boolean (default = false) — Whether or not the bitmap is smoothed 
when scaled 
setActualSize () method   

public function setActualSize(newWidth:Number, newHeight:Number):void 
Sets the actual size of this object. 
This method is mainly for use in implementing the updateDisplayList() method, 
which is where you compute this object's actual size based on its explicit 
size, parent-relative (percent) size, and measured size. You then apply this 
actual size to the object by calling setActualSize().

In other situations, you should be setting properties such as width, height, 
percentWidth, or percentHeight rather than calling this method.


What about it? 
And if this is about a few bitmaps, I would go to Photoshop, do my 300% 
downsampling, check myself for any appearence problems - if any, et.c... (BTW, 
the original 50X50 pixels bitmaps were drawn most probably this way)

thanks
George

--- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote:

 Ok, what about BitmapAsset.setActualSize?
 
 
 
 --- In flexcoders@yahoogroups.com, grg_blls grg_blls@ wrote:
 
  Hi,
   
  Bitmaps aren't usually 'shrinked' (this or another way) as they lose in 
  context.
  
  You should use a image processing program to first convert by downsampling 
  to this lower resolution, and if you still can make out what the original 
  image was like, OK. Otherwise you should 'enhance' the result to make up 
  for the lost information.
  Sorry if there is no easy way to effectively scale down bitmaps.
  George
  
  
  --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote:
  
   I am trying to use a LinkButton in my app and assign an image to the icon 
   variable, but I need to scale down or make sure the image isn't any 
   larger than 15 x 15 pixels.
   
   Is there a way to scale a class file?  I tried to load a png file then 
   convert the png to Bitmap, tried BitmapData, and tried BitmapAsset and 
   then scale the embedded image, but non of this worked.
   
   So to recap embed and image (which is 50x50 pixels) and shrink it down to 
   (15x15 pixels) and assign it to a linkButtons icon. 
   
   Anyone know of a solution?
  
 





[flexcoders] Re: This mailing list vs the forum.

2009-08-14 Thread grg_blls
Hi all,

This mailling lixt is now over 146.000 messages posted.
Most answers to possible questions are already here, for the trouble of a 
search.
This accumulated wealth of information extends over many years...

so to cut a long story.., I vote for this flexcoders mailing list!
(and a simple question: where was the flex developers forum, when needed?)

Thanks,
George 

--- In flexcoders@yahoogroups.com, Gregor Kiddie gkid...@... wrote:

 It kind of works...
 
  
 
 It only mangles some code samples, I've never had problems with the
 subject lines (though I know others have), and I get threading via
 outlook some of the time (though outlook has the same problem with this
 mailing list).
 
  
 
 It's usable enough for me to prefer it over actually visiting the
 forums.
 
  
 
 Gregor Kiddie
 Senior Developer
 INPS
 
 Tel:   01382 564343
 
 Registered address: The Bread Factory, 1a Broughton Street, London SW8
 3QJ
 
 Registered Number: 1788577
 
 Registered in the UK
 
 Visit our Internet Web site at www.inps.co.uk
 blocked::http://www.inps.co.uk/ 
 
 The information in this internet email is confidential and is intended
 solely for the addressee. Access, copying or re-use of information in it
 by anyone else is not authorised. Any views or opinions presented are
 solely those of the author and do not necessarily represent those of
 INPS or any of its affiliates. If you are not the intended recipient
 please contact is.helpd...@...
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Tom Chiverton
 Sent: 13 August 2009 16:39
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] This mailing list vs the forum.
 
  
 
   
 
 On Thursday 13 Aug 2009, Gregor Kiddie wrote:
  It does have to be said, I use the Mailing list functionality of the
  Adobe forums rather than visiting the forum directly...
 
 Last time I checked, this was utterly broken. With mangled bodies,
 mangled 
 subject lines and the lack of correct headers to allow threading.





[flexcoders] Re: This mailing list vs the forum.

2009-08-14 Thread grg_blls
Hi again,

I used the word this in the phrase this mailing list, literally.
Refering (indicating) to this instead of that, (or any other...).
Certainly not trying to diminish this mailing list i.e. FlexCoders 
(...mailing list)

But as the context of my message is pretty clear and as I vote for this 
mailing list I think all is set, besides english grammar and syntax.. :)

Thanks
George

 
--- In flexcoders@yahoogroups.com, mitchgrrt mitch_g...@... wrote:

 I'm actually surprised that you refer to FlexCoders as this mailing list.  
 I only see it in Yahoo Groups, and I visit it when I choose to, just like a 
 forum.  I guess it can be used either way.
 
 Like another poster said, last time I used the Adobe forums, a few months 
 ago, they were totally broken.  Search didn't work at all.  Maybe they have 
 been fixed.  It was also extremely frustrating because I spent *hours* trying 
 to figure out how to report the broken forum to somebody.  Eventually I sent 
 a personal email message to somebody at Adobe whose email address I had.
 
 The Adobe Web Site has contact us links that are for things like buying 
 their products but has no way at all to report something like a broken web 
 page or a broken link.  It seemed to me like Adobe is a company that makes 
 great technology but thinks they are so good that they don't need to bother 
 with something as basic as letting users contact them to report problems.
 
 
 --- In flexcoders@yahoogroups.com, Wesley Acheson wesley.acheson@ wrote:
 
  I saw a mail a while ago about new Adobe forums. Those of you who use both
  which do you perfer flexcoders or the Adobe forums?  I've an impression that
  the community is pretty strong here.  ]
  
  Please only answer If you use both. Its not a real opinion to get the
  opinion of someone who only uses the group as they can't compare.
  
  Regards,
  Wes
 





[flexcoders] Re: embedding swf fonts

2009-08-07 Thread grg_blls
Hi again,
Thanks Muzak for clarifying this. I was talking metaphorically, as 
AkzidenzGrotesk could be interpreted as Bizzare accident, if you excuse me 
the pun :)
Of course the notation means exactly what you say..!

As to the original post, I still miss the point on what the original poster has 
in mind. When one has to recompile an SWF?
(And I still believe that SWFs are not for distributing fonts :).

Thanks 
George


--- In flexcoders@yahoogroups.com, Muzak p.ginnebe...@... wrote:

  So dear Muzak, Akzidenz-Grotesk doesn't mean .. (AkzidenzGroteskBE 
  -MdIt) means that you do not have the font installed ..,
  but is another font (AkzidenzGroteskBE -MdIt = medium italic) from the font 
  foundry of Berthold!!
 
 I know what it means :) I was referring to the fact that the font is 
 surrounded by parentheses.
 When a font in Flash (the IDE) shows up surrounded by parentheses, it means 
 it's missing:
 
 Arial vs (Arial)
 
 So if it shows up as: (AkzidenzGroteskBE- MdIt) _sans in the properties 
 panel it means the font AkzidenzGroteskBE- MdIt is 
 missing and the systems default _sans font is used instead.
 
  I was given the .swf from a person who has the font on their system, so 
  shouldn't one be able to 'extract' the fonts by name and 
  use them into a project?
 
 Yup, if you got the swf from someone who does have the font, you should be 
 able to use it, but you can't (re)compile the fla on your 
 system (without the font installed).
 Ask the person that compiled the swf for the exact font names as they appear 
 in the properties panel in Flash.
 Those are the names you should be using in Flex to use them.
 
 regards,
 Muzak
 
 - Original Message - 
 From: grg_blls grg_b...@...
 To: flexcoders@yahoogroups.com
 Sent: Thursday, August 06, 2009 7:10 PM
 Subject: [flexcoders] Re: embedding swf fonts
 
 
  Hi guys,
  some few clarifications are needed IMO here, to cleal up the sceen.
 
  First, a simple googling about Akzidenz-Grotesk BE: Download 
  Akzidenz-Grotesk BE Volume, provided on Fonts.com from Berthold. 
  Akzidenz-Grotesk BE Volume is available in OpenType, PostScript for 
  Windows, ... .
  So dear Muzak, Akzidenz-Grotesk doesn't mean .. (AkzidenzGroteskBE 
  -MdIt) means that you do not have the font installed .., 
  but is another font (AkzidenzGroteskBE -MdIt = medium italic) from the font 
  foundry of Berthold!!
 
  Second, as written: I was given the .swf from a person who has the font on 
  their system, so shouldn't one be able to 'extract' 
  the fonts by name and use them into a project?.
  This action constitutes direct violation of copyrights for whatever this 
  means to anyone these days!
 
  And then: If not, then - other than file size - what's the point of 
  distributing fonts in a .swf?.
  This statement is wrong! You don't use SWF files to distribute fonts (?). 
  Rather you embed fonts in the SWF for a number of 
  different reasons, like rotating text for one...!
 
  Hope this information is somehow usefull.
  Thanks
  George





[flexcoders] Re: embedding swf fonts

2009-08-06 Thread grg_blls
Hi guys,
some few clarifications are needed IMO here, to cleal up the sceen.

First, a simple googling about Akzidenz-Grotesk BE: Download Akzidenz-Grotesk 
BE Volume, provided on Fonts.com from Berthold. Akzidenz-Grotesk BE Volume is 
available in OpenType, PostScript for Windows, ... .
So dear Muzak, Akzidenz-Grotesk doesn't mean .. (AkzidenzGroteskBE -MdIt) 
means that you do not have the font installed .., but is another font 
(AkzidenzGroteskBE -MdIt = medium italic) from the font foundry of Berthold!!

Second, as written: I was given the .swf from a person who has the font on 
their system, so shouldn't one be able to 'extract' the fonts by name and use 
them into a project?. 
This action constitutes direct violation of copyrights for whatever this means 
to anyone these days!

And then: If not, then - other than file size - what's the point of 
distributing fonts in a .swf?.
This statement is wrong! You don't use SWF files to distribute fonts (?). 
Rather you embed fonts in the SWF for a number of different reasons, like 
rotating text for one...!

Hope this information is somehow usefull.
Thanks
George



--- In flexcoders@yahoogroups.com, Big Lebowski xelf...@... wrote:

 I was given the .swf from a person who has the font on their system, so 
 shouldn't one be able to 'extract' the fonts by name and use them into a 
 project? If not, then - other than file size - what's the point of 
 distributing fonts in a .swf?
 
 I mean, we're putting them in an FLA and chosing specific glyphs *for 
 export*, etc., so what's the point if they're not portable?
 
 I thought the Flex compiler needed more information or I was not referring to 
 the instance names or something...so it just comes down to you don't have 
 the font?  If so...why even bother?
 
 
 
 
 From: Muzak p.ginnebe...@...
 To: flexcoders@yahoogroups.com
 Sent: Thursday, August 6, 2009 1:17:53 AM
 Subject: Re: [flexcoders] embedding swf fonts
 
   
 If I'm not mistaken, (AkzidenzGroteskBE -MdIt) means that you do not have 
 the font installed (or Flash CS4 doesn't recognize it) 
 and will be replaced with the default _sans font on your system when 
 compiling the swf.
 
 So basically, the font is missing from the swf when you try to embed it in 
 Flex.
 
 regards,
 Muzak
 
 - Original Message - 
 From: xelf...@rocketmail. com
 To: flexcod...@yahoogro ups.com
 Sent: Thursday, August 06, 2009 7:10 AM
 Subject: [flexcoders] embedding swf fonts
 
 I have been handed a .swf file called akzidenz.swf
  I have tried to embed only to get the following error:
  Unable to transcode akzidenz.swf
 
  After some quick research this apparently is common, and I thought this 
  article was interesting 
  (http://curiousminds media.wordpress. com/2009/ 06/04/embedding- irregular- 
  fonts-in- flex-3/), but it has yielded no solution.
 
  So far, my Style block is simple at the moment:
  @font-face {
  src: url('akzidenz. swf');
  font-family: (AkzidenzGrotes kBE-Bold) _sans;
  }
 
  When I open the file in Flash CS4 the Character Families are:
  (AkzidenzGroteskBE- MdIt) _sans
  (AkzidenzGroteskBE- BoldIt) _sans
  (AkzidenzGroteskBE- Bold) _sans
  (AkzidenzGroteskBE- Md) _sans
 
  I've tried various ways of spelling, including/excluding parentheses and 
  _sans, leaving font-weight out, yet I cannot shake the 
  transcoding issue.
 
  There seems to the agreement that font embedding blows in Flex, but there's 
  no consistent solution that I have found thus far.
 
  Any help? Any truly useful articles? Any one want to share the font family 
  for PC with me?  ($295 bucks...ouch. )
 
  Thanks!





[flexcoders] Re: how to hide ADG sort divider?

2009-07-11 Thread grg_blls
Hi,

I suppose that you already have:
sortableColumns=false
in the ADG. Are you?


--- In flexcoders@yahoogroups.com, danilabuonora danilabuon...@... wrote:

 no way, that was simple =)
 
 thanks a lot man.
 
 --- In flexcoders@yahoogroups.com, grg_blls grg_blls@ wrote:
 
  Yes,
  there is. Set for the ADG:
  sortExpertMode=true 
  
  George
  
  
  
  --- In flexcoders@yahoogroups.com, danilabuonora danilabuonora@ wrote:
  
   hi, 
   does anyone know how to make an andaceddatagrid look like a datagrid 
   (hide de sorting thing, it takes way to much space)???
   (I want to make it look like a datagrid)
   
   thanks a lot!
  
 





[flexcoders] Re: how to hide ADG sort divider?

2009-07-10 Thread grg_blls
Yes,
there is. Set for the ADG:
sortExpertMode=true 

George



--- In flexcoders@yahoogroups.com, danilabuonora danilabuon...@... wrote:

 hi, 
 does anyone know how to make an andaceddatagrid look like a datagrid (hide de 
 sorting thing, it takes way to much space)???
 (I want to make it look like a datagrid)
 
 thanks a lot!





[flexcoders] Re: Flex Browse File

2009-07-02 Thread grg_blls
Hi all,
As I have a similar situation with a Flex app, I came to the following that 
works for me:
Any Flex SWF is running withing the client's browser and for security reasons 
(as already mentioned) Flex is always running in sandbox, contrary to AIR.
But there is no reason why in the local environment, the user/client can't 
switch from his browser to his system tray, copy the full path of a certain 
file and paste it to, say, a TextArea in the Flex app.

This of course doesn't give any access to the file through the Flex app, but I 
was only needing the full path...

Thanks,
George 

--- In flexcoders@yahoogroups.com, reversible_82 reversible...@... wrote:

 Thanks, but what I'm trying to accomplish is get the String with the
 folder path,
 for example: D:/Files/Pic,  with FileReference.browse(); I select
 the folder,
 so how could I get the String of the folder path...
 
 Thanks for your support
 
 --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@
 wrote:
 
  On Friday 26 Jun 2009, reversible_82 wrote:
   No, it seem like this class do not exist in flex, should be a way to
 do
   this on flex, does anyone have an Idea?
 
  FileReference.browse();
 
 
  --
  Helping to ambassadorially participate clicks-and-mortar materials 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: DataGrid with double header

2009-06-10 Thread grg_blls
Hi,
You are right.
Then what I said is that ADG is a standard part in FB3 (meaning Professional 
edition) in the list of available controls, not a part of the Standard edition.!

Otherwise why one should be using the Standard edition and not download the 
full trial version?
If one is seriously developing RIAs, he needs to buy FB. If he is evaluating, 
the trial is all he needs...

BTW I consider the price of FB3 (Pro) very reasonable..
thanks
George



[flexcoders] Re: DataGrid with double header

2009-06-09 Thread grg_blls
Hi,
ADG is standard part of controls in FB3 (as DataGrid is). What version of FB 
are using?
George
 
--- In flexcoders@yahoogroups.com, mhbmarcos mhbmar...@... wrote:

 Thanks grg_blls.
 But now, not compilet the source:
  AdvancedDataGrid not found
 
 and, i find in internet, but see datavisualization, and can´t find the 
 download place
 
 any solution for this?
 
 thanks
 
 
 --- In flexcoders@yahoogroups.com, grg_blls grg_blls@ wrote:
 
  You should be using Advanced DataGrid with Grouped Columns.
  
  George
  
  --- In flexcoders@yahoogroups.com, mhbmarcos mhbmarcos@ wrote:
  
   hi!!!
   i need have a datagrid with double header
   eg:
   
header1  |header2
   subHeader1 | subHeader2   |   subHeader3  | subHeader4
   
   do you have any example or workaround?
   
   thanks
  
 





[flexcoders] Re: DataGrid with double header

2009-06-08 Thread grg_blls
You should be using Advanced DataGrid with Grouped Columns.

George

--- In flexcoders@yahoogroups.com, mhbmarcos mhbmar...@... wrote:

 hi!!!
 i need have a datagrid with double header
 eg:
 
  header1  |header2
 subHeader1 | subHeader2   |   subHeader3  | subHeader4
 
 do you have any example or workaround?
 
 thanks





[flexcoders] Re: Advanced Data grid Row Color using Action Script .

2009-06-03 Thread grg_blls
Hi,
maybe this will help you in what you're looking for..
http://flexpearls.blogspot.com/2008/02/row-background-color-in.html

thanks
George

--- In flexcoders@yahoogroups.com, guess what myworld10...@... wrote:

 
 I am building an advancedDataGrid from Action script completely. I have the 
 Data grid up and running . There is a requirement which says I need to Show 
 Summary rows within the data grid in a differemt Color . What I am doing is 
 based on the data of the xml I want to draw it in different colors or say 
 make it bold . Can anyone help me in this regard .
 Since i am building it from Action Script completely . I dont know how to set 
 the bg color . This is my Code . Kindly help me folks .
 
 var dg:AdvancedDataGrid = new AdvancedDataGrid ; 
 
  
//instantiate a new DataGrid
 var dgc:AdvancedDataGridColumn;
 var aColumnsNew:Array = dg.columns
 var iTotalDGWidth:int = 0;
 for (var i:int=0;iaColumnDef.length;i++)  {  //loop over 
 the column definition array
   oColumnDef = aColumnDef[i];
   dgc = new AdvancedDataGridColumn();  
 //instantiate a new DataGridColumn
   dgc.dataField = oColumnDef.dataField;//start 
 setting the properties from the column def array
   dgc.width = oColumnDef.width;
   iTotalDGWidth += dgc.width;  //add up 
 the column widths
   dgc.editable = oColumnDef.editable;
   dgc.sortable = oColumnDef.sortable
   dgc.visible = oColumnDef.visible;
   dgc.wordWrap = oColumnDef.wordWrap;
   aColumnsNew.push(dgc)   the new dataGridColumn onto the array
 }
 
 
 
 dg.columns =aColumnsNew;  the array back to the dtaGrid
 dg.width = iTotalDGWidth;
 dg.dataProvider = _xlcCatalog;
  this.addChild(dg);





[flexcoders] Re: Is this list declining?

2009-06-02 Thread grg_blls
I have to totally agree with Tom. The number of posts is one thing, sunstancial 
communication is another. 
By this I mean that even if I only raised a small number of questions to this 
forum, I got excellent help in replies.. 
These replies helped me in building up solutions that otherwise might have 
taken a long time to resolve, if ever..!

Another nice aspect to this forum is the extensive accumaulated knowledge from 
previous threads.. I usually don't have to post more new questions as by 
searching the forum, I usually find a very good answer already there.. Somebody 
having already asked in the past and got the right answer.

All in all many thanks to the people contributing to this very active forum.. 
George


--- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote:

 On Monday 01 Jun 2009, luvfotography wrote:
  What's your opinion?
 
 Total messages per unit time is a pointless measure of the usefulness of a 
 resource ?
 
 -- 
 Helping to conveniently iterate high-end clusters as part of the IT team of 
 the year, '09 and '08
 
 Tom Chiverton
 Developer
 Tel: +44 0161 618 5032
 Fax: +44 0161 618 5099 
 tom.chiver...@...
 3 Hardman Square, Manchester, M3 3EB
 www.Halliwells.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in England and 
 Wales under registered number OC307980 whose registered office address is at 
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list 
 of members is available for inspection at the registered office 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: Sorry i am not a rocket scientist...

2009-05-16 Thread grg_blls
It is an oxymoron, if you have something to highlight.
But what is the meaning if you mouseOver a column header that has only one 
function in context: That of a label to that column? 

In a similar case (that's was the reason of my previous post) I use an ADG 
where I must had to disable sorting for all columns. Then in ADG functionality 
there goes this highlight when mousing over the headers as useless and 
annoying, but confusing all together as to the meaning in context of such 
highlighting.

I concider Patrick's first post makes perfect sense as a request. I also think 
this is something that slipped in the original design of that control. My 
personnal approach as a developer is to concentrate in the business logic of my 
apps and not on how to correct mistakes/leftovers in the design of basic 
controls I buy to use. Even more so by spending time playing around with 
protected properties or, hacking the code I bought to use. IMO
 
BTW I have to thank once again all the great contributors to this forum. 
Without their excellent help, I wouldn't have gone far enough in my work. 

Thanks all
George


--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 Isn't that an oxymoron?
 
 A rollover highlight is a change of color isn't it? If the header retained 
 the same color there would be no highlight.
 
 If you could skin/style the rollovercolor to be the same as the 
 nonrollovercolor then that should achieve the required result. Of course, I 
 have no idea whether skinning/styles allows that as I have not tried it.
 
 
 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
  
  He's looking to prevent the roll-over highlight of the DataGrid header. 
  For that object, you can't skin or change the style; except for the
  color.
  
  -TH
  
  --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
  
   Also, skinning should work. Check out http://www.munkiihouse.com/?p=14
  
  
   --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
   
   
Monkey patching DataGridHeader works. Just copy DataGridHeader.as
  into
mx/controls/dataGridClasses (you'll have to create these folders in
  the
src folder of your project), comment out the drawHeaderIndicator
  line in
the mouseOverHandler function.
   
-TH
   
--- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:


 Looks like it's drawn in the mouseOverHandler function in
 DataGridHeader.as:

 drawHeaderIndicator(s, r.x, 0, visibleColumns[i].width,
 cachedHeaderHeight - 0.5, getStyle(rollOverColor), r);

 You'll have to try to extend DataGrid and DataGridHeader, or
monkeyPatch
 DataGridHeader.

 -TH

 --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote:
 
 
  Ha, no that doesn't help, but things, i want to remove the mouse
Over
 highlight fill. Not the header column colors.
 
  Thanks
  Patrick
 
 
  --- In flexcoders@yahoogroups.com, valdhor valdhorlists@
  wrote:
  
   Try...
  
   mx:DataGrid headerColors={[0xFF, 0xE6E6E6]}/
  
   or
  
   DataGrid's headerStyleName
  
   or
  
   DataGridColumn's headerRenderer
  
  
   --- In flexcoders@yahoogroups.com, djhatrick djhatrick@
  wrote:
   
but how do I remove the header highlight fill from a
  datagrid?
   
DatagridHeader is nearly impossible to override, i want to
  kill
 that f**n fill.
   
It's driving me crazy, it's a all bright white...
   
BTW, looping over the children in createChildren and
  manually
 setting focusAlpha to 0 does not help.
   
Any help there.
   
Thanks,
Patrick
   
  
 

   
  
 





[flexcoders] Re: Sorry i am not a rocket scientist...

2009-05-15 Thread grg_blls
Hi Patrick,

I think what you ask is something like what you get if you turn SortableColumns 
in ADG to false, along with the sortable property of any single column to false.

(Of course then you don't have sortable columns.. and no mouseOver highlights) 
thanks
George


--- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote:

 but how do I remove the header highlight fill from a datagrid?
 
 DatagridHeader is nearly impossible to override, i want to kill that f**n 
 fill.
 
 It's driving me crazy, it's a all bright white...
 
 BTW, looping over the children in createChildren and manually setting 
 focusAlpha to 0 does not help.
 
 Any help there.
 
 Thanks,
 Patrick





[flexcoders] CollectionEvent and Hierarchical Data ArrayCollection

2009-05-11 Thread grg_blls
Hi all,

Is it that adding an event listener as:
addEventListener(CollectionEvent.COLLECTION_CHANGE to ArrayCollection 
representing hierarchical data, will not work?

This works fine in a flat data structure acting as dataProvider to ADG, but I 
can't get it work if this data structure is hierarchical..

Any confirmation?

Thanks all
George



[flexcoders] Re: Advanced Data Grid - A working Demo for LockedRowCount property needed

2009-05-06 Thread grg_blls
Thank you,
I hadn't look there but that explains..very clearly. I can see the logical 
difficulty to define this property while with hierarchical data. 
Anyway you helped me very much out of this. 

And I have to express my thanks to all the contributors of this great forum of 
dedicated Flex developers for all the help they offer.

Thanks all 
George

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 Basically, lockedRowCount does not do anything if the AdvancedDataGrid is 
 displaying hierachical data.
 
 If you have a look at the AdvancedDataGrid code you will see this comment 
 before the get lockedRowCount() function:
 
 // if dataProvider is hierarchical, return 0
 // because lockedRowCount has no effect in a hierarchical display
 
 
 --- In flexcoders@yahoogroups.com, grg_blls grg_blls@ wrote:
 
  Hi,
  
  thanks for the working example. Your example displays a flat Data type, 
  though I was trying to have LockedRowCount property work with Hierarchical 
  Data type displayed, without success.
  
  Is it that AdvancedDataGrid doesn't support this property if displaying 
  hierachical data (my prime reason for using this control in place of the 
  normal DataGrid).
  Is this really so? 
  (I couldn't find any documented limitations as to the application of this 
  particular property)
  Please clarify.
  
  Thanks again, 
  George
  
   
  
  --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
  
   Sure...
   
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script
![CDATA[
[Bindable] private var dp:Array = [
{ symbol: ADBE, name: Adobe Systems Inc., price: 49.95
   },
{ symbol: BETA, name: Beta Inc., price: 19.95 },
{ symbol: CSCO, name: Cisco Inc., price: 45.95 },
{ symbol: DELL, name: Dell Inc., price: 34.95 },
{ symbol: EXPD, name: Expedia Inc., price: 39.95 },
{ symbol: FOXS, name: Fox Sports Inc., price: 9.95 },
{ symbol: GOOG, name: Google Inc., price: 139.95 },
{ symbol: ICON, name: Icon Inc., price: 32.95 },
{ symbol: JUNI, name: Juniper Inc., price: 23.95 },
{ symbol: KLA, name: KLA Tencor Inc., price: 37.95 },
{ symbol: MACR, name: Macromedia Inc., price: 39.95 },
{ symbol: MSFT, name: Microsoft Corp., price: 25.95 },
{ symbol: IBM, name: IBM Corp., price: 42.55 }
];
]]
/mx:Script
mx:AdvancedDataGrid dataProvider={dp} rowCount=9
   lockedRowCount=2
mx:columns
mx:AdvancedDataGridColumn headerText=Name
   dataField=name width=200/
mx:AdvancedDataGridColumn headerText=Symbol
   dataField=symbol width=100/
mx:AdvancedDataGridColumn headerText=Price
   dataField=price width=100/
/mx:columns
/mx:AdvancedDataGrid
   /mx:Application
   
   
   --- In flexcoders@yahoogroups.com, grg_blls grg_blls@ wrote:
   
Hi all,
   
Is there any working demo example in Flex 3, of a AdvancedDataGrid
   with LockedRowCount property set and capable of demonstrating its
   functionality?
   
Any help will be greatly appreciated.
Thanks in advance
   
George
   
  
 





[flexcoders] Re: Advanced Data Grid - A working Demo for LockedRowCount property needed

2009-05-05 Thread grg_blls
Hi,

thanks for the working example. Your example displays a flat Data type, though 
I was trying to have LockedRowCount property work with Hierarchical Data type 
displayed, without success.

Is it that AdvancedDataGrid doesn't support this property if displaying 
hierachical data (my prime reason for using this control in place of the normal 
DataGrid).
Is this really so? 
(I couldn't find any documented limitations as to the application of this 
particular property)
Please clarify.

Thanks again, 
George

 

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 Sure...
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Script
  ![CDATA[
  [Bindable] private var dp:Array = [
  { symbol: ADBE, name: Adobe Systems Inc., price: 49.95
 },
  { symbol: BETA, name: Beta Inc., price: 19.95 },
  { symbol: CSCO, name: Cisco Inc., price: 45.95 },
  { symbol: DELL, name: Dell Inc., price: 34.95 },
  { symbol: EXPD, name: Expedia Inc., price: 39.95 },
  { symbol: FOXS, name: Fox Sports Inc., price: 9.95 },
  { symbol: GOOG, name: Google Inc., price: 139.95 },
  { symbol: ICON, name: Icon Inc., price: 32.95 },
  { symbol: JUNI, name: Juniper Inc., price: 23.95 },
  { symbol: KLA, name: KLA Tencor Inc., price: 37.95 },
  { symbol: MACR, name: Macromedia Inc., price: 39.95 },
  { symbol: MSFT, name: Microsoft Corp., price: 25.95 },
  { symbol: IBM, name: IBM Corp., price: 42.55 }
  ];
  ]]
  /mx:Script
  mx:AdvancedDataGrid dataProvider={dp} rowCount=9
 lockedRowCount=2
  mx:columns
  mx:AdvancedDataGridColumn headerText=Name
 dataField=name width=200/
  mx:AdvancedDataGridColumn headerText=Symbol
 dataField=symbol width=100/
  mx:AdvancedDataGridColumn headerText=Price
 dataField=price width=100/
  /mx:columns
  /mx:AdvancedDataGrid
 /mx:Application
 
 
 --- In flexcoders@yahoogroups.com, grg_blls grg_blls@ wrote:
 
  Hi all,
 
  Is there any working demo example in Flex 3, of a AdvancedDataGrid
 with LockedRowCount property set and capable of demonstrating its
 functionality?
 
  Any help will be greatly appreciated.
  Thanks in advance
 
  George
 





[flexcoders] Advanced Data Grid - A working Demo for LockedRowCount property needed

2009-05-04 Thread grg_blls
Hi all,

Is there any working demo example in Flex 3, of a AdvancedDataGrid with 
LockedRowCount property set and capable of demonstrating its functionality?

Any help will be greatly appreciated.
Thanks in advance

George



[flexcoders] Re: Issue with Modules unloading...

2009-03-26 Thread grg_blls
Hi all,

I have a similar thread (A module loading issue still open in the forum) of 
the issue I have while loading modules...(!)
As this issue here is obviously in the same context, I did check with my 
application the memory usage after unloading any previously loaded module. 
Nothing seems to get garbage collected and no memory is released - as was 
already described here. Loading any other module next, memory usage grows 
accordingly. 

I post this as my modules don't contain any animations, just plain vanilla 
TabNavigators, Accordions, Canvas, other regular controls stuff, plus some gif 
images. Whatever I tried (including what was described here in the beggining of 
the thread) memory usage just keeps growing. 
I only hope for the new version handling modules in a proper way, as I can't 
see anything that can be done with current version.

Thanks all
George

--- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... 
wrote:

 Alex, 
  
 I have a question - the bugbase entry referred to by Vito focuses on
 animation - what about plain jane embeded images?  Also, is there a
 general timeframe for Flex 3.4?
  
 Jeff
 
   -Original Message-
   From: flexcoders@yahoogroups.com
 [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui
   Sent: Tuesday, March 24, 2009 2:05 PM
   To: flexcoders@yahoogroups.com
   Subject: RE: [flexcoders] Issue with Modules unloading...
   
   
 
   It is scheduled for Flex 3.4
 

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

 
   From: flexcoders@yahoogroups.com
 [mailto:flexcod...@yahoogroups.com] On Behalf Of cuttenv
   Sent: Tuesday, March 24, 2009 2:51 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Issue with Modules unloading...
 

 
   Hello,
   I had an issue with Modules unloading, especially ones that had
 embedded images or animations playing in them. I am still convinced that
 ANY Module has a hard time being unloaded from memory. I was wondering
 if anyone had a sound solution to fixing this issue or ran into it
 before. I also wanted to encourage you guys to vote on this issue
 because it has been open since last August. I am pretty disappointed
 with the current state of Modules in Flex, but I hope it can be fixed
 soon.
   http://bugs.adobe.com/jira/browse/SDK-16613
   -Vito





[flexcoders] Re: using lockedColumnCount doesnt freez my column..

2009-03-26 Thread grg_blls
Hi,

This is an old issue. I have no answer but I can point you to the following 
older posts, 
(message numbers: 130147, 129920, 129917, 129219, 118902)

I hope this will be working in the new version.

Thank you
George

--- In flexcoders@yahoogroups.com, yossi.baram yossi.ba...@... wrote:

 Hi,
 I set lockedColumnCount=1 in my AdvancedDataGrid tag and I can see the 
 first column is marked with vertical line but when I Horizontally scroll its 
 not freeded and remains inplace :(
 The first column dissapear with the rest of the other columns,
 What am I doing wrong?
 
 Thanks
 
 Jo





[flexcoders] Re: A ModuleLoader issue

2009-03-21 Thread grg_blls
Hi all, hi Rob.

As I work on the issue approaching it from a number of angles (also examining a 
future Deep Linking), I feel necessary to detail on your replies:

According to 
ADOBE FLEX 3 Adobe Flex 3 Developer Guide [page 1089]

You can disable history management for an entire application by setting the 
value of the historyManagementEnabled property to false on the mx:Application 
tag. When you initialize the BrowserManager to use deep linking, Flex does this 
for you.

I ve done that as in: 
mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml;
backgroundColor=0xe8e8e8 paddingTop=0 
initialize=myInit(); historyManagementEnabled=false 

This setting of property is simply disregarded and it keeps registering 
components like Accordion and TabNavigator in the HistoryManager.as 
This seems a very weird thing!

Any insight please as to the reason of this behaviour?
Thanks 
George

PS1: I 've followed Tracy's advice with the html wrapper to no success. Thank 
you Tracy anyway.

PS2: I keep on with Alex's suggestion, as I see no way to turn off the History 
Manager (at application level, or at component level)- it just keeps turned on 
always. 
On the other hand from 
Singleton.as
/**
 *  @private
 *  Returns the singleton instance of the implementation class
 *  that was registered for the specified interface,
 *  by looking up the class in the registry
 *  and calling its getInstance() method.
 *
 *  This method should not be called at static initialization   time,
 *  because the factory class may not have called   registerClass() 
yet.
 */
This seems to be my exact problem




--- In flexcoders@yahoogroups.com, rob_mcmichael rob_mcmich...@... wrote:

 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  See the modules presentation on my blog.  That's the shared-code problem.  
  Singletons need to be in the main app or a shared-code module.
  
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
  
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
  Behalf Of grg_blls
  Sent: Wednesday, March 18, 2009 4:37 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] A ModuleLoader issue
  
  
  Hi all,
  
  I have the following problem with my current development. A client is 
  loging in the system either as customer or admin and accordingly the main 
  application through module manager loads either module1 or module2.
  If a client is logged as customer (i.e. module1 is loaded), he is offered 
  a number of choices, leading to loading one of module1a, module1b, etc.
  
  In every case the procedure is a unload previous/load next module through:
  
  public function createModule(m:ModuleLoader, s:String):void{
  m.url = s;
  m.loadModule();
  }
  
  public function removeModule(m:ModuleLoader):void {
  m.unloadModule();
  }
  
  Finally that client is logged out when finished.
  
  Now if he does a new login as a customer, module1 loads and offers again 
  the customers options, but if he tries the same option (which leads to 
  loading module1a), an error is thrown, with the following message from 
  the Flash Player:
  
  An ActionScript error has occured
  TypeError: Error #1034: Type Coercion failed: cannot convert 
  mx.managers::historymanageri...@683d219 to mx.managers.IHistoryManager.
  at mx.managers::HistoryManager$/get 
  impl()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\HistoryManager.as:96]
  at 
  mx.managers::HistoryManager$/register()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\HistoryManager.as:134]
  at 
  mx.containers::ViewStack/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\ViewStack.as:649]
  at 
  mx.containers::TabNavigator/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\TabNavigator.as:504]
  at 
  mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5670]
  at 
  mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:519]
  at 
  mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:639]
  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]
  
  Any ideas, as to the nature of it and where to look fixing?
  Thanks all in advance
  
  George
 
 
 Try putting this at the start of your module:
 historyManagementEnabled = false;
 
 It worked for me, but that was with a sub application (may be the same thing).
 
 Rob





[flexcoders] Re: A ModuleLoader issue

2009-03-19 Thread grg_blls
Hi Alex, hi Rob,

thanks both for your replies. 

Rob I 've tried your suggestion but it didn't help.. So after visiting Alex's 
blog, doing some more reading and further invastigation (debugging) of my 
problem, I have come now to the following:
- Alex is right about the Singletons. I traced the exact step where the app 
throws that error as in the following code from HistoryManager.as:

private static function get impl():IHistoryManager
{
if (!_impl)
{
   _impl = IHistoryManager(
   Singleton.getInstance(mx.managers::IHistoryManager));
}
return _impl;
}

Now as I described in the first place, I was unloading/loading modules by the 
standard procedure (and I had the problem). Running the loop as desribed 
initially, when the flow reaches the line if (!_impl), the condition calculates 
true and goes in to update _impl, and so throws the error (the second time it 
runs). 

If instead I don't unload module1a the first time client (role=Customer) is 
logged out and then he runs again this option that loads again module1a, the if 
(!_impl) condition, comes false, jumps to return _impl; line, and all goes well 
- no error thrown..

This proves the point Alex said, but now I wonder what good is there to have a 
module loaded all the time just in case the client decides to run this option 
again.. before actually closing his browser.. I believe this defeats the 
purpose and I rather have to consider re-writting that module1a in a totally 
different style.

I hope this is clear enough.. What is your advise ?

Thank you again for helping me gaining insight in this esoteric problem..

George  
 
--- In flexcoders@yahoogroups.com, rob_mcmichael rob_mcmich...@... wrote:

 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  See the modules presentation on my blog.  That's the shared-code problem.  
  Singletons need to be in the main app or a shared-code module.
  
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
  
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
  Behalf Of grg_blls
  Sent: Wednesday, March 18, 2009 4:37 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] A ModuleLoader issue
  
  
  Hi all,
  
  I have the following problem with my current development. A client is 
  loging in the system either as customer or admin and accordingly the main 
  application through module manager loads either module1 or module2.
  If a client is logged as customer (i.e. module1 is loaded), he is offered 
  a number of choices, leading to loading one of module1a, module1b, etc.
  
  In every case the procedure is a unload previous/load next module through:
  
  public function createModule(m:ModuleLoader, s:String):void{
  m.url = s;
  m.loadModule();
  }
  
  public function removeModule(m:ModuleLoader):void {
  m.unloadModule();
  }
  
  Finally that client is logged out when finished.
  
  Now if he does a new login as a customer, module1 loads and offers again 
  the customers options, but if he tries the same option (which leads to 
  loading module1a), an error is thrown, with the following message from 
  the Flash Player:
  
  An ActionScript error has occured
  TypeError: Error #1034: Type Coercion failed: cannot convert 
  mx.managers::historymanageri...@683d219 to mx.managers.IHistoryManager.
  at mx.managers::HistoryManager$/get 
  impl()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\HistoryManager.as:96]
  at 
  mx.managers::HistoryManager$/register()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\HistoryManager.as:134]
  at 
  mx.containers::ViewStack/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\ViewStack.as:649]
  at 
  mx.containers::TabNavigator/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\TabNavigator.as:504]
  at 
  mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5670]
  at 
  mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:519]
  at 
  mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:639]
  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]
  
  Any ideas, as to the nature of it and where to look fixing?
  Thanks all in advance
  
  George
 
 
 Try putting this at the start of your module:
 historyManagementEnabled = false;
 
 It worked for me, but that was with a sub application (may be the same thing).
 
 Rob





[flexcoders] A ModuleLoader issue

2009-03-18 Thread grg_blls
Hi all,

I have the following problem with my current development. A client is loging in 
the system either as customer or admin and accordingly the main application 
through module manager loads either module1 or module2. 
If a client is logged as customer (i.e. module1 is loaded), he is offered a 
number of choices, leading to loading one of module1a, module1b, etc. 

In every case the procedure is a unload previous/load next module through:  

public function createModule(m:ModuleLoader, s:String):void{
  m.url = s;
  m.loadModule();
}

public function removeModule(m:ModuleLoader):void {
  m.unloadModule();
}

Finally that client is logged out when finished. 

Now if he does a new login as a customer, module1 loads and offers again the 
customers options, but if he tries the same option (which leads to loading 
module1a), an error is thrown, with the following message from the Flash 
Player:

An ActionScript error has occured
TypeError: Error #1034: Type Coercion failed: cannot convert 
mx.managers::historymanageri...@683d219 to mx.managers.IHistoryManager.
at mx.managers::HistoryManager$/get 
impl()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\HistoryManager.as:96]
at 
mx.managers::HistoryManager$/register()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\HistoryManager.as:134]
at 
mx.containers::ViewStack/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\ViewStack.as:649]
at 
mx.containers::TabNavigator/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\TabNavigator.as:504]
at 
mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5670]
at 
mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:519]
at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:639]
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]

Any ideas, as to the nature of it and where to look fixing?
Thanks all in advance

George



[flexcoders] Time stamping a user Logout

2009-02-18 Thread grg_blls
Hi all,

I have concluded a sample Flex application where a user logs in (or 
registers) in the application. 

I use the Tomcat servlet container plus BlazeDS RPC component and 
Hibernate persistence to connect to MySQL database. 

A new user first registers by filling the Registration form. The 
database is updated for First Creation Timestamp, along with user's 
UserName and Password. 

A returning user fills a (similar) Login form. The database is 
updated for Login Timestamp. When the user does a normal Logout, the 
database is updated with Logout Timestamp. On User's Logout the 
User_Loged session time is summed in UserTotalLoged time.

My problem is that I need dispatch/listen (?) an event in an abrupt 
case, like the user instead of doing a normal logout simply closes 
the browser, or the client/server connection is just lost. Then I 
have to update the database that the user status is Logout. 

I hope this description is clear enough for some indications/help.

Thank you all
George
   



[flexcoders] Re: Time stamping a user Logout

2009-02-18 Thread grg_blls
Hi Laurent.
Thank you for a quick reply. I had this (second) timeout option in 
mind and it's too static in the scope of my application. Then the 
ping procedure might be an idea. 
But what I have really in mind is a more dynamic asynchronous 
procedure. One like when the web connection is broken for any reason. 
I will have to delve more into this...

Thank you
George 

--- In flexcoders@yahoogroups.com, Laurent Cozic pogopix...@... 
wrote:

 You could make the app ping the server every 5 minutes. Then if the 
server doesn't receive the ping, assume that the user closed the 
browser and log him out.
 
 Another simpler solution would be to put a timeout on the session.
 
 
 --
 Laurent Cozic
 
 Flash, Flex and Web Application development
 http://pogopixels.com
 
 --- On Wed, 2/18/09, grg_blls grg_b...@... wrote:
 From: grg_blls grg_b...@...
 Subject: [flexcoders] Time stamping a user Logout
 To: flexcoders@yahoogroups.com
 Date: Wednesday, February 18, 2009, 1:18 PM
 
 
 
 
 
 
 
 
 
 
 
 
 Hi all,
 
 
 
 I have concluded a sample Flex application where a user logs in (or 
 
 registers) in the application. 
 
 
 
 I use the Tomcat servlet container plus BlazeDS RPC component and 
 
 Hibernate persistence to connect to MySQL database. 
 
 
 
 A new user first registers by filling the Registration form. The 
 
 database is updated for First Creation Timestamp, along with user's 
 
 UserName and Password. 
 
 
 
 A returning user fills a (similar) Login form. The database is 
 
 updated for Login Timestamp. When the user does a normal Logout, 
the 
 
 database is updated with Logout Timestamp. On User's Logout the 
 
 User_Loged session time is summed in UserTotalLoged time.
 
 
 
 My problem is that I need dispatch/listen (?) an event in an abrupt 
 
 case, like the user instead of doing a normal logout simply closes 
 
 the browser, or the client/server connection is just lost. Then I 
 
 have to update the database that the user status is Logout. 
 
 
 
 I hope this description is clear enough for some indications/ help.
 
 
 
 Thank you all
 
 George





[flexcoders] Re: BlazeDS server environment configuration

2009-01-15 Thread grg_blls
Hi again,

following the information provided, I tried the tutorial Wesley 
provided, only the information in the article is of course rather 
sketchy - as the complete detailed description was provided in the 
source code used for that banner example. Unfortunatelly the sources 
provided are not available anymore (links, dowloads, et.c. don't 
work), as this article is outdated being 5 years old.

So I can't really make much out of this. On the other hand what is 
described in that old article is generally correct, and this is the 
way I know I have to proceed. Only I still have to look for something 
more up to day and detailed enough for me to study and adapt to my 
case.

Specifically, I look for an current BlazeDS/Tomcat/MySql environment 
setup detailed description for a Flex client connected to database by 
Remote Object procedures. Besides working examples, I still look for 
a book to read on the subject and documentation, in extend to BlazeDS 
developer's guide..

So while the question remains open and  have to wait for any other 
answer leading to some consice piece of info, I thank you both 
valdhor and Wesley for trying to help me.
 
George 

--- In flexcoders@yahoogroups.com, grg_blls grg_b...@... wrote:

 Hi again (and thanks for replying)
 
 I didn't say Wesley is not correct..On the contrary...
 As I have first to work it out and then see if I get any more 
 questions. (Obviously not having done this before, was the reason 
for 
 asking about documentation (or a cookbook) in the first place.
 
 Sofar I 've done a lot working with Flex for the client and the 
 business logic of my app, having Hsqldb as a basic database. I also 
 feel very satisfied with Flex documentation and on-line help (this 
 forum included) that helped me so much sofar.
 
 So I still consider any additional hint towards a good book on 
 BlazeDS, covering both some examplary applications as well as 
 pointing to differences to say JBOSS for instance. This as I want 
to 
 go a bit deeper into the subject and understand better.. some 
aspects.
 
 Thank you all
 George
 
 
 --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
 
  Wesley is correct - This is a Java question.
  
  You already have the BlazeDS part set up and working. All you 
need 
 to
  do is change the database access in Java.
  
  I would suggest following the tutorial Wesley provided and then 
 apply
  the knowledge gained to your project.
  
  From what I can see this entails adding the driver for the MySQL
  connection; removing the flex.samples.ConnectionHelper stuff and
  adding the dbHandler handler class from the tutorial.
  
  
  --- In flexcoders@yahoogroups.com, grg_blls grg_blls@ wrote:
  
   --- In flexcoders@yahoogroups.com, Wesley Acheson 
   wesley.acheson@ wrote:
   
Really thats more of a java question then a flex one. for 
using 
   mysql
and tomcat try


 http://www.opensourcetutorials.com/tutorials/Databases/MySQL/tomcat-
   and-mysql/page2.html
   
   
   Thank you Wesley for a quick reply.
   But what I am asking has to do with BlazeDS (how to set up its 
   environment) in conjunction to the MySql database environment 
 plus 
   Tomcat environment. So this is more complicated than that. 
   
   You see I understand what to do with the Java classes needed 
and 
 that 
   I have to set up a Remote Object in mxml, and that I have to 
   configure how I connect to the service destination. (I have 
done 
 that 
   already while using the Hsqldb - and work just fine, by 
following 
 the 
   documentation available). Now I have to again with MySql, but I 
   missing a clear documentation..
   
   Then BlazeDS has to be set up properly to work with MySql under 
 the 
   servlet container (Tomcat). Mainly this connection will serve 
 user 
   login procedures, so what will be in that database will be a 
 number 
   of users and their login data. (I mean an apriori unknown 
number 
 of 
   users)
   
   Thank you 
   George
  
 





[flexcoders] BlazeDS server environment configuration

2009-01-14 Thread grg_blls
Hi all,

I have a generic question. 

I am using Flex plug-in to Eclipse, developing the client side of an 
application. I also use Tomcat and BlazeDS on the server side. 
The development installation was done without any hassles and works 
fine. Also I don't have any problems with my development work, or the 
documentation available. 
The configuration I have is using Remote Object Component on the 
server side to get data from the database. For this I still use the 
database installed by the turn-key installer of BlazeDS (Hsqldb 
database supplied with samples in turn-key installer, though I use my 
own schema and done my Java classes for the purpose).
 
I have to change now from Hsqldb to MySQL and also adapt/change the 
server installation environment to this end, i.e: still be using 
Tomcat and BlazeDS but with MySQL instead of Hsqldb. To this end I 
need more complete guidance info than what's in the BlazeDS Developer 
Guide.

Is there any complete book/documentation suitable to the purpose? Any 
cookbook? 
Any help on this is greatly appreciated

thank you all in advance for helping me
George



[flexcoders] Re: BlazeDS server environment configuration

2009-01-14 Thread grg_blls
--- In flexcoders@yahoogroups.com, Wesley Acheson 
wesley.ache...@... wrote:

 Really thats more of a java question then a flex one. for using 
mysql
 and tomcat try
 
 http://www.opensourcetutorials.com/tutorials/Databases/MySQL/tomcat-
and-mysql/page2.html


Thank you Wesley for a quick reply.
But what I am asking has to do with BlazeDS (how to set up its 
environment) in conjunction to the MySql database environment plus 
Tomcat environment. So this is more complicated than that. 

You see I understand what to do with the Java classes needed and that 
I have to set up a Remote Object in mxml, and that I have to 
configure how I connect to the service destination. (I have done that 
already while using the Hsqldb - and work just fine, by following the 
documentation available). Now I have to again with MySql, but I 
missing a clear documentation..

Then BlazeDS has to be set up properly to work with MySql under the 
servlet container (Tomcat). Mainly this connection will serve user 
login procedures, so what will be in that database will be a number 
of users and their login data. (I mean an apriori unknown number of 
users)

Thank you 
George
 
  




[flexcoders] Re: BlazeDS server environment configuration

2009-01-14 Thread grg_blls
Hi again (and thanks for replying)

I didn't say Wesley is not correct..On the contrary...
As I have first to work it out and then see if I get any more 
questions. (Obviously not having done this before, was the reason for 
asking about documentation (or a cookbook) in the first place.

Sofar I 've done a lot working with Flex for the client and the 
business logic of my app, having Hsqldb as a basic database. I also 
feel very satisfied with Flex documentation and on-line help (this 
forum included) that helped me so much sofar.

So I still consider any additional hint towards a good book on 
BlazeDS, covering both some examplary applications as well as 
pointing to differences to say JBOSS for instance. This as I want to 
go a bit deeper into the subject and understand better.. some aspects.

Thank you all
George


--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 Wesley is correct - This is a Java question.
 
 You already have the BlazeDS part set up and working. All you need 
to
 do is change the database access in Java.
 
 I would suggest following the tutorial Wesley provided and then 
apply
 the knowledge gained to your project.
 
 From what I can see this entails adding the driver for the MySQL
 connection; removing the flex.samples.ConnectionHelper stuff and
 adding the dbHandler handler class from the tutorial.
 
 
 --- In flexcoders@yahoogroups.com, grg_blls grg_blls@ wrote:
 
  --- In flexcoders@yahoogroups.com, Wesley Acheson 
  wesley.acheson@ wrote:
  
   Really thats more of a java question then a flex one. for using 
  mysql
   and tomcat try
   
   
http://www.opensourcetutorials.com/tutorials/Databases/MySQL/tomcat-
  and-mysql/page2.html
  
  
  Thank you Wesley for a quick reply.
  But what I am asking has to do with BlazeDS (how to set up its 
  environment) in conjunction to the MySql database environment 
plus 
  Tomcat environment. So this is more complicated than that. 
  
  You see I understand what to do with the Java classes needed and 
that 
  I have to set up a Remote Object in mxml, and that I have to 
  configure how I connect to the service destination. (I have done 
that 
  already while using the Hsqldb - and work just fine, by following 
the 
  documentation available). Now I have to again with MySql, but I 
  missing a clear documentation..
  
  Then BlazeDS has to be set up properly to work with MySql under 
the 
  servlet container (Tomcat). Mainly this connection will serve 
user 
  login procedures, so what will be in that database will be a 
number 
  of users and their login data. (I mean an apriori unknown number 
of 
  users)
  
  Thank you 
  George
 





[flexcoders] Advanced Data Grid - LockedRowCount property

2008-11-10 Thread grg_blls
Is there actual evidence that this property lockedRowCount actually 
exists (or has any effect) in Advanced Data Grid (of AS3 stable)?

As I have posted this question before (and others did before me) but 
got no reply, I wonder what is the reason... 

Contrary to the above statements, the other lockedColumnCount works 
as adverised... So what gives with this one? Was it forgotten by Adobe?

Any answer pro or con its existance, will be much appreciated.
Thanks in advance
George 




[flexcoders] Re: lockedRowCount won't set

2008-11-10 Thread grg_blls
Hi,
this is not a solution to your problem, that happens to be mine as 
well! 
I posted the same question on the Oct 30 - having missed your post - 
I actually came to the same findings you have, in my project.
As there was no answer to your post, also there are no answers to 
mine. 
Testing exhaustivelly my code with the adg, I went on to test 
with standard code examples provided with the documentation, only 
adding this lockedRowCount=2 to the mxml code. The result was the 
same as with my more complex code, that I use itemEditors as 
Renderers. It had absolutelly no effect as if that was not set. 
Debugging the same way as you describe in your post, it always report 
a value of 0. To further detail the situation, I also tested the 
lockedColumnCount property (while I don't need it set) that proved 
working as claimed.
 
So I will put it again: Is this property 'lockedRowCount' actually 
working? 
Is there anyone who ever used this property ? and how? 
Please shed some light, if you know. Your help will be much 
appreciated.
Thanks
George

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

 I have an advanceddatagrid that gets created in actionscript.
 Everything works fine, it comes up with all the properties and data
 set correctly, however when I try to set the lockedRowCount to
 anything  0, it doesn't get set.
 
 So I have something like...
 
 dg.lockedRowCount = 2;
 
 and if I set a break point and debug, it has lockedRowCount = 0
 
 Any idea what could be going on here, I even tried setting it in a
 function that gets called at the very end after everything else is
 done, and it still doesn't work.
 
 I'd really appreciate any help.





[flexcoders] Re: mouseOver and mouseOut

2008-11-05 Thread grg_blls
Obviously because the text is over the HBox. In that sense the 
mouse isn't hitting the HBox area when over the text. Moving around 
in the HBox triggers the mouseOut event. IMO.
Hope this is clear
Tnx
George

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

 code:
 
 mx:HBox
 mouseOver=moCanvas.visible=true;
 mouseOut=moCanvas.visible=false;
 
 
 mx:Text text=test /
 mx:Canvas id=moCanvas width=10 height=10 visible=false
 backgroundColor=0x00 /
 
 /mx:HBox
 
 
 Obviously simplified, basically I am interested in finding out why 
the
 mouseOut event is triggered when I mouse over different parts of 
the HBox.
 
 For instance, when I mouseOver the text, it shows the moCanvas, 
when I
 mouse off the text but stay in the HBox it hides the moCanvas...
 
 Any ideas?





[flexcoders] Re: Advanced Data Grid with Grouped Columns

2008-11-04 Thread grg_blls
Hi Tom, hi all.
Thanks for coming back and please excuse me for not including the RTE 
message in the first place.
Well I have it here now.
Thanks in advance for any reply
George

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at 
mx.controls::AdvancedDataGridBaseEx/http://www.adobe.com/2006/flex/mx/
internal::getMeasuringRenderer()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\AdvancedDataGridBaseEx.as:2001]
at 
mx.controls::AdvancedDataGridBaseEx/adjustVerticalScrollPositionDownwa
rd()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\AdvancedDataGridBaseEx.as:2541]
at mx.controls::AdvancedDataGridBaseEx/configureScrollBars()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\AdvancedDataGridBaseEx.as:2416]
at mx.controls.listClasses::AdvancedListBase/set 
verticalScrollPosition()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\listClasses\AdvancedListBase.as:1198]
at mx.controls::AdvancedDataGridBaseEx/set 
verticalScrollPosition()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\AdvancedDataGridBaseEx.as:942]
at mx.controls::AdvancedDataGrid/set verticalScrollPosition()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\AdvancedDataGrid.as:1149]
at mx.controls::AdvancedDataGridBaseEx/scrollHandler()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\AdvancedDataGridBaseEx.as:2317]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as
:9051]
at 
mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx
/internal::dispatchScrollEvent()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\scrollClas
ses\ScrollBar.as:1257]
at mx.controls.scrollClasses::ScrollThumb/mouseMoveHandler()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\scrollClas
ses\ScrollThumb.as:219]





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

 On Thursday 30 Oct 2008, grg_blls wrote:
  vertical scroll, it always throws a RTE.
 
 Guess: It's your customer editors.
 As this code self-evidently won't run as-is, and you've not 
included the full 
 text of the RTE, it's hard to help.
 
 -- 
 Tom Chiverton
 Helping to dynamically e-enable sticky turn-key users
 
 
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at Halliwells LLP, 3 Hardman Square, 
Spinningfields, Manchester, M3 3EB.  A list of members is available 
for inspection at the registered office. Any reference to a partner 
in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Re: Advanced Data Grid with Grouped Columns

2008-11-04 Thread grg_blls
Hi again,

As it seems by another RTE message, there are more ways to crash the 
adg while using Grouped Columns. (The previous posted RTE is thrown 
inconsistently while playing with the vertical scroll bar)
The new RTE is thrown when the canvas container of the adg is 
vertically resized.
Any ideas?
Thank you all for any replies.
George

The new RTE (while resizing the container)

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at 
mx.controls::AdvancedDataGridBaseEx/http://www.adobe.com/2006/flex/mx/
internal::getMeasuringRenderer()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\AdvancedDataGridBaseEx.as:2001]
at 
mx.controls::AdvancedDataGridBaseEx/adjustVerticalScrollPositionDownwa
rd()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\AdvancedDataGridBaseEx.as:2541]
at mx.controls::AdvancedDataGridBaseEx/configureScrollBars()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\AdvancedDataGridBaseEx.as:2416]
at mx.controls.listClasses::AdvancedListBase/updateDisplayList
()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\listClasses\AdvancedListBase.as:3512]
at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\AdvancedDataGridBaseEx.as:1758]
at mx.controls::AdvancedDataGrid/updateDisplayList()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\AdvancedDataGrid.as:5924]
at 
mx.controls.listClasses::AdvancedListBase/validateDisplayList()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
s\listClasses\AdvancedListBase.as:3071]
at mx.managers::LayoutManager/validateDisplayList()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana
ger.as:602]
at mx.managers::LayoutManager/doPhasedInstantiation()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana
ger.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]


The first RTE (while using the vertical scroll bar)
--- In flexcoders@yahoogroups.com, grg_blls [EMAIL PROTECTED] wrote:

 Hi Tom, hi all.
 Thanks for coming back and please excuse me for not including the 
RTE 
 message in the first place.
 Well I have it here now.
 Thanks in advance for any reply
 George
 
 TypeError: Error #1009: Cannot access a property or method of a 
null 
 object reference.
   at 
 
mx.controls::AdvancedDataGridBaseEx/http://www.adobe.com/2006/flex/mx/
 internal::getMeasuringRenderer()
 
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
 s\AdvancedDataGridBaseEx.as:2001]
   at 
 
mx.controls::AdvancedDataGridBaseEx/adjustVerticalScrollPositionDownwa
 rd()
 
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
 s\AdvancedDataGridBaseEx.as:2541]
   at mx.controls::AdvancedDataGridBaseEx/configureScrollBars()
 
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
 s\AdvancedDataGridBaseEx.as:2416]
   at mx.controls.listClasses::AdvancedListBase/set 
 verticalScrollPosition()
 
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
 s\listClasses\AdvancedListBase.as:1198]
   at mx.controls::AdvancedDataGridBaseEx/set 
 verticalScrollPosition()
 
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
 s\AdvancedDataGridBaseEx.as:942]
   at mx.controls::AdvancedDataGrid/set verticalScrollPosition()
 
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
 s\AdvancedDataGrid.as:1149]
   at mx.controls::AdvancedDataGridBaseEx/scrollHandler()
 
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\control
 s\AdvancedDataGridBaseEx.as:2317]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at mx.core::UIComponent/dispatchEvent()
 
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as
 :9051]
   at 
 
mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx
 /internal::dispatchScrollEvent()
 
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\scrollClas
 ses\ScrollBar.as:1257]
   at mx.controls.scrollClasses::ScrollThumb/mouseMoveHandler()
 
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\scrollClas
 ses\ScrollThumb.as:219]
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ 
 wrote:
 
  On Thursday 30 Oct 2008, grg_blls wrote:
   vertical scroll, it always throws a RTE.
  
  Guess: It's your customer editors.
  As this code self-evidently won't run

[flexcoders] Advanced Data Grid - LockedRowCount property

2008-10-30 Thread grg_blls
Hi all, 
I am developing with Flex Plug-In build 3.0.194161 in Eclipse 3.3.2 
build M20080221-1800. 
The application includes a Advanced Data Grid control, that I need to 
have the first row locked for vertical scrolling. 
Setting property lockedRowCount=1, though accepted - doesn't produce 
any RTE, does nothing also. I.e. has no effect and the adg scrolls as 
normally. 
Further, after setting the property value equal to 1 (as required in 
my case), this property value is reported back as 0 (doesn't seem to 
get set ever). 

Any ideas? 
Thanks all 
George 





[flexcoders] Advanced Data Grid with Grouped Columns

2008-10-30 Thread grg_blls
Hi all, 

using a ADG control and having set for groupedColumns. I also use 
ItemEditors set as Renderers. The mxml code snippet is attached. 

This works finw as long as I don't use the vertical scroll bar (if 
there are enough data rows in the adg to need scrolling). If I try 
vertical scroll, it always throws a RTE. 
This is not so, if I don't use groupedColumns. Then the adg and the 
application work perfectly stable. 

Any ideas? 
Thanks all 
George 

Attach Code 

mx:groupedColumns 
!-- column 0 -- 
mx:AdvancedDataGridColumn dataField=JobPlan headerText=Column 0 
id=adgC0 textAlign=center width=80 minWidth=80 
editable=false sortable=false / 
!-- column 1 -- 
mx:AdvancedDataGridColumn dataField=Doc width=61 minWidth=61 
id=adgC1 headerText=Column 1 editable=false textAlign=center 
sortable=false/ 
mx:AdvancedDataGridColumnGroup headerText=Grouped Columns  
!-- column 2 -- 
mx:AdvancedDataGridColumn  dataField=SPA width=61 minWidth=61 
id=adgC2 editable=true headerText=Start textAlign=left 
sortable=false itemEditor=NSStartP_  editorDataField=value / 
!-- column 3 -- 
mx:AdvancedDataGridColumn  dataField=EPA width=61 minWidth=61  
id=adgC3 editable=true headerText=End textAlign=left 
sortable=false itemEditor=NSEndP_ editorDataField=value  / 
/mx:AdvancedDataGridColumnGroup 
/mx:groupedColumns