[flexcoders] SWF size and Framework swf/swz

2010-08-25 Thread jimmy5804

I have a relatively small swf (~60k) that uses a few Flex 4 classes. 

Even though the linkage type on the app is set to RSLs, and the linkage URLs of 
the major .swz files is set to the default Adobe URLs, the app is still loading 
the 600k framework swz (on every app load) from my server. If I delete the swz 
from my content directory, the app refuses to load. This means I'm taking a 
600k hit on top of my 60k swf which makes the app completely undeployable.

Can anyone offer suggestions on why I might be seeing this behavior? Is it 
something potentially related to the crossdomain.xml file?

TIA



[flexcoders] Re: SWF size and Framework swf/swz

2010-08-25 Thread jimmy5804

Thanks for your help! I thought about that. I was using nightly builds during 
beta, but right now the only installed SDK is the release build and that's all 
Flash Builder shows it can see in the under 'Installed Flex SDKs'. Also, the 
framework .swz being generated is 4.0.0.14159 which is the initial production 
release version. Do I need to be using the 4.1 update?

--- In flexcoders@yahoogroups.com, p...@... Uttarwar pravinuttar...@... 
wrote:

 I think you have not downloaded Release Build of Flex SDK.
 Please make sure that you have downloaded release version and not nighty
 Build.
 
 Thanks  Regards,
 
 Pravin Uttarwar | Perennial Systems
 pravin.uttar...@... | Cell: +91 9371288080 | Tel: +91 (020)
 2421 1286 Ext:2007
 
 
 On 25 August 2010 17:07, jimmy5804 jimmy5...@... wrote:
 
 
 
 
  I have a relatively small swf (~60k) that uses a few Flex 4 classes.
 
  Even though the linkage type on the app is set to RSLs, and the linkage
  URLs of the major .swz files is set to the default Adobe URLs, the app is
  still loading the 600k framework swz (on every app load) from my server. If
  I delete the swz from my content directory, the app refuses to load. This
  means I'm taking a 600k hit on top of my 60k swf which makes the app
  completely undeployable.
 
  Can anyone offer suggestions on why I might be seeing this behavior? Is it
  something potentially related to the crossdomain.xml file?
 
  TIA
 
   
 





[flexcoders] Re: SWF size and Framework swf/swz

2010-08-25 Thread jimmy5804

This is closed. Thanks for the help. For whatever reason, reinstalling the SDK 
fixed the issue.

--- In flexcoders@yahoogroups.com, jimmy5804 jimmy5...@... wrote:

 
 Thanks for your help! I thought about that. I was using nightly builds during 
 beta, but right now the only installed SDK is the release build and that's 
 all Flash Builder shows it can see in the under 'Installed Flex SDKs'. Also, 
 the framework .swz being generated is 4.0.0.14159 which is the initial 
 production release version. Do I need to be using the 4.1 update?
 
 --- In flexcoders@yahoogroups.com, Pr@ Uttarwar pravinuttarwar@ wrote:
 
  I think you have not downloaded Release Build of Flex SDK.
  Please make sure that you have downloaded release version and not nighty
  Build.
  
  Thanks  Regards,
  
  Pravin Uttarwar | Perennial Systems
  pravin.uttarwar@ | Cell: +91 9371288080 | Tel: +91 (020)
  2421 1286 Ext:2007
  
  
  On 25 August 2010 17:07, jimmy5804 jimmy5804@ wrote:
  
  
  
  
   I have a relatively small swf (~60k) that uses a few Flex 4 classes.
  
   Even though the linkage type on the app is set to RSLs, and the linkage
   URLs of the major .swz files is set to the default Adobe URLs, the app is
   still loading the 600k framework swz (on every app load) from my server. 
   If
   I delete the swz from my content directory, the app refuses to load. This
   means I'm taking a 600k hit on top of my 60k swf which makes the app
   completely undeployable.
  
   Can anyone offer suggestions on why I might be seeing this behavior? Is it
   something potentially related to the crossdomain.xml file?
  
   TIA
  

  
 





[flexcoders] crossdomain issues

2010-02-15 Thread jimmy5804

Pretty simple - I have a .swf loaded via http that is accessing data from the 
same server using https via HTTPService. I'm using the 'url' property in the 
HTTPService and not using the proxy.

I have the following crossdomain.xml file in the DocumentRoot of the server:


?xml version=1.0?

cross-domain-policy
allow-access-from domain=* secure=false/
/cross-domain-policy


