[flexcoders] Re: Bad quality after encode video to FLV

2007-04-17 Thread nowak_petr
I tried Flash Video MX and it works fine. I only wonder why O2 Flix 
doesn't work... 
Thanks for help.

--- In flexcoders@yahoogroups.com, Thijs Triemstra | Collab 
[EMAIL PROTECTED] wrote:

 You can also try the flv encoder that comes with Flash 8 Pro, you 
can  
 download a trial on adobe.com.. That one also does On2 and never  
 broke down here. I never tried the flix pro demo but heard alot 
of  
 people complaning about it..
 
 Thijs
 
 
 On Apr 16, 2007, at 11:27 PM, nowak_petr wrote:
 
  Hi,
  I'm fighting with bad quality of FLV video after encoding with 
use of
  Riva FLV Encoder or ffmpeg. Imho encoding parameters are ok: 
bitrate
  1600 kbit/s. AVI source is perfectly clear. And FLV result has 
visible
  artefacts.
 
  I tried On2 Technologies Flix PRO demo but something is wrong 
because
  decoding break down with only few seconds in resulted video.
 
  I don't need video compression in fact (video is played locally 
from
  HD). I only need to play the video in Flex app. That's why the
  conversion is necessary.
 
  Any idea/help, please ?
 
 
 





[flexcoders] Flex crashes if no sound card present

2007-04-17 Thread Danko Kozar
This is a serious Flex bug! I run a Flex application on a corporate 
computer that doesn't have a sound card and the application crashed. 
Using Flash player debugging version I realized that the problem was 
in playing sound.



Re: [flexcoders] Problem with loading module -- mx.core::LayoutContainer could not be found.

2007-04-17 Thread bjorn -

I don't have a crossdomain file, didn't think I needed one as it was all on
localhost .. I get the problem when I run my project in Flex hitting
ctrl-F11 since it will load my app directly (e.g.
file:///C:/dev/FlexWorkspace/MyApp/build/MyApp-debug.html ) - while trying
to load the module from a server (localhost). I don't see why it should be a
problem though.

As for the security error (here's another one for Google) - it's: SWF is
not a loadable module ...

The event:

e = mx.events.ModuleEvent (@414ad61)
bubbles = false
bytesLoaded = 0
bytesTotal = 0
cancelable = false
currentTarget = ModuleManager.as$20.ModuleInfoProxy (@3ecec81)
errorText = SWF is not a loadable module
eventPhase = 2
module = ModuleManager.as$20.ModuleInfoProxy (@3ecec81)
target = ModuleManager.as$20.ModuleInfoProxy (@3ecec81)
type = error


Best regards,
Bjørn

On 16 Apr 2007 18:03:09 -0700, Robert Cadena [EMAIL PROTECTED]
wrote:



Glad I could help. Just cause I'm curious:
- do you have a crossdomain at the root of your localhost server?
- is your parent app not loaded from the same domain (localhost)?
- you are doing this with the swf player, maybe on the browser or by
running the swf directly, not in apollo, right?

you might want to add eventListeners to the moduleinfo just to see what
the exact security error is. Put a breakpoing on the function that
handles SecurityError and see what the error message is.

best of luck.

/r
http://www.searchcoders.com/flex/search/module
http://www.laflex.org/ - Los Angeles Flex Users Group

bjorn - wrote:
 Robert, thanks for leading me onto the correct path :-) The problem has
to
 do with security. If I set the module url to a local path (c:\..)
 instead of
 localhost, I'm able to load it.

 Strange error message for security issues, don't you think? Well, now
it's
 soon on Google at the least.

 - Bjørn


 On 16 Apr 2007 10:10:50 -0700, Robert Cadena [EMAIL 
PROTECTED]robert%40searchcoders.com

 wrote:

 Hi Bjorn,

 when you load the module, what ApplicationDomain are you passing to the
 the IModuleInfo? and how do you construct it if you are passing it as a
 param?

 /r
 http://www.searchcoders.com/flex/search/module
 http://www.laflex.org/ - Los Angeles Flex Users Group

 bjorn - wrote:
  Thanks for the tip .. I did try that already though, and it didn't
make
 any







--


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


[flexcoders] Can I change DateChooser Style?

2007-04-17 Thread sanjaypmg
Hi All,

am using DateChooser in my flex screen.. the defaul format is next 
previous button with Year and month label... 

But I want to replace these labels with DropDowns of Year and months 
respectively.

Is it possible to do that if yes, How can I ?

Pls give me some hint to get it done...

Thanks in Advance,
SS





RE: [flexcoders] Re: RangeError on SWFLoader

2007-04-17 Thread Alex Harui
The error is coming from the SystemManager/CursorManager and not the
SWFLoader.  Try setting showBusyCursor to false on the SWFLoader.
 
You won't be able to trap the error as it occurs in an event handler.
 
-Alex



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michelle Grigg
Sent: Monday, April 16, 2007 6:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: RangeError on SWFLoader



This is the error trace:

RangeError: Error #2006: The supplied index is out of bounds.
at flash.display::DisplayObjectContainer/addChildAt()

at
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::r
awChildren_addChildAt
http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt
()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:1601]

at
mx.managers::SystemChildrenList/addChild()[C:\dev\flex_201_gmc\sdk\frame
works\mx\managers\SystemChildrenList.as:109]

at
mx.managers::CursorManagerImpl/mx.managers:CursorManagerImpl::showCurren
tCursor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\CursorManagerIm
pl.as:434]

at
mx.managers::CursorManagerImpl/setCursor()[C:\dev\flex_201_gmc\sdk\frame
works\mx\managers\CursorManagerImpl.as:327]

at
mx.managers::CursorManagerImpl/setBusyCursor()[C:\dev\flex_201_gmc\sdk\f
rameworks\mx\managers\CursorManagerImpl.as:400]

at
mx.managers::CursorManagerImpl/mx.managers:CursorManagerImpl::progressHa
ndler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\CursorManagerImpl
.as:593]

at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven
tFunction()

at flash.events::EventDispatcher/dispatchEvent()

at
mx.core::UIComponent/dispatchEvent()[C:\dev\flex_201_gmc\sdk\frameworks\
mx\core\UIComponent.as:8323]

at
mx.controls::SWFLoader/mx.controls:SWFLoader::contentLoaderInfo_progress
EventHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\SWFLoader.
as:1673]

If it needs to be added to the internal content holder of the
SWFLoader, which property do I add it to? There is no property listed
in the Lang Ref called contentHolder...?

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

 Please post the error log.
 
 Also, did you listen to error event on SWFLoader or its internal
 contentHolder. I think it has to be the internal contentHolder.
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Michelle Grigg
 Sent: Monday, April 16, 2007 4:16 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: RangeError on SWFLoader
 
 
 
 Okay, I stand corrected. I added an error event to the swfloader, and
 the RangeError STILL occurred. I'm really starting to get ticked off
 now :-/
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , John Mark Hawley mark@ wrote:
 
  SWFLoader::load() is an asynchronous call, so you're never going to
 be able to catch the error in a try block. You should be listening for
 error events on it instead.
  
   
   From: Michelle Grigg michellejg@
   Date: 2007/04/13 Fri AM 09:05:56 CDT
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 
   Subject: [flexcoders] RangeError on SWFLoader
   
   Greetings,
   
   I have been haunted by these fricken #2006 RangeErrors since the
 start
   of my project though I've been able to fix all but one.
   
   I have a SWFLoader throwing a RangeError, and I can't seem to
catch
   the damn thing. The irritating thing is that it's also a very
   intermittent bug so I have no way of telling for sure it will
occur
   when first loading my app.
   
   This is the try/catch: 
   
   try
   {
   myLoader.load( loadSwfEvent.swfName );
   }
   catch( e : Error )
   {
   trace( e.errorID +   + e.name +   + e.message );
   trace( e, ObjectUtil.toString( event ));
   }
   
   It doesn't actually call the catch - it simply prints out the
error
 on
   the console leading me to believe that the error is actually being
   thrown somewhere else, even though the stack trace goes all the
way
   back to the SWFLoader class.
   
   I initially thought it to be a timing thing - maybe the swfname
 wasn't
   being set properly or something, but investigating solutions along
   those lines have been fruitless.
   
   I'm now thinking I should probably be moving the try/catch
somewhere
   else, but I would have no idea where.
   
   Any ideas? Similar problems?
   
   Cheers,
   Michelle
   
   
   
   
  
  --
  John Mark Hawley
  The Nilbog Group
  773.968.4980 (cell)
 




 


[flexcoders] Re: Newbie createPopUp problems

2007-04-17 Thread bhaq1972
it looks like you're trying to apply a flex 1.5 example to your 
flex2 test.
the fourth argument for createPopUp() is not correct.

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

 I've copied various examples of using PopUpManager.createPopUp but
 cannot get it to work.  I'm running from Eclipse using the flex 
Eclipse
 plug-in under XP.  Eclipse does not show any errors (i.e. red 
marks) in
 either file, but when I run I get a dialog Errors exist in 
required
 application.
 
 I have tried creating a new project and still have the same 
problem.  I
 have been searching for 2 days now and cannot find a clue.  My 
code is
 below.
 
 Is there some way to get better debug/diagnostic info in this 
case.  Can
 anyone see what's wrong?
 
 zflex001.mxml
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 mx:Script
 ![CDATA[
 import dialog;
 function openDialog():Void {
var popupParent:zflex001 = this;
var isModal:Boolean = true;
var initObj:Object = { title:Delete Record };
var verifyPopUp = mx.managers.PopUpManager.createPopUp(
 popupParent, dialog, isModal, initObj );
 }
 ]]
 /mx:Script
 mx:Button label=Verify click=openDialog(); /
 /mx:Application
 
 dialog.mxml
 
 ?xml version=1.0 encoding=utf-8?
 mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; 
width=300
 height=120 title=Verify Action 
 mx:Label id=lblVerify text=Are you sure you want to do 
this? /
 mx:HBox
mx:Button label=Ok /
mx:Button label=Cancel  /
 /mx:HBox
 /mx:TitleWindow





[flexcoders] Minimize / Maximize Panels - Layout adjustment

2007-04-17 Thread Flexing...
Hi All,

If you go to the following URL
http://www.adobe.com/devnet/flex/

Under the flex community there are panels which contain maximize  
and minimize functionality
i.e. if you click on + it maximzed and others are minimized and vice  
versa.
The layout is auto adjusted

Does anyone know how to implement such functionality.

Thanks




[flexcoders] Unload SWF - flex garbage collection (bug?)

2007-04-17 Thread bjorn -

Hi guys,

I'm using flash.display.Loader to Load swf through a gateway. It usually
works great, and my trace output is like this:

[SWF] /webroot/binaryStreamer.php - 118,894 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 3,040 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 32,135 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 5,124 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 32,135 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 32,135 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 39,914 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 2,490 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 40,045 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 1,133 bytes after decompression

.. however, once every now and then (seems like it's completely at random) I
get this in my log:

[SWF] /webroot/binaryStreamer.php - 118,894 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 5,124 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 3,040 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 32,135 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 32,135 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 32,135 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 39,914 bytes after decompression
[Unload SWF] /webroot/binaryStreamer.php
[SWF] /webroot/binaryStreamer.php - 40,045 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 2,490 bytes after decompression
[SWF] /webroot/binaryStreamer.php - 1,133 bytes after decompression


.. see the Unload SWF in the middle there. I'm thinking maybe it's the
garbage collector that does it, but I add all the assets loaded to an array
so that seems strange since then I've got a reference to it -- so it
shouldn't be collected.

Any clues?

Best regards,
Bjørn

--


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


Re: [flexcoders] dataGrid - process each item

2007-04-17 Thread Tom Chiverton
On Monday 16 Apr 2007, darylgmyers wrote:
 How can I go about processing each dataGrid item?  I need to validate
 all items at time of update.  I can walk through each item using the
 dataProvider but I can not find a way to know which dataGrid item to
 validate from just the dataProvider's information.

If you want to validate them all, who cares where it is in the grid ?

-- 
Tom Chiverton
Helping to advantageously repurpose six-generation portals
on: http://thefalken.livejournal.com



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread Carlos Rovira

A coworked show me an example like the Flex Book, and looks very bad to me,
it seems to be very heavy (I ear about 70Mb!), the interactivity not as
smooth as ely's Flex book, so I'll continue with our beloved flash/flex
technology. IMHO Microsoft will have to bring much more to the table in
order to gain aceptance and get Flash developers in its platform, nowadays I
think there's no competition.



16 Apr 2007 20:55:19 -0700, Bjorn Schultheiss [EMAIL PROTECTED]

:

  I got it working to some extent for Camino (mozilla) on mac.
By no means have i thoroughly tested it yet though.


I couldn't imagine developing for it yet though.

I need a platform that will guarantee me results.
10 years of Flash player deployment is a strong reason why i'll hold off
for a while.


Plus personally i've never been a fan of ms dev tools.


Bjorn


On 17/04/2007, at 1:30 PM, Jeremy Watson wrote:


Silverlight is a cross-browser, cross-platform plug-in for delivering the
next generation of media experiences and rich interactive applications
(RIAs) for the Web.
Except Mozilla. Which I tried to install and it failed

- Original Message 
From: Andrew Muller [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 17 April, 2007 11:14:53 AM
Subject: Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our
beloved Flex ?

No

On 16 Apr 2007 18:04:35 -0700, helihobby [EMAIL PROTECTED] com[EMAIL 
PROTECTED]
wrote:


 Please comment after you ready and see this:

 http://blogs. msdn.com/ tims/archive/ 2007/04/15/ introducing-
 
microsoft-http://blogs.msdn.com/tims/archive/2007/04/15/introducing-microsoft-
 silverlight. aspx

 http://www.microsof t.com/silverligh t/default_ 
01.aspxhttp://www.microsoft.com/silverlight/default_01.aspx

 Sean - [URL=http://www.HeliHobb y.com 
http://www.HeliHobby.com]HeliHobby.com[
 /URL]




--
 - - - - - - -
Andrew Muller
http://www.webqem. com http://www.webqem.com

linkedin: http://www.linkedin .com/pub/ 
1/151/905http://www.linkedin.com/pub/1/151/905


Send instant messages to your online friends http://au.messenger.yahoo.com


 Regards,

Bjorn Schultheiss
Senior Developer
[image: QDC]
Personalised Communication Power

 Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia

T: �+61 3 9674 7400
F: �+61 3 9645 9160
W: �http://www.qdc.net.au

 ((This transmission is confidential and intended solely for
the person or organization to whom it is addressed. It may contain
privileged and confidential information. If you are not the intended
recipient, you should not copy, distribute or take any action in reliance on
it. If you believe you received this transmission in error, please notify
the sender.---))

 





--
::| Carlos Rovira
::| http://www.carlosrovira.com
::| http://www.madeinflex.com


Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread Tom Chiverton
On Tuesday 17 Apr 2007, Jeremy Watson wrote:
 Silverlight is a cross-browser, cross-platform plug-in for
 delivering the next generation of media experiences and rich
 interactive applications (RIAs) for the Web.

Except on Linux.
Or Solaris.

It's all just WPF-related FUD to try and scare people away from the competions 
better (and shipping) product.

-- 
Tom Chiverton
Helping to proactively empower scalable schemas
on: http://thefalken.livejournal.com



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: REPOST - Checkboxes in a DataGrid

2007-04-17 Thread zzberthod
Thanks for all, it's very useful.

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

 Oops:
 
 http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectI
 D=559
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tracy Spratt
 Sent: Monday, April 16, 2007 1:34 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] REPOST - Checkboxes in a DataGrid
 
  
 
 Here is an example of a checkbox itemRenderer that addresses the problem
 you describe.
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of zzberthod
 Sent: Monday, April 16, 2007 5:27 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] REPOST - Checkboxes in a DataGrid
 
  
 
 Hello,
 
 I'm using SOAP services that generate XML result.
 I need to feed a Flex dynamic list with the XML result.
 I try to use the XMLCollection AS object and I display it in a
 DataGrid. But I've got some problems.
 
 I just need to insert graphical elements (ex: MXML checkbox) into the
 list.
 
 Example:
 - The first column is a checkbox (for selection of the line)
 - The second is the `name' column
 - Third is `date'
 
 --
 |Select | Name | Date
 --
 | X | Justin | 01/12/07
 | | Martin | 01/15/07
 | X | John | 01/17/07
 --
 
 I found a solution:
 - I create another MXML file with the checkbox and I insert it into
 the list
 
 With this solution I can't change the state of the checkbox (true or
 false) because I can't access to it with AS because it's in another
 file.
 There is another problem: when I scroll the list, the checkbox state
 is reinitialized (with the MXML state = 'false') and I can't check
 all the lines together.
 
 Have you got another solution?
 
 Thanks





