[flexcoders] Vertical separator in MenuBar

2010-02-25 Thread creativepragmatic
Hello Everyone,

My client has requested that a MenuBar be separated by vertical lines in the 
way that is enabled by default in the LinkBar.  It does not look like this is 
possible using MenuBar styles.  Does anyone know another way to do it?

Thank you for any guidance,

Orville



[flexcoders] Re: Vertical separator in MenuBar

2010-02-25 Thread creativepragmatic
Thanks Alex.  I am still on Flex 3 so I wound up splitting each MenuBar item 
into its own MenuBar, enclosed them in an HBox and placed a VRule between each 
item.

Orville



[flexcoders] Re: Vertical separator in MenuBar

2010-02-25 Thread creativepragmatic
Your solution was a nice, proper method in contrast to my quick and dirty 
shortcut.  Thank you for your help James.

Orville



[flexcoders] Re: Assigning arrays...

2010-02-05 Thread creativepragmatic
I think using com.adobe.utils.ArrayUtil in as3corelib might also work.


--- In flexcoders@yahoogroups.com, Laurence lmacne...@... wrote:

 Well, it appears they both work...
 
 But my ItemRenderer (see my other post) is still not working correctly.  I 
 had assumed it wasn't working because I was passing it a reference to the 
 array that's used to populate the ComboBox, rather than passing it a new 
 array...  But no matter what I do, I can't get the comboBox drop-down to 
 render properly after a scroll...
 
 Very frustrating...
 
 
 --- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzinikos@ 
 wrote:
 
  ObjectUtil.copy() ?
  
  On Thu, Feb 4, 2010 at 6:10 PM, claudiu ursica the_braniak@wrote:
  
  
  
   Array.splice method (Array.concat or Array.join) check the docs I don;t
   know them by heart.
   C
  
   --
   *From:* Laurence LMacNeill@
   *To:* flexcoders@yahoogroups.com
   *Sent:* Thu, February 4, 2010 6:02:46 PM
   *Subject:* [flexcoders] Assigning arrays...
  
  
  
   I need to copy one array to another -- NOT copy a reference to the 
   array...
  
  
   For example:
   array1 = array2 will simply copy a reference to array2 into array1.
  
   I want to do something like this:
   array1 = new Array(array2) .
  
   Of course, that doesn't work... It simply creates a blank array that's
   pre-allocated to be the length of whatever array2's length was... (At 
   least
   that's what I think is going on...)
  
   Anyway -- how do I copy one array to another, without looping through the
   entire array?
  
  

  
  
  
  
  -- 
  Fotis Chatzinikos, Ph.D.
  Founder,
  LivinData Technologies
  www.styledropper.com
  Fotis.Chatzinikos@,
 





[flexcoders] Error: Repeater is not executing.

2010-02-02 Thread creativepragmatic
Hello Everyone,
I have been trying to get a Repeater to work since yesterday.  It works
the first time it has been loaded with data but the second time, it is
loaded, the following error results with the debugger higlighting a row
with the statement isHandlingEvent = false; in the watcherFired method
of the Binding class.  This happens whether the Repeater is updated by
setting its dataProvider or if a bound variable is changed.
Thank you in advance for any help,
Orville

