The following error had occur sometime. I can't catch within try catch
block. How do I? It is flex fault or not?
TypeError: Error #1009: null has no properties.
at mx.core::UIComponent/focusInHandler()
at mx.core::UIComponent/setFocus()
at
Hi,
Can you show the code? I think, you are trying to show a
component or instantiate a component while its all dependencies are not yet
initialized.
Please share the code which is throwing this
error.
-abdul
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of
--- In flexcoders@yahoogroups.com, moyosaned [EMAIL PROTECTED]
wrote:
I want to add an node to the Tree and than givethe node label
focus,
sso the user can edit the label..without clicking first
Anybody..?
I got it
first set the selectedIndex
example:
tree.selectedIndex = 1;
Rather strange requirement that I
have.
Is it possible to have a stand-alone
scrollbar?
Basically, I need to implement a scrollbar that
controls the scroll in another UI component.
Any suggestion is welcome.
Regards
Sree
--
Flexcoders Mailing List
FAQ:
Hi All,
I am using Named Web service. I have
deployed on Tomcat 5.0 . When I am calling the web service through http://localhost/... Or
through local IP (Internal IP),
it is working fine But when I am
calling the web service through an External IP errors occurs
That is 500 Error
Hi, there
According to the Livedoc (Implementing the saveState() and loadState()
methods in the History Manager charpter), it seems every component
needs a customized History Manager function. Currently I am working on
a large Flex project and there are a great deal of components in the
Thanks All!..got it working, yay!
--- In flexcoders@yahoogroups.com, Peter Watson [EMAIL PROTECTED] wrote:
Caroline,
The default RemoteObject proxy (AMF gateway) is a relative path in
flex-config.xml
amf-gateway{context.root}/amfgateway/amf-gateway
This works fine for an mxml
You could use a container width scrollingpolicy set to on, and have another box inside of that which is the same size as the actual content you wish to scroll.e.g.:!-- Box with scrollbars --
mx:Box hScrollPolicy=on vScrollPolicy=on width=200 height=200mx:Box width={content.width}
Hi,
I am working on validations on input fields( required=true ).
I am using mx:Validator Tag for validating fields..
When no value is enter into required field it showing Error Meassage
but it not showing at corresponding field.
All ValidationError messages showing at same place which is far
Has anyone used a tree control and e4x data returned from web service,
and implemented drag and drop node positioning successfully?
Can anyone confirm there is a bug ?
The control won't place the dropped node in the right place. It always
appears at the bottom of the parent node. However in
Hi Abdul,
One more thing I had noticed that the private variables with getter
and setter methods run fine with Java.
What I understood is that for Java the flash gateway calls the get/set
method and return the object. Is this a problem with gateway for CF?
Thanks,
Deepak
--- In
I had noticed this as well. I believe it
will be normalized on way or another once all is said and done.
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stacey Mulcahy
Sent: Tuesday, January 24, 2006
1:39 PM
To: flexcoders@yahoogroups.com
If I understand your question correctly, you need
to find real drop position to add tree element. Most common issue is that people
use getDropLocation and do not look at getDropParent. Something like this
usually solves the issue:
function getRealDropLocation() {dropLoc =
Dave,
I am going to test the servlet method (all made perfect sense) - just
wanted to say thanks for the time to write your suggestions - its
appreciated :)
Regards
Leon
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Wolf
Sent: 24 January
Peter,
I didn't notice this mxmlc argument this before now! I am going to test
this along with Dave Wolf's earlier suggestions - again just wanted to
say thanks for the heads up - as always appreciate the help from you
guys :)
Regards
Leon
-Original Message-
From:
Hi folks,
I am creating a set of radio buttons and a radio button group in a
function, along these lines:
var ourgroup=cell2.createChild
(mx.controls.RadioButtonGroup,rgroup_ + i,{});
cell2.createChild(mx.controls.RadioButton,b1_ + i,
{label: '1',width: 25, groupName:rgroup_ + i});
Hello,
I Believe it should be something like
ourGroup.addEventListener(click, this);
with a function defined as:
function
click()
{
}
that does what you want to do.
--Carolyn
At 11:10 AM 1/25/2006, you wrote:
Hi folks,
I am creating a set of radio buttons and a radio button group in a
Yeah, that's an interesting method to the Matrix class. So I assume
it translates the matrix such that the wrapping occurs naturally as it
fills the right hand side with what just went out of visibility on the
left? If so, great idea. Thanks!
Philippe Maegerman wrote:
Yes I think
I am able to set the modalTransparency and get a fade like effect when
my modal dialogs popup, right now its a white fade, I read a post on
JesterXL's from a while back on this and he said you can set
the 'Modal' color property in the halo.fla or the
StandardComponents.fla. How can this be
First thanks for responding,
I assume this is a flex 1.5 example as no dragevent is in the call to
dropparent etc..
I'm using flex 2.0 alpha, and this is the code for the drop event.
The below code should work but does not. The item dropped is always
inserted at the bottom or the parent. In
Ok, we have a Link inside of a Box. Box has a backgroundColor=red
for exaple purposes. When a user mouses over the Link, the
backgroundColor chanegs based on the theme. How to change this? We
can't seem to get it. We tried throwing the mouseOver event and using
So here's my situation: On the Flex side, I have received a result set
from the database, made changes to a few of its attributes, and
am trying to send it back to Java so that the changes can be saved to
the database. I looked at Hari's thread on the matter
Worked like a charm doug.
On a side note, what are you using to connect to your remote dir.
Right now I am using cf, and I have noticed that you can't directly
return the dir listing from cf to flex.
--- In flexcoders@yahoogroups.com, douglowder [EMAIL PROTECTED] wrote:
I have a similar
doh! me feel stpid...rollOverColor
DK
On 1/25/06, Douglas Knudsen [EMAIL PROTECTED] wrote:
Ok, we have a Link inside of a Box. Box has a backgroundColor=red
for exaple purposes. When a user mouses over the Link, the
backgroundColor chanegs based on the theme. How to change this? We
bump. anyone?On 1/24/06, Johannes Nel [EMAIL PROTECTED] wrote:
hi All
I use the mxmlc compiler and the compile times are relatively slow. now
if i was hitting an app server the coompile times are quite fast, and i
assume how this is done is that there is some jar wrapper for the mxmlc
which
Make sure the objects in your ArrayList don't contain any static
public final fields on the java side. There is a bug that when the
object gets sent to flash the static fields get serialized along
with the object, then when you send it back to java it tries to
create that static field.
I had
Hehe, here's a hack... not sure which class Modal extends, but
setStyle(color) doesn't work on him, so went straight for the color object
itself. Prepare to have your app swim in Kool-aid.
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
I've spent a lot of time researching this issue within flexcoders,
Google, and iteration::two book and still no luck.
I'm basically trying to replicate what the Flex Style Explorer
(http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html)
does where a user can choose their own background
Hi -
We provide the HScrollBar and VScrollBar components for you to instantiate as
standalone scrollbars. Here's an example of a vertical scrollbar that controls
the scrolling in a horizontal scroll bar.
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
mx:VScrollBar id=v
Are any of the images showing up as there
are no embed calls. ?
What about just setting the styles in a
css file externally and changing the styleName on the fly by binding the
bgimage to a variable?
Someone can correct me here, but isnt
setStyles one of the most intensive
Question
Flex 2
Cell Renderer
I have a cell renderer that overrides the
set dataObject to determine what to render based on the info.
Originally I was setting a plain ole array
to the dataGrid as a DP and I could easily do something like
Override public function set
Thanks Deepa, I
noticed that your answer was wrt 2.0.
My requirement was for 1.5. Or, are these
components available in 1.5?
Sree
- Original Message -
From:
Deepa
Subramaniam
To: flexcoders@yahoogroups.com
Sent: Thursday, January 26, 2006 12:43
AM
Subject:
Hi,
Is ExternalInterface not available in Flex 1.5? I have to make a
communication between a windows application and my Flex application e.g. Clicking
on an Image in Windows Application passes an object to my flex app and highlights
the values in my Datagrid. What are my options here?
It's available in the Flash Player 8. You can
load a proxy SWF to call these methods for you.
Or, you can utilize a LocalConnection from another
Flash 8 SWF.
I recommend the 1st option.
- Original Message -
From: shahnavaz
Alware
To: flexcoders@yahoogroups.com
Sent:
Hi,
I`m developing a PDA application with Flash 6. Everything is working fine, but now I have a problem. When I loadany XML file,the memory used to allocate the XML still allocate after the process even if I deletethis variable. Any one hadthis problem?And how I can figure it out?
Thanks...
Binding is not allowed to style property backgroundImage. In fact,
you can't use binding for any styleName attribute. I don't know why
I'm struggling with this so much. Even if I have a simple label like so:
mx:Label id=tst text=My text styleName=myStyleClass/
I can't change the color of it
Glad to hear that worked out for you!
My backend setup is quite different from yours. I'm using
RemoteObject to call methods of some Java classes that read the
contents of a webdav repository (Jakarta Slide) via the webdav
client API. I pass data back as lists of custom Java classes that
Flex 1.5 is hardcoded to work with Flash Player 7
ActionScript. Meaning, it can only compile with Flash 7 code; you can however,
make ActionScript calls to a Flash 8 SWF that is loaded in at runtime.
What you have below won't work. However, you can map what you have below
to call a Flash
Yup, these components are provided in the 1.5 framework so
this should be possible. Glancing at the ASDocs, there shouldnt be any
syntax changes between the 2.0 example and running it in 1.5.
-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Title: Re: [flexcoders] Re: Unable to Dynamically Changing BG image
Okay, I confess, in the Flex Style Explorer I faked the dynamic application background switching. Its really the following (this is simplified, but should explain the point):
mx:Application marginLeft=0 marginTop=0
I want to select a button, then afterwards, I want the first item in a
datagrid to be selected.
I've tried doing something like myDataGrid.selectedIndex = 0 , and it
works momentarily (you can see the row get selected) then it loses the
selection.
If I use a setFocus() call, it sets focus on
Flex-config is set NOT to display warnings
but it decides on its own to do so anyway. Normally it hasnt been a huge
issue, wed just fix the warningbut in the following case Im
not sure how to do that seeing as the binding is based on an _expression_:
The warning were getting is:
Setting datagrid.selectedIndex = 0 works for me, but I set it in a
doLater() call after my grid's dataProvider has been initialized.
Also, unless I'm mistaken, the focus gained by calling setFocus() and
the selected row of a datagrid are two separate concepts. At least
that's how I'm
p.s. the warnings ONLY show once after the
application is first deployed and is compiling. (weblogic 8.1 on solaris) After
that its fine
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young
Sent: Wednesday, January 25, 2006
5:00 PM
To:
Sounds like a compiler bug. Try wrapping with
Object: Object(field[FieldRepeater.count-1]).selected
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stacy Young
Sent: Wednesday, January 25, 2006
2:21 PM
To: flexcoders@yahoogroups.com
Subject:
Well, the HistoryManager needs to know what state to save. It isn't
practical to iterate over all properties with a for-in loop and save
everything, because you'd quickly run up against the limit on the size
of data you can store locally.
So you need to implement saveState() and loadState() to
Did you try my suggestion from yesterday about setting a negative height
on the invisible child?
I also mentioned that the new 'includeInLayout' property in Flex 2 will
solve this problem.
- Gordon
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf
Worked, thanks dude!
Stace
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt
Chotin
Sent: Wednesday, January 25, 2006 5:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Can't get rid of warnings when deploying on
Title: Flex 1.5 Error: Failed to parse intrinsics ...
On a single machine (mine) and a single app I am suddenly getting this error:
01/25 19:03:04 ERROR Swc Type: Failed to parse intrinsics for __Packages.GuestBill: unexpected token: $
01/25 19:03:12 error Requested resource
Title: Flex 1.5 Error: Failed to parse intrinsics ...
Well, that time debug=true made the app
work. (said it couldnt find the debugger though)
Very weird.
Tracy
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt
Sent: Wednesday, January 25,
Title: Remote Object
Hi all,
I have my remote object from a flex instance calling cfc on a separate instance of CF on the same box. It's not working. CF Admin does not show Flash Remoting log through the admin interface but cfusion-info.log and cfusion-out.log shows "FileNotFoundException"
Hi Flex Coders
I want to share with you this flex component to generate barcodes.
At the moment it just generate type 128 barcodes. Maybe the next
version generate another barcode types...
Enjoy it :)
=
Barcode.as
==
/**
Hello all! I was wondering if someone could give me a hand. I am
currently working on a Flex application that takes the user through a
multi-step form. Since completing the form requires some thought and
planning, I am using a sharedObject to store the data from each step.
In order to
Sorry, I should have mentioned that I'm using Flex 1.5 with a
ColdFusion 7 back-end.
--- In flexcoders@yahoogroups.com, im_sean_s [EMAIL PROTECTED] wrote:
Hello all! I was wondering if someone could give me a hand. I am
currently working on a Flex application that takes the user through a
You can start by getting at the source. Check out
http://www.docsultant.com/site2/articles/flex_src.html
Rob Rusher
RIA Consultant
Macromedia Certified Flex Instructor
e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL
You don't need to use the registerObject(). That is for Java back-ends.
Rob Rusher
RIA Consultant
Macromedia Certified Flex Instructor
e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of
Rob,
Thanks for your quick reply. I am using registerClass() so that the
object can be saved as a shared object on the client, until the user
is ready to submit the form. I tried it without doing this, and it
did not work. The problem I am having is that once the class is
registered, I cannot
Object.registerClass() helps prevent the AMF gateway from having to search
for the equivalent object type when using RemoteObject. And it returns a
Boolean, so I wonder about SharedObjects not working with out it. You should
be able to store simple data types in a SharedObject. (i.e. Number,
Well your cursorUsername() function is static. If you take out the
static and just have function cursorUsername() and call that from
somewhere in Login.as do things work? I'm not sure I recognize the
showCursor() function though...
Matt
-Original Message-
From:
Might be a bug in our parser. I don't know much about PHP web services,
do you control whether it's RPC style or doc-lit? If you can try RPC
style. Otherwise we'll need to see the WSDL to see if we can reproduce.
Matt
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL
Take out the dispatcher.dispatchEvent, just leave it as dispatchEvent.
You don't need a dispatcher property at all.
Matt
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Carolyn Cole
Sent: Monday, January 23, 2006 6:59 AM
To:
You sent what came back in the response from the method invocation but
not the WSDL itself. Can you send that too? It may be a bug.
Matt
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of augie
Sent: Tuesday, January 24, 2006 12:36 PM
To:
In the result event handler for the HTTPService...
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ffej1138
Sent: Tuesday, January 24, 2006 4:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: HTTPService onLoad
yeah, so I have the
Can you reach the proxy via the external
IP? Is the server where the proxy lives allowed to access the internet? Does
it need its external proxy set up (entries in flex-config.xml)? Turn on
debugging (web-service-proxy-debug) and see what the logs say.
Matt
From:
I haven't tried this but the Tree implementation changed significantly
for the beta so I'd recommend waiting for it to test this out again if
you can wait a little while longer.
Matt
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sourcecoderia
1.5 or 2.0? Do you need to specify the listener property to point at
the right input fields?
Matt
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jagabcdeff
Sent: Tuesday, January 24, 2006 11:42 PM
To: flexcoders@yahoogroups.com
Subject:
In Flex 2 mxmlc does have an incremental
compiler option but that logic to store the temporary classes I think was only triggered
using the web compiler in 1.5.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel
Sent:
That sounds odd. Internally the DG was
wrapping your array in an ArrayCollection anyway so it shouldnt have
made a difference. How are you creating the ArrayCollection? Its
possible that this is a bug that will be fixed in the beta which is coming
soon.
Matt
From:
Here is an example that uses a shared object to store an object and
retrieve the value of a property. RegisterClass is not necessary.
Tracy
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
initialize=initApp()
mx:Script![CDATA[
private
Sorry if this appears twice.
-Original Message-
From: Tracy Spratt
Sent: Wednesday, January 25, 2006 10:57 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Re: Flash Remoting with Registered Objects
Here is an example that uses a shared object to store an object and
Rob,
I am passing the following:
Object.registerClass(com.hopeequity.vo.ClassNameVO,
com.hopeequity.vo.ClassNameVO);
where ClassNameVO is substitued with the name of each of my
ValueObject classes. When I tried the sharedObject without it, it
would not give me any values :-(
Thanks again,
Tracy,
Thank you for your input, and yes I am aware that you do not need
registerClass to store simple values in a sharedObject. I however ran
into problems trying to store a complex object hierarchy that was
several levels deep.
Thank you,
Sean
--- In flexcoders@yahoogroups.com, Tracy Spratt
Theres getItemIndex (may only be in
beta?) which you can use in conjunction with removeItemAt.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of gunnar a reinseth
Sent: Tuesday, January 24, 2006
1:08 AM
To: flexcoders@yahoogroups.com
I actually had this problem with a students
machine today. It turned out to be the configuration of the Flex Site in Flex
Builder 1.5 was the problem. I know weird. The service worked when
hitting it directly, but when running the Flex app in a browser or in FB we
would get this same
74 matches
Mail list logo