[flexcoders] Character encoding in a DataGrid row

2007-04-17 Thread zzberthod
Hello,

I'm using SOAP services that generate XML result.
I need to feed a Flex dynamic list with the XML result.
I try to use the XMLCollection AS object and I display it in a
DataGrid. But I've got some problems.

I've got multiple lines in XML result like this:
data
 First line
 Second line
 Third line
/data

When I display it in a DataGrid row, I see that:
First line§backlineSecond line§backlineThird line

And I've got other character encoding problems.

How can I encode my character strings?

Thanks





Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread Scott Barnes

Hell no :)

(Not while I have breathe and draw pay at Microsoft).

SilverLight = Apple
Flash = Orange

Both eatable, but personally I'm an Orange man on Mon-Wed and Apple man
Thu-Sun...

If you read FUD crap, ignore it on both sides and just be opened to the idea
that theres yet another channel of delivery in rich interactive
applications.

Keep moving forward :)

-
Scott Barnes
Developer Evangelist
Microsoft - FUD is a common word abbrevation lately, what's with that?


On 16 Apr 2007 18:04:35 -0700, helihobby [EMAIL PROTECTED] wrote:



Please comment after you ready and see this:

http://blogs.msdn.com/tims/archive/2007/04/15/introducing-microsoft-
silverlight.aspx

http://www.microsoft.com/silverlight/default_01.aspx

Sean - [URL=http://www.HeliHobby.com 
http://www.helihobby.com/]HeliHobby.com[/URL]








--
Regards,
Scott Barnes
http://www.mossyblog.com


Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread Claus Wahlers

 If you read FUD crap, ignore it on both sides and just be opened to the 
 idea that theres yet another channel of delivery in rich interactive 
 applications.

Reading through the Silverlight docs, XAML looks to me like some weird 
kind of microsoftified SVG, spiced up with MP3 and WM codecs. I'm still 
searching but so far i couldn't find anything close to what Flex offers 
(what i found are some barely working and butt ugly component 
experiments). I'd guess that Silverlight will get some video market 
share, but it has a long way to go to enter the RIA market. My 2 centavos.

Cheers,
Claus.

-- 
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/


Re: [flexcoders] Coming from Laszlo background - anyone know some migration tips?

2007-04-17 Thread Tom Chiverton
On Tuesday 17 Apr 2007, Luis Eduardo wrote:
   datapointers dont have equivalent in flex. U have to connect it by
 hand. (edit.text = datareturned.text or something like that..)

Umm...
mx:Text id=edit text={ datareturned.text }/
?

-- 
Tom Chiverton
Helping to elementarily grow out-of-the-box users
on: http://thefalken.livejournal.com



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Recursive Reloading of an image...

2007-04-17 Thread Steve Kellogg
I have a question...

 

I have a few images in my app that have their source as a GIF on our
site.  Today, I was testing, and the design guy had removed the art for
revisions.  I was surprised to see that Flex tried repeatedly to load
the image instead of just marking the image link as broken.

 

Is there anything I need to specifically do to let Flex know that I want
it to just PUNT if an image is missing? Granted, the issue TODAY is
merely website revision, but I'd hate to have my client see this
activity in case of DNS issues, etc.

 

TIA

 

Steve

 



[flexcoders] Library compilation takes too much time

2007-04-17 Thread Sergey Kovalyov

Hi All!

Each time I change class in library project it takes to much time to
recompile, because all the projects that use this library are recompiled.
Even when there are 3 projects, I have to wait about 30 seconds after each
save (I prefer Build Automatically option checked). Is there any way to
prevent projects that use the library to recompile without unchecking Build
Automatically option? :)

Sergey.


[flexcoders] Re: Generate PDF

2007-04-17 Thread billy_d_white
You should be able to add a function in JavaScript that opens the
popup window in the html template that wraps the flash code.  Then you
can call that function from within the flash/flex code using the
ExternalInterface API or the navigatetoURL function.  Check out the
Flex 2 Developer's Guide in the Help section of the flex docs.  There
is a section called Accessing JavaScript functions from Flex that
will explain the details.

-Bill
--- In flexcoders@yahoogroups.com, Eduardo Dias [EMAIL PROTECTED] wrote:

 Hi,
 
 I'm doing a http call to the server and the response is a input
stream of a
 PDF file, i'm not using Livecycle Data Services 2.5. How i can take this
 file and open in a different browser window?
 
 
 
 Regards,
 Eduardo Dias





RE: [flexcoders] How to embed Type1 font in CSS?

2007-04-17 Thread Peter Farland
I don't believe this is supported natively in Flex 2, though if you can
manage to get Flash Authoring to embed a Type 1 font into a SWF then you
can always embed this Flash Authoring published SWF into a Flex
application as an asset and then refer to the font families in CSS
styles.
 
Other font file formats besides TTF may be possible in the Flex 3
timeframe but the best way to add your vote for features is to make
yourself heard via the Flex wishlist:
 
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishformproduct=20
 
Pete



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sergey Kovalyov
Sent: Tuesday, April 17, 2007 11:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to embed Type1 font in CSS?



Hi All!
 
How to embed Type1 font in CSS? Now I have found only the solution for
TTF fonts. Any ideas?
 
Thank you in advance.
 
Sergey.

 


RE: [flexcoders] Newbie createPopUp problems

2007-04-17 Thread Kenneth Sutherland
If you want a quick example, try the following, replacing the var's for
something more meaningfull where required. This will do popup's as well
as setting var's inside them.  You used to be able to do this when
creating a popup in flex 1.5, but now you can do it as below as you
don't pass in an object when you addPopUp anymore. 

Public function openUpAPopUp() : void {

var createdPopUp:YourTitleWindow = 

new YourTitleWindow ();

 

createdPopUp.someVar =
whateverYouWishToInitilise;

createdPopUp.width   = 325;

createdPopUp.height  = 125;   



 


PopUpManager.addPopUp( 

createdPopUp, 

DisplayObject(
mx.core.Application.application ), 

true

);



PopUpManager.centerPopUp(
createdPopUp );

}

 

Then just create a file called YourTitleWindow.mxml which is a
titleWindow and you'll have an instant pop up in the center of your
application.

Or just go to
http://examples.adobe.com/flex2/inproduct/sdk/explorer/explorer.html for
some flex 2 examples

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fredsells
Sent: 16 April 2007 20:29
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie createPopUp problems

 

I've copied various examples of using PopUpManager.createPopUp but
cannot get it to work.  I'm running from Eclipse using the flex Eclipse
plug-in under XP.  Eclipse does not show any errors (i.e. red marks) in
either file, but when I run I get a dialog Errors exist in required
application.  

I have tried creating a new project and still have the same problem.  I
have been searching for 2 days now and cannot find a clue.  My code is
below.  

Is there some way to get better debug/diagnostic info in this case.  Can
anyone see what's wrong?

zflex001.mxml

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
   mx:Script
   ![CDATA[
   import dialog;
   function openDialog():Void {
  var popupParent:zflex001 = this;
  var isModal:Boolean = true;
  var initObj:Object = { title:Delete Record };
  var verifyPopUp = mx.managers.PopUpManager.createPopUp(
popupParent, dialog, isModal, initObj );
   }
   ]]
   /mx:Script
   mx:Button label=Verify click=openDialog(); /
/mx:Application


dialog.mxml

?xml version=1.0 encoding=utf-8?
mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; width=300
height=120 title=Verify Action 
   mx:Label id=lblVerify text=Are you sure you want to do this? /
   mx:HBox
  mx:Button label=Ok /
  mx:Button label=Cancel  /
   /mx:HBox
/mx:TitleWindow





 



RE: [flexcoders] Binding ArrayCollection to HTTPService method=POST

2007-04-17 Thread Tracy Spratt
Don't bother with binding in this case, just assign the result to the
ArrayCollection (or XMLListCollection) in the result handler.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tweakfreak33
Sent: Monday, April 16, 2007 5:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding ArrayCollection to HTTPService
method=POST

 

Hi All,

Firstly apologies for posting all this code!
I have the following app that works fine, it's displays data from a
mysql db in a datagrid, and also allows a user to insert a new record
in the db...

#START SNIP##

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  xmlns=*
layout=absolute backgroundGradientColors=[#0080ff,#80]
creationComplete=send_data()

!-- This is the Script to SetUp Functions--
mx:Script
![CDATA[
private function youveClicked():void {
mx.controls.Alert.show('You Clicked!!!');
}
private function send_data():void {
staffcodeRequest.send();
}
]]
/mx:Script

!-- This is the HTTPService--
mx:HTTPService id=staffcodeRequest
url=http://192.168.0.84/amfphp/services/staffcode.php
http://192.168.0.84/amfphp/services/staffcode.php 
useProxy=false method=POST
mx:request xmlns=

firstname{firstname.text}/firstnamesurname{surname.text}/surname
staffcode{staffcode.text}/staffcodeemailaddress{emailaddress.text}
/emailaddressdepartment{department.text}/department
/mx:request
/mx:HTTPService

###END SNIP##

I'm thinking of Binding the the xml formated results into an
arrayCollection  then use the filterFunction to allow a user to
filter the data (is this possible?).
(Below is some code that I found in a thread  am using to work from
as an example)

#START SNIP##

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=vertical creationComplete=initData()
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var dataList:ArrayCollection ;

private function initData():void{
dataList= new ArrayCollection([
{name:school A, city:Dartford},
{name:school B, city:Pomona },
{name:School C, city:Phillipsburg}
])
}

private function filterDemo():void{
dataList.filterFunction = searchDemo;
dataList.refresh();
}

private function searchDemo(item:Object):Boolean{
var isMatch:Boolean = false

if(item.name.toLowerCase().search(search.text.toLowerCase()) != -1){
isMatch = true
} 
return isMatch; 
}

private function clearSearch():void{
dataList.filterFunction = null;
dataList.refresh();
search.text = '';
}
]]
/mx:Script

###END SNIP##

If it is possible, I need some help in integrating the following code,
(I've tried but keep getting {1151: A conflict exists with definition
staffcodeRequest in namespace internal.})

#START SNIP##

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  xmlns=*
layout=absolute backgroundGradientColors=[#0080ff,#80]
creationComplete=send_data()

!-- This is the Script to SetUp Functions--
mx:Script
![CDATA[

private function youveClicked():void {
mx.controls.Alert.show('You Clicked!!!');
}
private function send_data():void {
staffcodeRequest.send();
}

!--Can I just Bind the arrayCollection here--

import mx.collections.ArrayCollection;
[Bindable]
private var staffcodeRequest:ArrayCollection;

!--This part I also need to change as my data is returned on the fly
from a mysql lookup rather than a static xml file--

private function filterDemo():void{
staffcodeRequest.filterFunction = searchDemo;
staffcodeRequest.refresh();
}
private function searchDemo(item:Object):Boolean{
var isMatch:Boolean = false
if(item.staffcode.toLowerCase().search(search.text.toLowerCase())
!= -1){
isMatch = true} 
return isMatch; 
}
private function clearSearch():void{
staffcodeRequest.filterFunction = null;
staffcodeRequest.refresh();
search.text = '';
}
]]
/mx:Script

!-- This is the HTTPService--
mx:HTTPService id=staffcodeRequest
url=http://192.168.0.84/amfphp/services/staffcode.php
http://192.168.0.84/amfphp/services/staffcode.php 
useProxy=false method=POST
mx:request xmlns=

firstname{firstname.text}/firstnamesurname{surname.text}/surname
staffcode{staffcode.text}/staffcodeemailaddress{emailaddress.text}
/emailaddressdepartment{department.text}/department
/mx:request
/mx:HTTPService

###END SNIP##

What I am strugling with is BINDING the returned xml formated results
to an arrayCollection, so that I can assign a filterFunction.

Help would be grate ;-)

TIA
Danny

 



Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread Ralph Hauwert

I'm amazed no-one mentioned scripting on this list yet. Silverlight relies
on the browser's JS engine for scripting. Basically, the XAML subset
implement Silverlight handles Layout, and animation, while the browser's
javascript engine actually provides for the scripting. IMHO, that's what we
did with Flash 3. Although admittedly Flash 3 didn't event back.

Ralph.

On 17 Apr 2007 04:34:08 -0700, Scott Barnes [EMAIL PROTECTED] wrote:


  Claus,

Yup, so that's why FLEX does have its unique offering vs SilverLight and
once developers  designers unsubscribe from the notion it's a Flash
Killer and do more of what you are doing (exploring it's upcoming release)
you'll decide on what you think it's merits are vs aren't. It's early days
yet, so wouldn't worry to much about it folks ;) just keep an open mind
should you want to take it for a test-run post MIX07 :)

WPF  SilverLight are going to have interesting prospects just like Apollo
and FLEX will have it's own, I think the two will do different things for
different people. Keep fingers in all barrels I'd say :)



On 17 Apr 2007 03:30:22 -0700, Claus Wahlers [EMAIL PROTECTED]
wrote:


  If you read FUD crap, ignore it on both sides and just be opened to
 the
  idea that theres yet another channel of delivery in rich interactive
  applications.

 Reading through the Silverlight docs, XAML looks to me like some weird
 kind of microsoftified SVG, spiced up with MP3 and WM codecs. I'm still
 searching but so far i couldn't find anything close to what Flex offers
 (what i found are some barely working and butt ugly component
 experiments). I'd guess that Silverlight will get some video market
 share, but it has a long way to go to enter the RIA market. My 2
 centavos.

 Cheers,
 Claus.

 --
 claus wahlers
 côdeazur brasil
 http://codeazur.com.br/
 http://wahlers.com.br/claus/blog/




--
Regards,
Scott Barnes
http://www.mossyblog.com

 





--
Ralph Hauwert


[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread Peter Demling
Version 1 of Microsoft products have historically been slow,
unapologizing in their copycat nature, and hampered by large numbers
of major bugs and gaps in functionality.

However, their astronomical cash reserves and relentless commitment to
establish market share has almost always led to vastly improved
products in version 2 and beyond.  So of course, Silverlight is no
match for Flex - right now.  But if Microsoft sustains its commitment,
it's not a question of *if* it could be almost as good as Flex -
just a matter of when.

I don't say this as a criticism of Microsoft (I use several of their
products daily and love them), but rather to point out that they are
more of a market force than a true software company - and so the
relative success of Silverlight (or any other MS offering) is
pre-ordained, so long as they decide that's what they want to do -
it's independent of the present quality of the actual product.

-Peter Demling
 Lexington, MA

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

 Claus,
 
 Yup, so that's why FLEX does have its unique offering vs SilverLight and
 once developers  designers unsubscribe from the notion it's a Flash
 Killer and do more of what you are doing (exploring it's upcoming
release)
 you'll decide on what you think it's merits are vs aren't. It's
early days
 yet, so wouldn't worry to much about it folks ;) just keep an open mind
 should you want to take it for a test-run post MIX07 :)
 
 WPF  SilverLight are going to have interesting prospects just like
Apollo
 and FLEX will have it's own, I think the two will do different
things for
 different people. Keep fingers in all barrels I'd say :)
 
 
 
 On 17 Apr 2007 03:30:22 -0700, Claus Wahlers [EMAIL PROTECTED] wrote:
 
 
   If you read FUD crap, ignore it on both sides and just be opened
to the
   idea that theres yet another channel of delivery in rich interactive
   applications.
 
  Reading through the Silverlight docs, XAML looks to me like some weird
  kind of microsoftified SVG, spiced up with MP3 and WM codecs. I'm
