[flexcoders] Function Error

2006-12-04 Thread jmfillman
When I click on the Submit button, I get the following error: TypeError: Error #1009: Cannot acces a property or method of a null object reference. at main/validateForm() at main/__btnFormSign_click() What am I doing wrong? mx: State name=Forms mx:AddChild position=lastChild mx:Canvas

[flexcoders] Array to Alert

2006-12-05 Thread jmfillman
I have a label field in an ArrayCollection that I need to display on an alert box. I need each label to be on it's own line in the alert box. Say I have 3 records in the Array, with label values of *Name, *Address, and *Phone. I need to get those labels from the ArrayCollection and have them

[flexcoders] Re: Array to Alert

2006-12-06 Thread jmfillman
- Original Message From: jmfillman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, December 5, 2006 6:57:03 PM Subject: [flexcoders] Array to Alert I have a label field in an ArrayCollection that I need to display on an alert box. I need each label

[flexcoders] Re: Array to Alert

2006-12-07 Thread jmfillman
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent: Wednesday, December 06, 2006 11:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Array to Alert How would I iterate through the array if I don't know how many

[flexcoders] Re: Array to Alert

2006-12-07 Thread jmfillman
; } Alert.show(sTemp); Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent: Wednesday, December 06, 2006 11:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Array to Alert How would I iterate

[flexcoders] KeyboardEvent Question

2006-12-07 Thread jmfillman
The works below well, except in one scenario. When the username and/or password is wrong, the user is shown an alert box. If the user presses the Enter key to get rid of the alert box, the addListeners and trapKeys functions fire again. I understand why (the cursor is still in the TextInput

[flexcoders] Re: KeyboardEvent Question

2006-12-07 Thread jmfillman
Problem is the alert is coming from PHP, not an alert generated in Flex.

[flexcoders] Re: KeyboardEvent Question

2006-12-07 Thread jmfillman
I just realized my last response makes no sense. However, I do not see how to accomplish what you are suggesting.

[flexcoders] Spell Checker

2006-12-15 Thread jmfillman
I've seen the Component on the Flex Exchange, and it's not going to meet my needs, primarily because my app won't always have an internet connection to use the Google API. Also, I need the custom dictionary to be in my DB so users have access to it regardless of what PC they are using. So,

[flexcoders] Re: Spell Checker

2006-12-16 Thread jmfillman
. As for the backwards looping use String.lastIndexOf(' '). For the formatting take a look at setTextFormat. Patrick jmfillman a écrit : I've seen the Component on the Flex Exchange, and it's not going to meet my needs, primarily because my app won't always have an internet connection

[flexcoders] Re: Spell Checker

2006-12-16 Thread jmfillman
seconds or after every space or with a button... Really depends on what you want. As for the backwards looping use String.lastIndexOf(' '). For the formatting take a look at setTextFormat. Patrick jmfillman a écrit : I've seen the Component on the Flex Exchange, and it's not going

[flexcoders] Re: Spell Checker

2006-12-30 Thread jmfillman
Jazzy open source dictionary to develop this functionily in flex 2. Thanks Sanjay --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , jmfillman jmfillman@ wrote: I've seen the Component on the Flex Exchange, and it's not going to meet my needs, primarily because

[flexcoders] Re: non visible fields in data grid are displaying

2007-01-23 Thread jmfillman
I have had this same problem. I did a search on the Adobe message boards and found a post from an Abode person saying it was a problem, but had been fixed internally in Adobe and would be resolved in an upcoming hotfix. No date was listed for the fix though. --- In flexcoders@yahoogroups.com,

[flexcoders] datechooser bug?

2007-02-05 Thread jmfillman
Try the code below. If you click on a date, then click on the same date, this throws an error. Am I doing something wrong or is this a bug? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:DateChooser x=10 y=10 id=schCalendar

[flexcoders] Set DateChooser selectedDate to Current Date

2007-02-05 Thread jmfillman
How do I set the selectedDate attribute of a dateChooser to whatever the current day is?

[flexcoders] Re: Set DateChooser selectedDate to Current Date

2007-02-05 Thread jmfillman
)} ]} / --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote: How do I set the selectedDate attribute of a dateChooser to whatever the current day is?