However, I still get a sandbox error when loading the https data (the error 
indicates that the https load is the problem). The crossdomain.xml file _is_ 
readable and in some debug sessions I've even loaded explicitly it using 
Security.loadPolicyFile().

I'm using a nightly Flex 4 build that's about 2 weeks old. Guidance anyone?

TYVM



[flexcoders] Unwanted web services prompt

2009-08-01 Thread jimmy5804

This is not really a Flex-specific question, but its driving me crazy and I 
haven't found an answer online.

In logging into a 3rd party web service (twitter actually) I get a windows or 
explorer-generated popup login prompt if the first login fails. Anyone seen 
this and know how to disable it?



[flexcoders] Re: Transition only works once

2009-05-20 Thread jimmy5804

Actually, instead of add/remove child in the Sequence, what I meant to say was 
I had tried Add/RemoveChildAction, which as I understand it, is supposed to 
give you control over the ordering of the effect with regard to the 
add/removechild. But... I'll hack around and see what I can do. Thanks again.

--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:

 
 Probably because bottomBox is getting removed before the reverse
 transition plays.  Instead of add/remove child, you could use
 setProperty on visible/includeInLayout or alpha.  Another way would be
 to control visible/includeInLayout in the effectStart or effectEnd
 functions.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, jimmy5804 jimmy5804@ wrote:
 
  Tim, thanks a lot for making the effort to help.
 
  Got partial success. Using heightX properties, I was able to get the
 forward transition to work, but I wasn't able to get the reverse
 transition (not shown in code below) to work using heightX props,
 putting it in a sequence w/ add/remove child, manually setting values,
 or anything else I tried.
 
  So it expands nice and slow, then snaps shut on close. Any other
 ideas? If I have time, I may try doing w/ effects at the AS level to see
 if I can get a better handle on it.
 
  --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
  
   Try resetting the dimensions of bottomBox back to 0 when you change
 to the base state; or use widthFrom/widthTo, heightFrom/heightTo on the
 resize tag.
  
   -TH
  
   --- In flexcoders@yahoogroups.com, jimmy5804 jimmy5804@ wrote:
   
I don't use transitions often, so I may be missing something. The
 transition works fine the first time, but the resize is applied
 instantaneously afterwards.
   
This is part of a VBox-based MXML component.
   
Transition is very simple:
   
mx:transitions
mx:Transition fromState= toState=filterView
mx:Resize duration=500 target={bottomBox}/
/mx:Transition
/mx:transitions
   
The state to which it is applied adds an HBox with several buttons
 to the the parent VBox.
   
mx:states
mx:State id=filterState name=filterView
mx:AddChild relativeTo={topBox} position=after
mx:target
mx:Spacer id=vSpacer height=2/
/mx:target
/mx:AddChild
mx:AddChild relativeTo={this} position=lastChild
mx:target
mx:HBox id=bottomBox width=100%
!-- Several children here--
/mx:HBox
/mx:target
/mx:AddChild
/mx:State
/mx:states
   
Have I done anything particularly dumb here? If not, where should
 I look to start debugging?
   
TIA,
   
  
 





[flexcoders] Transition only works once

2009-05-19 Thread jimmy5804
I don't use transitions often, so I may be missing something. The transition 
works fine the first time, but the resize is applied instantaneously afterwards.

This is part of a VBox-based MXML component.

Transition is very simple:

mx:transitions
mx:Transition fromState= toState=filterView
mx:Resize duration=500 target={bottomBox}/
/mx:Transition
/mx:transitions

The state to which it is applied adds an HBox with several buttons to the the 
parent VBox.

mx:states
mx:State id=filterState name=filterView
mx:AddChild relativeTo={topBox} position=after
mx:target
mx:Spacer id=vSpacer height=2/
/mx:target
/mx:AddChild
mx:AddChild relativeTo={this} position=lastChild
mx:target
mx:HBox id=bottomBox width=100%
!-- Several children here--
/mx:HBox
/mx:target
/mx:AddChild
/mx:State
/mx:states

Have I done anything particularly dumb here? If not, where should I look to 
start debugging?

TIA,




[flexcoders] Re: Transition only works once

2009-05-19 Thread jimmy5804
Tim, thanks a lot for making the effort to help.

Got partial success. Using heightX properties, I was able to get the forward 
transition to work, but  I wasn't able to get the reverse transition (not shown 
in code below) to work using heightX props, putting it in a sequence w/ 
add/remove child, manually setting values, or anything else I tried.

