[flexcoders] Problem with using LocalConnection.domain on domain with special characters

2009-11-02 Thread bjorn
I'm using LocalConnection.domain to get the current domain - however I ran
into a problem when the domain name has special characters (in my case
moteklær.no http://xn--moteklr-rxa.no)..

In IE it will return moteklær.no http://xn--moteklr-rxa.no
In Firefox it will return moteklÁ|r.no
In Chrome it will return xn--moteklr--j9a.no

What I need is what IE returns ..

bjornbjorn
-- 

http://twitter.com/bjornbjorn


[flexcoders] Re: Combobox like on http://www.bombaysapphire.com

2009-08-11 Thread Bjorn Schultheiss
I'd say its custom.
Really nice though.

--- In flexcoders@yahoogroups.com, yonghan79 yongha...@... wrote:

 Hi all,i wonder does anyone ever before create combobox like the one
 here  bombaysapphire.com born detail combobox
 http://www.bombaysapphire.com  .What did the creator used?Thanks a
 lot..





[flexcoders] Re: Bitmap downsampling

2009-07-02 Thread Bjorn Schultheiss
Can't believe this cost me 9 hours of brain time and the answer was in a 
constant all along.

StageQuality.BEST

Where's the documentation for this
No-one is using, not even Aviary.


thanks anyway Timmaay..


--- In flexcoders@yahoogroups.com, Tim Rowe tim.r...@... wrote:

 Bjorn,
 Does the current method you're using appear to have any anti-aliasing at all?
 
 In the past, resizing with Image using img.resize((height, width), 
 Image.ANTIALIAS) (where img is mx.controls.Image) has worked - I'm sure 
 there'd be a similar method for BitmapData.  Of course, if you're not 
 specifying antialiasing and the method call doesn't assume it by default, 
 then yeah, you're going to get horrible image quality on downsize as a 
 typical algorithm will pick nearest-neighbor to the new target pixel.
 
 --Tim
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Bjorn Schultheiss
 Sent: Thursday, 2 July 2009 2:34 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Bitmap downsampling
 
 
 
 
 Hi,
 
 I'm having a lot of trouble with down-sampling a bitmapData.
 
 I tried the smoothing option first
 
 public function produceResizedBitmapData(image:DisplayObject, 
 transform:Matrix):BitmapData
 {
 var temp:BitmapData = new BitmapData(image.width, image.height, true, 
 0x00FF);
 temp.draw(image);
 
 var clone:BitmapData = new BitmapData(image.width*transform.a, 
 image.height*transform.d, true, 0x00FF);
 clone.draw(temp, transform, null, null, null, true);
 
 temp.dispose();
 return clone;
 }
 
 except the quality was poor, once the image was of a certain size.
 For example scaling a 2500px image down to 200px.
 
 I've tried using clevrLib plus a pixelBender bilinear sampler but no go.
 I've noticed it works in picnik so it must be possible.
 
 Can anyone push me in the right direction.





[flexcoders] Bitmap downsampling

2009-07-01 Thread Bjorn Schultheiss
Hi,

I'm having a lot of trouble with down-sampling a bitmapData.

I tried the smoothing option first

public function produceResizedBitmapData(image:DisplayObject, 
transform:Matrix):BitmapData
{
var temp:BitmapData = new BitmapData(image.width, image.height, true, 
0x00FF);
temp.draw(image);

var clone:BitmapData = new BitmapData(image.width*transform.a, 
image.height*transform.d, true, 0x00FF);
clone.draw(temp, transform, null, null, null, true);

temp.dispose();
return clone;
}

except the quality was poor, once the image was of a certain size.
For example scaling a 2500px image down to 200px.

I've tried using clevrLib plus a pixelBender bilinear sampler but no go.
I've noticed it works in picnik so it must be possible.

Can anyone push me in the right direction.



[flexcoders] Is SDK 3.4.0 a stable release?

2009-06-04 Thread Bjorn Schultheiss
Its bundled in the 4 beta but i cant find any documentation or a changes list 
for it.



[flexcoders] Re: GoogleMat� Sample Application

2009-06-04 Thread Bjorn Schultheiss
Would be nice with flex 4 and catalyst : )

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

 
 Hi all,
 
 For any of you interested in learning more about the Mat� framework,
 I've created a sample http://timothyhoff.com/blog/  that's publically
 available.  It's a simple AIR application, but hopefully those that want
 to learn more about MVC, will get some benefit out of it; especially
 those that engaged in the recent discussions concerning VO's.
 
 Cheers,
 -TH





[flexcoders] Re: GoogleMat� Sample Application

2009-06-04 Thread Bjorn Schultheiss
Yeah that's pretty cool.
Cant wait to give catalyst a crack.


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

 
 Coming, but the only thing that will be different will be the view code.
 :)
 
 -TH
 
 --- In flexcoders@yahoogroups.com, Bjorn Schultheiss
 bjorn.mailinglists@ wrote:
 
  Would be nice with flex 4 and catalyst : )
 
  --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
  
  
   Hi all,
  
   For any of you interested in learning more about the Mat�
 framework,
   I've created a sample http://timothyhoff.com/blog/ that's
 publically
   available. It's a simple AIR application, but hopefully those that
 want
   to learn more about MVC, will get some benefit out of it; especially
   those that engaged in the recent discussions concerning VO's.
  
   Cheers,
   -TH
  
 





[flexcoders] Re: Flex Framework Cache Statistics

2009-05-14 Thread Bjorn Schultheiss
good question.
I would also like to know

--- In flexcoders@yahoogroups.com, Nayan Savla nayansa...@... wrote:

 Hi All,
 
 I am just wondering if there is some data on the percentage of Flash
 players which would already have a the flex framework cache. Our
 application without the cache is 456Kb and when i use framework
 caching its 256Kb and the swz file is around 500kb.
 
 In this scenario if the user doesn't already have the framework
 cached, it won't make any sense to use framework caching. We don't
 have a high percentage of returning users yet.
 
 So if there is any data which gives an idea about the percentage of
 Flash players out there with the Flex framework cache, it will be
 really helpful.
 
 Thank you
 Nayan





[flexcoders] Re: Are you using the Marshall Plan?

2009-05-06 Thread Bjorn Schultheiss
Our current Modules are all in sdk 3.3
So far all is good.

We hope that if we decide to introduce modules later down the track the were 
solely built using sdk 4+ that this would not be painful.

We hope that we will not have to use the 4+ sdk to compile our 3.3 modules 
against in this scenario?


Have I been to vague? even if this is not the issue you were directly referring 
to?


Thanks,

Bjorn

--- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote:

 I wouldn't say there's an exact methodology.  We have some elements of agile 
 (like iterations, unit tests, ability to respond to feedback and adjust), but 
 as a platform we also need to make sure we have specifications, assigned 
 Quality Engineers, schedules, etc.  So if you're looking for we use scrum 
 you won't get that, it's a combination of practices necessary for a team that 
 works with a large number of stakeholders.
 
 Matt
 
 
 On 5/6/09 12:10 PM, Vivian Richard kanps...@... wrote:
 
 
 
 
 
 
Matt just a question regarding your software development process-
  what exact methodology do you guys(you flex team) follow to develop
  the Flex platform?
 
 On Wed, May 6, 2009 at 1:23 PM, Matt Chotin mcho...@... 
 mailto:mchotin%40adobe.com  wrote:
 
 
  Are you building apps in a modular fashion where those modules need to
  support different Flex versions? Do you have nightmares where Alex is
  explaining SecurityDomains and ApplicationDomains and
  SWFLoader.loadForCompatibility?
 
  Please let me know (email me at mcho...@... mailto:mchotin%40adobe.com ), 
  we're trying to evaluate
  some pain points and whether I need to bribe the Player team to solve them
  ASAP or if it can wait a release.
 
  Matt
 
 





[flexcoders] Re: create a thumbnail dynamically from large image using flex

2009-04-17 Thread Bjorn Schultheiss
--- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote:

 any help guys?


http://www.brooksandrus.com/blog/2009/03/11/bilinear-resampling-with-flash-player-and-pixel-bender/



[flexcoders] Re: New Adobe forums coming!

2009-04-08 Thread Bjorn Schultheiss
the threading not even working in gmail.

a subject prefix would be nice aswell [adobeflexforum] or something, like 
[flexcoders]

--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote:

 --- In flexcoders@yahoogroups.com, Paul Hastings paul.hastings@ wrote:
 
   As for threading, do you know which header is missing?  I notice that 
  
  speaking of bunnies:
  
  http://jochem.vandieten.net/2009/03/31/the-new-adobe-forums-unfulfilled-potential/
 
 
 If the only thing that they have to do to enable this for nntp is replace the 
 email header with an nntp header, why don't they just give us back nntp?
 
 I'm really curious about what's been going on on the Flex forum, but not 
 curious enough to put myself through a web interface or wind up with 
 thousands of e.mails.





[flexcoders] Re: New Adobe forums coming!

2009-04-08 Thread Bjorn Schultheiss
Who pays you to spend 10-20 hours a week?

How do you afford this luxury?



--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote:

 --- In flexcoders@yahoogroups.com, Sam Lai samuel.lai@ wrote:
 
  I'm not on the forums, but they should be sending out the mailing-list
  header in each email which allows you to create a filter to apply
  labels to in Gmail.
 
 If I am not interested in using a web interface to visit a forum, why would I 
 be interested in using a web interface to get the e.mails that are being sent 
 instead of enabling nntp?
 
 NNTP automatically handles threading and putting the groups into their own 
 separate folders, so it feels to me like Adobe has scrapped something that 
 worked well for power forum users, and replaced it with something that's only 
 going to be usable for occasional users.
 
 I'm actually thrilled to pieces with the change, because I used to spend 
 10-20 hours a week reading and responding to posts on there, and now I have a 
 huge chunk of time left every day that I didn't have before.
 
 -Amy





Re: [flexcoders]Where does my SWF gain it's weight?

2009-04-02 Thread bjorn
Embedding fonts is a major one ...
- bjorn

2009/4/2 Gregor Kiddie gkid...@inpses.co.uk

I don’t think FB will generate modules reports for you, and I certainly
 cannot see any options that would.

 Can I suggest using ANT to compile your app? It gives you much more
 flexibility for precisely this sort of reason.

 The alternative is to run mxmlc from a CLI and specify all the parameters
 yourself as a once off to get the report.



 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

 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...@inps.co.uk
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Guy Morton
 *Sent:* 01 April 2009 20:28
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders]Where does my SWF gain it's weight?



 FlexBuilder



 How can I get individual reports? There's only one spot where I can request
 the link report, afaik.



 Guy

 




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] Re: New Adobe forums coming!

2009-04-02 Thread Bjorn Schultheiss
Will the forums replace flexcoders?


--- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote:

 Hi all,
 
 If you've been using the Adobe forums via the web interface recently you
 probably saw notices that we're introducing a huge upgrade to the forum
 system.  We're combining the user-to-user forums (adobeforums.com) and the
 adobe.com forums into a single forum system.  We're going to have some great
 features in there like email participation, RSS feeds, moderation supported
 by community members (on specific forums, if appropriate), better text entry
 support (including some levels of code formatting), and user ratings.  This
 has me pretty excited as I think it will be a huge improvement over what we
 have.
 
 The forums are going to be down starting on Friday at 3pm PDT so we can
 migrate the last 36 months of content over to the new system.  We expect the
 new system to come up by Monday.  Once they're up I hope folks will check
 things out and become active participants.  I'll be curious to see what you
 think, I'm hoping we might even look into combining some of our separated
 forums under the system if it can meet folks' usability needs.
 
 So stay tuned!
 Matt





[flexcoders] Re: Ribbon in FLEX

2009-04-01 Thread Bjorn Schultheiss
Agreed..

Welcome flexcoders-scott-barnes
http://groups.yahoo.com/group/flexcoders-scott-barnes

I didn't really feel like it fit under the tech category so i placed it under 
online relationships.

Enjoy

We now have a place for all of our Scott Barnes loves Adobe conversations.




--- In flexcoders@yahoogroups.com, Maciek Sakrejda msakre...@... wrote:

 Can we perhaps have a separate flexcoders-scott-barnes list to discuss
 whether or not Scott Barnes should be allowed to post to flexcoders and
 to what extent? Every post by Scott generates three to five posts
 discussing whether or not his commentary/evangelism is welcome
 here--this is unarguably more off-topic noise than his actual
 contributions.
 
 -Maciek
 
 
 -Original Message-
 From: Cole Joplin cole_jop...@...
 Reply-to: flexcoders@yahoogroups.com
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: Ribbon in FLEX
 Date: Wed, 1 Apr 2009 14:41:10 -0700 (PDT)
 
  More importantly, I have a concern. There is plenty of room in RIA and
  Microsoft-oriented forums and groups to make their case. I'm even fine
  with some open debate in Flexcoders. What I don't want to see is
  Microsoft's Rich Platforms Product Manager, let alone other
  Microsofties, spamming our Flex group with spin on thread after thread
  after thread. 
  Given the traffic on this list, I hardly think that the 2-3 on-topic
 posts I've seen from Scott in the past week classify as spam.  
 -- 
 Jeffry Houser, Technical Entrepreneur
 
 Jeffry, no fair editing out the next sentence:
 
 More importantly, I have a concern. There is plenty of room in RIA and
 Microsoft-oriented forums and groups to make their case. I'm even fine
 with some open debate in Flexcoders. What I don't want to see is
 Microsoft's Rich Platforms Product Manager, let alone other
 Microsofties, spamming our Flex group with spin on thread after thread
 after thread. I'm not saying we are there, I'm saying I'm concerned
 about it. Just reading the language, the last couple of posts are
 certainly exploring that territory. I think there are more appropriate
 venues for that than Flexcoders.
 
 Being on-topic does not change the nature of the content. Take the third
 example. Looking over the body of threads of this group, I can't recall
 seeing a nice bullet-formatted explanation like the one offered by Scott
 of why IE does not want to support SVG. I'm not saying this was a
 copy-paste thing, but it is visually very different. Adobe, Microsoft,
 and others have plenty of propoganda (or spam) posts, and no one is
 arguing that point. But I'm not going to pretend this particular content
 is of the same casual nature of the posts typical members of this group
 make. Scott uses Microsoft's participation in standards bodies and
 knowledge of gui research that clearly expresses an authority posture to
 legitimize his point. The typical posts here are overtly subjective
 developer opinions taken with a grain of salt. Clearly not the same
 content. 
 
 Secondly, this is not a response from a Flex developer, doing Flex stuff
 every work day. (...imagining Scott with a Flex sticker on his laptop as
 Steve Ballmer walks by...) This is a corporate-sounding explanation,
 from actual Microsoft management, on an Adobe Flex group, suggesting we
 use ribbons in Flex, ignore SVG and thank Microsoft for their h.264
 standards compliance. Any part of that sentence not accurate? I'm sure
 Scott is not programming in Flex, and could not possibly be confused as
 a member of the Flex community or an objective observer. Therefore, his
 responses in this group must be viewed in the approriate context, in a
 truthful light. Clearly not a typical poster. 
 
 If Flexcoders' threads become an active corporate information outlet for
 Adobe competitors, I don't think that's a good thing for the group. That
 is my point, and I think it's a perfectly legitimate one.





[flexcoders] Re: Ribbon in FLEX

2009-03-30 Thread Bjorn Schultheiss
Good point,

Its difficult in an application with so many functions though.

Take CS4, the tools panel in Photoshop seems to work for trained designers, but 
when it got introduced into Flash CS4 with the collapsed panels, its difficult 
to know which icon to click when they're not all familiar.

Personally i dont think most web applications should borrow their design from 
MS Office. 
Although the UI may be familiar to the user base, a web application can usually 
be made more simple by restricting functionality related to the task at hand. 
eg, thermo's HUD.

Mobile UX designers seem to do a good job at this.
Take the IPhone. I prefer less obvious, more intuitive controls over a 
cluttered workspace any day.



