Hi Sean,
You're right, I missed out the 'this' keyword... All is good now, thanks! :)
Do you know if it's possible to inspect the Event objects as code is
running? Or would you just switch back to the Flex debugger for that?
Thanks!
2010/1/5 seanmcmonahan s...@seanmonahan.org
Love
Hi,
Hope the subject makes sense... I was going to ask if there people use any
UML tools when coding with frameworks such as Cairngorm but wanted to keep
the topic slightly open.
As I'm working more with Cairngorm on the project I'm on I'm realising that
things can get a bit confusing and it'd
Hi,
Has anyone managed to get this what seems to 'could' be a wonderfull tool
working?
i just get a message in red saying something like Cant evaluate
Thanks for any pointers...
Nick
mx:Form labelWidth=
--- In flexcoders@yahoogroups.com, mitchgrrt mitch_g...@... wrote:
I have two mx:Form forms that come from two different .mxml files, but are
being displayed on one page, one above the other. I'd like to make the
labels and inputs line up between the two forms. Is
Have you tried deleting the .project and .actionScriptProperties files in the
project folder? How about the .settings folder?
The compiler settings are saved to the .actionScriptProperties file. It is an
XML file so you can try opening it in your favorite text editor. Check to see
if the XML
Hello...
We've just run into a problem... Has anyone else come across this before?
We're making HTTP Service calls and we're getting back nested data. We have
set the resultFormat=e4x which we then parse into known Object types, such
a IContactData, IInvoiceDetails...
The Problem: With some
Thanks.
Please give me a detail about this.
Thanks
Mark
--- In flexcoders@yahoogroups.com, Chris zomgfore...@... wrote:
You can use the Stage in the same way. Use the 'resize' event of Stage just
as you would in AIR. Make sure that your scaleMode is set to NO_SCALE
(should be).
On Mon,
You should have parser/unmarshaller for the e4x/xml returned by the service and
handle this situation in there. On the other hand what you are trying to
achieive doesn't work like that out of the box I mean the conversion. Google
for the ObjectTranslator utility for flex/as3 and use that to
Bingo! That was it!
The applications node must have an entry.
*Wrong*
applications/
*Right*
applications
application path=MyApp.mxml /
/applications
Thanks a ton. That was driving me nuts.
On Wed, Jan 6, 2010 at 8:41 AM, valdhor valdhorli...@embarqmail.com wrote:
Have you tried deleting
The problem is to do with item renderers and item editors. The data
passed to these components is in the form of an Object. The Object class
does not implement an IEventDispatcher.
So, why does it think you need an IEventDispatcher? Well, to get an
expression to evaluate in MXML you need to use
Yeah, I already tried that. For some reason, it still shows. In looking at
the Button.as code, in the updateDisplayList, I see some code that seems like
it's always going to render a tooltip if a label is set on the Button.
I guess I can always Monkey Patch the button, but it seems like
Hi,
I try to use resize Event,but I only can get oldHeight and oldWidth.
how to get Flex app current Height and Width?
Please give me a idea for this.
Thanks a lot
Mark
Hi,
Thanks for your reply...
Our problem is that the http service isn't returning e4x or xml (even though
the returnResult is set to that) if the data levels are 4 or more. It's
coming back as untyped Objects.
Normally we would call the HTTP Service asking for e4x, get the data back in
the
I try to get current stage size with the code,but I get error
TypeError: Error #1009: Cannot access a property or method of a null object
reference..
It seems I get error for stage.height.
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
creationPolicy=all
I try this
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
creationPolicy=all creationComplete=init()
mx:Script
![CDATA[
import mx.events.ResizeEvent;
private function
Nick
Just for future reference...
var myContact : ContactPerson = new ContactPerson();
myContact = ContactPerson(myPerson);
is a good example of how memory leaks occur. You create a new variable of a
specific type and then allocate some memory for it with the new operator. The
variable is
On Wednesday 06 Jan 2010, markflex2007 wrote:
I try to use resize Event,but I only can get oldHeight and oldWidth.
how to get Flex app current Height and Width?
Have a look at the live docs for Stage
--
Helping to adaptively unleash architectures as part of the IT team of the
year, '09 and
That kinda depends on what you mean by the last row of data. If you
mean the last visible row (Which is the last row rendered - the renderer
is only called for visible data) then you can try this...
package
{
import mx.collections.ArrayCollection;
import mx.controls.*;
import
Hi All,
I would like to add s String value with an icon to the the same cell or as
colimn valuse of an ADG , how can I do that ? Any sample is appreciated. Now I
can add the string and icon as seperate valuues one at a time, but I need to
add both together.
thanks in advance,
Ann.
below is
The stage isn't available immediately. That's why you get a null error.
With a little trickery:
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=onCreationComplete()
resize=getStageDimensions()
mx:Script
![CDATA[
private function onCreationComplete():void
{
Btw, adding a new topic every few hours that addresses the same issue, but with
a slightly different name, is really bad form.
-TH
--- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote:
The stage isn't available immediately. That's why you get a null error.
With a little trickery:
Why not just use the addedToStage event instead? This will guarantee that stage
is not null.
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
addedToStage=init();
public function init():void
{
stage.addEventListener(Event.RESIZE, resizeHandler);
}
private
Hi Folks,
Well, I took the plunge have Windows 7 64bit, have installed JDK 6 Update
17(64bit) and Eclipse 3.4.
Unfortunately, I have issues installing Flex Builder 3 Eclipse plugin. The
actual install does not report any errors however, once the install is
completed and I launch Eclipse and
Yep, even better.
-TH
--- In flexcoders@yahoogroups.com, ag_rcuren robert.vancuren...@... wrote:
Why not just use the addedToStage event instead? This will guarantee that
stage is not null.
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
addedToStage=init();
public
I use this all the time.
Generally, I am only interested in a few variable values and it is a pain to
have to open the variables pane full screen and then navigate around to see
what each of the variable values are (especially if they are in multiple
instances).
So, what I do is right click
Very nice solution, Valdhor, thank you. I do, however, need it for the very
last row of data (visible or non-visible).
In the meantime, I've added an extra property to my data that will allow me to
get what I need. So, instead of figuring out what label to put on a button by
deciphering
I believe Flex Builder is still only 32-bit, so it needs to run in a 32-bit
Eclipse, using the 32-bit JDK.
On Wed, Jan 6, 2010 at 12:33 PM, Greg Hess flexeff...@gmail.com wrote:
Hi Folks,
Well, I took the plunge have Windows 7 64bit, have installed JDK 6 Update
17(64bit) and Eclipse 3.4.
Why does this test fail? Is there any way to test for equality that ignores
the ordering of elements -- which shouldn't technically matter?
[Test]
public function testXmlEquality():void {
var xml1:XML =
a
b/b
c/c
/a;
var xml2:XML =
a
Hi, I'm trying to implement deep linking via BrowserManager. I've basically
emulated many of the examples on this topic, and I seem to be stuck getting
the BrowserChangeEvent.BROWSER_URL_CHANGE to fire. When I change the URL
fragment in the address bar and hit enter, it does nothing. If I
My app has a light weight start screen that is the first tab in a TabNavigator.
One of the tabs takes longer than I would like to appear when it is first
clicked.
Thanks Alex!
Another issue that I'm running into is that some of the list items are taller
than the height of the list.
Is there a way to make the List control scroll smoothly or another solution to
allow the bottom of those list items to be accessed?
thanks,
g
--- In
Davis Ford wrote:
Why does this test fail? Is there any way to test for equality that
ignores the ordering of elements -- which shouldn't technically matter?
[Test]
public function testXmlEquality():void {
var xml1:XML =
a
b/b
c/c
/a;
I suspect that an Application dispatches a resize event when it is first
created and sized, but before it is onstage, so 'stage' is null when it is
first called.
You could just make resizeHandler() return if stage is null. Or you could delay
listening for resize events until the application
Hi all, My self new to Flex, I am trying to use color picker with
some custom behavior. I am trying to create a button such that if user clicks
that button, color picker (r some list) has to open with 50 colors created by
me(not default colors) in 5 rows then on 6th row there should
Hi Paul,
I don't believe this is correct for ActionScript3. Strict equality is the
=== operator which compares object instances. == should test for
equality.
If you change the test to this...
[Test]
public function testXmlEquality():void {
var xml1:XML =
a
eh..that wasn't supposed to be in there -- copy/paste hackery...
xml1.normalize();
xml2.normalize();
Davis Ford wrote:
Hi Paul,
I don't believe this is correct for ActionScript3. Strict equality is
the === operator which compares object instances. == should test
for equality.
I tried (in Flash)..
var objA:Object = {a:1};
var objB:Object = {a:1};
trace(objA==objB); // false
var
I found a solution:
import mx.utils.ObjectUtil;
Assert.assertTrue(ObjectUtil.compare(xml1, xml2) == 0);
That does the trick.
Regards,
Davis
On Wed, Jan 6, 2010 at 8:20 PM, Paul Andrews p...@ipauland.com wrote:
Davis Ford wrote:
Hi Paul,
I don't believe this is correct for
#1 below sounds way fishy. For performance reasons List based controls
create only those ItemRenderers that would be viewable in the List and maybe
1 or 2 more. As the user scrolls, this set is re-used. What you have done
is bypass this completely by making ALL rows visible and thus 1350
I've spent two days researching and playing with printing in Flex 3.4. I was
somewhat excited to learn this area of Flex which I had not previously explored
but have only one word (for now): Disappointing.
Primarily because there are many, many unresolved defects with various parts of
the
So, I have been studying the flex source and I see a lot of metadata statements
in the component class definitions.
Am I correct in saying that the metadata is there for Flex Builder only? From
what I have read, the metadata is there so that the events, effects, etc, can
be accessed from mxml
This is likely to be rather slow, but if you really need to do a recursive
comparison of XML objects, it's probably reasonable. I don't know of any
built-in operator or method that does deep equality.
Gordon Smith
Adobe Flex SDK Team
From: flexcoders@yahoogroups.com
--- In flexcoders@yahoogroups.com, Nick Middleweek n...@... wrote:
Hi,
Has anyone managed to get this what seems to 'could' be a wonderfull tool
working?
i just get a message in red saying something like Cant evaluate
Thanks for any pointers...
Nick
Maybe this will help...?
Metadata is used to do a variety of things. Generally it affects how the
ActionScript or MXML compilers work. For example, [Embed] metadata tells the
ActionScript compiler to embed an asset such as a JPG. [ResourceBundle]
metadata tells the ActionScript compiler to link a ResourceBundle
Hi Gordon -- thx for the response -- my reason for wanting this is unit
testing only...works fast enough for what I need. I don't do this in any
production code.
Best regards,
Davis
On Wed, Jan 6, 2010 at 10:33 PM, Gordon Smith gosm...@adobe.com wrote:
This is likely to be rather slow, but
hey frnd,
when i'm showing ADG width in %, why it taking more space for last
column,
is any solution?
I want to show same like other columns or fixed width for last column ,
this is sample code :
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
If you have a simple test case that exhibits a problem, file a bug. We
generally try to respond to community input. I don't see a lot of printing
issues on the forums. If you have a custom renderer, make sure it handles
recycling correctly.
That said, we're expecting major upgrades to the
There's a smooth scrolling list example on my blog, but you might find it
easier to do this with the Spark List.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Lots of deeplinking doesn't work if you use IE and file://. Deploy to a server
and try again using http://
Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf
Hey Valdor... Thanks for the tip there.
Have you ever had problems receiving 4th level nested data from an HTTP
Service? We're trying to receive it as e4x or xml but it's coming back as
untyped Objects. I'm guessing this is a bug in the Flex framework...
Cheers,
Nick
2010/1/6 valdhor
50 matches
Mail list logo