So it expands nice and slow, then snaps shut on close. Any other ideas? If I 
have time, I may try doing w/ effects at the AS level to see if I can get a 
better handle on it.

--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:

 Try resetting the dimensions of bottomBox back to 0 when you change to the 
 base state; or use widthFrom/widthTo, heightFrom/heightTo on the resize tag.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, jimmy5804 jimmy5804@ wrote:
 
  I don't use transitions often, so I may be missing something. The 
  transition works fine the first time, but the resize is applied 
  instantaneously afterwards.
  
  This is part of a VBox-based MXML component.
  
  Transition is very simple:
  
  mx:transitions
  mx:Transition fromState= toState=filterView
  mx:Resize duration=500 target={bottomBox}/
  /mx:Transition
  /mx:transitions
  
  The state to which it is applied adds an HBox with several buttons to the 
  the parent VBox.
  
  mx:states
  mx:State id=filterState name=filterView
  mx:AddChild relativeTo={topBox} position=after
  mx:target
  mx:Spacer id=vSpacer height=2/
  /mx:target
  /mx:AddChild
  mx:AddChild relativeTo={this} position=lastChild
  mx:target
  mx:HBox id=bottomBox width=100%
  !-- Several children here--
  /mx:HBox
  /mx:target
  /mx:AddChild
  /mx:State
  /mx:states
  
  Have I done anything particularly dumb here? If not, where should I look to 
  start debugging?
  
  TIA,
 





[flexcoders] Re: Runs in debug mode, but not release build

2009-05-01 Thread jimmy5804
It's a big project. Most of the skins are programmatic, but I've verified all 
the support graphics for the main project are there. Guess I need to go through 
and check libraries.

I don't have a lot of information as to the cause right now. The logs that I 
have appear normal but nothing shows up when it is executed although the 
process continues to run. It may well be a graphic from a support library.

As far as trace, how do you use that in an export release? I created a file 
logger for our logging infrastructure and I'll see what I can come up with.


--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote:

 Are there any support folders or files missing from the export build?
 
  
 
 long binary search. trace() might be easier and could give you more
 information.
 
  
 
 More information here might help also.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of jimmy5804
 Sent: Friday, May 01, 2009 1:47 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Runs in debug mode, but not release build
 
  
 
 
 
 
 
 
 
 AIR app. Runs fine in debug, but fails to initialize when build is exported.
 After a long binary search I found it fails silently on addition of a
 particular (important) child. Anyone seen anything like this before?





[flexcoders] Re: Runs in debug mode, but not release build

2009-05-01 Thread jimmy5804
For the benefit of people who might search for a similar problem in the 
future...

The program was trying to write a reference file to the 
File.applicationDirectory. This directory is not supposed to be writable. The 
debugger apparently doesn't enforce that, though it is enforced when deployed.

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 There are four combinations to try:  1) debug build in debugger player, 2) 
 release build in debugger player, 3) debug build in release player and 4) 
 release build in release player.
 
 You've told us #1 works.  If #2 fails, trace statements will help.  If your 
 only failure cases are #3 or #4, you'll have to instrument your code to try 
 to find the issue.
 
 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 Of jimmy5804
 Sent: Friday, May 01, 2009 8:43 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Runs in debug mode, but not release build
 
 
 
 
 
 It's a big project. Most of the skins are programmatic, but I've verified all 
 the support graphics for the main project are there. Guess I need to go 
 through and check libraries.
 
 I don't have a lot of information as to the cause right now. The logs that I 
 have appear normal but nothing shows up when it is executed although the 
 process continues to run. It may well be a graphic from a support library.
 
 As far as trace, how do you use that in an export release? I created a file 
 logger for our logging infrastructure and I'll see what I can come up with.
 
 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 Tracy Spratt tracy@ wrote:
 
  Are there any support folders or files missing from the export build?
 
 
 
  long binary search. trace() might be easier and could give you more
  information.
 
 
 
  More information here might help also.
 
 
 
  Tracy Spratt,
 
  Lariat Services, development services available
 
  _
 
  From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On
  Behalf Of jimmy5804
  Sent: Friday, May 01, 2009 1:47 AM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Runs in debug mode, but not release build
 
 
 
 
 
 
 
 
 
  AIR app. Runs fine in debug, but fails to initialize when build is exported.
  After a long binary search I found it fails silently on addition of a
  particular (important) child. Anyone seen anything like this before?
 





[flexcoders] Runs in debug mode, but not release build

2009-04-30 Thread jimmy5804