--- In flexcoders@yahoogroups.com, Gleb Dolgich gleb...@... wrote:

 Ribbon is not a good UI, IMHO. It  comes from Microsoft's idea that  
 every command must have a corresponding icon, which in the past made  
 for some of the most cluttered UIs out there. It's really hard to find  
 what you need in the new Office ribbons, and I would think twice  
 before following this trend. If you feel you need a ribbon in your  
 application, maybe it's time to rethink your UI.
 
 -- 
 Gleb Dolgich
 Twitter: @gbd
 Web: http://www.pixelespressoapps.com
 
 On 30 Mar 2009, at 20:41, Scott Barnes wrote:
 
  Just a note. The true power of Ribbon isn't necessarily just a tab/ 
  hbox navigation, it's also about context in that the navigation  
  reacts to elements you may have with your application. Thus  
  producing contextual sensitive additional menu items where the end  
  user invokes sensitive areas.
 
 
 
 
 
  On Fri, Mar 13, 2009 at 1:11 AM, Thibaud Van Vreckem thibaudm...@... 
   wrote:
 
  I know I could do it using tabs and panels, but an existing FLEX  
  version could save me a lot of time.
 
  that ribbon design  is a perfect example of what flex shines for.
  it's nothing more than tabs and canvas/Hbox panels. that's probably  
  about 5 sec setup.
  I'm not sure I understand what you would you need a component for ..
 
  On Fri, Mar 13, 2009 at 9:29 AM, Claudio M. E. Bastos Iorioselecter...@... 
   wrote:
 
  Thanks for your answer and links.
 
  The silverlight version looks really great. Check this online demo  
  (silverlight 
  required):http://silverlight.services.live.com/invoke/60108/SilverlightRibbon/iframe.html
 
 
  I�m not trying to copy exactly the ribbon. Just the concept.
 
  I know I could do it using tabs and panels, but an existing FLEX  
  version could save me a lot of time.
 
  If I don�t find any FLEX version, the silverlight version will help  
  me a lot, thanks.
 
  I wish I could use silverlight + .NET, but this is an AIR project L
 
 
 
  __
 
  Claudio M. E. Bastos Iorio
 
 
 
  From: flexcod...@yahoogroups.com[mailto:flexcod...@yahoogroups.com]  
  On Behalf Of Sam Lai
  Sent: Friday, March 13, 2009 3:53 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Ribbon in FLEX
 
 
  http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL100796341033#2
 
  Kind of like the toolbar for picking controls in Adobe Dreamweaver
  (unless they've changed it in recent versions).
 
  Unfortunately I haven't heard of any Flash implementations, only
  Silverlight implementations. You could implement it yourself using a
  TabNavigator and Panel controls inside each tab for groups, and
  buttons inside them. It's the styling that will be a pain - the
  official specs are available from Microsoft for free though, with some
  conditions attached
  (http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also
  use the images and even code if you know XAML from the Silverlight
  version - http://silverlightribbon.codeplex.com/
 
  Personally I'd be making my own interpretation of the ribbon control
  instead of following the Microsoft version to the dot, especially
  seeing as they have changed a few bits in Windows 7 which will
  probably filter down to Office in Office 2010 (e.g. the confusion with
  the File menu - the Orb in the top corner is now gone).
 
  2009/3/13 Tracy Spratt tspr...@...:
   I am not familiar with that control, can you describe it?
  
  
  
   Tracy Spratt,
  
   Lariat Services, development services available
  
   
  
   From:  
  flexcod...@yahoogroups.com[mailto:flexcod...@yahoogroups.com] On
   Behalf Of Claudio M. E. Bastos Iorio
   Sent: Friday, March 13, 2009 2:13 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Ribbon in FLEX
  
  
  
   Hi,
  
   Is there any component (free or paid) similar to the office 2007  
  ribbon
   control?
  
  
  
   TIA
  
  
  
   __
  
   Claudio M. E. Bastos Iorio
  
  
  
  
 
 
 
 
 
 
 
 
  -- 
  Regards,
 
  Scott Barnes
  Rich Platforms Product Manager
  Microsoft.
 
  http://blogs.msdn.com/msmossyblog
 
 
 





[flexcoders] Re: I want to use Flex Builder 3 to develop Flash Games

2009-03-30 Thread Bjorn Schultheiss
Using swc's for your assets is great because it it also makes compiling a lot 
quicker.

With organisation i would suggest a few more categories.

 - assets
 - component (eg. spaceship) logic
 - component factories.
 - main
 - main factories
 - main logic

these separate swcs/swfs make your compiling time even quicker.
The factories are basically used to instantiate everything your main game will 
require.


Bjorn

--- In flexcoders@yahoogroups.com, Axonn theax...@... wrote:

 
 Hi Doobie!
 
 You said:
 You might want to organize things differently.  Assuming that Game.as is 
 your main class that you compile for the game, you may not want to 
 compile this with Flash if you're trying to use Flex Builder.
 
 The way I organize is to break down my stuff into 2 categories - the 
 main game, and the objects/assets used by the game.
 
 Since yesterday, I guess I found a bit of balance! I found a thread on the
 FlashDevelop forum which goes something like this (I'm just telling you the
 main idea): You have Game.swc. You then do this:
 
 public class Game_New extends Game
 {
 public function Game_New()
 {
   super();
   trace('And here, I can add my component-related code for Game.swc');
 }
 }
 
 So as you can see, this way we can modularize code PER-COMPONENT. This is
 the perfect way for me: I can code stuff for each component without actually
 going into Flash. I can modularize my component-related code for each SWC
 and I also can have the main compiled class contain the main logic.
 
 You said:
 There is no way you'll build a game 
 even in the Flash IDE without grouping your art into some form of 
 Movieclip or Sprite.
 
 I've been doing computer programming for 11 years now (C#, C++, VB6, PHP),
 so I know what you're saying and I agree completely. I even did ActionScript
 quite a lot, but that was 5 years ago and it was AS 1.0, so it's like...
 another lifetime *laugh*. But no, I wasn't even remotely thinking to work in
 such a disorganized way! My designer has about 5 years of Flash behind so
 she knows her shit ::- D. But even so, of course I already am establishing
 the hierarchical structure of the assets with her. There's no way a good
 project would live without lots of good and planned order!!! For example if
 you have planet, space ship, man and helmet, there would be no way
 in hell I want them lying on the stage for me to stich up together. That
 would be a huge waste of time indeed ::- D.
 
 
 Axonn.
 
 
 ---
 The objects and assets I use are usually pretty simple.  I like these as 
 SWCs because I can give them a little logic, and maybe a animated 
 timeline if need be.  Typically if you keep these simple, you'll rarely 
 have to touch the code, and just have to update with any art changes.
 
 The main game class, however (what I'm assuming you're calling Game.as), 
 is something that you'll update constantly throughout the lifecycle of 
 your game.  So this is easier to leave as just some code, and don't 
 compile into a SWC, just let Flex compile with each build of the game.
 
 You can organize stuff however you like though - you could completely 
 ignore what I said, there's no right way to do it.  The above just 
 happens to be what works for me.
 
 You also talked about your artist not liking having to dig into 
 movieclips and symbols in the library.  Honestly, they should really 
 learn some organization.  Movieclips are the basic building blocks for 
 interactivity in the Flash IDE.  There is no way you'll build a game 
 even in the Flash IDE without grouping your art into some form of 
 Movieclip or Sprite.
 
 If your artist can only draw on the main stage, it'll end up being your 
 job to figure out how to organize things into the movieclips as you need 
 them and just do the production work yourself.  The downside of this, is 
 having to do this production work everytime the art gets updated.  I've 
 been through this it's not fun.  It's easier to do a bit of pre-planning 
 surrounding your game and get a dialog going with your artist on how to 
 best organize the assets.  If you both stick to the plan, they can work 
 in Flash independently and just give you an updated SWC every so often 
 while you work in Flex Builder, updating the logic surrounding the game.
 
 But like I said - people prefer different stuff - I'm sure once you get 
 a little experience with this workflow, you'll have your own opinions.
 ben
 
 Axonn wrote:
 
 
  Hi Doobie and thanks for your answer!
 
  I just managed to get my first SWC into Flex ::- D. *rejoices*. However, I
  can't do anything with it ::- (... I have this Game.swc. In CS3, I set
  Game.as to its class. Game.as is in the same folder as Game.swc. After
  importing it in Flex, I modified Game.as. I added a trace. But nothing
  shows when I run it with Flex ::- ( ... please don't tell me I need to
  recompile the SWC if I modify the AS. As far as I understood so far that's
  the whole thing

[flexcoders] Re: Flex Builder Compiler Performance Benchmarking

2009-03-25 Thread Bjorn Schultheiss
How long has it been since the compile time has been taking that long?

--- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote:

 We clearly need to see your application and understand your system 
 configuration.  This is obviously something going very wrong, I can't imagine 
 your compilation taking more than 30 seconds, and even that would hopefully 
 be very high.
 
 Can you provide the source for your app to us (you can mail me offlist)?  
 Also send your system specs.
 
 Matt
 
 
 On 3/25/09 8:07 PM, edlueze edlu...@... wrote:
 
 
 
 
 Hi Folks:
 
 Can somebody tell me what a reasonable compile-time for a Flex Application 
 is? A clean build for my application will take about 2 hours, and an 
 incremental compile after I've changed several files will often take an hour. 
 If I've only changed one file then an incremental compile will usually take 
 less than a minute.
 
 I'm using Flex Builder 3.0 in Eclipse and it would be typical for me to see 
 the same error message repeated a dozen times (presumably the compiler has 
 passed through the same file that many times).
 
 I was new to Flex when I started this project and I've been working on it for 
 about 6 months. I have no idea how many lines of code I've got, but how big 
 could it be if it's only been me working on it?! There are about 100 files of 
 all sorts and I've cleared out most of the other projects.
 
 After reading others complain about compilation times of only 40 seconds (my 
 dream!) I started getting worried that I've fundamentally botched the way 
 I've set things up. Any feedback would be very welcome!
 
 Thanks,
 
 Ted.





[flexcoders] Re: Modules, Cairngorm and Garbage Collection

2009-03-25 Thread Bjorn Schultheiss
Hey Jeff,


I did this in an app I built early last year.

Basically its like a tearDown in a unit test.

The trick is it has to work top down.
You have to reset child module model data,
prior to resetting parent module model data,
prior to shell model date.
That way hopefully your views are refreshed.

That app was cairngorm and used modules.
it also helps to remove the CairngormEventDispatcher singleton.

Basically we never unloaded.
We just made sure the data was fresh.

Even with the profiler it is near impossible to keep track of all your 
references, even without Cairngorm.


Bjorn


--- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... 
wrote:

 Bjorn,
 
 It's not ignorant if it is true.  And it seems like retro-fitting
 Cairngorm to support modules is a work in progress.  
 
 I came across a blog posting where Alistair spoke of better support for
 modules in Cairngorm in the future, but it looks like there's been no
 published evolution of Cairngorm in a couple of years.  Meanwhile
 PureMVC seems to have leapfrogged Cairngorm in this department.
 Unfortunately, I don't think migrating my app to PureMVC is an option at
 this point.
 
 So the question becomes whether it is worth it.  My app is currently
 built to unload modules when the user logs out.  The concept is that
 when someone logs in, in a particular app instance, they will get a
 completely fresh data model, fresh set of modules based on their
 profile, etc. The quick and dirty solution is to close down the instance
 on logout.  That would be expeditious, but it bugs me that I'd have to
 do that.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Bjorn Schultheiss
 Sent: Tuesday, March 24, 2009 7:50 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Modules, Cairngorm and Garbage Collection
 
 
 Here's my ignorant statement for the week.
 
 Having a module that is built using Cairngorm unload cleanly is not
 worth the effort required to make it work.
 
 
 
 
 --- In flexcoders@yahoogroups.com, claudiu ursica the_braniak@
 wrote:
 
  I'm loading module via a command, so that it can be loaded form 
  various places... So far I have used a Module Loader... And I use 
  interfaces foe communicating with the modules and the shell. I don't 
  know how you work with module but you can inject your pieces of data 
  from the mx:app in the loader and into module when the as soon as the 
  ready event fires. U can also use BindingUtils to set bindings which 
  in turn returns a change watcher. use that to call unwatch upon when 
  module unloads and so you make sure you performed celanup and 
  unbinding before unload ...
  
  Claudiu
  
  
  
  
  
  From: Battershall, Jeff jeff.battershall@
  To: flexcoders@yahoogroups.com
  Sent: Tuesday, March 24, 2009 10:47:22 PM
  Subject: RE: [flexcoders] Modules, Cairngorm and Garbage Collection
  
  
  Thanks
  Pedro,
   
  As I
  said in my previous post, I'm also wondering about the effect of a
 module's 
  component consuming a dataprovider via binding to a singleton object
 and 
  the possibility of that preventing GC.  I guess this touches on the
 whole 
  issue of best practices of using ModelLocator with modules.  PureMVC
 has 
  it's 'Pipes' utility to inject data objects into a module, but I'm
 using 
  Cairngorm and I'm wondering how something similar could be achieved
 with that 
  framework. 
   
  Jeff
  -Original Message-
  From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. 
  com] On Behalf Of Pedro Sena
  Sent: Tuesday, March 24, 2009 3:06 PM
  To: flexcod...@yahoogro ups.com
  Subject: Re: [flexcoders] Modules,  Cairngorm and Garbage Collection
  
  The GC is not called when  the component is remove from the screen.
  
  Most people think this occurs,  but it's not truth.
  
  The GC is called when its required, but WHEN it is  required is 
  another point.
  
  If you are using just a small piece of your  available mamory, don't 
  expect the GC to be  called.
  
  Regards,
  
  PS
  
  
  On Tue, Mar 24, 2009 at 2:09 PM, claudiu ursica the_braniak@ 
  yahoo.com wrote:
  
  Hi, why do you bind module to the model locator?
  
  If by any  chance you have embedded CSS in the module it won't garbage
 
  collect  ...
  
  Claudiu
  
  
  
  
  
   From: Battershall, Jeff  jeff.battershall@ dowjones. com
  To: flexcod...@yahoogro ups.com
  Sent: Tuesday, March 24, 2009 5:37:58  PM
  Subject: [flexcoders]  Modules, Cairngorm and Garbage Collection
   
  
  
  I've been working on optimizing an AIR application I'm currently  
  working on that utilizes modules. In the modules there are controls 
  bound  to ModelLocator data items.
  
  What I'm seeing during profiling that  removing a module from the 
  display list doesn't seem to result in the  module being GC'ed. I'm 
  suspecting binding between

[flexcoders] Re: Modules, Cairngorm and Garbage Collection

2009-03-24 Thread Bjorn Schultheiss
Here's my ignorant statement for the week.

Having a module that is built using Cairngorm unload cleanly is not worth the 
effort required to make it work.




--- In flexcoders@yahoogroups.com, claudiu ursica the_bran...@... wrote:

 I'm loading module via a command, so that it can be loaded form various 
 places... So far I have used a Module Loader... And I use interfaces foe 
 communicating with the modules and the shell. I don't know how you work with 
 module but you can inject your pieces of data from the mx:app in the loader 
 and into module when the as soon as the ready event fires. U can also use 
 BindingUtils to set bindings which in turn returns a change watcher. use that 
 to call unwatch upon when module unloads and so you make sure you performed 
 celanup and unbinding before unload ...
 
 Claudiu
 
 
 
 
 
 From: Battershall, Jeff jeff.battersh...@...
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, March 24, 2009 10:47:22 PM
 Subject: RE: [flexcoders] Modules, Cairngorm and Garbage Collection
 
 
 Thanks 
 Pedro,
  
 As I 
 said in my previous post, I'm also wondering about the effect of a module's 
 component consuming a dataprovider via binding to a singleton object and 
 the possibility of that preventing GC.  I guess this touches on the whole 
 issue of best practices of using ModelLocator with modules.  PureMVC has 
 it's 'Pipes' utility to inject data objects into a module, but I'm using 
 Cairngorm and I'm wondering how something similar could be achieved with that 
 framework. 
  
 Jeff
 -Original Message-
 From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
 Behalf Of Pedro Sena
 Sent: Tuesday, March 24, 2009 3:06 PM
 To: flexcod...@yahoogro ups.com
 Subject: Re: [flexcoders] Modules,  Cairngorm and Garbage Collection
 
 The GC is not called when  the component is remove from the screen.
 
 Most people think this occurs,  but it's not truth.
 
 The GC is called when its required, but WHEN it is  required is another point.
 
 If you are using just a small piece of your  available mamory, don't expect 
 the GC to be  called.
 
 Regards,
 
 PS
 
 
 On Tue, Mar 24, 2009 at 2:09 PM, claudiu ursica the_braniak@ yahoo.com 
 wrote:
 
 Hi, why do you bind module to the model locator?
 
 If by any  chance you have embedded CSS in the module it won't garbage 
 collect  ...
 
 Claudiu
 
 
 
 
 
  From: Battershall, Jeff  jeff.battershall@ dowjones. com
 To: flexcod...@yahoogro ups.com
 Sent: Tuesday, March 24, 2009 5:37:58  PM
 Subject: [flexcoders]  Modules, Cairngorm and Garbage Collection
  
 
 
 I've been working on optimizing an AIR application I'm currently  working
 on that utilizes modules. In the modules there are controls bound  to
 ModelLocator data items.
 
 What I'm seeing during profiling that  removing a module from the display
 list doesn't seem to result in the  module being GC'ed. I'm suspecting
 binding between the ModelLocator and  the module's controls are causing
 the behavior. 
 
 Has anyone seen  this and can suggest approaches to address this?
 
 Jeff  Battershall
 Application Architect
 Dow Jones Indexes
 jeff.battershall@ dowjones. com
 (609) 520-5637  (p)
 (484) 477-9900 (c)
 
 
 
 
 -- 
 /**
 * Pedro Sena
 * Systems Architect
 * Sun Certified Java  Programmer 
 * Sun Certified Web Component Developer
 */





[flexcoders] Remove 'maximize'-icon from window (Adobe AIR)?

2009-03-23 Thread bjorn
I'd think setting maximizable = false in the application xml would remove
the icon from the title bar, however this does not seem to do the trick.
I know I can set showFlexChrome to false and then make my own title bar
(without the maximize button), but this seems a bit backwards when all I
want to do is remove the maximize button.

Tried styling maximizeButtonSkin/restoreButtonSkin with ClassReference(null)
as well. It did work, but messed up the positioning of the minimize button +
seems like a hack.

Anyone know an easy way?

Bjørn--

http://www.bie.no/blog/ - yes, a tech blog.


[flexcoders] AIR: WindowedApplication.exit() does not remove process

2009-03-16 Thread bjorn
I've tried closing an AIR application with exit()
and NativeApplication.nativeApplication.exit() - in both cases the app
closes but I still see the process running in Windows' task manager.
Anyone know what the cause of this might be?

-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] Open native file browser from Air

2009-03-11 Thread bjorn
I don't mean the native file browser that lets you select a file
(FileReferenceList), I mean opening ie. on windows explorer and let the user
browse around as normal.

Is this possible? Tried navigateToURL with file:// but that just opened
the browser in the directory. I'd like to open the file explorer.

Bjørn

-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] Re: AMF and sending/receiving pictures

2009-03-06 Thread Bjorn Schultheiss
Yes, AMF3 supports the ByteArray class. Images can be written into a ByteArray 
and then sent over Amf.

Bjorn

--- In flexcoders@yahoogroups.com, Weyert de Boer w...@... wrote:

 Does anyone know if there are any solutions to allow sending pictures 
 from the AMF server-side to the Flash/Flex client? Or do I need to go 
 the Base64 or supply as image url way instead?





[flexcoders] Re: Scale To Fit

2009-03-05 Thread Bjorn Schultheiss
I've got a measuring class to do it.

Scale to fit, fill, stretch and center.
it return a matrix of the values.




--- In flexcoders@yahoogroups.com, pliechty pliec...@... wrote:

 Does Flex have a scale to fit mechanism?  I would like to scale a component 
 to fit in the visible screen space.





[flexcoders] Re: try, catch, finally ...

2009-03-04 Thread Bjorn Schultheiss
In my experience try/catch blocks have been most useful in dealing with sdk 
component life-cycle errors.

It is useful to throw custom errors for debugging purposes but rarely do i need 
to handle them in a production environment and run another process.

Bjorn



--- In flexcoders@yahoogroups.com, Guy Morton g...@... wrote:

 I guess the other thing to consider is where you are using them. If  
 you put them in code that's called frequently it's probably more of a  
 problem than if you are using them in code that's called occasionally.
 
 
 On 05/03/2009, at 10:42 AM, Sam Lai wrote:
 
  I thought Alex said before that exceptions don't appear for users
  running the standard Flash Player (i.e. not the debug one). Hence the
  user won't even know something went wrong; rather the app will
  probably just enter some unknown/unusable state and effectively
  freeze.
 
  There are cases for using try-catch when there is no other option. But
  when there are, e.g. testing the type of a variable before casting it
  or using a fault handler, try-catch should not be used. That could
  make the code a bit convoluted though, so in cases where errors can
  occur at many points (e.g. processing data files from an external
  server) a try-catch may be preferable, not only for code style, but
  also because you are unlikely to be able to pre-empt and mitigate all
  the errors that might occur.
 
  2009/3/5 Weyert de Boer w...@...:
   I respectfully disagree with not handling exceptions and let them  
  raised
   in the player. Of course, eating exceptions is terribly bad. Yes,
   raising exceptions because user input is bad is a long stretch.
  
   Hi Kevin,
  
   Try-Catch blocks are an absolute necessity as without them, you are
   putting the operation of your software into the hands of user input
   errors, http errors, unintended consequences as well as the  
  myriad of
   things that exist outside the Happy Path.
  
   I respectfully disagree.  IMHO, try-catch is only useful in rare
   situations; like file IO in an Air app.  User input should be  
  handled
   with restict and validators and http errors should be handled  
  with a
   fault handler.  What I'm saying is that well written/tested code
   rarely needs the overhead and verboseness of a try-catch block.  In
   the event of un-caught errors, I personally want the Flash window  
  to
   popup.  While the dialog could be more elegant, the stack trace  
  makes
   it easier to locate the problem and fix the bug quickly.  Again,  
  just
   my opinion.
  
   -TH
  
   --- In flexcoders@yahoogroups.com, Kevin Benz kbenz@ wrote:
   
Try-Catch blocks are an absolute necessity as without them, you  
  are
putting the operation of your software into the hands of user  
  input
errors, http errors, unintended consequences as well as the  
  myriad of
things that exist outside the Happy Path. As functions/ 
  methods only
give you one return object, it is common practice to throw custom
errors/exceptions as they are a great mechanism for handling  
  dynamic
environments.
   
   
   
To answer your second question about a try-catch without  
  statements in
the catch block. If this method is nested inside of another try- 
  catch
block, then an exception here will be swallowed and not be  
  caught in the
calling objects try-catch.
   
   
   
KFB
   
   
   
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com 
  ] On
Behalf Of SJF
Sent: Tuesday, March 03, 2009 6:54 PM
To: flexcoders
Subject: [flexcoders] try, catch, finally ...
   
   
   
Technically, it's good practice/professional to use try-catch- 
  finally
blocks in your actionscript logic. This ensures a robust, easily
debugg-able application.
   
However, can anyone comment if they actually use try-catch- 
  finally or