still
  searching but so far i couldn't find anything close to what Flex
offers
  (what i found are some barely working and butt ugly component
  experiments). I'd guess that Silverlight will get some video market
  share, but it has a long way to go to enter the RIA market. My 2
centavos.
 
  Cheers,
  Claus.
 
  --
  claus wahlers
  côdeazur brasil
  http://codeazur.com.br/
  http://wahlers.com.br/claus/blog/
  
 
 
 
 
 -- 
 Regards,
 Scott Barnes
 http://www.mossyblog.com





Re: [flexcoders] Can someone please help me? Error message *No Disk*

2007-04-17 Thread Matthew Hartman

Matthew Hartman wrote:


Can someone please help me? When I try and compile or debug an
application through Flex Builder 2, I get an error message with a title:
Windows - No Disk and the message: There is no disk in the drive.
Please insert a disk into the drive. I have tried un-installing FB2 and
re-installing and still same error. I have also tried reformatting my
hard drive, re-installing Windows and installing Flex Builder 2 and I
get the same message. Can anyone please help me? I am running a Gateway
FX510X, Windows XP SP2 on an Intel Core 2 duo 2.4 ghz with 2gig Ram.
Please, please someone help.

 
After installing Flex Builder 2.0 (instead of Flex Builder 2.0.1) I have 
gotten it to work. Does anyone know why I have not been able to install 
FB 2.0.1? Is there an updater? I have been downloading the trial version 
of FB 2.0.1  from the Adobe site. Is this not the right way to do it or 
something?
  Thanks for any help 
anyone can give,

   --Matthew Hartman


Re: [flexcoders] Re: Versioning swf files for bug reporting

2007-04-17 Thread Paul J DeCoursey
I have a java class that generates a build.as file that is included in 
my main application mxml file.  The build.as file has only

public static var uiBuildText:String = unique build info here;

I put in a build id, gotten from subversion.  I also include the date 
for the version and who did the build.

If I ever get around to it I will blog about this. 

Tom Chiverton wrote:
 On Tuesday 17 Apr 2007, bhaq1972 wrote:
   
 we actually have a variable like this and my poor colleague has to
 always update it before being released to our testers.

 It would make his life so much easier if something was built into
 flexbuilder.
 

 Ditto. Which was the original question. 
 If Cruise Control has this, it's very well hidden.

 I suppose your CC build script could run sed over the source or something but 
 that's fairly yuck too.

   



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: -extern compiler option for AS3 project

2007-04-17 Thread pet.theory
Thanks Alex,

Tried these, none worked (the class that embeds the pic is AlertPuller);

-externs
/Users/Matt/Documents/Workspace/Pet/classes/control/AlertPuller.as
-externs /Users/Matt/Documents/Workspace/Pet/classes/control/AlertPuller
-externs=/Users/Matt/Documents/Workspace/Pet/classes/control/AlertPuller.as
-externs=/Users/Matt/Documents/Workspace/Pet/classes/control/AlertPuller

And by none worked I mean that the flabbly 8k that is embedded in
AlertPuller keeps showing up in childSWF, compiler diet or no.

That makes sense to me, since AlertPuller is compiled into parentSWF
already, and -load-externs does not knock out the 8k in the first place. 

Are you sure that this is possible? That we can use an exclude option
for images embedded in classes? Perhaps I need to directly embed the
image in parentSWF, then use...

-externs parentSWFApp?

But I think I'm missing something here.


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

 Are you sure that it isn't that the grandChildSWF didn't see classes in
 childSWF?  Setting a custom loaderContext might help.  You might be
 having applicationDomain issues.
  
 -externs only works on classes, not on files like sharedImage.jpg.
 Unless you embed sharedImage.jpg in childSWF it shouldn't be in there.
 -extern PictureInThisClass should work.
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of pet.theory
 Sent: Monday, April 16, 2007 3:26 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] -extern compiler option for AS3 project
 
 
 
 Hi,
 
 I'm exploring the compiler options for an AS3 project in which
 parentSWF loads childSWF.
 
 for compiling childSWF:
 
 -load-externs=parentSWFClasses.xml (the link report) applied to
 childSWF works great (with this exception: a grandchildSWF loaded into
 childSWF does not seem to inherit the classes that childSWF inherits
 from parentSWF).
 
 -externs=sharedImage.jpg does not work AT ALL. Here I need to exclude
 a picture embedded in parentSWF from compiling into childSWF, and
 bulking it up.
 
 The picture needs to be embedded in parentSWF, so loading/caching it
 is not an optimal solution here.
 
 One thing: I actually have the picture embedded in a class
 (PictureInThisClass.as) that both parentSWF and childSWF use.
 
 Am I using the right command and the right syntax to exclude an
 embedded picture from being compiled?
 
 I'm a lowly actionscripter, and not a flexcoder yet, so if I'm
 off-topic tell me so.
 
 Thanks





[flexcoders] problem with displaying data in the tree control

2007-04-17 Thread paranoid_santhosh

I am having a problem in displaying  the data in tree control


mx:HTTPService url=http://localhost:9090/Portalserver/newxml.jsp; 
id=newxmlHttp useProxy=false method=POST showBusyCursor=true/

//newxml.jsp is returning me this xml.

DirectoryTree

Directory Did=6 Dname=santhosh 
File Fid=84 name=abcd /
File Fid=85 name=efgh /
File Fid=86 name=ijkl /

/Directory


Directory Did=7 name=java 
File Fid=87 name=reflection /
File Fid=88 name=container /
File Fid=89 name=component /

/Directory

Directory Did=8 name=flex 
File Fid=90 name=controls /
File Fid=91 name=apollo /
File Fid=92 name=asp /

/Directory

/DirectoryTree


and in the mxml file...
i have used.

mx:Tree x=0 y=0 id=tree   height=294 width=230  
creationComplete=newxmlHttp.send()   labelFunction=treeLabel 
visible=true labelField=@name

mx:XMLListCollection id=dirxml 
source={newxmlHttp.lastResult.DirectoryTree.Directory}

/mx:XMLListCollection

/mx:Tree


and in the action script i have written ..

private function treeLabel(item:Object):String
{
if(item == null)
Alert.show(item null);
var node:XML = XML(item);
if( node.localName() == Directory )

return [EMAIL PROTECTED];
else
return [EMAIL PROTECTED];
}




Re: [flexcoders] Re: Versioning swf files for bug reporting

2007-04-17 Thread Tom Chiverton
On Tuesday 17 Apr 2007, Johannes Nel wrote:
 cruisecontrol (which you use with your svn (for example)) to manage your
 builds. the great advantage that cruise control gives you is that its build
 already,

I don't see Flex or ActionScript support in it.
And I never had much luck with ANT scripts for Flex from Eclipse either.

 you seem very cynical 
 of something like cuise control, and i think your reasoning stems from the
 fact that you have not used it yourself. 

Actually, I have.
It just doesn't solve the problem of baking a build number in to the 
application's GUI. Does it ?

 build, numbered and visible for everyone involved in the project.

Where does the build number appear in the application ?

-- 
Tom Chiverton
Helping to collaboratively implement integrated e-services
on: http://thefalken.livejournal.com



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


RE: [flexcoders] Looping through sorted ObjectProxy

2007-04-17 Thread Alex Harui
For..in does not guarantee order.  You could theoretically call it twice and 
get different results.
 
You might have to find a way to get an array.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bjorn -
Sent: Monday, April 16, 2007 12:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Looping through sorted ObjectProxy



I'm getting a sorted ObjectProxy from a server. In my debugger it looks like 
this:
 
obj.stats = Object (@b90e661)
 [51] = Object (@b90e541)
 [52] = Object (@b90e361)
 [1] = Object (@b90e121)
 [2] = Object (@b90e9e1)
 
(its week numbers linked to Objects, btw).
 
However, when I use for() like this:
 
for( var i:String in obj.stats) {
  trace(obj.stats[i])
}
 
.. i get them in a different order (it starts with 2, then goes back to 51).
 
Why does for() behave this way? .. and how can I loop through them in the order 
I see in my debugger?
 
Best regards,
Bjørn
-- 


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

 


[flexcoders] Overwrite Skin to NULL

2007-04-17 Thread Devin
I've noticed if you put a skin in place then you can't create another 
style for specific changes.  Is there a way to overwrite a skin style 
to a null value or something to get rid of it in another style?  For 
example:


this is my panel style
Panel
{

closeButtonDisabledSkin: Embed
(source=flex_skins.swf,symbol=Panel_closeButtonDisabledSkin);
closeButtonDownSkin: Embed
(source=flex_skins.swf,symbol=Panel_closeButtonDownSkin);
closeButtonOverSkin: Embed
(source=flex_skins.swf,symbol=Panel_closeButtonOverSkin);
closeButtonUpSkin: Embed
(source=flex_skins.swf,symbol=Panel_closeButtonUpSkin);
borderSkin: Embed(source=flex_skins.swf, 
symbol=Panel_borderSkin);
titleBackgroundSkin: Embed(source=empty.swf, 
symbol=Panel_titleBackgroundSkin);
borderThicknessLeft: 10;
borderThicknessRight: 11;
borderThicknessTop: 0;
borderThicknessBottom: 3;
headerHeight: 30;
}


I want a few of my panels to have white backgrounds so i use this 
style.

.panel { 
   border-alpha: 1;
   border-color: #ff;
} 


Because I initiated the skin the .panel doesn't work.  Is there a way 
to say set the skin style to null so I can get the .panel style to 
work?

such as 

.panel { 
   borderSkin: NULL (blank it out):
   border-alpha: 1;
   border-color: #ff;
}




[flexcoders] FDS Pain

2007-04-17 Thread Harris Reynolds
Hi there.  I am trying to use FDS to manage a collection tree nodes.  
The top-level collection that is managed by FDS contains all of the 
root nodes.

I'd like for FDS to refresh the top-level collection of root nodes 
any time I insert a node into the tree, regardless of where in the 
hierarchy it falls.  This turns out to be very difficult using FDS.

Here is what I have tried:

I tried turning off caching of the collection so that FDS would just 
refill the data whenever I call:

DataServiceTransaction transasction = DataServiceTransaction.begin
(null, false);
transasction.refreshFill(DestinationNameHere, null);

This doesn't work.  When caching is turned off there is a strange 
dependency that I don't understand on the getItem method in my 
Assembler.

If caching is not disabled, then FDS simply looks at the top-level 
nodes by their identity and doesn't notice any changes so it ignores 
new nodes added lower in the tree's hierarchy.

I can't use the updateItem method call b/c I don't now which top-
level node is being updated deep within the tree (and shouldn't need 
to do this just to get FDS to reload the tree data for any connected 
clients).

I am starting to think it would be easier to write my own polling 
data service that does what I want myself and not even use FDS as 
currently FDS is making something very simply very hard.  I hope 
someone proves me wrong!! :-)

Any ideas here?  Thanks,

~harris



Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread Stacy Tyler Young

I¹ve been digging myself and right now I get the impression that its true
RIA on windows (with full WPF behind it) but primarily a media player on
other platforms. I¹ll be studying further to wash away my ignorance but
that¹s where I¹m at now ...  :-)

Stace


On 4/17/07 7:34 AM, Scott Barnes [EMAIL PROTECTED] wrote:

  
  
  
 
 Claus,
  
 Yup, so that's why FLEX does have its unique offering vs SilverLight and once
 developers  designers unsubscribe from the notion it's a Flash Killer and
 do more of what you are doing (exploring it's upcoming release) you'll decide
 on what you think it's merits are vs aren't. It's early days yet, so wouldn't
 worry to much about it folks ;) just keep an open mind should you want to take
 it for a test-run post MIX07 :)
  
 WPF  SilverLight are going to have interesting prospects just like Apollo and
 FLEX will have it's own, I think the two will do different things for
 different people. Keep fingers in all barrels I'd say :)
  
 
  
 On 17 Apr 2007 03:30:22 -0700, Claus Wahlers [EMAIL PROTECTED] wrote:
 
  If you read FUD crap, ignore it on both sides and just be opened to the
  idea that theres yet another channel of delivery in rich interactive
  applications.
 
 Reading through the Silverlight docs, XAML looks to me like some weird
 kind of microsoftified SVG, spiced up with MP3 and WM codecs. I'm still
 searching but so far i couldn't find anything close to what Flex offers
 (what i found are some barely working and butt ugly component
 experiments). I'd guess that Silverlight will get some video market
 share, but it has a long way to go to enter the RIA market. My 2 centavos.
 
 Cheers,
 Claus.




[flexcoders] Thanks for the poster

2007-04-17 Thread Teddy Setiawan

Greeting from Indonesia ,I don't know where to thanks , just receive  Flex API 
Posters and AS 3.0 Class , delivered directly to my house for free ,thanks to 
Ted Patrick for the link , and Flex.org for the Posters .RegardsTeddy
_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us

[flexcoders] Parsing Streaming Audio Headers.

2007-04-17 Thread camlinaeizerous
I have seen multiple discussions about mp3 players and streaming audio
and I figured I'd take a stab and building a small player that could
be used as a banner on a webpage. I found a few sample players and did
a kind of mix and match of them and came up with my own.

www.izerous.com/rantplayer/rantamp.html

I have to admit the ID3 events make parsing the mp3 headers extremely
simple but I'm not looking at a mp3 source but instead shoutcast which
doesn't trigger the ID3 functions, however I try to do it.

Does anyone happen to know a solution for parsing shoutcast headers or
can at least point me in the right direction?



Re: [flexcoders] Thanks for the poster

2007-04-17 Thread Nick Sophinos

Yes, same here.  In addition, I found that hanging them up in my office
has made them (and me) quite the chick-magnet.

Thanks Ted!

- Nick


On 17 Apr 2007 07:38:24 -0700, Teddy Setiawan [EMAIL PROTECTED]
wrote:


   Greeting from Indonesia ,

I don't know where to thanks , just receive  Flex API Posters and AS 3.0Class ,
delivered directly to my house for free ,
thanks to Ted Patrick for the link , and Flex.org for the Posters .




Regards



Teddy



--
Invite your mail contacts to join your friends list with Windows Live
Spaces. It's easy! Try 
it!http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us

 



Re: [flexcoders] Re: Versioning swf files for bug reporting

2007-04-17 Thread Tom Chiverton
On Tuesday 17 Apr 2007, bhaq1972 wrote:
 we actually have a variable like this and my poor colleague has to
 always update it before being released to our testers.

 It would make his life so much easier if something was built into
 flexbuilder.

Ditto. Which was the original question. 
If Cruise Control has this, it's very well hidden.

I suppose your CC build script could run sed over the source or something but 
that's fairly yuck too.

-- 
Tom Chiverton
Helping to seamlessly architect distributed web-readiness
on: http://thefalken.livejournal.com



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


RE: [flexcoders] FDS Pain

2007-04-17 Thread jason.proulx
I use a simple ArrayCollection in cases like this, and provide a custom
TreeDataDescriptor which converts a 1-dimentional array collection into
something usable by the Tree component.

 

When you bind your array collection to the Tree as the data provider,
FDS will refresh it appropriately.

 

Jay Proulx

[EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Harris Reynolds
Sent: April 17, 2007 12:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FDS Pain

 

Hi there. I am trying to use FDS to manage a collection tree nodes. 
The top-level collection that is managed by FDS contains all of the 
root nodes.

I'd like for FDS to refresh the top-level collection of root nodes 
any time I insert a node into the tree, regardless of where in the 
hierarchy it falls. This turns out to be very difficult using FDS.

Here is what I have tried:

I tried turning off caching of the collection so that FDS would just 
refill the data whenever I call:

DataServiceTransaction transasction = DataServiceTransaction.begin
(null, false);
transasction.refreshFill(DestinationNameHere, null);

This doesn't work. When caching is turned off there is a strange 
dependency that I don't understand on the getItem method in my 
Assembler.

If caching is not disabled, then FDS simply looks at the top-level 
nodes by their identity and doesn't notice any changes so it ignores 
new nodes added lower in the tree's hierarchy.

I can't use the updateItem method call b/c I don't now which top-
level node is being updated deep within the tree (and shouldn't need 
to do this just to get FDS to reload the tree data for any connected 
clients).

I am starting to think it would be easier to write my own polling 
data service that does what I want myself and not even use FDS as 
currently FDS is making something very simply very hard. I hope 
someone proves me wrong!! :-)

