I've done this:
var myResponder : IResponder = new Responder(addAsync(handleSuccess,
1000 ), handleFault);
I actually have my own responder that extends Responder so the above I
new MyResponder, but it works great for me. I then just pass in the
newly created responder.
Dale
--- In
Although I agree that 16000 lines of code broken between only 7
classes certainly seems like a further break down of code into smaller
classes is necessary, I also believe that Adobe needs to kick it into
gear and come out with a patch ASAP that addresses the, from my
experience, the absolute
compiler. 3-7 seconds to compile via ANT is pretty fast to me.
--- In flexcoders@yahoogroups.com, dbronk dbronk@ wrote:
Although I agree that 16000 lines of code broken between only 7
classes certainly seems like a further break down of code into smaller
classes is necessary, I also
ExternalInterface.call(window.location.reload(true));
--- In flexcoders@yahoogroups.com, markgoldin_2000
[EMAIL PROTECTED] wrote:
How would be possible to reload the whole application programmatically?
Thanks
.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Saturday, August 09, 2008 9:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Should I remove listeners declared in mxml?
ie: Best Practice
One
Subject is a bit confusing.
What I'm asking is, for example, let's say that I have a component
where I code creationComplete=onCreationComplete(). Should I make
sure that in the onCreationComplete function do a
this.removeListener(FlexEvent.CREATION_COMPLETE, onCreationComplete)?
I guess my
One extra point. I realize that if I use the
addEventListener(blahEvent, myFunc) function I need to remove those.
Even if I use weak reference I should remove it explicitly when I'm
done with the listener rather than waiting for GC.
Dale
--- In flexcoders@yahoogroups.com, dbronk [EMAIL
I generally write a simply utility that has a setAppBusy(flag:Boolean)
function. When true I set the application mouseChildren=false and
then do CursorManager.setBusyCursor(). I actually hate the popup/hide
my data/grey the screen approaches. The only gotcha I came across
with this was that
Here is my preferred way of creating a singleton class. Usage would
be: MySingleton.instance.someVar
Dale
package your.package
{
[Bindable]
final public class MySingleton
{
public static const instance :
Not sure why, seems like a bug. But if you wrap the inner vbox's in a
canvas it works.
mx:VBox width=200 height=300 borderStyle=solid
mx:Canvas height=50% width=100%
horizontalScrollPolicy=off
mx:VBox height=100% width=100%
A while back I found an AS3 HashMap implementation by Eric J.
Feminella. I tweeked it a little, extracted an interface that I call
IMap, added a new ManageHashMap to the interface.
I would think that it would be quite easy to create your own HashSet
class that is backed by a HashMap. You could
advice
Sounds like you need AdvancedDataGrid
-Josh
On Tue, Jun 10, 2008 at 2:10 PM, dbronk [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
I have a DataGrid with about 5 columns. One of the columns is an
icon. When the icon is clicked, I want a section to appear underneath
Can anyone offer any advice, samples, url's, etc. for coding an effect
in a DataGrid or AdvancedDataGrid that will give me the same effect
that the TileList has for it's default itemsChangedEvent?
Reason is I want the free stuff from the DataGrid like sorting, etc.
Also, we are finding it
This is actually happening more than and more to use. Our application
when running from FireFox works great. But when we run it in IE it
doesn't. First time it happened FF ran great, but IE would give a
null pointer on something that in no way could be null as one line
new'd it, the next line
Any hints, examples, or suggestions on how to accomplish the
dropdown/popup menu's like on buzzword.adobe.com? The menu's that
appear when you click the small arrow to the right of the items in the
left nav.
Thanks,
Dale
to
document name is a button that, when clicked, makes some container
visible.
dbronk wrote:
Any hints, examples, or suggestions on how to accomplish the
dropdown/popup menu's like on buzzword.adobe.com? The menu's that
appear when you click the small arrow to the right of the items
I have a DataGrid with about 5 columns. One of the columns is an
icon. When the icon is clicked, I want a section to appear underneath
that DG row and show a form for inputting more data. This form will
not be in column format, but will span across all the column. When
the icon is clicked
How about just:
mx:DataGrid
mx:columns
mx:DataGridColumn headerText=Check Something editable=true
mx:itemRenderer
mx:Component
mx:CheckBox selected=[EMAIL PROTECTED]'true'}
click=[EMAIL PROTECTED](event.target as CheckBox).selected /
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn
/mx:columns
I think the following will get you what you want...
mx:Repeater repeat=10
/mx:Repeater
Dale
--- In flexcoders@yahoogroups.com, Abu Hamdan [EMAIL PROTECTED] wrote:
can a repeater be used without a dataprovider, i want to repeat some
panels
based on a number and i was thinking ofu
Hello ten times.
Dale
--- In flexcoders@yahoogroups.com, Abu Hamdan [EMAIL PROTECTED] wrote:
hi there
it doesnt work, any other suggestions ??
rubeel
On Fri, May 30, 2008 at 9:20 PM, dbronk [EMAIL PROTECTED] wrote:
I think the following will get you what you want...
mx:Repeater
. In my case I am popping up a menu. The problem occurred
when I the popup closed after a menu click.
--- In flexcoders@yahoogroups.com, dbronk dbronk@ wrote:
Not sure how to get by this one. I have a TileList with a custom item
renderer. The item renderer shows a type of business
Not sure how to get by this one. I have a TileList with a custom item
renderer. The item renderer shows a type of business card ui. One of
the controls in this renderer is a PopUpButton. The popup menu comes
up just fine, but when the user clicks somewhere else I get a null
pointer error in
just be able to
use selectedField, or modify and piggy-back on its timing.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Saturday, May 24, 2008 10:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Why
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Saturday, May 24, 2008 6:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Multiple ItemRenderers for a single DataGridColumn
I have a DataGrid and one of the columns I need to be able to do the
following
a createColumnItemRenderer method that in theory
will let you return different renderers per-row. Might be worth a try.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Saturday, May 24, 2008 6:45 AM
To: flexcoders
I have a DataGrid and one of the columns I need to be able to do the
following based on the user security setting and the data in the
column. So each row in the DataGrid for a single user may have
different behavior and ItemRenderers.
1. Do not show any data and mark the cell not editable.
I have created a checkbox renderer. My datagrid has 5 out of 8
columns that use it. The datagrid has only about 80 rows it it. When
using this renderer the performance of the datagrid is horrible.
Scrolling is extremely slow, click a checkbox is extremely slow. If I
swap out and use a normal
retain
it's selected state when scrolling? can you provide an example code
that does that? maybe it will be more beneficial to approach the
problem using that approach. Just a thought.
--- On Sun, 5/25/08, dbronk [EMAIL PROTECTED] wrote:
From: dbronk [EMAIL PROTECTED]
Subject: [flexcoders
I'm successfully using ImageSnapshot to take my Canvas and convert it
to a Base64 PNG String. Very easy, but it doesn't produce what I
want. My user forms generally will have a vertical scroll and of
course this creates an image with the scroll bar. What I want is the
image to be the full user
I actually agree with you. Having a synchronous call would make life
so much easier in many places. Yes, there are always ways to code
around it. But, if I have a situation where I don't want the user to
do anything else, or any more logic to be run until I get the answer
back from the server,
In Flex 3 Beta I had no issues doing this, in Flex 3 GA it does not
work and I'm wondering if any of you have seen this issue.
I have extended Module to MyModule and added code that I need. My
Flex builder is setup into three projects. AppProject, ModuleProject,
and FrameworkProject.
My
Okay, I have a DataGrid with one of the columns being a checkbox so
the user can select what they want to work on. I'm using the
following mxml for this column:
mx:DataGridColumn editorDataField=selected editable=true
mx:itemRenderer
mx:Component
mx:CheckBox
You may want to take a look at Application.application.loaderInfo.
Also, here is a class I found somewhere. Unfortunately I don't
remember where I found this so I can't give the true author credit.
package your.package
{
import flash.external.*;
import flash.utils.*;
@yahoogroups.com
Subject: RE: [flexcoders] Re: Singletone class in Application and
Modules !?
You'll have to send me a test case. They should be the same.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Tuesday
Will this even compile? Your static variable singleton_ is declared
with new DataManager(). But your constructor requires a parameter.
If this was just a typo in the post and it was declared passing in
SingletonEnforcer, then you should not even need the if null check in
getInstance as it will
Okay, with this post it lit a light for me. Let me add a bit more
information which I _hope_ will get me the answer. Here is how my
project is setup:
I have a swc project setup where I have a lot of framework stuff.
This is also where my Config singleton is housed.
I have another main
Look at the bottom of the DataManager class and you'll see:
class SingletonEnforcer{}
That should be the last line in your DataManager.as class, even
outside the closing } for the DataManager class. It is called an
inner class and is accessible by DataManager.
Dale
--- In
I beg to differ. I had setup my app thinking this to be true. When I
did this the module would get it's own, and very different, instance
of my singleton. I had to change the way I did things so what I do
now is upon loading my module, the main app then sets the singleton
into the module. I
I have extended repeater and have added code that will dispatch an
event. This code is executed, but nothing listening is executed.
I have a canvas where it is listening to a customer event. I have
extended several controls to do things I need them to do. One of
which is to dispatch a
/setters?
Try:
.wax {
waxColor: #F0F0F0;
}
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Thursday, March 13, 2008 7:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom component
I've made a custom component and on it I want to place a custom style
named waxColor. I started by simply creating getter/setters for
waxColor. Worked great when I include waxColor=#F0F0F0 to the mxml,
but I want this to be property driven. So I added
[Style(name=waxColor, format=Color,
I have a TabNavigator component that I completely reset the tabs
dynamically with the following code:
tabNav.removeAllChildren();
for each (var container:Container in myList )
{
tabNav.addChild(container)
}
tabNav.selectedIndex = 0;
So this successfully removes the existing tabs, then loops
/mx:Application
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Tuesday, March 04, 2008 8:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamically highlighting a datagrid row
I've looked
I've looked for a combobox that drops down a datagrid, but have not
found one so I'm building one that suits my needs. I have my POC
working but after selecting a row in the datagrid and the combobox
closing as it should, then reopening the combobox loses the
hightlighted row in the datagrid.
I have a class hierarchy of classes as follows:
MyBaseTextInput extends TextInput
{
override public function set text(value:String):void
{
// my base code here
}
}
MySpecialTextInput extends MyBaseTextInput
{
override public function set text(value:String):void
{
// my special code here
}
}
Didn't realize that was important information. I am overriding the
getter also. Just didn't show it in my post.
Thanks,
Dale
--- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote:
try overriding the getter too
- Original Message
From: dbronk [EMAIL PROTECTED
I've been developing with my application using modules just fine for
weeks. Now I'm getting an error when loading my module and I can't
make it go away.
VerifyError: Error #1014: Class mx.containers::HBox could not be found.
at flash.display::MovieClip/nextFrame()
at
at Eric Cancil's Scroll to anchors component at
http://blog.3r1c.net/?p=84
--- In flexcoders@yahoogroups.com, dbronk dbronk@ wrote:
I have an input page where the inputs go off the bottom of the canvas
causing a vertical scroll bar. How can I auto scroll so that which
ever control has
I have an input page where the inputs go off the bottom of the canvas
causing a vertical scroll bar. How can I auto scroll so that which
ever control has focus is in the viewable area?
Thanks,
Dale
How about placing a public variable in your module. Upon loading the
module you can simply set that value to the same object as in your
parent. Then the children can simply bind to those values and you
don't need eventing at all. I had the same problem to solve. I
created a Context.as class
I have and XML field with contents:
field
option label=option 1 data=1 /
option label=option 2 data=2 /
option label=option 3 data=3 /
/field
My combobox has dataprovider={xml.option} labelField=@label
My problem is the how do I specify which data field to use. The combo
box appears correctly
I had tried moving my statements in just about every sequence I could
think of and always the same issue. I realize it had to be some sort
of timing issue since about one out of every 5th or 6th time it would
work on the first click.
I decided to move my implementation to use ModuleManager
I was wondering if I could get some input about events and performance.
The exact situation I have is I'm using the HashMap class from
Copyright (c) 2006 Eric J. Feminella. I've modified the class so
that on put/remove/clear/reset functions it will dispatch a
dataChanged event. This way I can
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Monday, January 28, 2008 4:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Module hell... Flex 3
I'm trying to get something very basic to work with modules. I have
my
I'm trying to get something very basic to work with modules. I have
my app and two swf modules (Form1.swf and Form2.swf). Each test
module simply has a couple TextInput fields. I have also extended
Module so I can follow what is going on and I will be adding custom
code later. MyModule extends
I have a VO object with a fill(xml:XML) method. I have it working
fine except for one place. My VO has a var beginDate : Date = null;
property. Problem is that when I am looping through the xml is need to:
// Say prop = beginDate at this point in the loop
if ( this[prop] is Date )
This
I apologize if this is a repost, but on my first post of this I never
saw it show up on the forum.
I have a column chart that will have at least 20 different entries. I
have a few of questions...
1. How do I remove the horizontal lines in the chart? I want only
the bars, not y horizontal axis
Here is a very basic example of what I want the UI to thread. In my
application I show a result set in a Tile. Once the user clicks on
one of the entries I want to transition the result set view from the
main section of the app over to the left part of the screen. Very
easy and very smooth
object.
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Friday, November 02, 2007 1:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Why is mouseOut being called?
I have a very basic Canvas. It has a VBox that holds
I have a very basic Canvas. It has a VBox that holds some text and
then under that is a HBox that holds some other test. The canvas has
both mouseOver and mouseOut events defined. I also tried rollOver and
rollOut and get the exact same thing. When I move my cursor in
between the text lines in
back and re-establish them. Also, it would be nice
to have something like Java's finalized method.
Dale
--- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote:
Hi,
dbronk wrote:
Probably the easiest thing to do would be to make the listener
reference
weak. Or, create
with
prodList.removeAll() and then you should be able to get rid of
Binding.
Ben
dbronk dbronk@ wrote:
Second, swapping my mx:Binding with adding a listener on
CollectionEvent.COLLECTION_CHANGE definitely did the trick, but with
one bad consequence. If somewhere along the way code was written
@yahoogroups.com, dbronk dbronk@ wrote:
I have a VO:
[Bindable]
public class Product
{
public var productName : String;
// several more attributes here
}
I place a large number of Products in my Cairngorm Singleton
SellModelLocator in var productList : ArrayCollection
the listeners. (Actually, I think
reassigning like that could cause a memory leak, can someone confirm?)
If its feasible you may want to replace those lines with
prodList.removeAll() and then you should be able to get rid of
Binding.
Ben
dbronk dbronk@ wrote:
Second, swapping my
as well, and it honestly falls outside the responsibility of a
language/runtime IMO.
Why can't you just use removeAll()? There is also a hasEventListener()
method that allows you to check for the existence of a listener.
HTH,
Ben
--- In flexcoders@yahoogroups.com, dbronk dbronk@ wrote
I have a VO:
[Bindable]
public class Product
{
public var productName : String;
// several more attributes here
}
I place a large number of Products in my Cairngorm Singleton
SellModelLocator in var productList : ArrayCollection;
The entire SellModelLocator is declared Bindable. In one of my
@yahoogroups.com, dbronk dbronk@ wrote:
I have a VO:
[Bindable]
public class Product
{
public var productName : String;
// several more attributes here
}
I place a large number of Products in my Cairngorm Singleton
SellModelLocator in var productList : ArrayCollection
I'm having problems with a binding issue. I'll dumb down my component
a bit in hopes to make this easier. I have a component, MyComponent,
based on Canvas. This Canvas has objects placed around in it and some
effects base on what the user clicks. The dynamic part is that there
is one spot in
It is very easy to get the item(s) selected on a datagrid, but is
there an easy way to figure out which column was clicked? I can't
seem to place a click event on a datagridcolumn.
Thanks,
Sorry, I found the solution... itemClick on datagrid.
--- In flexcoders@yahoogroups.com, dbronk [EMAIL PROTECTED] wrote:
It is very easy to get the item(s) selected on a datagrid, but is
there an easy way to figure out which column was clicked? I can't
seem to place a click event
up serving about the same as you
view many pages. Hopefully you'll serve up fewer modules since the
various view states don't need to be different html pages.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent
session and it will reload from server every
time. It would help tremendously if you could advise me on how to
make the SWF cache in the browser.
Thanks,
Dale
--- In flexcoders@yahoogroups.com, Jeffry Houser [EMAIL PROTECTED] wrote:
dbronk wrote:
So how do I make my browser cache the swf
But we shouldn't have to rely on people getting faster and faster
connections. To me, that is the same as saying I don't have to worry
about poor coding practices that produce inefficient apps because
Intel is building faster chips.
Adobe needs to put very serious thought into aggressively
Part of my app has two panes. One on the left, on on the right. The
one on the left is not very wide and has the data entry fields. As
the user enters data in the form, the right pane changes to show the
formatted document. I only want the user to be able to enter data in
the left pane where
Not to mention
http://fashion.canon-europe.com/searchandcreate.html
errors out on startup with fault getting config files
print studio is very nice looking, but these darn enormous swf files
are app killers.
--- In flexcoders@yahoogroups.com, droponrcll [EMAIL PROTECTED]
wrote:
--- In
I have seen a sneak peak a month or 2 ago of FlexBuilder 3. I've
tried to load Flex 3 Beta 1 on my box with no luck. It simply erred
out on the install. Have not tried beta 2 yet. But it is beta so
that is fine.
But, from the sneak peak I saw, there were only a few IDE features
added that
I'm using whatever was given in the Flex 2 install. I'm on Hotfix 3.
I'm embarrassed to ask, but how do I check the version number of the
browser plugins in IE and FF?
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:
On Thursday 04 Oct 2007, [EMAIL PROTECTED] wrote:
A question... Why another designer? Why not add the Thermo features
into FlexBuilder or Flash? To think that only designers will use this
tool is short-sighted. Developers will definitely also like to see
these features as once the development begins, the lines between the
designers and
I have a viewstack. One one is a tile, the other a datagrid. Both
have the same dataprovider. I set each in the viewstack with:
showEffect=Fade hideEffect=Fade. The fade out/in works fine with
everything in the view except the text. How come the text in the tile
and datagrid does not fade
I would also highly debate the fact that a JSP app is web 1.0. I have
written some very nice AJAX/JSP apps with full drag/drop, all the
coolest widgets, and I would challenge you to without looking at
source tell me that it was simply html and javascript.
But, with that said, it took probably
I'm constructing the boolean as follows:
private var includeBase : Boolean = false;
Then in my logic to call the filter function I do:
includeBase = determineIfBaseNeeded(profile);
filterObj.filter(includeBase);
The determineIfBaseNeeded is declared as follows:
private function
@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Thursday, September 27, 2007 7:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Very strange runtime behavior - if logic
doesn't work?
I'm constructing the boolean as follows:
private var includeBase
[EMAIL PROTECTED] wrote:
You don't have another class or var with the name includeBase that
might
be conflicting? That's the kind of thing that has tripped me up in the
past. In the debugger can you verify the value of includeBase?
Paul
dbronk wrote:
hmmm... I thought I did post a test
Very strange...
I had an apparent bug in my code and simply could not find it so I
created a very basic function to help test. Here is the code:
public function crazy(myBool:Boolean) : void
{
if ( myBool )
{
var s:String;
}
}
Yes, it does nothing. I place a break point on
?
Seth
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Wednesday, September 26, 2007 10:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Very strange runtime behavior - if logic doesn't
work
I'm looking at the Flex Store and really like the movement effects of
the catalog list when filtering. If a non filtered phone is visible,
it moves to its new place in the view.
I was wondering if it is possible (and how to) gain the same effect
using a Tile for the catalog display. Basically,
PureMVC, Model-Glue, and
some other frameworks as they all become updated we new features.
Thanks for your response. It definitely helps getting other opinions.
Dale
--- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote:
Hi,
dbronk wrote:
[snip]
I disagree a bit with you
Very nice indeed! I've always thought the MDI application UI was a
lost treasure. I think I have exposed a bug though. Load the example
app as normal. Window 2 has focus. Close window 2 and I would expect
Window 1 to gain focus. Even after click, clicking and dragging, etc.
window 1, it does
88 matches
Mail list logo