whether anyone is for or against it's use.
   
I ask because I've received an application (which streams  
  vidoe) that
was blowing out numerous users CPUs to 100%. Upon further  
  investigation,
it appears that a netstream event is firing 20 times a second,  
  and
within the listener (listener function that is) for the event,  
  there is
a try-catch-finally block. I removed the try-catch-finally and  
  CPU usage
halved on my machine.
   
Anyone care to comment for or against try-catch-finally and  
  it's use.
   
   
   
Steve.
   
   
   
   
--
This message has been scanned for viruses and
dangerous content by MailScanner http://www.mailscanner.info/ 
   , and is
   
believed to be clean.
   
  
  
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/ 
  flexcodersFAQ.txt
   Alternative FAQ location: 
   https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
   Search Archives: 
   http://www.mail-archive.com

[flexcoders] Re: Passing params (flashvars) to sub-applications

2009-03-03 Thread Bjorn Schultheiss
Application.creationComplete should be fine.

on your Loaders try Event.INIT

I'm passing flashVars from shell to modules fine, don't see why there would be 
any hurdles with sub-applications.

--- In flexcoders@yahoogroups.com, Richard Rodseth rrods...@... wrote:

 I just did a quick trace test, and the messages were written to the console
 in the following order:
 
 1) SWFLoader load complete (registers listener for app complete)
 2) embedded application creation complete handler
 3) embedded application app complete handler
 4) host app handler for embedded app app complete
 
 So presumably if one is setting parameters in 4) they can't be read in 3)...
 
 Tracy, are you following the recipe here (2nd answer)?
 
 http://stackoverflow.com/questions/407858/passing-flashvars-style-
 parameters-to-a-loaded-swf
 
 Seems to me this could only work if the loaded app is not accessing the
 parameters until some subsequent user gesture.
 
 
 On Tue, Mar 3, 2009 at 11:53 AM, Richard Rodseth rrods...@... wrote:
 
  It was on creation complete.
 
  On Tue, Mar 3, 2009 at 11:17 AM, Alex Harui aha...@... wrote:
 
 Not sure when  you tried the code that didn�t work, but application is
  not available right away
 
 
 
  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 *Richard Rodseth
  *Sent:* Tuesday, March 03, 2009 10:47 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] Re: Passing params (flashvars) to
  sub-applications
 
 
 
  Thanks for the example, Amy. I was able to do this (on application
  complete in the host):
 
  loadedApp = event.target.application
  as Application;
  loadedApp[configid] = Default;
 
  and see the value in the loaded application.
 
  public function set configid(id:String):void {
  this.config_id = id;
   }
 
 
  I was also able to pass a parameter in the url, and access it in the
  loaded app's creationComplete via
 
  this.parameters[config_id] (not
  Application.application.parameters[config_id]
 
  But I have not been able to get this to work:
 
  loadedApp = event.target.application
  as Application;
  if(!loadedApp) throw new Error();
  loadedApp.parameters[config_id] =
  Default;
 
  Loaded app's onCreationComplete()
 
   this.config_id =
  Application.application.parameters[config_id];
 
 
 
 
   On Tue, Mar 3, 2009 at 6:35 AM, Amy amyblankens...@...
  wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard
  Rodseth rrodseth@ wrote:
  
   I'm experimenting with loading sub applications using SWFLoader. I've
  read
   numerous posts about this, but for the life of me can't figure out
  how to
   pass flashvars to the sub application. In particular, the technique
   described here (the second one) doesn't work for me
  
   http://stackoverflow.com/questions/407858/passing-flashvars-style-
  parameters-to-a-loaded-swf
  
   Surely there's a definitive way to do this?
 
  Have you thought about just setting up getters and setters on your base
  class and calling those? This doesn't use getters and setters, but a
  getter or setter is just a function, so you can see how it would work:
 
  http://flexdiary.blogspot.com/2009/01/example-of-casting-contets-of-
  swfloader.html
 
 
 

 
 
 





[flexcoders] Re: Flex 3.3 SDK and AdvancedDataGrid

2009-03-03 Thread Bjorn Schultheiss
From the release notes

A new version of the data visualization libraries needs to be downloaded and 
installed into the SDK 3.3 installation to leverage features such as charts and 
the Advanced DataGrid. The library can be downloaded from the main Flex 
download page:
http://www.adobe.com/products/flex/flexdownloads/

To install the library and related assets do the following:-

   1. Unzip ‘datavisualization_for_SDK3.3.zip’ onto the SDK 3.3 folder 
(e.g. C:\Program Files\Flex Builder 3\sdks\3.3.0). This will extract the 
following into the SDK 3.3 installation
 1. datavisualization.swc into the frameworks\libs folder
 2. datavisualization__3.3.0.4852.swz and 
datavisualization__3.3.0.4852.swf into the frameworks\rsls folder
 3. datavisualization_rb.swc into the appropriate 
frameworks\locale\locale folder
 4. DMV-source.jar into the lib folder
   2. Open a command prompt or command shell and go to the ‘lib’ 
subdirectory in the SDK 3.3 directory tree e.g. C:\Program Files\Flex Builder 
3\sdks\3.3.0\lib
   3. Extract the sources for the data visualization components from 
DMV-source.jar by running the command ‘java â€jar DMV-source.jar 
license.properties directory ../’ e.g. java â€jar DMV-source.jar  
C:\Documents and Settings\All Users\Application Data\Adobe\Flex NOTE: the 
folder named ‘projects’ and the file ‘dmv_automation_build.xml’ will be 
extracted into the fbpro folder


--- In flexcoders@yahoogroups.com, Troy A. Binford troy.binf...@... wrote:

 Hi,
 
 I updated to 3.3 today and now AdvancedDataGrid is not found. Is there 
 something I am missing?
 
 Thanks.





[flexcoders] Re: Passing params (flashvars) to sub-applications

2009-03-03 Thread Bjorn Schultheiss
The question begs.
Why would you want to use the untyped params object to pass values between swf 
applications.

why not just create a setter on the sub application and when its loaded the set 
the value on it via the parent application.
use a common interface to get the setter method signature.

Bjorn

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

 Those traces tell me it should be working, that the embedded app is ready
 when the host app attempts to communicate with it.
 
  
 
 Tracy
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Richard Rodseth
 Sent: Tuesday, March 03, 2009 6:42 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: Passing params (flashvars) to sub-applications
 
  
 
 I just did a quick trace test, and the messages were written to the console
 in the following order:
 
 1) SWFLoader load complete (registers listener for app complete)
 2) embedded application creation complete handler
 3) embedded application app complete handler
 4) host app handler for embedded app app complete
 
 So presumably if one is setting parameters in 4) they can't be read in 3)...
 
 Tracy, are you following the recipe here (2nd answer)?
 
 http://stackoverflo
 http://stackoverflow.com/questions/407858/passing-flashvars-style-
 w.com/questions/407858/passing-flashvars-style-parameters-to-a-loaded-swf
 
 Seems to me this could only work if the loaded app is not accessing the
 parameters until some subsequent user gesture.
 
 
 
 On Tue, Mar 3, 2009 at 11:53 AM, Richard Rodseth rrods...@gmail.
 mailto:rrods...@... com wrote:
 
 It was on creation complete. 
 
  
 
 On Tue, Mar 3, 2009 at 11:17 AM, Alex Harui aha...@adobe.
 mailto:aha...@... com wrote:
 
 Not sure when  you tried the code that didn't work, but application is not
 available right away
 
  
 
 Alex Harui
 
 Flex SDK Developer
 
 Adobe Systems Inc. http://www.adobe.com/ 
 
 Blog: http://blogs. http://blogs.adobe.com/aharui adobe.com/aharui
 
  
 
 From: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
 [mailto:flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com] On
 Behalf Of Richard Rodseth
 Sent: Tuesday, March 03, 2009 10:47 AM
 To: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
 Subject: Re: [flexcoders] Re: Passing params (flashvars) to sub-applications
 
  
 
 Thanks for the example, Amy. I was able to do this (on application complete
 in the host):
 
 loadedApp = event.target.application as
 Application;
 loadedApp[configid] = Default;
 
 and see the value in the loaded application. 
 
 public function set configid(id:String):void {
 this.config_id = id;
  }
 
 
 I was also able to pass a parameter in the url, and access it in the loaded
 app's creationComplete via
 
 this.parameters[config_id] (not
 Application.application.parameters[config_id]
 
 But I have not been able to get this to work:
 
 loadedApp = event.target.application as
 Application;
 if(!loadedApp) throw new Error();
 loadedApp.parameters[config_id] =
 Default;
 
 Loaded app's onCreationComplete()
 
  this.config_id =
 Application.application.parameters[config_id];
 
 
 
 
 
 On Tue, Mar 3, 2009 at 6:35 AM, Amy amyblankenship@
 mailto:amyblankens...@... bellsouth.net wrote:
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Richard Rodseth rrodseth@ wrote:
 
  I'm experimenting with loading sub applications using SWFLoader. I've 
 read
  numerous posts about this, but for the life of me can't figure out 
 how to
  pass flashvars to the sub application. In particular, the technique
  described here (the second one) doesn't work for me
  
  http://stackoverflo
 http://stackoverflow.com/questions/407858/passing-flashvars-style-
 w.com/questions/407858/passing-flashvars-style-
 parameters-to-a-loaded-swf
  
  Surely there's a definitive way to do this?
 
 Have you thought about just setting up getters and setters on your base 
 class and calling those? This doesn't use getters and setters, but a 
 getter or setter is just a function, so you can see how it would work:
 
 http://flexdiary.
 http://flexdiary.blogspot.com/2009/01/example-of-casting-contets-of-
 blogspot.com/2009/01/example-of-casting-contets-of-
 swfloader.html





[flexcoders] Re: Getting ByteArray.uncompress() to work in Flash - looking for an example tex

2009-03-01 Thread Bjorn Schultheiss
ASCompress supports GZIP
http://code.google.com/p/ascompress/

--- In flexcoders@yahoogroups.com, David Adams dpad...@... wrote:

 On Sun, Mar 1, 2009 at 9:06 PM, Cato Paus ca...@... wrote:
  go here
  http://onrails.org/articles/2007/11/27/flash-utils-bytearray-compressing-4-1mb-
to-20k
 
 Thanks for the link! I couldn't get the AIR app to compile, but
 realized it pointed out an obvious strategy: use Flash to
 encode/decode the test string. I've got that going now so I can sort
 out a byte comparison with my server-side encoder's.
 
 I also found an old bug report that indicates that Flash only
 understands 'zlib' and does not understand deflate, at the moment.
 That's a bit of a help but 'zlib' covers a bit of ground, as far as I
 can tell (?)
 
 Thanks again.





Re: [flexcoders] Send a confirmation Email

2009-02-18 Thread bjorn
Do this on the serverside, not in Flex.



2009/2/18 christophe_jacquelin christophe_jacque...@yahoo.fr

   Hello,

 How to send a confirmation Email in the flex program when the user get
 register ?

 Thank you,
 Christophe,

  




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] Re: Installing an AIR APP with configuration

2009-02-17 Thread bjorn
yeah, I did make progress. You can give the Application arguments during
install:
http://www.davidtucker.net/2008/01/10/air-tip-5-passing-arguments-to-an-application-on-install/

..then it's just a matter of saving this in a file in
applicationStorageDirectory or EncryptedLocalStore ..




2009/2/6 dmkramerica kramer.da...@consultant.com

   Did you ever make progress or solve this?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, bjorn
 itrashm...@... wrote:
 
  What's the best practice here? I need my app to know the username of the
  user who install it. So I'm thinking of adding it as a parameter to
 the app
  in the installer badge, and then saving it in a properties file
 locally in
  the app's directory.
  --
  
  http://www.juicability.com - flex blog
  http://www.nospoiler.com - link to youtube videos without the spoilers
 

  




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] File upload with pause/resume in Flex?

2009-02-13 Thread bjorn
Suggestions on how to implement this? My first thought is to split a file
into chunks of FileReferences and then send these chunks individually,
making a note of which chunks of a file that have been transferred and which
are waiting. That way I can pause the application and continue later.
.. but maybe there is an easier solution? :-)

-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] Installing an AIR APP with configuration

2009-02-02 Thread bjorn
What's the best practice here? I need my app to know the username of the
user who install it. So I'm thinking of adding it as a parameter to the app
in the installer badge, and then saving it in a properties file locally in
the app's directory.
-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] Re: Padding/spacing before the first line in a TextArea

2008-12-17 Thread bjorn
Jon:

Thanks for taking the time to answer this so extensively. Your Method 2 is
what I've come up with so far, only using descent instead of ascent, as you
pointed out. And yeah, you're right - it doesn't always work since Flash
does not seem to return accurate values for ascent/descent/etc. for all
fonts. So I'm feeling kind of stuck at the end of this road ... maybe a
Gumbo-truck will come to rescue soon?? ;-)


Alex Harui:

 Subclass and reposition the internal textfield.

The repositioning itself is not the problem, finding the number of pixels to
reposition by is :)

Bjørn




2008/12/17 Gordon Smith gosm...@adobe.com

 This has been a long standing bug that I've been complaining to Adobe
 about.



 The new Text Layout Framework that Gumbo components use gives you control
 over the vertical placement of the first line.



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Jon Bradley
 *Sent:* Tuesday, December 16, 2008 7:46 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Padding/spacing before the first line in a
 TextArea



 You can't manually remove that padding from the field. It's built into the
 field as the ascent of the font + 4 pixels for the natural field border
 (which also cannot be 'removed').



 There are only two ways to shift up a field in Flash:



 Method 1:

 a. Bitmap snapshot of the text field

 b. getColorRectBounds on the bitmap in question to retrieve a bounding
 rectangle of the non-alpha pixels.

 c. Capture the top position from the Rectangle returned from that call and
 subtract that value from the y-position of the field.



 Pros:

 Will work every time



 Cons:

 Additional memory overhead. Tricky to do with the Flex component
 architecture - especially TextArea



 Method 2:

 a. Capture font metrics from the text field

 b. Subtract (metrics.ascent + 4) from the text field y position. It is the
 ascent measurement, not descent.



 Pros:

 Less memory and less code to deal with.



 Cons:

 Will not work every time. Ascent and descent measurements from the font
 metrics within Flash are not accurate measurements and are only correct at
 very, very specific font sizes (8, 12, 17, 28, 36, 44 ... etc.).



 Almost all point sizes of text return incorrect ascent and descent values
 in Flash. They usually return values less than they really are (7,8,9 point
 type will return the same ascent value for most fonts, for example).



 Additionally, you'll still need to extend TextArea to handle the
 functionality.



 Does not function well at all with advanced antialiasing ... also a known
 bug in the Flash text rendering. Saffron antialiasing causes a jump in the
 leading and position values of lines in a field, so don't use it.



 --



 This has been a long standing bug that I've been complaining to Adobe
 about. I've worked on applications for some big greeting card companies
 (take a couple guesses) creating a rendering system in Flash that will match
 Photoshop and Illustrator text rendering. Illustrator, btw, is the only
 Adobe application that let's you set the first baseline position of a text
 field using a variety of measures.



 Good luck.



 - jon





 On Dec 16, 2008, at 8:53 AM, bjorn wrote:



  Any ideas on where I might find more info about this? .. or people who
 might know more ...





 2008/12/2 bjorn itrashm...@gmail.com

 There is some padding before the first line in a TextArea. Have a look at
 this image to see what I mean:



 http://i34.tinypic.com/4uz8s0.jpg



 I need to remove this, and the first solution that comes to mind is to find
 that value and position the TextArea.y = TextArea.y - [that value]. The
 padding before the first line seems to be equal (in most cases) to the
 font's descent, which I can get from getTextLineMetrics().descent.



 However, this is not true in all cases. In some cases, the padding is more.



 Anyone have suggestions?





   




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] Re: Padding/spacing before the first line in a TextArea

2008-12-16 Thread bjorn
Any ideas on where I might find more info about this? .. or people who might
know more ...


2008/12/2 bjorn itrashm...@gmail.com

 There is some padding before the first line in a TextArea. Have a look at
 this image to see what I mean:

 http://i34.tinypic.com/4uz8s0.jpg

 I need to remove this, and the first solution that comes to mind is to find
 that value and position the TextArea.y = TextArea.y - [that value]. The
 padding before the first line seems to be equal (in most cases) to the
 font's descent, which I can get from getTextLineMetrics().descent.

 However, this is not true in all cases. In some cases, the padding is more.

 Anyone have suggestions?

 Bjørn
 --
 
 http://www.juicability.com - flex blog
 http://www.nospoiler.com - link to youtube videos without the spoilers




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] Re: Padding/spacing before the first line in a TextArea

2008-12-16 Thread bjorn
Yepp, thanks .. but that doesn't affect this. It's space inside the TextArea
(which is decided by the font in some way)..
Bjørn



2008/12/16 Cato Paus ca...@brannsikring.no

   Have you try this

 paddingTop: 0;
 paddingBottom: 0;
 paddingRight: 0;
 paddingLeft: 0;

 on TextArea?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, bjorn
 itrashm...@... wrote:
 
  Any ideas on where I might find more info about this? .. or people
 who might
  know more ...
 
 
  2008/12/2 bjorn itrashm...@...
 
   There is some padding before the first line in a TextArea. Have a
 look at
   this image to see what I mean:
  
   http://i34.tinypic.com/4uz8s0.jpg
  
   I need to remove this, and the first solution that comes to mind
 is to find
   that value and position the TextArea.y = TextArea.y - [that
 value]. The
   padding before the first line seems to be equal (in most cases)
 to the
   font's descent, which I can get from getTextLineMetrics().descent.
  
   However, this is not true in all cases. In some cases, the
 padding is more.
  
   Anyone have suggestions?
  
   Bjørn
   --
   
   http://www.juicability.com - flex blog
   http://www.nospoiler.com - link to youtube videos without the
 spoilers
  
 
 
 
  --
  
  http://www.juicability.com - flex blog
  http://www.nospoiler.com - link to youtube videos without the
 spoilers
 

  




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] Padding/spacing before the first line in a TextArea

2008-12-02 Thread bjorn
There is some padding before the first line in a TextArea. Have a look at
this image to see what I mean:

http://i34.tinypic.com/4uz8s0.jpg

I need to remove this, and the first solution that comes to mind is to find
that value and position the TextArea.y = TextArea.y - [that value]. The
padding before the first line seems to be equal (in most cases) to the
font's descent, which I can get from getTextLineMetrics().descent.

However, this is not true in all cases. In some cases, the padding is more.

Anyone have suggestions?

Bjørn
-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] SWC file confusion

2008-11-27 Thread bjorn
1. Everytime you add a file in your swc project, Flex Builder requires you
to right click the swc project and select all files to be included over
again
2. Make sure your project actually links to the .swc that is being built
(so, delete the swc you're currently linking to and do a rebuild)

Bjørn


2008/11/27 markgoldin_2000 [EMAIL PROTECTED]

   I have added a SWC file to my project's Library path. Everithing was
 working fine. Then I moved some folders around, created a new
 workspace. I added my project to it, and added SWC file to libray
 again. My application is working fine, but changing anything in any
 file that is a part of SWC project does not reflect running code. How
 can I fix what seems to me like a broken link?

 Thanks

 




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] TextFormat's leading

2008-11-26 Thread bjorn
What is this value specified in?

The docs say: An integer representing the amount of vertical space (called *
leading*) between lines. The default value is null, which indicates that the
amount of leading used is 0.

Is that pixels, points, percentage of the font size, or maybe kilograms? :-)

Also, does anyone know if embedded fonts sometimes specify the leading
themselves (if nothing is set?). It seems to be vary from font to font 

