RE: [flexcoders] How can I tell the swf file name within my application ?

2007-05-02 Thread Gordon Smith
Also, getQualifiedClassName(Application.application) will give you the
name of your application class.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Flexing...
Sent: Wednesday, May 02, 2007 11:28 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How can I tell the swf file name within my
application ?



use Application.application.url 




On May 3, 2007, at 11:52 AM, helihobby wrote:




Hello,

Can anyone tell me how can one know the name of the compiled swf
file 
name ? 
Is there a property which holds it ?

Thanks,

Sean.






 


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

2007-05-02 Thread Weyert de Boer
Hi Scott!

I just don't like the browser part of it. Makes it all too complex, same 
from RIAs in Flex/Flash, though. Desktop Applications like Apollo and 
WPF/Avalon are more my thing.

Yes, expression/Web looks nice even got good reviews from a popular 
magazine :) Trillion times better then FrontPage, even MSFT themself 
know that app sucked...

Yours,
Weyert


Re: [flexcoders] How can I tell the swf file name within my application ?

2007-05-02 Thread Flexing...

use Application.application.url


On May 3, 2007, at 11:52 AM, helihobby wrote:


Hello,

Can anyone tell me how can one know the name of the compiled swf file
name ?
Is there a property which holds it ?

Thanks,

Sean.







[flexcoders] How can I tell the swf file name within my application ?

2007-05-02 Thread helihobby
Hello,

Can anyone tell me how can one know the name of the compiled swf file 
name ? 
Is there a property which holds it ?

Thanks,

Sean.



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

2007-05-02 Thread Scott Barnes

Cool, if you see Silverlight as another piece in your online delivery
solution great, if you think it's pure evil - don't use it. It's great to
have  choice of offerings like this and more power to one and all :)

p.s
Frontpage = Expression Web in terms of the next generation of Web Designer
tool for Microsoft. If you want developer base functionaity (C# etc), go
with Visual Studio Web Express etc..




On 5/3/07, Weyert de Boer <[EMAIL PROTECTED]> wrote:


  I dont really care about SivlerLight I want Ultimate Experience (WPF) on

the Mac! All those stupid online applications 






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


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

2007-05-02 Thread Weyert de Boer
I dont really care about SivlerLight I want Ultimate Experience (WPF) on 
the Mac! All those stupid online applications 


RE: [flexcoders] Function to check if component supports a style?

2007-05-02 Thread Gordon Smith
describeType() can give you information about class's [Style] metadata.
But you have to use the -keep-as3-metadata compilation option to tell
the MXML compiler which metadata to compile into the SWF.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of zzwi89
Sent: Wednesday, May 02, 2007 7:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Function to check if component supports a style?



So I know there is a function to check if an object has a property
(object.hasOwnProperty()), but is there a way of determining if an
object supports a style? I want to allow the user to alter some style
properties own their own through the UI, but I don't want to be
setting nonexistent styles and was hoping there was a way of verifying
if a style existed for a component.

So something like button.hasStyle("paddingLeft") should return true,
but button.hasStyle("paddingg") should return false.



 


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

2007-05-02 Thread dorkie dork from dorktown

erm, i dont think so. what about visual interdev? you say it got reborn. no
its not frontpage. its a completely new and different program. unless you
can run your frontpage files in it Expression Web != frontpage.

you wrote,
I'll also talk more about how Adobe CS3 products can work with Expression
tools etc bottom line, there is no winner, just mashups of cool RIA
technologies.

no. thats not true. when i say, i want to choose a technology to use whoever
i choose to use is the winner of my decision. so if silverlight doesn't
support the features i need and the platforms i need then it will never
"win" my bid. if it doesn't support *me* and my project then its not even in
the running.

ps it could mash together with other apps if i choose multiple technologies
but i want one tool to develop in. i hate the mashup mash up development the
web has created. html talking to css talks to javascript talks to ajax talks
to java talks to database. were sending messages all over the place.
although flex helps this you still have 1 dummy html wrapper + 1 swf + 1
server side technology + 1 optional db. i had to give a swf to another
developer at work. it was loading in all the images and css. we had run into
path issues so i asked if he wanted everything embedded. i gave him one file
from then on. from 30 files to 1 swf.

On 5/2/07, Scott Barnes <[EMAIL PROTECTED]> wrote:




On 5/3/07, sher_ali2004 <[EMAIL PROTECTED]> wrote:
>
>   Never trust Microsoft products and projects. They bring products and
> destroy those products themselves because of their marketing strategy.
> They never succeeded to run a product more than few years except
> Window OS and MS Office.
>
> If you put some efforts in learning a technology than you would never
> want to loss.
>
> What happend to FrontPage? What happened to ASP ?
>

Frontpage is now - Expression Web (re-modeled and re-done to make it
smarter etc).
ASP Classic got moved to ASP.NET, ASP.NET 2.0 is extremely popular for the
RAD approach it provides. Now we have ASP Futures release which combined
with Silverlight is pushing this evolution forward.

Microsoft are extremely committed to the Apple platform, if we weren't you
would would not of seen Silverlights launchpad event to be demo'd on a Mac.
It's about a series of channelled offerings and Apple users aren't being
left out on the Mac.

Again there are three tiers of offerings here, Ultimate Experience (WPF),
Great Experience (Silverlight) and Good Experience (AJAX/HTML). Our value
proposition to developers in the current .NET space that they have the
ability to move between these three tiers using their C#/VB.NET passports
mixed with XAML. Now if folks want to jump on board from the Flex world,
that's fine but I doubt Flex will "die" simply because Microsoft is in the
room, as Scott.G said this isn't a zero sum game,no two brands will "own"
the market.Silverlight and Live.com are a solution service that we think
is quite exciting and I think there is room for combination of both brands.

In the interest of killing such debates, I'm keen to spinup some
combination applications of FLEX + Silverlight working together. I'll also
talk more about how Adobe CS3 products can work with Expression tools etc
bottom line, there is no winner, just mashups of cool RIA technologies.

Scott Barnes
Developer Evangelist
Microsoft

 



[flexcoders] Tree not working when expanding

2007-05-02 Thread randall_salas
Hi:
  I just noticed a bug in the Flex Tree component. If I add children
automatically, when itemOpen event is triggered, I get the next error:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at mx.controls::Tree/::buildUpCollectionEvents()
at
mx.controls::Tree/http://www.adobe.com/2006/flex/mx/internal::onTweenEnd()
at mx.effects::Tween/endTween()
at
mx.effects::Tween/http://www.adobe.com/2006/flex/mx/internal::doInterval()
at mx.effects::Tween$/::timerHandler()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()

So, I am attaching the code that replicates this example. If you try
to expand a node that is "owner" element, it will add a car and suv if
this owner does not have any vehicle. Then, if you try to expand suv
or car node, you will get the error.

  I think that is due that car and sub nodes are set to isBranch=true.
But I need to do it in this way, since I may want to add some other
nodes under car and sub like: colors, etc.

So, do you find something wrong with my code? or it is just a bug in
the tree.

Thanks.

**
*

http://www.adobe.com/2006/mxml"; 
layout="vertical"
creationComplete="initApp()"
>
















[flexcoders] Re: Uploading File/ Post Request

2007-05-02 Thread iko_knyphausen

Here is one way to do this. The receiving script or cgi will find the
posted fields in the Fields collection of the Request object.  The
function below is called after the fileRef.browse() method and after the
user selected a file from the file dialog.

private function selectHandler(event : Event) : void
{
   var params:URLVariables = new URLVariables();
params.VAR1 = "Some Value";
params.VAR2 = "Another Value";
var request:URLRequest = new URLRequest("serverside_script"); 
//asp, cfm, php, pl
request.method = URLRequestMethod.POST;
request.data = params;
fileRef.upload(request);
}


--- In flexcoders@yahoogroups.com, "jd_lingwai" <[EMAIL PROTECTED]> wrote:
>
> I noticed in flex it allows you to pass extra variables to the post
> request.
> Does anyone know how to name the new variables?
>




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

2007-05-02 Thread Weyert de Boer
You got to love how easy it is to obtain artwork from the XAML files 
used by the demos of Silverlight ;) Time to create some evil version of 
it. :>


[flexcoders] Function to check if component supports a style?

2007-05-02 Thread zzwi89
So I know there is a function to check if an object has a property
(object.hasOwnProperty()), but is there a way of determining if an
object supports a style? I want to allow the user to alter some style
properties own their own through the UI, but I don't want to be
setting nonexistent styles and was hoping there was a way of verifying
if a style existed for a component.

So something like button.hasStyle("paddingLeft") should return true,
but button.hasStyle("paddingg") should return false.



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

2007-05-02 Thread Andrew Muller

"Microsoft are extremely committed to the Apple platform"

Ooh, does this mean that they forgot to announce IE for the Mac at MIX???

;-)

On 03/05/07, Scott Barnes <[EMAIL PROTECTED]> wrote:




On 5/3/07, sher_ali2004 <[EMAIL PROTECTED]> wrote:
>
>   Never trust Microsoft products and projects. They bring products and
> destroy those products themselves because of their marketing strategy.
> They never succeeded to run a product more than few years except
> Window OS and MS Office.
>
> If you put some efforts in learning a technology than you would never
> want to loss.
>
> What happend to FrontPage? What happened to ASP ?
>

Frontpage is now - Expression Web (re-modeled and re-done to make it
smarter etc).
ASP Classic got moved to ASP.NET, ASP.NET 2.0 is extremely popular for the
RAD approach it provides. Now we have ASP Futures release which combined
with Silverlight is pushing this evolution forward.

Microsoft are extremely committed to the Apple platform, if we weren't you
would would not of seen Silverlights launchpad event to be demo'd on a Mac.
It's about a series of channelled offerings and Apple users aren't being
left out on the Mac.

Again there are three tiers of offerings here, Ultimate Experience (WPF),
Great Experience (Silverlight) and Good Experience (AJAX/HTML). Our value
proposition to developers in the current .NET space that they have the
ability to move between these three tiers using their C#/VB.NET passports
mixed with XAML. Now if folks want to jump on board from the Flex world,
that's fine but I doubt Flex will "die" simply because Microsoft is in the
room, as Scott.G said this isn't a zero sum game,no two brands will "own"
the market.Silverlight and Live.com are a solution service that we think
is quite exciting and I think there is room for combination of both brands.

In the interest of killing such debates, I'm keen to spinup some
combination applications of FLEX + Silverlight working together. I'll also
talk more about how Adobe CS3 products can work with Expression tools etc
bottom line, there is no winner, just mashups of cool RIA technologies.

Scott Barnes
Developer Evangelist
Microsoft

 





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

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


[flexcoders] Drag a panel and add reflection to this panel

2007-05-02 Thread randall_salas
Hi Guys:
  I was looking at this link:
http://www.mobik.com/mobik/mobik.html

I wonder if any of you have an idea about how to drag the panel as
well as how to implement the reflection over this object.

Thanks a lot




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

2007-05-02 Thread shardoolkarnik
Now, I am really confused! I am going to look into Silverlight and see 
if it makes sense to switch. The only thing I love is the IDE and ease 
of development.

Any suggestions?

- Nick

--- In flexcoders@yahoogroups.com, "Nancy Gill" <[EMAIL PROTECTED]> wrote:
>
> It's about whether or not Silverlight will kill Flex.   :) (subject 
line)
> 
> Seriously .. this conversation has been going on for days .. would be 
> impossible to keep it all.
> 
> 
> 
> 
> > When editing out content, can you keep the context of the previous
> > message? I have no idea what this one is about :)
> >
> >
> >
> > --
>




[flexcoders] Re: Loading Fonts at runtime on OSX?

2007-05-02 Thread joshuajnoble

That's a really good idea that I didn't think of. I'll try that
tonight when I get home and see. Maybe I'll just give it 5 seconds and
see what happens.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Load is asynchronous so there is no guarantee that FontHolder is loaed
> by the time you run inited()
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of joshuajnoble
> Sent: Tuesday, May 01, 2007 10:44 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Loading Fonts at runtime on OSX?
> 
>  
> 
> 
> Ha, well ok. The vomit is
> 
> paramter font cannot be null
> 
> for Font.registerFont. The FontHolder class looks like so:
> 
> package
> {
> import flash.display.Sprite
> 
> public class FontHolder extends Sprite
> {
> [Embed(fontFamily="ArialBlack",
> source="C://WINDOWS//Fonts//ariblk.TTF 
> ")]
> public static var ArialBlack:Class;
> }
> }
> 
> So I'm really not sure what it's all about because it works fine
> loading accessing the font on a PC with the exact same code. This code
> to be exact:
> 
> public class FontLoadingTest extends Sprite
> {
> public function FontLoadingTest()
> {
> var ld:Loader = new Loader();
> ld.contentLoaderInfo.addEventListener(Event.INIT, inited);
> ld.load(new URLRequest("FontHolder.swf"));
> }
> 
> private function inited(event:Event):void
> {
> var t:Class =
> event.target.applicationDomain.getDefinition("FontHolder") as Class;
> Font.registerFont(t.ArialBlack);
> var tf:TextField = new TextField();
> tf.defaultTextFormat = new TextFormat("ArialBlack", 12, 0);
> tf.embedFonts = true;
> tf.rotation = 15; // to demonstrate the embed worked
> tf.text = "blah blah blahnblah blah blahnblah blah blah ";
> addChild(tf);
> }
> }
> 
> Any ideas, humorous or otherwise?
> 
> --- In flexcoders@yahoogroups.com 
> , Bjorn Schultheiss
>  wrote:
> >
> > Depends what you ate or drank the night before,
> > I mean the smell is probably interesting than what it looks like.
> > 
> > What it tastes like is a whole other story ;)
> > 
> > Just kidding, Alex...
> > 
> > 
> > On 01/05/2007, at 4:24 PM, Alex Harui wrote:
> > 
> > >
> > > What does the vomit look like? And what does the FontHolder class 
> > > look like?
> > >
> > >
> > >
> > > From: flexcoders@yahoogroups.com
>   
> > > [mailto:flexcoders@yahoogroups.com
>  ] On Behalf Of joshuajnoble
> > > Sent: Monday, April 30, 2007 6:29 PM
> > > To: flexcoders@yahoogroups.com 
> 
> > > Subject: [flexcoders] Loading Fonts at runtime on OSX?
> > >
> > >
> > >
> > > Wondering if anyone else has run into this: I'm loading fonts at
> > > runtime via a swf that has a font embedded in it. I can't get the
> font
> > > embedded on my OSX machine, so I compile the font swf on my pc and
> > > then bring it over to my OSX machine and try to load it into the
> > > application swf like so:
> > >
> > > private function fontSWFLoaded(event:Event):void
> > > {
> > > var holder:Class =
> > > event.target.applicationDomain.getDefinition("FontHolder") as Class;
> > > Font.registerFont( holder.Kartika );
> > > videoOverlay.overlay.fontLoaded();
> > > }
> > >
> > > It vomits every time on Font.registerFont. This exact same code
> works
> > > fine on my PC. Now, I don't have Kartika
> > > installed on my mac, which could be part of the problem I suppose so
> > > my next is going to be trying with Arial, but does anyone have any 
> > > ideas?
> > >
> > >
> > >
> > >
> >
>




[flexcoders] Re: Loading Fonts at runtime on OSX?

2007-05-02 Thread joshuajnoble

Well I'm compiling the swf with the embedded font on a PC, so I use
the Windows path. I was bringing the compiled swf with the font loaded
inside of it over to the Mac to see if it would be able to load the
font there.


--- In flexcoders@yahoogroups.com, "Jordan Snyder" <[EMAIL PROTECTED]>
wrote:
>
> are you changing this line for the mac version?
> 
> source="C://WINDOWS//Fonts//ariblk.TTF")
> 
> I haven't dealt with cross-platform fonts but why WOULDN'T this be the
> problem?
> 
> cheers!
> 
> On 5/1/07, joshuajnoble <[EMAIL PROTECTED]> wrote:
> >
> >
> > Ha, well ok. The vomit is
> >
> > paramter font cannot be null
> >
> > for Font.registerFont. The FontHolder class looks like so:
> >
> > package
> > {
> > import flash.display.Sprite
> >
> > public class FontHolder extends Sprite
> > {
> > [Embed(fontFamily="ArialBlack",
> > source="C://WINDOWS//Fonts//ariblk.TTF")]
> > public static var ArialBlack:Class;
> > }
> > }
> >
> > So I'm really not sure what it's all about because it works fine
> > loading accessing the font on a PC with the exact same code. This code
> > to be exact:
> >
> > public class FontLoadingTest extends Sprite
> > {
> > public function FontLoadingTest()
> > {
> > var ld:Loader = new Loader();
> > ld.contentLoaderInfo.addEventListener(Event.INIT, inited);
> > ld.load(new URLRequest("FontHolder.swf"));
> > }
> >
> > private function inited(event:Event):void
> > {
> > var t:Class =
> > event.target.applicationDomain.getDefinition("FontHolder") as Class;
> > Font.registerFont(t.ArialBlack);
> > var tf:TextField = new TextField();
> > tf.defaultTextFormat = new TextFormat("ArialBlack", 12, 0);
> > tf.embedFonts = true;
> > tf.rotation = 15; // to demonstrate the embed worked
> > tf.text = "blah blah blahnblah blah blahnblah blah blah ";
> > addChild(tf);
> > }
> > }
> >
> > Any ideas, humorous or otherwise?
> >
> > --- In flexcoders@yahoogroups.com ,
Bjorn
> > Schultheiss
> >
> >  wrote:
> > >
> > > Depends what you ate or drank the night before,
> > > I mean the smell is probably interesting than what it looks like.
> > >
> > > What it tastes like is a whole other story ;)
> > >
> > > Just kidding, Alex...
> > >
> > >
> > > On 01/05/2007, at 4:24 PM, Alex Harui wrote:
> > >
> > > >
> > > > What does the vomit look like? And what does the FontHolder class
> > > > look like?
> > > >
> > > >
> > > >
> > > > From: flexcoders@yahoogroups.com 
> > > > [mailto:flexcoders@yahoogroups.com
] On
> > Behalf Of joshuajnoble
> > > > Sent: Monday, April 30, 2007 6:29 PM
> > > > To: flexcoders@yahoogroups.com 
> > > > Subject: [flexcoders] Loading Fonts at runtime on OSX?
> > > >
> > > >
> > > >
> > > > Wondering if anyone else has run into this: I'm loading fonts at
> > > > runtime via a swf that has a font embedded in it. I can't get
the font
> > > > embedded on my OSX machine, so I compile the font swf on my pc and
> > > > then bring it over to my OSX machine and try to load it into the
> > > > application swf like so:
> > > >
> > > > private function fontSWFLoaded(event:Event):void
> > > > {
> > > > var holder:Class =
> > > > event.target.applicationDomain.getDefinition("FontHolder") as
Class;
> > > > Font.registerFont( holder.Kartika );
> > > > videoOverlay.overlay.fontLoaded();
> > > > }
> > > >
> > > > It vomits every time on Font.registerFont. This exact same
code works
> > > > fine on my PC. Now, I don't have Kartika
> > > > installed on my mac, which could be part of the problem I
suppose so
> > > > my next is going to be trying with Arial, but does anyone have any
> > > > ideas?
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>