AIR app. Runs fine in debug, but fails to initialize when build is exported. 
After a long binary search I found it fails silently on addition of a 
particular (important) child. Anyone seen anything like this before?



[flexcoders] Portable way to get hostname in AIR app?

2009-03-31 Thread jimmy5804

... at the risk of asking a dumb question.

Application.application.url doesn't help.





[flexcoders] Re: Portable way to get hostname in AIR app?

2009-03-31 Thread jimmy5804
Ok. I'm not sure the web page option will work for my app. For the shortcut, I 
think I understand how to pass parameters to the app, but I'm not sure how to 
get the client's local hostname in the first place to pass to it.

It seems like a) since this is pretty useful information and b) since every 
modern OS has standard calls to get the hostname, this should be really easy to 
implement and make availabe in AIR. Can anyone from Adobe comment?

--- In flexcoders@yahoogroups.com, Gregor Kiddie gkid...@... wrote:

 We ended up having the shortcut have the url we were aiming at as a
 parameter.
 
 Other solutions include always kicking off the AIR app from a web page
 (and passing the url as a parameter)
 
 InvokeEvent is what you'll be interested for these things, along with
 the Flex API with dealing with AIR files.
 
  
 
 Gk.
 
 Gregor Kiddie
 Senior Developer
 INPS
 
 Tel:   01382 564343
 
 Registered address: The Bread Factory, 1a Broughton Street, London SW8
 3QJ
 
 Registered Number: 1788577
 
 Registered in the UK
 
 Visit our Internet Web site at www.inps.co.uk
 blocked::http://www.inps.co.uk/ 
 
 The information in this internet email is confidential and is intended
 solely for the addressee. Access, copying or re-use of information in it
 by anyone else is not authorised. Any views or opinions presented are
 solely those of the author and do not necessarily represent those of
 INPS or any of its affiliates. If you are not the intended recipient
 please contact is.helpd...@...
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of jimmy5804
 Sent: 31 March 2009 11:52
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Portable way to get hostname in AIR app?
 
  
 
 
 ... at the risk of asking a dumb question.
 
 Application.application.url doesn't help.





[flexcoders] Architecting for extensibility

2009-03-22 Thread jimmy5804
I'm looking for some architecture advise.