-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] Removing an item from a sorted ArrayCollection?

2008-11-25 Thread bjorn
No, my problem is coming from a world with a robust LinkedList
implementation. Good times.

Anyhow, I'll look into the Demo Test Papers and see if they can help me with
ListCollectionView .. thanks guys! :-)

Bjørn

2008/11/25 Jules Suggate [EMAIL PROTECTED]

   Bjorn, are you certified? Perhaps that's your problem ;^)


 On Tue, Nov 25, 2008 at 21:57, Ashish Verma [EMAIL 
 PROTECTED]verma.lucky%40gmail.com
 wrote:
  Hello All,
 
  I want to be Flex Certified. from where i can get the Demo Test Papers.
 
  Thanks
  Ashish
 
  On Fri, Nov 21, 2008 at 10:51 PM, bjorn [EMAIL 
  PROTECTED]itrashmail%40gmail.com
 wrote:
 
  I experienced some problems with ArrayCollection's removeItemAt(). It
  seemed to work... randomly.
 
  Tucked away in the documentation i found this little gem:
  Note: If you use the ICollectionView interface to sort or filter a
  collection, do not use the IList interface to manipulate the data,
 because
  the results are indeterminate.
 
  My problem, of course, was that I had a sort on the ac, and that I used
  IList's removeItemAt().
 
  I don't understand the rationale behind this, maybe someone can explain
 to
  me why it's difficult to implement removeItemAt() on a
  sorted ArrayCollection ... I mean, I _am_ working with sorted data here,
 so
  when I say index 11 I mean index 11 on the sorted data. That's the data
 I
  see, that's the data I'm using, I don't need to know anything about the
  underlying Array and the element's _real index_ the ArrayCollection
  knows which element this refers to in the underlying Array, so there
  shouldn't be a problem ...?
 
  Anyway, given the restraints we're working with here - what is the best
  way to approach this? I need to be able to remove items from a sorted
  ArrayCollection - any best practices?
 
  Bjørn
  --
  ==
  http://www.juicability.com - flex blog
  http://www.expressionengine.no - ExpressionEngine; the world's most
  flexible cms
 
 

 




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] Best browser for debugging on Mac OSX?

2008-11-25 Thread Bjorn Schultheiss
Camino is supposed to be pretty fast.

Its a little bit more difficult to set up your proxies but it is possible.

I was using Camino but I currently use Firefox.

On Wed, Nov 26, 2008 at 10:45 AM, Guy Morton [EMAIL PROTECTED] wrote:

   Anyone got a recommendation?

 I've been using Firefox, but it seems to bloat memory-wise the longer
 it runs - often consuming 500Mb after a while. As FB3 also is a
 memory hog, this makes it hard to run on a 2Gb machine.

 All I really need it a lightweight browser that can load the Flash
 plugin.

 Guy
  



Re: [flexcoders] Best browser for debugging on Mac OSX?

2008-11-25 Thread Bjorn Schultheiss
Any performance increase with Opera?

Debugging for me has also become painfully slow.

Could it have to do with the FB 3.0.2 upgrade?


On Wed, Nov 26, 2008 at 1:14 PM, Guy Morton [EMAIL PROTECTED] wrote:

   I find Camino a lot slower than Firefox, and it's probably an even worse
 memory hog.

 I'm going to try Opera for a while.


 On 26/11/2008, at 11:11 AM, Bjorn Schultheiss wrote:

 Camino is supposed to be pretty fast.

 Its a little bit more difficult to set up your proxies but it is possible.

 I was using Camino but I currently use Firefox.

 On Wed, Nov 26, 2008 at 10:45 AM, Guy Morton [EMAIL PROTECTED] wrote:

 Anyone got a recommendation?

 I've been using Firefox, but it seems to bloat memory-wise the longer
 it runs - often consuming 500Mb after a while. As FB3 also is a
 memory hog, this makes it hard to run on a 2Gb machine.

 All I really need it a lightweight browser that can load the Flash
 plugin.

 Guy




  


Re: [flexcoders] Re: Removing an item from a sorted ArrayCollection?

2008-11-24 Thread bjorn
Thanks for that suggestion .. it seems to behave the same way though. I can
partly fix this by doing a myAc.refresh() every time, but I see all kinds of
strange behaviour (elements will be duplicated, etc.).

No one knows the answer to my initial question about why there is a problem
implementing removeItemAt()/addItemAt() on a sorted AC?

It's tempting to make a WorkingArrayCollection.as ;-)

- bjorn
2008/11/21 Haykel BEN JEMIA [EMAIL PROTECTED]

Try doing something like this:

 var obj:Object = mySortedArray.getItemAt(index);
 var originalIndex:int = mySortedArray.list.getItemIndex(obj);
 mySortedArray.list.removeItemAt(originalIndex);

 I didn't test the code. But the idea behind it is that a ListcollectionView
 holds a pointer to the IList it's wrapping so you have access to it. All you
 have to do is get the object you want to remove, find it's index in the
 wrapped IList and use that index to remove it, again from the wrapped IList.

 Haykel Ben Jemia

 Allmas
 Web  RIA Development
 http://www.allmas-tn.com





 On Fri, Nov 21, 2008 at 6:51 PM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, bjorn
 [EMAIL PROTECTED] wrote:
 
  I experienced some problems with ArrayCollection's removeItemAt().
 It seemed
  to work... randomly.
 
  Tucked away in the documentation i found this little gem:
  Note: If you use the ICollectionView interface to sort or filter a
  collection, do not use the IList interface to manipulate the data,
 because
  the results are indeterminate.
 
  My problem, of course, was that I had a sort on the ac, and that I
 used
  IList's removeItemAt().
 
  I don't understand the rationale behind this, maybe someone can
 explain to
  me why it's difficult to implement removeItemAt() on a
  sorted ArrayCollection ... I mean, I _am_ working with sorted data
 here, so
  when I say index 11 I mean index 11 on the sorted data. That's the
 data I
  see, that's the data I'm using, I don't need to know anything about
 the
  underlying Array and the element's _real index_ the
 ArrayCollection
  knows which element this refers to in the underlying Array, so there
  shouldn't be a problem ...?
 
  Anyway, given the restraints we're working with here - what is the
 best way
  to approach this? I need to be able to remove items from a sorted
  ArrayCollection - any best practices?

 I usually use either a one or more other ArrayCollections or
 ListCollectionViews with a pointer to the same data to do filtering
 and sorting on. Although often that's just because I want to
 preserve the original order as much as anything.


 




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] Removing an item from a sorted ArrayCollection?

2008-11-21 Thread bjorn
I experienced some problems with ArrayCollection's removeItemAt(). It seemed
to work... randomly.

Tucked away in the documentation i found this little gem:
Note: If you use the ICollectionView interface to sort or filter a
collection, do not use the IList interface to manipulate the data, because
the results are indeterminate.

My problem, of course, was that I had a sort on the ac, and that I used
IList's removeItemAt().

I don't understand the rationale behind this, maybe someone can explain to
me why it's difficult to implement removeItemAt() on a
sorted ArrayCollection ... I mean, I _am_ working with sorted data here, so
when I say index 11 I mean index 11 on the sorted data. That's the data I
see, that's the data I'm using, I don't need to know anything about the
underlying Array and the element's _real index_ the  ArrayCollection
knows which element this refers to in the underlying Array, so there
shouldn't be a problem ...?

Anyway, given the restraints we're working with here - what is the best way
to approach this? I need to be able to remove items from a sorted
ArrayCollection - any best practices?

Bjørn
-- 
==
http://www.juicability.com - flex blog
http://www.expressionengine.no - ExpressionEngine; the world's most flexible
cms


Re: [flexcoders] swf with TextField.htmlText - links do not work

2008-11-21 Thread bjorn
For anyone else experiencing this problem, I think it's due to a bug:

http://jobemakar.blogspot.com/2007/05/texteventlink-bug-in-actionscript-3.html

If the textfield isn't selectable, links won't work (onmouseover hand cursor
is shown, the links just doesn't work).

Bjørn




2008/10/6 bjorn [EMAIL PROTECTED]

  yes, they work by themselves, but not when I load a pure
 actionscript/flash swf and use it in Flex. I have a SWFLoader which loads
 the .swf and it seems that this causes the swf not to be able to open a new
 browser window from htmlText at least (I've tried adding a button and
 opening a new browser window from it, that works fine with navigateToUrl)..




 2008/10/6 Tom Chiverton [EMAIL PROTECTED]

  On Monday 06 Oct 2008, bjorn wrote:
  Have also tried adding event listeners to the textinput component and
 used
  links with event:http://; in the htmlText-code. The events are never
  triggered.

 Are you saying the example on LiveDocs
 (http://livedocs.adobe.com/flex/3/html/textcontrols_04.html#437546) of
 doing
 that doesn't work ? It does here...

 --
 Tom Chiverton
 Helping to authoritatively expedite distributed market-driven sticky
 networks



 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office address
 is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.
  A list of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.

 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






 --
 
 http://www.juicability.com - flex blog
 http://www.nospoiler.com - link to youtube videos without the spoilers




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] swf with TextField.htmlText - links do not work

2008-10-06 Thread bjorn
Thanks for answering Gregor, but you're mistaken ... it automatically works
in Flex, e.g. this code will open the link in the browser by default:


?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
creationComplete=initView()

mx:TextInput id='testInput'/

mx:Script

![CDATA[

*private* *function* initView():*void
*

{

*this*.testInput.htmlText = *a href='http://www.juicability.com'Juicability,
yo/a*;

}

]]

/mx:Script

/mx:Application


.. so there must be something else wrong.

It works if we add a link to a button.

Have also tried adding event listeners to the textinput component and used
links with event:http://; in the htmlText-code. The events are never
triggered.

The thing is we load the swf using a SWFLoader, so I'm thinking it has
something to do with security. I've tried adding .trustContent=true + using
a new loaderContext like this:

*

var* ctx:LoaderContext = *new* LoaderContext(*true*
,ApplicationDomain.currentDomain,SecurityDomain.currentDomain);

.. aslo didn't change anything.

As I said the cursor changes to the hand cursor when hovering over the link,
it's just that nothing happens when you click it.

- bjorn


2008/10/3 Gregor Kiddie [EMAIL PROTECTED]

You need to look at,


 http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_04.html#437546

 It doesn't automatically work in Flex, as the automatic behaviour may be
 undesirable.

 You need to have event handlers for the link.



 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

 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
 [EMAIL PROTECTED]
  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *bjorn
 *Sent:* 03 October 2008 12:33
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] swf with TextField.htmlText - links do not
 work



 Well, in flash this works out-of-the-box with htmlText .. if you have an
 a href tag it's clickable and opens the url in a new window.

 2008/10/3 Gregor Kiddie [EMAIL PROTECTED]

 What would you expect to happen? Is there code to deal with catching the
 event and opening the url, opening new windows, etc?



 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

 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
 [EMAIL PROTECTED]
  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *bjorn
 *Sent:* 03 October 2008 11:37
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] swf with TextField.htmlText - links do not work



 I've got a flex application which loads an SWF which contains a link in a
 TextField's htmlText. It displays the mouse over handcursor and it looks
 like a link - yet when I click it nothing happens. Is there some security
 limitation here?

 --
 
 http://www.juicability.com - flex blog
 http://www.nospoiler.com - link to youtube videos without the spoilers




 --
 
 http://www.juicability.com - flex blog
 http://www.nospoiler.com - link to youtube videos without the spoilers

 




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] swf with TextField.htmlText - links do not work

2008-10-06 Thread bjorn
Yeah, one I'd expect a security exception to be thrown as well but I don't
see any even when running in debug mode.

hmm, well I guess it's back to trying and failing ... heh

bjorn


2008/10/6 Gregor Kiddie [EMAIL PROTECTED]

I should know better than to trust the livedocs before trying it first
 ;)



 I'd imagine that if it was a security issue, you would get a security
 violation exception.

 Have you tried running it in debug and seeing if you get any exceptions
 being thrown?



 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

 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
 [EMAIL PROTECTED]
  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *bjorn
 *Sent:* 06 October 2008 11:53
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] swf with TextField.htmlText - links do not
 work



 Thanks for answering Gregor, but you're mistaken ... it automatically works
 in Flex, e.g. this code will open the link in the browser by default:



 




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] swf with TextField.htmlText - links do not work

2008-10-06 Thread bjorn
yes, they work by themselves, but not when I load a pure
actionscript/flash swf and use it in Flex. I have a SWFLoader which loads
the .swf and it seems that this causes the swf not to be able to open a new
browser window from htmlText at least (I've tried adding a button and
opening a new browser window from it, that works fine with navigateToUrl)..




2008/10/6 Tom Chiverton [EMAIL PROTECTED]

 On Monday 06 Oct 2008, bjorn wrote:
  Have also tried adding event listeners to the textinput component and
 used
  links with event:http://; in the htmlText-code. The events are never
  triggered.

 Are you saying the example on LiveDocs
 (http://livedocs.adobe.com/flex/3/html/textcontrols_04.html#437546) of
 doing
 that doesn't work ? It does here...

 --
 Tom Chiverton
 Helping to authoritatively expedite distributed market-driven sticky
 networks



 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A
 list of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.

 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] swf with TextField.htmlText - links do not work

2008-10-03 Thread bjorn
I've got a flex application which loads an SWF which contains a link in a
TextField's htmlText. It displays the mouse over handcursor and it looks
like a link - yet when I click it nothing happens. Is there some security
limitation here?

-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] swf with TextField.htmlText - links do not work

2008-10-03 Thread bjorn
Well, in flash this works out-of-the-box with htmlText .. if you have an
a href tag it's clickable and opens the url in a new window.

2008/10/3 Gregor Kiddie [EMAIL PROTECTED]

What would you expect to happen? Is there code to deal with catching
 the event and opening the url, opening new windows, etc?



 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

 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
 [EMAIL PROTECTED]
  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *bjorn
 *Sent:* 03 October 2008 11:37
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] swf with TextField.htmlText - links do not work



 I've got a flex application which loads an SWF which contains a link in a
 TextField's htmlText. It displays the mouse over handcursor and it looks
 like a link - yet when I click it nothing happens. Is there some security
 limitation here?

 --
 
 http://www.juicability.com - flex blog
 http://www.nospoiler.com - link to youtube videos without the spoilers

 




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] AdBlock-like functionality in mx.controls.HTML?

2008-09-18 Thread bjorn
Is it possible to change the html content before rendering using the
mx.controls.HTML component? Suggestions to how this could be done?

-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] Re: Checkbox in Datagrid . . . how?

2008-09-03 Thread bjorn
Yes, then you have to write code to get the data into a dataProvider for the
Tree, for example creating model objects from the xml and adding them to an
ArrayCollection. The checked state can for instance be a boolean inside the
model.

2008/9/2 crumpelfungus [EMAIL PROTECTED]

   Add-on / Clarification: In my version of the datagrid  checkbox
 scenario, I am using an XMLList to get the database data as E4X from an
 HTTPService request.

  




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] Checkbox in Datagrid . . . how?

2008-09-02 Thread bjorn
You need to create a TreeItemRenderer, there's an example in the Flex
Cookbook here:
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailspostId=545productId=2

- bjorn



2008/9/2 crumpelfungus [EMAIL PROTECTED]

   Having looked through the archived topics, I was unable to find
 anything relevant, but if anyone knows of an existing thread or
 tutorial, just post the link.

 Basically, I am retrieving information from a MySQL database and
 dsiplay it in a datagrid. And I'm using a customized component via the
 DataGrid's itemRenderer to show a check box in the last column.

 In my particular case, the checkbox will indicate which records need to
 get deleted.

 Is there anyone who's done something similar? And would be willing to
 share the code? With the custom component from Flex Monkey Patches
 (http://snipurl.com/3m7be), I can get the checkbox dropped in, but I
 don't know how to trap the CLICK in the main application to determine
 whether the checkbox is selected or not.

 Anyone?

 




-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


Re: [flexcoders] embedding fonts with different styles: Helvetica?

2008-09-02 Thread bjorn
Have you tried just removing the fontType and fontWeight completely? I've
used bold fonts by just specifying the fontFamily..

- bjorn

2008/9/2 mariovandeneynde [EMAIL PROTECTED]

   Greetings!

 I'm having trouble with embedding the helvetica font.
 I wish to embed the Bold, regular and light font of the Helvetica font
 AND the condensed font, also bold, regular and light.

 But I keep getting these errors like

 exception during transcoding: Font for alias 'KonicaCondensedBold'
 with plain weight and style was not found at: HeKMCnBd.ttf

 I tried fontStyle:Bold, fontWeight:bold etc but nothing is working...
 What is the best way to embed a font with bold and regular type...

 Right now I do:
 Code:

 @font-face {
 src:url(/assets/fonts/HeKMBd__.ttf);
 fontFamily: KonicaBold;
 advancedAntiAliasing: true;
 fontStyle:bold;
 }

 anyone?

 




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] download many files at a time

2008-08-28 Thread bjorn
It's possible, but you need to show a new save dialog for each file though.

2008/8/28 dialogtmp [EMAIL PROTECTED]

   hello,all

 I want to let user to download many files at a time, but I can't use
 the server side language to implement.

 I have already searched much information, but still could not find the
 solution.

 How should I do?

 Dose it possible implement in flex?

 thanks,
 dialogtmp

 




-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


[flexcoders] Advanced internationalization in Flex

2008-08-28 Thread bjorn
I've worked with Flex' Resource Bundle (.properties) files and it works fine
for internationalizing words and simple sentences, but imho it's not really
optimal for blocks of text (with linebreaks and maybe even html formatting).
Are there other solutions for this?

-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


[flexcoders] Menu.setStyle('openDuration', 0) will break Alert.show() - bug?

2008-08-18 Thread bjorn
I'm wondering if this is a bug or not .. I accidently discovered that
Alert.show() called by a menu would break if the menu had openDuration=0.

Check it out here:
http://www.juicability.com/entry/setting-openduration-to-0-on-menu-will-break-alert/

Is this a bug?

-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


[flexcoders] Re: Bi-directional binding

2008-08-18 Thread Bjorn Schultheiss
Here's another example of bi-directional binding..
check example 3.

http://www.quietlyscheming.com/blog/components/a-couple-of-samples-from-max-no-not-that-one/

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

 Durres76 wrote:
  hi, is this possible. var arr : ArrayCollection;
  
  textfield text='{arr.someProperty}'
  
  I know the textfield text will change everytime the ArrayCollection
  updates, but can the ArrayCollection update when a user types in the
  textfield. essentially binding the array propety to the textfield
  value
 
 You can do something like:
 textinput id=ti text={a.b} change=a.b=ti.text /
 
 cheers,
   - shaun





[flexcoders] Re: Flash Player 10 RC

2008-08-18 Thread Bjorn Schultheiss
Where did you get it from?

I've got debug version 10,0,0,525 running ok.
downloaded from
http://opensource.adobe.com/svn/opensource/flex/sdk/tags/trunk_4.0.0.2432/in/player/10/mac/

I'm assuming its a beta 2 player and not rc though. RC version number
look like 10.0.2.x


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

 anyone?
   - Original Message - 
   From: Sherif Abdou 
   To: flexcoders@yahoogroups.com 
   Sent: Saturday, August 16, 2008 7:20 PM
   Subject: [flexcoders] Flash Player 10 RC
 
 
 
   Anyone Having trouble with the Debugger? When I was using the
Beta2, The Debugger was 10. Now with the RC Flash Player the Debugger
is not 10 but 9r115.





[flexcoders] Re: 3.1 changelog?

2008-08-17 Thread Bjorn Schultheiss
I saw this blog post the other day.