[flexcoders] Uploading File/ Post Request

2007-05-02 Thread jd_lingwai
I noticed in flex it allows you to pass extra variables to the post
request.
Does anyone know how to name the new variables?



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

2007-05-02 Thread simonjpalmer
Jeff,

thank you for your response, I realaly appreciate it, this is driving
me slightly mad and there's a lot in here for me to try.  Thanks also
for the offer of help decoding the logs, I may well take you up on
that.  It's going to take me a couple of days to get into a position
to try this out properly but I will be back...

Regards
Simon

--- In flexcoders@yahoogroups.com, "Jeff Vroom" <[EMAIL PROTECTED]> wrote:
>
> One of the features of Data Management is that the assembler can modify
> the objects involved in a create or an update.   After the commit, these
> changes are applied to the managed copy.  One common change made on the
> server is that during the create the server assigns new ids to the newly
> created items.   If the assembler does not make any changes, nothing
> should be changed after the commit.  
> 
>  
> 
> So I think the first step would be to turn on the debug level for the
> "Message.*" and "DataService.*" patterns in the server logs, and compare
> the before and after "create" and "update" events in the logs.  For lazy
> associations, the state of the association properties is stored in the
> "referencedIds" headers in the messages.  For non-lazy associations, if
> you put toString methods in your DTOs to dump out relevant info that is
> helpful. 
> 
>  
> 
> One more thing to try that may help.  When the objects have lazy="true"
> (not the default) only the references to objects are updated.  At most,
> data management has to update references to objects so the instances
> would only change if the ids were changed.  When lazy="false" we
> recursively update the object graph for the properties changed which is
> more involved so you might try adding lazy="true".  In particular, make
> sure that parent has lazy="true" as backptrs tend to perform and behave
> better when you are not sending the parent's state along with an update
> of the child.  This does sometimes mean you have to catch and ignore
> ItemPendingErrors but usually this doesn't happen for parents. 
> 
>  
> 
> If you could use help analyzing the logs, send them along.  Sometimes
> the client side debug log is useful in these situations too
> ().
> 
>  
> 
> Jeff 
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of simonjpalmer
> Sent: Tuesday, April 17, 2007 7:20 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Help! Object integrity across DataService.commit()
> 
>  
> 
> 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 @ 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 l

[flexcoders] Re: DataGrid Column bug

2007-05-02 Thread gotjosh819i

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=kb401224


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Should be at www.adobe.com
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Flexing...
> Sent: Wednesday, May 02, 2007 12:07 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] DataGrid Column bug
> 
> 
> 
> from where can I download the hotfix ? 
> 
> 
> On May 2, 2007, at 9:20 PM, Alex Harui wrote:
> 
> 
>   
> 
>   That should be fixed in the latest hotfix.
> 
> 
> 
>   From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Beh alf Of Flexing...
>   Sent: Wednesday, May 02, 2007 4:47 AM
>   To: flexcoders@yahoogroups.com
>   Subject: [flexcoders] DataGrid Column bug
>   
>   
> 
>   Hi All,
>   
>   I am hiding one of the columns of the datagrid based on the
> value of 
>   a variable i.e. visible={isVisible}.
>   The column is hidden the first time I populate data to it
>   but if I repopulate data (, the value of isVisible is still
> false), 
>   the hidden column shows up.
>   
>   Even if I reset the value of isVisible to false, it doesn't 
get
> hidden.
>   
>   The only workaround which seem to work is set value 
of "visible"
> to 
>   true and then set "visible=isVisible".
>   
>   Is this a known issue with DataGrid?
>   
>   Thanks
>




[flexcoders] Re: ListBase ScrollVertically error #1010

2007-05-02 Thread supertodda
--- In flexcoders@yahoogroups.com, "confined_to_death666"
<[EMAIL PROTECTED]> wrote:
>
> I don't have the error anymore. I'm now using a vbox with a repeater
> and my custom item renderer instead. With some tweaking
> (recyclechildren, etc) it works just as good as the list component but
> it doesn't give me the error. Thnx everyone who replied on my problem
> before.
>


Hello,

I had this problem too with my datagrid, it was solved by looping
though the columns array and setting the headerWordWrap to true and
setting a HeaderHeight on the datagrid.  Note that you need to modify
the columns array, then re assign it to the datagrid before use.

answer found in message #66959



[flexcoders] Re: dataToLocal Parameters for cartesianchart with datetimeaxis

2007-05-02 Thread Claude Hussenet
--- In flexcoders@yahoogroups.com, "Claude Hussenet" <[EMAIL PROTECTED]>
wrote:
>
> 
> If the horizontal axis is a dattimeaxis what does dataToLocal expect
> as a first parameter ? 
> Thx
> Claude Hussenet
>

It works in passing getTime() .I am using also a datetimeaxis without
a parsefunction

Thx-Claude 



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

2007-05-02 Thread Scott Barnes

On 5/3/07, sher_ali2004 <[EMAIL PROTECTED]> wrote:


  Never trust Microsoft products and projects. They bring products and
destroy those products themselves because of their marketing strategy.
They never succeeded to run a product more than few years except
Window OS and MS Office.

If you put some efforts in learning a technology than you would never
want to loss.

What happend to FrontPage? What happened to ASP ?



Frontpage is now - Expression Web (re-modeled and re-done to make it smarter
etc).
ASP Classic got moved to ASP.NET, ASP.NET 2.0 is extremely popular for the
RAD approach it provides. Now we have ASP Futures release which combined
with Silverlight is pushing this evolution forward.

Microsoft are extremely committed to the Apple platform, if we weren't you
would would not of seen Silverlights launchpad event to be demo'd on a Mac.
It's about a series of channelled offerings and Apple users aren't being
left out on the Mac.

Again there are three tiers of offerings here, Ultimate Experience (WPF),
Great Experience (Silverlight) and Good Experience (AJAX/HTML). Our value
proposition to developers in the current .NET space that they have the
ability to move between these three tiers using their C#/VB.NET passports
mixed with XAML. Now if folks want to jump on board from the Flex world,
that's fine but I doubt Flex will "die" simply because Microsoft is in the
room, as Scott.G said this isn't a zero sum game,no two brands will "own"
the market.Silverlight and Live.com are a solution service that we think is
quite exciting and I think there is room for combination of both brands.

In the interest of killing such debates, I'm keen to spinup some combination
applications of FLEX + Silverlight working together. I'll also talk more
about how Adobe CS3 products can work with Expression tools etc bottom line,
there is no winner, just mashups of cool RIA technologies.

Scott Barnes
Developer Evangelist
Microsoft


[flexcoders] accordion selected / normal text style

2007-05-02 Thread kasey.mccurdy
ive dugg through the live docs...scoured the web..and to no avail...

does anyone out there know how to change the text style for a selected
accordion panel vs. a non selected one?

i cant seem to find anything ANYWHERE

thanks ya'll.



RE: [flexcoders] What can one do to format the title of a Panel?

2007-05-02 Thread Gordon Smith

.panelTitle { fontSize: 24; color: red }




- Gordon

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ian Skinner
Sent: Wednesday, May 02, 2007 2:55 PM
To: [EMAIL PROTECTED]; flexcoders@yahoogroups.com
Subject: [flexcoders] What can one do to format the title of a Panel?



Is it possible to apply style to the title of a Panel? Size, color,
font?


 


[flexcoders] What can one do to format the title of a Panel?

2007-05-02 Thread Ian Skinner
Is it possible to apply style to the title of a Panel?  Size, color, font?


RE: [flexcoders] Control scroll bar.

2007-05-02 Thread Ian Skinner
is DayBox parented by Application?  Any interim parents must also have
minWidth/Height = 0

 

No it is not.  Just to be clear of what a 'parent' is?  Is it any
container between the Application and DayBox, or just the roots my
custom containers?


Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.

--- Begin Message ---

is DayBox parented by Application?  Any interim parents must also have 
minWidth/Height = 0

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ian 
Skinner
Sent: Wednesday, May 02, 2007 12:47 PM
To: [EMAIL PROTECTED]; flexcoders@yahoogroups.com
Subject: [flexcoders] Control scroll bar.



I have a the following MXML line:


displayDay is an Array Collection that will often contain more elements 
then can be vertically displayed in the area provided by the constraints 
on the DayBox container. When this happens I want the scroll bar to 
just be within this container, not the entire application container.

Nothing I've tried seems to have any effect, how does one do this?


 
--- End Message ---


[flexcoders] dataToLocal Parameters for cartesianchart with datetimeaxis

2007-05-02 Thread Claude Hussenet

If the horizontal axis is a dattimeaxis what does dataToLocal expect
as a first parameter ? 
Thx
Claude Hussenet



RE: [flexcoders] Connection pools in the FlashPlayer and forcing a close of an URLLoader/Stream

2007-05-02 Thread Matt Chotin
The Player uses the browser's network layer so it's all about whether
the browser will return control, and I believe it's up to the browser to
decide whether it's a keep-alive or not.  I'll see if I can find
anything else out though.
 
Matt



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of erikabair
Sent: Wednesday, May 02, 2007 1:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Connection pools in the FlashPlayer and forcing a
close of an URLLoader/Stream



Hello, I'm running into an issue with URLLoader::close (and 
URLStream::close) not actually doing a low-level close of the 
underlying TCP connection.

Basically we have a situation in which we're doing a blocked poll 
against a server, and need to interrupt that blocked request in order 
to submit a new (higher prio) request. I've tried doing a close() 
call on the connection, tried doing a close and then ensuring that 
the URLLoader object is not reused, but it seems that the Player 
never actually attempts to close the underlying socket. 

I'm guessing that the failure to close is due to the fact that the 
flash player seems to be utilizing a connection pool behind the 
scenes:
It seems that if I do a loadPolicyFile call, followed by a load via 
an URLLoader against the same host, Flash will open 2 keep-alive 
connections, and will then use one or the other underlying connection 
for all subsequent requests. This appears to cause an issue in 
certain browsers that limit the total number of persistent socket 
connections (if you check about:config in firefox you can see that 
network." http.max-persistent-connections-per-server" is set to 2 by 
default, both of which get used up by the flash player instance).

So my questions are: 
1) Is there a way to force the Player to actually close an underlying 
connection? 
2) Is there a way to prevent the URLLoader from using a keep-alive 
based connection?

Thanks,
- Erik



 


RE: [flexcoders] Flex profiler "profiler.war" file

2007-05-02 Thread Matt Chotin
Hi, the profiler.war was for Flex 1.x and doesn't work with Flex 2
applications.  We are working on a different profiler as part of the
next version of Flex, codenamed "Moxie."
 
Matt



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of zzberthod
Sent: Wednesday, May 02, 2007 2:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex profiler "profiler.war" file



I'd like to test the Flex profiler with my small application.
I'm using the Flex Builder 2.0 evaluation version and I can't find the
file "profiler.war". I've read that when we install Flex, it propose
to install an application server. But when I installed my Flex
Builder, it didn't propose to me to install anything.
Do you know why? Is it because I'm using the evaluation version?

Thanks!



 


RE: [flexcoders] DataGrid Column bug

2007-05-02 Thread Alex Harui
Should be at www.adobe.com



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Flexing...
Sent: Wednesday, May 02, 2007 12:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DataGrid Column bug



from where can I download the hotfix ? 


On May 2, 2007, at 9:20 PM, Alex Harui wrote:




That should be fixed in the latest hotfix.



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Beh alf Of Flexing...
Sent: Wednesday, May 02, 2007 4:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid Column bug



Hi All,

I am hiding one of the columns of the datagrid based on the
value of 
a variable i.e. visible={isVisible}.
The column is hidden the first time I populate data to it
but if I repopulate data (, the value of isVisible is still
false), 
the hidden column shows up.

Even if I reset the value of isVisible to false, it doesn't get
hidden.

The only workaround which seem to work is set value of "visible"
to 
true and then set "visible=isVisible".

Is this a known issue with DataGrid?

Thanks







 


RE: [flexcoders] Why aren't we allowed to process the event queue? (eg: like DoEvents)

2007-05-02 Thread Alex Harui
Calllater, intervals and what not are good for long iterations.
Sometimes you want to run a deep recursion and that's harder to flatten.
 
The Player Team continues to reject this idea.  I think it is because it
is non-trivial to implement as it means that a mouseevent could be
processed before the mouseevent that called doEvents finishes and that
makes somethings in the player more complicated.
 
-Alex



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Grinsfelder
Sent: Wednesday, May 02, 2007 2:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Why aren't we allowed to process the event
queue? (eg: like DoEvents)



Maybe we already can tell flash to process the UI event queue...

What happens when you use CallLater() to call yourself back?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim
Sent: Wednesday, May 02, 2007 2:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Why aren't we allowed to process the event queue?
(eg: like DoEvents)

Why aren't we allowed to tell flash to process the UI event queue
periodically in long executing subroutines?

Hell, just something to tell the client not to go into "Not
Responding" would be more than enough. I call "validate now"
periodically, but that doesn't help because I still get the "Not
Responding" which makes it look like the software has crashed - a very
awkward user experience.

It seems like such a trivial thing for Adobe to add. Why don't they?

 


RE: [flexcoders] Control scroll bar.

2007-05-02 Thread Alex Harui
is DayBox parented by Application?  Any interim parents must also have
minWidth/Height = 0



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ian Skinner
Sent: Wednesday, May 02, 2007 12:47 PM
To: [EMAIL PROTECTED]; flexcoders@yahoogroups.com
Subject: [flexcoders] Control scroll bar.



I have a the following MXML line:


displayDay is an Array Collection that will often contain more elements 
then can be vertically displayed in the area provided by the constraints