Error: Repeater is not executing. at mx.core::Repeater/get
currentItem()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\c\
ore\Repeater.as:305] at
anonymous()[F:\Projects\Flex\PrintPortal\src\ch\printportal\site\view\\
Shop.mxml:362] at Function/http://adobe.com/AS3/2006/builtin::apply() at
mx.binding::Binding/wrapFunctionCall()[C:\autobuild\galaga\frameworks\pr\
ojects\framework\src\mx\binding\Binding.as:287] at
anonymous()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\b\
inding\RepeatableBinding.as:139] at
Function/http://adobe.com/AS3/2006/builtin::apply() at
mx.binding::Binding/wrapFunctionCall()[C:\autobuild\galaga\frameworks\pr\
ojects\framework\src\mx\binding\Binding.as:287] at
mx.binding::RepeatableBinding/recursivelyProcessIDArray()[C:\autobuild\g\
alaga\frameworks\projects\framework\src\mx\binding\RepeatableBinding.as:\
148] at
mx.binding::RepeatableBinding/execute()[C:\autobuild\galaga\frameworks\p\
rojects\framework\src\mx\binding\RepeatableBinding.as:105] at
mx.binding::BindingManager$/executeBindings()[C:\autobuild\galaga\framew\
orks\projects\framework\src\mx\binding\BindingManager.as:138] at
mx.core::Container/executeBindings()[C:\autobuild\galaga\frameworks\proj\
ects\framework\src\mx\core\Container.as:3252] at
mx.core::Container/createComponentFromDescriptor()[C:\autobuild\galaga\f\
rameworks\projects\framework\src\mx\core\Container.as:3726] at
mx.core::Container/createComponentsFromDescriptors()[C:\autobuild\galaga\
\frameworks\projects\framework\src\mx\core\Container.as:3536] at
mx.core::Container/createChildren()[C:\autobuild\galaga\frameworks\proje\
cts\framework\src\mx\core\Container.as:2632] at
mx.core::UIComponent/initialize()[C:\autobuild\galaga\frameworks\project\
s\framework\src\mx\core\UIComponent.as:5370] at
mx.core::Container/initialize()[C:\autobuild\galaga\frameworks\projects\\
framework\src\mx\core\Container.as:2569] at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAd\
ded()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\UICo\
mponent.as:5267] at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdde\
d()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\Contai\
ner.as:3348] at
mx.core::Container/addChildAt()[C:\autobuild\galaga\frameworks\projects\\
framework\src\mx\core\Container.as:2260] at
mx.core::Container/addChild()[C:\autobuild\galaga\frameworks\projects\fr\
amework\src\mx\core\Container.as:2183] at
mx.core::Container/createComponentFromDescriptor()[C:\autobuild\galaga\f\
rameworks\projects\framework\src\mx\core\Container.as:3724] at
mx.core::Repeater/createComponentFromDescriptor()[C:\autobuild\galaga\fr\
ameworks\projects\framework\src\mx\core\Repeater.as:734] at
mx.core::Repeater/createComponentsFromDescriptors()[C:\autobuild\galaga\\
frameworks\projects\framework\src\mx\core\Repeater.as:786] at
mx.core::Repeater/recreate()[C:\autobuild\galaga\frameworks\projects\fra\
mework\src\mx\core\Repeater.as:1075] at
mx.core::Repeater/execute()[C:\autobuild\galaga\frameworks\projects\fram\
ework\src\mx\core\Repeater.as:1095] at mx.core::Repeater/set
dataProvider()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\\
core\Repeater.as:402] at
anonymous()[F:\Projects\Flex\PrintPortal\src\ch\printportal\site\view\\
Shop.mxml:358] at Function/http://adobe.com/AS3/2006/builtin::call() at
mx.binding::Binding/innerExecute()[C:\autobuild\galaga\frameworks\projec\
ts\framework\src\mx\binding\Binding.as:375] at
Function/http://adobe.com/AS3/2006/builtin::apply() at
mx.binding::Binding/wrapFunctionCall()[C:\autobuild\galaga\frameworks\pr\
ojects\framework\src\mx\binding\Binding.as:287] at
mx.binding::Binding/execute()[C:\autobuild\galaga\frameworks\projects\fr\
amework\src\mx\binding\Binding.as:230] at
mx.binding::Binding/watcherFired()[C:\autobuild\galaga\frameworks\projec\
ts\framework\src\mx\binding\Binding.as:396] at
mx.binding::Watcher/notifyListeners()[C:\autobuild\galaga\frameworks\pro\
jects\framework\src\mx\binding\Watcher.as:299] at
mx.binding::PropertyWatcher/eventHandler()[C:\autobuild\galaga\framework\
s\projects\framework\src\mx\binding\PropertyWatcher.as:327] at
flash.events::EventDispatcher/dispatchEventFunction() at
flash.events::EventDispatcher/dispatchEvent() at
ch.printportal.site.model::ModelLocator/dispatchEvent()[F:\Projects\Flex\
\PrintPortal\src\ch\printportal\site\model\ModelLocator.as:73] at
ch.printportal.site.model::ModelLocator/set

[flexcoders] Re: RemoteObject question/mystery

2009-11-02 Thread creativepragmatic
 I know some of the code may be off, but I am trying to understand how a non 
 called function (resultHandler) can return data to the called function in a 
 different class. 

The way you are trying to do it, I don't think it can.


 So my question is, if the index.mxml calls the getAll function in the UserDAO 
 class, will the getMyData function still receive the ArrayCollection from the 
 resultHandler?