differences between Flex 3.1.0 and Flex 3.0.0
http://shigeru-nakagaki.com/index.cfm/2008/8/16/20080816-diff-between-Flex310-and-Flex300

Bjorn

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

 Hey Guys,
 
 Is there a changelog for 3.1? I can't seem to find anything via google.
 
 -Josh
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]





[flexcoders] Re: 3.1 changelog?

2008-08-17 Thread Bjorn Schultheiss
Quote from the doc
The Marshall Plan will only support 3.1 Flex applications working in
Flex 4 and beyond.
http://opensource.adobe.com/wiki/display/flexsdk/Marshall+Plan

In terms of bug-fixes, haven't seen one yet..
Mind you haven't look much either.


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

 Yeah just found that :) That's pretty much only API changes though,
I was
 wondering if there's anything official listing bugfixes / changes in
builder
 (if any), etc...
 
 Did the Marshall Plan stuff go into 3.1 or is it 3.2?
 
 -Josh
 
 On Mon, Aug 18, 2008 at 2:54 PM, Bjorn Schultheiss 
 [EMAIL PROTECTED] wrote:
 
  I saw this blog post the other day.
 
  differences between Flex 3.1.0 and Flex 3.0.0
 
 
http://shigeru-nakagaki.com/index.cfm/2008/8/16/20080816-diff-between-Flex310-and-Flex300
 
  Bjorn
 
  --- In flexcoders@yahoogroups.com, Josh McDonald dznuts@ wrote:
  
   Hey Guys,
  
   Is there a changelog for 3.1? I can't seem to find anything via
google.
  
   -Josh
  
   --
   Therefore, send not to know For whom the bell tolls. It tolls for
  thee.
  
   :: Josh 'G-Funk' McDonald
   :: 0437 221 380 :: josh@
  
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
  Links
 
 
 
 
 
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]





[flexcoders] Disable sorting for ArrayCollection ...

2008-07-08 Thread bjorn
I've implemented a tree which displays folders, with a compareFunction
that makes sure the folders are always sorted alphabetically. It works fine
- if a user moves a folder it automatically shows up in the correct order.

I do have a problem with renaming though. This worked before I implemented
the compareFunction, but now it totally messes up (since it tries to sort a
folder while renaming it) .. so I was wondering if there is a way to disable
sorting while editing.

-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


[flexcoders] Re: A very simple component in AS :(

2008-06-29 Thread Bjorn Schultheiss
Basically thats not how to create a component for flex.
The value for title has not been set at the time the constructor runs.

You should look at Flex's component invalidation cycle.

createChildren();
commitProperties();

Its all in the docs.

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

 
 Hey there,
 
 I was trying to create a very simple component in as, there was no error
 in compiling. However, I was unable to see the text. :( can you take a
 quick look? thank you
 
 === AS 
 
 package
 {
   import mx.controls.Text;
   import mx.core.UIComponent;
 
   public class Footer extends UIComponent
   {
public var title:String;
private var _txt:Text;
 
public function Footer()
{
 super.setActualSize(50 , 20 );
 
 _txt= new Text();
 _txt.text = title;
 addChild( _txt );
}
   }
 }
 
  in main.mxml ===
 
 local:newText title=asdfasdfa /





[flexcoders] Re: AS3 interface question

2008-06-27 Thread Bjorn Schultheiss
Runtime checking is all we get.

public static function isImplementationOf(clazz:Class,
interfaze:Class):Boolean {
  var result:Boolean;
  if (clazz == null) {
result = false;
  }
  else {
var classDescription:XML = describeType(clazz) as XML;
result = (classDescription.factory.implementsInterface.(@type ==
getQualifiedClassName(interfaze)).length() != 0);
  }
  return result;
}

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

 As far as I know, Adobe plans to follow the emerging Ecmascript 4
 standard. We're unlikely to support covariant return types in
 ActionScript unless ES4 has them.
 
  
 
 Gordon Smith
 
 Adobe Flex SDK Team
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Rick Winscot
 Sent: Thursday, June 26, 2008 10:30 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] AS3 interface question
 
  
 
 By the way... there is an open issue in the Adobe bug-base regarding
 this. Vote for it! NOW!
 
  
 
 http://bugs.adobe.com/jira/browse/ASC-3442
 http://bugs.adobe.com/jira/browse/ASC-3442 
 
  
 
 Rick Winscot
 
  
 
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Ralf Bokelberg
 Sent: Thursday, June 26, 2008 9:22 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] AS3 interface question
 
  
 
 Yep, it's a language feature, which is not there. I think it is called
 covariant return types.
 Afaik, all you can do is check the type and cast.
 Cheers
 Ralf.
 
 On Thu, Jun 26, 2008 at 3:14 PM, diehlryan [EMAIL PROTECTED]
 mailto:rdiehl%40docfinity.com  wrote:
  I'm running into a wall when trying to use extension with interfaces.
  The example I'm about to provide works using Java, so I believe the
  OOP practices behind it are valid. But I can't figure out how to
  accomplish the same thing in Flex, I keep running into compiler
  issues. The example is a condensed version of something I'm working
  on, for simplicity sake.
 
  Let's say you have a bunch of events that all have some common
  functionality, like the ability to have a nextEvent. Also, a subset
  of those events also have additional functionality, they can be
  filtered by a type of criteria. We'll call them search events.
 
  Now, there are some parts of the application that can work with any
  type of search event, and any type of criteria. But when the
  individual searches are executed, that implementation expects a
  specific type of search event and search criteria. That's my end goal
  here.
 
  Here are the interfaces I'm using:
 
  public interface ICriteria
  {
  // just a marker
  }
 
  public interface ICustomCriteria extends ICriteria
  {
  function get name():String;
  function set name(name:String):void;
  }
 
  public interface IEvent
  {
  function get nextEvent():IEvent;
  function set nextEvent(event:IEvent):void;
  }
 
  public interface ISearchEvent
  {
  function get criteria():ICriteria;
  function set criteria(criteria:ICriteria):void;
  }
 
  So far, so good. And now the implementing classes:
 
  // would like to make this an abstract class, but not supported in AS
  public class BaseEvent implements IEvent
  {
  private var _nextEvent:IEvent;
 
  public function set nextEvent(event:IEvent):void
  {
  this._nextEvent = event;
  }
 
  public function get nextEvent():IEvent
  {
  return this._nextEvent;
  }
  }
 
  // would like to make this an abstract class, but not supported in AS
  public class BaseSearchEvent extends BaseEvent implements ISearchEvent
  {
  private var _criteria:ICriteria;
 
  public function set criteria(criteria:ICriteria):void
  {
  this._criteria = criteria;
  }
 
  public function get criteria():ICriteria
  {
  return this._criteria;
  }
  }
 
  Those base classes are fine and compile correctly. Now if you
  remember from the requirements, there are some places that can work
  with any type of ISearchEvent, and some places that can only work with
  an individual subclass. Here is where the compiler errors come in.
  Doing what I am about to do works in Java, and I'm wondering if there
  is a way to accomplish it in AS3.
 
  public class CustomSearchEvent extends BaseSearchEvent
  {
  private var _criteria:ICustomCriteria;
 
  public override function get criteria():ICustomCriteria
  {
  return this._criteria;
  }
 
  public override function set criteria(criteria:ICustomCriteria):void
  {
  this._criteria = criteria;
  }
  }
 
  The above class does not compile because the method signatures for
  get/set criteria are different than those specified in the interface.
  But from an OO perspective, I think this is a valid thing to want to
  do. If you're working with an ISearchEvent instance, you should be
  able to subclass the base class and provide custom behavior. The
  ICustomCriteria is a subclass of ICriteria, so you should be able to
  substitute them in this context. Is there another way to accomplish
  this? Or is this just a 

Re: [flexcoders] .visability = true, but is it viewable?

2008-06-26 Thread bjorn
Yeah, I do that also. The thing is I display hundreds of these animations,
and it may take time to load the files they are loading. So if the user
switches view, I don't want to keep the animations running - even though
they are still loading in the background. It would be nice to just be able
to tell them to stop if they're not visible.



2008/6/25 Paul Andrews [EMAIL PROTECTED]:

You say that the animation plays while something is loading. When the
 something has loaded, stop the timer.

 Paul

  - Original Message -
 *From:* bjorn [EMAIL PROTECTED]
 *To:* flexcoders@yahoogroups.com
  *Sent:* Wednesday, June 25, 2008 4:17 PM
 *Subject:* Re: [flexcoders] .visability = true, but is it viewable?

 The timer is used to update the animation. I need to know when to stop it.



 2008/6/25 Paul Andrews [EMAIL PROTECTED]:

Why not just remove the timer?

 - Original Message -
 *From:* bjorn [EMAIL PROTECTED]
 *To:* flexcoders@yahoogroups.com
 *Sent:* Wednesday, June 25, 2008 2:01 PM
 *Subject:* [flexcoders] .visability = true, but is it viewable?

 I have an animation that is displayed using a timer while something is
 loading. When this animation isn't visible, I don't want the timer to keep
 updating the animation.

 I've overridden the set visible( value:Boolean ) function and stop the
 animation if visible is set to false; but the problem is that visible=false
 doesn't happen e.g. if a ViewStack change occurs causing the animation to be
 hidden.

 If I check the .visible flag in the timer event I see that the component
 is still visible (but it's not displayed since it's hidden). Checking
 with Show redraw regions confirms that it is running in the background.

 --

 
 http://www.juicability.com - flex blog
 http://www.43min.com - funny movies




 --

 
 http://www.juicability.com - flex blog
 http://www.43min.com - funny movies

 




-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


Re: [flexcoders] .visability = true, but is it viewable?

2008-06-26 Thread bjorn
Thanks for the input Mike,

it's a good idea which will solve my problem, but it is still sort of a
last-resolution solution -- since I will need to have a list of all these
loader-animations and stop each one of them - in additon to implementing a
solution like this each time one of them is in use.

I was hoping to have the loader-animation component fix this itself - if it
knew when it was being displayed or not it could stop/start the animation.
So that the programmer who uses the loaderanimation doesn't have to think
about it :-)



2008/6/26 Michael Schmalle [EMAIL PROTECTED]:

   Hi bjron,

 This is just a guess but how bout adding a 'change' listener to the
 viewstack and use the old index to get the last selected child, then get
 it's timer and stop it with that.

 ... just a thought

 Mike


 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.
 




-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


Re: [flexcoders] .visability = true, but is it viewable?

2008-06-26 Thread bjorn
It doesn't seem that setVisible(false) is called on all the children (that
is, the loaders) - so overriding it in the loader-animation won't do the
trick ... but I guess I could hook onto the parent in some way, yes - since
ViewStack does seem to call setVisible(false) on the container ... I will
look into that.

Thanks again for your suggestions :-)

Bjorn


2008/6/26 Michael Schmalle [EMAIL PROTECTED]:

   Hi,

 I don't know 'how' you have the view set up but, could you listen to the
 change event from the loader?

 IE when it's added to it's parent's display list (viewstack), add the
 listener there?

 parent.addEventListener(Event.CHANGE, stopLoader, false, 0, true);

 I only came up with this since I quickly looked at the ViewStack code.

 --

 Scratch what I said above, just looked at the code again.

 When the lastChild is is hidden, it's done with setVisible() not .visible.

 So you should be able to override setVisible() and use your original logic.

 Mike


  On Thu, Jun 26, 2008 at 7:56 AM, bjorn [EMAIL PROTECTED] wrote:

Thanks for the input Mike,

 it's a good idea which will solve my problem, but it is still sort of a
 last-resolution solution -- since I will need to have a list of all these
 loader-animations and stop each one of them - in additon to implementing a
 solution like this each time one of them is in use.

 I was hoping to have the loader-animation component fix this itself - if
 it knew when it was being displayed or not it could stop/start the
 animation. So that the programmer who uses the loaderanimation doesn't have
 to think about it :-)



 2008/6/26 Michael Schmalle [EMAIL PROTECTED]:

Hi bjron,

 This is just a guess but how bout adding a 'change' listener to the
 viewstack and use the old index to get the last selected child, then get
 it's timer and stop it with that.

 ... just a thought

 Mike


 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.




 --

 
 http://www.juicability.com - flex blog
 http://www.43min.com - funny movies




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.

 




-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


[flexcoders] .visability = true, but is it viewable?

2008-06-25 Thread bjorn
I have an animation that is displayed using a timer while something is
loading. When this animation isn't visible, I don't want the timer to keep
updating the animation.

I've overridden the set visible( value:Boolean ) function and stop the
animation if visible is set to false; but the problem is that visible=false
doesn't happen e.g. if a ViewStack change occurs causing the animation to be
hidden.

If I check the .visible flag in the timer event I see that the component is
still visible (but it's not displayed since it's hidden). Checking
with Show redraw regions confirms that it is running in the background.

-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


Re: [flexcoders] .visability = true, but is it viewable?

2008-06-25 Thread bjorn
The timer is used to update the animation. I need to know when to stop it.



2008/6/25 Paul Andrews [EMAIL PROTECTED]:

Why not just remove the timer?

 - Original Message -
 *From:* bjorn [EMAIL PROTECTED]
 *To:* flexcoders@yahoogroups.com
 *Sent:* Wednesday, June 25, 2008 2:01 PM
 *Subject:* [flexcoders] .visability = true, but is it viewable?

 I have an animation that is displayed using a timer while something is
 loading. When this animation isn't visible, I don't want the timer to keep
 updating the animation.

 I've overridden the set visible( value:Boolean ) function and stop the
 animation if visible is set to false; but the problem is that visible=false
 doesn't happen e.g. if a ViewStack change occurs causing the animation to be
 hidden.

 If I check the .visible flag in the timer event I see that the component is
 still visible (but it's not displayed since it's hidden). Checking
 with Show redraw regions confirms that it is running in the background.

 --

 
 http://www.juicability.com - flex blog
 http://www.43min.com - funny movies

 




-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


[flexcoders] Re: multidimentional ArrayCollections and collectionEvent....

2008-06-19 Thread Bjorn Schultheiss
the change event would still be dispatching from the myOtherArr though.
perhaps in your view or whatever is listening to the change event for
myArr you can loop through its items, check if any are
arrayCollections and then listen to their change events as well.

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

 Hi,
 collectionEventKind.Update does not seem to fire when subitems within
 a collection change, i.e.. 
 myArr = new ArrayCollection();
 myOtherArr = new ArrayCollection();
 myArr.addItem(myOtherArr);
 
 the update event does not fire if myOtherArr changes. it does if myArr
 changes.





[flexcoders] Re: Cairngorm Event Question

2008-06-18 Thread Bjorn Schultheiss
I'm assuming Binding would be the easiest solution.
If your binding directly from your model to the advancedDataGrid
binding should take care of the updating for you..


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

 I have been building on my cairngorm experience and have come up to a
 snag.
 
 I understand the whole idea about using the controller to trap and
 respond to events, however, how do I deal with custom view components
 that need to respond to an event.
 
 For example, I have a custom component that contains an advanced data
 grid. I am filling the modelLocator with data from the server and
 using this as the data provider for the advanced data grid. The
 problem I have is when the user selects a different date, I generate a
 cairngorm event to load new data from the server. This information is
 dealt with in the controller, however, I am not able to send the event
 to the custom component to refresh the advance data grid and display
 the data.
 
 Would someone help me to understand how I can use the events, or
 generate a new custom event to trigger some activity within a custom
 view component
 
 Thanks for the help
 
 Don





[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Bjorn Schultheiss
Just some random thoughts.

It seems most of the posts on the list are general help questions.

Alex and the other guys have been a great help when it comes to asking
questions where the answers weren't bleedingly obvious to me in the
documentation.

Sometimes I have more abstract questions that I ask myself in terms of
design and architecture that I do not feel would be appropriate to ask
on this list.
It seems that because of the volume of questions most of the answers
are short and to the point.
Sometimes I would be looking for feedback and to build on ideas or
concepts and I get the feeling a more advanced list would be appropriate.

I've done a lot of work that I simply haven't published (mostly
because i don't own the IP), but i would love a forum to discuss some
of these new ideas I have.

If new lists gets the backing from adobe, farata, UM and others I
think this could encourage a new wave in community involvement.


regards,

Bjorn




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

 I plan on gathering a complete archive of the list over the next week
 and doing some analysis. I'll post the full dataset once I get it
 compiled to let others play with it too. I'm working on a variety of
 ways to get a compiled list of all messages, but I think between
 either scraping the mail archive site and scraping the yahoo group
 site I should have it figured out in another week.
 
 Then of course I'll build some flex apps to crunch some of the data :)
 
 Doug
 
 On Tue, Jun 17, 2008 at 6:20 PM, Matt Chotin [EMAIL PROTECTED] wrote:
  As far as stats, we've had about 100 people join in the last week.
I don't
  know how many folks unsubscribed, that seems to be a little harder
to track
  easily and I don't have time to read through all the logs (if
someone would
  like to write some scripts to go through the logs and build up
these kinds
  of stats let me know and I'll get you access). Also hard to know
how many of
  the folks who joined are spammers, but I don't think that many :-)
 
  This is a tough position for me to comment on because we want the
community
  to thrive and have a life of its own that isn't controlled by
Adobe. That
  said, we clearly want to see it succeed and will involve ourselves as
  necessary to try to make that happen.
 
  Based on the comments I'm seeing in this thread I don't see the
big clamor
  to divide the list. I see folks who have figured out workflows
that work for
  them, and suggestions for how to make things more manageable. That
said, the
  issue that Anatole raises is whether we are preventing new users from
  getting help, or preventing advanced users from participating.
Most of those
  folks who have been hurt we can assume are folks who are not on
the list
  anymore, so it's difficult to really know without some sort of
data as to
  why they left the list. If people are willing to wait a few weeks,
maybe we
  could work on trying to gather that data and make a decision
after. Another
  piece of data we could use is an analysis of the kinds of posts
that have
  happened recently, perhaps compared to posts from a year ago, and
see if the
  skill level of posters is increasing, how many threads are going un
  answered, semi-subjective view of signal vs. noise. This would help us
  understand if there is meaning behind the low rate of increase in
total
  number of members, as well as the generally flat nature of posts
per month.
 
  Does doing this kind of analysis interest anyone? Are the folks
who advocate
  separating the list interested in waiting for this kind of
analysis? For me,
  it seems kind of critical to have real data before making this kind of
  decision, as we're going with hunches as to what's really
happening here.
  I'd have a hard time getting behind a real split when we don't
know if doing
  so would actually improve things.
 
  Matt
 
  On 6/17/08 3:15 PM, Anatole Tartakovsky [EMAIL PROTECTED]
  wrote:
 
  Doug,
  As far as I know, I am the only one in the NY office who did not
unsubscribe
  from the group. Looks at the stats ( provided by Tim) or just go
to the
  group page. Also, the number of users if I remember it correctly
has been in
  9K for at least 6 month - meaning you have the same number of
people in and
  OUT - obviously you need to ask Matt if he has more detailed stats on
  unsubscribes count.
  Regards,
  Anatole
 
  On Tue, Jun 17, 2008 at 5:35 PM, Doug McCune [EMAIL PROTECTED] wrote:
  Actually, this is worth going back to, because your initial email
said that
  the group was stagnant and has plateaued with the number of new
users and
  questions. Except your reason for bringing it up is that the
traffic has
  gotten too much for you to read every message. So clearly the level of
  traffic isn't stagnant. Unless what you're saying is that about 6
months ago
  the traffic reached a critical level where you couldn't deal with the
  traffic but then it stopped growing.
 
  So I guess I'm saying I question

[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Bjorn Schultheiss
 Also, to Bjorn, that's a point I hadn't thought of.  The idea of
having an
 arch/concepts list might be interesting.  The two questions I would have
 would be: 1) would the questions on this list have any connection to
Flex

Anatole mentioned it earlier in a 'Best Practices' list.

For example at MAX thy had that Best Practices panel and some
interesting topics were brought up and discussed.

From my point of view I'm always learning. 
It would be an interesting read for me.











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

 I agree that a FAQ seems like a good idea no matter what.  Is anyone
against
 this idea independent of the argument of whether or not to split the
list?
 
 As far as splitting lists, I still think if people want to propose
potential
 new lists, they need to be much more explicit about what the list
will be
 for.  I'll take the enterprise example.  Let's assume for a second
it has
 only one correct meaning (which is an assumption I agree with, but many
 people disagree with me on that).  Enterprise has become a
buzzword with
 many different commonly understood meanings, and most of those
meanings are
 vague.  There's no way for everyone on the list to be sure that we're
 talking about the same thing unless someone explicitly spells out
what we
 are talking about (I'm not going to because I'm against having a
 enterprise list given every way I know to interpret the word). 
And if we
 don't have a common understanding of the proposal we can't efficiently
 criticize/support/amend the proposal.  I'm not saying there has to
be a fine
 line separating the lists, but it should at least be a fuzzy line.
 
 Also, to Bjorn, that's a point I hadn't thought of.  The idea of
having an
 arch/concepts list might be interesting.  The two questions I would have
 would be: 1) would the questions on this list have any connection to
Flex
 other than the fact that the users code in Flex (I think it probably
would)
 or would it just be piggybacking on the user base; 2) Will it avoid
 stratification of the user base (i.e. will it be practically
accessible to
 users of all skill levels)?
 
 Lastly, I'm going to reiterate my opinion that we shouldn't separate the
 lists based on skill/level difficulty.  The distinction is too fuzzy