on the DayBox container. When this happens I want the scroll bar to 
just be within this container, not the entire application container.

Nothing I've tried seems to have any effect, how does one do this?


 


RE: [flexcoders] Why aren't we allowed to process the event queue? (eg: like DoEvents)

2007-05-02 Thread Jim Grinsfelder
Maybe we already can tell flash to process the UI event queue...

 

What happens when you use CallLater() to call yourself back?

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim
Sent: Wednesday, May 02, 2007 2:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Why aren't we allowed to process the event queue? (eg:
like DoEvents)

 

Why aren't we allowed to tell flash to process the UI event queue
periodically in long executing subroutines?

Hell, just something to tell the client not to go into "Not
Responding" would be more than enough. I call "validate now"
periodically, but that doesn't help because I still get the "Not
Responding" which makes it look like the software has crashed - a very
awkward user experience.

It seems like such a trivial thing for Adobe to add. Why don't they?

 



[flexcoders] Re: No VOs

2007-05-02 Thread michael_ramirez44
Asai,

That actually really easy. Do you want to eliminate mapping on both 
the client side and server side? In PHP you will be working with an 
Associative array and in Flex a dynamic object.

PHP

mydata["firstname"]

FLEX

event.result.firstname

Hope this helps :)

Michael Ramirez

--- In flexcoders@yahoogroups.com, Asai <[EMAIL PROTECTED]> wrote:
>
> Does anybody know how to pass data and manage data into Flex from a 
> remote service like AMFPHP without using Value Objects?  It seems 
like a 
> total pain to have to use VOs.
> 
> -- 
> asai
>




[flexcoders] FlashPaper CFR's prinitng pure black pages ??

2007-05-02 Thread camlinaeizerous
I have a flex application that is calling on a few different cfr's.
The pdf versions of them are saving directly to the hardribve from the
application and can be opened and printed normally besides the
development edition of coldfusion watermark in the backgroud. I
recently  made flashpaper versions of all of the cfr's and instead of
writing them to the hard drive i'm opening them within the application.

They appear normally in the application like I would expect but when I
print them as a pdf or directly from flash paper to the printer all I
get as a result is a few pages of a pure black box excluding the
margins. Is this because the version of coldfusion I'm running is
development or is there another cause for this. I would test it on our
live server with a full version of coldfusion but it is being moved
and can't access it for a while.

I'm hoping someone will know if this is the cause or if there is
another hidden issue.



[flexcoders] Connection pools in the FlashPlayer and forcing a close of an URLLoader/Stream

2007-05-02 Thread erikabair
Hello, I'm running into an issue with URLLoader::close (and 
URLStream::close) not actually doing a low-level close of the 
underlying TCP connection.

Basically we have a situation in which we're doing a blocked poll 
against a server, and need to interrupt that blocked request in order 
to submit a new (higher prio) request. I've tried doing a close() 
call on the connection, tried doing a close and then ensuring that 
the URLLoader object is not reused, but it seems that the Player 
never actually attempts to close the underlying socket. 

  I'm guessing that the failure to close is due to the fact that the 
flash player seems to be utilizing a connection pool behind the 
scenes:
 It seems that if I do a loadPolicyFile call, followed by a load via 
an URLLoader against the same host, Flash will open 2 keep-alive  
connections, and will then use one or the other underlying connection 
for all subsequent requests. This appears to cause an issue in 
certain browsers that limit the total number of persistent socket 
connections (if you check about:config in firefox you can see that 
network." http.max-persistent-connections-per-server" is set to 2 by 
default, both of which get used up by the flash player instance).

  So my questions are: 
1) Is there a way to force the Player to actually close an underlying 
connection? 
2) Is there a way to prevent the URLLoader from using a keep-alive 
based connection?


  Thanks,
  - Erik



[flexcoders] Re: Why aren't we allowed to process the event queue? (eg: like DoEvents)

2007-05-02 Thread Paul DeCoursey
That is kind of what we do.  We have a Command interface that all
tasks extend.  Then we have a queue that we add these tasks to.  On
each frame/interval we process the next item in the queue. We only do
this for larger processing kinds of tasks, things that could take
longer than a few milliseconds on a reasonable machine.

--- In flexcoders@yahoogroups.com, "Ralf Bokelberg"
<[EMAIL PROTECTED]> wrote:
>
> Hi Tim
> 
> How about splitting up your huge task (i'm just guessing here)  and
let Flex
> decide, when it is ready to run the next portion of it? If you use a
Timer
> or setInterval is should work like that.
> 
> Cheers,
> Ralf
> 
> On 5/2/07, Tim <[EMAIL PROTECTED]> wrote:
> >
> >   Why aren't we allowed to tell flash to process the UI event queue
> > periodically in long executing subroutines?
> >
> > Hell, just something to tell the client not to go into "Not
> > Responding" would be more than enough. I call "validate now"
> > periodically, but that doesn't help because I still get the "Not
> > Responding" which makes it look like the software has crashed - a very
> > awkward user experience.
> >
> > It seems like such a trivial thing for Adobe to add. Why don't they?
> >
> >  
> >
> 
> 
> 
> -- 
> Ralf Bokelberg <[EMAIL PROTECTED]>
> Flex & Flash Consultant based in Cologne/Germany
> Phone +49 (0) 221 530 15 35
>




[flexcoders] No VOs

2007-05-02 Thread Asai
Does anybody know how to pass data and manage data into Flex from a 
remote service like AMFPHP without using Value Objects?  It seems like a 
total pain to have to use VOs.


--
asai



Re: [flexcoders] Why aren't we allowed to process the event queue? (eg: like DoEvents)

2007-05-02 Thread Ralf Bokelberg

Hi Tim

How about splitting up your huge task (i'm just guessing here)  and let Flex
decide, when it is ready to run the next portion of it? If you use a Timer
or setInterval is should work like that.

Cheers,
Ralf

On 5/2/07, Tim <[EMAIL PROTECTED]> wrote:


  Why aren't we allowed to tell flash to process the UI event queue
periodically in long executing subroutines?

Hell, just something to tell the client not to go into "Not
Responding" would be more than enough. I call "validate now"
periodically, but that doesn't help because I still get the "Not
Responding" which makes it look like the software has crashed - a very
awkward user experience.

It seems like such a trivial thing for Adobe to add. Why don't they?

 





--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


RE: [flexcoders] Synchronizing data between viewStack elements

2007-05-02 Thread Ian Skinner
"I'd bind both sets of elements to the same data providers and that
should keep them synchronous without any extra work on your part."

 

Could somebody expand on the specifics on how one could do this?

 

I have an main Array Collection that contains 28, 35 or 42 elements.  In
my default view, I use this as a data provider for a repeater control to
create a serious of boxes displaying the data of each element.  Each
main element also contains a property that is an array collection.  This
array is used in a sub-repeater to vertically display each element
inside the parent box.  When a user clicks on any of these sub-element
boxes I am switching to a detail view based on a HDividedBox.  On the
right I want to display details related to the element clicked on by the
user, on the left I want to display the element in the parent array
including all the elements of the sub array collection. 

 

The vice-a-versa come since users will be able to change which element
and sub-element they are seeing view as well as completely change the
main data collection with a calendar control within the details view.

 

 


Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.

--- Begin Message ---

I'd bind both sets of elements to the same dataproviders and that should keep 
them synchronous without any extra work on your part.

 

Databinding via dataproviders has, for me anyhow, been really a good thing.   
Use it.  It's not like the bad-old VB 1.0 days when it had promise but was 
totally frustrating.  IT seems to work in Flex.

 

1.  Design visuals.
2.  Make objects that contain the data you want to display
3.  Bind the objects to the visuals via dataproviders
4.  Write some code to fill out the object and the UI will work.

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ian 
Skinner
Sent: Wednesday, May 02, 2007 11:15 AM
To: [EMAIL PROTECTED]; flexcoders@yahoogroups.com
Subject: [flexcoders] Synchronizing data between viewStack elements

 

When a user clicks on a container built with repeated array collection 
elements in one viewStack layer, the selected element needs to be 
utilized to populate the data in a second viewStack layer and 
vice-a-versa.

Conceptually how does one do this? Do I set some type of global 
variable|pointer or pass the objects from one view to the other somehow 
or can one view layer be aware of another's data?

I suspect this is not a detailed enough description, please feel free to 
ask questions to help me describe the specifics.


 
--- End Message ---


Re: [flexcoders] ProgressBar.mode="polled" gives me problems

2007-05-02 Thread Pan Troglodytes

What would really be cool would be for ProgressBar to explose a property for
the progress value.  It's very close to doing this.  I made the following
subclass that works for me for now:


package nes
{
 import mx.controls.ProgressBar;
 import mx.core.UIComponent;

 public class ProgressBarExt extends ProgressBar
 {
   public function set value(newValue:Number):void
   {
 setProgress(newValue, maximum);
   }
 }
}

Then I have the following in the XML:
   

This reads the "[Bindable] public var progress:Number;" variable of the "
main" object.  The downside is that I have to initialize maximum in the code
because of the way the underlying ProgressBar code works.  If you don't do
this, it clears the maximum set in the XML when it initializes mode="manual"
.


On 5/2/07, Troy Gilbert <[EMAIL PROTECTED]> wrote:


  Hi Pan,

I completely agree with you ... the progress bar definitely seems designed
around the conventional use case you described of being hooked to a Loader
(or derivative). For something so simple it should have been generalized a
bit more.

I think Alex's point was that yes, it's a bug, and a workaround would be
using an EventListener object for the source... of course, you could always
sub-class or cut-n-paste the ProgressBar to make your own that does the
right thing... until Adobe provides a bug-fixed version, that is.

Beyond that, let's hope that the bug gets fixed properly, the API gets
tweaked appropriately, and we get a new SDK drop in the future! ;-)

Troy.



On 5/2/07, Pan Troglodytes <[EMAIL PROTECTED]> wrote:
>
>   Oh, I definitely could, if I absolutely had to make it work this way.
> The problem I see is that the polled mode is very useful for a very specific
> set of circumstances.  But I don't find it very useful in the general
> sense.  It's called a "progress bar", but it seems to have been designed
> very narrowly (at least in polled mode) as a bar to hook up to different
> loaders of content, measured in bytes.  A polled method would be very useful
> and easy to use, if it just had an event defined for the progress bar for
> getTotal and getProgress.  Then it would be a breeze to hook up the events
> and be on your way.
>
> The help is also erroneous in claiming it uses "getBytesLoaded() and
> getBytesTotal() methods."  In the code, it actually reads "bytesLoaded" and
> "bytesTotal" properties.  This also thwarts my plans of just having a simple
> object like this:
>
> [Bindable] public var progress:Object = {
>   bytesLoaded:getProgressBytesLoaded,
>   bytesTotal:getProgressBytesTotal,
>   removeEventListener:kludgeRemoveEventListener
> }
>
> private function kludgeRemoveEventListener(event_type:String,
> listener_function:Function):void { }
>
> private function getProgressBytesLoaded():Number
> {
>   //figure out current progress...
>   return currentProgress;
> }
>
> private function getProgressBytesTotal():Number
> {
>   return maxProgress;
> }
>
>
>
> On 5/2/07, Alex Harui <[EMAIL PROTECTED]> wrote:
> >
> >Looks like a bug.  We expected the source to be an EventDispatcher.
> >  Can you subclass EventDispatcher instead of Object?
> >
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
> > *On Behalf Of *Pan Troglodytes
> > *Sent:* Tuesday, May 01, 2007 9:31 PM
> > *To:* flexcoders
> > *Subject:* [flexcoders] ProgressBar.mode="polled" gives me problems
> >
> >
> >
> > All the help says about setting ProgressBar.mode="polled" is:
> >
> >
> > polled: The source property must specify an object  that exposes
> > getBytesLoaded() and getBytesTotal()  methods. The ProgressBar control calls
> > these methods to update its status.
> >
> > But this doesn't seem to be true.  For example, it seems
> > ProgressBar.commit always wants to do this to the source:
> > _source.removeEventListener(ProgressEvent.PROGRESS,
> > progressHandler);
> > _source.removeEventListener(Event.COMPLETE,
> > completeHandler);
> >
> > Which is a real drag if your source was going to be a simple little
> > object with just getBytesLoaded() and getBytesTotal() methods.
> >
> > It's a bit silly that the code always tries to remove these event
> > listeners whenever you set the source, since these event listeners never got
> > set to begin with (the source was empty before setting it).
> >
> > Is there something I'm missing or is the mode="polled" setting a bit
> > funky?  My searches seem to show very little information for people using it
> > this way.
> >
> > --
> > Jason
> >
> >
>
>
> --
> Jason
>
>
 





--
Jason


[flexcoders] Control scroll bar.

2007-05-02 Thread Ian Skinner
I have a the following MXML line:


displayDay is an Array Collection that will often contain more elements 
then can be vertically displayed in the area provided by the constraints 
on the DayBox container.  When this happens I want the scroll bar to 
just be within this container, not the entire application container.

Nothing I've tried seems to have any effect, how does one do this?


[flexcoders] Why aren't we allowed to process the event queue? (eg: like DoEvents)

2007-05-02 Thread Tim
Why aren't we allowed to tell flash to process the UI event queue
periodically in long executing subroutines?

Hell, just something to tell the client not to go into "Not
Responding" would be more than enough.   I call "validate now"
periodically, but that doesn't help because I still get the "Not
Responding" which makes it look like the software has crashed - a very
awkward user experience.

It seems like such a trivial thing for Adobe to add.  Why don't they?





RE: [flexcoders] ProgressBar doesn't get updated immediately

2007-05-02 Thread Tracy Spratt
As I understand it, not knowing Flash, the functions execute in a single
"frame", whatever that is, and the UI does not update until the code
finishes running.  callLater executes the code in the next frame, after
the ui has redrawn.

 

Tracy 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pan Troglodytes
Sent: Wednesday, May 02, 2007 3:04 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] ProgressBar doesn't get updated immediately

 

Thanks for the reply.  I have used callLater before and I guess that
makes sense.  I'm used to being able to call methods of the gui to force
them to repaint on demand.  I'm guessing Flex must not have the same
kind of functionality. 

And is it just me, or does [EMAIL PROTECTED]
  need to be booted off this list?
I keep getting bounces from that address everytime I send something to
flexcoders. 

On 5/2/07, Tracy Spratt <[EMAIL PROTECTED]
 > wrote:

To do what you want, you will need to break the long running process up
into smaller chunks, and use callLater between them to allow the UI to
catch up.  If it is a loop, use an instance variable to hold the current
index, process some smaller number of iterations, have the function end,
then callLater to do the next set of iterations, starting at the value
in the instance variable.

 

Tracy 

 



From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com
 ] On Behalf Of Pan Troglodytes
Sent: Wednesday, May 02, 2007 1:55 PM
To: flexcoders
Subject: [flexcoders] ProgressBar doesn't get updated immediately

 

Okay, different problem than my other ProgressBar thread.

This time, I have the progress bar working in event mode, cranking
through sending off progress events.  It works fine, except when it gets
to one section of the code.  I want to send back the progress while this
one very long and time consuming function is happening.  So I have
several points where I dispatch a progress event to the progress bar.  I
have added a "progress" event to the bar to write a line to the trace
log.  It gets these progress events.  However, it doesn't update the
bar.  It seems that the bar redraw is holding off until the other
function finishes.  This is defeating the whole purpose of having the
progress bar. 

Is there some way I can force a bar redraw?  I've tried some of the
invalidate/validate methods with no luck.

-- 
Jason 




-- 
Jason 

 



Re: [flexcoders] DataGrid Column bug

2007-05-02 Thread Flexing...

from where can I download the hotfix ?


On May 2, 2007, at 9:20 PM, Alex Harui wrote:



That should be fixed in the latest hotfix.

From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Flexing...

Sent: Wednesday, May 02, 2007 4:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid Column bug

Hi All,

I am hiding one of the columns of the datagrid based on the value of
a variable i.e. visible={isVisible}.
The column is hidden the first time I populate data to it
but if I repopulate data (, the value of isVisible is still false),
the hidden column shows up.

Even if I reset the value of isVisible to false, it doesn't get  
hidden.


The only workaround which seem to work is set value of "visible" to
true and then set "visible=isVisible".

Is this a known issue with DataGrid?

Thanks








Re: [flexcoders] ProgressBar doesn't get updated immediately

2007-05-02 Thread Pan Troglodytes

