Hello all,
I want to show and hide menu on button click. If one a click of a
button, the menu is shown, then on another click of the same button,
the menu should be hidden. I used a flag to implement this but got in
to a problem. The code snippet is shown below:
private var showMenu:Boolean =
Copying to clipboard is different thing. You can copy stuff to clipboard
once you have access to it. Selected text in the HTML component is buried
somewhere deep in the component and it's hard to dig it out. Anyway I
achieved the same by adding JavaScript to get the selection and then AS to
do
Hi Ben, but what if I'd like to include some MXML ? Is it possible?
Thank
-David
From: ben gomez farrell [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, November 28, 2008 4:09:14 PM
Subject: Re: [flexcoders] sailorsea21 - is there an include
Hi,
I think that you do not understand exactly how to use mxml and custom
components... You do not include mxml (as you would do in php, its more
like java or another object oriented language... You make a new 'class'
(component in our case, and then use):
A quick pseudocode example:
File
I get it. I was asking more as a way to simply cleanout the code when it gets
too long but your way makes it dynamic. Great!
Thanks. I'll look into it.
-David
From: Fotis Chatzinikos [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, November 30,
--- In flexcoders@yahoogroups.com, lampei [EMAIL PROTECTED] wrote:
So how do I fire the CollectionChange event from the array so that the
menuBar picks up that the collection has changed and to reload the
dataProvider?
You'd do something like this:
[Bindable (event=myCollectionChange)]
--- In flexcoders@yahoogroups.com, timgerr [EMAIL PROTECTED] wrote:
Hello all,
I am working with nested arrayobjects and I cannot construct the
needed data from my php/mysql backend.
I am using nested sets
(http://dev.mysql.com/tech-resources/articles/hierarchical-data.html),
with left
Would UI components automatically catch this?
On Sun, Nov 30, 2008 at 4:54 PM, Amy [EMAIL PROTECTED] wrote:
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
lampei [EMAIL PROTECTED] wrote:
So how do I fire the CollectionChange event from the array so that the
menuBar
Amy, as always, you rock, that url was a good read. My problem is I
am not sure how many children I will have or what the structure will
look like. I am doing a tree so I can have n number of nodes or
children, and I am not sure how to build the return object/array.
Thanks for the read.
Isn't height the dynamic property of another dynamic property
this[something] (which is equivalent to this.something)?
the fact that you use [] syntax to access the property this.something is
just a syntactical shorthand and sometimes a workaround: you can't define
this.return (since return is a
Why bother manually removing the reference to the timer's listeners?
Assmuing only the timer has reference to those listeners, once the timer is
deemed to be GC'ed (which will happen when its containing uic gets GC'ed
after it's removed from parent), the listeners will also be GC'ed (since
they
I dont know any docs, but I think it happened to me a couple of times and
the result is that the databinding simply does not fire for any changes
after the null in the chain.
Do a simple test app and try it out. it will be faster than you looking for
the doc.
On Fri, Nov 28, 2008 at 12:01 PM,
timgerr,
You have to convert a table list, lft and rgt nested set approach, to an
hierarchical model in server side.
Unfortunately, the Flex DataDescriptionDefault only work in a model of
array of array
with 'chidren' field.
As soon as I have time, I intend to develop a class that implements
Hi.
On Sun, Nov 30, 2008 at 10:11 AM, Dave Kong [EMAIL PROTECTED] wrote:
Isn't height the dynamic property of another dynamic property
this[something] (which is equivalent to this.something)?
I wouldn't exactly say it like that. Dynamically accessing a property of an
object using the []
Cool.
-TH
--- In flexcoders@yahoogroups.com, Sefi Ninio [EMAIL PROTECTED] wrote:
Hmm... I swear I tried it before, did the same thing and it didn't
work...
Donno what I did differently...
Heck, it works now :)
Thanks man!
On Fri, Nov 28, 2008 at 11:58 PM, Tim Hoff [EMAIL PROTECTED]
Hi All
I am facing an NPE with tooltips, the problem is outlined below.
Set up: (I use Flex 2.0)
I have a UI where I have a datagrid that gets populated by data coming from
a remote server call. My module contains a timer that sends out a refresh
request (server call) to paint the datagrid with
The doc says don't call destroyToolTIp on the current tooltip. I'd search
around to see if anyone else has a way of causing a tooltip to go away, but I'd
probably do it by faking a mouse event instead of calling an mx_internal method.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
Usually you don't need a hide phase to the button. Once shown, clicking
anywhere will hide it. Only set the flag to false on MENU_HIDE.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of
prashant194
Sent: Sunday, November 30, 2008 2:08 AM
To: flexcoders@yahoogroups.com
Thanks Alex. Since the destroyToolTip is public and the doc says not to call
it on the currentToolTip, I'd probably think that it is used when we
explicitly create and destroy tooltips.
About faking the mouse event that you have mentioned, are you meaning that I
need to add my own
There's two things to keep in mind when pondering bindings:
1) Bindings work on property chains, using chains of ChangeWatcher
instances. It's only a couple of pages of code, and pretty easy to get your
head around. You're right that they simply stop when they get to a null,
and return null.
2)
Were the channel-definition is
channel-definition
endpoint uri=http://{server.name}/{server.port}/
{context.root}/messagebroker/fastamfpolling
what happens is the {context.root} get filled with the wrapped in
single quotes. I then get a Send Failed error. Were is the
context.root
Ely gave a great presentation at MAX maybe two years ago about custom
component creation. Anyone know where that video is?
Thanks!
-Nate
Mike:
I have not found a solution - I don't think it's possible. Your best bet is
to setup a virtual 32 bit environment on your server and have it host both.
That is what I ended up doing.
Thanks
-Pat
www.datanotion.com
On Fri, Nov 28, 2008 at 12:19 PM, Mike Anderson [EMAIL PROTECTED] wrote:
Hello All,
I have a very important question.
What could be causing problems with rendering?! I have this
application that every now and than flicks, the background goes white
for a second than get back to normal. Its not really something in
particular because that happens in a couple of
Hi Alex,
I think that will not work either. If i click on the same button,
first the MENU_HIDE will be called then the click listener will be
called. If i change the flag on MENU_HIDE, the click listener will
again show the menu. Let me show you the code i used:
private function
My point was that if the button always says Show Menu, why would the user
expect it to hide the menu?
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of
prashant194
Sent: Sunday, November 30, 2008 9:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: problem
I am going to mess around and try to create a multi player online game
with flex. Any thoughts on the best way to communicate the users
actions back to the server? Remote Objects? Producer/Consumer
Messaging? Morse Code?
Thanks
27 matches
Mail list logo