(Too
 much cross-posting and too much posting to the wrong list). 
Sometimes you
 don't know if you're question is advanced or not until you get the
answer.
 I've had a few times where I've asked what I thought was a simple
question
 and the response from Gordon was I talked to a guy on the player
team...
 If a question has a one line answer it can't be complex...unless the one
 line required going through the player or compiler code to understand it
 (sorry for the overstatement).
 
 - Daniel Freiman
 
 On Tue, Jun 17, 2008 at 10:31 PM, Douglas Knudsen [EMAIL PROTECTED]
 wrote:
 
Having been on this list since 2004, yeah back when the Iteration
  folks were not Adobe Robe Wearers yet, I've seen this discussion come
  up a few times. I've asked for a associated FAQ a few times, but
  there was no interest from the Iteration folks on this or splitting up
  things, no offense Alistair or Stephen you more than rocked with
  helping this community. I'd certainly agree to a good FAQ be made
  available and sent to the list monthly for all to be reminded and have
  it linked at the footer.
 
  Bjorn has a good point later in this thread about the idea that
  answers are terse due to volume.
 
  Matt, I do agree with your #1, but #2 and #3 sounds too much like list
  mommies or invitations for list mommies. Something quite uncommon to
  the best of my recollection on flexcoders is the real need for list
  mommies.
 
  I'm in Anatole's camp on this, having multiple lists could be
  beneficial to all as well as the community. Do we know this for a
  fact? Nope, my crystal ball isn't helping, but it has with many other
  topics in the past. Conversely it may have hindered others, but
  perhaps because the introduction of split lists was premature, who
  knows. Hey, there are already multiple lists, besides flexcomponents
  there is HOF_Flex for one and the India based list too, I'm sure there
  are others.
 
  I suggest we start off with a couple very generic variants.
  flexcoders_enterprise seems ok to me, those that work with enterprise
  tools would find it obvious. leave flexcoders as is, add in a
  designer centric list, and a advanced list and go from there, revisit
  in a few months to see how it went.
 
  Oh, BTW there are other email readers that do threaded tricks like
  GMail...though I don't use them. :)
 
  DK
 
 
  On Tue, Jun 17, 2008 at 1:48 PM, Matt Chotin
[EMAIL PROTECTED]mchotin%40adobe.com
  wrote:
   Hey folks, let's calm down a little here, K?
  
   Alright, based on what I've been seeing people say, here's my
suggestion.
  
   1) Let's get an FAQ going that can be edited by moderators or
members of
  the
   community

[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Bjorn Schultheiss
cool.

This discussion needs some resolving though.

I'm all for the creation of another 15 lists.
With all the cross-posting, subject-meta, gmail, stats,
my-left-arm-is-longer-than-my-right arguments, my vote is still with
the split.

best-practices, architecture, components, unit-testing, deployment,
flash-flex, remote services, java-flex architectures, design ux,
announcements, etc..

lets do it.


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

 I think of Best Practices and Architecture/Concepts as separate but
 overlapping categories so I guess that's why I thought no one else
brought
 it up.
 
 On Tue, Jun 17, 2008 at 11:57 PM, Bjorn Schultheiss 
 [EMAIL PROTECTED] wrote:
 
 Also, to Bjorn, that's a point I hadn't thought of. The idea of
  having an
   arch/concepts list might be interesting. The two questions I
would have
   would be: 1) would the questions on this list have any connection to
  Flex
 
  Anatole mentioned it earlier in a 'Best Practices' list.
 
  For example at MAX thy had that Best Practices panel and some
  interesting topics were brought up and discussed.
 
  From my point of view I'm always learning.
  It would be an interesting read for me.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Daniel
  Freiman FreimanCQ@ wrote:
  
   I agree that a FAQ seems like a good idea no matter what. Is anyone
  against
   this idea independent of the argument of whether or not to split the
  list?
  
   As far as splitting lists, I still think if people want to propose
  potential
   new lists, they need to be much more explicit about what the list
  will be
   for. I'll take the enterprise example. Let's assume for a second
  it has
   only one correct meaning (which is an assumption I agree with,
but many
   people disagree with me on that). Enterprise has become a
  buzzword with
   many different commonly understood meanings, and most of those
  meanings are
   vague. There's no way for everyone on the list to be sure that we're
   talking about the same thing unless someone explicitly spells out
  what we
   are talking about (I'm not going to because I'm against having a
   enterprise list given every way I know to interpret the word).
  And if we
   don't have a common understanding of the proposal we can't
efficiently
   criticize/support/amend the proposal. I'm not saying there has to
  be a fine
   line separating the lists, but it should at least be a fuzzy line.
  
   Also, to Bjorn, that's a point I hadn't thought of. The idea of
  having an
   arch/concepts list might be interesting. The two questions I
would have
   would be: 1) would the questions on this list have any connection to
  Flex
   other than the fact that the users code in Flex (I think it probably
  would)
   or would it just be piggybacking on the user base; 2) Will it avoid
   stratification of the user base (i.e. will it be practically
  accessible to
   users of all skill levels)?
  
   Lastly, I'm going to reiterate my opinion that we shouldn't
separate the
   lists based on skill/level difficulty. The distinction is too fuzzy
  (Too
   much cross-posting and too much posting to the wrong list).
  Sometimes you
   don't know if you're question is advanced or not until you get the
  answer.
   I've had a few times where I've asked what I thought was a simple
  question
   and the response from Gordon was I talked to a guy on the player
  team...
   If a question has a one line answer it can't be complex...unless
the one
   line required going through the player or compiler code to
understand it
   (sorry for the overstatement).
  
   - Daniel Freiman
  
   On Tue, Jun 17, 2008 at 10:31 PM, Douglas Knudsen douglasknudsen@
 
   wrote:
  
Having been on this list since 2004, yeah back when the Iteration
folks were not Adobe Robe Wearers yet, I've seen this
discussion come
up a few times. I've asked for a associated FAQ a few times, but
there was no interest from the Iteration folks on this or
splitting up
things, no offense Alistair or Stephen you more than rocked with
helping this community. I'd certainly agree to a good FAQ be made
available and sent to the list monthly for all to be reminded
and have
it linked at the footer.
   
Bjorn has a good point later in this thread about the idea that
answers are terse due to volume.
   
Matt, I do agree with your #1, but #2 and #3 sounds too much
like list
mommies or invitations for list mommies. Something quite
uncommon to
the best of my recollection on flexcoders is the real need for
list
mommies.
   
I'm in Anatole's camp on this, having multiple lists could be
beneficial to all as well as the community. Do we know this for a
fact? Nope, my crystal ball isn't helping, but it has with
many other
topics in the past. Conversely it may have hindered others, but
perhaps because the introduction of split lists was premature, who
knows

[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Bjorn Schultheiss

 could argue that at times it's certainly not helping my productivity
 :)

Agreed.. 

I'm using apple mail and achieving something similar..
Mail seems to render the rss html better than gmail.

Ion's cool.. but no offline support.





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

 Out of morbid curiosity, am I the only one who has multiple email
 lists all being filtered into the same mega-list? I have flexcoders,
 flexcomponents, apollocoders, papervision, degrafa, flexlib, and
 flexjobs all dropped into a mondo folder in gmail. I color code each
 list accordingly so I can at a glance see which list a message is
 from, but typically I read them all in the master list. Nobody else
 does this? Somehow I can stay on top  of it all, although I'm sure you
 could argue that at times it's certainly not helping my productivity
 :)
 
 Doug
 
 On Tue, Jun 17, 2008 at 9:17 PM, Bjorn Schultheiss
 [EMAIL PROTECTED] wrote:
  cool.
 
  This discussion needs some resolving though.
 
  I'm all for the creation of another 15 lists.
  With all the cross-posting, subject-meta, gmail, stats,
  my-left-arm-is-longer-than-my-right arguments, my vote is still with
  the split.
 
  best-practices, architecture, components, unit-testing, deployment,
  flash-flex, remote services, java-flex architectures, design ux,
  announcements, etc..
 
  lets do it.
 
  --- In flexcoders@yahoogroups.com, Daniel Freiman FreimanCQ@
wrote:
 
  I think of Best Practices and Architecture/Concepts as
separate but
  overlapping categories so I guess that's why I thought no one else
  brought
  it up.
 
  On Tue, Jun 17, 2008 at 11:57 PM, Bjorn Schultheiss 
  bjorn.mailinglists@ wrote:
 
Also, to Bjorn, that's a point I hadn't thought of. The idea of
   having an
arch/concepts list might be interesting. The two questions I
  would have
would be: 1) would the questions on this list have any
connection to
   Flex
  
   Anatole mentioned it earlier in a 'Best Practices' list.
  
   For example at MAX thy had that Best Practices panel and some
   interesting topics were brought up and discussed.
  
   From my point of view I'm always learning.
   It would be an interesting read for me.
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  Daniel
   Freiman FreimanCQ@ wrote:
   
I agree that a FAQ seems like a good idea no matter what. Is
anyone
   against
this idea independent of the argument of whether or not to
split the
   list?
   
As far as splitting lists, I still think if people want to
propose
   potential
new lists, they need to be much more explicit about what the list
   will be
for. I'll take the enterprise example. Let's assume for a
second
   it has
only one correct meaning (which is an assumption I agree with,
  but many
people disagree with me on that). Enterprise has become a
   buzzword with
many different commonly understood meanings, and most of those
   meanings are
vague. There's no way for everyone on the list to be sure
that we're
talking about the same thing unless someone explicitly spells out
   what we
are talking about (I'm not going to because I'm against having a
enterprise list given every way I know to interpret the word).
   And if we
don't have a common understanding of the proposal we can't
  efficiently
criticize/support/amend the proposal. I'm not saying there has to
   be a fine
line separating the lists, but it should at least be a fuzzy
line.
   
Also, to Bjorn, that's a point I hadn't thought of. The idea of
   having an
arch/concepts list might be interesting. The two questions I
  would have
would be: 1) would the questions on this list have any
connection to
   Flex
other than the fact that the users code in Flex (I think it
probably
   would)
or would it just be piggybacking on the user base; 2) Will it
avoid
stratification of the user base (i.e. will it be practically
   accessible to
users of all skill levels)?
   
Lastly, I'm going to reiterate my opinion that we shouldn't
  separate the
lists based on skill/level difficulty. The distinction is too
fuzzy
   (Too
much cross-posting and too much posting to the wrong list).
   Sometimes you
don't know if you're question is advanced or not until you
get the
   answer.
I've had a few times where I've asked what I thought was a simple
   question
and the response from Gordon was I talked to a guy on the player
   team...
If a question has a one line answer it can't be complex...unless
  the one
line required going through the player or compiler code to
  understand it
(sorry for the overstatement).
   
- Daniel Freiman
   
On Tue, Jun 17, 2008 at 10:31 PM, Douglas Knudsen
douglasknudsen@
  
wrote:
   
 Having been on this list since 2004, yeah back when the
Iteration
 folks were not Adobe Robe Wearers yet, I've seen this
  discussion come
 up a few times

[flexcoders] Re: Flex Css Html Css

2008-06-16 Thread Bjorn Schultheiss
Do you have any examples??

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

 i just did something even more complicated today using degrafa and
css, with a few lines of code, and i'm IMPRESSED!
 
 
 - Mensaje original 
 De: Bjorn Schultheiss [EMAIL PROTECTED]
 Para: flexcoders@yahoogroups.com
 Enviado: lunes, 16 de junio, 2008 5:33:41
 Asunto: [flexcoders] Re: Flex Css  Html Css
 
 
 Have you seen degrafa?
 You can do all this via CSS.
 http://blog. benstucki. net/?p=46
 
 --- In [EMAIL PROTECTED] ups.com, Michael Schmalle
 teoti.graphix@ ... wrote:
 
  Hi,
  
  Well.. you can't really unless you create a custom skin. There are
 some open
  source stuff out there that allows you to use a background repeat
 algorithm.
  
  There is no background position styles either.
  
  So really, what you want to do cannot be done with Flex3 css.
  
  Mike
  
  On Mon, Jun 9, 2008 at 1:27 AM, xaero xaero@ wrote:
  
 And then How can I set the page's background like in the HTML Css?
   That is:
   background-repeat: repeat-x;
   background-Position X: left;
   background-Position Y: bottom;
  
   --- In [EMAIL PROTECTED] ups.com flexcoders% 40yahoogroups. com,
 Michael
   Schmalle
  
   teoti.graphix@  wrote:
   
No, you can't do this.
   
Flex CSS is not 'real' css and does not conform to WC3.
   
Mike
   
  
   
  
  
  
  
  -- 
  Teoti Graphix, LLC
  http://www.teotigra phix.com
  
  Teoti Graphix Blog
  http://www.blog. teotigraphix. com
  
  You can find more by solving the problem then by 'asking the
question'.
 
 
 
 
 
   __ 
 Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.





[flexcoders] Re: Error : Type Coercion failed: cannot convert mx.utils::ObjectProxy to Array

2008-06-16 Thread Bjorn Schultheiss
what object are you casting to an array?
take a look at ::object_proxy

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

 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.utils::[EMAIL PROTECTED] to Array.
 at

com.brookeside.enact.view.navigation.company::HomeComponent/::loyaltyLevelLineMonitorResult()
 at

com.brookeside.enact.view.navigation.company::HomeComponent/__loyaltyLevelLineMonitorService_result()
 at

flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at

mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
 at

mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
 at mx.rpc::Responder/result()
 at mx.rpc::AsyncRequest/acknowledge()
 at ::DirectHTTPMessageResponder/completeHandler()
 at

flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/flash.net:URLLoader::onComplete()





[flexcoders] Re: How to debug

2008-06-16 Thread Bjorn Schultheiss
When I get lost I start removing code until i can get a working build.
Provided you can you adl to debug other apps this approach should help.

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

 I've got an application that I'm building that just started crashing
adl.
 Is there anyway to debug something like this?  I have traced the
issue to a
 semi-specific area of my code, but when it crashes I can't use any
of the
 debug stuff to get a closer look at the problem.
 -- 
 [EMAIL PROTECTED]
 785-832-9154





