Hello,
Yes dispatchEvent({type:event_name}) is the right command,
But also you need to specify MetaData, so compiler knows that this
component is dispatching event, so you should type:
[Event(event_name)] in Script tag.
Best regards
Stanislav
On 9/15/05, jcrane [EMAIL PROTECTED] wrote:
I am
Hi everyone,
I am writing an app using the Cairngorm framework, and I am having a
problem getting a pop-up to close. Here's the scenario:
- I have a Main.mxml and a MainViewHelper.as
- Upon clicking one of many SomeSearch Search buttons in
Main.mxml, the MainViewHelper.as calls the
Yes, I have the MetaData setup. It actually is working the way I expect it
to, I just wanted to see if there is a way use dispatchEvent() to go directly
from the grandchild - grandparent rather then from child - parent -
grandparent.
Thanks,
Jeremy
Yahoo! Groups
When I use same method name more than once (with additional
arguments), Flex compiler says I can't use the same name more than
once. Is this really true (Flex doesn't support method overloading?)
or do I need to do something different?
Thanks,
Libby
Yahoo! Groups
Yeah, interesting question.
Maybe you will just need to add your own listener!? So grandparent
will be listen for events from grandchild.
Best regards
Stanislav
On 9/15/05, jcrane [EMAIL PROTECTED] wrote:
Yes, I have the MetaData setup. It actually is working the way I expect it
to, I just
Libby,
ActionScript doesn't support method overloading.
Best regards
Stanislav
On 9/15/05, Libby [EMAIL PROTECTED] wrote:
When I use same method name more than once (with additional
arguments), Flex compiler says I can't use the same name more than
once. Is this really true (Flex doesn't
Hi,
I think it is good idea that your components dispatch events. It allows
decoupling within application and increases reusability of component.
-abdul
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jcrane
Sent: Thursday, September 15, 2005
Jeremy,
Why would you want to skip a step in your bubbling?
Best,
Allen
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jcrane
Sent: 15 September 2005 14:30
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to properly use
Are any exceptions being thrown in the flash log from Cairngorm?
In particular anything about ViewHelpers?
Best,
Allen
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fowleryj
Sent: 15 September 2005 14:26
To: flexcoders@yahoogroups.com
Why have the grandchild tell the parent to tell their parent(the
grandparent) to switch the view to the parent when the chandchild could tell
the grandparent directly to switch the parent? If A-B and B-C, then A-C,
right? I just really don't understand the whole listerner, dispatchEvent
Hi,
ActionScript doesn't support method overloading. Instead you can use
following approach.
function sayHello()
{
var n:Number = arguments.length;
if(n==0)
{
alert(Hello World);
}
else if(n==1)
{
alert(Hello +
Well I put in creationPolicy= ”all” in the accordion tag right after the width and I got an error message that says open quote is expected for Attribute "creationPolicy".
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
That makes perfect sense in lieu of function overloading. Thank you,
Abdul.
--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
Hi,
ActionScript doesn't support method overloading. Instead you can use
following approach.
function sayHello()
{
var n:Number =
Allen,
Nothing in WEB-INF\flex\logs\flex.log has anything of that nature-- is
there another log I should look at?
Thanks
--- In flexcoders@yahoogroups.com, Allen Manning [EMAIL PROTECTED]
wrote:
Are any exceptions being thrown in the flash log from Cairngorm?
In particular anything about
I put in creationPolicy=”all” right in the opening tag of an accordion and I got the following error message back.
Open quote is expected for attribute "creationPolicy".Did I type something wrong?
--
Flexcoders Mailing List
FAQ:
can you please post the
code that is giving you error message?
Are you copying and
pasting the creationPolicy="all" from some other place? Chances are that quotes
are not in right format, as I can see below in your mail..
Try this:
creationPolicy="all"
-abdul
From:
Hey all-
I have a question: how would I place the cursor in a TextInput field when
the application is loaded? I tried using Selection.setFocus(), but that
simply highlights the field. The user still has to click on it to get it
into the field.
I am just embedding the function in creationComplete
Hi,
It is working for me, however it doesn't draw a rectangle
instead some other shape.
I am using following code along with
myClass.as:
?xml version="1.0"
encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
xmlns="*"
Type %HOMEDRIVE% in your Run prompt to see the home drive.
-abdul
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fowleryj
Sent: Thursday, September 15, 2005 7:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: doLater and
Check out your home directory on your machine for flash.log?
It is generally, root_drive\Documents and Settings\username\
f.ex. C:\documents and settings\abdul\
If you have ever changed the settings in mm.cfg (which is also found at
the same place), then look at the new path.
-abdul
At 06:51 PM 9/14/2005, you wrote:
Turn on web service debugging in flex config and look at the monitor or
logs. Any clues there?
I don't know how to do this.
Since none of my services are working, I wonder if the problem is with the
{context.root} reference in the flex-config.xml whitelist.
Fire up the Flash log:
http://www.macromedia.com/devnet/flex/articles/client_debug_03.html
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fowleryj
Sent: 15 September 2005 15:22
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: doLater
Well, I finally figured out that createEmptyMovieClip() doesn't return
anything...so instead of:
var emptyClip = createEmptyMovieClip(rectangleInNode,
getNextHighestDepth());
emptyClip.beginFill(0xFF); //Currently harcoding a white fill...
...
I should have done:
Hello Everyone,
I had a question regarding best practices when passing over my valueobjects.
In Short, I've been alternating between two ways of referencing the
VOs properties:
1) assigning the VO as a new object in my command, and passing over
this new object or new object's props to my
I wrote an EventManager for just this reason. You can find its source and
use up on http://jeff.mxdj.com/using_the_event_manager.htm
At 09:50 AM 9/15/2005, you wrote:
Yeah, interesting question.
Maybe you will just need to add your own listener!? So grandparent
will be listen for events from
Hi,
Are you copying and
pasting the creationPolicy="all" from some other place? Chances are that quotes
are not in right format, as I can see below in your mail..
Try this:
creationPolicy="all"
-abdul
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL
Kai,
I've been wanting to do the same thing (preselecting a particular
entry or array of entries), would you be willing to share the code
that you wrote to do it?
Martin
--- In flexcoders@yahoogroups.com, Kai König [EMAIL PROTECTED] wrote:
Hi folks,
I want to have a tree with the
Hello All,
I am dynamically instantiating a new VBox in a tab container
(tbFlyingHours). No problem with that. It exists and can be
interacted
with. The problem comes when I read the children of the tab
container.
If I use tbFlyingHours.childDescriptors.length the new VBox doesn't
show up, but
I cant put to work my flex 1.5, coldfusionmx 7 and RH AS:
My coldfusion is working fine but flex only errors:
Any idea will be great!
Tks,
Fernando
Here is my cfserver.log:
Starting Macromedia JRun 4 (Build 84683), coldfusion server
15/09 15:54:20 warning Unable to open
testing...
Hello alll...-- John C. Bland II
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Is it possible to set the style of the field test seperately from the
text on the actual control that selects the date? What I want is the
selected date text to be displayed in 18pt fontSize but not have the
fontSize of the control be that large. Also, is there a way to remove
the border
Title: Help to create an object instance dynamically
Hi all !
I'm trying to get a component instance using the following:
var workspace:Workspace = Workspace.getInstance();
var name:String = com.datasul.framework.custom.view.LoanForm;
var type:Function =
I don't know if you're using import statements, but those might help if
you're not:
import com.datasul.framework.custom.view.LoanForm;
import Workspace;
var workspace:Workspace = Workspace.getInstance(); //Do you mean 'new
Workspace ();' ?
workspace.createChild(LoanForm,instanceName, {attr:
Hi,
Can anyone tell me if I can send an event from onr sibling to another
i.e.,
I have an application, it has two custom components lets say both are
canvas and contain elements in them (Sib1 and sib2)
How do I let sib2 know that something has changed in sib1.
For addeventlistener I beleive
I am able to get flex applications working with internet explorer but for some odd reason every time I try to run them on firefox there not working can someone please explain why this could be?
--
Flexcoders Mailing List
FAQ:
Title: Help to create an object instance dynamically
Hi Michel,
Are you referencing
this class elsewhere? If not, you need to in order for flex to compile it.
A simple reference
like:
com.datasul.framework.custom.view.LoanForm;
Might do the trick. Not
sure about the rest of
At 02:01 PM 9/15/2005, you wrote:
In Flex-config:
!-- turn on debug to see the request and response on the server side as
well as debug information in client side tracing --
web-service-proxy-debugtrue/web-service-proxy-debug
I did try setting that tag to true, but wasn't sure what to do
One more problem...
When a thumb is dragged over another, it stops before the real point (
thumb MCs collide ). This makes setting the limits a little harder.
Too bad.
I am still working on my own component.
Any hints on how to reuse some of the existing Slider's functionality
is more than
Hi all,
The HSlider allows me to drag the thumb freely along the track,
between points A and B ( minimum and maximum attributes):
A-V---B
I now need a slider that allows me to set limits, so that the thumb is
now restricted to the range between C
OK, nobody is following but, anyway...
I figured out how to do all this with the HSlider, but it involves
some dirty hacking at runtime.
slider.__thumbs[0].enabled = false;
slider.__thumbs[2].enabled = false;
I can also draw the colors on the track with the drawing API, on top
I am not sure what the best practice is, but I often bind UI items directly to objects in my model - sometimes a particular instance might be bound to multiple controls both inbound and outbound. Because of this, sending the objects in my model directly to a remote service could suffer from the
What is your Coldfusion server version, Standard or Enterprise?
Renaun
--- In flexcoders@yahoogroups.com, Fernando Barros [EMAIL PROTECTED]
wrote:
I cant put to work my flex 1.5, coldfusionmx 7 and RH AS:
My coldfusion is working fine but flex only errors:
Any idea will be great!
Tks,
Do you have the Flash player installed on
Firefox?
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, September 15, 2005
4:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex applications
not
Guys
I don't know what else to do with this error. The problem is that flex
do not recognize the mapping between a VO Client Class and the Server
VO. In fact I get the following message using the Alert PopUp Window:
The expected argument types are (vo.VOEmpleado) but the supplied
types were
Look at ...\tomcat 5.0\logs\stdout.log.
To see it in FB, you need to use the Net connection pane, but I don't
really use this myself. The tomcat log will be better.
Hmm, you might also need to set the logging level on tomcat.
Tracy
-Original Message-
From: flexcoders@yahoogroups.com
I do the similar stuff using getChildAt(i)
instead of childDescriptors[i] and
that works fine if I want to read the properties I set during createChild. Eg parentID.getChildAt(i).id
Thanks,
Shahn
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Hi,
I am trying to set the focusedCell in a Tree and having no luck.
(Flex 1.5, Flash 8 beta).
In the following test app, while the Select bar button works
correctly (selecting the bar node), the Edit bar button edits the
foo node.
?xml version=1.0 encoding=utf-8?
mx:Application
Hi Rishi,
I use Cairngorm 0.99 in my Flex App. When my user authentication
on the J2EE AppServer is successful I return UserInfoVO and set it to
ModelLocator.UserInfoVO=event.result. Now from this point on I have the whole
userInfo object on the client side so no worries about
I already found the issue. The problem is when you start setting the
values entered in the form I was using in the visual component. You
have to explicitly cast the values, because they can be handled like
strings and this may lead to don't match your client object with the
remote VO Class.
Hey All. I'm thinking of building a little proof of concept. Part of it
is to take a snapshot image from a webcam. So I did some searching and
found this awesome post from Abdul:
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg10143.html
Which is good, the first example works great
Just a small eg as below.
#
?xml version=1.0
encoding=utf-8?
mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml
mx:Script
![CDATA[
function changeID(event){
mx.controls.Alert.show(Original
Id --- + event.target.id);
getChildAt(0).id
=
51 matches
Mail list logo