[flexcoders] Deep Linking Problems

2008-04-28 Thread Brad Keck
Hello,

I am just having a slew of problems with Deep Linking in Flex 3.0.  
The documentation makes it seem so simple, but nothing seems to work 
as expected.  I've experienced:

-The example code from the documentation not working
-Vastly different behavior between browsers
-URLs failing to update with setFragment()
-The back button not changing the URL after a setFragment()
-The forward button not being enabled after a successful back button
-A myriad of other inconsistencies

So, basically, I'm just wondering if anybody else has had good 
success with deep linking.  Is it simply a buggy feature of Flex at 
this point, or am I really an inept as I seem?  :)  Are there any 
particular gotchas about making this whole thing work that I may be 
missing?  (I have read already that things tend to work better when 
actually deployed on a server, as opposed to run from the IDE.  All 
of my problems are on a deployed app.)

Thank you very much.

-Brad



[flexcoders] Httpstatus from httpservice?

2008-08-22 Thread Brad Keck
I am using an httpservice to retrieve an XML document.  I want to find 
out the httpstatus I am receiving on the call to handle errors. 
(Specifically, I'm looking for a 30x code to handle a redirect if the 
session has timed out.)  

It does not seem that the either the fault or result events from 
httpservice.send() contain this information.  I also see that there is 
an HTTPStatusEvent in flex, but it does not appear that httpservices 
trigger this event.  

Can anyone help?  Thank you.

-Brad Keck



[flexcoders] Re: Date object and daylight saving - need help

2008-09-02 Thread Brad Keck
This is kind of old, but we are running into the same problem.  Can 
you, or someone else, help us figure out how to calculate the real 
offset?  Thanks.

-Brad Keck

--- In flexcoders@yahoogroups.com, reflexactions 
[EMAIL PROTECTED] wrote:

 Not to worry I figured a way to calculate the real offset.
 
 I do think it is really a big flaw in the Date object that Adobe 
dont 
 provide access to this figure even though they know what it is.
 
 tks
 
 --- In flexcoders@yahoogroups.com, reflexactions 
 reflexactions@ wrote:
 
  Need a quick fix for this problem.
  
  When I print a date object it tell me the tiemzone offset is 
GMT-
 0400.
  
  However when I get a date object and call its getTimezoneOffset 
  function I get 5hrs not 4hrs.
  
  The difference is daylight savings and yes I have in my (XPPro) 
 system 
  I have checked to adjust for daylight savings.
  
  The problem this is causing is that some date calcualtions I need 
 to 
  make where I have to adjust for the timezoneoffset are one hour 
off.
  
  Seems odd to me...
  
  But is there a way to find out the correct current tiemzone 
offset 
 i.e. 
  the 4 hrs flex prints rather than the 5 hrs it returns from the 
 method 
  call.
  
  tks
 





[flexcoders] Override drawHighlightIndicator

2008-10-06 Thread Brad Keck
I am having a weird problem.  I have created a custom list class in 
order to customize the highlight behavior of the list.  Everything 
seems to be working great EXCEPT when I use the *mouse wheel* to 
scroll, my highlighting gets off.  (The wrong item in the list is 
highlighted as I roll over items.)

Any ideas of what might be going on here?




Here is my code:

override protected function drawHighlightIndicator(indicator:Sprite, 
x:Number, y:Number, width:Number, height:Number, color:uint, 
itemRenderer:IListItemRenderer):void
{
var g:Graphics = Sprite(indicator).graphics;
g.clear();
g.beginFill(color);
g.drawRoundRect(x,y+8,width-10,height-16,20,20);
g.endFill();
}


And for comparison, here is the code in listBase.as:

protected function drawHighlightIndicator(indicator:Sprite, x:Number, 
y:Number, width:Number, height:Number, 
color:uint, itemRenderer:IListItemRenderer):void
{
var g:Graphics = Sprite(indicator).graphics;
g.clear();
g.beginFill(color);
g.drawRect(0, 0, width, height);
g.endFill();

indicator.x = x;  (I have tried adding these lines in,
indicator.y = y;   but they just screw things up bad.)
}





[flexcoders] Locale Resource Problem Compiling Automation with Maven

2009-02-13 Thread Brad Keck
 I am trying to compile my code with automation libraries so that it
can be tested with silk.  Currently, I am able to do this without 
trouble in Flex Builder using this command line argument: 
-include-libraries ...\automation.swc ...\automation_agent.swc 
...\FlexTechDomain.swc  (... represents the full path on my local
machine)   However, we have continuous integration using a maven build
so I am  trying to get it to build that way.  When I do so, however, I
am  getting these error messages:  [ERROR] Unable to resolve resource
bundle automation for  locale en_US. [ERROR] Unable to resolve
resource bundle automation_agent for  locale en_US.  Any clue why
this is?  Here are the dependencies in my pom:  dependency   
groupIdcom.adobe.Flex.sdk/groupId   
artifactIdautomation_agent/artifactIdtypeswc/type   
version3.0.0/versionscopeinternal/scope  /dependency
dependency   groupIdcom.adobe.Flex.sdk/groupId   
artifactIdautomation/artifactIdtypeswc/type   
version3.0.0/version   scopeinternal/scope  /dependency
dependency   groupIdcom.adobe.Flex.sdk/groupId   
artifactIdFlexTechDomain/artifactIdtypeswc/type   
version3.0.0/versionscopeinternal/scope  /dependencyThank
you,-Brad Keck


[flexcoders] Re: Override drawHighlightIndicator

2009-02-15 Thread Brad Keck
--- In flexcoders@yahoogroups.com, Brad Keck bradley_k...@... 
wrote:

 I am having a weird problem.  I have created a custom list class in 
 order to customize the highlight behavior of the list.  Everything 
 seems to be working great EXCEPT when I use the *mouse wheel* to 
 scroll, my highlighting gets off.  (The wrong item in the list is 
 highlighted as I roll over items.)
 
 Any ideas of what might be going on here?
 
 
 
 
 Here is my code:
 
 override protected function drawHighlightIndicator
(indicator:Sprite, 
 x:Number, y:Number, width:Number, height:Number, color:uint, 
 itemRenderer:IListItemRenderer):void
 {
 var g:Graphics = Sprite(indicator).graphics;
 g.clear();
 g.beginFill(color);
 g.drawRoundRect(x,y+8,width-10,height-16,20,20);
 g.endFill();
 }
 
 
 And for comparison, here is the code in listBase.as:
 
 protected function drawHighlightIndicator(indicator:Sprite, 
x:Number, 
 y:Number, width:Number, height:Number, 
 color:uint, itemRenderer:IListItemRenderer):void
 {
 var g:Graphics = Sprite(indicator).graphics;
 g.clear();
 g.beginFill(color);
 g.drawRect(0, 0, width, height);
 g.endFill();
 
 indicator.x = x;  (I have tried adding these lines in,
 indicator.y = y;   but they just screw things up bad.)
 }


In case anybody ever stumbles on something similar, I figured out the 
problem.  I needed to match the overridden function more closely.  
Here was my final code that worked correctly:

override protected function drawHighlightIndicator(indicator:Sprite, 
x:Number, y:Number, width:Number, height:Number, color:uint, 
itemRenderer:IListItemRenderer):void
{   
var g:Graphics = Sprite(indicator).graphics;
g.clear();
g.beginFill(color);
g.drawRoundRect(0,0,width-10,height-16,20,20);
g.endFill();

indicator.x = x;
indicator.y = y+8;
}