;
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On Behalf Of David Ham
> Sent: Tuesday, August 19, 2008 5:33 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Optimize with callLater() -- help?
>
>
>
> I think callLater() is going to work
I think callLater() is going to work for me, but I have another question:
To create my pages, I loop through an array of Room objects. For each
Room, I set it to be the currentRoom, which tells the view to display
that Room's information. I figure I can do this (pseudocode):
for (var i:uint = 0;
I'm building a room layout application, and one of its features is
that you can create a PDF printout of your project. I'm using AlivePDF
to create the PDFs in the Flash player.
The app needs to create PDFs of many pages, and each page takes awhile
to create. what I just started seeing today is t
I have an app with two mx:States, component A appears in state A, and
component B in the same position in state B. When I'm in state A,
where is component B, and vice versa?
I my tests they appear to both still be in memory and visible; does
Flex just shuffle their z-indexes? What does Flex
>
> Better off looking at some other type of pattern.
>
Any recommendations? I was getting some serious performance problems
from duplicated objects--if anyone has any recommendations on how to
ensure that I'm not creating a lot of duplicates when I switch states
back and forth?
OK
DAH
I've been having trouble with multiple instances of my views being
created when I change states. I have two RoomView classes that each
subclass the same BaseRoomView superclass, and which contain an
instance of a Room view class. Since I only ever want one of them on
the screen at a time, I thought
By "still available," the symptom is that after being removed, a trace
statement in the removed component's updateDisplayList method still
appears. Plus there is other emergent behavior (duplicate objects,
etc) that suggests the old page and/or its contents aren't completely
gone.
I changed my setup a bit, but I'm not sure it's helping. I now have a
ViewContainer which has a property 'page' which refers to the current
view. When I change the page, I do this:
* Call the current page's clear() method, which unregisters all of its
listeners, and calls similar clear() methods o
> GC only happens on new allocations, so you can never count on things
> being cleaned up immediately, just eventually, and you have to code for
> that.
> I can dig it. My main thing is that I think I'm doing everything
right--I'm unregistering event listeners before doing
removeChild()--but it see
Not sure even how to describe this problem...
I have a room layout app with three states:
Draw Walls -- lets the user modify walls but not objects in the room
Add Units -- lets the user add objects to the room, but not the walls
Review -- view only, no interactivity
Each state has a view class,
Hi,
I'm working with webservice xml data in XML format, and the e4x is
giving me a little trouble. Am I right on these points:
* All e4x operations return an XMLList. I've been trying to get them
to return XML, like:
var theNodeIWant : XML = myDataSet.myElement.(@someAttr == "foo")
but it seems
Hi,
I have an application which manages, among other things, a list of
rooms. In my UI, I have two different controls that use this list. I
have a MenuBar that has an option that allows you to switch to an
existing room or switch to a new room, like this:
Switch to...
New room...
Room A
This isn't a question; I was having some trouble with this and just
figured it out, and I thought you all might like to hear about it.
This list has been a big help to me in the past and I'd like to return
the favor.
THE PROBLEM
So you've created your XMLListCollection, and you created your Sort
o
in. I know that when I
publish,
> say directly to my web server, the folders are not recreated. Only
the SWF
> and HTML.
>
> Rob
>
> On Dec 17, 2007 9:09 AM, David Ham <[EMAIL PROTECTED]> wrote:
>
> > I'm using Flex Builder 3 beta, the Subclipse plugin,
I'm using Flex Builder 3 beta, the Subclipse plugin, and Subversion to
manage my Flex project. I'd like to add my bin folder to Subversion,
but it appears that whenever I publish, FB deletes the entire bin
directory and recreates it with the new published version. The trouble
is that whenever it do
Hi,
I am starting work on a Flex server project that was begun by a Flex
developer who is no longer available. The CVS setup seems unwieldy and
I wonder if there's a way to setup to avoid the unwieldiness.
It's running on Tomcat and the setup is as follows:
TOMCAT_ROOT/webapps/flex/myapp/[MXML
oders@yahoogroups.com, "David Ham" <[EMAIL PROTECTED]> wrote:
>
> There are several unix flavors mentioned and I was wondering if anyone
> had gotten any of them running on the Mac. Thanks!
>
There are several unix flavors mentioned and I was wondering if anyone
had gotten any of them running on the Mac. Thanks!
My project source and bin directories are in Subversion. I am trying
to rename my published HTML file, and that is working fine, thanks to
Mike Morearty's excellent blog posts about Flex Builder file macros.
However, whenever I do anything to my build configuration, or whenever
I build clean, FB d
I have a list that can be reordered by drag and drop, and I need to
call a function when the list is reordered. What is the best way to
listen for this? Should I listen for a CollectionChange event, a drag
event, or is there some other third way?
Many thanks,
OK
DAH
Tom,
> What a lot of people do is make sure they have an overriden 'set
data' method
> in their renderer that (re)sets up their component for new data.
Could you elaborate on this a bit? In my renderer, I have a set data()
that first calls super.data = value, and then displays its text fields
di
I have a List with a custom item renderer. Each item in the list will
have a slightly different height, and I got this working through the
generous help of Alex and Tracy on this list.
Here's the thing: My app started crashing yesterday, and I traced it
to my set data() method, which is as follows
I have a List that needs to allow users to drag items into and out of
it, but prevent them from dragging and dropping within the list, like
if they wanted to reorder it.
I can prevent the internal dragging and dropping by calling
preventDefault() on the drag event, but the list still shows the ca
I'm looking for a calendar component that is more data-enabled,
something that would allow one or more of:
* binding a collection of objects to a collection of dates
* when you roll over a date, have the comp dispatch an event with that
day's date in it
* enabling individual dates as drop targets
I have a custom ToolTip class. When the user rolls over an item in a
list, the app creates an instance of the custom toolTip. I'd like to
have a LinkButton or linked htmlText in the toolTip that the user
could click on, but in the default behavior, the tooltip disappears as
soon as I roll off the i
> Did you call setActualSize on it?
That fixed it! Not sure why, but that fixed it. Thanks again,
OK
DAH
>
> -Original Message-
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> Behalf Of David Ham
> Sent: Monday, September 10, 2007 10:5
gt;
> OK
> DAH
>
>>
>> Yes, as a matter of practice, you should always call
>> super.methodName() unless you know for sure you don’t want the
>> underlying behavior.
>>
>>
>>
>> From: flexcoders@yahoogroups.com
>> [mailto:[EMAIL PROTE
s call
> super.methodName() unless you know for sure you don’t want the
> underlying behavior.
>
>
>
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of David Ham
> Sent: Monday, September 10, 2007 9:17 AM
> To: flexcoders@yahoogroups.com
> Subject: Re:
Alex,
> In fact, I'd make a copy of LIR and rename it and erase the guts of
> createChildren, commitProperties, measure, and updateDisplayList. You
> shouldn't need to touch getters/setters of data/listData.
Should I call super.methodName() on the ones I am overriding?
>
> Create the textfields in
that to your advantage.
>
> Is there any way you can know by the url of the image what its
> height will be?
>
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of David Ham
> Sent: Friday, September 07, 2007 2:43 PM
> To: flexcoders@yahoogroups.com
> It should only be one level of hairy, not three...
LOL. Sorry, I wax hyperbolic late in the day, when the caffeine has
jacked me up and Flex has dragged me behind its car for a ways. I'll
dig around in measure() and see what I can do.
Do I need to worry about setting listData when I subclass
Li
Alex,
> You also have a Text in there which also may not measure out correctly.
>
> ListItemRenderer will be much faster than HBox, but you'll have to do
> more in AS than MXML.
>
> Can you draw up a picture of what you want the renderer to look like?
> Are images of a known size?
If the imag
Tracy,
Thanks for the advice, but man! It's hard going. I tried overriding
createChildren, but when I did, I ended up having to override all the
other UIComponent methods too (measure, updateDisplayList,
commitProperties) and it's all FUBAR. Where and how does listData get set?
Seems like an awfu
Tracy,
I tried creating an MXML component based on ListItemRenderer, and it
said a strange thing: I got a compiler error that said it couldn't
resolve to a component implementation. Do I need
to create a new AS class that extends ListItemRenderer, and implement
its various interfaces?
Also, can
Alex,
Thanks for the response. I had thought about that and had commented
out the image, and got the same result.
Should I subclass ListItemRenderer instead of HBox? Is there something
in the measure() or invalidation methods that I'm not doing?
Also, I notice that when I scroll the list, items
I have a list with a custom renderer. Each item has a text field of
different length. I have variableRowHeight set to "true". When the
list first loads, it renders correctly, but when I drag something out
of it, all the items get vertical scrollbars. When I add an item back
in, it seems that just t
> You can customize the dragImage displayed by the DragProxy.
>
> You can customize what is in the DragSource
Yes, I know, but how can I do one and not the other? How would I
customize _just_ the dragProxy, for example, but have everything else
(dragsource, x, y, etc) be the default? Or convers
Sounds like you might have selectors for these controls in your CSS
file, but you're not using them in your app, or maybe their creation
policy is such that the compiler doesn't know about them when it
compiles your CSS. A CSS issue, at any rate.
OK
DAH
I've been doing work with drag and drop lately. I know how to set it
up for default controls (just set dragEnabled and dropEnabled on the
appropriate controls), and I know how to create a completely custom
DragManager.doDrag, with custom dragSource and dragproxy objects.
Is there a way to just cus
Hi,
I am very new to Flex and am coming at it in a roundabout way. I
downloaded Luke Bayes' and Ali Mills' fantastic ASProject and was
trying a simple Hello World project, and compiling it for AS3 with MXMLC.
I saw in the Flex SDK that in the frameworks/source folder there are a
bunch of AS class
40 matches
Mail list logo