Any ideas here? Thanks,

~harris

 



[flexcoders] How to embed Type1 font in CSS?

2007-04-17 Thread Sergey Kovalyov

Hi All!

How to embed Type1 font in CSS? Now I have found only the solution for TTF
fonts. Any ideas?

Thank you in advance.

Sergey.


Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread Paul J DeCoursey
All I have to say is it's Microsoft, if they kill anything it's not on 
the merits of their product... it's brute force.  This is not a threat 
to Flash/Flex by any means.  Microsoft will never be able to create a 
truly cross platform product.  All of their past efforts have been 
clumsy at best, even on their own platform.

Paul


RE: [flexcoders] Problem using RSLs in enterprise app

2007-04-17 Thread Eric Swann
I added a dummy state with a dummy addchild element in the main app, and
this seems to have solved the issue.

 

Thanks.

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Monday, April 16, 2007 7:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Problem using RSLs in enterprise app

 

It is explained in the blog post.  The ResourceManager is loaded by the main
app and the request for resources from the module might be in the context of
the main app and not the module.

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Swann
Sent: Monday, April 16, 2007 3:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Problem using RSLs in enterprise app

Can you be more specific about the term shared code problem?  

Thanks.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Monday, April 16, 2007 4:36 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Problem using RSLs in enterprise app

I believe this is a shared code problem.  Try defining a state in the main
app.

You can read up on modules, applicationdomains, etc on my blog

http://blogs. http://blogs.adobe.com/aharui/2007/03/modules.html
adobe.com/aharui/2007/03/modules.html

  _  

size=2 width=100% align=center 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of eric_swann2000
Sent: Monday, April 16, 2007 11:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem using RSLs in enterprise app

I'm having a problem using a combination of modules/RSLs in my 
application.

I have a project that is split into modules and RSL's. 

* There is a basic shell application.

* There are 4 common component projects which are used by all other 
projects. These are set up as components referenced as RSLs.

* There 5 projects which are interchangeable UI's and are set up as 
modules. Each of these projects is set up as a component project, and 
then there is a common modules project that references each of these 
component projects as merge into code references.

Basically, my shell app dynamically lazy-loads 1 module at a time, 
and unloads the previously loaded module. Both the shell app and the 
modules project reference the 4 common components as RSL's. 

Things appear to work OK, insofar as the shell attempts to load the 
module. However, as the shell is loading the module, it throws the 
following error:
Could not find resource bundle states. 

The error appears to be related to the first AddChild command in 
the first state encountered by the runtime.

Any ideas would be helpfulThanks!

 



[flexcoders] Bug in Flex while setting DataGridColumn.width programatically?

2007-04-17 Thread manfred.maierhofer
Hey guys,
I guess there is a bug in Flex code. When setting the
DataGridColumn.width property programmatically the setter method of
DataGridColumn.width calls the resizeColumn method of DataGrid.

 public function set width(value:Number):void
 {
 // remove any queued equal spacing commands
 explicitWidth = value;
 // use this value for future measurements
 preferredWidth = value;
 if (owner != null)
 {
 // if we aren't resizing as part of grid layout, resize it's
column
 var oldVal:Boolean = resizable;
 // anchor this column to not accept any overflow width for
accurate sizing
 resizable = false;
 owner.resizeColumn(colNum, value);
 resizable = oldVal;
 }
 else
 {
 // otherwise, just store the size
 _width = value;
 }
 dispatchEvent(new Event(widthChanged));
 }

In this method the colNum is used as index for the visibleFields, which
contain the fields that are visible at the moment on the screen. So I
get a nullpointer exception when setting for example the width of the
5th column, when only 4 columns are shown in the grid because
Scrollpolicy is auto and all columns don't fit on one screen.

/**
  *  @private
  *  If there is no horizontal scroll bar, changes the display width
of other columns when
  *  one column's width is changed.
  *  @param col column whose width is changed
  *  @param w width of column
  */
 mx_internal function resizeColumn(col:int, w:Number):void
 {
 // there's a window of time before we calccolumnsizes
 // that someone can set width in AS
 if (!visibleColumns || visibleColumns.length == 0)
 {
 columns[col].setWidth(w);
 return;
 }

 if (w  visibleColumns[col].minWidth)
 w = visibleColumns[col].minWidth;

 // hScrollBar is present
 if (_horizontalScrollPolicy == ScrollPolicy.ON ||
 _horizontalScrollPolicy == ScrollPolicy.AUTO)
 {
 // adjust the column's width
 visibleColumns[col].setWidth(w);
 visibleColumns[col].explicitWidth = w;
 columnsInvalid = true;
 }
 else
 {

 // we want all cols's new widths to the right of this to be
in proportion
 // to what they were before the stretch.

 // get the original space to the right not taken up by the
column
 var totalSpace:Number = 0;
 var n:int = visibleColumns.length;
 var lastColumn:DataGridColumn;
 var i:int;
 var newWidth:Number;
 //non-resizable columns don't count though
 for (i = col + 1; i  n; i++)
 {
 if (visibleColumns[i].resizable)
 totalSpace += visibleColumns[i].width;
 }

 var newTotalSpace:Number = visibleColumns[col].width - w +
totalSpace;
 if (totalSpace)
 {
 visibleColumns[col].setWidth(w);
 visibleColumns[col].explicitWidth = w;
 }

 var totX:Number = 0;
 // resize the columns to the right proportionally to what
they were
 for (i = col + 1; i  n; i++)
 {
 if (visibleColumns[i].resizable)
 {
 newWidth = Math.floor(visibleColumns[i].width
 * newTotalSpace /
totalSpace);
 if (newWidth  visibleColumns[i].minWidth)
 newWidth = visibleColumns[i].minWidth;
 visibleColumns[i].setWidth(newWidth);
 totX += visibleColumns[i].width;
 lastColumn = visibleColumns[i];
 }
 }

 if (totX  newTotalSpace)
 {
 // if excess then should be taken out only from changing
column
 // cause others would have already gone to their minimum
 newWidth = visibleColumns[col].width - totX +
newTotalSpace;
 if (newWidth  visibleColumns[col].minWidth)
 newWidth = visibleColumns[col].minWidth;
 visibleColumns[col].setWidth(newWidth);
 }
 else if (lastColumn)
 {
 // if less then should be added in last column
 // dont need to check for minWidth as we are adding
 lastColumn.setWidth(lastColumn.width - totX +
newTotalSpace);
 }
 }
 itemsSizeChanged = true

 invalidateDisplayList();
 }

I use this to automatically set the width of the columns to fit their
entries. Does anyone else have the same problem? Is there a known
workaround for this problem?

Thanks,
Mane



[flexcoders] oop constructor

2007-04-17 Thread Chad Gray
I am walking through the book Adobe Flex 2 and it is showing how to build your 
own AS Class file.

It mentions constructor, but does not really explain what a constructor is.

Can someone give a description of a constructor?

Also is there any template/reference for a Class file?  Like a basic skeleton 
of how a Class is commonly setup?  

Thanks!
Chad




[flexcoders] Re: FDS Pain

2007-04-17 Thread Harris Reynolds
Thanks for the reply man.  Unfortunately my object structure is 
already built to support the default TreeDataDescriptor (each node 
has a children property that itself is a collection of nodes).

I'd like to have the tree completely refreshed any time I add a node 
to one of these children on the server.

~harris

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

 I use a simple ArrayCollection in cases like this, and provide a 
custom
 TreeDataDescriptor which converts a 1-dimentional array collection 
into
 something usable by the Tree component.
 
  
 
 When you bind your array collection to the Tree as the data 
provider,
 FDS will refresh it appropriately.
 
  
 
 Jay Proulx
 
 [EMAIL PROTECTED]
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Harris Reynolds
 Sent: April 17, 2007 12:13 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] FDS Pain
 
  
 
 Hi there. I am trying to use FDS to manage a collection tree nodes. 
 The top-level collection that is managed by FDS contains all of the 
 root nodes.
 
 I'd like for FDS to refresh the top-level collection of root nodes 
 any time I insert a node into the tree, regardless of where in the 
 hierarchy it falls. This turns out to be very difficult using FDS.
 
 Here is what I have tried:
 
 I tried turning off caching of the collection so that FDS would 
just 
 refill the data whenever I call:
 
 DataServiceTransaction transasction = DataServiceTransaction.begin
 (null, false);
 transasction.refreshFill(DestinationNameHere, null);
 
 This doesn't work. When caching is turned off there is a strange 
 dependency that I don't understand on the getItem method in my 
 Assembler.
 
 If caching is not disabled, then FDS simply looks at the top-level 
 nodes by their identity and doesn't notice any changes so it 
ignores 
 new nodes added lower in the tree's hierarchy.
 
 I can't use the updateItem method call b/c I don't now which top-
 level node is being updated deep within the tree (and shouldn't 
need 
 to do this just to get FDS to reload the tree data for any 
connected 
 clients).
 
 I am starting to think it would be easier to write my own polling 
 data service that does what I want myself and not even use FDS as 
 currently FDS is making something very simply very hard. I hope 
 someone proves me wrong!! :-)
 
 Any ideas here? Thanks,
 
 ~harris





[flexcoders] Re: Bug in Flex while setting DataGridColumn.width programatically?

2007-04-17 Thread manfred.maierhofer
After recompiling a few times it works properly.
I spend a whole day to fix this issue.

Thanks a lot for your hint,
Mane



Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread Scott Barnes

See there ya go ;) once you get past all this my muscles are bigger than
yours stuff and you get to the heart of it, it doesn't hurt to know how
SilverLight ticks though does it :)

Scott.



On 17 Apr 2007 06:29:35 -0700, driverdude [EMAIL PROTECTED]
wrote:



*snarf* I'm trying to stop laughing!

Realistically, Silverlight may pick up some heavy video developers, but
Adobe is way far out there.

I love Microsoft tools for coding, but doesn't this look like an
opportunity to dis-include Linux and Solaris more than a real product?

I'll pay much more serious attention if they do a good job with .NET
integration. Flex + Coldfusion + SQL Server  Silverlight + SQL Server
with no middleware application server.

As long as Adobe keeps the Flash runtime under 1 MB, with decent
performance, and no plug-in CODEC searches (like QuickTime or WMP), I
think Flash wins.

Perhaps if Microsoft makes the tools free, that would shift the scales
in their direction, or announcing something Apollo-like or integrating
PDF viewing/generation/web browsing like Apollo.

I intend to be fluent in Silverlight technologies as well as
Flash/Flex/Apollo, in hopes that they do something really innovative,
but I just can't imagine the masses dropping Flash for a very green
product.

Let's see what the next few months hold...







--
Regards,
Scott Barnes
http://www.mossyblog.com


[flexcoders] Help! Object integrity across DataService.commit()

2007-04-17 Thread simonjpalmer
I seem to be getting object instances changing across a commit()
boundary.  Half the object ID's change through a commit for no
apparent reason.  This means I have no capability to manage a
parent-child relationship in data.  Utter disaster!

Here's the situation.  I have a parent child hierarchy of objects,
from the root to the leaves:
PO
PP
SS
SC
OP
So PO's contain PP's, PP's contain SS's and so forth.

I converse with a single data service which delivers a set of PO's and
the PP's are thereafter lazily loaded.  I don't break the dataservice
or object model anywhere below that, so a PP is treated as a single
entity and read and written as such with its entire sub-graph of objects.

I have two destinations, one for PO's and one for PP's and this all
works fine.

However, when I create a graph such as the one above and commit it to
the server through the PO destination I have different object
instances for SS, SC and OP's after the call to commit returns.

This is a problem because there are some properties which are specific
to the object instance, in particular an object reference to its
parent.  The object instance of the parent is changing across the
commit boundary.

Before commit everything is joined up nicely as you would expect:

PO @42f2451
PP @43f3629 parent @42f2451
SS @4c0ee71 parent @43f3629
SC @a5d69d1 parent @4c0ee71
OP @a2f5a01 parent @a5d69d1

after commit these are the same...

PO @42f2451
PP @43f3629 parent @42f2451

however everything else is different

SS @4c0e151 parent @a94d3d1
SC @4ba2d31 parent @4c0e151
OP @new parent @4ba2d31 

what's worse is that the new parent instance of PP held on the new SS
(i.e. whatever is under @a94d3d1) has itself a null parent reference.
 That means that after the commit my tree below SS is dangling in the
wind and I cannot find the parentage up to PO!

This is a complete disaster.  It effectively means I have no
bi-directional one-to-many support, e.g. no Parent-Child, the most
basic of relationships!

Worse, if I traverse down from PO to OP I cannot traverse back up
again!  It goes down one path and up another which ends before it gets
to PO.

So I have three questions:

What am I doing wrong?  
How do I prevent my object instances from being screwed around with
during commit?  
How do I tell when commit() has finished?  Is there an Event I can
trap for its completion?  Then I could at least repair my tree.

very glum...

SP



RE: [flexcoders] Re: Versioning swf files for bug reporting

2007-04-17 Thread Peter Farland

 I suppose your CC build script could run sed over the
 source or something but that's fairly yuck too.

[Pete] Why not just use the AS3 include directive to include a snippet
of a line of AS3 code that would declare your public static variable for
your version inside the class body and override this file during a
build? No sed scripts required.




[flexcoders] Re: problem with displaying data in the tree control

2007-04-17 Thread Doug Lowder
You didn't set the dataProvider property of the tree control.  Also, 
I think the XMLListCollection entity should be declared on its own 
rather than as a child of the tree.

mx:Tree x=0 y=0 id=tree height=294 width=230
creationComplete=newxmlHttp.send() labelFunction=treeLabel
visible=true labelField=@name dataProvider=dirxml

/mx:Tree

mx:XMLListCollection id=dirxml
source={newxmlHttp.lastResult.DirectoryTree.Directory}

/mx:XMLListCollection


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

 
 I am having a problem in displaying  the data in tree control
 
 
 mx:HTTPService url=http://localhost:9090/Portalserver/newxml.jsp; 
 id=newxmlHttp useProxy=false method=POST 
showBusyCursor=true/
 
 //newxml.jsp is returning me this xml.
 
 DirectoryTree
 
 Directory Did=6 Dname=santhosh 
   File Fid=84 name=abcd /
   File Fid=85 name=efgh /
   File Fid=86 name=ijkl /
 
 /Directory
 
 
 Directory Did=7 name=java 
   File Fid=87 name=reflection /
   File Fid=88 name=container /
   File Fid=89 name=component /
 
 /Directory
 
 Directory Did=8 name=flex 
   File Fid=90 name=controls /
   File Fid=91 name=apollo /
   File Fid=92 name=asp /
 
 /Directory
 
 /DirectoryTree
 
 
 and in the mxml file...
 i have used.
 
 mx:Tree x=0 y=0 id=tree   height=294 width=230  
 creationComplete=newxmlHttp.send()   labelFunction=treeLabel 
 visible=true labelField=@name
 
 mx:XMLListCollection id=dirxml 
 source={newxmlHttp.lastResult.DirectoryTree.Directory}
   
 /mx:XMLListCollection
 
 /mx:Tree
 
 
 and in the action script i have written ..
 
 private function treeLabel(item:Object):String
 {
   if(item == null)
   Alert.show(item null);
 var node:XML = XML(item);
 if( node.localName() == Directory )
 
 return [EMAIL PROTECTED];
 else
 return [EMAIL PROTECTED];
 }





[flexcoders] History management in own page template

2007-04-17 Thread Tom Chiverton
I'm trying to get history management working with our own page template and 
the 2.0.1+hotfix SDK.
All seems well and there are no errors, except when I change tabs for a 
TabNavigator with historyManagementEnabled set to true, I get a new window 
pop up, witch an URL 
like http://extranet.localdomain/history.htm?app=128efbf6-selectedIndex=1;.

