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
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
- 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
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
;
}
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
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
Problem is the alert is coming from PHP, not an alert generated in Flex.
I just realized my last response makes no sense. However, I do not see
how to accomplish what you are suggesting.
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,
.
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
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
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
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,
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
How do I set the selectedDate attribute of a dateChooser to whatever
the current day is?
)} ]}
/
--- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote:
How do I set the selectedDate attribute of a dateChooser to
whatever
the current day is?
Thank you, this did it:
selectedDate={new Date()}
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
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.
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
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?
Thanks Amol, these worked exactly as needed.
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
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
Slight correction:
Change this row:
mx:RemoveChild target={stateC}/
To this:
mx:RemoveChild target={stateCB}/
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
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
} /
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
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
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,
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
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
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,
I need some assistance with this post, please!!
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?
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.
Daniel, can you post an example of how you've done this?
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
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
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
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!!
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.
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?
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.
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
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 =
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 =
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) {
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?
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
What about with Apollo? That gives you read/write access to files on a
local machine.
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.
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)
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
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
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
: 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
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
[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
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
@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
@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
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
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
, 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
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
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?
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)
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
, 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
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
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
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 +
--- 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
@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
@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
@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
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
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
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?
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
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
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
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.
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:
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]
(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
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
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
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
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
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:
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
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
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];
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
.
--
--- 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
);
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
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
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 - 100 of 203 matches
Mail list logo