My AIR application has the ability to render certain kinds of data, each
of which has a unique string descriptor (e.g. red). I would like to
make it easy for others to add renderers for other kinds of data. To
accomplish this, I created a renderer directory (Object) where the data
descriptor is a key to the class path for the renderer and I planned to
make extensive use of dynamic instantiation - when I ran into red
data, I could just look up the red renderer, instantiate it, etc. My
thinking was that the new developer would just need to create a renderer
that implemented the requiste interface, create an entry in the
directory, and would need very minimal understanding of the rest of the
architecture to get their data to render. But I ran into the problem
described here:
http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-i\
n-actionscript-30/ 
http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-\
in-actionscript-30/%20
If you don't want to read it all, basically you need to make sure the
referenced class has been loaded into your swf before you try to
reference it (at least, that's my understanding). So, in my directory, I
created something that creates and then destroys (for memory
conservation) an instance of each renderer, and now my directory looks
something like this:

public class RendererDirectory {
private var dir:Object { red:com.blah.renderers.MyRenderer,
blue:com.joedata.renderers.BlueRenderer, ...};
// to make sure everything is in .swf
private static function kluge():void {
var a:Array = [new MyRenderer(), new BlueRenderer(), ...];
a = null;
}
public function getRenderer(datakey:String):IMyInterface {
// all error checking omitted for brevity
var classPath:String = dir[datakey];
var classRef:Class = getDefinitionByName(classPath) as Class;
return new classRef();
}
}

I'm looking for advise on whether there is a better way to accomplish my
big picture goal (ease of extensibility) or improve on my current scheme
in some way.

TIA!



[flexcoders] Perplexing regex/replace() issue

2009-03-16 Thread jimmy5804

This seems simple, but I can't figure it out.

I have some input I don't control with a lot of properties that look like 
xx-yyy that I want to camelcase: xxYyy and I'd like to do this with a 
one-line replace() instead of a longer split/join approach. I've tried several 
variations of:


var s:String = t.replace(/-([a-z])/g, $1.toUpperCase());


I've also tried making the second param a function that returns uppercase, but 
replace() doesn't do the group substitution in this case.

Can this be done?



[flexcoders] Re: Perplexing regex/replace() issue

2009-03-16 Thread jimmy5804
Yeah, thanks. mea culpa. didn't read the docs on the function version closely 
enough.

--- In flexcoders@yahoogroups.com, Beau Scott beau.sc...@... wrote:

 Kinda cheated for one line but it works:
 
 var s:String = t.toLowerCase().replace(/-([a-z])/g, function():String {
 return arguments[1].toUpperCase();});
 
 
 
 
 On Mon, Mar 16, 2009 at 11:44 AM, jimmy5804 jimmy5...@... wrote:
 
 
  This seems simple, but I can't figure it out.
 
  I have some input I don't control with a lot of properties that look like
  xx-yyy that I want to camelcase: xxYyy and I'd like to do this with a
  one-line replace() instead of a longer split/join approach. I've tried
  several variations of:
 
  var s:String = t.replace(/-([a-z])/g, $1.toUpperCase());
 
  I've also tried making the second param a function that returns uppercase,
  but replace() doesn't do the group substitution in this case.
 
  Can this be done?
 
   
 
 
 
 
 -- 
 Beau D. Scott
 Software Engineer





[flexcoders] Re: Perplexing regex/replace() issue

2009-03-16 Thread jimmy5804
Yeah, thanks. mea culpa. didn't read the docs on the function version closely 
enough.

--- In flexcoders@yahoogroups.com, Beau Scott beau.sc...@... wrote:

 Kinda cheated for one line but it works:
 
 var s:String = t.toLowerCase().replace(/-([a-z])/g, function():String {
 return arguments[1].toUpperCase();});
 
 
 
 
 On Mon, Mar 16, 2009 at 11:44 AM, jimmy5804 jimmy5...@... wrote:
 
 
  This seems simple, but I can't figure it out.
 
  I have some input I don't control with a lot of properties that look like
  xx-yyy that I want to camelcase: xxYyy and I'd like to do this with a
  one-line replace() instead of a longer split/join approach. I've tried
  several variations of:
 
  var s:String = t.replace(/-([a-z])/g, $1.toUpperCase());
 
  I've also tried making the second param a function that returns uppercase,
  but replace() doesn't do the group substitution in this case.
 
  Can this be done?
 
   
 
 
 
 
 -- 
 Beau D. Scott
 Software Engineer





[flexcoders] Re: Conditional compilation for variable declarations

2009-01-31 Thread jimmy5804
Thanks for the idea. I'm just declaring it as untyped for now and
assigning it in a conditionally compiled block.

--- In flexcoders@yahoogroups.com, Johannes Nel johannes@... wrote:

 abstract factory would also solve this, unless you compile to swc
that is.
 
 On Fri, Jan 30, 2009 at 6:46 PM, jimmy5804 jimmy5...@... wrote:
 
 
  I'm able to use conditional compilation for functions by prefacing
  them with CONFIG::xxx and other blocks by wrapping them in
  if(CONFIG::xxx), but I'm not sure how to do conditional declaration of
  class variables without making the whole class conditional.
 
  If, for example, I have a single SQL class variable in a class that's
  otherwise portable between Flex and AIR, do I need to create separate
  classes for the two frameworks, or is there a convenient way to
  conditionally declare the SQL variable?
 
  TIA
 
   
 
 
 
 
 -- 
 j:pn
 \\no comment





[flexcoders] Conditional compilation for variable declarations

2009-01-30 Thread jimmy5804

I'm able to use conditional compilation for functions by prefacing
them with CONFIG::xxx and other blocks by wrapping them in
if(CONFIG::xxx), but I'm not sure how to do conditional declaration of
class variables without making the whole class conditional.

If, for example, I have a single SQL class variable in a class that's
otherwise portable between Flex and AIR, do I need to create separate
classes for the two frameworks, or is there a convenient way to
conditionally declare the SQL variable?

TIA



[flexcoders] Overlapping interfaces

2008-12-16 Thread jimmy5804
I have a custom class that wants to expose IList and ICollectionView.
Both interfaces define the length parameter and I get an ambiguous
renference to length error when I try to access length. I believe
this is essentially a namespace issue, but I don't know how to solve
it. Suggestions?



[flexcoders] Re: Overlapping interfaces

2008-12-16 Thread jimmy5804
Yeah, I know. First thing I did was to check out the
ListCollectionView code, but didn't see anything obviously special. I
made a test interface stripped down to basics that was just IList,
ICollectionView and one other random property and I still get the
error. I'm not really sure what's up. I'll keep at it and post if I
figure it out.

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Our code (ListCollectionView.as) gets away with this.  Comment out
various sections of code to see if you can isolate the problem.  Maybe
you have a private length as well?
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of jimmy5804
 Sent: Tuesday, December 16, 2008 8:25 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Overlapping interfaces
 
 
 I have a custom class that wants to expose IList and ICollectionView.
 Both interfaces define the length parameter and I get an ambiguous
 renference to length error when I try to access length. I believe
 this is essentially a namespace issue, but I don't know how to solve
 it. Suggestions?





[flexcoders] Re: Overlapping interfaces

2008-12-16 Thread jimmy5804
Ok, reduced to bare bones and it's still there:

package {
   public interface ITest extends IList, ICollectionView {
   function get blah():int;
   }
}

in bare WindowedApplication
// tied to initialization event

private function init():void {
  // obvious runtime error, but exposes the compiler issue
  var x:ITestMe;
  var y:int = x.length;
}

--- In flexcoders@yahoogroups.com, jimmy5804 jimmy5...@... wrote:

 Yeah, I know. First thing I did was to check out the
 ListCollectionView code, but didn't see anything obviously special. I
 made a test interface stripped down to basics that was just IList,
 ICollectionView and one other random property and I still get the
 error. I'm not really sure what's up. I'll keep at it and post if I
 figure it out.
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  Our code (ListCollectionView.as) gets away with this.  Comment out
 various sections of code to see if you can isolate the problem.  Maybe
 you have a private length as well?
  
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 On Behalf Of jimmy5804
  Sent: Tuesday, December 16, 2008 8:25 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Overlapping interfaces
  
  
  I have a custom class that wants to expose IList and ICollectionView.
  Both interfaces define the length parameter and I get an ambiguous
  renference to length error when I try to access length. I believe
  this is essentially a namespace issue, but I don't know how to solve
  it. Suggestions?
 





[flexcoders] Re: Scrolling with custom item renderers

2008-11-24 Thread jimmy5804
minWidth did the trick. thanks very much. add me to the long list of
people who owe part of their sanity to you.

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

 Set minWidth=0 on your component.  You may also need to fix its size
based on its parent's size
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of jimmy5804
 Sent: Friday, November 21, 2008 10:53 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Scrolling with custom item renderers
 
 
 I have a VBox-based custom component (call it 'A') that displays some
 data in a list of windowshade-ish item renderers. My problem is A
 doesn't scroll when its child renderers exceed its dimensions. Here
 are the relevant factors as far as I'm aware:
 
 -scrollpolicy is set to auto (on shows a disabled bar)
 -as far as I can tell, measure() is implemented properly in the item
 renderers.
 - A is nested inside another Box.
 - when I add more children to my A component, the value of
 A.getExplicitOrMeasuredWidth() continues to increase although it
 visually does not.
 
 Because of this last issue, I'm wondering if A is getting clipped by
 it's parent container which has scrollpolicy set to off. If this is
 the problem, how can I show scrollbars on the inner container and not
 on the outer? Do I need to manually size A to match the dimensions of
 its parent?
 
 TIA





[flexcoders] Scrolling with custom item renderers

2008-11-21 Thread jimmy5804

I have a VBox-based custom component (call it 'A') that displays some
data in a list of windowshade-ish item renderers. My problem is A
doesn't scroll when its child renderers exceed its dimensions. Here
are the relevant factors as far as I'm aware:

-scrollpolicy is set to auto (on shows a disabled bar)
-as far as I can tell, measure() is implemented properly in the item
renderers.
- A is nested inside another Box.
- when I add more children to my A component, the value of
A.getExplicitOrMeasuredWidth() continues to increase although it
visually does not.

Because of this last issue, I'm wondering if A is getting clipped by
it's parent container which has scrollpolicy set to off. If this is
the problem, how can I show scrollbars on the inner container and not
on the outer? Do I need to manually size A to match the dimensions of
its parent?

TIA



[flexcoders] Framework RSL and subclassing

2008-07-24 Thread jimmy5804

I have a medium size project and am trying to reduce .swf size. There
are several places in my project where I can either 1) put a bunch of
code in a mx:script tag or included .as file or 2) subclass to make
things look cleaner. In some quick tests, it looks like creating a new
class adds ~80 bytes (plus or minus about 10) to the .swf compared to
putting it in an mxml or script tag.

1) Does this observation seem about right as a general rule?

2) Are there any other considerations for subclassing vs. not
subclassing that relate to .swf size?

Thanks!