[flexcoders] Re: Set DateChooser selectedDate to Current Date

2007-02-05 Thread jmfillman
Thank you, this did it: selectedDate={new Date()}

[flexcoders] Scrollable Content

2007-02-05 Thread jmfillman
The contents of a particular app I am working on far exceed the vertical space of a users screen. It is not something that can be split among tabbed pages or any other means to break it down, I need it to continue in one long page that users can scroll up and down. All the containers I've

[flexcoders] Re: Scrollable Content

2007-02-06 Thread jmfillman
Thank you. With a lot of playing around, I got a VBox with several grids to scroll appropriately. I do have to add 1 or 2 blank grids at the bottom before the last grid that I need visible to show when scrolled to the bottom, but that is a minor issue.

[flexcoders] Scroll Position

2007-02-10 Thread jmfillman
I have canvas whose content scrolls verticaly about 3 pages. However, I don't want this to always start at the top, but is dependant on the user. The question is, how do I set the vertical scroll position to something other than the top, while still allowing the user to scroll up or down as

[flexcoders] Change Parent Value

2007-02-12 Thread jmfillman
I have an mx:Grid with two columns and two rows. I need to programitically move something from the first column, second row, to the second column, second row. From what I can tell, I need to change the Parent name, which is Read- Only. Any other suggestions?

[flexcoders] Re: Scroll Position

2007-02-12 Thread jmfillman
Thanks Amol, these worked exactly as needed.

[flexcoders] TileList Object Parameters

2007-02-16 Thread jmfillman
I have a variety of TileLists that I can't quite make work the way I need. When I drag a row from a DataGrid and drop it on the TileList, I want to take the data from 3 of the 4 columns in the DataGrid, and drop them into the TileList. Currently it just shows {object Object}. I need to

[flexcoders] Re: Wet Behind the ears

2007-02-16 Thread jmfillman
Wally, You are looking for the close event on the ComboBox. Take a look at the code below. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:states mx:State name=State2 mx:AddChild

[flexcoders] Re: Wet Behind the ears

2007-02-16 Thread jmfillman
Slight correction: Change this row: mx:RemoveChild target={stateC}/ To this: mx:RemoveChild target={stateCB}/

[flexcoders] Count of items in a list

2007-02-20 Thread jmfillman
I'm having difficulty in determining if a list has any items already in the list. For example, if a list already has 1 item, I want to set it's dropEnabled property to false, either when the item is added to the list or when the user attempts to drop a 2nd item. Also, if that item is removed

[flexcoders] Re: Count of items in a list

2007-02-21 Thread jmfillman
This has got to be possible. Please, someone help!! --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: I'm having difficulty in determining if a list has any items already in the list. For example, if a list already has 1 item, I want to set it's dropEnabled property

[flexcoders] Re: Count of items in a list

2007-02-21 Thread jmfillman
} / That help? Karl Cynergy From: flexcoders@yahoogroups.com on behalf of jmfillman Sent: Wed 2/21/2007 11:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Count of items in a list This has got to be possible. Please, someone help

[flexcoders] Drag Drop Question

2007-02-22 Thread jmfillman
See code below. After you drag an item from the list and drop it into the Canvas, how you do then drag the item you just dropped, have it run the dragDropHandler function, and then move the original item? ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

[flexcoders] Re: Drag Drop Question

2007-02-23 Thread jmfillman
Thank you Jae. That is far better than what I had worked out. This had led me to another question. When I move one of the buttons, the mouseUp function is firing and going to the correct IF statement. What it isn't doing is moving the item to the (x,y) position specified in the IF statement,

[flexcoders] Passing data from TitleWindow to application

2007-03-02 Thread jmfillman
I've attempted to model this after an Adobe example found here: http://livedocs.adobe.com/flex/201/html/textcontrols_060_19.html I'm trying to take that example and apply it to set the height of a control, based on logic in the TitleWindow popup. When you close the TitleWindow, I want the

[flexcoders] Overlay TileList