I understand this should have been loaded into the iframe on the page ?
I've also just logged comments with the LiveDocs team over the page at: 
http://livedocs.adobe.com/flex/201/html/historymanager_084_7.html which trys 
to explain how to do it but appears to have errors in, and certainly code 
that doesn't match the templates in the SDK.

Has anyone ever gotten their own template to work with history management, or 
seen this error before ?

My page code uses the popular SWFObject for embeding the SWF, and I've set the 
SWF height to be 100% so I can see the iframe content is being loaded OK.
There are no JavaScript errors, until the popup window appears at which point 
I get an error about top.getSearch is not a function which makes sense 
because 'top' will no longer be common to the history.htm (now in new window) 
and the main index page.

All this occurs in IE as well as Firefox.

Here's the page code:
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
meta http-equiv=Content-Type content=text/html; charset=utf-8 /
titleHalliwells Extranet/title
script language=JavaScript type=text/JavaScript 
src=history.js/script
script type=text/javascript src=swfobject/swfobject.js/script
style type=text/css 
/* hide from ie on mac \*/
html {
height: 100%;
overflow: hidden;
}

#flashcontent {
height: 90%;
}
/* end hide */

body {
height: 90%;
margin: 0;
padding: 0;
background-color: #8197A2;
}

/style
/head
body onLoad=document.getElementById('flashcontent').focus()

div id=flashcontent
strongYou need to upgrade your Flash Player to version 9.0.28 
or 
better/strongbr
Click a href=http://adobe.com/go/getflashplayer/;here/a or 
contact a 
href=http://www.halliwells.com/;Halliwells/a.
/div