In the code you provided, I don't see how it could because getAll() does not 
return an array.


 If I were to fire this off, till the result be that my users ArrayCollection 
 in the index.mxml be populated in the end? Thanks!

_users in resultHandler() will be populated but it will not be returned in 
Users.getAll().

If you want to use an ArrayCollection across multiple classes in Flex, you 
might consider making it a Singleton.  If you need to manipulate the 
ArrayCollection, do it in the resultHandler().

I hope that helps.  I will monitor this thread if you have any other questions.



[flexcoders] Accessing DataGridColumn item renderer variable

2009-09-01 Thread creativepragmatic
Hello Everyone,

Within a DataGrid, I have a DataGridColumn that uses a custom component as the 
item renderer.  Within the component, I have an ArrayCollection that stores a 
set of value objects.  My problem is that I cannot access the ArrayCollection 
values from outside of the item renderer component.  Does anyone know how it 
would be possible to do this?  I have posted a code snippet below.


mx:Script
![CDATA[
// Cannot access arrFiles from here.
]]
/mx:Script
mx:DataGrid editable=true
mx:columns
mx:DataGridColumn id=dgcUpload width=130 headerText=Uploaded 
Files
editable=false
mx:itemRenderer
mx:Component
mx:VBox
mx:Script
![CDATA[
[Bindable]public var 
arrFiles:ArrayCollection = new ArrayCollection();
]]
/mx:Script
/mx:VBox
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn
/mx:columns
/mx:DataGrid


Is this possible?

Thank you in advance for any assistance,

Orville



[flexcoders] Client side images

2009-08-26 Thread creativepragmatic
Hello Everyone,

I am developing an application that includes JPG and TIFF image size 
validation.  The backend is done is done in PHP.  I am wondering if there is 
anyway to validate the minimum width and height of those images in Flex or if 
they have to be uploaded to PHP and validated there.

Thank you in advance for any assistance,

Orville



[flexcoders] Tooltip anchoring in Flex

2009-06-15 Thread creativepragmatic
Hello Everyone,

I want to create a notification icon like the the red one in the bottom 
right-hand corner of Facebook.  I tried using a ToolTipManager to create a 
tooltip but since Tooltips appear in their own layer in Flex and, as far as I 
am able to figure, cannot be anchored to any part of the page.  When the user 
uses the browser's scrollbar, they move.

Thank you in advance for any assistance,

Orville



[flexcoders] URL pound sign questions

2009-06-09 Thread creativepragmatic
Hello Everyone,

I have 2 questions about the url pound sign:

1. Flex includes the pound symbol at the end of every URL 
(http://www.mysite.com/folder/#).  Is it possible to remove the pound symbol 
(http://www.mysite.com/folder/)?

2. In a social networking site, could 'user' in the URL, 
www.socialsite.com/user, be parsed by Flex to display that user's profile? This 
does not seem possible but a client asked for it.

Thank you in advance for any useful insights,

Orville



[flexcoders] Re: URL pound sign questions

2009-06-09 Thread creativepragmatic
Thank you Jake.  That definitely helps.

--- In flexcoders@yahoogroups.com, Jake Churchill j...@... wrote:

 Why not use some kind of SES URL parser like Ionic or apache's mod_rewrite
 and strip that off.  Or you could set up a 404 page that attempts to look up
 the user based on whatever is after the '/' and pass the corresponding user
 info to Flex.  I'd pass just the ID then grab the rest of the data as
 necessary through remoting.
 
  
 
 Jake Churchill
 CF Webtools
 11204 Davenport, Ste. 100
 Omaha, NE  68154
  http://www.cfwebtools.com http://www.cfwebtools.com
 402-408-3733 x103




[flexcoders] Prevent Tooltip From Scrolling

2009-05-19 Thread creativepragmatic
I am using a Tooltip to display the number of Inbox messages.  I do this by 
setting the errorString property of a component and then dispatching a 
mouseOver event on the component to get the number of messages to show for 60 
seconds.  The problem I have is how to get the Tooltip to stay next to the 
component rather than moving when the user scrolls.

Thank you in advance for any help,

Orville



[flexcoders] Query String Parameters in Flex Builder

2009-05-19 Thread creativepragmatic
Is there any way to get Flex Builder to add query string parameters in debug 
mode? For example, F:\MyProject\bin-debug\myproject.html#param=1.

Orville



[flexcoders] Re: Query String Parameters in Flex Builder

2009-05-19 Thread creativepragmatic
Thank you Jonathon.  When I tried this, I got a File not found error.


 Open up your project properties, and go to the Run/Debug Settings menu.  
 Select your driver application, and click the edit button.  Uncheck the Use 
 defaults under URL or path to launch, and set it to whatever you want it to 
 be.
 
 Jonathon



[flexcoders] Actionscript Time Components

2008-12-11 Thread creativepragmatic
Hello Everyone,

I just released some simple open source components for entering dates 
and times.  Hopefully, others will find them useful or even find 
reasons to improve them.  I will be documenting them in the coming 
weeks.  Feedback is welcome.

Project URL: http://code.google.com/p/actionscriptdatetimelibrary/ 

Example Usage: 
http://actionscriptdatetimelibrary.googlepages.com/index.html 

SWC: 
http://actionscriptdatetimelibrary.googlecode.com/files/DateTimeLibrar
y.swc

Orville



[flexcoders] Sourceforge vs. Google Code

2008-11-27 Thread creativepragmatic
Hello Everyone,

I want to contribute a Flex/Actionscript component library to the open 
source community but am not sure whether to use Sourceforge or Google 
Code.

Any insights would be appreciated.

Orville



[flexcoders] Re: Sourceforge vs. Google Code

2008-11-27 Thread creativepragmatic
Thanks Josh.  Since it's a small component library, I have chosen 
Google Code.  Now all I have to do is decide between Eclipse and 
Mozilla for licensing...



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

 I use Google Code for mine, it's just simpler and easier to use, and 
feels
 more streamlined. But I imagine it's just a matter of personal 
taste, really
 :)
 
 On Fri, Nov 28, 2008 at 5:45 AM, creativepragmatic 
 [EMAIL PROTECTED] wrote:
 
  Hello Everyone,
 
  I want to contribute a Flex/Actionscript component library to the 
open
  source community but am not sure whether to use Sourceforge or 
Google
  Code.
 
  Any insights would be appreciated.
 
  Orville
 
 
  
 
  --
  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
 
 
 
 
 
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for 
thee.
 
 Like the cut of my jib? Check out my Flex blog!
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
 :: http://flex.joshmcdonald.info/
 :: http://twitter.com/sophistifunk






[flexcoders] Unable to capture click on subclassed DateField

2008-11-24 Thread creativepragmatic
Hello Everyone,

I have a subclassed DateField with a TextInput below the calendar.  
After clicking on the button to open the DateChooser, when I click in 
the TextInput, the DateChooser closes. If I click in the whitespace to 
the right or left of the TextInput, the DateChooser remains opened.  
If I reopen the DateChooser, the cursor is set in the TextInput and 
the text can be changed.  

Hopefully, someone out there with component development experience 
understands the described behavior.

Thank you in advance for any help,

Orville



[flexcoders] Number of viewable rows in datagrid

2008-11-10 Thread creativepragmatic
Hello Everyone,

This seems like it should be easy to do.  I am trying to get the 
number of visible rows in a datagrid component.  When using the  
creationComplete event of DataGrid, the number of rows is always 7 
after the SWF is loaded.  That is incorrect.  There are 27 rows.  Does 
anyone know how I can get Flex to return the correct number of rows 
after?

Thank you for any assistance given,

Orville



[flexcoders] Re: Number of viewable rows in datagrid

2008-11-10 Thread creativepragmatic
I figured it out.  Instead of using creationComplete, I used the 
render event.


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

 Hello Everyone,
 
 This seems like it should be easy to do.  I am trying to get the 
 number of visible rows in a datagrid component.  When using the  
 creationComplete event of DataGrid, the number of rows is always 7 
 after the SWF is loaded.  That is incorrect.  There are 27 rows.  
Does 
 anyone know how I can get Flex to return the correct number of rows 
 after?
 
 Thank you for any assistance given,
 
 Orville






[flexcoders] unable to open services-config.xml

2008-10-31 Thread creativepragmatic
Hello Everyone,

I get the following error:

unable to open '/home/demo1/tomcat/webapps/blazeds/WEB-
INF/flex/services-config.xml'


I understand that this is being caused by the additional compiler 
argument:

-services /home/demo1/tomcat/webapps/blazeds/WEB-INF/flex/services-
config.xml -locale en_US


I am developing on Windows machine to deploy on a remote Linux server 
that cannot be accessed locally.  Does anybody know of a way to work 
around this?

Thanks in advance for any insight or assistance,

Orville



[flexcoders] Re: Cairngorm AMFPHP Problem

2008-10-10 Thread creativepragmatic
I removed all arguments in the constructor and it worked!

Thank you 'actionscript_czar'.  I appreciate your help and I hope 
others benefit from it.

Orville

 Can you either get rid of the arguments in the constructor or set 
 defaults ( probably to empty strings )?
 
 --- In flexcoders@yahoogroups.com, creativepragmatic 
 creativepragmatic@ wrote:
 
  It does.  Here is the class.
  
  [RemoteClass(alias=com.xtremesecurity.security.vo.UserVO)]
  [Bindable]
  public class UserVO implements ValueObject
  {
  public var id:int;
  public var email:String;
  public var username:String;
  public var lastIP:String;
  public var password:String;
  public var level:int;
  
  public function UserVO(email:String, password:String)
  {
  this.email = email;
  this.password = password;
  }
  }
  
  
  
  
  --- In flexcoders@yahoogroups.com, actionscript_czar daryl@ 
  wrote:
  
   Does the UserVO constructor require arguments?  If it does can 
 you 
   set defaults?
   
   --- In flexcoders@yahoogroups.com, creativepragmatic 
   creativepragmatic@ wrote:
   
Hello,

I am trying to convert an existing Flex/AMFPHP app to 
Cairngorm 
  but 
   am 
having trouble returning value objects from PHP.

public function login($userVO)
{
$user = new UserVO();

// yada yada yada, user authenticated, logged and full 
   details 
received

 $user-id = pg_fetch_result($result, 0, id);
 $user-email = pg_fetch_result($result, 0, email);
 $user-username = pg_fetch_result($result, 0, 
name);
 $user-lastIP = pg_fetch_result($result, 0, 
last_ip);
 $user-password = pg_fetch_result($result, 0, 
  passhash);
 $user-level = pg_fetch_result($result, 0, level);

 return $user;
}

Here is the error I get from Flash Player: 

 ArgumentError: Error #1063: Argument count mismatch on 
... 
vo::UserVO(). Expected 2, got 0.


Here is what I get from the fault handler:

 Didn't receive an acknowledged message.

 Was expecting mx.messaging.messages.AcknowledgeMessage, 
 but 
received null.


Hopefully, what I am doing will be painfully obvious to 
 someone. 

Thank you in advance for any help,

Orville
   
  
 






[flexcoders] Cairngorm AMFPHP Problem

2008-10-09 Thread creativepragmatic
Hello,

I am trying to convert an existing Flex/AMFPHP app to Cairngorm but am 
having trouble returning value objects from PHP.

public function login($userVO)
{
$user = new UserVO();

// yada yada yada, user authenticated, logged and full details 
received

 $user-id = pg_fetch_result($result, 0, id);
 $user-email = pg_fetch_result($result, 0, email);
 $user-username = pg_fetch_result($result, 0, name);
 $user-lastIP = pg_fetch_result($result, 0, last_ip);
 $user-password = pg_fetch_result($result, 0, passhash);
 $user-level = pg_fetch_result($result, 0, level);

 return $user;
}

Here is the error I get from Flash Player: 

 ArgumentError: Error #1063: Argument count mismatch on ... 
vo::UserVO(). Expected 2, got 0.


Here is what I get from the fault handler:

 Didn't receive an acknowledged message.

 Was expecting mx.messaging.messages.AcknowledgeMessage, but 
received null.


Hopefully, what I am doing will be painfully obvious to someone. 

Thank you in advance for any help,

Orville



[flexcoders] Re: Cairngorm AMFPHP Problem

2008-10-09 Thread creativepragmatic
It does.  Here is the class.

[RemoteClass(alias=com.xtremesecurity.security.vo.UserVO)]
[Bindable]
public class UserVO implements ValueObject
{
public var id:int;
public var email:String;
public var username:String;
public var lastIP:String;
public var password:String;
public var level:int;

public function UserVO(email:String, password:String)
{
this.email = email;
this.password = password;
}
}




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

 Does the UserVO constructor require arguments?  If it does can you 
 set defaults?
 
 --- In flexcoders@yahoogroups.com, creativepragmatic 
 creativepragmatic@ wrote:
 
  Hello,
  
  I am trying to convert an existing Flex/AMFPHP app to Cairngorm 
but 
 am 
  having trouble returning value objects from PHP.
  
  public function login($userVO)
  {
  $user = new UserVO();
  
  // yada yada yada, user authenticated, logged and full 
 details 
  received
  
   $user-id = pg_fetch_result($result, 0, id);
   $user-email = pg_fetch_result($result, 0, email);
   $user-username = pg_fetch_result($result, 0, name);
   $user-lastIP = pg_fetch_result($result, 0, last_ip);
   $user-password = pg_fetch_result($result, 0, 
passhash);
   $user-level = pg_fetch_result($result, 0, level);
  
   return $user;
  }
  
  Here is the error I get from Flash Player: 
  
   ArgumentError: Error #1063: Argument count mismatch on ... 
  vo::UserVO(). Expected 2, got 0.
  
  
  Here is what I get from the fault handler:
  
   Didn't receive an acknowledged message.
  
   Was expecting mx.messaging.messages.AcknowledgeMessage, but 
  received null.
  
  
  Hopefully, what I am doing will be painfully obvious to someone. 
  
  Thank you in advance for any help,
  
  Orville
 






[flexcoders] Event Propagation Problem (I think)

2008-09-29 Thread creativepragmatic
Hello everyone,

I am currently working on a set of time entry components that I hope 
to share with the open source community when finished.  The components 
are a time masking field that extends TextInput, a TimeStepper extends 
NumericStepper, a DateTimeChooser extends DateChooser and 
DateTimeField extends DateField.

My question concerns the TimeStepper and TimeField.  When I set the 
focus to the time field by clicking on it and then clicking on either 
arrow button to increase or decrease the time, I get the following 
error. It should also be noted that the first version of 
NumericStepper that extended UIComponent did not have this problem.

If anybody knows where and how to prevent the following stack trace, 
your help will be greatly appreciated.

Also, I am curious to know if anyone would find these components 
useful in their own projects.

Thank you in advance for any assistance,

Orville



TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at 
mx.controls::TextInput/drawFocus()[E:\dev\3.0.x\frameworks\projects\fr
amework\src\mx\controls\TextInput.as:1851]
at 
mx.core::UIComponent/focusOutHandler()[E:\dev\3.0.x\frameworks\project
s\framework\src\mx\core\UIComponent.as:8563]
at 
mx.controls::TextInput/focusOutHandler()[E:\dev\3.0.x\frameworks\proje
cts\framework\src\mx\controls\TextInput.as:2151]
at flash.display::Stage/set focus()
at 
mx.core::UITextField/setFocus()[E:\dev\3.0.x\frameworks\projects\frame
work\src\mx\core\UITextField.as:1531]
at 
com.m4tech.FlexLibraries.components::TimeInput/setFocus()[F:\Projects\
Flex\src\com\FlexLibraries\components\TimeInput.as:381]
at 
com.m4tech.FlexLibraries.components::TimeStepper/buttonClickHandler()[
F:\Projects\Flex\src\com\FlexLibraries\components\TimeStepper.as:398]




[flexcoders] Re: Event Propagation Problem (I think)

2008-09-29 Thread creativepragmatic
Thanks Igor. I have decided just to use the old class instead.  I have 
a short deadline.

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

 Hum
 
 Very strange error, if you share you're code maybe will be easy to 
everyone
 help you. But try to debug and place a breakpoint where it's focus 
using
 event.preventDefault() to see what's happen behind the scenes.
 
 Regards
 Igor Costa
 
 
 On Sun, Sep 28, 2008 at 11:46 PM, creativepragmatic 
 [EMAIL PROTECTED] wrote:
 
Hello everyone,
 
  I am currently working on a set of time entry components that I 
hope
  to share with the open source community when finished. The 
components
  are a time masking field that extends TextInput, a TimeStepper 
extends
  NumericStepper, a DateTimeChooser extends DateChooser and
  DateTimeField extends DateField.
 
  My question concerns the TimeStepper and TimeField. When I set the
  focus to the time field by clicking on it and then clicking on 
either
  arrow button to increase or decrease the time, I get the following
  error. It should also be noted that the first version of
  NumericStepper that extended UIComponent did not have this 
problem.
 
  If anybody knows where and how to prevent the following stack 
trace,
  your help will be greatly appreciated.
 
  Also, I am curious to know if anyone would find these components
  useful in their own projects.
 
  Thank you in advance for any assistance,
 
  Orville
 
  TypeError: Error #1009: Cannot access a property or method of a 
null
  object reference.
  at
  
mx.controls::TextInput/drawFocus()[E:\dev\3.0.x\frameworks\projects\fr
  amework\src\mx\controls\TextInput.as:1851]
  at
  
mx.core::UIComponent/focusOutHandler()[E:\dev\3.0.x\frameworks\project
  s\framework\src\mx\core\UIComponent.as:8563]
  at
  
mx.controls::TextInput/focusOutHandler()[E:\dev\3.0.x\frameworks\proje
  cts\framework\src\mx\controls\TextInput.as:2151]
  at flash.display::Stage/set focus()
  at
  
mx.core::UITextField/setFocus()[E:\dev\3.0.x\frameworks\projects\frame
  work\src\mx\core\UITextField.as:1531]
  at
  
com.m4tech.FlexLibraries.components::TimeInput/setFocus()[F:\Projects\
  Flex\src\com\FlexLibraries\components\TimeInput.as:381]
  at
  
com.m4tech.FlexLibraries.components::TimeStepper/buttonClickHandler()[
  
F:\Projects\Flex\src\com\FlexLibraries\components\TimeStepper.as:398]
 
   
 
 
 
 
 -- 
 
 Igor Costa
 www.igorcosta.com
 www.igorcosta.org






[flexcoders] Masked time input

2008-05-20 Thread creativepragmatic
Hello everyone,

I plan to develop a masked time input control and accompanying field
validator for an employee timesheet app that I am working on.  Before
I start, does anybody know of an existing open control that I can use
and build on?

Thank you for any help,

Orville



[flexcoders] Re: I need some light math and ActionScript help please

2008-05-11 Thread creativepragmatic
You could use the NumberFormatter class like this:

var myRoundedNumber:NumberFormatter = new NumberFormatter();
myRoundedNumber.precision = 1;
myRoundedNumber.rounding = nearest;
myRoundedNumber.format(medianOfArrayVariable);

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

 I'm trying to find the median in my Array of numbers which is fine but 
 in some cases that number comes out to something like (3.92 84.5 
 3.5596 3.665).  In ActionScript how do I take that number 
 and reduce the length to something more manageable like (3.9, 84.5, 
 3.6, 3.7).  I know how to round up to whole numbers but not like this.
 
 Anyone know?
 
 Thanks





[flexcoders] Populating a Combobox from RemoteObject

2008-02-05 Thread creativepragmatic
Hi Guys,

This should be a simple task so I'm hoping the answer will be
painfully obvious to someone.

I'm trying to populate a combobox from the results of a remote object
using the following method:


mx:ArrayCollection id=acCategories
source={ArrayUtil.toArray(categoriesRO.getOperation('getCategories').lastResult)}/

mx:ComboBox id=cboCategories dataProvider={acCategories}


The length of the array collection is only 1 regardless of how many
categories are returned.  For example, if 3 categories are returned,
the combobox fills with this:

[object Object],[object Object],[object Object]

Thanks in advance for any help.



[flexcoders] Re: Populating a Combobox from RemoteObject

2008-02-05 Thread creativepragmatic
--- In flexcoders@yahoogroups.com, creativepragmatic
[EMAIL PROTECTED] wrote:

I solved my own problem by changing the backend query to the following:

SELECT cid AS data, category AS label FROM...



 Hi Guys,
 
 This should be a simple task so I'm hoping the answer will be
 painfully obvious to someone.
 
 I'm trying to populate a combobox from the results of a remote object
 using the following method:
 
 
 mx:ArrayCollection id=acCategories

source={ArrayUtil.toArray(categoriesRO.getOperation('getCategories').lastResult)}/
 
 mx:ComboBox id=cboCategories dataProvider={acCategories}
 
 
 The length of the array collection is only 1 regardless of how many
 categories are returned.  For example, if 3 categories are returned,
 the combobox fills with this:
 
 [object Object],[object Object],[object Object]
 
 Thanks in advance for any help.