Thanks for the reply.  I have used callLater before and I guess that makes
sense.  I'm used to being able to call methods of the gui to force them to
repaint on demand.  I'm guessing Flex must not have the same kind of
functionality.

And is it just me, or does [EMAIL PROTECTED] need to be booted
off this list?  I keep getting bounces from that address everytime I send
something to flexcoders.

On 5/2/07, Tracy Spratt <[EMAIL PROTECTED]> wrote:


   To do what you want, you will need to break the long running process up
into smaller chunks, and use callLater between them to allow the UI to catch
up.  If it is a loop, use an instance variable to hold the current index,
process some smaller number of iterations, have the function end, then
callLater to do the next set of iterations, starting at the value in the
instance variable.



Tracy


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Pan Troglodytes
*Sent:* Wednesday, May 02, 2007 1:55 PM
*To:* flexcoders
*Subject:* [flexcoders] ProgressBar doesn't get updated immediately



Okay, different problem than my other ProgressBar thread.

This time, I have the progress bar working in event mode, cranking through
sending off progress events.  It works fine, except when it gets to one
section of the code.  I want to send back the progress while this one very
long and time consuming function is happening.  So I have several points
where I dispatch a progress event to the progress bar.  I have added a
"progress" event to the bar to write a line to the trace log.  It gets these
progress events.  However, it doesn't update the bar.  It seems that the bar
redraw is holding off until the other function finishes.  This is defeating
the whole purpose of having the progress bar.

Is there some way I can force a bar redraw?  I've tried some of the
invalidate/validate methods with no luck.

--
Jason

 





--
Jason


[flexcoders] tabs to spaces

2007-05-02 Thread Mike Vargo
I've turned off generating tabs when I hit the tab key (or so I think). 

When I hit the tab, I get 4 spaces as expected.

But, if I'm writing a line of code and hit "enter", the next line will
get indented automatically and will insert tabs instead of spaces. How
can I stop that?

I'm using eclipse with the flex builder plugin. Thanks for any help.

- Mike




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

2007-05-02 Thread Peter
I have been going through some of the Silverlight material and video’s, and
the way they have engineered the dlr and the openness with which ms is
approaching this “market” does seem fundamentally different from what I have
seen in the past from ms (just try to imagine ms open sourcing anything
substantial 5 years ago).  Also given the people they have hired recently I
do have the impression the commitment is substantial.

 

Whether there is anything sustainable in there remains to be seen (but that
is true for life in general).

 

And of course, it will not kill Flex. Actually my guess is it will make Flex
stronger. 

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sher_ali2004
Sent: Wednesday, May 02, 2007 7:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our
beloved Flex ?

 

Never trust Microsoft products and projects. They bring products and
destroy those products themselves because of their marketing strategy.
They never succeeded to run a product more than few years except
Window OS and MS Office.

If you put some efforts in learning a technology than you would never
want to loss.

What happend to FrontPage? What happened to ASP ?

--- In [EMAIL PROTECTED]  ups.com,
slangeberg <[EMAIL PROTECTED]> wrote:
>
> If you ever watch the developer videos on Channel 9, you'll see that
many MS
> devs have macbooks (or whatever they're called) sitting on their desks!
> 
> -Scott
> 
> On 4/29/07, dorkie dork from dorktown <[EMAIL PROTECTED]>
> wrote:
> >
> > the problem with microsoft is they live in a bubble. they live
in their
> > own little world where only windows exists. well, at the college i
visit
> > half the people have macs. i am in a college coffee / study shop
with about
> > 150 people and half have macs. this all changed when the mac books
came out
> > last year. long time windows users switched. my roomate uses a mac
and loves
> > it. not everyone uses windows.
> >
> > i dont' trust their cross compatible promises either. what if they
do make
> > version on mac. anyone remember ie on mac? they need to prove they
have
> > changed the way they do things (and think) before i would ever
trust them.
> >
> > since i'm ranting, it seems, that users opinions don't matter. all
they
> > need to do is listen to their users and i do not get that from
them. vista
> > is an example of them living in a bubble. so as the web changes i
do not
> > think silverlight will progress when they do not listen to the users.
> >
> >
> >
> > On 4/29/07, simonjpalmer <[EMAIL PROTECTED]> wrote:
> > >
> > > Does C# kill Java?
> > > Does IE kill Firefox?
> > > Does SQLServer kill Oracle?
> > > Does Windows kill UNIX?
> > > Will Silverlight kill Flex?
> > >
> > > From my 20 odd years of software development, during which time the
> > > Microsoft hegemony has been at its apogee, none of the above are
true.
> > > In fact if you want a really scalable enterprise platform you would
> > > choose the right hand side of the list above rather than the left.
> > >
> > > Where Microsoft win hands down is in Office Applications and desktop
> > > operating systems. Excel is quite possibly the best piece of desktop
> > > software ever written (Word being the worst) and long may it
reign as
> > > such. Windows is crap, but it's more than good enough for your
> > > average user and most Microsoft desktop products are actually pretty
> > > good (c'mon, be generous).
> > >
> > > I regret deeply that the rest of the world doesn't have a house full
> > > of beautiful, stable, simple Macs like I do, but the reality is that
> > > they don't as Jason points out. Instead the three or four computers
> > > the normal person interacts with in their daily lives are almost
> > > exclusively running Windows (even the ATM machines and tills at the
> > > supermarket). Not a pleasant truth, but a truth nonetheless. If you
> > > are looking for broad adoption and commercial success as a software
> > > company you start with Windows.
> > >
> > > The wonderful reality, however, is that the software industry, like
> > > all others in the history of human endeavour, thrives on competition
> > > and there is space for more than one company/product/offering to
> > > survive. Adobe are not going to be Microsoft. THANK GOD! They have
> > > and in my opinion will always have, a distinct and separate
offering.
> > > If they can't retain that differentiation then they don't deserve to
> > > remain in business and the market will take care of them.
> > >
> > > So this is a bit of a silly thread as far as I am concerned. The
> > > answer for me is clearly No for all the same reasons that Microsoft
> > > haven't killed any of the other things on the list at the top. They
> > > might try, but I think they should be more worried about Google and
> > > web based desktop software than Adobe and the flash player.
> > >
> > > Simon
> > >
> > > ---

[flexcoders] Re: Dynamic switching of datagrid columns

2007-05-02 Thread iko_knyphausen

Exactly right. Thanks. I think when I read the description of unshift(),
where it says "adds one or more elements...", I subconsciously thought
ARRAY. So the following code upon a headerrelease event works fine, just
in case someone else has a similar mission (I use this in combination
with the CTL key):

 var cols : Array = dgItems.columns;
  cols.unshift(cols.splice(event.columnIndex,1)[0]);
  dgItems.columns = cols;

Danke...


--- In flexcoders@yahoogroups.com, "Ralf Bokelberg" <[EMAIL PROTECTED]>
wrote:
>
> As you said, splice returns an Array and not the actual column.
> Try columns.push( splicedThings[ 0 ]);
> Cheers,
> Ralf.
>
> On 5/2/07, iko_knyphausen [EMAIL PROTECTED] wrote:
> >
> > Hi,
> >
> > trying to change the sequence of datagrid columns by working on the
> > datagrid.columns array. I understand from previous posts that one
should
> > copy the array, do the array manipulations, then assign it back to
the
> > columns property. So far so good. I came across one curiousity that
I cannot
> > explain:
> >
> > 1. First I am splicing a column that gets deleted at the current
> > position. The splice function should return an array of elements
deleted.
> > 2. Then I take this array and try insert it using unshift, splice or
> > push. No good. I also tried to first assign the "cut" element to a
interim
> > var of type DataGridColumn. Still no good.
> >
> > The whole thing works fine, if I make a copy of the column before it
gets
> > "cut" and take this as argument in a unshift, splice, or push

> >
> > Thx
> >
> >
> >
>
>
>
> --
> Ralf Bokelberg [EMAIL PROTECTED]
> Flex & Flash Consultant based in Cologne/Germany
> Phone +49 (0) 221 530 15 35
>




[flexcoders] Re: weird accordion consequences

2007-05-02 Thread arieljake
Thanks Tracy.

I know what you mean about repeated questions.

Problem with "pulling" data is that I don't want the Accordion
contents to be dependent on where they are getting their data. I would
rather the application be responsible for delegating connections
between components. Therefore, it will listen to events from child
components, and notify others when to respond.

I will set it to load children automatically. Thank you.


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I really need to have a boilerplate answer for this one!
> 
> The issue you describe is caused by the fact that Accordion and the
> other navigator containers by default use a feature called "deferred
> instantiation", where a child view is not rendered/instantiated until a
> user first navigates to that view.  
> 
> Deferred instantiation helps to speed up the initial load of an
> application, improving the user's experience.
> 
> The correct way to handle this issue is to use data binding or your own
> event system to "pull" data into the view when it is rendered, instead
> of trying to access members in the child view from "outside".
> 
> A quick an dirty fix, to determine if this is your p[roblem, is to set
> creationPoliccy="all" on the Accordion.  But remember, this can hurt the
> percieved performance of your app when the child vies become complex.
> 
> Tracy
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Ariel Jakobovits
> Sent: Wednesday, May 02, 2007 1:39 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] weird accordion consequences
> 
> I am adding an Accordion and am getting an error at runtime saying that
> accessing a component located inside the Accordion by its id is null. 
> FlexBuilder shows no errors. 
> When I remove the accordion, all is fine.
> The code is posted below. Attempting to access
> stuffFilter.addEventListener is causing a null error.
> 
>  paddingRight="5" paddingTop="5" paddingBottom="5">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  height="100%" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  height="350" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 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] Dynamic switching of datagrid columns

2007-05-02 Thread Ralf Bokelberg

As you said, splice returns an Array and not the actual column.
Try columns.push( splicedThings[ 0 ]);
Cheers,
Ralf.

On 5/2/07, iko_knyphausen <[EMAIL PROTECTED]> wrote:


  Hi,

trying to change the sequence of datagrid columns by working on the
datagrid.columns array. I understand from previous posts that one should
copy the array, do the array manipulations, then assign it back to the
columns property. So far so good. I came across one curiousity that I cannot
explain:

   1. First I am splicing a column that gets deleted at the current
   position. The splice function should return an array of elements deleted.
   2. Then I take this array and try insert it using unshift, splice or
   push. No good. I also tried to first assign the "cut" element to a interim
   var of type DataGridColumn. Still no good.

The whole thing works fine, if I make a copy of the column before it gets
"cut" and take this as argument in a unshift, splice, or push 

Thx

 





--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


RE: [flexcoders] ProgressBar doesn't get updated immediately

2007-05-02 Thread Tracy Spratt
To do what you want, you will need to break the long running process up
into smaller chunks, and use callLater between them to allow the UI to
catch up.  If it is a loop, use an instance variable to hold the current
index, process some smaller number of iterations, have the function end,
then callLater to do the next set of iterations, starting at the value
in the instance variable.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pan Troglodytes
Sent: Wednesday, May 02, 2007 1:55 PM
To: flexcoders
Subject: [flexcoders] ProgressBar doesn't get updated immediately

 

Okay, different problem than my other ProgressBar thread.

This time, I have the progress bar working in event mode, cranking
through sending off progress events.  It works fine, except when it gets
to one section of the code.  I want to send back the progress while this
one very long and time consuming function is happening.  So I have
several points where I dispatch a progress event to the progress bar.  I
have added a "progress" event to the bar to write a line to the trace
log.  It gets these progress events.  However, it doesn't update the
bar.  It seems that the bar redraw is holding off until the other
function finishes.  This is defeating the whole purpose of having the
progress bar. 

Is there some way I can force a bar redraw?  I've tried some of the
invalidate/validate methods with no luck.

-- 
Jason 

 



RE: [flexcoders] Channel.Polling.Error - Using DataService with AtuoCommit and AtutoSync

2007-05-02 Thread Seth Hodgson
Hi Parker,

What version are you running?

A channel polling error is generally caused by two things:
1. The server endpoint was unreachable (possible but unlikely).
2. Your data service destination may have a session or subscription timeout 
value defined in which case the polling channel may be faulting and shutting 
down because you no longer have an active subscription on the server. This 
timeout is based on when messages are pushed to your client for changes made by 
other clients.

First, check #2 above. Second, try turning on client logging in your app 
() and server to see more details for the failure.

HTH,
Seth


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
parkerwhirlow
Sent: Friday, April 27, 2007 11:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Channel.Polling.Error - Using DataService with AtuoCommit 
and AtutoSync


Hi 

I seem to be getting intermittent faults from my data service. Trying
the same thing again seems to have it go away.

Using DataService w/ HibernateAssembler. AutoSync and AutoCommit are
enabled. Destination is configured with the default 'my-polling-amf'
channel.

see the fault below:
[FaultEvent fault=[RPC Fault faultString="error"
faultCode="Channel.Polling.Error" faultDetail="null"]
messageId="D716AD65-B6ED-EDDD-89A8-342B42108D28" type="fault"
bubbles=false cancelable=true eventPhase=2]

Any ideas? Is there a way to retry the operation from the fault handler?

thanks,
Parker Whirlow
 


RE: [flexcoders] DataGrid CheckBox itemRenderer select all

2007-05-02 Thread Tracy Spratt
Does your itemRenderer override the set data() function and set the
state of the checkbox based on the passed in item data?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nhid
Sent: Tuesday, May 01, 2007 5:44 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DataGrid CheckBox itemRenderer select all

 

Hi all,

 

I have code similiar to this, where it checks all the checkboxes when I
click on a button Check All and unchecks all when I click on Uncheck
All.  

 

However, after I sort any of the columns in the datagrid, clicking Check
All will miss 1 or more boxes, then when I click on Uncheck All, the
currently checked boxes unchecks and the missed boxes become checked.  

 

Any ideas?  Thanks.
 

*



private function checkAll():void 
{
   var obj:Object = new Object();
 
   for (var i:int = 0; i < dg.dataProvider.length; i++) { 
   obj= dg.dataProvider[i];
   obj.Check = true;  // = false for uncheckAll() 
   dg.dataProvider.itemUpdated(obj);  
   } 
} 


 

On 10/17/06, Tommy Mestdagh <[EMAIL PROTECTED]
 > wrote: 

> I also need to be able to check which CheckBoxs are selected

 

This is wath you are looking for.  I have a grid with a column named
"deleted" .  By clicking the checkbox you mark the item to delete
(webmail style)

This method pushes all marked items from the grid into a new array
todelete.

all items in the array todelete will be deleted later on.

 

Good luck .

  Tommy

 

 

 

 

private function collectForDelete():Array{
   var todelete:Array = new Array();
   var obj:Object = new Object();

 

 for (var i:Number =0  ; i < table_grids.datagrid.dataProvider.length ;
i ++){
obj = table_grids. datagrid.dataProvider[i];
if (obj.deleted)  {
 var record:RecordDTO = new RecordDTO();
   record.setColumns(obj);  
   todelete.push( record );
   } 
}
return todelete;   
}

 





Van: flexcoders@yahoogroups.com   [mailto: 
flexcoders@  yahoogroups.com
 ] Namens Chad Callahan
Verzonden: dinsdag 17 oktober 2006 16:52
Aan: [EMAIL PROTECTED] ups.com  
Onderwerp: [flexcoders] DataGrid CheckBox itemRenderer select
all

 

I have a DataGrid and the first column's item renderer is
mx.controls. CheckBox.  I would like to be able to have a select all
button that sets all of the CheckBox selected = true.  I also need to be
able to check which CheckBoxs are selected.  Any suggestions? 

 

 

 

CHAD CALLAHAN
PROGRAMMER

T8DESIGN.COM  | P 319.266.7574 - x195 |
877.T8IDEAS | F 888.290.4675

 


This e-mail, including attachments, is covered by the Electronic
Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and
may be legally privileged. If you are not the intended recipient, you
are hereby notified that any retention, dissemination, distribution, or
copying of this communication is strictly prohibited. Please reply to
the sender that you have received the message in error, and then please
delete it. Thank you. 





 

 

 

<>

RE: [flexcoders] weird accordion consequences

2007-05-02 Thread Tracy Spratt
I really need to have a boilerplate answer for this one!

The issue you describe is caused by the fact that Accordion and the
other navigator containers by default use a feature called "deferred
instantiation", where a child view is not rendered/instantiated until a
user first navigates to that view.  

Deferred instantiation helps to speed up the initial load of an
application, improving the user's experience.

The correct way to handle this issue is to use data binding or your own
event system to "pull" data into the view when it is rendered, instead
of trying to access members in the child view from "outside".

A quick an dirty fix, to determine if this is your p[roblem, is to set
creationPoliccy="all" on the Accordion.  But remember, this can hurt the
percieved performance of your app when the child vies become complex.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ariel Jakobovits
Sent: Wednesday, May 02, 2007 1:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] weird accordion consequences

I am adding an Accordion and am getting an error at runtime saying that
accessing a component located inside the Accordion by its id is null. 
FlexBuilder shows no errors. 
When I remove the accordion, all is fine.
The code is posted below. Attempting to access
stuffFilter.addEventListener is causing a null error.














































--
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] List Component scrambles rows