[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-16 Thread Bjorn Schultheiss
I like the idea of splitting topics into different lists.
I also like Anatole's suggestions for list types.

Flexcoders has become to over-bloated.. 

I would be in favour for looking at topics that I'm interested in.

Perhaps this will get more of the experienced contributors back on the
list.

Imagine if OSFlash had only one mailing list.





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

 Dear All,
Flexcoders has huge problem. In the last 15 month it is very much
 stagnant in terms of message count and participation. It is not
growing and
 dropping members as fast as it gets them.
 
I believe this group has overgrown the optimal size about a year
ago and
 needs to be divided in more focused smaller groups. My mail box get 100+
 messages a day on all kinds of topic - unless I can spend 30+
minutes that
 day to sort them out it goes directly into garbage can. Most people
in the
 company unsubscribed from it 18 month ago. Most of veteran
developers I know
 either unsubscribed or stopped looking in this mess greatly
diminishing the
 quality of the responses. As a result group mostly host new
developers and
 looses most of experienced ones after very short period of time.
 
 Further delay of breaking this group hinders usefulness of the group
for all
 of us as now we have significant amount of users that are being
forced out.
 I believe it is time to archive flexcoders and branch (12?) targeted new
 user groups
 
 I would like to see people suggesting user subgroups and WiKi topics for
 Flex community site to go with each group - providing best posts in more
 systematic way.
 
 I suggest the following Yahoo groups ( created couple for your
 convenience).
 
 Flex101: http://tech.groups.yahoo.com/group/flex101/
 
 Post message: [EMAIL PROTECTED]
 
 Subscribe: [EMAIL PROTECTED]
 
 Unsubscribe: [EMAIL PROTECTED]
 
 List owner: [EMAIL PROTECTED]
 
 EnterpriseFlex: http://tech.groups.yahoo.com/group/enterpriseflex/
 
 Post message: [EMAIL PROTECTED]
 
 Subscribe: [EMAIL PROTECTED]
 
 Unsubscribe: [EMAIL PROTECTED]
 
 List owner: [EMAIL PROTECTED]
 
 FlexUI
 FlexDesign
 
 FlexSDK
 FlexDeployment
 
 FlexFlash
 
 FlexFrameworks
 
 FlexBestPractices
 
 EnterpriseFlex:
 
 FlexBlazeDS:
 
 weborb:
 
 Sincerely,
 Anatole Tartakovsky
 Farata Systems





[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-16 Thread Bjorn Schultheiss
  1. 101
Is creating a new group for this necessary or is flexcoders already
handling this?

  2. Coding (AS3/MXML)
The name seems too abstract, what area are we targeting?
Is is to show off new ideas or syntax questions.

  3. Design and UI ( Flash/Components/CSS/Skin)
Love it! Can we replace UI with UX : )

  4. Enterprise/Best Practices/Frameworks
Does this include WebOrb/Blaze/LCDS ?

  5. AIR - not big yet, but definitely a separate group of folks 
Apollocoders exists. not sure what the traffic is like.





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

 That's not a bad list of categories at all Anatole.
 
 It would be best if there's still some sort of (read-only?)
meta-list that
 shows all messages, and if it were smart enough that you could read the
 all list and replies went to the correct lists it'd be a pretty good
 common ground I think. I'm no mailing-list-guy though, so no idea if
that's
 feasible.
 
 -Josh
 
 On Tue, Jun 17, 2008 at 1:37 PM, Anatole Tartakovsky 
 [EMAIL PROTECTED] wrote:
 
Matt,
 
   Splitting the last 500 topics in groups it would be:
  1. 101
  2. Coding (AS3/MXML)
  3. Design and UI ( Flash/Components/CSS/Skin)
  4. Enterprise/Best Practices/Frameworks
  5. AIR - not big yet, but definitely a separate group of folks there
 
  Thank you
  Anatole Tartakovsky
  Farata Systems
 
  On Mon, Jun 16, 2008 at 11:28 PM, Matt Chotin [EMAIL PROTECTED] wrote:t
  Practices/Frameworks
 
 I do think 12 is way too high a number BTW. Would recommend
capping at
  5 absolute max.
 
 
  On 6/16/08 8:28 PM, Matt Chotin [EMAIL PROTECTED]mchotin%40adobe.com
  wrote:
 
  Hey guys,
 
  If you think that splitting the lists is the right thing to do
for the
  larger community then I'm not going to stop you. I think we were
right in
  the past to recommend against the split, but I can see Anatole's
point that
  traffic has stagnated and we'd certainly like the community to
thrive. We'll
  certainly try to pay attention to as much as possible (not like
it's me
  doing much but you know some Adobe folks are quite active), but no
  guarantees on how it will go. The Adobe forums themselves are
definitely
  lacking, primarily because we can't access them via email. There is a
  project going on within Adobe to improve the experience
drastically, and we
  definitely intend to split forums there (and hopefully convince
everyone to
  come back over and move away from Yahoo Groups); but it's still a
number of
  months away at the earliest. I would hope that folks will
continue to help
  users of all levels, and we'll need moderators to handle whatever
new lists
  are created.
 
  Matt
 
  On 6/16/08 8:17 PM, Bjorn Schultheiss
[EMAIL PROTECTED]bjorn.mailinglists%40gmail.com
  wrote:
 
  I like the idea of splitting topics into different lists.
  I also like Anatole's suggestions for list types.
 
  Flexcoders has become to over-bloated..
 
  I would be in favour for looking at topics that I'm interested in.
 
  Perhaps this will get more of the experienced contributors back
on the
  list.
 
  Imagine if OSFlash had only one mailing list.
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
mailto:
  flexcoders%40yahoogroups.com
flexcoders%2540yahoogroups.commailto:
  flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com ,
Anatole
  Tartakovsky
  anatole.tartakovsky@ wrote:
  
   Dear All,
   Flexcoders has huge problem. In the last 15 month it is very much
   stagnant in terms of message count and participation. It is not
  growing and
   dropping members as fast as it gets them.
  
   I believe this group has overgrown the optimal size about a year
  ago and
   needs to be divided in more focused smaller groups. My mail box
get 100+
   messages a day on all kinds of topic - unless I can spend 30+
  minutes that
   day to sort them out it goes directly into garbage can. Most people
  in the
   company unsubscribed from it 18 month ago. Most of veteran
  developers I know
   either unsubscribed or stopped looking in this mess greatly
  diminishing the
   quality of the responses. As a result group mostly host new
  developers and
   looses most of experienced ones after very short period of time.
  
   Further delay of breaking this group hinders usefulness of the
group
  for all
   of us as now we have significant amount of users that are being
  forced out.
   I believe it is time to archive flexcoders and branch (12?)
targeted new
   user groups
  
   I would like to see people suggesting user subgroups and WiKi
topics for
   Flex community site to go with each group - providing best
posts in more
   systematic way.
  
   I suggest the following Yahoo groups ( created couple for your
   convenience).
  
   Flex101: http://tech.groups.yahoo.com/group/flex101/
  
   Post message: [EMAIL PROTECTED]
flex101%40yahoogroups.commailto:
  flex101%40yahoogroups.com flex101%2540yahoogroups.commailto:
  flex101%40yahoogroups.com flex101%2540yahoogroups.com

[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-16 Thread Bjorn Schultheiss
Existing
- FlexCoders
- FlexComponents
- ApolloCoders
- FlexJobs

New
- EnterpriseFlex
- FlexUIDesign
- FlexAnnouncements
- ActionscriptCoders

?



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

   1. 101
 Is creating a new group for this necessary or is flexcoders already
 handling this?
 
   2. Coding (AS3/MXML)
 The name seems too abstract, what area are we targeting?
 Is is to show off new ideas or syntax questions.
 
   3. Design and UI ( Flash/Components/CSS/Skin)
 Love it! Can we replace UI with UX : )
 
   4. Enterprise/Best Practices/Frameworks
 Does this include WebOrb/Blaze/LCDS ?
 
   5. AIR - not big yet, but definitely a separate group of folks 
 Apollocoders exists. not sure what the traffic is like.
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, Josh McDonald dznuts@ wrote:
 
  That's not a bad list of categories at all Anatole.
  
  It would be best if there's still some sort of (read-only?)
 meta-list that
  shows all messages, and if it were smart enough that you could
read the
  all list and replies went to the correct lists it'd be a pretty good
  common ground I think. I'm no mailing-list-guy though, so no idea if
 that's
  feasible.
  
  -Josh
  
  On Tue, Jun 17, 2008 at 1:37 PM, Anatole Tartakovsky 
  anatole.tartakovsky@ wrote:
  
 Matt,
  
Splitting the last 500 topics in groups it would be:
   1. 101
   2. Coding (AS3/MXML)
   3. Design and UI ( Flash/Components/CSS/Skin)
   4. Enterprise/Best Practices/Frameworks
   5. AIR - not big yet, but definitely a separate group of folks there
  
   Thank you
   Anatole Tartakovsky
   Farata Systems
  
   On Mon, Jun 16, 2008 at 11:28 PM, Matt Chotin mchotin@ wrote:t
   Practices/Frameworks
  
  I do think 12 is way too high a number BTW. Would recommend
 capping at
   5 absolute max.
  
  
   On 6/16/08 8:28 PM, Matt Chotin mchotin@mchotin%40adobe.com
   wrote:
  
   Hey guys,
  
   If you think that splitting the lists is the right thing to do
 for the
   larger community then I'm not going to stop you. I think we were
 right in
   the past to recommend against the split, but I can see Anatole's
 point that
   traffic has stagnated and we'd certainly like the community to
 thrive. We'll
   certainly try to pay attention to as much as possible (not like
 it's me
   doing much but you know some Adobe folks are quite active), but no
   guarantees on how it will go. The Adobe forums themselves are
 definitely
   lacking, primarily because we can't access them via email.
There is a
   project going on within Adobe to improve the experience
 drastically, and we
   definitely intend to split forums there (and hopefully convince
 everyone to
   come back over and move away from Yahoo Groups); but it's still a
 number of
   months away at the earliest. I would hope that folks will
 continue to help
   users of all levels, and we'll need moderators to handle whatever
 new lists
   are created.
  
   Matt
  
   On 6/16/08 8:17 PM, Bjorn Schultheiss
 bjorn.mailinglists@bjorn.mailinglists%40gmail.com
   wrote:
  
   I like the idea of splitting topics into different lists.
   I also like Anatole's suggestions for list types.
  
   Flexcoders has become to over-bloated..
  
   I would be in favour for looking at topics that I'm interested in.
  
   Perhaps this will get more of the experienced contributors back
 on the
   list.
  
   Imagine if OSFlash had only one mailing list.
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 mailto:
   flexcoders%40yahoogroups.com
 flexcoders%2540yahoogroups.commailto:
   flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com ,
 Anatole
   Tartakovsky
   anatole.tartakovsky@ wrote:
   
Dear All,
Flexcoders has huge problem. In the last 15 month it is very much
stagnant in terms of message count and participation. It is not
   growing and
dropping members as fast as it gets them.
   
I believe this group has overgrown the optimal size about a year
   ago and
needs to be divided in more focused smaller groups. My mail box
 get 100+
messages a day on all kinds of topic - unless I can spend 30+
   minutes that
day to sort them out it goes directly into garbage can. Most
people
   in the
company unsubscribed from it 18 month ago. Most of veteran
   developers I know
either unsubscribed or stopped looking in this mess greatly
   diminishing the
quality of the responses. As a result group mostly host new
   developers and
looses most of experienced ones after very short period of time.
   
Further delay of breaking this group hinders usefulness of the
 group
   for all
of us as now we have significant amount of users that are being
   forced out.
I believe it is time to archive flexcoders and branch (12?)
 targeted new
user groups
   
I would like to see people suggesting user subgroups and WiKi
 topics for
Flex community site to go with each group - providing best
 posts

[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-16 Thread Bjorn Schultheiss
- FlexCodersAnnouncements
- FlexCodersRemoteServices
- FlexCodersUserExperience
- FlexCodersBestPractices


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

 Drop actionscriptcoders and rename enterprise to RPC (or FlexRemoting or
 something), and I'm in. 95% of funky flex question are actionscript
 questions - unless it's an advanced actionscript list for things
like VM
 internals stuff, in which case case perhaps it just needs a name change.
 
 Everybody likes to think what they're doing is enterprise. What we're
 doing definitely counts (Oracle *loves* us), but we're all SOAP - we
don't
 use LCDS at all, so if people think enterprise is mainly for LCDS stuff
 we're going to get confusion.
 
 Didn't know about ApolloCoders, I think I'll go subscribe :)
 
 Definitely like the idea of an announce list, it could be moderated
or you
 could subscribe to it as a daily / weekly digest.
 
 -Josh
 
 On Tue, Jun 17, 2008 at 2:10 PM, Bjorn Schultheiss 
 [EMAIL PROTECTED] wrote:
 
Existing
  - FlexCoders
  - FlexComponents
  - ApolloCoders
  - FlexJobs
 
  New
  - EnterpriseFlex
  - FlexUIDesign
  - FlexAnnouncements
  - ActionscriptCoders
 
  ?
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Bjorn
  Schultheiss
 
  bjorn.mailinglists@ wrote:
  
 1. 101
   Is creating a new group for this necessary or is flexcoders already
   handling this?
  
 2. Coding (AS3/MXML)
   The name seems too abstract, what area are we targeting?
   Is is to show off new ideas or syntax questions.
  
 3. Design and UI ( Flash/Components/CSS/Skin)
   Love it! Can we replace UI with UX : )
  
 4. Enterprise/Best Practices/Frameworks
   Does this include WebOrb/Blaze/LCDS ?
  
 5. AIR - not big yet, but definitely a separate group of folks
   Apollocoders exists. not sure what the traffic is like.
  
  
  
  
  
   --- In flexcoders@yahoogroups.com
flexcoders%40yahoogroups.com, Josh
  McDonald dznuts@ wrote:
   
That's not a bad list of categories at all Anatole.
   
It would be best if there's still some sort of (read-only?)
   meta-list that
shows all messages, and if it were smart enough that you could
  read the
all list and replies went to the correct lists it'd be a
pretty good
common ground I think. I'm no mailing-list-guy though, so no
idea if
   that's
feasible.
   
-Josh
   
On Tue, Jun 17, 2008 at 1:37 PM, Anatole Tartakovsky 
anatole.tartakovsky@ wrote:
   
 Matt,

 Splitting the last 500 topics in groups it would be:
 1. 101
 2. Coding (AS3/MXML)
 3. Design and UI ( Flash/Components/CSS/Skin)
 4. Enterprise/Best Practices/Frameworks
 5. AIR - not big yet, but definitely a separate group of
folks there

 Thank you
 Anatole Tartakovsky
 Farata Systems

 On Mon, Jun 16, 2008 at 11:28 PM, Matt Chotin mchotin@ wrote:t
 Practices/Frameworks

 I do think 12 is way too high a number BTW. Would recommend
   capping at
 5 absolute max.


 On 6/16/08 8:28 PM, Matt Chotin
mchotin@mchotin%40adobe.com
 wrote:

 Hey guys,

 If you think that splitting the lists is the right thing to do
   for the
 larger community then I'm not going to stop you. I think we
were
   right in
 the past to recommend against the split, but I can see
Anatole's
   point that
 traffic has stagnated and we'd certainly like the community to
   thrive. We'll
 certainly try to pay attention to as much as possible (not like
   it's me
 doing much but you know some Adobe folks are quite active),
but no
 guarantees on how it will go. The Adobe forums themselves are
   definitely
 lacking, primarily because we can't access them via email.
  There is a
 project going on within Adobe to improve the experience
   drastically, and we
 definitely intend to split forums there (and hopefully convince
   everyone to
 come back over and move away from Yahoo Groups); but it's
still a
   number of
 months away at the earliest. I would hope that folks will
   continue to help
 users of all levels, and we'll need moderators to handle
whatever
   new lists
 are created.

 Matt

 On 6/16/08 8:17 PM, Bjorn Schultheiss
   bjorn.mailinglists@bjorn.mailinglists%40gmail.com
 wrote:

 I like the idea of splitting topics into different lists.
 I also like Anatole's suggestions for list types.

 Flexcoders has become to over-bloated..

 I would be in favour for looking at topics that I'm
interested in.

 Perhaps this will get more of the experienced contributors back
   on the
 list.

 Imagine if OSFlash had only one mailing list.

 --- In flexcoders@yahoogroups.com
flexcoders%40yahoogroups.comflexcoders%
  40yahoogroups.com
   mailto:
 flexcoders%40yahoogroups.com
   flexcoders%2540yahoogroups.commailto:
 flexcoders%40yahoogroups.com
flexcoders

[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-16 Thread Bjorn Schultheiss

 Now, how do we go about some sort of process to see what kind of support
 there is on the list?

A corresponding wordpress blog/website for each list updated with info
by the moderators and contributors.
It wouldn't have to be an InsideRIA style blog, just info relating to
the list.





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

 I like it :)
 
 FlexCodersBestPractices could be a very useful forum. Although there
might
 be some crossover between UserExperience and the existing FlexComponents
 list?
 
 Now, how do we go about some sort of process to see what kind of support
 there is on the list?
 
 Also, if we don't have the support of the Adobe cats that post here, the
 idea is definitely dead in the water. They're a *big* help and have
the kind
 of inside information that takes the rest of us quite a while to
replicate
 :)
 
 -Josh
 
 On Tue, Jun 17, 2008 at 2:44 PM, Bjorn Schultheiss 
 [EMAIL PROTECTED] wrote:
 
- FlexCodersAnnouncements
  - FlexCodersRemoteServices
  - FlexCodersUserExperience
  - FlexCodersBestPractices
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Josh
  McDonald dznuts@ wrote:
  
   Drop actionscriptcoders and rename enterprise to RPC (or
FlexRemoting or
   something), and I'm in. 95% of funky flex question are actionscript
   questions - unless it's an advanced actionscript list for things
  like VM
   internals stuff, in which case case perhaps it just needs a name
change.
  
   Everybody likes to think what they're doing is enterprise.
What we're
   doing definitely counts (Oracle *loves* us), but we're all SOAP - we
  don't
   use LCDS at all, so if people think enterprise is mainly for
LCDS stuff
   we're going to get confusion.
  
   Didn't know about ApolloCoders, I think I'll go subscribe :)
  
   Definitely like the idea of an announce list, it could be moderated
  or you
   could subscribe to it as a daily / weekly digest.
  
   -Josh
  
   On Tue, Jun 17, 2008 at 2:10 PM, Bjorn Schultheiss 
   bjorn.mailinglists@ wrote:
  
Existing
- FlexCoders
- FlexComponents
- ApolloCoders
- FlexJobs
   
New
- EnterpriseFlex
- FlexUIDesign
- FlexAnnouncements
- ActionscriptCoders
   
?
   
--- In flexcoders@yahoogroups.com
flexcoders%40yahoogroups.comflexcoders%
  40yahoogroups.com,
  Bjorn
Schultheiss
   
bjorn.mailinglists@ wrote:

   1. 101
 Is creating a new group for this necessary or is flexcoders
already
 handling this?

   2. Coding (AS3/MXML)
 The name seems too abstract, what area are we targeting?
 Is is to show off new ideas or syntax questions.

   3. Design and UI ( Flash/Components/CSS/Skin)
 Love it! Can we replace UI with UX : )

   4. Enterprise/Best Practices/Frameworks
 Does this include WebOrb/Blaze/LCDS ?

   5. AIR - not big yet, but definitely a separate group of
folks
 Apollocoders exists. not sure what the traffic is like.





 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  flexcoders%40yahoogroups.com, Josh
 
McDonald dznuts@ wrote:
 
  That's not a bad list of categories at all Anatole.
 
  It would be best if there's still some sort of (read-only?)
 meta-list that
  shows all messages, and if it were smart enough that you could
read the
  all list and replies went to the correct lists it'd be a
  pretty good
  common ground I think. I'm no mailing-list-guy though, so no
  idea if
 that's
  feasible.
 
  -Josh
 
  On Tue, Jun 17, 2008 at 1:37 PM, Anatole Tartakovsky 
  anatole.tartakovsky@ wrote:
 
   Matt,
  
   Splitting the last 500 topics in groups it would be:
   1. 101
   2. Coding (AS3/MXML)
   3. Design and UI ( Flash/Components/CSS/Skin)
   4. Enterprise/Best Practices/Frameworks
   5. AIR - not big yet, but definitely a separate group of
  folks there
  
   Thank you
   Anatole Tartakovsky
   Farata Systems
  
   On Mon, Jun 16, 2008 at 11:28 PM, Matt Chotin mchotin@
wrote:t
   Practices/Frameworks
  
   I do think 12 is way too high a number BTW. Would recommend
 capping at
   5 absolute max.
  
  
   On 6/16/08 8:28 PM, Matt Chotin
  mchotin@mchotin%40adobe.com
   wrote:
  
   Hey guys,
  
   If you think that splitting the lists is the right
thing to do
 for the
   larger community then I'm not going to stop you. I think we
  were
 right in
   the past to recommend against the split, but I can see
  Anatole's
 point that
   traffic has stagnated and we'd certainly like the
community to
 thrive. We'll
   certainly try to pay attention to as much as possible
(not like
 it's me
   doing much but you know some Adobe folks are quite active),
  but no
   guarantees on how it will go. The Adobe forums

Re: [flexcoders] Re: closing and reopening windows in Air App

2008-06-15 Thread Bjorn Schultheiss

how are you closing it?

On 16/06/2008, at 9:00 AM, Omar Fouad wrote:


Why no one is answering?

On 6/13/08, Omar Fouad [EMAIL PROTECTED] wrote:
 Hi list,
 I got a small application that opens a window.
 I used another mxml (AboutWindow.mxml) file that has  
mx:WIndowBla bla

 blamx:WIndow/ in it.

 In the Main mxml file I have a button and when I click to this  
button I

 open() it by:

 private var AboutWin:AboutWindow = new AboutWindow();
 pivate function ShowAboutWindow():void {
 AboutWIn.open();
 }

 This works great, when I click the button in the main Application  
the
 AboutWin Shows, and When I close it, it closes perfectly. But if I  
re-click

 the Icon again the AboutWin would not open again.

 Is there something that I am missing?

 Thanks
 **

 --
 Omar M. Fouad - Digital Emotions
 http://www.omarfouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be  
copied,
 disclosed to, retained or used by, any other party. If you are not  
an

 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.


--
Sent from Gmail for mobile | mobile.google.com

Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be
copied, disclosed to, retained or used by, any other party. If you are
not an intended recipient then please promptly delete this e-mail and
any attachment and all copies and inform the sender. Thank you.






[flexcoders] Re: Flex Css Html Css

2008-06-15 Thread Bjorn Schultheiss
Have you seen degrafa?
You can do all this via CSS.
http://blog.benstucki.net/?p=46


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

 Hi,
 
 Well.. you can't really unless you create a custom skin. There are
some open
 source stuff out there that allows you to use a background repeat
algorithm.
 
 There is no background position styles either.
 
 So really, what you want to do cannot be done with Flex3 css.
 
 Mike
 
 On Mon, Jun 9, 2008 at 1:27 AM, xaero [EMAIL PROTECTED] wrote:
 
And then How can I set the page's background like in the HTML Css?
  That is:
  background-repeat: repeat-x;
  background-PositionX: left;
  background-PositionY: bottom;
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Michael
  Schmalle
 
  teoti.graphix@ wrote:
  
   No, you can't do this.
  
   Flex CSS is not 'real' css and does not conform to WC3.
  
   Mike
  
 
   
 
 
 
 
 -- 
 Teoti Graphix, LLC
 http://www.teotigraphix.com
 
 Teoti Graphix Blog
 http://www.blog.teotigraphix.com
 
 You can find more by solving the problem then by 'asking the question'.