2007-03-04 Thread jmfillman
I have a number of TileLists who will need to cover other TileLists occasionally. The problem I am having is that even if the first TileList completely covers the second TileList, the second TileList can be accessed right in the middle of the first TileList. I really don't want to make the

[flexcoders] Drag Drop Question

2007-03-06 Thread jmfillman
I'm using a Canvas as a Drag/Drop target for multiple items. I drop the first item, from a List, between (0,0) and (50,100). My logic moves the item to (0,0) and sets width=100 and height=50. Now, I drop another item between (0,0) and (50,100), with the same width and a height=300. However,

[flexcoders] Re: Drag Drop Question

2007-03-07 Thread jmfillman
I need some assistance with this post, please!!

[flexcoders] TextArea htmltext parsing

2007-03-28 Thread jmfillman
How would I go about taking the htmltext of a TextArea and parsing it based on a space and assigning each piece to an Array or ArrayCollection?

[flexcoders] Re: TextArea htmltext parsing

2007-03-28 Thread jmfillman
Ultimately I'm wanting to find each word to check the spelling, while maintaining the HTML formatting of the TextArea. Using the text would be far easier, but I loose the formatting.

[flexcoders] Re: TextArea htmltext parsing

2007-03-29 Thread jmfillman
Daniel, can you post an example of how you've done this?

[flexcoders] Re: TextArea htmltext parsing

2007-03-30 Thread jmfillman
I like what they've done here: http://www.flextendibles.com/DemoSpellChecker.html however, I really don't want to add a J2EE App Server to what I have to support. The fewer things I have to keep running, the better. I'm already using PHP, MySQL, and WebORB, not that they are difficult, but

[flexcoders] Re: TextArea htmltext parsing

2007-03-30 Thread jmfillman
With some playing around, I think I'm headed in the right direction, thanks to some cumulative thoughts and ideas from previous posters!! This is working quite well, so far: var str:String = myRTA.text; var pattern:RegExp = /\b\w+/gi; var results:Array = str.match(pattern); myDGrid.dataProvider

[flexcoders] Re: TextArea htmltext parsing

2007-03-30 Thread jmfillman
Scott, I'm sending the word Array to PHP for checking. PHP will check each word until it finds an incorrect word, then it will send the wrong word back, along with 10 suggestions. I'm not that good at PHP, so I hired someone to do this for me. We've worked out a fairly comprehensive

[flexcoders] RegExp Help

2007-03-30 Thread jmfillman
I'm using the following pattern to analyze simple text: /\b\w+/gi This seems to work well, except for hyphenated words, like pre- school, and contractions, like isn't. Please help!!

[flexcoders] Re: RegExp Help

2007-03-31 Thread jmfillman
They sure are confusing. I spent several hours reading various sites last night and everything I tried didn't work; they gave me nothing. Seems not everything works with Flex.

[flexcoders] Re: RegExp Help