2007-05-02 Thread Tracy Spratt
Your item remderer must override the "set data()" function and in that
function, update the display according to the current item data.

 

Are you doing this?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flashcrow2000
Sent: Wednesday, May 02, 2007 8:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List Component scrambles rows

 

Hello,

I have a list component which gets populated when i run a simple 
query. I receive the result in an array and I set that array as the 
data provider. Also, I have an ItemRenderer which displays part of 
data (each data contains information regarding cities: name, dates, 
numbers, etc; I only display the name and the country).

The problem appears when I scroll in the List. If I scroll to the 
bottom and then scroll back up, the first item is different than 
before. 

I tried to use "invalidateList" on a scroll function but nothing 
changed.

I believe it has something to do with the Item renderer. Can you 
help 
me out please?

Cosmin
(if this is a double post, sorry...i received a Delivery status 
Notification)

 



[flexcoders] ProgressBar doesn't get updated immediately

2007-05-02 Thread Pan Troglodytes

Okay, different problem than my other ProgressBar thread.

This time, I have the progress bar working in event mode, cranking through
sending off progress events.  It works fine, except when it gets to one
section of the code.  I want to send back the progress while this one very
long and time consuming function is happening.  So I have several points
where I dispatch a progress event to the progress bar.  I have added a
"progress" event to the bar to write a line to the trace log.  It gets these
progress events.  However, it doesn't update the bar.  It seems that the bar
redraw is holding off until the other function finishes.  This is defeating
the whole purpose of having the progress bar.

Is there some way I can force a bar redraw?  I've tried some of the
invalidate/validate methods with no luck.

--
Jason


[flexcoders] Dynamic switching of datagrid columns

2007-05-02 Thread iko_knyphausen

Hi,

trying to change the sequence of datagrid columns by working on the
datagrid.columns array. I understand from previous posts that one should
copy the array, do the array manipulations, then assign it back to the
columns property. So far so good. I came across one curiousity that I
cannot explain:

1. First I am splicing a column that gets deleted at the current
position. The splice function should return an array of elements
deleted.
2. Then I take this array and try insert it using unshift, splice or
push. No good. I also tried to first assign the "cut" element to a
interim var of type DataGridColumn. Still no good.

The whole thing works fine, if I make a copy of the column before it
gets "cut" and take this as argument in a unshift, splice, or push


Thx



[flexcoders] weird accordion consequences

2007-05-02 Thread Ariel Jakobovits
I am adding an Accordion and am getting an error at runtime saying that 
accessing a component located inside the Accordion by its id is null. 
FlexBuilder shows no errors. 
When I remove the accordion, all is fine.
The code is posted below. Attempting to access stuffFilter.addEventListener is 
causing a null error.














































--
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] Convert FlexChart in WMF/EMF

2007-05-02 Thread Claude Hussenet

We currently use extensively JAVA Applet for creating charts.
We support different output such as WMF/EMF.
For example,it allows the user to cut and paste an image of the chart 
into a Windows Application(Outlook) through the clipboard .So,the 
image is visible into the body of the email without extra steps such 
as using Insert IMage for creating and HTML email.

Is there a way to create a WMF/EMF file with Flex?

A second option could be to create a WMF/EMF from a JPEG image.
More precisely ,to embed the JPEG image into a WMF/EMF file.
Anybody knows how to do that in JAVA ?

Thank you very much for your help.

PS:I do know how to create a JPEG image from flex.It's not the issue.



[flexcoders] Re: Maven plugin "outputDirectory" is READONLY

2007-05-02 Thread Frank
Christian,

Have you looked into javaforge.com for your Flex Maven plugin?

Heres a description:

"Welcome to JavaForge.com, scalable project hosting for your open 
source Java projects. JavaForge provides all your project management 
needs including basic web hosting, source code repositories, bug 
trackers, forums, wikis, and document repositories. Not only that, be 
all projects come standard with the ability to execute ant builds in 
a continuous integration style build system, commit notifications for 
your repository, and the community that comes from being a part of 
the DeveloperZone Network."

If you do not have the time to set it up, maybe I can do it for you.

Frank
 

--- In flexcoders@yahoogroups.com, Christian Gruber <[EMAIL PROTECTED]> 
wrote:
>
> Yeah.  Others have asked.  I don't have a public svn repo right 
now.   
> I'm going to try to set one up, but my current project has me 
pretty  
> locked up.  As soon as I can do, I'll get that going so others can  
> contribute, patch their own, yadda yadda.  Sorry for the delay on 
this.
> 
> Christian.
> 
> On Mar 20, 2007, at 3:59 PM, Frank wrote:
> 
> > Thanks for the reply, Christian. Great plugin, BTW.
> >
> > I wanted to get access to the sources with the eclipse .project 
files
> > so I can alter it to enable changing the default directory, but 
the
> > SVN access is not working. Are going going to fix access to that?
> >
> > Thanks again,
> >
> > Frank
> >
> > P.S. If you need help, I have experience writing Maven plugins. I 
was
> > the original co-author of the JIBX maven plugin before I handed it
> > over to the current maintainer.
> >
> > --- In flexcoders@yahoogroups.com, Christian Gruber   
> > wrote:
> > >
> > > I'll be getting back to it soon with some updates.
> > >
> > > Christian.
> > >
> > > On Mar 20, 2007, at 5:47 AM, romaindelfour wrote:
> > >
> > > > Hello
> > > > Here is what you want :
> > > > http://repo1.maven.org/maven2/net/israfil/mojo/maven-flex2-
plugin/
> > > > 1.0-alpha-2/
> > > >
> > > > I did it. I'm trying to patch it for my needs.
> > > > Hope it helps you
> > > >
> > > > Regards
> > > >
> > > >
> > > >
> > >
> > > christian gruber + cgruber@ + bus 905.640.1119 + mob
> > > 416.998.6023
> > > process coach and architect + ISRAFIL CONSULTING SERVICES
> > >
> >
> >
> > 
> 
> christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob  
> 416.998.6023
> process coach and architect + ISRAFIL CONSULTING SERVICES
>




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

2007-05-02 Thread sher_ali2004
Never trust Microsoft products and projects. They bring products and
destroy those products themselves because of their marketing strategy.
They never succeeded to run a product more than few years except
Window OS and MS Office.

If you put some efforts in learning a technology than you would never
want to loss.

What happend to FrontPage? What happened to ASP ?



--- In flexcoders@yahoogroups.com, slangeberg <[EMAIL PROTECTED]> wrote:
>
> If you ever watch the developer videos on Channel 9, you'll see that
many MS
> devs have macbooks (or whatever they're called) sitting on their desks!
> 
> -Scott
> 
> On 4/29/07, dorkie dork from dorktown <[EMAIL PROTECTED]>
> wrote:
> >
> >   the problem with microsoft is they live in a bubble. they live
in their
> > own little world where only windows exists. well, at the college i
visit
> > half the people have macs. i am in a college coffee / study shop
with about
> > 150 people and half have macs. this all changed when the mac books
came out
> > last year. long time windows users switched. my roomate uses a mac
and loves
> > it. not everyone uses windows.
> >
> > i dont' trust their cross compatible promises either. what if they
do make
> > version on mac. anyone remember ie on mac? they need to prove they
have
> > changed the way they do things (and think) before i would ever
trust them.
> >
> > since i'm ranting, it seems, that users opinions don't matter. all
they
> > need to do is listen to their users and i do not get that from
them. vista
> > is an example of them living in a bubble. so as the web changes i
do not
> > think silverlight will progress when they do not listen to the users.
> >
> >
> >
> > On 4/29/07, simonjpalmer <[EMAIL PROTECTED]> wrote:
> > >
> > >   Does C# kill Java?
> > > Does IE kill Firefox?
> > > Does SQLServer kill Oracle?
> > > Does Windows kill UNIX?
> > > Will Silverlight kill Flex?
> > >
> > > From my 20 odd years of software development, during which time the
> > > Microsoft hegemony has been at its apogee, none of the above are
true.
> > > In fact if you want a really scalable enterprise platform you would
> > > choose the right hand side of the list above rather than the left.
> > >
> > > Where Microsoft win hands down is in Office Applications and desktop
> > > operating systems. Excel is quite possibly the best piece of desktop
> > > software ever written (Word being the worst) and long may it
reign as
> > > such. Windows is crap, but it's more than good enough for your
> > > average user and most Microsoft desktop products are actually pretty
> > > good (c'mon, be generous).
> > >
> > > I regret deeply that the rest of the world doesn't have a house full
> > > of beautiful, stable, simple Macs like I do, but the reality is that
> > > they don't as Jason points out. Instead the three or four computers
> > > the normal person interacts with in their daily lives are almost
> > > exclusively running Windows (even the ATM machines and tills at the
> > > supermarket). Not a pleasant truth, but a truth nonetheless. If you
> > > are looking for broad adoption and commercial success as a software
> > > company you start with Windows.
> > >
> > > The wonderful reality, however, is that the software industry, like
> > > all others in the history of human endeavour, thrives on competition
> > > and there is space for more than one company/product/offering to
> > > survive. Adobe are not going to be Microsoft. THANK GOD! They have
> > > and in my opinion will always have, a distinct and separate
offering.
> > > If they can't retain that differentiation then they don't deserve to
> > > remain in business and the market will take care of them.
> > >
> > > So this is a bit of a silly thread as far as I am concerned. The
> > > answer for me is clearly No for all the same reasons that Microsoft
> > > haven't killed any of the other things on the list at the top. They
> > > might try, but I think they should be more worried about Google and
> > > web based desktop software than Adobe and the flash player.
> > >
> > > Simon
> > >
> > > --- In flexcoders@yahoogroups.com
, Bjorn
> > > Schultheiss
> > >  wrote:
> > > >
> > > >
> > > >
> > > >
> > > > Hey Jason,
> > > >
> > > > Even if 90% of internet's users are running Windows, how many
> > > > millions aren't..
> > > > If you can deploy applications that is guaranteed to only be
used by
> > > > Windows users, well good luck to you.
> > > >
> > > > Here we target creatives in the advertising industry and I
don't have
> > > > that luxury.
> > > >
> > > >
> > > >
> > > >
> > > > 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 organiz

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

2007-05-02 Thread slangeberg

If you ever watch the developer videos on Channel 9, you'll see that many MS
devs have macbooks (or whatever they're called) sitting on their desks!

-Scott

On 4/29/07, dorkie dork from dorktown <[EMAIL PROTECTED]>
wrote:


  the problem with microsoft is they live in a bubble. they live in their
own little world where only windows exists. well, at the college i visit
half the people have macs. i am in a college coffee / study shop with about
150 people and half have macs. this all changed when the mac books came out
last year. long time windows users switched. my roomate uses a mac and loves
it. not everyone uses windows.

i dont' trust their cross compatible promises either. what if they do make
version on mac. anyone remember ie on mac? they need to prove they have
changed the way they do things (and think) before i would ever trust them.

since i'm ranting, it seems, that users opinions don't matter. all they
need to do is listen to their users and i do not get that from them. vista
is an example of them living in a bubble. so as the web changes i do not
think silverlight will progress when they do not listen to the users.



On 4/29/07, simonjpalmer <[EMAIL PROTECTED]> wrote:
>
>   Does C# kill Java?
> Does IE kill Firefox?
> Does SQLServer kill Oracle?
> Does Windows kill UNIX?
> Will Silverlight kill Flex?
>
> From my 20 odd years of software development, during which time the
> Microsoft hegemony has been at its apogee, none of the above are true.
> In fact if you want a really scalable enterprise platform you would
> choose the right hand side of the list above rather than the left.
>
> Where Microsoft win hands down is in Office Applications and desktop
> operating systems. Excel is quite possibly the best piece of desktop
> software ever written (Word being the worst) and long may it reign as
> such. Windows is crap, but it's more than good enough for your
> average user and most Microsoft desktop products are actually pretty
> good (c'mon, be generous).
>
> I regret deeply that the rest of the world doesn't have a house full
> of beautiful, stable, simple Macs like I do, but the reality is that
> they don't as Jason points out. Instead the three or four computers
> the normal person interacts with in their daily lives are almost
> exclusively running Windows (even the ATM machines and tills at the
> supermarket). Not a pleasant truth, but a truth nonetheless. If you
> are looking for broad adoption and commercial success as a software
> company you start with Windows.
>
> The wonderful reality, however, is that the software industry, like
> all others in the history of human endeavour, thrives on competition
> and there is space for more than one company/product/offering to
> survive. Adobe are not going to be Microsoft. THANK GOD! They have
> and in my opinion will always have, a distinct and separate offering.
> If they can't retain that differentiation then they don't deserve to
> remain in business and the market will take care of them.
>
> So this is a bit of a silly thread as far as I am concerned. The
> answer for me is clearly No for all the same reasons that Microsoft
> haven't killed any of the other things on the list at the top. They
> might try, but I think they should be more worried about Google and
> web based desktop software than Adobe and the flash player.
>
> Simon
>
> --- In flexcoders@yahoogroups.com , Bjorn
> Schultheiss
> <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Hey Jason,
> >
> > Even if 90% of internet's users are running Windows, how many
> > millions aren't..
> > If you can deploy applications that is guaranteed to only be used by
> > Windows users, well good luck to you.
> >
> > Here we target creatives in the advertising industry and I don't have
> > that luxury.
> >
> >
> >
> >
> > 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.---))
> >
> >
> >
> > One person wrote:
> > > Everybody uses Windows, almost all the workstations are windows.
> Macs
> > > have IE working OK.
> >
> > Another responded:
> > >>Think again.
> > "Think again?" What kind of an argument is that? People keep
> > brining up certain technlogies not working on Mac OS or Linux as a
> > bad thing. Personally, I've never bought into the, "that technology
> > does not support obscure browser "X" or non-Windows operating system
> > "Y" and therefore is doomed to fail" argument. As much as

[flexcoders] Does FDS run on Vista?

2007-05-02 Thread Douglas McCarroll
Hi All,

I'm thinking of installing Apache, Tomcat and FDS on my Vista laptop.

I currently have the Home Premium version, but can upgrade to Ultimate.

I assume that Apache and Tomcat will work fine. Have you successfully 
installed FDS on Vista?

Which version of Vista?

With Tomcat or JRun?

Thanks,


Douglas


-

Douglas McCarroll
Flex Developer
http://www.brightworks.com
617.459.3840

-


RE: [flexcoders] Synchronizing data between viewStack elements

2007-05-02 Thread Jim Grinsfelder
I'd bind both sets of elements to the same dataproviders and that should
keep them synchronous without any extra work on your part.

 

Databinding via dataproviders has, for me anyhow, been really a good thing.
Use it.  It's not like the bad-old VB 1.0 days when it had promise but was
totally frustrating.  IT seems to work in Flex.

 

1.  Design visuals.
2.  Make objects that contain the data you want to display
3.  Bind the objects to the visuals via dataproviders
4.  Write some code to fill out the object and the UI will work.

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ian Skinner
Sent: Wednesday, May 02, 2007 11:15 AM
To: [EMAIL PROTECTED]; flexcoders@yahoogroups.com
Subject: [flexcoders] Synchronizing data between viewStack elements

 

When a user clicks on a container built with repeated array collection 
elements in one viewStack layer, the selected element needs to be 
utilized to populate the data in a second viewStack layer and 
vice-a-versa.

Conceptually how does one do this? Do I set some type of global 
variable|pointer or pass the objects from one view to the other somehow 
or can one view layer be aware of another's data?

I suspect this is not a detailed enough description, please feel free to 
ask questions to help me describe the specifics.

 



Re: [flexcoders] DataGrid column header - wordWrap - but not break whole words

2007-05-02 Thread slangeberg

I did fumble around a bit with the header renderer, and that is probably the
ultimate way to go. However, I was able to come up with a pretty low-tech
solution, for the time being:

http://blog.criticalpile.com/?p=13

-Scott

On 4/27/07, Manish Jethani <[EMAIL PROTECTED]> wrote:


  On 4/28/07, slangeberg <[EMAIL PROTECTED] >
wrote:
> Any one come up with a strategy so that labels in the DataGrid column
> headers (or elsewhere) can wrap, but not be broken in the midde of a
word?

That's the behaviour of the built-in TextField object and I don't
think anything can be done about it. You could maybe write your own
header renderer and write the word-wrapping logic yourself (and
truncate words that are longer than the available width).
 





--

: : ) Scott


[flexcoders] Synchronizing data between viewStack elements

2007-05-02 Thread Ian Skinner
When a user clicks on a container built with repeated array collection 
elements in one viewStack layer, the selected element needs to be 
utilized to populate the data in a second viewStack layer and 
vice-a-versa.

Conceptually how does one do this?  Do I set some type of global 
variable|pointer or pass the objects from one view to the other somehow 
or can one view layer be aware of another's data?

I suspect this is not a detailed enough description, please feel free to 
ask questions to help me describe the specifics.



[flexcoders] Re: how manipulate servlet image stream

2007-05-02 Thread Doug Lowder
Hi,

In your mxml application, simply use:

http://localhost:8080/seamservices/GetImage"; />

Of course, you'll need to change "localhost" to the server name if 
you want to be able to access the image from somewhere other than the 
local host system.

--- In flexcoders@yahoogroups.com, "lruinelli" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> I have a servlet which return a stream of a jpg image:
> 
> ...the url is the following: 
http://localhost:8080/seamservices/GetImage
> 
> Using this url in a browser the image is correctly loaded!
> 
> How can I load the image form a flex client?
> 
> 
> ...thanks!
> Saluti 
> Lorenzo
>




RE: [flexcoders] DataGrid Column bug

2007-05-02 Thread Alex Harui
That should be fixed in the latest hotfix.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Flexing...
Sent: Wednesday, May 02, 2007 4:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid Column bug



Hi All,

I am hiding one of the columns of the datagrid based on the value of 
a variable i.e. visible={isVisible}.
The column is hidden the first time I populate data to it
but if I repopulate data (, the value of isVisible is still false), 
the hidden column shows up.

Even if I reset the value of isVisible to false, it doesn't get hidden.

The only workaround which seem to work is set value of "visible" to 
true and then set "visible=isVisible".

Is this a known issue with DataGrid?

Thanks



 


Re: [flexcoders] ProgressBar.mode="polled" gives me problems

2007-05-02 Thread Troy Gilbert

Hi Pan,

I completely agree with you ... the progress bar definitely seems designed
around the conventional use case you described of being hooked to a Loader
(or derivative). For something so simple it should have been generalized a
bit more.

I think Alex's point was that yes, it's a bug, and a workaround would be
using an EventListener object for the source... of course, you could always
sub-class or cut-n-paste the ProgressBar to make your own that does the
right thing... until Adobe provides a bug-fixed version, that is.

Beyond that, let's hope that the bug gets fixed properly, the API gets
tweaked appropriately, and we get a new SDK drop in the future! ;-)