Re: [flexcoders] dragMoveEnabled: sometimes move/sometimes copy?

2008-06-10 Thread bjorn
Hmm, I tried this - but I don't see that fixing anything since I don't
specify COPY anywhere ..

   private function onImageDragOver( event:DragEvent ):void
   {
trace(onImageDragOver...);
event.preventDefault();
DragManager.acceptDragDrop(this.imageTileList);
   }

2008/6/4 Alex Harui [EMAIL PROTECTED]:

Get dragOver events, call preventDefault() on the event, call
 DragManager.acceptDragDrop with the right information


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *bjorn
 *Sent:* Wednesday, June 04, 2008 5:54 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] dragMoveEnabled: sometimes move/sometimes copy?



 I have a TileList which contains draggable elements and has
 dragMoveEnabled. This works fine, however, I have one problem. The thing is
 that I need to be able to remove them from the drag source in some cases and
 not remove them in some cases, based on the drop target (and not user
 keyboard interaction).



 How do I accomplish this behaviour?
 --

 
 http://www.juicability.com - flex blog
 http://www.43min.com - funny movies

 




-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


[flexcoders] Re: Sandbox violation running from Builder. How did I get this and how do I fix it?

2008-06-05 Thread Bjorn Schultheiss
Are you sure its not a security settings related issue..
www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html



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

 Also. where is the project 'physically' located? I would strongly
recommend
 making sure that the project is inside your workspace. Are there any
 compiler options like -use-network=false present?
 
  
 
 Rick Winscot
 
  
 
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tracy Spratt
 Sent: Thursday, June 05, 2008 9:03 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Sandbox violation running from Builder.
How did I
 get this and how do I fix it?
 
  
 
 Very strange.  There was a similar thread a couple days ago and we
did not
 find a solution, as far as I know.
 
  
 
 Did you create the new project by don't New Project and then copying
in the
 files, or did you import the other project? (the first, I know, but
maybe
 try the second?)
 
  
 
 Maybe try removing the application from the project's application
list and
 then re-adding it?
 
  
 
 Tracy
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Josh McDonald
 Sent: Thursday, June 05, 2008 8:42 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Sandbox violation running from Builder. How
did I get
 this and how do I fix it?
 
  
 
 I've checked out a project into the same directory as all my other
projects,
 and now I'm getting a security sandbox violation trying to load a
local file
 even when running from Flex. What could cause this? And how do I get
it back
 to behaving the way it should for all builder projects?
 
 -J
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]





[flexcoders] dragMoveEnabled: sometimes move/sometimes copy?

2008-06-04 Thread bjorn
I have a TileList which contains draggable elements and has dragMoveEnabled.
This works fine, however, I have one problem. The thing is that I need to be
able to remove them from the drag source in some cases and not remove them
in some cases, based on the drop target (and not user keyboard interaction).

How do I accomplish this behaviour?
-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


Re: [flexcoders] Problem editing custom object in DataGrid (itemEditEnd method, cannot get data)

2008-05-21 Thread bjorn -
There it was :-) .. thanks a lot Alex.

Just in case anyone has the similar problems, my itemEditEnd listener looks
like this now:

   /**
* Called when the user has edited an answer
*/
   private function onAnswerEditEnd(ev:DataGridEvent):void
   {
var answerGrid:DataGrid = DataGrid(ev.target);
var ans:Answer = answerGrid.selectedItem as Answer;
ans.answer.text = TextInput(answerGrid.itemEditorInstance).text;
ev.preventDefault(); // make sure the event doesn't reach the
datagrid
this.answerGrid.destroyItemEditor(); // stop editing
   }

2008/5/20 Alex Harui [EMAIL PROTECTED]:

itemEditorInstance.text?

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *bjorn -
 *Sent:* Tuesday, May 20, 2008 8:41 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Problem editing custom object in DataGrid
 (itemEditEnd method, cannot get data)

Hi, I've created a MultiLanguageString object which contain an array of
 language codes and text value (e.g. [en] = Hello, [de] = Guten tag etc.)

 When editing in a DataGrid you always see the current selected language
 since MultiLanguageString's toString() method returns the internal arr[
 currentLanguageCode ] text.

 However, on edit end I got this error saying String cannot be converted to
 MultiLanguageString (Type Coercion failed), so I figgured I'd have to create
 my own itemEditEnd listener and prevent the vent from reaching the dataGrid
 there.

 This works fine.

 However, I'm unable to get the data somehow (all I get is the original
 data, unedited) .. I see DataGrid uses the event.itemRenderer.data, but when
 I look that up I only see the old data. Same for all other properties on the
 event which contains the data.

 Should I take a different route here or is it solvable this way?


 --

 
 http://www.juicability.com - flex blog
 http://www.43min.com - funny movies

  




-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


[flexcoders] Problem editing custom object in DataGrid (itemEditEnd method, cannot get data)

2008-05-20 Thread bjorn -
Hi, I've created a MultiLanguageString object which contain an array of
language codes and text value (e.g. [en] = Hello, [de] = Guten tag etc.)

When editing in a DataGrid you always see the current selected language
since MultiLanguageString's toString() method returns the internal arr[
currentLanguageCode ] text.

However, on edit end I got this error saying String cannot be converted to
MultiLanguageString (Type Coercion failed), so I figgured I'd have to create
my own itemEditEnd listener and prevent the vent from reaching the dataGrid
there.

This works fine.

However, I'm unable to get the data somehow (all I get is the original data,
unedited) .. I see DataGrid uses the event.itemRenderer.data, but when I
look that up I only see the old data. Same for all other properties on the
event which contains the data.

Should I take a different route here or is it solvable this way?


-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


[flexcoders] Re: Flash Player 10 is in prerelease!

2008-05-16 Thread Bjorn Schultheiss
http://blog.tengerstudio.com/2008/05/16/flash-player-10-class-browser/

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

 Any word on API?
 
 VELO
 
 On Thu, May 15, 2008 at 3:25 AM, Bjorn Schultheiss 
 [EMAIL PROTECTED] wrote:
 
Is there a new api to play with?
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Gordon
  Smith gosmith@ wrote:
  
   http://labs.adobe.com/technologies/flashplayer10/
  
  
  
   Gordon Smith
  
   Adobe Flex SDK Team
  
 
   
 





[flexcoders] Re: Flash Player 10 is in prerelease!

2008-05-15 Thread Bjorn Schultheiss
Is there a new api to play with?

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

 http://labs.adobe.com/technologies/flashplayer10/
 
  
 
 Gordon Smith
 
 Adobe Flex SDK Team





[flexcoders] Re: Classes defined in MXML - are they dynamic? Can they be?

2008-05-14 Thread Bjorn Schultheiss
In run into this problem once with the array class back in the day.
I changed a var from ArrayCollection to Array and had over 100 errors
that were not caught at compile time since the Array is dynamic.



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

 IMHO, dynamic is quicksand for consumers of your framework.  One
 mis-typed property name and you'll spend hours sloshing around trying to
 find it.  I wrote a ton of AS code for the Flash MX 2004 components and
 the dynamic nature was a real pain in the ass.  It was a huge step
 forward to go back to working with stricter languages.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Josh McDonald
 Sent: Tuesday, May 13, 2008 9:08 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Classes defined in MXML - are they dynamic?
 Can they be?
 
  
 
 Thanks for that.
 
 Yeah it's not something I'm planning on doing right now, I'm just sort
 of thinking out loud about a framework I really need to get off my ass
 and write in my spare time :) And I'm just growing ideas as to how I go
 about it.
 
 -J
 
 On Wed, May 14, 2008 at 1:59 PM, Alex Harui [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:
 
 They are not dynamic by default.  I'm not sure if there is a way to make
 them dynamic.  IMHO, it is not a recommended practice, and there is
 usually some other way.
 
  
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
 On Behalf Of Josh McDonald
 Sent: Tuesday, May 13, 2008 8:41 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
 Subject: [flexcoders] Classes defined in MXML - are they dynamic? Can
 they be?
 
  
 
 Like I'm an unpopular Digger, Title says it all.
 
 -J
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
 
 
 
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]





[flexcoders] Re: Memory leak in UIDUtil.createUID()

2008-05-12 Thread Bjorn Schultheiss
I hope not.

I'm using it everywhere!


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

 Hi
 
 i ran the following simple application in flex builder 3 profiler
 and found that this method (createUID) is leaking memory.
 looking at its content seems its ok - any ideas
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=absolute
   
   mx:Script
   ![CDATA[
   import mx.utils.UIDUtil;
   import mx.collections.ArrayCollection;
   
   private function onCC():void{
   var s:String = UIDUtil.createUID();
   
   
   
   }
   
   
   
   ]]
   /mx:Script
   
   mx:Button click=onCC() label=clickme
   
   /mx:Button
   
 /mx:Application





[flexcoders] shared code issue

2008-05-12 Thread Bjorn Schultheiss
I'm getting this error

TypeError: Error #1034: Type Coercion failed: cannot convert
com.qmecom.common.events::[EMAIL PROTECTED] to
com.qmecom.common.events.UploadAssetsModuleEvent.
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()

i'm loading a shared code module before this error occurs.

var m:IModuleInfo = ModuleManager.getModule(sharedCodeModule_url);
m.addEventListener(ModuleEvent.READY, 
function (event:ModuleEvent):void
{
trace('READY');

I'm importing my class into my shared code module.

private var uploadAssetsModuleEvent:UploadAssetsModuleEvent;



What have I missed here
The debugging for these types of problems is lacking severely!




[flexcoders] Re: shared code issue

2008-05-12 Thread Bjorn Schultheiss
my bad..
shared code module wasn't compiling due to a weird compiler error.
it wasn't displaying in my problems panel for some reason.



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

 I'm getting this error
 
 TypeError: Error #1034: Type Coercion failed: cannot convert
 com.qmecom.common.events::[EMAIL PROTECTED] to
 com.qmecom.common.events.UploadAssetsModuleEvent.
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
 
 i'm loading a shared code module before this error occurs.
 
 var m:IModuleInfo = ModuleManager.getModule(sharedCodeModule_url);
 m.addEventListener(ModuleEvent.READY, 
   function (event:ModuleEvent):void
   {
   trace('READY');
 
 I'm importing my class into my shared code module.
 
 private var uploadAssetsModuleEvent:UploadAssetsModuleEvent;
 
 
 
 What have I missed here
 The debugging for these types of problems is lacking severely!





[flexcoders] Re: Help with Module strategy

2008-05-09 Thread Bjorn Schultheiss
Whether the figures are correct or not i don't see how it affects your
modular decision.

Framework caching will only effect the size of your shell not your
modules.
If your modules are optimized for your shell they will not include the
framework classes used by the shell.



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

 After doing a bit of analysis, it doesn't seem that modules are
 appropriate for me, without framework caching.
 
 The monolithic app is currently 539K. An individual module containing
 charts, optimized for the monolithic app is 275K. Optimized for an
 empty app it's 382K. Not optimized, it's 624K. Since 5 or so modules
 will be loaded, the experience is likely to be a step backward, unless
 I can consolidate charts somehow, as Rick alluded to, or enable
 framework caching.
 
 Can someone please confirm or correct the following:
 - Player 9 is around 97% penentration, but 9.0.115 is only around 61%
 - If I enable caching, the app will still work (albeit slowly) on
older players
 - The user won't know to update to 9.0.115 unless I build the app to
require it
 - However, using expressInstall, the upgrade to 9.0.115 would be
seamless
 - [??? any issues around localization ???]
 
 - Richard
 
 On Fri, May 9, 2008 at 6:56 AM, Richard Rodseth [EMAIL PROTECTED] wrote:
  I suppose a broad description would be business
  intelligence/dashboard/reporting. It's true that for a fixed set of
  reports or charts the main app swf can be updated and no modules are
  required, but runtime configuration seems like an inevitable
  direction.
 
  The main wrinkle mentioned in my original post is the desire to
  extract individual reports as separate entities. Again, the build
  system could simply build a distinct swf application for each one, so
  I realize that modules are not absolutely needed.
 
  The strategy I describe (same host for 1 or many modules) allows me to
  defer the RSL/caching stuff and optimize the modules for that single
  host, but doesn't preclude a switch to portable modules in future.
 
  On Fri, May 9, 2008 at 6:17 AM, Rick Winscot [EMAIL PROTECTED] wrote:
  What exactly is it that you are trying to extenensify? You don't
have to
  give up the secret sauce - but with a little more info maybe
ideas will
  start to flow? Modules are great for portability and system
extension that
  is true... but modules for modules sake of themselves
extensibility do not
  make. What's the rubble?
 
  Rick Winscot
 
  -Original Message-
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of Richard Rodseth
  Sent: Friday, May 09, 2008 8:57 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Re: Help with Module strategy
 
  Rick,
 
  I know about Degrafa and might use it for some gauges, but I've been
  pretty happy with Adobe's charting library. I would say that at this
  stage my motive for modules is extensibility rather than file size or
  even memory usage.
 
  On Thu, May 8, 2008 at 9:10 PM, Rick Winscot [EMAIL PROTECTED]
wrote:
  Have you considered writing some of your libraries as
ActionScript (only)
  libraries? Just a thought though. at the point you realize that
things are
  getting a little 'too big and un-tamed' it is almost too late.
My father
  always said, only cry once. Meaning - if you want a G.I. Joe with
  kung-fooBAR grip. Don't settle for 10 Malibu Ken dolls with
pasted on
  peach-fuzz beards. Get out your lawn mower and mow a few extra
laws, baby
  sit until you puke, and buy stock in Red Bull. If you only cry
once. and
  pay
  the price up front you will save untold hours of refactoring
bits and
  pieces
  to get things working.
 
 
 
  About your chart dilemma - consider consolidating like chart types.
  Generalizing an interface to facilitate repurposing is smart and
means
  that
  each one of your little chart dudes isn't the size, or greater,
of the
  Flex
  chart library. Additionally - becoming proficient in primitive
drawing
  could
  be much more valuable that using 'canned controls.' Take a look
  http://www.degrafa.com/ add a dash of creative thinking and you
could dump
  charts. come up with a framework for reporting that is boot-licking
  delicious.
 
 
 
  Rick Winscot
 
 
 
 
 
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of Bjorn Schultheiss
  Sent: Thursday, May 08, 2008 8:56 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Help with Module strategy
 
 
 
  - the charts are in modules, optimized for the single host
  This sounds the most reasonable.
 
  If the modules need to be loaded into another shell they can be
  re-compiled for that purpose.
 
  I have each module in its own project and run the deploy build
via ant.
 
  --- In flexcoders@yahoogroups.com, Richard Rodseth rrodseth@
wrote:
 
  I'd appreciate some input on my module strategy.
 
  I'm working on a charting application with a requirement that
  individual charts be embeddable

[flexcoders] Re: Modules the way to go?

2008-05-08 Thread Bjorn Schultheiss
unloading the module does not guarantee it will cleaned up by Garbage
Collection.

You can use the Profiler to assist you see what has be collected by GC
and what hasn't.

Grant Skinner wrote a 3 part article on this explaining the details.
http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html




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

 
 The crashing of the explorer is due to the amount of load in memory.
 It's not a Flex Error in the white box at the top left form. 
 
 We load the modules this way:
 
 public function createModule ( url : String ) : void
 {
   var panel : Panel = new Panel();
   var module : IModuleInfo = ModuleManager.getModule( url 
 );
   module.addEventListener( ModuleEvent.READY,
   function moduleReadyHandler ( event : 
 ModuleEvent ) : void
   {
   var view : UIComponent = 
 module.factory.create() as UIComponent;
   view.x = 0;
   view.y = 0;
   view.percentHeight = 100;
   view.percentWidth = 100;
   panel.addChild( view );
   module.removeEventListener( 
 ModuleEvent.READY,
moduleReadyHandler );
   }
   );
   module.load ( );
 }
 
 
 and the unload is done this way:
 
 public function closeModule ( url : String ) : void
 {
   var module : IModuleInfo = ModuleManager.getModule( url 
  );
   module.unload();
 }
 
 It's simple... basic... Am I missing something?
 
 
 
 --- In flexcoders@yahoogroups.com, Gregor Kiddie gkiddie@ wrote:
 
  How are you unloading the modules? We've found that its relatively
tough
  to get a module garbage collected given the amount of references
usually
  flying round the place!
  
  Also, have you debugged the app to find out exactly what is happening
  when the crashing behaviour occurs? It might be more straightforward
  then you think.
  
   
  
  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.helpdesk@
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of Daniel
  Sent: 06 May 2008 22:15
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Modules the way to go?
  
   
  
  
  40 modules running at the same time with no issues?
  God... That's an accomplishment... Does RAM and processor have
  something to do with it? Our test computers are running on 1GB RAM,
  and most have Flex Builder opened at a time...
  
  The desktop manager load the modules per user request... The same for
  unloading them... The module loaders are childs of a panel that can be
  draggable and resizable, with a maximize and a close button... So if
  the user choose to open N modules at the same, N modules will be
  displayed...
  
  A problem might be that by rule, the modules have tons of bindings...
  Each component have at least one binding to it's correspondent value
  in the modelLocator, and each component that have a dataProvider have
  at one more binding... This bindings are not being set to unwatch
  after the modules are unloaded... Could this be the issue that is
  overloading the application and crashing the browser? 
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  , Bjorn Schultheiss
  bjorn.mailinglists@ wrote:
  
   Any external swf you load can crash your app.
   It's a really big issue with the player at the moment.
   
   From my experience Modules provide you a good basis for multi-swf
   architecture with Flex.
   
   
   
   --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com , Gregor Kiddie gkiddie@
  wrote:
   
I won't develop the modules

Well, that's your biggest problem, without being able to
control the
modules, you can't guarantee the behaviour. It's quite possible if
  one
misbehaves it could lock your app up.



If I have several small modules opened (say 6 to 10, each of
20K to
60K size), they shouldnt crash or overload the browser

[flexcoders] Re: Help with Module strategy

2008-05-08 Thread Bjorn Schultheiss
- the charts are in modules, optimized for the single host
This sounds the most reasonable.

If the modules need to be loaded into another shell they can be
re-compiled for that purpose.

I have each module in its own project and run the deploy build via ant.



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

 I'd appreciate some input on my module strategy.
 
 I'm working on a charting application with a requirement that
 individual charts be embeddable as widgets on arbitrary pages.
 
 I already have the bulk of the code in libraries, so have some freedom
 to explore different packaging.
 
 I had originally thought that it would make sense to create a module
 for each chart, and two separate hosts, one  main application and
 one widget host. I understand that I would have to use RSLs and
 framework caching to keep the module size down. Frankly, I'm a little
 wary of that given the time constraints, and also because it depends
 on the later player.
 
 Another approach was to just build a different application SWF for
 each widget and modularize only when the main app becomes too large.
 
 Now I am considering the following:
 
 - the host is a single SWF with two states (widget and full). It loads
 either one, or several modules based on runtime config
 - the charts are in modules, optimized for the single host
 - the single app and multiple modules are in one project, so I can
 optimize for that app in Flexbuilder (though we do have continuous
 integration set up too)
 
 The only downside I can think of is that if the full state of the
 app has a lot of code besides the module code, the size of the widget
 download will be larger than it needs to be. On the other hand, it
 would allow the full app to be embedded as a widget, since the UX
 would be determined at runtime. And I suppose the full host state
 could itself be modularized.
 
 Comments? Thanks in advance.





  1   2   3   4   5   6   >