2007-03-31 Thread jmfillman
I had been playing with this: var pattern:RegExp = /\b[A-Za-z0-9-']+/gi; In your example, what does the \b at the end do that the one at the beginning doesn't?

[flexcoders] Re: RegExp Help

2007-03-31 Thread jmfillman
Scott, thank you, it seems to be working just the way I want it. Of course, that leads me to the next thing. I'd like to capture the words position in the text to the array as it's splitting out each word.

[flexcoders] Re: RegExp Help

2007-04-01 Thread jmfillman
This is the function I've been working on. public function toWords():void{ var str:String = myRTA.text; var pattern:RegExp = /\b[A-Za-z0-9'-]+\b/gi; var result:Array = pattern.exec(str); while (result != null) { trace (result.index, result); result

[flexcoders] Array to Grid

2007-04-02 Thread jmfillman
This seems like an easy enough thing to do, and have done it hundreds of time before, but this one's got me stumped. public function toWords():void{ var str:String = myRTA.text; var pattern:RegExp = /\b[A-Za-z0-9'-]+\b/gi; while (result != null) { trace (result.index, result); result =

[flexcoders] Re: Array to Grid

2007-04-03 Thread jmfillman
Okay, I've switched it to this: public function toWords():void{ var str:String = myRTA.text; var pattern:RegExp = /\b[A-Za-z0-9'-]+\b/gi; var result:Array = new Array(); result = pattern.exec(str); result.word = result; result.position = result.index; while (result != null) { result.word =

[flexcoders] Re: Array to Grid

2007-04-04 Thread jmfillman
The resolution: function splitString():void{ var rtaString:String = myRTA.text; var pattern:RegExp = /\b[A-Za-z0-9'-]+\b/gi; var result:Array = new Array(); var temp:Array; temp = pattern.exec(rtaString); while (temp != null) {

[flexcoders] Load Display Image from FileReference

2007-05-10 Thread jmfillman
I want to let a user select an image file, using FileReference and have the selected image load into Flex and display in the app. I know how to use FileReference to filter only images and allow them to select the file, but how do I take that image file and load and display it in the app?

[flexcoders] Re: Load Display Image from FileReference

2007-05-11 Thread jmfillman
Anyone??? --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: I want to let a user select an image file, using FileReference and have the selected image load into Flex and display in the app. I know how to use FileReference to filter only images and allow them

[flexcoders] Re: Load Display Image from FileReference

2007-05-11 Thread jmfillman
What about with Apollo? That gives you read/write access to files on a local machine.

[flexcoders] Re: Load Display Image from FileReference

2007-05-11 Thread jmfillman
Flex would also have to pass the file to PHP/ColdFusion, so it must get loaded into the app, before being sent out to the server.

[flexcoders] FDS/PHP/AMFPHP

2006-10-15 Thread jmfillman
I've tried all these tutorials, and can't get any of them to work. The PHP(http://www.adobe.com/devnet/flex/articles/flex2_php.html) article runs without errors but doesn't load data from the database or submit it, the AMFPHP (http://www.adobe.com/devnet/flex/articles/flex2_amfphp.html)

[flexcoders] Re: FDS/PHP/AMFPHP

2006-10-16 Thread jmfillman
and also how to connect to SabreAMF and WebORB for PHP on my blog at http://renaun.com/. Hope that helps, Renaun http://renaun.com/ --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote: I've tried all these tutorials, and can't get any of them to work. The PHP (http

[flexcoders] Update ArrayCollection from PopUp TitleWindow

2008-01-19 Thread jmfillman
I've found it amazingly easy to add an item to an ArrayCollection from a PopUp window: var newItem:Object = {date: myDate.id, height: myHeight, subject: mySubject.text, notes: myNotes.text}; mainApp.myAC.addItem(newItem); However, when it comes to updating that item from a PopUp, it appears

[flexcoders] Re: Update ArrayCollection from PopUp TitleWindow

2008-01-19 Thread jmfillman
is so just use the setItemAt() and getItemAt(); m.setItemAt(newItem,m.getItemAt(oldItem)) - Original Message From: jmfillman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 8:35:59 PM Subject: [flexcoders] Update ArrayCollection from PopUp

[flexcoders] Re: Update ArrayCollection from PopUp TitleWindow

2008-01-19 Thread jmfillman
: jmfillman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 8:35:59 PM Subject: [flexcoders] Update ArrayCollection from PopUp TitleWindow I've found it amazingly easy to add an item to an ArrayCollection from a PopUp window: var newItem:Object = {date: myDate.id

[flexcoders] Re: best way to manage a toolbar

2008-01-21 Thread jmfillman
I would think the easiest way to address this is to create states for various screen resolution ranges, while keeping the rest of the application the same. Set the state based on the resize event calling a function from the application tag. Otherwise, you'll have to create an algorithm (see

[flexcoders] Re: Update ArrayCollection from PopUp TitleWindow

2008-01-22 Thread jmfillman
[mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent: Saturday, January 19, 2008 9:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Update ArrayCollection from PopUp TitleWindow setItemAt and getItemAt work in the main application, but not from the PopUp window. From

[flexcoders] Re: Update ArrayCollection from PopUp TitleWindow

2008-01-22 Thread jmfillman
CORRECTION: mainApp.myAC.itemUpdated(mainApp.myAC [itemIndex],mainApp.myAC.getItemAt (itemIndex).subject,'',itemSubject.text); Typo on my part. Trying to abbreviate the post; typo not in source code. --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: Alex, Thank you

[flexcoders] Re: Update ArrayCollection from PopUp TitleWindow

2008-01-23 Thread jmfillman
@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: CORRECTION: mainApp.myAC.itemUpdated(mainApp.myAC [itemIndex],mainApp.myAC.getItemAt (itemIndex).subject,'',itemSubject.text); Typo on my part. Trying to abbreviate the post; typo not in source code. --- In flexcoders@yahoogroups.com

[flexcoders] Re: Update ArrayCollection from PopUp TitleWindow

2008-01-23 Thread jmfillman
@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: here is the message warning: unable to bind to property 'City' on class 'Object' (class is not an IEventDispatcher) - Original Message From: jmfillman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, January 23, 2008

[flexcoders] Re: Update ArrayCollection from PopUp TitleWindow

2008-01-23 Thread jmfillman
for updating an item. You need to either manually update the item object, or use setItemAt() to do the actual update. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent: Wednesday, January 23, 2008 2:41 PM

[flexcoders] Array Item Counting

2008-01-23 Thread jmfillman
I have an array with several dynamically populated numbers. The array is then sorted to group identical values together. Let's say my array contains the following:[15,15,35,35,35,35, 35,55,55,75,95,105,115,115,115] What I need to do is get a count of each number, and determine the highest

[flexcoders] Re: Array Item Counting

2008-01-23 Thread jmfillman
, January 23, 2008 2:48 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Array Item Counting - Original Message - From: jmfillman [EMAIL PROTECTED] mailto:jmfillman%40verizon.net To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Sent: Wednesday

Re: [flexcoders] Printing very long textarea

2008-01-23 Thread jmfillman
Take a look at this site: http://www.kemelyon.com/bts/ --- In flexcoders@yahoogroups.com, Rabib [EMAIL PROTECTED] wrote: Hi ! Thanks for your posts. It's been a long long time that I am looking for a good solution to this similar problem: create a printVbox component, that could print

[flexcoders] Resize Event Complete

2008-01-24 Thread jmfillman
I need to capture the size of a canvas after the Resize Event completes. Triggering a trace on the canvas size at the Resize Event captures the size of the window at the start of the Resize Event, not once it has completed. How do I get the value once it has completed?

[flexcoders] Re: copy paste troubles

2008-01-24 Thread jmfillman
What's equally annoying is when you pick on me for asking a simple question, and then post your own question as a follow-up to my post. But we all have our own strengths and weaknesses. --- In flexcoders@yahoogroups.com, Seth Caldwell [EMAIL PROTECTED] wrote: For some reason, I (usually)

[flexcoders] Re: copy paste troubles

2008-01-24 Thread jmfillman
holding shift and using home/end/arrow keys. Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent: Thursday, January 24, 2008 2:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: copy paste troubles What's equally

[flexcoders] Re: copy paste troubles

2008-01-24 Thread jmfillman
, Seth Caldwell [EMAIL PROTECTED] wrote: Can you try with mx:TextArea/ ? That's where I'm noticing the problem. Sorry, I should have specified initially. I'm using Flex 3 Beta 3. Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent

[flexcoders] Re: copy paste troubles

2008-01-24 Thread jmfillman
One other thing, with the TextArea, try tracing the selection begin and end index, to see if they are valued. JF --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: Works fine for me in both Web and AIR versions. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx

[flexcoders] Re: Resize Event Complete

2008-01-24 Thread jmfillman
Perfect, thanks!! --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Try updateComplete after a resize. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent: Thursday, January 24, 2008 1:49 PM

[flexcoders] Dynamic Variable Naming

2008-01-26 Thread jmfillman
I am probably overlooking something simple, but I'm trying to dynamically name variables. See the code below, which is an example that illustrates what I need to do. for (var gridRows:int=15; gridRows 2895;gridRows){ var R+gridRows:Number = (gridRows / 5); gridRows = (gridRows +

[flexcoders] Re: Dynamic Variable Naming

2008-01-26 Thread jmfillman
--- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: why does it say var R it should be var r:String =R if u want it like that, what are your tring to do - Original Message From: jmfillman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 26, 2008 12

[flexcoders] Re: Resize Event Complete

2008-01-26 Thread jmfillman
@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: Perfect, thanks!! --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Try updateComplete after a resize. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman

[flexcoders] Re: Resize Event Complete

2008-01-26 Thread jmfillman
@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: Mabye this is a bug, but when using Windows Vista and you switch users, the updateComplete event fires. What is odder, is that any components that I have dynamically added, e.g. myCanvas.addItem (myItem), their width formatting, and often their x

[flexcoders] Re: Resize Event Complete

2008-01-28 Thread jmfillman
@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I don't use Vista, so I don't know what switch users means. Could it be that the SWF gets reloaded? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent: Saturday, January 26

[flexcoders] Re: Adobe Air Error

2008-01-28 Thread jmfillman
Good question. I get this message often as well. Seems to happen after I've been running FlexBuilder for a while and have run the Debugger several times. I've noted that the Debugger is not unloading the SWF file after I close the app, so the first launch appears to clear out the remnants of

[flexcoders] Re: Adobe Air Error

2008-01-28 Thread jmfillman
I've also found that I have to Click the Run button twice when I'm having this same issue. The only way I've found to stop it is to reboot the computer, then it's okay for a bit. JF --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: Good question. I get this message often

[flexcoders] Position Button Label

2008-01-29 Thread jmfillman
I know how to left/right/center align text on a button horizontally, but I also need to align the text vertically so the label is at the top of the button, regardless of the buttons height. How can I do this?

[flexcoders] Re: Position Button Label

2008-01-29 Thread jmfillman
lorer.html --- jmfillman [EMAIL PROTECTED] wrote: I know how to left/right/center align text on a button horizontally, but I also need to align the text vertically so the label is at the top of the button, regardless of the buttons height. How can I do

[flexcoders] Puzzling Drag Drop Issues/Bug??

2008-01-30 Thread jmfillman
This is a little complicated to explain, so please bear with me. Run the example AIR app below, drag the button to see what happens, and then read on. I can't seem to calculate the place where the item was actually dropped in the Canvas? I tried calculate the position in the dragDropHandler

[flexcoders] Re: Puzzling Drag Drop Issues/Bug??

2008-01-30 Thread jmfillman
So it is a bug, http://bugs.adobe.com/jira/browse/SDK-13227. This seems quite impossible to workaround, as you can't capture any drop location positioning information about the item being dragged/dropped. Any ideas? JF --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote

[flexcoders] Scroll while Dragging

2008-02-07 Thread jmfillman
Has anyone come up with an efficient way to scroll a container up and down while dragging? I can't seem to find the magic formula for calculating the verticalScrollPosition based on the mouse position.

[flexcoders] Tooltip Text Formatting

2008-02-14 Thread jmfillman
I need to format the labels in my tooltip text. In the following code, I need the literal values Title: and Author: to be in bold fontWeight, with using a normal fontWeight. How can I do this? myButton.toolTip = Title: +this[books+selectedArray] [add].title+'\n'+Author:

[flexcoders] Re: textAlign attribute not accessible from TextInput extended class.

2008-02-15 Thread jmfillman
Paul, I believe that the answer to your original question is that you need to use setStyle(). For example: mx:TextInput id=myTextInput/ private function textAlign():void{ myTextInput.setStyle(textAlign, center); } Jason --- In flexcoders@yahoogroups.com, aceoohay [EMAIL PROTECTED]

[flexcoders] Re: textAlign attribute not accessible from TextInput extended class.

2008-02-16 Thread jmfillman
(or programmatically) to left? What I am trying to do is override default behavior in my extended TextInput, but if someone actually specifies textAlign=left I don't want to override that. Paul --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote: Paul, I believe

[flexcoders] Re: Drawing in Panel Insanity

2008-02-19 Thread jmfillman
Jason, A couple things: 1. You might try putting this inside a canvas within the Panel. 2. Not knowing the bigger picture of your component it's hard to tell exactly, but if the Panel container is inside of the component and not the base of the component, your measure function is getting the

[flexcoders] Re: textAlign attribute not accessible from TextInput extended class.

2008-02-19 Thread jmfillman
is determine if the textAlign property was explicitly set in the mxml. If it is set in the mxml, I will leave it be, otherwise, I may change it. Thanks for the input though. Paul --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote: Paul, Off the top of my head, I

[flexcoders] Re: Default Application background color during intialization

2008-02-19 Thread jmfillman
You can also add a compiler option to set this. -default-background-color #00 --- In flexcoders@yahoogroups.com, Jerry DuVal [EMAIL PROTECTED] wrote: On Tuesday 19 Feb 2008, Jerry DuVal wrote: initializing progress bar. Why does it not use my application background colors

[flexcoders] Re: Is it possible to have 2 children of viewstack visible?

2008-02-19 Thread jmfillman
Max, I would think that States with transition effects would be the easiest way to do this. Jason --- In flexcoders@yahoogroups.com, m.frigge [EMAIL PROTECTED] wrote: Knock.. knock.. nobody knows this?? A simple no it doesn't work would be alright too :-) ??? --- In

[flexcoders] Re: AIR - NativeWindow Resizing

2008-02-19 Thread jmfillman
NativeWindowResize triggers when the application window is resized, via dragging or the Maximize/Restore Down button in MS Windows, and I don't think this is what you are wanting to use. Once you find the video size, you should be able to set the application size. Try out this simple code:

[flexcoders] Re: Supporting both double and single click events for TileList

2008-02-20 Thread jmfillman
A timer option may be what you decide, but keep in mind that you can still control the popup from the application. So, the first click will always create the popup, but if you don't prevent use of the parent application while the popup is open (the only way to ever get a double click without a

[flexcoders] Re: Reset State in Flex

2008-02-20 Thread jmfillman
I was afraid you'd ask that :-) It's been years since I really dealt with HTML, but something like this should work: private function reloadPage():void{ var url:URLRequest = new URLRequest(http://www.mysite.com;); navigateToURL(url, _parent); } You are just pointing the browser back

[flexcoders] Re: Reset State in Flex

2008-02-20 Thread jmfillman
I am not aware of any quick way to clear all the text inputs and reset the application to how it was when it first loaded. The only way I know to do this is to programatically set everything back to how you want them. myTextArea.text=; myPanel.visible=false; myArray.source = [One, Two, Three];

[flexcoders] Re: if i buy flex2 now, will i have to pay again for flex3 (how soon is it?)

2008-02-22 Thread jmfillman
Given Ted Patrick's somewhat cryptic post yesterday (http://www.onflex.org/), I'm guessing the release of FlexBuilder 3 is less than a week away, but I don't work for Adobe and can only speculate. --- In flexcoders@yahoogroups.com, Tom McNeer [EMAIL PROTECTED] wrote: Robert, On Fri, Feb

[flexcoders] Re: Drag Boundaries

2008-03-11 Thread jmfillman
. -- --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote: How do I set a boundary that draggable objects must stay within? Take the example below, if you click and drag the button to the left, you can drag it so it's x value is negative. Further, I want to constrain

[flexcoders] Re: Drag Boundaries

2008-03-11 Thread jmfillman
); event.target.startDrag(false, r); --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote: Well that's what I thought, but when I change this: event.target.startDrag(); to this: event.target.startDrag(false, 10, 0, myCanvas.width, myCanvas.height); I get

[flexcoders] Re: Drag Boundaries

2008-03-11 Thread jmfillman
not use startDrag and handles its own dragging so it can handle the mouse up outside the stage. See the code in Panel.as From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent: Tuesday, March 11, 2008 9:07 AM

[flexcoders] Re: Drag Boundaries

2008-03-11 Thread jmfillman
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent: Tuesday, March 11, 2008 3:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Drag Boundaries Alex, I assumed as much. The problem I'm encountering

  1   2   3   >