Troy.


On 5/2/07, Pan Troglodytes <[EMAIL PROTECTED]> wrote:


  Oh, I definitely could, if I absolutely had to make it work this way.
The problem I see is that the polled mode is very useful for a very specific
set of circumstances.  But I don't find it very useful in the general
sense.  It's called a "progress bar", but it seems to have been designed
very narrowly (at least in polled mode) as a bar to hook up to different
loaders of content, measured in bytes.  A polled method would be very useful
and easy to use, if it just had an event defined for the progress bar for
getTotal and getProgress.  Then it would be a breeze to hook up the events
and be on your way.

The help is also erroneous in claiming it uses "getBytesLoaded() and
getBytesTotal() methods."  In the code, it actually reads "bytesLoaded" and
"bytesTotal" properties.  This also thwarts my plans of just having a simple
object like this:

[Bindable] public var progress:Object = {
  bytesLoaded:getProgressBytesLoaded,
  bytesTotal:getProgressBytesTotal,
  removeEventListener:kludgeRemoveEventListener
}

private function kludgeRemoveEventListener(event_type:String,
listener_function:Function):void { }

private function getProgressBytesLoaded():Number
{
  //figure out current progress...
  return currentProgress;
}

private function getProgressBytesTotal():Number
{
  return maxProgress;
}



On 5/2/07, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>Looks like a bug.  We expected the source to be an EventDispatcher.
>  Can you subclass EventDispatcher instead of Object?
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
> *On Behalf Of *Pan Troglodytes
> *Sent:* Tuesday, May 01, 2007 9:31 PM
> *To:* flexcoders
> *Subject:* [flexcoders] ProgressBar.mode="polled" gives me problems
>
>
>
> All the help says about setting ProgressBar.mode="polled" is:
>
>
> polled: The source property must specify an object  that exposes
> getBytesLoaded() and getBytesTotal()  methods. The ProgressBar control calls
> these methods to update its status.
>
> But this doesn't seem to be true.  For example, it seems
> ProgressBar.commit always wants to do this to the source:
> _source.removeEventListener(ProgressEvent.PROGRESS,
> progressHandler);
> _source.removeEventListener(Event.COMPLETE,
> completeHandler);
>
> Which is a real drag if your source was going to be a simple little
> object with just getBytesLoaded() and getBytesTotal() methods.
>
> It's a bit silly that the code always tries to remove these event
> listeners whenever you set the source, since these event listeners never got
> set to begin with (the source was empty before setting it).
>
> Is there something I'm missing or is the mode="polled" setting a bit
> funky?  My searches seem to show very little information for people using it
> this way.
>
> --
> Jason
>
>


--
Jason

 



[flexcoders] How to include an external stylesheet ONCE and have all components use it?

2007-05-02 Thread tjcox1969
Is it possible to include a style sheet in the main application mxml
file and then have all other components and custom components use
those styles?  Or do I have to include the mx:Style statement in each
custom component.  I have several CSS files that many of my custom
components will use, but I dont want to have to include the mx:style
statement in every single custom component.  I was hoping to include a
reference to the CSS files once in the main application mxml file and
have the custom components be able to reference style within those CSS
files.  It does not seem to work.  I have to include the CSS
references in ALL of my custom components which seems odd since what
happens if I change the name of one of those CSS filesI would then
have to find all custom components that reference it.

Thanks!





[flexcoders] Re: Html Text does NOT print in same format as rendered on scre

2007-05-02 Thread scott_flex
I thought about that. I don't know how to make it a bitmap yet but 
from what i've seen i should be able to fairly easily...and I assume 
i can send a bitmap image to the printer.

In my real app i'm taking a few panels and adding them to a vbox 
control so I can create "pages" to send to the printer.  I calculate 
the height and when the combined height of my panels with text are 
taller than a page 700ish pixels high, i create another page... this 
also allows me to have a nice print preview screen so they see 
exactly how it will print...

--Scott


--- In flexcoders@yahoogroups.com, John Mark Hawley <[EMAIL PROTECTED]> wrote:
>
> Can you make the display object into a bitmap and then print that 
instead?
> 
> > 
> > From: "scott_flex" <[EMAIL PROTECTED]>
> > Date: 2007/05/02 Wed AM 08:55:20 CDT
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Html Text does NOT print in same format 
as rendered on screen..
> > 
> > 
> > Here's a small sample app to illustrate what i'm running into..
> > 
> > http://www.scottkrause.com/PrintTest/PrintingTest.html
> > 
> > Right click to view source It's one file.
> > 
> > When you click the print button it just adds the text control to 
the 
> > print job object. You'll notice not all the text is printed... 
I've 
> > been testing sending the document to the printer as well as (for 
> > saving paper) printing to pdf or Microsoft Document Image writer.
> > 
> > 
> > --Scott
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> > >
> > > Can you make a really small test case?
> > > 
> > >  
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com 
> > [mailto:[EMAIL PROTECTED] On
> > > Behalf Of scott_flex
> > > Sent: Tuesday, May 01, 2007 6:58 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Html Text does NOT print in same format as
> > > rendered on screen..
> > > 
> > >  
> > > 
> > > 
> > > Text/Fonts render differently when sent to the printer than 
when 
> > > viewed on screen, this is a real PAIN when formatting display 
> > objects 
> > > to send to the printer.
> > > 
> > > I've added a few Text controls to to a vbox with variable 
length 
> > > data, some have custom font formatting, ALL installed fonts, 
even 
> > > tested with embedded fonts.
> > > 
> > > The width of the text box is 100%, which fills to the width of 
the 
> > > vbox, and the height is not set, so it grows to show all text. 
> > Works 
> > > great.. except when sent to the printer.
> > > 
> > > When I send these text controls to the print job.addObject and 
set 
> > > scale type to show all, the text breaks at different points and 
> > does 
> > > NOT render the same as seen on screen. If the text happens to 
> > render 
> > > a bit wider, teh font could go to the next line and therefore 
NOT 
> > > print.
> > > 
> > > I JUST WANT THE Text DISPLAY OBJECT to print on the printer in 
the 
> > > exact format/rendering as seen on screen... is this not 
possible. I 
> > > think when you send this text control to the printer, flash 
trys to 
> > > get smart and not render the text as an image but as text... 
which 
> > > changes some line breaks and such... this is really annoying.
> > > 
> > > Not sure how to solf this issue... just want all my text to 
print. 
> > > 
> > > Any help would be appreciated.
> > > 
> > > I posted this same issue in another post... not sure it was 
clear 
> > as 
> > > to what my problem is.
> > >
> > 
> > 
> > 
> > 
> 
> --
> John Mark Hawley
> The Nilbog Group
> 773.968.4980 (cell)
>




Re: [flexcoders] CacheAsBitmap stops working.

2007-05-02 Thread Troy Gilbert

Yeah, you're hitting the 2880 pixel limit with bitmaps. No bitmap, including
cached bitmaps, can be bigger than 2880 px in either dimension. In the case
of cacheAsBitmap, it stops caching when that's the case.

Fortunately, you can control it a bit... I'd imagine that even when zooming
in you're only showing less than 2880 pixels actually on screen. So, you can
do a bit of caching. And you can control the size of the cached bitmap by
setting the scrollRect for the displayObject.

Now, I'm not sure if the scrollRect is "smart" in that when you move it it
simply redraws (stupid) or does a partial copy and a partial render
(smart)... if its smart, then you've got it pretty easy, just move the
scrolllRect around your map instead of moving the map (or its SWFLoader)
around inside a container.

Another option would be to simply make the scrollRect be as big as possible
while still being smaller than 2880px. This would allow you to drag the map
around locally without it having to redraw but forcing a redraw if you
dragged too far. Kinda similar result to a tiled renderer, not quite as
efficient, but a whole lot less code!

Troy.


On 5/2/07, helix206 <[EMAIL PROTECTED]> wrote:


  Hello all,

I have this strange ans stupid problem and the deathline is comming
in a fiew days, so i hope someone will be able to help me.

First of, I am trying to drag a vector map inside another container
fluidly.

So, I have a vector map, exported to .SWF. This map is loaded with
SWFLoader in another container, and the SWFLoader has a property
CacheAsBitmap set to True. Everything works just fine, and the map
drags very well inside the container. Problems araise when i zoom the
map (actualy scale it) beyond 2000px. Then draging becomes very slow,
and i sopose that CacheAsbitmap property just stops working.

So, does anyone has any idea why is this heppening, and how could i
solve it?

I will accept any sollution except tiling my map into 100 tiles and
showing only the ones that are on the screen. If no sollution will be
provided then i guess ill have to do it that way.

Any help appriciated.

 



Re: [flexcoders] Using SVN (tortoise) with Flex Builder

2007-05-02 Thread Troy Gilbert

One option that may help (or may not) is using Subclipse plug-in to have
native SVN support inside of Flex Builder? I'm not quite clear on the issues
you're encountering, but I know that the advantage of using the Subclipe
plugin over command-line SVN is that the plug-in knows what should and
shouldn't be checked into SVN and works nicely with multiple users. It also
has a very easy integration into Flex Builder (I like it quite a bit!).

Troy.


On 5/2/07, Mark Ingram <[EMAIL PROTECTED]> wrote:


  Local servers and invoking web services on separate machines doesn't
reflect our live target environment. We want to develop on systems that
are as close to the live version as possible. And also, it's a pain
having to setup web servers on development PCs for the number of
developers we have, it's much easier to have one central server and just
work on that.

Current situation:

1) SVN Checkout
2) Run batch script:
.actionScriptProperties.template -> .actionScriptProperties
.flexProperties.template -> .flexProperties
.project -> .project
3) Import into Flex Builder

Done.

If we need to add a project reference (to another project in the
workspace) the reference is placed in one of the above files (that can't
be submitted to SVN). So the developers don't all receive the new
project reference.

Thanks,


-Original Message-
From: flexcoders@yahoogroups.com  [mailto:
flexcoders@yahoogroups.com ] On
Behalf Of Tom Chiverton
Sent: 02 May 2007 14:29
To: flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Using SVN (tortoise) with Flex Builder

On Wednesday 02 May 2007, Mark Ingram wrote:
> build, we want to build to 2 different folders on a server, e.g.

Solution one - just give everyone their own (local) server.

> central server because it hooks up to WebServices which are hosted on
> the same machine.

Does it matter ? Can you not just as well invoke them from another
machine ?

> OUTPUTFOLDER - X:\flex\mark - BUT I can't make one for the output
folder
> URL - it says the path doesn't exist (it is trying to find it on the
> file system). I have also tried using environment variables (%me%) in
> the paths - but Flex Builder doesn't seem to expand these out - even
> though Internet Explorer does.

In the project properties, set the output folder to wherever the web
root
appears in your local filesystem.

> As a final note - The current setup involves running a batch file
after
> you have checked out the repository, this copies the project files
from
> a set of templates which are stored in SVN, the actual projects files
> aren't committed which means developers are free to change the values.
> However, the trouble comes when I need to add a reference to another
> project. I must tell all the other developers to add a reference too!!

Can you give an example of what you mean ?

--
Tom Chiverton
Helping to preemptively morph robust relationships
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] CacheAsBitmap stops working.

2007-05-02 Thread Troy Gilbert

Oh, and another issue you may run into... coordinates inside a container
can't be outside of the range +/- 8191 or the object vanishes. So, that too
could be an issue when you get into larger maps depending on how you're
scrolling them around.

I've run into both of these issues in my current work where I'm developing a
pretty open-ended game system which has required me to take on a lot of
issues that I had hoped Flash's native renderer would juggle for me, like
smart bitmap caching and coordinate virtualization (moving beyond the +/-
8191 limit). I'll be honest, I've not solved them both myself, yet... but
will have to over the next few weeks, so anything you learn would be much
appreciated...

Troy.


On 5/2/07, Troy Gilbert <[EMAIL PROTECTED]> wrote:


Yeah, you're hitting the 2880 pixel limit with bitmaps. No bitmap,
including cached bitmaps, can be bigger than 2880 px in either dimension. In
the case of cacheAsBitmap, it stops caching when that's the case.

Fortunately, you can control it a bit... I'd imagine that even when
zooming in you're only showing less than 2880 pixels actually on screen. So,
you can do a bit of caching. And you can control the size of the cached
bitmap by setting the scrollRect for the displayObject.

Now, I'm not sure if the scrollRect is "smart" in that when you move it it
simply redraws (stupid) or does a partial copy and a partial render
(smart)... if its smart, then you've got it pretty easy, just move the
scrolllRect around your map instead of moving the map (or its SWFLoader)
around inside a container.

Another option would be to simply make the scrollRect be as big as
possible while still being smaller than 2880px. This would allow you to drag
the map around locally without it having to redraw but forcing a redraw if
you dragged too far. Kinda similar result to a tiled renderer, not quite as
efficient, but a whole lot less code!

Troy.


On 5/2/07, helix206 <[EMAIL PROTECTED]> wrote:
>
>   Hello all,
>
> I have this strange ans stupid problem and the deathline is comming
> in a fiew days, so i hope someone will be able to help me.
>
> First of, I am trying to drag a vector map inside another container
> fluidly.
>
> So, I have a vector map, exported to .SWF. This map is loaded with
> SWFLoader in another container, and the SWFLoader has a property
> CacheAsBitmap set to True. Everything works just fine, and the map
> drags very well inside the container. Problems araise when i zoom the
> map (actualy scale it) beyond 2000px. Then draging becomes very slow,
> and i sopose that CacheAsbitmap property just stops working.
>
> So, does anyone has any idea why is this heppening, and how could i
> solve it?
>
> I will accept any sollution except tiling my map into 100 tiles and
> showing only the ones that are on the screen. If no sollution will be
> provided then i guess ill have to do it that way.
>
> Any help appriciated.
>
>  
>