script type=text/javascript
// ![CDATA[
var so = new 
SWFObject(index.swf, flashcontent, 100%, 90%, 9.0.28, #8197A2);
cfoutputso.addVariable(token, 
#res.sessionKey#);/cfoutput
so.useExpressInstall('swfobject/expressinstall.swf');

so.addVariable(remoteHost,document.location.href.split('/')[2]);
so.addVariable(remoteProtocol,document.location.protocol);
so.addVariable(historyUrl,history.htm%3Flconid=+lc_id);
so.addParam(scale, noscale);
so.write(flashcontent);   
// ]]
/script
iframe name=_history.htm src=history.htm height=60 width=62
/iframe
/body
/html

-- 
Tom Chiverton
Helping to vitalistically scale 24/7 services



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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



Re: [flexcoders] Looping through sorted ObjectProxy

2007-04-17 Thread bjorn -

Thanks for answering Alex. I solved it by adding a sort_order on the server
side and using it for index when creating an Array on the client.

like this:

for each (var value:Object in obj.stats) {
 arr[ value.sort_order ] = value;
}

.. I was just puzzled by the fact that it always looked correctly sorted in
the debugger, and that it was outputted in a consistent but wrong order
using for .. in :)

Best regards,
Bjørn



On 17 Apr 2007 06:01:27 -0700, Alex Harui [EMAIL PROTECTED] wrote:


   For..in does not guarantee order.  You could theoretically call it
twice and get different results.

You might have to find a way to get an array.

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *bjorn -
*Sent:* Monday, April 16, 2007 12:06 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Looping through sorted ObjectProxy



 I'm getting a sorted ObjectProxy from a server. In my debugger it looks
like this:

obj.stats = Object (@b90e661)
 [51] = Object (@b90e541)
 [52] = Object (@b90e361)
 [1] = Object (@b90e121)
 [2] = Object (@b90e9e1)

(its week numbers linked to Objects, btw).

However, when I use for() like this:

for( var i:String in obj.stats) {
  trace(obj.stats[i])
}

.. i get them in a different order (it starts with 2, then goes back to
51).

Why does for() behave this way? .. and how can I loop through them in the
order I see in my debugger?

Best regards,
Bjørn
--


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: Bug in Flex while setting DataGridColumn.width programatically?

2007-04-17 Thread manfred.maierhofer
I'm on 2.0.1

But I didn't know that there is a hotfix and this Changing the width
of DataGrid that is disappeared gets error (RTE) change could be mine.

I will try it immediately.

Thanks a lot,
Mane



[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread driverdude

*snarf*  I'm trying to stop laughing!

Realistically, Silverlight may pick up some heavy video developers, but
Adobe is way far out there.

I love Microsoft tools for coding, but doesn't this look like an
opportunity to dis-include Linux and Solaris more than a real product?

I'll pay much more serious attention if they do a good job with .NET
integration.  Flex + Coldfusion + SQL Server  Silverlight + SQL Server
with no middleware application server.

As long as Adobe keeps the Flash runtime under 1 MB, with decent
performance, and no plug-in CODEC searches (like QuickTime or WMP), I
think Flash wins.

Perhaps if Microsoft makes the tools free, that would shift the scales
in their direction, or announcing something Apollo-like or integrating
PDF viewing/generation/web browsing like Apollo.

I intend to be fluent in Silverlight technologies as well as
Flash/Flex/Apollo, in hopes that they do something really innovative,
but I just can't imagine the masses dropping Flash for a very green
product.

Let's see what the next few months hold...






Re: [flexcoders] Library compilation takes too much time

2007-04-17 Thread Johannes Nel

not having the project open in FB should mean they do not recompile

On 17 Apr 2007 04:21:13 -0700, Sergey Kovalyov 
[EMAIL PROTECTED] wrote:


  Hi All!

Each time I change class in library project it takes to much time to
recompile, because all the projects that use this library are recompiled.
Even when there are 3 projects, I have to wait about 30 seconds after each
save (I prefer Build Automatically option checked). Is there any way to
prevent projects that use the library to recompile without unchecking Build
Automatically option? :)

Sergey.

 





--
j:pn
http://www.lennel.org


Re: [flexcoders] Datagrid selection enabled only on first column

2007-04-17 Thread Christian Chua
Alex,

Thanks for your advice.

Any chance you can point me to a website with .mxml files that implement this 
idea ?

Thanks,
Christian



  - Original Message - 
  From: Alex Harui 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, April 16, 2007 5:51 PM
  Subject: RE: [flexcoders] Datagrid selection enabled only on first column



  There is no flag or option.  You can subclass, override mouseDownHandler and 
bail out if something you don't like got pressed.



--
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Christian Chua
  Sent: Monday, April 16, 2007 4:20 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Datagrid selection enabled only on first column


  Hello.

  Is there a way to tell the DataGrid component to trigger selection only on 
  the first column ?
  The default behavior is that clicking anywhere on the row selects the row.

  Thanks,
  Christian 



   

[flexcoders] Re: Versioning swf files for bug reporting

2007-04-17 Thread bhaq1972
 Why don't you just define a public static variable on a class with 
build
 number information and update it before building your SWF from the
 command line?

we actually have a variable like this and my poor colleague has to 
always update it before being released to our testers.

It would make his life so much easier if something was built into 
flexbuilder.



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

 
 These seem like general SCM questions to me.
 
 Surely you can get cruise control to call a command line statement?
 There are command line tools to compile MXML or AS3 based 
applications
 to SWFs or to create component libraries as SWCs. Couldn't cruise
 control also call an ant task if you've already got those set up?
 
 Why don't you just define a public static variable on a class with 
build
 number information and update it before building your SWF from the
 command line?
 
 
 
 
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Tom Chiverton
 Sent: Tuesday, April 17, 2007 9:37 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: Versioning swf files for bug 
reporting
 
 On Tuesday 17 Apr 2007, Johannes Nel wrote:
  cruisecontrol (which you use with your svn (for example)) to 
manage 
  your builds. the great advantage that cruise control gives you 
is that
 
  its build already,
 
 I don't see Flex or ActionScript support in it.
 And I never had much luck with ANT scripts for Flex from Eclipse 
either.
 
  you seem very cynical
  of something like cuise control, and i think your reasoning 
stems from
 
  the fact that you have not used it yourself.
 
 Actually, I have.
 It just doesn't solve the problem of baking a build number in to 
the
 application's GUI. Does it ?
 
  build, numbered and visible for everyone involved in the project.
 
 Where does the build number appear in the application ?
 
 --
 Tom Chiverton
 Helping to collaboratively implement integrated e-services
 on: http://thefalken.livejournal.com
 
 
 
 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 St James's Court Brown Street Manchester M2 2JF.  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 Law Society.
 
 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
 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links





RE: [flexcoders] Problem with loading module -- mx.core::LayoutContainer could not be found.

2007-04-17 Thread Alex Harui
I think it is because localhost is not the same domain as the file system, and 
you can't load modules across domains without import loading them.  You might 
be better off loading via relative urls instead of absolute.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bjorn -
Sent: Tuesday, April 17, 2007 12:32 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Problem with loading module -- 
mx.core::LayoutContainer could not be found.



I don't have a crossdomain file, didn't think I needed one as it was all on 
localhost .. I get the problem when I run my project in Flex hitting ctrl-F11 
since it will load my app directly (e.g. 
file:///C:/dev/FlexWorkspace/MyApp/build/MyApp-debug.html 
file:///C:/dev/FlexWorkspace/MyApp/build/MyApp-debug.html  ) - while trying 
to load the module from a server (localhost). I don't see why it should be a 
problem though.
 
As for the security error (here's another one for Google) - it's: SWF is not a 
loadable module ...
 
The event:
 
e = mx.events.ModuleEvent (@414ad61)
 bubbles = false
 bytesLoaded = 0
 bytesTotal = 0
 cancelable = false
 currentTarget = ModuleManager.as$20.ModuleInfoProxy (@3ecec81)
 errorText = SWF is not a loadable module 
 eventPhase = 2
 module = ModuleManager.as$20.ModuleInfoProxy (@3ecec81)
 target = ModuleManager.as$20.ModuleInfoProxy (@3ecec81)
 type = error

 
Best regards,
Bjørn
 
On 16 Apr 2007 18:03:09 -0700, Robert Cadena [EMAIL PROTECTED] mailto:[EMAIL 
PROTECTED]  wrote: 


Glad I could help. Just cause I'm curious:
- do you have a crossdomain at the root of your localhost server?
- is your parent app not loaded from the same domain (localhost)?
- you are doing this with the swf player, maybe on the browser or by 
running the swf directly, not in apollo, right?

you might want to add eventListeners to the moduleinfo just to see what 
the exact security error is. Put a breakpoing on the function that 
handles SecurityError and see what the error message is. 

best of luck.

/r
http://www.searchcoders.com/flex/search/module 
http://www.searchcoders.com/flex/search/module 
http://www.laflex.org/ http://www.laflex.org/  - Los Angeles Flex 
Users Group

bjorn - wrote:
 Robert, thanks for leading me onto the correct path :-) The problem 
has to 
 do with security. If I set the module url to a local path (c:\..) 
 instead of
 localhost, I'm able to load it.
 
 Strange error message for security issues, don't you think? Well, now 
it's 
 soon on Google at the least.
 
 - Bjørn
 
 
 On 16 Apr 2007 10:10:50 -0700, Robert Cadena  [EMAIL PROTECTED] 
mailto:robert%40searchcoders.com 
 wrote:

 Hi Bjorn,

 when you load the module, what ApplicationDomain are you passing to 
the
 the IModuleInfo? and how do you construct it if you are passing it 
as a 
 param?

 /r
 http://www.searchcoders.com/flex/search/module 
http://www.searchcoders.com/flex/search/module 
 http://www.laflex.org/ http://www.laflex.org/  - Los Angeles Flex 
Users Group

 bjorn - wrote:
  Thanks for the tip .. I did try that already though, and it didn't 
make
 any








-- 

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

 


[flexcoders] Re: Bug in Flex while setting DataGridColumn.width programatically?

2007-04-17 Thread manfred.maierhofer
No, unfortunately it didn't solve my problem.

Any other suggestions?

Thanks,
Mane



Re: [flexcoders] Looping through sorted ObjectProxy

2007-04-17 Thread bjorn -

Actually, it doesn't ..

If I look in my debugger - this is how the object looks:
obj.stats = Object (@3ff4c81)
[13] = Object (@3ff40c1)
[14] = Object (@40333c1)
[15] = Object (@3ec07a1)
[16] = Object (@a973301)

The code:

for( var i:String in obj.stats) {
 trace(i);
}

for each (var value:Object in obj.stats) {
trace(value.week);
}

will output:
16
13
14
15

16
13
14
15

.. it always starts with the last, before moving to the first ..

Best regards,
Bjørn



On 16 Apr 2007 17:02:20 -0700, Bjorn Schultheiss 
[EMAIL PROTECTED] wrote:


   Hey Bjørn,


for in loops in reverse.
for each should give you what you need.




regards,


Bjorn



 On 17/04/2007, at 5:11 AM, bjorn - wrote:



I'm getting a sorted ObjectProxy from a server. In my debugger it looks
like this:

obj.stats = Object (@b90e661)
 [51] = Object (@b90e541)
 [52] = Object (@b90e361)
 [1] = Object (@b90e121)
 [2] = Object (@b90e9e1)

(its week numbers linked to Objects, btw).

However, when I use for() like this:

for( var i:String in obj.stats) {
  trace(obj.stats[i])
}

.. i get them in a different order (it starts with 2, then goes back to
51).

Why does for() behave this way? .. and how can I loop through them in the
order I see in my debugger?

Best regards,
Bjørn
--


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











--


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


[flexcoders] Re: user configuration file

2007-04-17 Thread lruinelli
the userconfig.xml file using HTTPService seems to be the best
solution (fast and simple)...unfortunately the HTTPService asyncronous
nature make this solution not working!:-( the request need some time
to give the result...in this time flex has already setted the loaded
parameters as null and I give an error!

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

 Or have the app load a userconfig.xml file using HTTPService.  This
 takes only a few lines of client-side code and no server-side code.
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Muzak
 Sent: Thursday, April 12, 2007 5:29 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: user configuration file
 
  
 
 Look into FlashVars
 
 http://livedocs.adobe.com/flex/2/docs/1001.html
 http://livedocs.adobe.com/flex/2/docs/1001.html 
 http://livedocs.adobe.com/flex/2/docs/1005.html
 http://livedocs.adobe.com/flex/2/docs/1005.html 
 http://ray.camdenfamily.com/index.cfm/2006/12/11/FlashVars-in-Flex
 http://ray.camdenfamily.com/index.cfm/2006/12/11/FlashVars-in-Flex 
 http://yakovfain.javadevelopersjournal.com/passing_parameters_to_flex_th
 at_works.htm
 http://yakovfain.javadevelopersjournal.com/passing_parameters_to_flex_t
 hat_works.htm 
 
 regards,
 Muzak
 
 - Original Message - 
 From: Tony Obermeit [EMAIL PROTECTED] mailto:hey.you%40mac.com 
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Sent: Thursday, April 12, 2007 9:30 PM
 Subject: [flexcoders] Re: user configuration file
 
  For the flex application, the configuration of which URLs to access
  etc can come from a single, server side configuration. That can be
  done however you need to with your server side language. To pass
  these configuration values in to your swf file, you need to
  dynamically generate the html which calls your swf. Make sure the
  generation creates javascript variables which have the configuration
  values. The flex application can read these values. I don't recall
  the syntax to do this but there have been relatively recent posts
  that show how.
 
  Tony
 
  Posted by: simonjpalmer [EMAIL PROTECTED]
 mailto:simonjpalmer%40yahoo.com  simonjpalmer
  Thu Apr 12, 2007 6:33 am (PST)
 
  check out flex sharedobject
 
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , lruinelli lruinelli@
 wrote:
  
   Hello!
  
   I'm developing an application which need some configuration
 parameter
   to run correctly. E.g. the url of servlet used change frequently
 (the
   application is in develop!)...and I have to update every time all
 the
   MXML file and recompile the application:-(
   ...in desktop win application for this kind of configuration I
  usually
   use somthing like file .ini where I put my configuration, wich are
   loaded by the application:
   e.g.
   config.ini:
   SERVLET_PATH=http://localhost:8080/servlethome/
 http://localhost:8080/servlethome/ 
  
   what is the flex-as best pratices for this kind of stuff?
  
  
   thanks
   Lorenzo
  
 





RE: [flexcoders] Can someone please help me? Error message *No Disk*

2007-04-17 Thread Eric Swann
I experienced the same issue and put the installer disk into my cdrom when
prompted.  Assuming there was something not installed that was required.
Not sure what or why, but issue has not occurred again.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matthew Hartman
Sent: Monday, April 16, 2007 6:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can someone please help me? Error message *No Disk*

 

Can someone please help me? When I try and compile or debug an 
application through Flex Builder 2, I get an error message with a title: 
Windows - No Disk and the message: There is no disk in the drive. 
Please insert a disk into the drive. I have tried un-installing FB2 and 
re-installing and still same error. I have also tried reformatting my 
hard drive, re-installing Windows and installing Flex Builder 2 and I 
get the same message. Can anyone please help me? I am running a Gateway 
FX510X, Windows XP SP2 on an Intel Core 2 duo 2.4 ghz with 2gig Ram. 
Please, please someone help.

 



[flexcoders] Re: updateTransform question on BubbleSeries

2007-04-17 Thread Sunil Bannur
--- In flexcoders@yahoogroups.com, simonjpalmer [EMAIL PROTECTED] 
wrote:

 anyone know what I have to alter to force a BubbleSeries to go through
 updateTransform?  
 
 I have a situation where a user action causes the radius of one of my
 bubbles to change.  I trap the change and I want to cause the bubble
 chart to redraw itself taking into account the new radius.  I can't do
 this through raw data binding because of other features of the bubbles
 on the chart.
 
 I have tried invalidating all sorts of properties but no luck.
 
 Any clues?


Simon, try the refresh method on the collection, i.e. the dataprovider

-Sunil



Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread Scott Barnes

Claus,

Yup, so that's why FLEX does have its unique offering vs SilverLight and
once developers  designers unsubscribe from the notion it's a Flash
Killer and do more of what you are doing (exploring it's upcoming release)
you'll decide on what you think it's merits are vs aren't. It's early days
yet, so wouldn't worry to much about it folks ;) just keep an open mind
should you want to take it for a test-run post MIX07 :)

WPF  SilverLight are going to have interesting prospects just like Apollo
and FLEX will have it's own, I think the two will do different things for
different people. Keep fingers in all barrels I'd say :)



On 17 Apr 2007 03:30:22 -0700, Claus Wahlers [EMAIL PROTECTED] wrote:



 If you read FUD crap, ignore it on both sides and just be opened to the
 idea that theres yet another channel of delivery in rich interactive
 applications.

Reading through the Silverlight docs, XAML looks to me like some weird
kind of microsoftified SVG, spiced up with MP3 and WM codecs. I'm still
searching but so far i couldn't find anything close to what Flex offers
(what i found are some barely working and butt ugly component
experiments). I'd guess that Silverlight will get some video market
share, but it has a long way to go to enter the RIA market. My 2 centavos.

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/






--
Regards,
Scott Barnes
http://www.mossyblog.com


[flexcoders] Re: Flex CS3 style Icon

2007-04-17 Thread scalenine
You mean like what's posted here:

http://www.joshbuhler.com/2007/04/04/flex-cs3-icon/

Juan
scalenine.com

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

 Is there a patch to 201 to update the icon to the cs3 style icon?
 
 
 Regards,
 
 Bjorn Schultheiss
 Senior Developer
 
 Personalised Communication Power
 
 Level 2, 31 Coventry St.
 South Melbourne 3205,
 VIC Australia
 
 T:  +61 3 9674 7400
 F:  +61 3 9645 9160
 W:  http://www.qdc.net.au
 
 ((This transmission is confidential and intended solely  
 for the person or organization to whom it is addressed. It may  
 contain privileged and confidential information. If you are not the  
 intended recipient, you should not copy, distribute or take any  
 action in reliance on it. If you believe you received this  
 transmission in error, please notify the sender.---))





[flexcoders] scrolling TileList and fullScreen

2007-04-17 Thread luckingandrew
Hi all,

(my first post to flexcoders)

I've built a pretty simple piece with a TileList that renders a set of
thumbnail photos. I'm finding that when the TileList has a scrollbar
and I toggle the stage.displayState to FULL_SCREEN and then back to
NORMAL any attempts to scroll the TileList will generate errors.

Something I'm doing wrong? Is there a way around this?


Here's a copy and paste of an error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child
of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()
at mx.core::UIComponent/removeChild()
at
mx.controls.listClasses::TileBase/mx.controls.listClasses:TileBase::scrollVertically()
at
mx.controls.listClasses::TileBase/mx.controls.listClasses:TileBase::scrollHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at
mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::dispatchScrollEvent()
at mx.controls.scrollClasses::ScrollThumb/::mouseMoveHandler()


Thanks,
A.





[flexcoders] Re: Flex crashes if no sound card present

2007-04-17 Thread Doug Lowder
Have you seen this thread?

http://tech.groups.yahoo.com/group/flexcoders/message/66211

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

 This is a serious Flex bug! I run a Flex application on a corporate 
 computer that doesn't have a sound card and the application crashed. 
 Using Flash player debugging version I realized that the problem was 
 in playing sound.





Re: [flexcoders] Overwrite Skin to NULL

2007-04-17 Thread Doug McCune

How about setting it back to what it was by default? Try

.panel {
borderSkin: ClassReference(mx.skins.halo.HaloBorder);
border-alpha: 1;
border-color: #ff;
}



On 17 Apr 2007 07:58:18 -0700, Devin [EMAIL PROTECTED] wrote:


  I've noticed if you put a skin in place then you can't create another
style for specific changes. Is there a way to overwrite a skin style
to a null value or something to get rid of it in another style? For
example:

this is my panel style
Panel
{

closeButtonDisabledSkin: Embed
(source=flex_skins.swf,symbol=Panel_closeButtonDisabledSkin);
closeButtonDownSkin: Embed
(source=flex_skins.swf,symbol=Panel_closeButtonDownSkin);
closeButtonOverSkin: Embed
(source=flex_skins.swf,symbol=Panel_closeButtonOverSkin);
closeButtonUpSkin: Embed
(source=flex_skins.swf,symbol=Panel_closeButtonUpSkin);
borderSkin: Embed(source=flex_skins.swf,
symbol=Panel_borderSkin);
titleBackgroundSkin: Embed(source=empty.swf,
symbol=Panel_titleBackgroundSkin);
borderThicknessLeft: 10;
borderThicknessRight: 11;
borderThicknessTop: 0;
borderThicknessBottom: 3;
headerHeight: 30;
}

I want a few of my panels to have white backgrounds so i use this
style.

.panel {
border-alpha: 1;
border-color: #ff;
}

Because I initiated the skin the .panel doesn't work. Is there a way
to say set the skin style to null so I can get the .panel style to
work?

such as

.panel {
borderSkin: NULL (blank it out):
border-alpha: 1;
border-color: #ff;
}





Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread Scott Barnes

I'm so sad, I remember Flash 3... I think i was toying with Flash path or
VRML... glad I went Flash..




On 17 Apr 2007 05:56:49 -0700, Ralph Hauwert [EMAIL PROTECTED] wrote:


  I'm amazed no-one mentioned scripting on this list yet. Silverlight
relies on the browser's JS engine for scripting. Basically, the XAML subset
implement Silverlight handles Layout, and animation, while the browser's
javascript engine actually provides for the scripting. IMHO, that's what we
did with Flash 3. Although admittedly Flash 3 didn't event back.

Ralph.

On 17 Apr 2007 04:34:08 -0700, Scott Barnes [EMAIL PROTECTED]
wrote:

Claus,

 Yup, so that's why FLEX does have its unique offering vs SilverLight and
 once developers  designers unsubscribe from the notion it's a Flash
 Killer and do more of what you are doing (exploring it's upcoming release)
 you'll decide on what you think it's merits are vs aren't. It's early days
 yet, so wouldn't worry to much about it folks ;) just keep an open mind
 should you want to take it for a test-run post MIX07 :)

 WPF  SilverLight are going to have interesting prospects just like
 Apollo and FLEX will have it's own, I think the two will do different things
 for different people. Keep fingers in all barrels I'd say :)



 On 17 Apr 2007 03:30:22 -0700, Claus Wahlers  [EMAIL PROTECTED]
 wrote:
 
 
   If you read FUD crap, ignore it on both sides and just be opened to
  the
   idea that theres yet another channel of delivery in rich interactive
 
   applications.
 
  Reading through the Silverlight docs, XAML looks to me like some weird
 
  kind of microsoftified SVG, spiced up with MP3 and WM codecs. I'm
  still
  searching but so far i couldn't find anything close to what Flex
  offers
  (what i found are some barely working and butt ugly component
  experiments). I'd guess that Silverlight will get some video market
  share, but it has a long way to go to enter the RIA market. My 2
  centavos.
 
  Cheers,
  Claus.
 
  --
  claus wahlers
  côdeazur brasil
  http://codeazur.com.br/
  http://wahlers.com.br/claus/blog/
 



 --
 Regards,
 Scott Barnes
 http://www.mossyblog.com




--
Ralph Hauwert







--
Regards,
Scott Barnes
http://www.mossyblog.com


Re: [flexcoders] Re: Versioning swf files for bug reporting

2007-04-17 Thread Johannes Nel

yes, svn does increment revision numbers. he asked for a good
practiceregarding building and incrementing build numbers. now from my
experience
working in large teams i have noticed that centralised builds work better
for versioning (due to obvious problems that arrises when each developer
increments a build number) and i recomend using something like cruisecontrol
(which you use with your svn (for example)) to manage your builds. the great
advantage that cruise control gives you is that its build already, free and
you can use it to display numbered builds to who ever needs to see the
application as you are developing. you seem very cynical of something like
cuise control, and i think your reasoning stems from the fact that you have
not used it yourself. i would honestly recomend anybody to give it a twirl.
my build process
-builds my swc's
-builds my application
-creates my docs (please adobe get the asdoc tool to run under *nix)
- versions my builds (using the cruise control version number)
- builds my unit tests
-run my unit tests
-notify developers when something broken is commited
i am even adjusting it now to create mx:application wrappers for my swc's
using fabridge

this i do without having deployed this sollution or my build script to
anybody else working in the team. they commit in svn and wham, there is a
build, numbered and visible for everyone involved in the project.

this is a practise that several people i have spoken too at adobe consulting
recomend as well.

spend some time to save a lot of time, is that not a core mantra for all
developers
:-/
my 2 cents.
johan


On 16 Apr 2007 06:50:32 -0700, Tom Chiverton [EMAIL PROTECTED]
wrote:


On Monday 16 Apr 2007, Johannes Nel wrote:
 a poroper continues integration system provides a build nuimber for you
 when you use  cruisecontrol for example

So does (for instance) SVN.
This doesn't help getting said number to display on screen in the Flex app
though.

--
Tom Chiverton
Helping to assertively entrench market-driven architectures
on: http://thefalken.livejournal.com



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 St James's Court Brown Street Manchester M2 2JF.  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 Law Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







--
j:pn
http://www.lennel.org


RE: [flexcoders] Re: Versioning swf files for bug reporting

2007-04-17 Thread Peter Farland

These seem like general SCM questions to me.

Surely you can get cruise control to call a command line statement?
There are command line tools to compile MXML or AS3 based applications
to SWFs or to create component libraries as SWCs. Couldn't cruise
control also call an ant task if you've already got those set up?

Why don't you just define a public static variable on a class with build
number information and update it before building your SWF from the
command line?




 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Tuesday, April 17, 2007 9:37 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Versioning swf files for bug reporting

On Tuesday 17 Apr 2007, Johannes Nel wrote:
 cruisecontrol (which you use with your svn (for example)) to manage 
 your builds. the great advantage that cruise control gives you is that

 its build already,

I don't see Flex or ActionScript support in it.
And I never had much luck with ANT scripts for Flex from Eclipse either.

 you seem very cynical
 of something like cuise control, and i think your reasoning stems from

 the fact that you have not used it yourself.

Actually, I have.
It just doesn't solve the problem of baking a build number in to the
application's GUI. Does it ?

 build, numbered and visible for everyone involved in the project.

Where does the build number appear in the application ?

--
Tom Chiverton
Helping to collaboratively implement integrated e-services
on: http://thefalken.livejournal.com



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 St James's Court Brown Street Manchester M2 2JF.  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 Law Society.

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
8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





Re: [flexcoders] expand entire tree?

2007-04-17 Thread haiqing
here is another option:

 public function openTree():void {
  var obj:Object = new Object();
  obj = dirTree.dataProvider.getItemAt(0);
  dirTree.expandItem(obj, true);
}
#dirTree---tree id.

hq


- Original Message 
From: Christophe Herreman [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, April 16, 2007 1:10:59 PM
Subject: Re: [flexcoders] expand entire tree?

Hi Joshua,

try this:

var dp:XML = tree.dataProvider[ 0];
tree.openItems = dp..node;

Note that this code works for a dataprovider with a root node and with 
node as the nodenames.

regards,
Christophe

joshua gatcke schreef:

 Does anyone know how to expand a tree on initialize? I have tried the 
 following with no avail: 


 private function setPageListTree( ):void{
 pageListTree. openItems( pageListTree. dataProvider. getItemAt( 1));
 pageListTree. expandItem( pageListTree. dataProvider. children( ), true);
 pageListTree. expandChildrenOf (pageListTree, true);
 }

 Thanks in advance, 



 Joshua Gatcke - Director
 *Visua Design Group Inc.*
 Cell:(403) 815-3265
 [EMAIL PROTECTED] ca mailto:[EMAIL PROTECTED] ca




 




RE: [flexcoders] Problem with loading module -- mx.core::LayoutContainer could not be found.

2007-04-17 Thread Alex Harui
Could you be linking the main app against a 2.0 framework.swc?  You need
to link against 2.0.1.
 
Also, normally you -load-externs against classes in the main app and not
from some package.
 
-Alex



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bjorn -
Sent: Monday, April 16, 2007 1:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with loading module --
mx.core::LayoutContainer could not be found.



Hi guys,

I've got a simple text module which looks like this:

?xml version=1.0 encoding=utf-8?
mx:Module xmlns:mx= http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  layout=absolute
mx:Script
![CDATA[

import com.myapp.MyEventDispatcher;
import com.myapp.MyTestEvent ;

public function callSomethingInMainApp(e:Event): void
{
var event:MyTestEvent= new MyTestEvent();
MyEventDispatcher.getInstance().dispatchEvent( event );

}
]]
/mx:Script
 mx:HBox
  mx:DateChooser x=10 y=10/  
 /mx:HBox

/mx:Module

I compile it with the -load-externs option to not include the classes I
use from  com.myapp

However, when I try to load the module from my main application, this
error is thrown:
 
VerifyError: Error #1014: Class mx.core::LayoutContainer could not be
found.
 at flash.display::MovieClip/nextFrame()
 at mx.core::FlexModuleFactory/::deferredNextFrame()
 at mx.core::FlexModuleFactory/::update ()
 at mx.core::FlexModuleFactory/::moduleCompleteHandler()
 
 
Anyone know what might cause this? Googling the error didn't help me
much ...

-- 


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

 


[flexcoders] probably noob question, about custom lists

2007-04-17 Thread flashcrow2000
Hello everybody,

I searched through all the posts but i couln't find anything which 
helps me so here goes:

I need to implement a list which has a custom element on each row, 
containing an icon, a label, a delete button and of course, data (not 
visible). I implemented an item object containing these elements and 
in my main application I have a list and I try adding two items via 
list.addChild(item) (item is initialized before).

The list adds the items, but they show up on top of eachother. If I 
try using addChildAt(item, 0) and addChildAt(item, 1) the items don't 
show at all.

Again, I realise this is a noob question, and probably the answer is 
right there before me, but at the moment, I don't really see it.

Thanks for your help



Re: [flexcoders] Bug in Flex while setting DataGridColumn.width programatically?

2007-04-17 Thread Tom Chiverton
On Tuesday 17 Apr 2007, manfred.maierhofer wrote:
 Hey guys,
 I guess there is a bug in Flex code. When setting the

There were lots of DataGrid changes in 2.0.1, and a major bugfix in the first 
hotfix.
What version are you on ?

-- 
Tom Chiverton
Helping to completely deliver granular appliances
on: http://thefalken.livejournal.com



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread Tom Chiverton
On Tuesday 17 Apr 2007, driverdude wrote:
 I'll pay much more serious attention if they do a good job with .NET
 integration.  Flex + Coldfusion + SQL Server  Silverlight + SQL Server
 with no middleware application server.

.. except the one MS would have to bundle for free with SQL server ?
Can you say 'anti-trust' ?

 in their direction, or announcing something Apollo-like 

WPF is Apollo-like.

-- 
Tom Chiverton
Helping to globally reintermediate industry-wide m-commerce
on: http://thefalken.livejournal.com



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] FlexBuilder bug?

2007-04-17 Thread Shaun
I've been having a problem with FB lately and am wondering if anyone 
else has run into this issue.

Occassionally, FB seems to stop using my latest file changes when 
compiling.  I try cleaning, making additional changes, etc. to no 
avail.  Eventually, something clicks and everything builds as it should 
again, but I haven't found any rhyme to it yet.  When it is happening, 
I can step through the code and verify that the lines being stepped 
through don't correspond to what is on the screen.

This is happening with two different projects I have - both involve 
modules and libraries, one has an RSL, the other doesn't.

Has anyone else experienced this?  Solved it?

Thanks,
Shaun



Re: [flexcoders] Problem with loading module -- mx.core::LayoutContainer could not be found.

2007-04-17 Thread bjorn -

Yeah, it seems the file system is pretty tricky. I can't load from it even
though I have ...

this in my application:

  public function init():void
  {
  Security.allowDomain(*);

  Security.loadPolicyFile(http://localhost/crossdomain.xml;);
  var request:URLRequest = new URLRequest(
http://localhost/crossdomain.xml;);
  var loader:URLLoader = new URLLoader();
  loader.load(request);
   }

this in my module (gets called by initialize)

 public function initMod(e:Event):void {
   Security.allowDomain(*);
  }

.. and this crossdomain.xml

?xml version=1.0?
!DOCTYPE cross-domain-policy SYSTEM 
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
cross-domain-policy
 allow-access-from domain=* to-ports=*/
/cross-domain-policy


.. still no luck.

Relative url's can't be used, as I need to load modules through the gateway
server. Of course, I can publish to and run my app from the server everytime
I compile, but it slows down the development process.

Best regards,
Bjørn



On 17 Apr 2007 05:54:37 -0700, Alex Harui [EMAIL PROTECTED] wrote:


   I think it is because localhost is not the same domain as the file
system, and you can't load modules across domains without import loading
them.  You might be better off loading via relative urls instead of
absolute.

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *bjorn -
*Sent:* Tuesday, April 17, 2007 12:32 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Problem with loading module --
mx.core::LayoutContainer could not be found.



 I don't have a crossdomain file, didn't think I needed one as it was all
on localhost .. I get the problem when I run my project in Flex hitting
ctrl-F11 since it will load my app directly (e.g.
file:///C:/dev/FlexWorkspace/MyApp/build/MyApp-debug.html ) - while trying
to load the module from a server (localhost). I don't see why it should be a
problem though.

As for the security error (here's another one for Google) - it's: SWF is
not a loadable module ...

The event:

e = mx.events.ModuleEvent (@414ad61)
 bubbles = false
 bytesLoaded = 0
 bytesTotal = 0
 cancelable = false
 currentTarget = ModuleManager.as$20.ModuleInfoProxy (@3ecec81)
 errorText = SWF is not a loadable module
 eventPhase = 2
 module = ModuleManager.as$20.ModuleInfoProxy (@3ecec81)
 target = ModuleManager.as$20.ModuleInfoProxy (@3ecec81)
 type = error


Best regards,
Bjørn

On 16 Apr 2007 18:03:09 -0700, Robert Cadena [EMAIL PROTECTED]
wrote:


 Glad I could help. Just cause I'm curious:
 - do you have a crossdomain at the root of your localhost server?
 - is your parent app not loaded from the same domain (localhost)?
 - you are doing this with the swf player, maybe on the browser or by
 running the swf directly, not in apollo, right?

 you might want to add eventListeners to the moduleinfo just to see what
 the exact security error is. Put a breakpoing on the function that
 handles SecurityError and see what the error message is.

 best of luck.

 /r
 http://www.searchcoders.com/flex/search/module
 http://www.laflex.org/ - Los Angeles Flex Users Group

 bjorn - wrote:
  Robert, thanks for leading me onto the correct path :-) The problem
 has to
  do with security. If I set the module url to a local path (c:\..)
  instead of
  localhost, I'm able to load it.
 
  Strange error message for security issues, don't you think? Well, now
 it's
  soon on Google at the least.
 
  - Bjørn
 
 
  On 16 Apr 2007 10:10:50 -0700, Robert Cadena  [EMAIL 
PROTECTED]robert%40searchcoders.com
 
  wrote:
 
  Hi Bjorn,
 
  when you load the module, what ApplicationDomain are you passing to
 the
  the IModuleInfo? and how do you construct it if you are passing it as
 a
  param?
 
  /r
  http://www.searchcoders.com/flex/search/module
  http://www.laflex.org/ - Los Angeles Flex Users Group
 
  bjorn - wrote:
   Thanks for the tip .. I did try that already though, and it didn't
 make
  any




--


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] Flex crashes if no sound card present

2007-04-17 Thread Peter Farland
Are you trying to play just sound, or do you have a video that happens
to have sound?
 
Have you reported this as an issue to the Flash Player team with a
reproducible case?
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Danko Kozar
Sent: Tuesday, April 17, 2007 2:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex crashes if no sound card present



This is a serious Flex bug! I run a Flex application on a corporate 
computer that doesn't have a sound card and the application crashed. 
Using Flash player debugging version I realized that the problem was 
in playing sound.



 


Re: [flexcoders] Re: Versioning swf files for bug reporting

2007-04-17 Thread Daniel Grace
I expected someone else to have chimed in with a full-fledged code
example by now. Since nobody did, I will offer my point in a direction
I have used before, without any actual code.

The last time I did this it was with a big PHP project, with multiple
files. The way that I did it was keep a variable in the main file (the
Flex equivilent would be your main mxml file). There is a way, at
least with subversion and cvs, to change at checkin time, a variable
to the version number. Something like:

private var versionNumber: String = '$Version$';

It has been a while, so that is going ot need to be looked up and
corrected, probably.

At initialization, look at Application.application.maxVersion, check
against your own version number and if you're larger, replace
Application.application.maxVersion with your own version string. After
everything is initialized, the version number at
Application.application.maxVersion is the last checkin number of a
file that mattered.

You can also keep a hash around as well, with a key that identifies
the particular file and at runtime print a list of the versions of
each file.

Yes, I would like an easier way, but this requires no explicit support
from the language and should work virtually anywhere where you can
extract a raw version number from the string that subversion/cvs gives
you.

Daniel

On 17 Apr 2007 08:56:34 -0700, Tom Chiverton
[EMAIL PROTECTED] wrote:
 On Tuesday 17 Apr 2007, bhaq1972 wrote:
  we actually have a variable like this and my poor colleague has to
  always update it before being released to our testers.
 
  It would make his life so much easier if something was built into
  flexbuilder.

 Ditto. Which was the original question.
 If Cruise Control has this, it's very well hidden.

 I suppose your CC build script could run sed over the source or something but
 that's fairly yuck too.

 --
 Tom Chiverton
 Helping to seamlessly architect distributed web-readiness
 on: http://thefalken.livejournal.com

 

 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 
 St James's Court Brown Street Manchester M2 2JF.  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 Law Society.

 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 8008.

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



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links






[flexcoders] HTTPService Security Sandbox woes

2007-04-17 Thread Battershall, Jeff
I'm tearing my hair out. I'm trying to programatically invoke an
HTTPService (where the url is in another domain/sandbox) without
server-side proxy (no FDS) and I've hit the proverbial wall.

I have a crossdomain.xml sitting in the webroot of the other domain
which explicity allows the originating domain, but no dice. Get the
standard Security Sandbox error no matter what I do.

Any illumination appreciated.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


RE: [flexcoders] Overwrite Skin to NULL

2007-04-17 Thread Devin White
PERFECT!  Your the man.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: Tuesday, April 17, 2007 11:03 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Overwrite Skin to NULL

 

How about setting it back to what it was by default? Try

 

.panel {

borderSkin: ClassReference(mx.skins.halo.HaloBorder);
border-alpha: 1;
border-color: #ff;

}


 

On 17 Apr 2007 07:58:18 -0700, Devin [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

I've noticed if you put a skin in place then you can't create another 
style for specific changes. Is there a way to overwrite a skin style 
to a null value or something to get rid of it in another style? For 
example:

this is my panel style
Panel
{

closeButtonDisabledSkin: Embed
(source=flex_skins.swf,symbol=Panel_closeButtonDisabledSkin);
closeButtonDownSkin: Embed
(source=flex_skins.swf,symbol=Panel_closeButtonDownSkin); 
closeButtonOverSkin: Embed
(source=flex_skins.swf,symbol=Panel_closeButtonOverSkin);
closeButtonUpSkin: Embed
(source=flex_skins.swf,symbol=Panel_closeButtonUpSkin); 
borderSkin: Embed(source=flex_skins.swf, 
symbol=Panel_borderSkin);
titleBackgroundSkin: Embed(source=empty.swf, 
symbol=Panel_titleBackgroundSkin);
borderThicknessLeft: 10; 
borderThicknessRight: 11;
borderThicknessTop: 0;
borderThicknessBottom: 3;
headerHeight: 30;
}

I want a few of my panels to have white backgrounds so i use this 
style.

.panel { 
border-alpha: 1; 
border-color: #ff;
} 

Because I initiated the skin the .panel doesn't work. Is there a way 
to say set the skin style to null so I can get the .panel style to 
work?

such as 

.panel { 
borderSkin: NULL (blank it out):
border-alpha: 1;
border-color: #ff;
}

 

 



RE: [flexcoders] probably noob question, about custom lists

2007-04-17 Thread Alex Harui
Lists are datadriven.  You won't call addChild on them.  You'll likely
create a custom itemRenderer and have it renderer data in a
dataProvider/collection.
 
Read up on itemRenderer and collections and look at the list examples in
the doc.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flashcrow2000
Sent: Tuesday, April 17, 2007 3:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] probably noob question, about custom lists



Hello everybody,

I searched through all the posts but i couln't find anything which 
helps me so here goes:

I need to implement a list which has a custom element on each row, 
containing an icon, a label, a delete button and of course, data (not 
visible). I implemented an item object containing these elements and 
in my main application I have a list and I try adding two items via 
list.addChild(item) (item is initialized before).

The list adds the items, but they show up on top of eachother. If I 
try using addChildAt(item, 0) and addChildAt(item, 1) the items don't 
show at all.

Again, I realise this is a noob question, and probably the answer is 
right there before me, but at the moment, I don't really see it.

Thanks for your help



 


RE: [flexcoders] oop constructor

2007-04-17 Thread Peter Farland
A constructor is a special function defined on a class that must have
the same name as the class and is called when creating a new instance of
that class. Like any old function, a constructor can take zero or more
arguments. If present, constructor arguments represent information that
is required to setup an instance of that class's initial state. In AS3,
the constructor must be public and thus anyone that has access to the
class definition can construct an new instance of that class.
 
// Construct a new Book instance and set it's title.
var book:Book = new Book(The Hobbit);
 
See the docs for the AS3 new operator:
 
http://livedocs.adobe.com/flex/2/langref/operators.html#new
 




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Chad Gray
Sent: Tuesday, April 17, 2007 11:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] oop constructor



I am walking through the book Adobe Flex 2 and it is showing how to
build your own AS Class file.

It mentions constructor, but does not really explain what a constructor
is.

Can someone give a description of a constructor?

Also is there any template/reference for a Class file? Like a basic
skeleton of how a Class is commonly setup? 

Thanks!
Chad



 


RE: [flexcoders] HTTPService Security Sandbox woes

2007-04-17 Thread Peter Farland
Remember that you must load your SWF via HTTPS if you want to access
data via HTTPS, such as HTTPService.
 
Have you tried your SWF in both MSIE and Firefox?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Tuesday, April 17, 2007 1:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTPService Security Sandbox woes



I'm tearing my hair out. I'm trying to programatically invoke an
HTTPService (where the url is in another domain/sandbox) without
server-side proxy (no FDS) and I've hit the proverbial wall.

I have a crossdomain.xml sitting in the webroot of the other domain
which explicity allows the originating domain, but no dice. Get the
standard Security Sandbox error no matter what I do.

Any illumination appreciated.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com 
(609) 520-5637 (p)
(484) 477-9900 (c)


 


RE: [flexcoders] Re: -extern compiler option for AS3 project

2007-04-17 Thread Alex Harui
I think it should just be -externs=AlertPuller.  What does
AlertPuller.as look like?  What does the link-report reference that you
want to get rid of look like?
 
Is there any reason you have to also define that class in the childSWF?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pet.theory
Sent: Monday, April 16, 2007 8:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: -extern compiler option for AS3 project



Thanks Alex,

Tried these, none worked (the class that embeds the pic is AlertPuller);

-externs
/Users/Matt/Documents/Workspace/Pet/classes/control/AlertPuller.as
-externs /Users/Matt/Documents/Workspace/Pet/classes/control/AlertPuller
-externs=/Users/Matt/Documents/Workspace/Pet/classes/control/AlertPuller
.as
-externs=/Users/Matt/Documents/Workspace/Pet/classes/control/AlertPuller

And by none worked I mean that the flabbly 8k that is embedded in
AlertPuller keeps showing up in childSWF, compiler diet or no.

That makes sense to me, since AlertPuller is compiled into parentSWF
already, and -load-externs does not knock out the 8k in the first place.


Are you sure that this is possible? That we can use an exclude option
for images embedded in classes? Perhaps I need to directly embed the
image in parentSWF, then use...

-externs parentSWFApp?

But I think I'm missing something here.

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

 Are you sure that it isn't that the grandChildSWF didn't see classes
in
 childSWF? Setting a custom loaderContext might help. You might be
 having applicationDomain issues.
 
 -externs only works on classes, not on files like sharedImage.jpg.
 Unless you embed sharedImage.jpg in childSWF it shouldn't be in there.
 -extern PictureInThisClass should work.
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of pet.theory
 Sent: Monday, April 16, 2007 3:26 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] -extern compiler option for AS3 project
 
 
 
 Hi,
 
 I'm exploring the compiler options for an AS3 project in which
 parentSWF loads childSWF.
 
 for compiling childSWF:
 
 -load-externs=parentSWFClasses.xml (the link report) applied to
 childSWF works great (with this exception: a grandchildSWF loaded into
 childSWF does not seem to inherit the classes that childSWF inherits
 from parentSWF).
 
 -externs=sharedImage.jpg does not work AT ALL. Here I need to exclude
 a picture embedded in parentSWF from compiling into childSWF, and
 bulking it up.
 
 The picture needs to be embedded in parentSWF, so loading/caching it
 is not an optimal solution here.
 
 One thing: I actually have the picture embedded in a class
 (PictureInThisClass.as) that both parentSWF and childSWF use.
 
 Am I using the right command and the right syntax to exclude an
 embedded picture from being compiled?
 
 I'm a lowly actionscripter, and not a flexcoder yet, so if I'm
 off-topic tell me so.
 
 Thanks




 


Re: [flexcoders] Help! How can I display different colors in one BarSeries?

2007-04-17 Thread haiqing
Can somebody help here? I want verticalAxis display different colors for a 
single BarSeries. When I tried to use setStyle it does not work. Is it doable?

Thanks,
hq.

- Original Message 
From: haiqing7 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, April 15, 2007 9:59:53 AM
Subject: [flexcoders] Help! How can I display different colors for one 
BarSeries?

here is part of my sample code and it can only display one color for 
one BarSeries:

var ls:BarSeries = new BarSeries();
var colorArray:Array = [0x299C39, 0xFF3118];
var st:String;
if(st == pass){
ls.setStyle( fill,colorArra y[0]);
}else{
ls.setStyle( fill,colorArra y[1]);
}
currentSeries. push(ls);

thanks in advance.
hq.




[flexcoders] Menubar doesnt appear properly ! Is it a bug??

2007-04-17 Thread ravi kumar gummadi

Hi ,

I have menubar added to the application control bar. Previously I placed at the 
top of the stage and it used to work fine..with the menubar items wiping down.

Now I moved the control bar to the bottom of stage (due to some design 
requirements) and I am facing a weird problem. Even now the menubar items are 
wiping down ,out of the scope of the screen ,when I first move over the mouse 
on the menu item. But if I move over it the next time, it is showing fine by 
poppin the menuitem to its top.

So is it a bug in Menubar.! Or I am doing anything wrong...Pleae help

and btw...wat does menuBarItemRenderer property do ? I read the documentation 
but didnt a get a clue of it.

peace,
Ravi (+91-9989252777)

What is right is right, even if no one is doing it. What is wrong is wrong, 
even if everyone is doing it.



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: [flexcoders] Datagrid selection enabled only on first column

2007-04-17 Thread Alex Harui
Don't know of any existing samples.  I think it would look something
like:
 
public class ChuaDataGrid extends DataGrid
{
 
 override protected function mouseDownHandler(event:MouseEvent):void
 {
var r:IListItemRenderer;
var s:Sprite;
 
// find out if we hit the sort arrow
s = Sprite(listContent.getChildByName(sortArrowHitArea));
 
if (event.target != s)
  {
r = mouseEventToItemRenderer(event);
 
   if (listItems.length)
   {
 
// find out if we clicked on a something other than first column
var n:int = listItems.length;
for (var i:int = 0; i  n; i++)
{
 // if we did click on a something other than first column, bail
 if (r != listItems[i][0])
 {
  return;
 }
}
   }
  }
  super.mouseDownHandler(event);
 }



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Christian Chua
Sent: Monday, April 16, 2007 6:02 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Datagrid selection enabled only on first
column



Alex,
 
Thanks for your advice.
 
Any chance you can point me to a website with .mxml files that implement
this idea ?
 
Thanks,
Christian
 
 
 

- Original Message - 
From: Alex Harui mailto:[EMAIL PROTECTED]  
To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  
Sent: Monday, April 16, 2007 5:51 PM
Subject: RE: [flexcoders] Datagrid selection enabled only on
first column



There is no flag or option.  You can subclass, override
mouseDownHandler and bail out if something you don't like got pressed.



From: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  [mailto:[EMAIL PROTECTED]
On Behalf Of Christian Chua
Sent: Monday, April 16, 2007 4:20 PM
To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] Datagrid selection enabled only on first
column



Hello.

Is there a way to tell the DataGrid component to trigger
selection only on 
the first column ?
The default behavior is that clicking anywhere on the row
selects the row.

Thanks,
Christian 




 


RE: [flexcoders] Recursive Reloading of an image...

2007-04-17 Thread Alex Harui
I don't see a retry in the code.  Maybe the source property is being
changed in someway?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Kellogg
Sent: Tuesday, April 17, 2007 4:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Recursive Reloading of an image...



I have a question...

I have a few images in my app that have their source as a GIF on our
site.  Today, I was testing, and the design guy had removed the art for
revisions.  I was surprised to see that Flex tried repeatedly to load
the image instead of just marking the image link as broken.

Is there anything I need to specifically do to let Flex know that I want
it to just PUNT if an image is missing? Granted, the issue TODAY is
merely website revision, but I'd hate to have my client see this
activity in case of DNS issues, etc.

TIA

Steve

 


[flexcoders] Re: Help! How can I display different colors in one BarSeries?

2007-04-17 Thread Oscar Cortes





See if this entry that I posted while ago on the Flex cookbook helps
you...

http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails\
postId=2021productId=2
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetail\
spostId=2021productId=2

  http://holaflex.ocortes.com


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

 Can somebody help here? I want verticalAxis display different colors
for a single BarSeries. When I tried to use setStyle it does not work.
Is it doable?

 Thanks,
 hq.

 - Original Message 
 From: haiqing7 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Sunday, April 15, 2007 9:59:53 AM
 Subject: [flexcoders] Help! How can I display different colors for one
BarSeries?

 here is part of my sample code and it can only display one color for
 one BarSeries:

 var ls:BarSeries = new BarSeries();
 var colorArray:Array = [0x299C39, 0xFF3118];
 var st:String;
 if(st == pass){
 ls.setStyle( fill,colorArra y[0]);
 }else{
 ls.setStyle( fill,colorArra y[1]);
 }
 currentSeries. push(ls);

 thanks in advance.
 hq.





[flexcoders] RSL Caching Problem

2007-04-17 Thread Shaun
So I have an RSL that I link via a URL.  It has apparently been cached 
by my ISP or some other cache server, so that now, when I try to debug 
some changes I've made to it, the new RSL file is never requested - I 
only ever get the old one.

Is there some way to resolve this?  Is there a way to force a cache 
server to get a new version of my RSL?  Am I just missing something, 
and this is not my problem?

Thanks for any help,
shaun



[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread softwarecat
If you go and see the sample of the technology on the Silverlight 
website, it is not as smooth and elegent as the ones Ely has created.  
I think it will have it's audience, but IMHO I think the movement of 
the community and the designer involvement is going to make Flex the 
king.  I agree, marketing and brute force are a challenge to Flex only 
by company name and reputation with the masses.  

Still clumsy, but I honestly have not worked within WPF to know, only 
seen some results.  My 2 Cents!


--- In flexcoders@yahoogroups.com, Paul J DeCoursey [EMAIL PROTECTED] wrote:

 All I have to say is it's Microsoft, if they kill anything it's not 
on 
 the merits of their product... it's brute force.  This is not a 
threat 
 to Flash/Flex by any means.  Microsoft will never be able to create a 
 truly cross platform product.  All of their past efforts have been 
 clumsy at best, even on their own platform.
 
 Paul





[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-17 Thread Shaun
I would have to believe that WPF will win over Apollo for 
backoffice/intranet software for the following reasons:

1) Ability to leverage .NET developer pool
2) Performance (I'm guessing WPF will be faster due to the CLR)
3) Vastly (sorry, Adobe) superior IDE/developer tools (at least at 
this point - I'm hoping FB3 really steps it up)
4) Cross-platform is not important if you know all of your users will 
be running Windows

As far as public internet sites go, I can't fathom why anyone would 
go for Silverlight over Flash/Flex.  It's unproven, has 0 market 
share, is not truly cross-platform, and on and on...

Shaun

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

 If you go and see the sample of the technology on the Silverlight 
 website, it is not as smooth and elegent as the ones Ely has 
created.  
 I think it will have it's audience, but IMHO I think the movement 
of 
 the community and the designer involvement is going to make Flex 
the 
 king.  I agree, marketing and brute force are a challenge to Flex 
only 
 by company name and reputation with the masses.  
 
 Still clumsy, but I honestly have not worked within WPF to know, 
only 
 seen some results.  My 2 Cents!
 
 
 --- In flexcoders@yahoogroups.com, Paul J DeCoursey paul@ wrote:
 
  All I have to say is it's Microsoft, if they kill anything it's 
not 
 on 
  the merits of their product... it's brute force.  This is not a 
 threat 
  to Flash/Flex by any means.  Microsoft will never be able to 
create a 
  truly cross platform product.  All of their past efforts have 
been 
  clumsy at best, even on their own platform.
  
  Paul
 





[flexcoders] Coldfusion Path problems

2007-04-17 Thread Russell Sprague
I am having problems with cfc paths when testing any Flex app that uses 
remoting and the cfc with absolute paths to themselves.
It throws an error that it can not find the cfc.
so take this line of code from Application.cfc in the Phones example app:
cfset application.phoneDAO = createObject(component, 
com.benorama.phones.model.PhoneDAO).init() /
It will tell me it can not find the PhoneDAO component.
If I make the path relative
cfset application.phoneDAO = createObject(component, 
PhoneDAO).init() /
it works.
This is a problem with any cfc that has an absolute path reference.
My Coldfusion dev box is separate from my workstation, so I thought this 
was a network issue, because if I upload the app to my production 
server,  it will run fine.  But even when I test the app locally on the 
Coldfusion dev box, it still throws the error.
This is really bugging me, because I am trying to learn Cairngorm and 
with coldfusion connections, and most of the examples have cfc's that 
use absolute paths.  Also any app that is created using the 
Flex/Coldfusion wizard also creates cfc's with absolute paths.
Any thoughts?
Russ


[flexcoders] ArrayElementType metadata tag in AS

2007-04-17 Thread moonusamy

In an AS file, why is this not flagged as an error since the array's
element type is declared to be Number while the code is initializing
it with String?

[ArrayElementType(Number)]
public var stateA:Array;

In some function...
stateA = ['Foo'];

Is the ArrayElementType metadata tag valid only when used in MXML? Is
there any way to enforce type safety when using Array and
ArrayCollection in AS?

Thanks
Vijay




Re: [flexcoders] Re: Help! How can I display different colors in one BarSeries?

2007-04-17 Thread haiqing
Great! That helps. Thank you very much, Oscar.


- Original Message 
From: Oscar Cortes [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 17, 2007 10:50:10 AM
Subject: [flexcoders] Re: Help! How can I display different colors in one 
BarSeries?

 
 
See if this entry that I posted while ago on the Flex cookbook helps you...
http://www.adobe. com/cfusion/ communityengine/ index.cfm? event=showdetail 
spostId=2021productId=2
 

--- In [EMAIL PROTECTED] ups.com, haiqing [EMAIL PROTECTED] wrote:

 Can somebody help here? I want verticalAxis display different colors for a 
 single BarSeries. When I tried to use setStyle it does not work. Is it 
 doable?
 
 Thanks,
 hq.
 
 - Original Message 
 From: haiqing7 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] ups.com
 Sent: Sunday, April 15, 2007 9:59:53 AM
 Subject: [flexcoders] Help! How can I display different colors for one 
 BarSeries?
 
 here is part of my sample code and it can only display one color for 
 one BarSeries:
 
 var ls:BarSeries = new BarSeries();
 var colorArray:Array = [0x299C39, 0xFF3118];
 var st:String;
 if(st == pass){
 ls.setStyle( fill,colorArra y[0]);
 }else{
 ls.setStyle( fill,colorArra y[1]);
 }
 currentSeries. push(ls);
 
 thanks in advance.
 hq.




[flexcoders] Re: TitleWindow, Borderskin, and the Move Effect

2007-04-17 Thread Paul Whitelock
I doubt if anyone is interested in this, but I have some additional
details that I'll record here just in case someone needs it someday.

It appears that if the content of a TitleWindow exceeds the boundaries
of the content area that the content area is filled with the
background color after the borderskin is drawn.

Forms sized at 100% seem to be very aggressive in taking up all
available space, so it's possible that using a Form sized at 100%
could cause the condition where the content area is filled with the
background color after the borderskin is drawn in some situations
(such as during a Move effect).

The solution appears to be to set the backgroundAlpha for the
TitleWindow to zero. This way if the background color fill is
triggered after the borderskin is drawn it will not wipe out the
content area background drawn by the borderskin.

Of course if the borderskin does not draw in the content area, then
this problem may never occur.

I'm not sure why PopUpManager.centerPopUp and/or the Move effect
triggers the background color fill because it doesn't in all cases.
Regardless, setting backgroundAlpha to zero seems to solve the problem
when it occurs.


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

 Well, I think I've solved one part of the problem and stumbled into
 another.
 
 I looks like PopUpManager.centerPopUp is causing the problem with the
 background color fill. I create the TitleWindow using
 PopUpManager.createPopUp and then right after that I call
 PopUpManager.centerPopUp. A bit later in the code is when I execute
 the Move animation.
 
 If I remove the call to PopUpManager.centerPopUp then the custom
 content background is drawn. If I leave centerPopUp in, then the
 content area is filled with the background color.
 
 The new problem is that the FormItem labels for the Form in the Window
  disappear when the Move animation is performed (the form fields are
 still there). Programming is fun, isn't it? :-)
 
 Paul
 
 
 --- In flexcoders@yahoogroups.com, Paul Whitelock news@ wrote:
 
  I have a TitleWindow that uses a BorderSkin (based on HaloBorder) to
  draw a custom background in the window's content area. The skin works
  fine until I try applying a Move effect to the TitleWindow.
  
  What happens is that when the move begins from offscreen top, the
  TitleWindow's content background is filled with the background color
  and the background generated by the BorderSkin is not displayed. Once
  the move has completed (the background color still fills the content
  area) if I display another TitleWindow that uses the same skin, the
  custom background is suddenly displayed in the TitleWindow that was
  moved (probably due to an invalidateDisplayList call).
  
  I tried changing the Move effect to a Zoom effect and the problem
  does not occur (the custom background is correctly displayed in the
  TitleWindow content area).
  
  I've put trace statements in the BorderSkin code and the custom
  content area background is being generated and drawn, so the only
  thing I can think of is that something is filling the content area of
  the TitleWindow with the background color AFTER the BorderSkin code
  executes.
  
  Anyone have any ideas about what might be happening and how to make it
  stop overwriting the content area background? Thanks!
 





Re: [flexcoders] Coming from Laszlo background - anyone know some migration tips?

2007-04-17 Thread Luis Eduardo


  hehe  sorry Tom, i was in a rush.
  let i try clarify something with code.
  here is a laszlo dataset  (something equivalent to flex HTTPService)

  dataset name=dsRQ type=http src=${'/calamb/Servlets/ServVeiculo'}
request=false querytype=POST/

  it already glue to its parent. With glue i mean it register 
already a lot of data events and all children share the datascope

  on my UI i need just to set an attribute datapath and the UI for 
itself catch a value when a valid node appear on the xpath.
  something like:

  edittext name=edtDescricao  
datapath=local:dsRQ:/root/request/Veiculo/@Descricao /

  where the edittext tag is, in flex, equivalent to mx:TextInput /

  there are also datapointers. These you can bind with some nodes of 
the data you want. They tell you when there are something you are 
interested.
  like:
datapointer name=dpRP xpath=local:dsRQ:/root/response/
  and now i am warned when the reponse node comes from the server, 
ready for handle it.


  of course, flex could do the same thing, but it will necessary some 
coding to create this kind of enviroment.


[]'s 

   - Luís Eduardo.

 

 

Tom Chiverton escreveu:

On Tuesday 17 Apr 2007, Luis Eduardo wrote:
  

  datapointers dont have equivalent in flex. U have to connect it by
hand. (edit.text = datareturned.text or something like that..)



Umm...
mx:Text id=edit text={ datareturned.text }/
?

  




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Where can I find a simple explanation on how to extend components?

2007-04-17 Thread hoffsm
I want to extend the rich text editor so that I can make the title 
editable.  

The goal is to set the subject of the message/note to the title of the 
text editor.  However, someone might like to change that.  It would be 
best if I could just double click on it and have it become editable.  
I would then want to submit the two values to update the message body 
and the message subject in the database.  

I know that I could simply put a text input control above the rich 
text editor and a button below.  however, I think it might look a lot 
nicer if it looked as it were a cohesive component. I've never done a 
custom compent before and in researching I haven't found anything that 
addresses this specific issue.





[flexcoders] SuperTabNavigator - Type Coercion failed:

2007-04-17 Thread Flexing . . .
When I try to load a Module as a child in SuperTabNavigator. I get  
following error. Any clues on how it can be resolved.




TypeError: Error #1034: Type Coercion failed: cannot convert  
mx.controls::[EMAIL PROTECTED] to mx.controls.ButtonBar.
	at mx.skins.halo::ButtonBarButtonSkin/ 
mx.skins.halo:ButtonBarButtonSkin::updateDisplayList()

at mx.skins::ProgrammaticSkin/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()



  1   2   >