Re: [flexcoders] Is it possible for a TitleWindow to open another TitleWindow?

2007-05-02 Thread Michael Schmalle

Hi,

Well, if I understand what you are saying, just create a creationComplete
handler on the parent window.

In that handler call PopUpManager.addPopUp() for the child window.

Peace, Mike

On 5/2/07, bruce1976 <[EMAIL PROTECTED]> wrote:


  Hi,

I haven't taken the time to try this out yet, but I wanted to know if
a TitleWindow could open another TitleWindow.

If anyone knows the answer, please let me know.

Thanks,

Bruce

 





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

Blog - Flex2Components
http://www.flex2components.com

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


Re: [flexcoders] Re: Html Text does NOT print in same format as rendered on scre

2007-05-02 Thread John Mark Hawley
Can you make the display object into a bitmap and then print that instead?

> 
> From: "scott_flex" <[EMAIL PROTECTED]>
> Date: 2007/05/02 Wed AM 08:55:20 CDT
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Html Text does NOT print in same format as rendered 
> on screen..
> 
> 
> Here's a small sample app to illustrate what i'm running into..
> 
> http://www.scottkrause.com/PrintTest/PrintingTest.html
> 
> Right click to view source It's one file.
> 
> When you click the print button it just adds the text control to the 
> print job object. You'll notice not all the text is printed... I've 
> been testing sending the document to the printer as well as (for 
> saving paper) printing to pdf or Microsoft Document Image writer.
> 
> 
> --Scott
> 
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
> >
> > Can you make a really small test case?
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of scott_flex
> > Sent: Tuesday, May 01, 2007 6:58 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Html Text does NOT print in same format as
> > rendered on screen..
> > 
> >  
> > 
> > 
> > Text/Fonts render differently when sent to the printer than when 
> > viewed on screen, this is a real PAIN when formatting display 
> objects 
> > to send to the printer.
> > 
> > I've added a few Text controls to to a vbox with variable length 
> > data, some have custom font formatting, ALL installed fonts, even 
> > tested with embedded fonts.
> > 
> > The width of the text box is 100%, which fills to the width of the 
> > vbox, and the height is not set, so it grows to show all text. 
> Works 
> > great.. except when sent to the printer.
> > 
> > When I send these text controls to the print job.addObject and set 
> > scale type to show all, the text breaks at different points and 
> does 
> > NOT render the same as seen on screen. If the text happens to 
> render 
> > a bit wider, teh font could go to the next line and therefore NOT 
> > print.
> > 
> > I JUST WANT THE Text DISPLAY OBJECT to print on the printer in the 
> > exact format/rendering as seen on screen... is this not possible. I 
> > think when you send this text control to the printer, flash trys to 
> > get smart and not render the text as an image but as text... which 
> > changes some line breaks and such... this is really annoying.
> > 
> > Not sure how to solf this issue... just want all my text to print. 
> > 
> > Any help would be appreciated.
> > 
> > I posted this same issue in another post... not sure it was clear 
> as 
> > to what my problem is.
> >
> 
> 
> 
> 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)



--
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] ProgressBar.mode="polled" gives me problems

2007-05-02 Thread Pan Troglodytes

Oh, I definitely could, if I absolutely had to make it work this way.  The
problem I see is that the polled mode is very useful for a very specific set
of circumstances.  But I don't find it very useful in the general sense.
It's called a "progress bar", but it seems to have been designed very
narrowly (at least in polled mode) as a bar to hook up to different loaders
of content, measured in bytes.  A polled method would be very useful and
easy to use, if it just had an event defined for the progress bar for
getTotal and getProgress.  Then it would be a breeze to hook up the events
and be on your way.

The help is also erroneous in claiming it uses "getBytesLoaded() and
getBytesTotal() methods."  In the code, it actually reads "bytesLoaded" and
"bytesTotal" properties.  This also thwarts my plans of just having a simple
object like this:

[Bindable] public var progress:Object = {
 bytesLoaded:getProgressBytesLoaded,
 bytesTotal:getProgressBytesTotal,
 removeEventListener:kludgeRemoveEventListener
}

private function kludgeRemoveEventListener(event_type:String,
listener_function:Function):void {}

private function getProgressBytesLoaded():Number
{
 //figure out current progress...
 return currentProgress;
}

private function getProgressBytesTotal():Number
{
 return maxProgress;
}



On 5/2/07, Alex Harui <[EMAIL PROTECTED]> wrote:


   Looks like a bug.  We expected the source to be an EventDispatcher.
 Can you subclass EventDispatcher instead of Object?


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Pan Troglodytes
*Sent:* Tuesday, May 01, 2007 9:31 PM
*To:* flexcoders
*Subject:* [flexcoders] ProgressBar.mode="polled" gives me problems



All the help says about setting ProgressBar.mode="polled" is:


polled: The source property must specify an object  that exposes
getBytesLoaded() and getBytesTotal()  methods. The ProgressBar control calls
these methods to update its status.

But this doesn't seem to be true.  For example, it seems
ProgressBar.commit always wants to do this to the source:
_source.removeEventListener(ProgressEvent.PROGRESS,
progressHandler);
_source.removeEventListener(Event.COMPLETE,
completeHandler);

Which is a real drag if your source was going to be a simple little object
with just getBytesLoaded() and getBytesTotal() methods.

It's a bit silly that the code always tries to remove these event
listeners whenever you set the source, since these event listeners never got
set to begin with (the source was empty before setting it).

Is there something I'm missing or is the mode="polled" setting a bit
funky?  My searches seem to show very little information for people using it
this way.

--
Jason

 





--
Jason


[flexcoders] BUG: DataTipFunction doesn't work with itemRender in TileList

2007-05-02 Thread Igor Costa


http://www.adobe.com/2006/mxml"; layout="absolute" xmlns:local="*">


   


   Tosco 1
   Tosco 2
   Tosco 3


   





Remove the itemrender and then you will see the DataTipFunction working.
--

Igor Costa
www.igorcosta.org
www.igorcosta.com


Re: [flexcoders] flex development @ linux

2007-05-02 Thread Tom Chiverton
On Wednesday 02 May 2007, Yiðit Boyar wrote:
> so if possible; how can i start developing flex @ linux ?

Download the SDK from Adobe.
You may also want to read: http://rachaelandtom.info/node/1344 if you want 
syntax high lights in Eclipse.

-- 
Tom Chiverton
Helping to adaptively enable global 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/
 


[flexcoders] how manipulate servlet image stream

2007-05-02 Thread lruinelli
Hello,

I have a servlet which return a stream of a jpg image:

...the url is the following: http://localhost:8080/seamservices/GetImage

Using this url in a browser the image is correctly loaded!

How can I load the image form a flex client?


...thanks!
Saluti 
Lorenzo





[flexcoders] Is it possible for a TitleWindow to open another TitleWindow?

2007-05-02 Thread bruce1976
Hi,

I haven't taken the time to try this out yet, but I wanted to know if
a TitleWindow could open another TitleWindow.

If anyone knows the answer, please let me know.

Thanks,

Bruce



[flexcoders] Re: Issue with custom item editor

2007-05-02 Thread bhaq1972
spotted a few problem with your example.
1) not sure if your event.columnIndex == 1 is correct. 
2) backgroundColor is a style not a property, so you cant set it 
like that in your itemEditBegin handler.

if all your trying to do is change the backgroundColor of the 
itemEditorInstance, then do it in the itemFocusIn handler

public function itemFocusInHandler():void {

  textinput:TextInput = dg.itemEditorInstance as TextInput;
  textinput.setStyle("backgroundColor", "red");
}




--- In flexcoders@yahoogroups.com, "Ghose, Sanjucta" 
<[EMAIL PROTECTED]> wrote:
>
> 
> I am trying to handle the itemEditBegin event to dynamically 
change the
> item editor for a particular datagrid cell.
> 
>  
> 
> The following code should produce an itemeditor with background 
color
> red. But this does not appear to work.
> 
>  
> 
> event.preventDefault();
> 
> var xxx:ClassFactory = new ClassFactory(TextInput);
> 
> xxx.properties = {backgroundColor:"red"};
> 
> contact.itemEditor = xxx;
> 
> dg.createItemEditor(event.columnIndex,event.rowIndex);
> 
>  
> 
> The whole code is :
> 
>  
> 
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute" creationComplete="initData()">
> 
>  
> 
> 
> 
>   
> 
> 
> 
>  itemEditBegin="disableEdit(event)">
> 
> 
> 
>  editable="false" id="contact"  />
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
>  
> 
>  
> 
>  
> 
> Thanks & Regards 
> 
>  
> 
> Sanjucta Ghose| Capgemini | Kolkata, India 
> 
> Senior Consultant - CSD
> 
> Direct: +91 33 66102511
> 
> VOIP:358 
> 
> Mobile:+919830215789
> 
> Email:[EMAIL PROTECTED]
> 
> Join the Collaborative Business Experience
> 
> visit http://www.in.capgemini.com
> 
>  
> 
> 
> 
> This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify 
the sender immediately and delete all  copies of this message.
>




RE: [flexcoders] Using SVN (tortoise) with Flex Builder

2007-05-02 Thread Mark Ingram
Local servers and invoking web services on separate machines doesn't
reflect our live target environment. We want to develop on systems that
are as close to the live version as possible. And also, it's a pain
having to setup web servers on development PCs for the number of
developers we have, it's much easier to have one central server and just
work on that.


Current situation:

1) SVN Checkout
2) Run batch script:
.actionScriptProperties.template -> .actionScriptProperties
.flexProperties.template -> .flexProperties
.project -> .project
3) Import into Flex Builder

Done.

If we need to add a project reference (to another project in the
workspace) the reference is placed in one of the above files (that can't
be submitted to SVN). So the developers don't all receive the new
project reference.

Thanks,




 -Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: 02 May 2007 14:29
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Using SVN (tortoise) with Flex Builder

On Wednesday 02 May 2007, Mark Ingram wrote:
> build, we want to build to 2 different folders on a server, e.g.

Solution one - just give everyone their own (local) server.

> central server because it hooks up to WebServices which are hosted on
> the same machine.

Does it matter ? Can you not just as well invoke them from another
machine ?

> OUTPUTFOLDER - X:\flex\mark - BUT I can't make one for the output
folder
> URL - it says the path doesn't exist (it is trying to find it on the
> file system). I have also tried using environment variables (%me%) in
> the paths - but Flex Builder doesn't seem to expand these out - even
> though Internet Explorer does.

In the project properties, set the output folder to wherever the web
root 
appears in your local filesystem.

> As a final note - The current setup involves running a batch file
after
> you have checked out the repository, this copies the project files
from
> a set of templates which are stored in SVN, the actual projects files
> aren't committed which means developers are free to change the values.
> However, the trouble comes when I need to add a reference to another
> project. I must tell all the other developers to add a reference too!!

Can you give an example of what you mean ?

-- 
Tom Chiverton
Helping to preemptively morph robust relationships
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] Re: initializing components in a viewstate (non base view)

2007-05-02 Thread gotjosh819i
I have narrowed it down to a transition effect - probably something i 
forgot to do :(

--- In flexcoders@yahoogroups.com, "gotjosh819i" <[EMAIL PROTECTED]> 
wrote:
>
> I commented out all of the bindings and ran teh code again, I got 
the 
> same error.
> 
> so I took out the change event function : viewSelectedProfile() 
then 
> the error stopped.
> 
> Here is the datagrid code:
>  headerStyleName="normalTenBold" 
> dataProvider="{userListDP}" initialize="test(event)"
> change="viewSelectedProfile(event 
>   
>dataField="isActive" width="50"/>
>dataField="user_lname" width="100"/>
>dataField="user_fname" width="100"/>
>dataField="user_phone" width="100"/>  
>   
>dataField="user_email"  width="200" />

>   
>headerText="Roles" dataField="roles"  width="200" 
> itemRenderer="com.sync.view.community.RolesList" />
>   
> 
> 
> 
> change event function:
> private function viewSelectedProfile(e:Event):void {
>   this.currentState = 'viewSelected';
>   //trace(e.currentTarget.selectedItem.roles);
> }
> 
> 
> Any ideas why this is throwing a mouseHandler datagrid error?  it 
has 
> something to do with the viewstate being changed again bc the error 
> doesnt throw when i comment out this.currentState = 'viewSelected'
> 
> 
> --- In flexcoders@yahoogroups.com, "gotjosh819i"  
> wrote:
> >
> > Hello all,  I am stuck on an issue and have run out of ideas to 
> debug 
> > it. (see below)
> > 
> > I am having an issue with a binding.  I have a datagrid and the 
> > onchange event triggers the viewstate to change and some 
> > labels/images appear, some of which have data bindings to the 
> > datagrid selection.
> > 
> > I think the problem is that those label/image components within 
the 
> > view are not initialized and the error is thrown since the data 
> > binding doesnt know those items exist, even though the 
> creationPolicy 
> > is set to all at the top level. (the mxml file that has the 
> viewstate 
> > in it).
> > 
> > Since its not being initialized I get this error each time I 
click 
> on 
> > a datagrid row.
> > 
> > TypeError: Error #1009: Cannot access a property or method of a 
> null 
> > object reference.
> > at mx.controls::DataGrid/mx.controls:DataGrid::mouseUpHandler
> > ()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\DataGrid.as:4218]
> > 
> > I am positive those items are not being init'd bc i put a 
> initialize 
> > test function that traces the components when they are 
initialized 
> > just to see if the error is occuring after they are initialized 
or 
> > before they are.  This is happening before and the item never 
gets 
> > init'd.
> > 
> > private function test(e:Event):void {
> > trace("item init: " + e.currentTarget);
> > }
> > 
> > one of the items hidden in a viewstate:
> > 
> > 
> >  > textAlign="right"/>
> > 
> >  initialize="test
> > (event)"/>  
> > 
> >   
> > 
> > 
> > The odd thing is that the canvas which is just before the HBox 
> above, 
> > is being init'd, then the error occurs and the image component 
> doesnt 
> > init.
> > 
> > last thing: the error in the debugger pulls up DataGrid.as and 
> points 
> > to line 4217:
> > 
> >   if (headerVisible)
> > pos.y--;
> > 
> > 
> > any ideas on how to get past this issue?  
> > 
> > - thanks in advance ~ Josh
> >
>




[flexcoders] Re: Issue with custom item editor

2007-05-02 Thread mark_j_ellul
Hi Sanjucta 

Wouldn't a custom ItemRenderer be more appropriate?

Check out the below link... 

http://weblogs.macromedia.com/pent/archives/2007/02/coloring_the_ba.cfm

Regards

Mark
--- In flexcoders@yahoogroups.com, "Ghose, Sanjucta"
<[EMAIL PROTECTED]> wrote:
>
> 
> I am trying to handle the itemEditBegin event to dynamically change the
> item editor for a particular datagrid cell.
> 
>  
> 
> The following code should produce an itemeditor with background color
> red. But this does not appear to work.
> 
>  
> 
> event.preventDefault();
> 
> var xxx:ClassFactory = new ClassFactory(TextInput);
> 
> xxx.properties = {backgroundColor:"red"};
> 
> contact.itemEditor = xxx;
> 
> dg.createItemEditor(event.columnIndex,event.rowIndex);
> 
>  
> 
> The whole code is :
> 
>  
> 
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute" creationComplete="initData()">
> 
>  
> 
> 
> 
>   
> 
> 
> 
>  itemEditBegin="disableEdit(event)">
> 
> 
> 
>  editable="false" id="contact"  />
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
>  
> 
>  
> 
>  
> 
> Thanks & Regards 
> 
>  
> 
> Sanjucta Ghose| Capgemini | Kolkata, India 
> 
> Senior Consultant - CSD
> 
> Direct: +91 33 66102511
> 
> VOIP:358 
> 
> Mobile:+919830215789
> 
> Email:[EMAIL PROTECTED]
> 
> Join the Collaborative Business Experience
> 
> visit http://www.in.capgemini.com
> 
>  
> 
> 
> 
> This message contains information that may be privileged or
confidential and is the property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are not
the intended recipient,  you are not authorized to read, print,
retain, copy, disseminate,  distribute, or use this message or any
part thereof. If you receive this  message in error, please notify the
sender immediately and delete all  copies of this message.
>




[flexcoders] Re: Html Text does NOT print in same format as rendered on screen..

2007-05-02 Thread scott_flex

I also just noticed something funny in this example...

After i send the text control to the printer the height of my text 
control get's smaller, instead of showing all lines (4 of them) it 
shrinks in height to just show 3 lines of text cutting off the text...

That does not happen in my real application but in my real applicatin 
i'm not sending the text control directly to the printer.  The text 
control is wrapped inside a grid table and panel control which is 
sent to the printer still has same strange effects on text 
though...


--Scott


--- In flexcoders@yahoogroups.com, "scott_flex" <[EMAIL PROTECTED]> wrote:
>
> 
> Here's a small sample app to illustrate what i'm running into..
> 
> http://www.scottkrause.com/PrintTest/PrintingTest.html
> 
> Right click to view source It's one file.
> 
> When you click the print button it just adds the text control to 
the 
> print job object. You'll notice not all the text is printed... I've 
> been testing sending the document to the printer as well as (for 
> saving paper) printing to pdf or Microsoft Document Image writer.
> 
> 
> --Scott
> 
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > Can you make a really small test case?
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of scott_flex
> > Sent: Tuesday, May 01, 2007 6:58 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Html Text does NOT print in same format as
> > rendered on screen..
> > 
> >  
> > 
> > 
> > Text/Fonts render differently when sent to the printer than when 
> > viewed on screen, this is a real PAIN when formatting display 
> objects 
> > to send to the printer.
> > 
> > I've added a few Text controls to to a vbox with variable length 
> > data, some have custom font formatting, ALL installed fonts, even 
> > tested with embedded fonts.
> > 
> > The width of the text box is 100%, which fills to the width of 
the 
> > vbox, and the height is not set, so it grows to show all text. 
> Works 
> > great.. except when sent to the printer.
> > 
> > When I send these text controls to the print job.addObject and 
set 
> > scale type to show all, the text breaks at different points and 
> does 
> > NOT render the same as seen on screen. If the text happens to 
> render 
> > a bit wider, teh font could go to the next line and therefore NOT 
> > print.
> > 
> > I JUST WANT THE Text DISPLAY OBJECT to print on the printer in 
the 
> > exact format/rendering as seen on screen... is this not possible. 
I 
> > think when you send this text control to the printer, flash trys 
to 
> > get smart and not render the text as an image but as text... 
which 
> > changes some line breaks and such... this is really annoying.
> > 
> > Not sure how to solf this issue... just want all my text to 
print. 
> > 
> > Any help would be appreciated.
> > 
> > I posted this same issue in another post... not sure it was clear 
> as 
> > to what my problem is.
> >
>




[flexcoders] Re: Html Text does NOT print in same format as rendered on screen..

2007-05-02 Thread scott_flex

Here's a small sample app to illustrate what i'm running into..

http://www.scottkrause.com/PrintTest/PrintingTest.html

Right click to view source It's one file.

When you click the print button it just adds the text control to the 
print job object. You'll notice not all the text is printed... I've 
been testing sending the document to the printer as well as (for 
saving paper) printing to pdf or Microsoft Document Image writer.


--Scott


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Can you make a really small test case?
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of scott_flex
> Sent: Tuesday, May 01, 2007 6:58 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Html Text does NOT print in same format as
> rendered on screen..
> 
>  
> 
> 
> Text/Fonts render differently when sent to the printer than when 
> viewed on screen, this is a real PAIN when formatting display 
objects 
> to send to the printer.
> 
> I've added a few Text controls to to a vbox with variable length 
> data, some have custom font formatting, ALL installed fonts, even 
> tested with embedded fonts.
> 
> The width of the text box is 100%, which fills to the width of the 
> vbox, and the height is not set, so it grows to show all text. 
Works 
> great.. except when sent to the printer.
> 
> When I send these text controls to the print job.addObject and set 
> scale type to show all, the text breaks at different points and 
does 
> NOT render the same as seen on screen. If the text happens to 
render 
> a bit wider, teh font could go to the next line and therefore NOT 
> print.
> 
> I JUST WANT THE Text DISPLAY OBJECT to print on the printer in the 
> exact format/rendering as seen on screen... is this not possible. I 
> think when you send this text control to the printer, flash trys to 
> get smart and not render the text as an image but as text... which 
> changes some line breaks and such... this is really annoying.
> 
> Not sure how to solf this issue... just want all my text to print. 
> 
> Any help would be appreciated.
> 
> I posted this same issue in another post... not sure it was clear 
as 
> to what my problem is.
>




[flexcoders] CacheAsBitmap stops working.

2007-05-02 Thread helix206
Hello all,

I have this strange ans stupid problem and the deathline is comming 
in a fiew days, so i hope someone will be able to help me.

First of, I am trying to drag a vector map inside another container 
fluidly.

So, I have a vector map, exported to .SWF. This map is loaded with 
SWFLoader in another container, and the SWFLoader has a property 
CacheAsBitmap set to True. Everything works just fine, and the map 
drags very well inside the container. Problems araise when i zoom the 
map (actualy scale it) beyond 2000px. Then draging becomes very slow, 
and i sopose that CacheAsbitmap property just stops working.

So, does anyone has any idea why is this heppening, and how could i 
solve it?

I will accept any sollution except tiling my map into 100 tiles and 
showing only the ones that are on the screen. If no sollution will be 
provided then i guess ill have to do it that way.

Any help appriciated.





[flexcoders] Re: initializing components in a viewstate (non base view)

2007-05-02 Thread gotjosh819i
I commented out all of the bindings and ran teh code again, I got the 
same error.

so I took out the change event function : viewSelectedProfile() then 
the error stopped.

Here is the datagrid code:





  






change event function:
private function viewSelectedProfile(e:Event):void {
this.currentState = 'viewSelected';
//trace(e.currentTarget.selectedItem.roles);
}


Any ideas why this is throwing a mouseHandler datagrid error?  it has 
something to do with the viewstate being changed again bc the error 
doesnt throw when i comment out this.currentState = 'viewSelected'


--- In flexcoders@yahoogroups.com, "gotjosh819i" <[EMAIL PROTECTED]> 
wrote:
>
> Hello all,  I am stuck on an issue and have run out of ideas to 
debug 
> it. (see below)
> 
> I am having an issue with a binding.  I have a datagrid and the 
> onchange event triggers the viewstate to change and some 
> labels/images appear, some of which have data bindings to the 
> datagrid selection.
> 
> I think the problem is that those label/image components within the 
> view are not initialized and the error is thrown since the data 
> binding doesnt know those items exist, even though the 
creationPolicy 
> is set to all at the top level. (the mxml file that has the 
viewstate 
> in it).
> 
> Since its not being initialized I get this error each time I click 
on 
> a datagrid row.
> 
> TypeError: Error #1009: Cannot access a property or method of a 
null 
> object reference.
>   at mx.controls::DataGrid/mx.controls:DataGrid::mouseUpHandler
> ()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\DataGrid.as:4218]
> 
> I am positive those items are not being init'd bc i put a 
initialize 
> test function that traces the components when they are initialized 
> just to see if the error is occuring after they are initialized or 
> before they are.  This is happening before and the item never gets 
> init'd.
> 
> private function test(e:Event):void {
>   trace("item init: " + e.currentTarget);
> }
> 
> one of the items hidden in a viewstate:
> 
>   
>textAlign="right"/>
>   
>   
>   
> 
> 
> 
> The odd thing is that the canvas which is just before the HBox 
above, 
> is being init'd, then the error occurs and the image component 
doesnt 
> init.
> 
> last thing: the error in the debugger pulls up DataGrid.as and 
points 
> to line 4217:
> 
>   if (headerVisible)
> pos.y--;
> 
> 
> any ideas on how to get past this issue?  
> 
> - thanks in advance ~ Josh
>




Re: [flexcoders] Using SVN (tortoise) with Flex Builder

2007-05-02 Thread Tom Chiverton
On Wednesday 02 May 2007, Mark Ingram wrote:
> build, we want to build to 2 different folders on a server, e.g.

Solution one - just give everyone their own (local) server.

> central server because it hooks up to WebServices which are hosted on
> the same machine.

Does it matter ? Can you not just as well invoke them from another machine ?

> OUTPUTFOLDER - X:\flex\mark - BUT I can't make one for the output folder
> URL - it says the path doesn't exist (it is trying to find it on the
> file system). I have also tried using environment variables (%me%) in
> the paths - but Flex Builder doesn't seem to expand these out - even
> though Internet Explorer does.

In the project properties, set the output folder to wherever the web root 
appears in your local filesystem.

> As a final note - The current setup involves running a batch file after
> you have checked out the repository, this copies the project files from
> a set of templates which are stored in SVN, the actual projects files
> aren't committed which means developers are free to change the values.
> However, the trouble comes when I need to add a reference to another
> project. I must tell all the other developers to add a reference too!!

Can you give an example of what you mean ?

-- 
Tom Chiverton
Helping to preemptively morph robust relationships
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] initializing components in a viewstate (non base view)

2007-05-02 Thread gotjosh819i
Hello all,  I am stuck on an issue and have run out of ideas to debug 
it. (see below)

I am having an issue with a binding.  I have a datagrid and the 
onchange event triggers the viewstate to change and some 
labels/images appear, some of which have data bindings to the 
datagrid selection.

I think the problem is that those label/image components within the 
view are not initialized and the error is thrown since the data 
binding doesnt know those items exist, even though the creationPolicy 
is set to all at the top level. (the mxml file that has the viewstate 
in it).

Since its not being initialized I get this error each time I click on 
a datagrid row.

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at mx.controls::DataGrid/mx.controls:DataGrid::mouseUpHandler
()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\DataGrid.as:4218]

I am positive those items are not being init'd bc i put a initialize 
test function that traces the components when they are initialized 
just to see if the error is occuring after they are initialized or 
before they are.  This is happening before and the item never gets 
init'd.

private function test(e:Event):void {
trace("item init: " + e.currentTarget);
}

one of the items hidden in a viewstate:




  

  


The odd thing is that the canvas which is just before the HBox above, 
is being init'd, then the error occurs and the image component doesnt 
init.

last thing: the error in the debugger pulls up DataGrid.as and points 
to line 4217:

  if (headerVisible)
pos.y--;


any ideas on how to get past this issue?  

- thanks in advance ~ Josh




[flexcoders] Issue with custom item editor

2007-05-02 Thread Ghose, Sanjucta

I am trying to handle the itemEditBegin event to dynamically change the
item editor for a particular datagrid cell.

 

The following code should produce an itemeditor with background color
red. But this does not appear to work.

 

event.preventDefault();

var xxx:ClassFactory = new ClassFactory(TextInput);

xxx.properties = {backgroundColor:"red"};

contact.itemEditor = xxx;

dg.createItemEditor(event.columnIndex,event.rowIndex);

 

The whole code is :

 



http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="initData()">

 



  















   





 

 

 

Thanks & Regards 

 

Sanjucta Ghose| Capgemini | Kolkata, India 

Senior Consultant - CSD

Direct: +91 33 66102511

VOIP:358 

Mobile:+919830215789

Email:[EMAIL PROTECTED]

Join the Collaborative Business Experience

visit http://www.in.capgemini.com

 



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


[flexcoders] Setup Issues with Release 3.1.0.1

2007-05-02 Thread Jurgen Beck
I may have missed something setting up the latest release on a test 
server, but I am getting strange errors:

Going t the Management console I get an immediate Security error dialog 
that states that 'Send failed'. A follow-up error pop-up states the 
following:

faultCode:Client.Error.MessageSend faultString:'Send failed' 
faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: 
HTTP: Status 500: url: 'http://localhost/weborb30/console/weborb.aspx''

I get Send Failed errors all over the place, including trying to run the 
examples.

Again, this is on a Win 2003 test server I set up in a virtual machine, 
so it's perfectly reasonable that I missed something setting up IIS.

Any suggestions?

Thanks,

Jurgen


[flexcoders] Page access problem

2007-05-02 Thread Vinoth
Just have a look on below code. 

 





http://www.adobe.com/2006/mxml"; 
xmlns:local="*">

   

 





   









 





 



   







 

 

 





http://www.adobe.com/2006/mxml"; >

  

   

   

  



 --

 





http://www.adobe.com/2006/mxml"; >

  



  




-


 

when button `Load page2 from main' or `Load page1 from main' selected 
corresponding page will get load in the main 

How to load page2 when `Load Page2 from page1' button selected ?

Thanks in advance,
Vinoth Babu T.J.




[flexcoders] List Component scrambles rows

2007-05-02 Thread flashcrow2000
Hello,

I have a list component which gets populated when i run a simple 
query. I receive the result in an array and I set that array as the 
data provider. Also, I have an ItemRenderer which displays part of 
data (each data contains information regarding cities: name, dates, 
numbers, etc; I only display the name and the country).

The problem appears when I scroll in the List. If I scroll to the 
bottom and then scroll back up, the first item is different than 
before. 

I tried to use "invalidateList" on a scroll function but nothing 
changed.

I believe it has something to do with the Item renderer. Can you 
help 
me out please?

Cosmin
(if this is a double post, sorry...i received a Delivery status 
Notification)



[flexcoders] Using SVN (tortoise) with Flex Builder

2007-05-02 Thread Mark Ingram
Hi, I am having real trouble getting Flex Builder to work with multiple
developers here at work. User and project settings are stored in the
same file, so the files, .actionScriptProperties, .flexProperties and
.project can't be submitted to SVN. The problem comes because when we
build, we want to build to 2 different folders on a server, e.g.

 

http://myserver/flex/mark - me

http://myserver/flex/ian - workmate

 

The reason we can't both output to the same directory is one would
overwrite the other's changes during testing, which is no use as it
means only one developer can work in Flex at a time. And we must use a
central server because it hooks up to WebServices which are hosted on
the same machine.

 

I've noticed I can use symbolic links and have made a link for
OUTPUTFOLDER - X:\flex\mark - BUT I can't make one for the output folder
URL - it says the path doesn't exist (it is trying to find it on the
file system). I have also tried using environment variables (%me%) in
the paths - but Flex Builder doesn't seem to expand these out - even
though Internet Explorer does.

 

 

So - how can I configure the output folder, the output folder URL and
the launch URLs for different users?

 

As a final note - The current setup involves running a batch file after
you have checked out the repository, this copies the project files from
a set of templates which are stored in SVN, the actual projects files
aren't committed which means developers are free to change the values.
However, the trouble comes when I need to add a reference to another
project. I must tell all the other developers to add a reference too!!

 

Any help on this subject is much appreciated.

 

Cheers,

Mark

 

 

 



RE: [flexcoders] Re: Stop Flex Builder copying files to bin directory

2007-05-02 Thread Mark Ingram
Thanks - that solved the problem for copying of files - but it still
copied the .svn folder!

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of scott_flex
Sent: 02 May 2007 13:21
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Stop Flex Builder copying files to bin
directory

 


Check your Flex Compiler options on the Project Properties window... 
there's an option to Copy non-embeded files to output directory.

--scott

--- In flexcoders@yahoogroups.com 
, "Mark Ingram" <[EMAIL PROTECTED]> wrote:
>
> Hi, how can I stop Flex Builder from copying files to my bin folder?
> 
> 
> 
> I have a readme.txt which is in the root folder, which gets copied 
to
> the bin folder and I also have a .svn folder which gets copied. How 
can
> I stop these from being copied every time I compile? I compile to a
> network location, so having to copy unnecessary files can really 
slow
> things down!
> 
> 
> 
> Thanks,
> 
> 
> 
> Mark
>

 



[flexcoders] Re: Stop Flex Builder copying files to bin directory

2007-05-02 Thread scott_flex

Check your Flex Compiler options on the Project Properties window... 
there's an option to Copy non-embeded files to output directory.


--scott



--- In flexcoders@yahoogroups.com, "Mark Ingram" <[EMAIL PROTECTED]> wrote:
>
> Hi, how can I stop Flex Builder from copying files to my bin folder?
> 
>  
> 
> I have a readme.txt which is in the root folder, which gets copied 
to
> the bin folder and I also have a .svn folder which gets copied. How 
can
> I stop these from being copied every time I compile? I compile to a
> network location, so having to copy unnecessary files can really 
slow
> things down!
> 
>  
> 
> Thanks,
> 
>  
> 
> Mark
>




  1   2   >