[flexcoders] Restoring property values after an effect

2007-06-14 Thread reflexactions
Is there a way to automatically restore all property values back to how 
they were before an effect is run?

What I am doing is basically allowing someone to pass me an Effect 
object which I will play against a given target. 

I have no idea what the effect is but after it is finished playing I 
want to restore everything back to how it was before the effect ran so 
I can run the effect again or run another effect.

I dont really want to have to save every conceivable property on the 
target and then reset them, and I wondered if there is something in the 
Effect system that will do this for me.

Example, though its not needed in case where say its a FadeIn and the 
alpha is coming up to 1 but if you run a FadeOut the alpha runs to 0 so 
you need to restore the alpha value back to 1 so you can run again. A 
SlideIn effect is OK but a SlideOut effect leaves the target in the 
wrong place for the next run.

Although I could really handle these specific cases by writing specifc 
code I wanted something generic that would work for any conceivable 
Effect.

Tks





[flexcoders] Note to ADOBE people

2007-06-14 Thread Ariel Jakobovits
Dear Adobe People, 

In the act of using Flex and in anticipation of tomorrow's SilvaFUG, I thought 
of this email to write.

First and foremost, the Flex 3 upgrade went very nicely and has been a 
pleasurable update. You indeed made Flex even better. I was actually able to 
get Resource Bundles to work. Yay!

I want you to know that I am having as much fun using and learning Flex as I 
did when I started Cold Fusion in 1996 as a sophomore in high school. I have 
spent many happy hours in front of a computer because of these two products. 
So, thank you. I know it takes a lot of work to do what you are doing.

Peace,

Ariel Jakobovits

BTW, Can we A) change the Flex icons back, B) Replace all private vars in the 
source code with protected ones, C) make the live notes updatable by the public 
so someone could clean up the mistakes and clear corrective comments every so 
often, and D) fix the weird Build Project loses focus behavior in Builder?

Or, perhaps tell me where to put these requests where they will be seen and 
perhaps voted upon by the community because frankly I don't know where to. 
Thanks.
 



--
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] Note to ADOBE people

2007-06-14 Thread Tom Chiverton
On Thursday 14 Jun 2007, Ariel Jakobovits wrote:
 BTW, Can we A) change the Flex icons back, 

Back ? From where to what ?

 B) Replace all private vars in 
 the source code with protected ones, 

Well, maybe not all, but certainly internal render classes or whathave you 
should be accessable to subclass'.

 C) make the live notes updatable by 
 the public so someone could clean up the mistakes and clear corrective
 comments every so often, and

I agree again, although I've found adding a comment to them to be fruitful in 
the past, some sort of more instant public editability would be great.

 Or, perhaps tell me where to put these requests where they will be seen and
 perhaps voted upon by the community because frankly I don't know where to.
 Thanks.

bugs.adobe.com

-- 
Tom Chiverton
Helping to conveniently mesh error-free web-readiness
on: http://thefalken.livejournal.com



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



[flexcoders] Re: Summary Row in Advanced Data Grid

2007-06-14 Thread sreeni_r
Hi Nate,

you can take a look at the exact sample here

http://flexpearls.blogspot.com/2007/06/advanceddatagrid-summary-roll-up-sample.html

Thanks
Sreenivas

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

 Does anyone have any examples of the Advanced Data Grid that are
 different than the ones released by Adobe?  I am specifically looking
 for a way to roll up costs like the first picture in Ted Patrick's
post. 
 

http://www.onflex.org/ted/2007/06/flex-3-wednesday-components-and-sdk.php





RE: [flexcoders] Extending SWFLoader

2007-06-14 Thread Alex Harui
I wouldn't think it would work either.

 

I don't think SWFLoader.as is that big or contains secret sauce so I'd
just copy it, rename it and change what I need.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Freiman
Sent: Wednesday, June 13, 2007 7:12 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Extending SWFLoader

 

won't this only work for protected and internal functions, not private
functions?

Dan Freiman
nondocs http://nondocs.blogspot.com 

On 6/12/07, Christopher Olsen [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

I was thinking along the lines of 

public class NEW_SWFLoader extends SWFLoader {
  public function blah(args):rettype {
return(this.privatefunction(args));
}
  }

-Christopher




Jeffry Houser wrote: 


Do do that, wouldn't modify the SWFLoader component? Or create his 
own copy (AKA Duplicating a lot of code).

Christopher Olsen wrote:
 
 
 reflexactions:
 
 Yes make public wrapper to private functions ;)
 
 -Christopher
 
 
 reflexactions wrote:
 
 I am trying to extend SWFLoader but having a hard time as almost all
of
 it is marked as private instead of protected.

 Without simply duplicating all the code is there any work around or
 hack I can try.

 Tks


-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer\
AIM: Reboog711 | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com http://www.dot-com-it.com 
My Podcast: http://www.theflexshow.com http://www.theflexshow.com 
My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com 





 

 



[flexcoders] Deleting an Item from a List

2007-06-14 Thread williamkusumo
Hi!

I have a List (populated via a dataProvider) and in each of the list
items, I have a Close button. What is the best way to remove the
item when the Close button is clicked? I understand I must remove
the data from the dataProvider instead of just deleting the list item,
but how do you get the index of the list item based on which button is
clicked?

I have tried using the list's selectedIndex, but that's not really how
you want to do it because the list item won't necessarily be the one
selected when the close button is clicked (it'll screw up if you use
keyboard to navigate to the button)

I have tried getting the list by using thebutton.parent.parent and
then do a getChildIndex(...) passing in thebutton.parent. But all I
got is the number 2 all the time no matter which item I clicked on.

Any help will be greatly appreciated.

Thanks!



[flexcoders] Client-side with Flex2 without server components on Tomcat

2007-06-14 Thread web_manager_2004
Hello everyone,

 

I am interested in building a commercial application using Flex  for 
creating the client-side (using my own JAVA Servlets on the server). 
From what I can see, it is totally possible to create a Flash (swf) 
that runs without server components (such as the Data Services) †and 
to send and retrieve data via HTTPService.

 

Here is my question: Is it possible to develop such applications in 
which client-side is created using Flex 2 which is deployed on the 
server (Tomcat) that run without server components (such as the Data 
Services). What about License issues?

 

Can someone help me…?  Please forgive me, if this question has been 
asked before on this list. 

Thanks a million





[flexcoders] Re: No help for syntax,methods and properties for flex Controls in QTP can any

2007-06-14 Thread sreeni_r

Documentation is available here

http://www.adobe.com/go/flex201_qtp_object_type_reference

-Sreenivas

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

 Hi,

 I am beginner working with QTP 9.1 to Automate Flex
application.there is no help for syntax,methods and properties for
flex Controls in QTP . Even i have searched in net i couldn't get any
help.For Example
:FlexApplication,FlexBox,FlexPanel,FlexButton,FlexForm,
Get AutomationChildAt,Input e.t.c.Please do needful...

   Thanks in advance
 

 -
  Download prohibited? No problem! CHAT from any browser, without
download.





Re: [flexcoders] Datagrid itemRenderer

2007-06-14 Thread André Rodrigues Pena

Hi Joan, thanks for your reply.
It works pretty fine.
I noticed something I didnt know. It seems that when you set the dataField
property of a DataGridColumn, only that particular data is passed to the
itemRenderer. But with your example, I realized the the ENTIRE value object
is passed to each DataGridColumn's itemRenderer, what allows you to create a
cell that combines more than one data field and so on.
Thanks again =)

On 6/13/07, Joan Lafferty [EMAIL PROTECTED] wrote:


   You will need to use a custom itemRenderer that overrides the set data
function for the columns that you want to change. Here is an example of one
that looks at the column qty to determine what the color of the text in
the cell is:



package {



import mx.controls.Label;



public class CustomComp extends Label {



 override public function set data(value:Object):void

 {

if(value != null)

{

   super.data = value;

   if(value.qty  10) {

  setStyle(color, 0xFF);

 }

 else {

 setStyle(color, 0x00);

 }

}

 }

  }



}



Here is a DataGrid that might use this:

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; width=600
height=600 xmlns=* 



mx:Script

![CDATA[



[Bindable]

public var DP:Array = [{item: 'Ice Cream', qty: 4}, {item:
'Cones', qty: 21}, {item: 'Sandwich', qty: 14}, {item: 'Malt', qty: 1}];

]]

/mx:Script



mx:DataGrid id=myDatagrid rowHeight=50 dataProvider={DP}

 mx:columns

mx:Array

  mx:DataGridColumn  dataField=item
itemRenderer=CustomComp /

  mx:DataGridColumn
itemRenderer=CustomComp dataField=qty /

/mx:Array

 /mx:columns

   /mx:DataGrid



 /mx:Application



Good luck.

Joan


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *André Rodrigues Pena
*Sent:* Wednesday, June 13, 2007 7:39 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Datagrid itemRenderer



Hi all,
I want the color of the text in a particular cell of a Datagrid, modify
depending on the value of another cell, in the same record. I thought of
some function like labelFunction but it only applies to the text. I need to
modify the properties of the Label, that I think is the default
itemRenderer. I could create a custom itemRenderer too but I thought there
could be an easier way to do that.
any tips are welcome.

--
André Rodrigues Pena

 





--
André Rodrigues Pena


[flexcoders] Re: Deleting an Item from a List

2007-06-14 Thread sreeni_r

Here is a sample I wrote doing the deletion.

mx:List id=mylist

mx:Array
mx:Object label=Test Entry 1 /
mx:Object label=Test Entry 2 /
mx:Object label=Test Entry 3 /
mx:Object label=Test Entry 4 /
/mx:Array

mx:itemRenderer
  mx:Component

mx:HBox
mx:Script
![CDATA[

override public function set data(value:Object):void
{
 // set the label text
status.text = value[label];
// set it on the button also so that we can use it
// for deletion.
closeBtn.data = value;
super.data = value;
}

private function removeItem(data:Object):void
{
var index:int =
outerDocument.mylist.dataProvider.getItemIndex(data);

outerDocument.mylist.dataProvider.removeItemAt(index);
}
]]
/mx:Script

mx:Label id=status /
mx:Button id=closeBtn label=Close click=removeItem(data)/
  /mx:HBox
  
 /mx:Component
/mx:itemRenderer

/mx:List


The idea is to use the data object passed to a itemRenderer. This data
 represents a item in the data provider. You can use the IList APIs on
the dataProvider to find the index and remove the item.

As I defined the itemRenderer inline I am using the outerDocument
property to access the list parent.

Let me know if it works for you.

-Sreenivas


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

 Hi!
 
 I have a List (populated via a dataProvider) and in each of the list
 items, I have a Close button. What is the best way to remove the
 item when the Close button is clicked? I understand I must remove
 the data from the dataProvider instead of just deleting the list item,
 but how do you get the index of the list item based on which button is
 clicked?
 
 I have tried using the list's selectedIndex, but that's not really how
 you want to do it because the list item won't necessarily be the one
 selected when the close button is clicked (it'll screw up if you use
 keyboard to navigate to the button)
 
 I have tried getting the list by using thebutton.parent.parent and
 then do a getChildIndex(...) passing in thebutton.parent. But all I
 got is the number 2 all the time no matter which item I clicked on.
 
 Any help will be greatly appreciated.
 
 Thanks!





[flexcoders] FormItemLabel with label on multiple lines problem

2007-06-14 Thread Mika Kiljunen

Hi,

has anyone succesfully implemented a FormItemLabel that can have text on
multiple lines instead of single line label? This way a form item could
contain longer label texts without making a very wide form... I've been
looking into this problem only to find out that is extremely difficult to
expand FormItem or FormItemLabel to do the job. So I was wondering if anyone
has a working solution to this already?

Thanks,
Mika


[flexcoders] Testing socket applications on localhost. Running patServer locally

2007-06-14 Thread Sergey Kovalyov

Hi All!

Does anybody have an experience running patServer (or may be different php
socket server if any?) on localhost to perform testing your socket
communication code? How do you do that? Any ideas?

Thank you in advance.

Sergey.


[flexcoders] Moving a Canvas

2007-06-14 Thread pdflibpilot
I am looking for the easiest way to drag a canvas (not a popup)
containing navigation buttons anywhere on the screen. Are there other
options besides drag / drop ? or is there an easier way to do this
using Move effect ? or move() method ?



Re: [flexcoders] Moving a Canvas

2007-06-14 Thread bjorn -

you could create your own component by extending Panel, adding event
listeners for MouseEvent.MOUSE_DOWN, MousEvent.MOUSE_UP and
MouseEvent.MOUSE_MOVE

.. use the event listeners to change the position of the panel.

- Bjørn


On 14/06/07, pdflibpilot [EMAIL PROTECTED] wrote:


  I am looking for the easiest way to drag a canvas (not a popup)
containing navigation buttons anywhere on the screen. Are there other
options besides drag / drop ? or is there an easier way to do this
using Move effect ? or move() method ?







--


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


Re: [flexcoders] Client-side with Flex2 without server components on Tomcat

2007-06-14 Thread Charles Galpin


On Jun 14, 2007, at 5:37 AM, web_manager_2004 wrote:


Here is my question: Is it possible to develop such applications in
which client-side is created using Flex 2 which is deployed on the
server (Tomcat) that run without server components (such as the Data
Services). What about License issues?


You do not need any service side components if you don't want them.   
This is very easy to test, so my suggestion is try it and decide for  
yourself :)


You don't need a license to deploy things built using the SDK.

hth
charles



Re: [flexcoders] Moving a Canvas

2007-06-14 Thread Tom Chiverton
On Thursday 14 Jun 2007, bjorn - wrote:
 you could create your own component by extending Panel, adding event
 listeners for MouseEvent.MOUSE_DOWN, MousEvent.MOUSE_UP and
 MouseEvent.MOUSE_MOVE

Or just use the PopUpManager.



-- 
Tom Chiverton
Helping to challengingly maintain real-time experiences
on: http://thefalken.livejournal.com



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


Re: [flexcoders] Moving a Canvas

2007-06-14 Thread bjorn -

Oh sure, if you want the easy way out you could just do a

  var tw = new TitleWindow();
  tw.title = My Title;
  PopUpManager.addPopUp(tw, pnl, false);

.. but that's not for Real Men^TM.

btw; thanks for the tip ;-)

- Bjørn


On 14/06/07, Tom Chiverton [EMAIL PROTECTED] wrote:


On Thursday 14 Jun 2007, bjorn - wrote:
 you could create your own component by extending Panel, adding event
 listeners for MouseEvent.MOUSE_DOWN, MousEvent.MOUSE_UP and
 MouseEvent.MOUSE_MOVE

Or just use the PopUpManager.



--
Tom Chiverton
Helping to challengingly maintain real-time experiences
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







--


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


[flexcoders] A Question of AS3 Object Equality and Collections

2007-06-14 Thread Greg McCreath
Hi All,
 
In AS3 we have only the Object, Array, and Dictionary to use for
collections (as far as I know!).  I'm posting this unless I am missing
something about how AS3 handles equality in collections.  I'm using
QName objects but I guess anything could do.  
 
Consider the following:
 
var nameSpace1: Namespace = new Namespace(http://foo http://foo );
var nameSpace2: Namespace = new Namespace(http://bar http://bar );
 
var qname1: QName = new QName(nameSpace,bob);
var qname2: QName = new QName(nameSpace,bob);
var qname3: QName = new QName(nameSpace2,bob);

trace(are equal1 : + (qname1 == qname2));
trace(are equal2 : + (qname1 === qname2));
trace(are equal3 : + (qname1 == qname3));

Gives : 
 
true
false
false
 
Good.  AS3 believes qname1  qname2 are equal, and qname2 and qname3 are
not.  Excellent.  Good start.
 
However: 
 
var a: Array = new Array();
a.push(qname1);
trace(a.indexOf(qname2)  -1);

Ooops.  They are not quite the same after all.  So, with this behaviour
different part of my framework cannot create a QName and put in an Array
for other classes to get out with their own QName objects - even though
AS3 says they are equal.
 
Perhaps I could use a Dictionary.  However it is based on '===' strict
equality and doesn't fit the bill because of that.  In fact, try adding
a QName as a key to a Dictionary like:
 
var nameSpace: Namespace = new Namespace(http://foo;);
var qname: QName = new QName(nameSpace,bar);
var d:Dictionary = new Dictionary();
d[qname] = why does this blow up?;

gives an explosion:
 
ReferenceError: Error #1056: Cannot create property http://foo::bar on
flash.utils.Dictionary.
 
you simpy cannot use a Dictionary object for QNames.  I've tried it in
10 different ways (namespaces with/without prefixes etc etc). I'll post
this separately I reckon.
 
Bottom line: Do I have to create my own collections classes (a la Java)
and use my own equality mechanisms... ?
 
All replies appreciated.
 
Greg.
 


This email and any files transmitted with it may be confidential and are 
intended solely for the use of the individual or entity to whom they are 
addressed. This email may contain personal information of individuals, and be 
subject to Commonwealth and/or State privacy laws in Australia. This email is 
also subject to copyright. If you are not the intended recipient, you must not 
read, print, store, copy, forward or use this email for any reason, in 
accordance with privacy and copyright laws. If you have received this email in 
error, please notify the sender by return email, and delete this email from 
your inbox. 


[flexcoders] Why can't I use a QName as a Dictionary key ?

2007-06-14 Thread Greg McCreath
Hi All,
 
var nameSpace: Namespace = new Namespace(http://foo http://foo/ );
var qname: QName = new QName(nameSpace,bar);
var d:Dictionary = new Dictionary();
d[qname] = why does this blow up?;

gives an explosion:
 
ReferenceError: Error #1056: Cannot create property http://foo::bar on
flash.utils.Dictionary.
 
you simpy cannot use a QName as a Dictionary key.  I've tried it in 10
different ways (namespaces with/without prefixes etc etc). 
 
Why is this so?  It extends Object ... and I can use Objects for keys in
a Dictionary.
 
All help appreciated.
 
Greg.


This email and any files transmitted with it may be confidential and are 
intended solely for the use of the individual or entity to whom they are 
addressed. This email may contain personal information of individuals, and be 
subject to Commonwealth and/or State privacy laws in Australia. This email is 
also subject to copyright. If you are not the intended recipient, you must not 
read, print, store, copy, forward or use this email for any reason, in 
accordance with privacy and copyright laws. If you have received this email in 
error, please notify the sender by return email, and delete this email from 
your inbox. 


Re: [flexcoders] Moving a Canvas

2007-06-14 Thread Tom Chiverton
On Thursday 14 Jun 2007, bjorn - wrote:
PopUpManager.addPopUp(tw, pnl, false);

 .. but that's not for Real Men^TM.

Of *course* - when I said 'use the PopUpManager' I meant 'write your own 
parent relocation system to add new elements to the base Stage and add your 
own event handlers and do it all by writing in ABC' :-)

See also http://undefined.com/ia/2006/11/07/the-four-programmers

-- 
Tom Chiverton
Helping to confidentially revolutionize dot-com infomediaries
on: http://thefalken.livejournal.com



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Re: how to display values in flex reading from a jsp an retriving the data's fr

2007-06-14 Thread haravallabhan
I never passed any data frm jsp to  FLex. Is that JSP alone your
solution?. You can use java methods and beans to do the same thing.
Accessing Java methods using RemoteObjects.

What error do you get ? 

if  JSP the only option you have then try validating the XML format.
Sometimes when you use improper xml it might not work properly. 

Check for the jsp file path. 

Or try making the jsp to a XML file by changing the
applicationContent. and try accessing the XMl directly.

Hara

 




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

 Hi All,

 Please can anybody help us to solve the problem 
 We are facing a trouble to send a request from flex to a jsp
   and retriving values from jsp 
   we used  the following code also trying to connect jsp with mxml
   but its not working 

 This is the mxml file that we are using 

   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute  width=100% height=763   
   mx:HTTPService id=srv url=flextest.jsp/   
   mx:DataGrid
dataProvider={srv.lastResult.project.portal} width=100%
height=100%/  
   mx:Button label=Get Data click=srv.send()/ 
\n\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\�\u003c/span\\u003c/font\\u003c/p\\n\u003cp\\u003cfont
face\u003d\Arial\ size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\/mx:Application\u003c/span\\u003c/font\\u003cfont
face\u003d\Arial\ size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\�\u003c/span\\n\u003c/font\\u003cfont
face\u003d\Arial\ size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\�\u003c/span\\u003c/font\\u003c/p\\n\u003cp\\u003cfont
face\u003d\Arial\ size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\And the corresponding
jsp file is�\u003c/span\\u003c/font\\u003cfont face\u003d\Arial\
size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\\n�\u003c/span\\u003c/font\\u003c/p\\n\u003cp\\u003cfont
face\u003d\Arial\
  size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\%@ page
contentType\u003dtext/html;charset\u003cWBR\\u003dUTF-8
language\u003djava
%\u003c/span\\u003c/font\\u003c/p\\n\u003cp\\u003cfont
face\u003d\Arial\ size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\%@ taglib
uri\u003d\u003ca
href\u003d\http://jakarta.apache.org/struts/tags-bean\;
target\u003d\_blank\ onclick\u003d\return
top.js.OpenExtLink(window,event,this)\\http://jakarta.apache.org\u003cWBR\/struts/tags-bean\u003c/a\\n
prefix\u003dbean%\u003c/span\\u003c/font\\u003c/p\\n\u003cp\\u003cfont
face\u003d\Arial\ size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\%@ taglib
uri\u003d\u003ca
href\u003d\http://jakarta.apache.org/struts/tags-html\;
target\u003d\_blank\ onclick\u003d\return
top.js.OpenExtLink(window,event,this)\\http://jakarta.apache.org\u003cWBR\/struts/tags-html\u003c/a\\n
 
prefix\u003dhtml%\u003c/span\\u003c/font\\u003c/p\\n\u003cp\\u003cfont
face\u003d\Arial\ size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\%@ page
import\u003dcom.p3.form.ProjectPortalForm%\u003c/span\\u003c/font\\u003c/p\\n\u003cp\\u003cfont
face\u003d\Arial\ size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\%@ page
import\u003djava.util.List\u003c/span\\u003c/font\\u003c/p\\n\u003cp\\u003cfont
face\u003d\Arial\ size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\�����������������������
�import\u003djava.util.Map\u003c/span\\u003c/font\\u003c/p\\n\u003cp\\u003cfont
face\u003d\Arial\ size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\�����������������������
�import \u003d ,1] );  //--
   /mx:Application   
   And the corresponding jsp file is   
   %@ page contentType=text/html;charset=UTF-8 language=java %
   %@ taglib uri=http://jakarta.apache.org/struts/tags-bean 
prefix=bean%
   %@ taglib uri=http://jakarta.apache.org/struts/tags-html 
prefix=html%
   %@ page import=com.p3.form.ProjectPortalForm%
   %@ page import=java.util.List
import=java.util.Map
import =  
\u003c/font\\u003c/p\\n\u003cp\\u003cfont face\u003d\Arial\
size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\�����������������������
�import\u003djava.util.Iterator%\u003c/span\\u003c/font\\u003cfont
face\u003d\Arial\ size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\\n�\u003c/span\\u003c/font\\u003c/p\\n\u003cp\\u003cfont
face\u003d\Arial\ size\u003d\2\\\u003cspan
style\u003d\font-size:10pt;font-family:Arial\\?xml
version\u003d1.0
encoding\u003dutf-8?\u003c/span\\u003c/font\\u003c/p\\n\u003cp\\u003cfont
face\u003d\Arial\ size\u003d\2\\\u003cspan

Re: [flexcoders] Why Adobe sales do not contact me?

2007-06-14 Thread Matt Chotin
Please mail me offlist ([EMAIL PROTECTED]) with where you are located and I 
will try to track down the right person. 

Matt


- Original Message -
From: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Thu Jun 14 01:34:44 2007
Subject: [flexcoders] Why Adobe sales do not contact me?

I wanted to have more information about LCDS so I clicked on Have
Adobe contact me. I completed the form and it was said I would have a
reply in 24 hours. But already one week passed and nothing.
So if somebody from Adobe can help me get a contact, I would
appreciate. I need license and technical info.

Thanks,

Benjamin.

P.S.: my email is benjamind (at) systexgroup.com



 


Re: [flexcoders] Flex 3 Beta is now available!

2007-06-14 Thread Gustavo Duenas

Hi,  the beta has only 30 days of use or is unlimited as the AS3 alpha?

Regards


Gustavo
On Jun 14, 2007, at 5:28 AM, Gunnar André Reinseth wrote:


Thanks for the reply :)


On 6/13/07, Matt Chotin [EMAIL PROTECTED] wrote:

Hi,

Basic Authentication is something that we'd need the browser  
vendors to help us support and we don't have that right now (as the  
browser doesn't want us to spoof in there).  So it's not there in  
the short-term, you'd need to allow the browser to pop up and let  
the user log in.  However there are certainly different techniques  
to avoid that depending on your backend, Java has the j_username/ 
j_password convention, etc.


Matt

From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Gunnar André Reinseth

Sent: Tuesday, June 12, 2007 3:26 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 3 Beta is now available!

Hi,

This new release Flex is really great! The new AdvancedDataGrid has  
probably saved us months of work :)


But there is one thing I'm wondering about: Has there been any  
changes to HTTPService? Does it support BASIC authentication? If  
not - is this an issue that the Flex team will address in the future?


Best,
Gunnar A. Reinseth


On 6/11/07, Tom Chiverton [EMAIL PROTECTED] wrote:
On Monday 11 Jun 2007, Matt Chotin wrote:
 Charts and ADG only ship in FB for now, we're not building a  
separate

 charting installer.

I'm not bothered about an installer, I just didn't want to have to  
download

all of FlexBuilder to get at one SWC inside it.

On first tests, it seems Flex3 runs existing code fine (apart from  
the known
Caringorm issue) which is good news, and my pet charting bug has  
even been

addressed.

--
Tom Chiverton
Helping to autoschediastically seize best-of-breed interfaces
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












Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 W. Beaver St. Suite 119
Jacksonville, Fl.  32204
904 . 2650330
www.leftandrightsolutions.com




Re: [flexcoders] Note to ADOBE people

2007-06-14 Thread Matt Chotin
Bugs.adobe.com/flex specifically. 

Matt


- Original Message -
From: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Thu Jun 14 03:42:29 2007
Subject: Re: [flexcoders] Note to ADOBE people

On Thursday 14 Jun 2007, Ariel Jakobovits wrote:
 BTW, Can we A) change the Flex icons back, 

Back ? From where to what ?

 B) Replace all private vars in 
 the source code with protected ones, 

Well, maybe not all, but certainly internal render classes or whathave you 
should be accessable to subclass'.

 C) make the live notes updatable by 
 the public so someone could clean up the mistakes and clear corrective
 comments every so often, and

I agree again, although I've found adding a comment to them to be fruitful in 
the past, some sort of more instant public editability would be great.

 Or, perhaps tell me where to put these requests where they will be seen and
 perhaps voted upon by the community because frankly I don't know where to.
 Thanks.

bugs.adobe.com

-- 
Tom Chiverton
Helping to conveniently mesh error-free web-readiness
on: http://thefalken.livejournal.com 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] Embed html with iframe problem

2007-06-14 Thread wpding

I have embed a html page using iframe  into a flash page. But the
problem is i can only use english to input words.
i have tried t o type serveral chinese words into the input box in the
following demo page. But it just doesn't works.
I guess, the reason is that the iframe layer has  the focus, but you
interactive with the flex layer.

here  is the demo. you can try to type some not english words in the
input box.
demo http://www.flexcoders.cn/data/flexdemo/iframe/iframeDemo.html

Does anyone know a solution for this problem?

thanks.



[flexcoders] Flex 3 SQL 2005

2007-06-14 Thread aisoftware
Has anyone gotten the data wizards to work with SQL Server?



RE: [flexcoders] Embed html with iframe problem

2007-06-14 Thread Mark Ingram
I get a 404 error when trying to view the source.

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wpding
Sent: 14 June 2007 14:51
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Embed html with iframe problem

 


I have embed a html page using iframe  into a flash page. But the
problem is i can only use english to input words. 
i have tried t o type serveral chinese words into the input box in the
following demo page. But it just doesn't works.
I guess, the reason is that the iframe layer has  the focus, but you
interactive with the flex layer.

here  is the demo. you can try to type some not english words in the
input box.
demo http://www.flexcoders.cn/data/flexdemo/iframe/iframeDemo.html  

Does anyone know a solution for this problem?

thanks.
 



RE: [flexcoders] Flex 3 Beta is now available!

2007-06-14 Thread Peter Farland
Gunnar, although I've not tried this yet, I think that you may be able to 
pre-authenticate with BASIC auth if you set the Authorization header on 
HTTPService. I recently discovered that the Authorization header is not one 
of the request headers disallowed by flash.net.URLRequest (which is ultimately 
used by by HTTPService to prepare a request to send over HTTP) so this approach 
should be technically possible. Note that you will need to Base64 encode the 
credentials from the String username:password into an encoded form.
 
myHTTPService.headers.Authorization = Basic  + base64EncodedCredentials;

Note that there is an undocumented mx.utils.Base64Encoder class in Flex that we 
plan to formally document in Flex 3.0. 

Pete




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gunnar 
André Reinseth
Sent: Tuesday, June 12, 2007 6:26 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 3 Beta is now available!



Hi,

This new release Flex is really great! The new AdvancedDataGrid has probably 
saved us months of work :)

But there is one thing I'm wondering about: Has there been any changes to 
HTTPService? Does it support BASIC authentication? If not - is this an issue 
that the Flex team will address in the future? 

Best,
Gunnar A. Reinseth


On 6/11/07, Tom Chiverton [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
wrote: 

On Monday 11 Jun 2007, Matt Chotin wrote:
 Charts and ADG only ship in FB for now, we're not building a separate 
 charting installer.

I'm not bothered about an installer, I just didn't want to have to 
download
all of FlexBuilder to get at one SWC inside it.

On first tests, it seems Flex3 runs existing code fine (apart from the 
known 
Caringorm issue) which is good news, and my pet charting bug has even 
been
addressed.

--
Tom Chiverton
Helping to autoschediastically seize best-of-breed interfaces
on: http://thefalken.livejournal.com 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 
http://www.halliwells.com .



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






 


[flexcoders] SWFLoader weirdness when using separated applicationDomain

2007-06-14 Thread Oleg Filipchuk

Hi there.

I ran into weird issue with swfloader component.
I need to load into host flex application different swf (flex, flash etc)
from external developers. So the choice was to use separated
ApplicationDomain for swfloader, like:

var appDomain = new ApplicationDomain();
swfLoader.loaderContext = new LoaderContext(false, new ApplicationDomain());
swfLoader.load(someFlexFile.swf)

It actually loads specified swf but the loaded content behaves weird -
Mostly it throws such errors:
at Object$/Object::_hasOwnProperty()
   at Object/http://adobe.com/AS3/2006/builtin::hasOwnProperty()

And it absolutely doesn't following layout rules of parent container.

When I use same application domain as host or child application domain all
works nice and smooth.
But that's not the solution as
1. we need it to have in different applicationdomain as sometimes there
could be used same classes but different version of it.
2. loaded swf's have their individual styles and while loading with same or
child applicationdomain - the host application domain style is replaced with
loaded one




--
Best regards,
Oleg Filipchuk


Re: [flexcoders] Errors after 2.0.1

2007-06-14 Thread Derek Vadneau

For me the problem was that I created a MXML project that specified an AS
file that had the same name.

For example:
Test.mxml contains:
mx:Script source=Test.as/mx:Script

Apparently this is not recommended.

I simply renamed my AS file and all was well.


On 6/14/07, Mika Kiljunen [EMAIL PROTECTED] wrote:


  I'm having the exact same problem. Any solution?

-Mika


On 2/15/07, Derek Vadneau [EMAIL PROTECTED]  wrote:

   I did a reinstall quite a while back. But maybe it WAS a bad install -
 I recently posted about having an older version of the JRE installed
 (pre 1.4, which is the requirement for FB2, yet for some reason I was
 allowed to install and run it ...).

 I'll try an uninstall and then reinstall. Maybe that will solve theproblem. 
I'll post back afterwards.

 Thanks.



 On 2/14/07, Igor Costa [EMAIL PROTECTED] wrote:
 
I suggest you to re-install your plug-in or stand alone version.
 
  Didn't have this problem.
 
 
  --Igor Costa
 
  On 2/12/07, Derek Vadneau  [EMAIL PROTECTED] wrote:
  
 I had built some Flex Applications prior to 2.0.1 that are now
   displaying errors.
  
   I have a pretty simple MXML file that contains a Script tag with the
   source pointing to an AS file in the same directory as the MXML
   file.
   The AS contains two simple functions:
   private function AppInit():void
   {
   trace('init');
   }
  
   private function go():void
   {
   output_ta.text = 'hello\n';
   }
  
   When I upgraded to 2.0.1 I saw errors pointing to the two functions
   in
   the AS file, both saying:
   1013: The private attribute may be used only on class property
   definitions.
  
   When I look at Properties for the project under the Flex
   Applications
   section it lists test.mxml (default) and test.as.
  
   When I remove test.as and click OK the errors go away.
  
   If I then choose Run  Debug or Run  Run everything is fine.
  
   If I choose Alt+Shift+D,F (listed as Debug Flex Application), the
   errors reappear and test.as is back in the project properties.
  
   What gives?
  
   Btw, I've been using this key sequence because it was listed in the
   Keys section of the Preferences as Debug Flex Application. What is
   the
   difference between this and choosing Run  Debug?
  
   --
  
   Derek Vadneau
  
 
 
 
  --
  
  Igor Costa
  www.igorcosta.org
  www.igorcosta.com
  skype: igorpcosta
 
 


 --

 Derek Vadneau


 





--

Derek Vadneau


RE: [flexcoders] SWFLoader weirdness when using separated applicationDomain

2007-06-14 Thread Alex Harui
Unfortunately, Flex does not work across different application domains
at this time.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Oleg Filipchuk
Sent: Thursday, June 14, 2007 7:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SWFLoader weirdness when using separated
applicationDomain

 

Hi there.

I ran into weird issue with swfloader component. 
I need to load into host flex application different swf (flex, flash
etc) from external developers. So the choice was to use separated
ApplicationDomain for swfloader, like: 

var appDomain = new ApplicationDomain();
swfLoader.loaderContext = new LoaderContext(false, new
ApplicationDomain());
swfLoader.load(someFlexFile.swf)


It actually loads specified swf but the loaded content behaves weird - 
Mostly it throws such errors:
 at Object$/Object::_hasOwnProperty()
at Object/http://adobe.com/AS3/2006/builtin::hasOwnProperty()

And it absolutely doesn't following layout rules of parent container.

When I use same application domain as host or child application domain
all works nice and smooth. 
But that's not the solution as 
1. we need it to have in different applicationdomain as sometimes there
could be used same classes but different version of it.
2. loaded swf's have their individual styles and while loading with same
or child applicationdomain - the host application domain style is
replaced with loaded one 

   


-- 
Best regards,
Oleg Filipchuk 

 



RE: [flexcoders] Why can't I use a QName as a Dictionary key ?

2007-06-14 Thread Alex Harui
Not 100% sure, but QNames have special privileges in AS as they
generally get evaluated before applied as a property lookup.  If you do

 

d[http://foo::bar http://foo::bar/ ], what happens?

 

Also, if you apply the qname to an Object does it work?  If the
dictionary doesn't use weak keys, there's really no difference.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg McCreath
Sent: Thursday, June 14, 2007 6:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Why can't I use a QName as a Dictionary key ?

 

Hi All,

 

var nameSpace: Namespace = new Namespace(http://foo http://foo/ );
var qname: QName = new QName(nameSpace,bar);
var d:Dictionary = new Dictionary();
d[qname] = why does this blow up?;


gives an explosion:

 

ReferenceError: Error #1056: Cannot create property http://foo::bar on
flash.utils.Dictionary.

 

you simpy cannot use a QName as a Dictionary key.  I've tried it in 10
different ways (namespaces with/without prefixes etc etc). 

 

Why is this so?  It extends Object ... and I can use Objects for keys in
a Dictionary.

 

All help appreciated.

 

Greg.



This email and any files transmitted with it may be confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. This email may contain personal information of individuals,
and be subject to Commonwealth and/or State privacy laws in Australia.
This email is also subject to copyright. If you are not the intended
recipient, you must not read, print, store, copy, forward or use this
email for any reason, in accordance with privacy and copyright laws. If
you have received this email in error, please notify the sender by
return email, and delete this email from your inbox. 

 



RE: [flexcoders] Flex 3 SQL 2005

2007-06-14 Thread Ken Bromberger
I haven't been able to get it to work either, I get the data wizard
window telling me  You must have a table but the lists don't populate.

I had to download a jar from Microsoft,
http://msdn2.microsoft.com/en-us/data/aa937724.aspx  and install that to
get it to communicate. So the Ping test now works, but no dice beyond
that...

Hopefully someone will pipe up with a solution soon, I'd like to see how
this works! - Ken

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of aisoftware
Sent: Thursday, June 14, 2007 7:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 3 SQL 2005

 

Has anyone gotten the data wizards to work with SQL Server?

 



[flexcoders] Error #2015: Invalid BitmapData

2007-06-14 Thread jcarrera04
This error occurs as I transition on the view stack. I have no idea 
what is going on. The stack trace is below. The view stack is 
contained within a custom component and then that component's parent 
is the application container. I have done some research on this error 
and I have gathered that it has something to do with the height and 
width not being set on a container or the container not being 
created...but what container? How do I get around this issue? 



ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData$iinit()
at 
mx.effects.effectClasses::MaskEffectInstance/mx.effects.effectClasses:
MaskEffectInstance::getVisibleBounds()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\effects\effectClasses\MaskEffec
tInstance.as:742]
at 
mx.effects.effectClasses::MaskEffectInstance/mx.effects.effectClasses:
MaskEffectInstance::initMask()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\effects\effectClasses\MaskEffec
tInstance.as:624]
at mx.effects.effectClasses::MaskEffectInstance/startEffect()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\effects\effectClasses\MaskEffec
tInstance.as:451]
at mx.effects::Effect/play()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\effects\Effect.as:763]
at 
mx.effects::EffectManager$/mx.effects:EffectManager::createAndPlayEffe
ct()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\effects\EffectManager.as:714]
at 
mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal:
:eventHandler()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\effects\EffectManager.as:577]
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
entFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:8323]
at mx.core::UIComponent/setVisible()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:1812]
at 
mx.containers::ViewStack/mx.containers:ViewStack::commitSelectedIndex
()[C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\ViewStack.as:1056]
at 
mx.containers::ViewStack/mx.containers:ViewStack::commitProperties()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\ViewStack.as:629]
at mx.core::UIComponent/validateProperties()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:5300]
at 
mx.managers::LayoutManager/mx.managers:LayoutManager::validateProperti
es()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:517]
at 
mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstanti
ation()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:667]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at 
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7909]
at 
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7852]




[flexcoders] Using Flex Component Kit

2007-06-14 Thread Martyn Joyce
Hi,

 

I've managed to successfully use the component kit to integrate some flash
swc's into my flex and control them, but is it possible to use flex to set
variables within flash?

 

Basically I have  a flash movie with a text box that I would like to set
from my main app.

 

cheers

 

Martyn Joyce

Lord of the Code Monkeys

Komodo Media Limited

 



[flexcoders] Re: Help Request : Deferred Instantiation and Bound SWFLoader

2007-06-14 Thread ibid049
No, they're distinct.  Here's the code.  they're very simple.

Screen1.mxml
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute backgroundGradientColors=[#0080c0, #00]
mx:Label text=1 One First Primary y=41 color=#ff 
fontWeight=bold fontSize=12 horizontalCenter=-94/
/mx:Application

Screen2.mxml
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute backgroundGradientColors=[#008080, #008080]
mx:Label id=lbl text=2 Two Second Secondary y=98 
horizontalCenter=-24 fontSize=12 fontWeight=bold 
color=#ff/
mx:Button label=change click=lbl.text='changed'/
/mx:Application

Screen3.mxml
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute backgroundGradientColors=[#804040, #00]
mx:Label y=134 text=3 Three Third Tertiary 
horizontalCenter=37 fontSize=12 fontWeight=bold 
color=#ff/
/mx:Application

I don't understand how we could be getting different results.  I 
thought one of the features of Flex was that it worked the same way 
on every platform.  I've tried this on two different servers both 
from a http:// call and a file:// call, and got the same result each 
time.  First one shows up correctly.  Second and third are blank 
white screens.

P.S.  Thanks for the init() shortcut.


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

 Your code worked for me. I pasted it into a new FlexBuilder 
project, and
 I made three different SWFs -- screen1.swf, screen2.swf, and 
screen3.swf
 -- and put them in the same project folder. When I ran the app I saw
 each SWF as I clicked the tabs. Perhaps all three of your SWFs are
 copies of the same SWF?
  
 BTW, your 10-line init() method can be condensed into
 screens = new ArrayCollection(
 [ { incSWF: screen1.swf }, { incSWF: screen2.swf }, { 
incSWF:
 screen3.swf } ]);
 
 - Gordon
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of ibid049
 Sent: Wednesday, June 13, 2007 12:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Help Request : Deferred Instantiation and 
Bound
 SWFLoader
 
 
 
 Please forgive the intrusion of contacting you directly, but I saw 
 you post several times on a related topic in the flexcoders mailing 
 list, and - after not receiving a response to my own query on the 
 list, thought you might be able to save me hours of wall-to-head-
 banging with just a few seconds worth of advice.
 
 It seems that a viewStack component that contains a SWFLoader is 
not 
 successfully loading the SWF of the second and further panes. 
 Frankly, I can't believe that's the case, because surely someone 
else 
 would have noticed this. I assume it's an elementary error on my 
 part.
 
 The following mxml demonstrates the problem. I'm binding the 
 repeater to an ArrayCollection of filenames that should be used as 
a 
 source for SWFLoaders inside the Repeater. This only loads the 
first 
 pane, even when clicking on the second or third pane. 
 
 I must be doing this in either a wrong or non-standard way. Is 
there 
 any way you could point to an easier way to accomplish what I'm 
 trying to do here?
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml  
 layout=absolute creationComplete=init()
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 import mx.collections.ArrayCollection;
 
 [Bindable] public var screens:ArrayCollection;
 
 public function init():void {
 screens = new ArrayCollection();
 var firstScreen:Object = new Object();
 var secondScreen:Object = new Object
 ();
 var thirdScreen:Object = new Object();
 firstScreen.incSWF = 'screen1.swf';
 secondScreen.incSWF = 'screen2.swf';
 thirdScreen.incSWF = 'screen3.swf';
 screens.addItem(firstScreen);
 screens.addItem(secondScreen);
 screens.addItem(thirdScreen);
 }
 
 ]]
 /mx:Script
 mx:TabNavigator id=ScreenStack top=22 left=0 
 right=0 bottom=0
 mx:Repeater id=AppRepeater 
 dataProvider={screens}
 mx:Canvas id=AppCanvas 
 width=100% height=100%
 mx:SWFLoader 
 id=ScreenLoader source={AppRepeater.currentItem.incSWF} 
 width=100% height=100%/ 
 /mx:Canvas
 /mx:Repeater
 /mx:TabNavigator
 /mx:Application





[flexcoders] inline text drag drop in an editable datagrid

2007-06-14 Thread Gautam

Hi,

Is it possible to drag a selected text within an editable DataGrid column
and drop it into another row along the same DataGrid column.

Regards,

Gautam.


Re : Re : Re : [flexcoders] Re: Building flex apps with Maven 2?

2007-06-14 Thread Jean-François Mathiot
That sounds ok to me... How did you say : Quite similar, developing this is 
a kind of fun ? :)
Regards.

- Message d'origine 
De : Christian Gruber [EMAIL PROTECTED]
À : flexcoders@yahoogroups.com
Envoyé le : Mardi, 12 Juin 2007, 16h38mn 01s
Objet : Re: Re : Re : [flexcoders] Re: Building flex apps with Maven 2?









  



I think there's a little further I'd like to go before merging the  

two, though my project is now hosted at code.google. com and the  

source is BSD-licensed, so anyone is free to crib it for their own  

projects.  I have some features in mind and some bugs people have  

logged, and (mostly as a personal exercise) I'd like to continue with  

those.  I think the two projects can benefit from each others'  

presence, and ultimately, I suspect merging the makes sense.   

Frankly, however, developing this is kind of fun, and I'm not quite  

ready to give up on it. :)  But we'll keep talking and when they both  

reach as stable feature set, then we can look at benefits/costs of  

each approach and what it would take to merge them.



regards,

Christian.



On May 15, 2007, at 4:29 AM, Jean-François Mathiot wrote:



 Right, so what is the next step ?

 If you want to, we can discuss the way we should merge the  

 projects. I think the plugins are similar enough so it's can be  

 done quite fast. We can host the project on SF.net and change the  

 project name (its unix name is simply mvnflex2plugin) . If it is ok  

 to you, let me know your SF.net user id ; I will give you admin  

 rights so you can post your plugin code into a SVN branch.

 Cheers, Jeff



 - Message d'origine 

 De : Christian Gruber [EMAIL PROTECTED] net

 À : [EMAIL PROTECTED] ups.com

 Envoyé le : Jeudi, 10 Mai 2007, 19h10mn 49s

 Objet : Re: Re : [flexcoders] Re: Building flex apps with Maven 2?



























 Hey Jeff,







 This is really funny - we have developed quite similar plugins.







 On May 10, 2007, at 12:31 PM, Jean-François Mathiot wrote:







 Ok. Actually, I were not able to find a way to specifiy the target



 path for the dependency inclusion with Maven 2 WAR Plugin



 (something like the mvn-1 war.target.path property). All I found



 was this defect : http://jira. codehaus. org/browse/ MWAR-18



 ...







 Ok.  That's partly why I went with using the dependency plugin to



 push .swfs into the temporary locations, then using the war's native



 web resources facility to get them in.







 Our plugin also use  the SDK, that can be set with a FLEX_HOME



 environment variable or a flexSdkHome configuration property.



 Concerning compilation, we do not use the SWCs included inside the



 SDK, this we can manage the way they are compiled into the target



 artifact bytecode. The users have to install the swc files onto



 their repositories, that's annoying but MPL should quicly fix this



 problem. The swc-mojo  handles all dependencies as external library



 paths, the swf-mojo only includes the dependencies with scope



 compile (provided, like playerglobal or test like flexunit are



 ignored). Resources bundles are also considered as dependencies.







 Right.  That makes sense.  The maven-flex2- plugin includes an option



 to ignore the flex-sdk lib contents and use deployed artifacts,



 precisely because of what you are saying.  But we were having some



 problems with my client deploying things into their internal maven



 repo, so this avoided that problem practically, while allowing for a



 more mature use as you have implemented.







 Anyway, we should collaborate to merge the two, I think, and make



 sure we're including the best of all possible requirements, but you



 seem to have done a great job so far.  There might even be no added



 value in mine, except insofar as I have already arranged for



 replication to the repo1.maven. org, but that's organizational.  We'll



 figure it out.







 Cheers,



 Christian







 christian gruber + [EMAIL PROTECTED] net + bus 905.640.1119 + mob



 416.998.6023



 process coach and architect + ISRÁFÍL CONSULTING SERVICES





























 !--



 #ygrp-mlmsg {font-size:13px; font-family: arial, helvetica, clean,  

 sans-serif;}

 #ygrp-mlmsg table {font-size:inherit; font:100% ;}

 #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica,  

 clean, sans-serif;}

 #ygrp-mlmsg pre, code {font:115% monospace;}

 #ygrp-mlmsg * {line-height: 1.22em;}

 #ygrp-text{

 font-family: Georgia;

 }

 #ygrp-text p{

 margin:0 0 1em 0;}

 #ygrp-tpmsgs{

 font-family: Arial;

 clear:both;}

 #ygrp-vitnav{

 padding-top: 10px;font- family:Verdana; font-size: 77%;margin: 0;}

 #ygrp-vitnav a{

 padding:0 1px;}

 #ygrp-actbar{

 clear:both;margin: 25px 0;white-space: nowrap;color: #666;text- 

 align:right; }

 #ygrp-actbar .left{

 float:left;white- space:nowrap; }

 .bld{font-weight: bold;}

 #ygrp-grft{

 

[flexcoders] Titlewindows resizable

2007-06-14 Thread Giro
Can be a title Windows user resizable? 

 

Or I need to extended titlewindows component, to make it?

 

Thk.

Giro.



[flexcoders] REPOST: Problem switching to Flex Builder Plugin from standalone

2007-06-14 Thread Rick Root
(sorry if this shows up twice, I first sent it yesterday morning and
it still hasn't shown up on this stupid list, I freakin HATE yahoo
groups)

I've been using a slightly modified version of this (as we discussed
on the flexcoders list) for a while now:

http://url.rickroot.com/u/18

I'm switching from the standalone flex builder to the flex builder
plugin, and I can't get the app I use this in to compile anymore
because of a strange error in this component:

1119: Access of possibly undefined property CHANGE through a reference
with static type
Class.  EntityLookup/adsCheckBoxListItemRenderer.as
/EntityLookup/ads/CheckBoxListItemRenderer.as

Now, the line at which this error is occuring is in this method:

override public function set listData(value:BaseListData):void {
   super.listData = value;

   this.selected = (listData.owner as
ListBase).isItemSelected(listData.uid);

   //all we need to do is add an event listener to get notified whenever
   //there a change event dispatched by the main list control
   (value.owner as ListBase).addEventListener(ListEvent.CHANGE,
listEventHandler);
}


I don't understand why it worked just fine before (when I was using
FlexBuilder standaloen version) and it does not work in the plugin
version

Got any ideas?


Rick


RE: [flexcoders] how to display values in flex reading from a jsp an retriving the data's from jsp we couldn't connect our UI with serverside

2007-06-14 Thread Tracy Spratt
What is not working?

 

Hit the jsp directly from a browser.  What happens?

 

Here is a sample that uses jsp to retrieve and save an xml file to the
server.

http://www.cflex.net/showFileDetails.cfm?ObjectID=544ChannelID=1

 

Tracy

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lavanya balaji
Sent: Monday, June 11, 2007 9:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to display values in flex reading from a jsp
an retriving the data's from jsp we couldn't connect our UI with
serverside

 

Hi All,

 

  Please can anybody help us to solve the problem 

  We are facing a trouble to send a request from flex to a jsp

and retriving values from jsp 

we used  the following code also trying to connect jsp with mxml

but its not working 

 

This is the mxml file that we are using 

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  layout=absolute  width=100%
height=763   

mx:HTTPService id=srv url=flextest.jsp/   

mx:DataGrid dataProvider={srv.lastResult.project.portal}
width=100% height=100%/  

mx:Button label=Get Data click=srv.send()/  

/mx:Application   

And the corresponding jsp file is   

%@ page contentType=text/html;charset=UTF-8 language=java %

%@ taglib uri=http://jakarta.apache.org/struts/tags-bean
http://jakarta.apache.org/struts/tags-bean   prefix=bean%

%@ taglib uri=http://jakarta.apache.org/struts/tags-html
http://jakarta.apache.org/struts/tags-html   prefix=html%

%@ page import=com.p3.form.ProjectPortalForm%

%@ page import=java.util.List

 import=java.util.Map

 import =  java.util.ArrayList

 import=java.util.Iterator%  

?xml version=1.0 encoding=utf-8?

project 

%

List list = null;

list = (List)request.getAttribute(projectlist);

ProjectPortalForm project;

//  for (int i=0; ilist.size(); i++)

//{

project = (ProjectPortalForm) list.get(i);

%   

portal 

sbu%= project.getSbu()%/sbu

projecttyp%= project.getProjectType() %/projecttyp

projectname%= project.getProjectName() %/projectname

 phone%= project.getPhone()%/phone

startdate%= project.getProjectStartDate() %/startdate

endate%= project.getProjectEndDate() %/endate

ordervale%= project.getOrderValue() %/ordervale   

/portal

%

//} 

%

/project

 Thanks and Regards

Lavanyabalaji




  



Download prohibited? No problem! CHAT
http://us.rd.yahoo.com/mail/in/ywebmessenger/*http:/in.messenger.yahoo.
com/webmessengerpromo.php  from any browser, without download.

 



Re: [flexcoders] Creating Multiple objects and giving them each a unique name

2007-06-14 Thread Troy Gilbert

So, are you saying that if you comment out the addEventListener lines you
only end up with one sprite displayed instead of multiple sprites displayed?
That can't be right... what does the code in the event listeners do?

Are you needing a unique ID that ties back to your XML? If so, you first
need a way to uniquely look up the XML elements (by index is fine if the
collection doesn't change, otherwise you'll want to assign an ID attribute
to each element). Then you can use the unique XML element ID's as the name
property for your sprite. You can then use the sprite's parent's
getChildByName method to grab the specific sprite.

A more general way to do it: use a dictionary to associate any object with
any other object. In that case, you can use the XML element as the key in
the dictionary with the sprite as the value (and you can do a reverse
lookup in the same way). In fact, I believe the Dictionary example in the
Flex 2 docs does something very similar.

Troy.


On 6/13/07, jimmedia [EMAIL PROTECTED] wrote:


  I'm looping through an XML file with the following code


for (var i:int = 0; i  numElementsinXML; i++)
{
var sprite:Sprite = new Sprite();
sprite.graphics.lineStyle(0, 0xff, 1);
sprite.graphics.beginFill(0xff, 1);
sprite.graphics.drawCircle((i+25)*15, 80, 2);
sprite.graphics.endFill();
sprite.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverNode);
sprite.addEventListener(MouseEvent.MOUSE_OUT, onMouseOutNode);
addChild(sprite);
}


now the above code without the event listeners displays the proper
number of sprites on the screen with proper spacing (in my case 12
circles). With the event listeners though I only get one sprite
displayed, but it does respond to the MouseEvent.

I want to know how I can loop through my xml and produce a uniquely
named sprite (or in fact object) based on my xml, and be able to
reference it anywhere in my program.

Thanks in advance.

 



RE: [flexcoders] Flex Pretty Printer.

2007-06-14 Thread Gordon Smith
Adobe doesn't provide one, but we're looking into this as a possible
feature for a future release beyond Flex 3.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mjharris73
Sent: Wednesday, June 13, 2007 11:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Pretty Printer.



Is there a source code formatter (pretty printer) for Flex (mxml and
as3)?

Mike



 


Re: [flexcoders] The future of Flex IDE's

2007-06-14 Thread Troy Gilbert

I largely prefer many of Visual Studio's (particularly 2005) features to
FlexBuilder, though do like some of FlexBuilder/Eclipse's features as well.

Of course, the features I like most about Visual Studio don't seem to be
intrinsic to the way it does things, more just that they don't exist in Flex
Builder. For example, Visual Studio does some incredible Intellisense for
C#... it basically suggests appropriate text (keywords, variable names,
types, functions, etc.) with every keystroke. For folks with a lame memory
like myself, it's great... it's also very conducive to using long,
descriptive names for things since you don't end up having to type it all
out constantly.

It's also *very* smart about automatic formating of the code, and you can
define all the rules that it applies as you type.

In addition, there are some tools built into VS that need to be added to
Flex (and sound like they may be to a degree with the data wizards in Flex
3), stuff like automatically generating classes from XML schemas, providing
visual designers for schemas, etc.

Troy.


On 6/14/07, Mark Ingram [EMAIL PROTECTED] wrote:


  Yes.

My web services are all developed with Visual Studio, so to be able to
have Flex and Web Services all in the same IDE would be great. Oh, and
the obvious thing, Visual Studio is a much better IDE than Eclipse (in
my personal opinion).

Mark

-Original Message-
From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
Behalf Of sleekdigital
Sent: 13 June 2007 19:09
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: [flexcoders] The future of Flex IDE's

Flex Builder is awesome, but does anyone else think it might be cool
to see another Flex IDE built on top of this someday ? ...
http://msdn2.microsoft.com/en-us/vstudio/bb510103.aspx

:)

--
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] Show incremental numeric index in a List

2007-06-14 Thread Tracy Spratt
I have not seen any way to do this except by adding the index to the
dataProvider.  You would just need to rebuild the index after the drop
action, or after a sort.

 

Now, an idea. Perhaps, if your item renderer extends IdropInItemRenderer
and so has access to the listData, and the dataProvider is a collection,
you could use listData.getChildIndex(data) to get the index?  Just
brainstorming here, you'll need to try it.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of williamkusumo
Sent: Wednesday, June 13, 2007 7:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Show incremental numeric index in a List

 

Hi!

I have a List bounded to a dataProvider and an itemRenderer. Could
anyone advice me on how I can insert an incremental numeric index in
each list item (1, 2, 3, and so on)? This list can be re-arranged via
drag-n-drop, so I can't put the index as part of the data.

Any help will be greatly appreciated.

Thanks!

 



[flexcoders] Re: Help Request : Deferred Instantiation and Bound SWFLoader

2007-06-14 Thread ibid049
By the way, I can fix the problem by setting 
creationPolicy=queued on the TabNavigator, or by setting it 
to none and then manually calling createComponentsFromDescriptors 
after the array is populated.  But that band-aid short-circuits 
deffered instantiation, which I don't want to do.

Also interesting is that creationPolicy=all does not fix the 
problem.  This is why I was thinking it had something to do with the 
timing of defferred instantiation vs. the bindings or something.  It 
almost acts like createComponentsFromDescriptors() is getting called 
before the array is populated in the init() method, and then future 
calls to createComponentsFromDescriptors() don't fire or something.

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

 Your code worked for me. I pasted it into a new FlexBuilder 
project, and
 I made three different SWFs -- screen1.swf, screen2.swf, and 
screen3.swf
 -- and put them in the same project folder. When I ran the app I saw
 each SWF as I clicked the tabs. Perhaps all three of your SWFs are
 copies of the same SWF?
  
 BTW, your 10-line init() method can be condensed into
 screens = new ArrayCollection(
 [ { incSWF: screen1.swf }, { incSWF: screen2.swf }, { 
incSWF:
 screen3.swf } ]);
 
 - Gordon
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of ibid049
 Sent: Wednesday, June 13, 2007 12:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Help Request : Deferred Instantiation and 
Bound
 SWFLoader
 
 
 
 Please forgive the intrusion of contacting you directly, but I saw 
 you post several times on a related topic in the flexcoders mailing 
 list, and - after not receiving a response to my own query on the 
 list, thought you might be able to save me hours of wall-to-head-
 banging with just a few seconds worth of advice.
 
 It seems that a viewStack component that contains a SWFLoader is 
not 
 successfully loading the SWF of the second and further panes. 
 Frankly, I can't believe that's the case, because surely someone 
else 
 would have noticed this. I assume it's an elementary error on my 
 part.
 
 The following mxml demonstrates the problem. I'm binding the 
 repeater to an ArrayCollection of filenames that should be used as 
a 
 source for SWFLoaders inside the Repeater. This only loads the 
first 
 pane, even when clicking on the second or third pane. 
 
 I must be doing this in either a wrong or non-standard way. Is 
there 
 any way you could point to an easier way to accomplish what I'm 
 trying to do here?
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml  
 layout=absolute creationComplete=init()
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 import mx.collections.ArrayCollection;
 
 [Bindable] public var screens:ArrayCollection;
 
 public function init():void {
 screens = new ArrayCollection();
 var firstScreen:Object = new Object();
 var secondScreen:Object = new Object
 ();
 var thirdScreen:Object = new Object();
 firstScreen.incSWF = 'screen1.swf';
 secondScreen.incSWF = 'screen2.swf';
 thirdScreen.incSWF = 'screen3.swf';
 screens.addItem(firstScreen);
 screens.addItem(secondScreen);
 screens.addItem(thirdScreen);
 }
 
 ]]
 /mx:Script
 mx:TabNavigator id=ScreenStack top=22 left=0 
 right=0 bottom=0
 mx:Repeater id=AppRepeater 
 dataProvider={screens}
 mx:Canvas id=AppCanvas 
 width=100% height=100%
 mx:SWFLoader 
 id=ScreenLoader source={AppRepeater.currentItem.incSWF} 
 width=100% height=100%/ 
 /mx:Canvas
 /mx:Repeater
 /mx:TabNavigator
 /mx:Application





Re: [flexcoders] How well does FlexBuilder run on a MacBook?

2007-06-14 Thread Troy Gilbert

I grabbed the FlexBuilder3 beta for the Mac (I use a MacBookPro/2GB, but run
FlexBuilder in Parallels for legacy reasons). I was very, very underwhelmed
with the UI (the performance seemed fine, though). I was hoping that it
would be a clean UI like those of TextMate, Coda, XCode, etc... but it felt
very much like a ported Java app running with an Cocoa skin (which I guess
it exactly what it is).

So, I downloaded FB3 for Windows and I'm running it under Parallels. Works
great!

Troy.


On 6/14/07, Wayne McFetridge [EMAIL PROTECTED] wrote:


  I run it pretty sweet on a 1Gb MacBook -- i thought I'd need 2 but it
hasn't been a problem at all.

* Wayne McFetridge*
[EMAIL PROTECTED]

(07) 5444 5056
0408 882 019
 PO Box 1219 Buderim 4556




On 14/06/2007, at 7:33 PM, Alex MacCaw wrote:

FlexBuilder is quite resource heavy, how well does it run on a MacBook?
Should I upgrade the RAM (to 2 gb) or should I think about getting a MacBook
pro?

--
http://www.eribium.org | http://juggernaut.rubyforge.org |
http://www.aireofs.com| Skype: oldmanorhouse


 


Re: [flexcoders] A Question of AS3 Object Equality and Collections

2007-06-14 Thread Troy Gilbert

I expect that arrays use strict equality, hence the results you're seeing.
In fact, I would assume all collections to use strict equality. I think the
only reason that there's a distinction in Object and Dictionary is because
Object *always* uses strings as keys, and thus calls toString() on
non-String objects, and thus gets a quasi equality going on... hence the
need for Dictionary which basically just never calls toString(), resulting
in the revelation that its strict equality only.

Am I making any sense?

So, to answer your question, I'd guess a custom collection class would be
the appropriate fix. I've run into it several times (like an ordered
collection with sparse unique ID's) where you basically have to wrap an
Array with all the appropriate access API.

Troy.


On 6/14/07, Greg McCreath [EMAIL PROTECTED] wrote:


   Hi All,

In AS3 we have only the Object, Array, and Dictionary to use for
collections (as far as I know!).  I'm posting this unless I am missing
something about how AS3 handles equality in collections.  I'm using QName
objects but I guess anything could do.

Consider the following:

var nameSpace1: Namespace = new Namespace(http://foo;);
var nameSpace2: Namespace = new Namespace(http://bar;);

var qname1: QName = new QName(nameSpace,bob);
var qname2: QName = new QName(nameSpace,bob);
var qname3: QName = new QName(nameSpace2,bob);

trace(are equal1 : + (qname1 == qname2));
trace(are equal2 : + (qname1 === qname2));
trace(are equal3 : + (qname1 == qname3));
Gives :

true
false
false

Good.  AS3 believes qname1  qname2 are equal, and qname2 and qname3 are
not.  Excellent.  Good start.

However:

var a: Array = new Array();
a.push(qname1);
trace(a.indexOf(qname2)  -1);
 Ooops.  They are not quite the same after all.  So, with this
behaviour different part of my framework cannot create a QName and put in an
Array for other classes to get out with their own QName objects - even
though AS3 says they are equal.

Perhaps I could use a Dictionary.  However it is based on '===' strict
equality and doesn't fit the bill because of that.  In fact, try adding a
QName as a key to a Dictionary like:

var nameSpace: Namespace = new Namespace(http://foo;);
var qname: QName = new QName(nameSpace,bar);
var d:Dictionary = new Dictionary();
d[qname] = why does this blow up?;
gives an explosion:

ReferenceError: Error #1056: Cannot create property http://foo::bar on
flash.utils.Dictionary.

 you simpy cannot use a Dictionary object for QNames.  I've tried it in 10
different ways (namespaces with/without prefixes etc etc). I'll post this
separately I reckon.

Bottom line: Do I have to create my own collections classes (a la Java)
and use my own equality mechanisms... ?

All replies appreciated.

Greg.


--
This email and any files transmitted with it may be confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. This email may contain personal information of individuals, and
be subject to Commonwealth and/or State privacy laws in Australia. This
email is also subject to copyright. If you are not the intended recipient,
you must not read, print, store, copy, forward or use this email for any
reason, in accordance with privacy and copyright laws. If you have received
this email in error, please notify the sender by return email, and delete
this email from your inbox.

 



RE: [flexcoders] Printed content had vertical bar

2007-06-14 Thread Alex Harui
Did you try a hello world app with backgroundColor=0xFF?  Did
you try printing to other printers?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Thursday, June 14, 2007 2:14 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Printed content had vertical bar

On Thursday 14 Jun 2007, shaun wrote:
 I dont know how it would have got there, but to figure out what is
 causing it you could start removing components from the page your
 printing. Or start with a clean slate and start adding components.

Well, with just a PrintDataGrid on the page, the line appears.
Not setting the dataProvider of the PDG doesn't make it go way.
A print view with no visual components still has the line ! All the
print view 
is now is just a mx:Script blog with some bindables and functions that
don't 
get called.
If I remove the background color style from the print view's base tag
(VBox), 
I get a mostly gray page but with a single-pixel wide white line down
the 
right hand side.
What I *think* must be happening is that a thin sliver of the gray is
showing 
through the edge of my backgroundColor=FF) VBox, and that's where
the 
weird line comes from.

Argh !

-- 
Tom Chiverton
Helping to revolutionarily conquer synergistic markets
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] The future of Flex IDE's

2007-06-14 Thread Paul deCoursey
Troy Gilbert wrote:

 I largely prefer many of Visual Studio's (particularly 2005) features 
 to FlexBuilder, though do like some of FlexBuilder/ Eclipse's features 
 as well.

 Of course, the features I like most about Visual Studio don't seem to 
 be intrinsic to the way it does things, more just that they don't 
 exist in Flex Builder. For example, Visual Studio does some incredible 
 Intellisense for C#... it basically suggests appropriate text 
 (keywords, variable names, types, functions, etc.) with every 
 keystroke. For folks with a lame memory like myself, it's great... 
 it's also very conducive to using long, descriptive names for things 
 since you don't end up having to type it all out constantly.


I totally agree with that one... FB/Eclipse really falls short in that 
regard.


 It's also *very* smart about automatic formating of the code, and you 
 can define all the rules that it applies as you type.

 In addition, there are some tools built into VS that need to be added 
 to Flex (and sound like they may be to a degree with the data wizards 
 in Flex 3), stuff like automatically generating classes from XML 
 schemas, providing visual designers for schemas, etc.

I'm working on a Class generator from XML Schemas right now.  I have a 
fairly good start, still working out some bugs.  I expect to have a beta 
release available in the next few weeks.  It's built right now as an ANT 
task.

Paul



[flexcoders] Re: The future of Flex IDE's

2007-06-14 Thread ibid049
This -
http://msdn2.microsoft.com/en-us/vstudio/bb510103.aspx

might change things a bit.  It's basically MS's answer to eclipse, as 
I see it.  If Adobe were to build an Flex Builder on this instead, 
you could probably get a lot of your wishlist.

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

 Troy Gilbert wrote:
 
  I largely prefer many of Visual Studio's (particularly 2005) 
features 
  to FlexBuilder, though do like some of FlexBuilder/ Eclipse's 
features 
  as well.
 
  Of course, the features I like most about Visual Studio don't 
seem to 
  be intrinsic to the way it does things, more just that they don't 
  exist in Flex Builder. For example, Visual Studio does some 
incredible 
  Intellisense for C#... it basically suggests appropriate text 
  (keywords, variable names, types, functions, etc.) with every 
  keystroke. For folks with a lame memory like myself, it's 
great... 
  it's also very conducive to using long, descriptive names for 
things 
  since you don't end up having to type it all out constantly.
 
 
 I totally agree with that one... FB/Eclipse really falls short in 
that 
 regard.
 
 
  It's also *very* smart about automatic formating of the code, and 
you 
  can define all the rules that it applies as you type.
 
  In addition, there are some tools built into VS that need to be 
added 
  to Flex (and sound like they may be to a degree with the data 
wizards 
  in Flex 3), stuff like automatically generating classes from XML 
  schemas, providing visual designers for schemas, etc.
 
 I'm working on a Class generator from XML Schemas right now.  I 
have a 
 fairly good start, still working out some bugs.  I expect to have a 
beta 
 release available in the next few weeks.  It's built right now as 
an ANT 
 task.
 
 Paul





[flexcoders] Number column in DataGrid

2007-06-14 Thread headjoog
I'm stuck and making a dunce appeal - this can't be as difficult as I'm 
making it:

I have a Data Grid and a Form.  When an item is selected on the Data 
Grid, it displays the selected item on the Form for editing.

I'm using mx:Binding so changes on the form are reflected in the 
grid.  With straight text values, life is good - it works fine.

One column in the grid is a Number (actually currency) and when I try 
to include that I get a type coercion error. (I'm saving this back to a 
database via Hibernate where the column is a number).  I tried to use 
Number(txtInput.text) in the mx:Binding destination tag and it 
works, but I lose precision on the Number - it won't save decimals.  It 
acts weird - when I type a decimal, it takes it, then backs it out if I 
type more numbers.  

I'm stuck on this conversion of the TextInput to a Number.  Do you have 
to convert the TextInput to a Number via a function?  Can someone 
clue me in?

Thanks -joe





[flexcoders] HTML frame within flex?

2007-06-14 Thread duke_tantiprasut
I need to be able to display frames to other web applications. With
native html, I can just use frames or something similar. Is this
possible from within flex?

Also is it possible to render html content in flex?

Thanks
Duke



Re: [flexcoders] Ambiguous class usage in generated code

2007-06-14 Thread Justin Patrin
On 6/14/07, Tom Chiverton [EMAIL PROTECTED] wrote:
 On Thursday 14 Jun 2007, Justin Patrin wrote:
  That is exactly my point. I'm not writing the code. The code causing
  the error is automatically generated by Flex.

 I think you'll have to change the name of your subclass.
 I'd expect to see com.foo.YesNo as the base and com.bar.project.CustomYesNo
 for instance.


That's what I ended up doing. It's certainly not something that should
be required, though, IMHO, since using the full class name (with
package) is perfectly valid code. If Flex 3 hasn't fixed this I'll put
in a feature request.

-- 
Justin Patrin


Re: [flexcoders] The future of Flex IDE's

2007-06-14 Thread Justin Patrin
On 6/14/07, Paul deCoursey [EMAIL PROTECTED] wrote:
 Troy Gilbert wrote:
  
   I largely prefer many of Visual Studio's (particularly 2005) features
   to FlexBuilder, though do like some of FlexBuilder/ Eclipse's features
   as well.
  
   Of course, the features I like most about Visual Studio don't seem to
   be intrinsic to the way it does things, more just that they don't
   exist in Flex Builder. For example, Visual Studio does some incredible
   Intellisense for C#... it basically suggests appropriate text
   (keywords, variable names, types, functions, etc.) with every
   keystroke. For folks with a lame memory like myself, it's great...
   it's also very conducive to using long, descriptive names for things
   since you don't end up having to type it all out constantly.
  

  I totally agree with that one... FB/Eclipse really falls short in that
  regard.

Eclipse/FB does plenty of auto-finishing of
variables/classes/constants for me. Where do you see it as falling
short?

-- 
Justin Patrin


RE: [flexcoders] Re: Help Request : Deferred Instantiation and Bound SWFLoader

2007-06-14 Thread Alex Harui
Remember that SWFLoading is asynchronous in server environments.  Not
sure Gordon tested locally or remotely.  In an asynch environment, the
swf will not complete loading and have its stuff available until much
later, after a COMPLETE event (not creationComplete).

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ibid049
Sent: Thursday, June 14, 2007 9:07 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help Request : Deferred Instantiation and
Bound SWFLoader

 

By the way, I can fix the problem by setting 
creationPolicy=queued on the TabNavigator, or by setting it 
to none and then manually calling createComponentsFromDescriptors 
after the array is populated. But that band-aid short-circuits 
deffered instantiation, which I don't want to do.

Also interesting is that creationPolicy=all does not fix the 
problem. This is why I was thinking it had something to do with the 
timing of defferred instantiation vs. the bindings or something. It 
almost acts like createComponentsFromDescriptors() is getting called 
before the array is populated in the init() method, and then future 
calls to createComponentsFromDescriptors() don't fire or something.

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

 Your code worked for me. I pasted it into a new FlexBuilder 
project, and
 I made three different SWFs -- screen1.swf, screen2.swf, and 
screen3.swf
 -- and put them in the same project folder. When I ran the app I saw
 each SWF as I clicked the tabs. Perhaps all three of your SWFs are
 copies of the same SWF?
 
 BTW, your 10-line init() method can be condensed into
 screens = new ArrayCollection(
 [ { incSWF: screen1.swf }, { incSWF: screen2.swf }, { 
incSWF:
 screen3.swf } ]);
 
 - Gordon
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of ibid049
 Sent: Wednesday, June 13, 2007 12:36 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Help Request : Deferred Instantiation and 
Bound
 SWFLoader
 
 
 
 Please forgive the intrusion of contacting you directly, but I saw 
 you post several times on a related topic in the flexcoders mailing 
 list, and - after not receiving a response to my own query on the 
 list, thought you might be able to save me hours of wall-to-head-
 banging with just a few seconds worth of advice.
 
 It seems that a viewStack component that contains a SWFLoader is 
not 
 successfully loading the SWF of the second and further panes. 
 Frankly, I can't believe that's the case, because surely someone 
else 
 would have noticed this. I assume it's an elementary error on my 
 part.
 
 The following mxml demonstrates the problem. I'm binding the 
 repeater to an ArrayCollection of filenames that should be used as 
a 
 source for SWFLoaders inside the Repeater. This only loads the 
first 
 pane, even when clicking on the second or third pane. 
 
 I must be doing this in either a wrong or non-standard way. Is 
there 
 any way you could point to an easier way to accomplish what I'm 
 trying to do here?
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml   
 layout=absolute creationComplete=init()
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 import mx.collections.ArrayCollection;
 
 [Bindable] public var screens:ArrayCollection;
 
 public function init():void {
 screens = new ArrayCollection();
 var firstScreen:Object = new Object();
 var secondScreen:Object = new Object
 ();
 var thirdScreen:Object = new Object();
 firstScreen.incSWF = 'screen1.swf';
 secondScreen.incSWF = 'screen2.swf';
 thirdScreen.incSWF = 'screen3.swf';
 screens.addItem(firstScreen);
 screens.addItem(secondScreen);
 screens.addItem(thirdScreen);
 }
 
 ]]
 /mx:Script
 mx:TabNavigator id=ScreenStack top=22 left=0 
 right=0 bottom=0
 mx:Repeater id=AppRepeater 
 dataProvider={screens}
 mx:Canvas id=AppCanvas 
 width=100% height=100%
 mx:SWFLoader 
 id=ScreenLoader source={AppRepeater.currentItem.incSWF} 
 width=100% height=100%/ 
 /mx:Canvas
 /mx:Repeater
 /mx:TabNavigator
 /mx:Application


 



[flexcoders] Re: Number column in DataGrid

2007-06-14 Thread Doug Lowder
Top-level function parseFloat() might do the trick.  You may need to 
pass it a substring if your text input has a leading currency 
character.

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

 I'm stuck and making a dunce appeal - this can't be as difficult as 
I'm 
 making it:
 
 I have a Data Grid and a Form.  When an item is selected on the 
Data 
 Grid, it displays the selected item on the Form for editing.
 
 I'm using mx:Binding so changes on the form are reflected in the 
 grid.  With straight text values, life is good - it works fine.
 
 One column in the grid is a Number (actually currency) and when I 
try 
 to include that I get a type coercion error. (I'm saving this back 
to a 
 database via Hibernate where the column is a number).  I tried to 
use 
 Number(txtInput.text) in the mx:Binding destination tag and it 
 works, but I lose precision on the Number - it won't save 
decimals.  It 
 acts weird - when I type a decimal, it takes it, then backs it out 
if I 
 type more numbers.  
 
 I'm stuck on this conversion of the TextInput to a Number.  Do you 
have 
 to convert the TextInput to a Number via a function?  Can someone 
 clue me in?
 
 Thanks -joe





[flexcoders] Getting styleNames at runtime?? ( CSSStyleDeclaration::getExplicitStyleNames() )

2007-06-14 Thread Aldo Bucchi
Hi All,

I need to be able to duplicate style declarations at runtime... and I
hit a wall:
Is there any way to do the following??

for each ( var styleName:String in myStyleDec.getExplicitStyleNames() )
{
trace( styleName +  =  + myStyleDec.getStyle( styleName ) );
}


See, I'm really missing something in the lines of

CSSStyleDeclaration::getExplicitStyleNames():Array


I can see some private or protected members of the class that may hold
that info, but no public way to access it.

Any ideas?
Is this by design? ( I might be missing the bigger picture here...
after all this things are called cascading for some reason )

Thanks!!
Aldo


-- 
: Aldo Bucchi :
mobile +56 9 8429 8300


[flexcoders] Force Tree to redraw using custom itemEditors

2007-06-14 Thread rottmanList

I am using a custom item renderer that basically allows the user to change
the label of any leaf nodes inside of that tree. The leaf nodes are physical
files inside folders and on itemEditEnd it updates the filename, however
what isn't getting updated is after they've typed there new filename the
tree isn't redrawing itself to show the new label until you close the parent
folder and open it again. Does anybody happen to know on how you can make it
so the tree recognizes the change in it's data and redraw itself? Here is
the function I'm using of where I need the tree to re-draw. And help would
be much appreciated.

// Define the event listener for the itemEditEnd event to copy the
   // updated data back to the data provider of the Tree control.
   public function processData(event:ListEvent):void {

   // Disable copying data back to the control.
   event.preventDefault();

   // Set variables to pass to cfc
   var fileSrc:String = docTree.editedItemRenderer.data.label;
   var fileLocation:Object = docTree.getParentItem(docTree.selectedItem
);
   docTree.editedItemRenderer.data.label = TreeEditor(
event.currentTarget.itemEditorInstance).fileName.text;
   var newFileSrc:String = docTree.editedItemRenderer.data.label;

   // Close the item editor.
   docTree.destroyItemEditor();

   // Notify the list control to update its display.
   docTree.dataProvider.notifyItemUpdate(docTree.editedItemRenderer);

   // Reset tree editability
   docTree.editable = false;

   // Validate tree and redraw if necessary
   docTree.validateNow();

   // Call cfc to rename file
   renameDocument(fileSrc, fileLocation.data, newFileSrc,
mainStage[stateID].uuid.text);
   }


Re: [flexcoders] The future of Flex IDE's

2007-06-14 Thread Michael Schmalle

Eclipse can still be extended...

I wish Adobe after this Flex 3 push would really focus some effort on
letting people know how to extend their API's. I myself have written java,
but really have no idea where to start if I wanted to add a plugin say, a
code formater to flex builder right now.

... Like a simple tutorial ... :)

Anyway, it can and probably will be made a lot better. Micorsoft's Visual
Studio has how many years on Flex Builder?? Lets be real here.

Peace, Mike

On 6/14/07, Justin Patrin [EMAIL PROTECTED] wrote:


  On 6/14/07, Paul deCoursey [EMAIL PROTECTED] paul%40decoursey.net
wrote:
 Troy Gilbert wrote:
 
  I largely prefer many of Visual Studio's (particularly 2005) features
  to FlexBuilder, though do like some of FlexBuilder/ Eclipse's features
  as well.
 
  Of course, the features I like most about Visual Studio don't seem to
  be intrinsic to the way it does things, more just that they don't
  exist in Flex Builder. For example, Visual Studio does some incredible
  Intellisense for C#... it basically suggests appropriate text
  (keywords, variable names, types, functions, etc.) with every
  keystroke. For folks with a lame memory like myself, it's great...
  it's also very conducive to using long, descriptive names for things
  since you don't end up having to type it all out constantly.
 

 I totally agree with that one... FB/Eclipse really falls short in that
 regard.

Eclipse/FB does plenty of auto-finishing of
variables/classes/constants for me. Where do you see it as falling
short?

--
Justin Patrin
 





--
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] Flex 3.0 ASP.NET and SQL2005

2007-06-14 Thread Ken Bromberger
Looks like .NET is not working quite yet... I received this reply on the
Labs Forum..

 

Message Posted on: Thursday June 14,2007 11:35:35 AM
Hi,

Currently the Data Accessor doesn't generate .NET code but we are
working onto this. 
For the DB connectivity in the Flex Builder we are using Eclipse
Datatools project. So you can see and edit your connections in the Data
Source Explorer View.
To open this view you can go to Window-Show View-Other ... then choose
Connectivity-Data Source Explorer.

Regards,
Miti

You can view the message at
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=651t
hreadid=1275774forumid=72.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Pearson
Sent: Wednesday, June 13, 2007 11:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 3.0 ASP.NET and SQL2005

 

Has anyone got this to work? 

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

 I got the jar files at

http://www.microsoft.com/downloads/details.aspx?FamilyID=07287B11-0502-4
61A-B138-2AA54BFDC03Adisplaylang=en
 
 If you download and run the setup file it extracts to C:\Program
 Files\Microsoft SQL Server 2000 Driver for JDBC\lib. In that folder
 is the three JAR files you need.
 
 @ken
 I am stuck at the same point as you now. It says I must have a table
 but it won't populate the drop down list and I can't type in it.
 
 
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Ken Bromberger kenb@ wrote:
 
  Yeah, one step... I had to download a jar from Microsoft,
  http://msdn2.microsoft.com/en-us/data/aa937724.aspx it looks it
might be
  good for 2000 and 2005. If you dig around in the driver settings
on the
  Specify a Driver and connection details in Flex there is a place
to
  add it... - Ken
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
  Behalf Of Nate Pearson
  Sent: Monday, June 11, 2007 12:31 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

  Subject: [flexcoders] Re: Flex 3.0 ASP.NET and SQL2005
  
  
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
mailto:flexcoders%40yahoogroups.com
  , Ken Bromberger kenb@ wrote:
  
   Has anyone had success with the data accessor and .NET? I have a
   connection to the server but when I go to the Choose
   Connection/Table/Primary key screen I get a message that says
You
  must
   have a table and the table list is not popluated. Any ideas?
Also,
  how
   do you edit the connections you have set up? - Ken
  
  
  I'm trying to connect to SQL2000. I choose new connection - SQL
  Model-JDBC Connection - I select SQL Server 2000 as the driver and
it
  says unable to locate jar/zip in file system as specified by the
  driver definition: msbase.jar; mssqlserver.jar; msutil.jar.
  
  I think you might be a step ahead of me...
 


 



[flexcoders] System Capabilities

2007-06-14 Thread {reduxdj}
I'm doing some processor intensive flash stuff and I wonder if anything 
in the flash system capabilities class will allow me to
get the actual CPU Speed or something comparable?

It would be nice if I could turn off some of the effects if the clients 
machine sucks etc.

Thanks,
Patrick



[flexcoders] Simple Question about HTTP service - local and remot files pleaase

2007-06-14 Thread {reduxdj}
Hi, I am doing local development and I wonder if i can just leave the 
url the filename (just checking before i post to the live server)

mx:HTTPService id=ht1 resultFormat=text result=output();  
fault=Alert.show('Could not load url');/


ht1.url = _url;
ht1.send();


or does it have to be full path like http:// etc...

Thanks,
Patrick



[flexcoders] event.shiftKey traces false

2007-06-14 Thread rottmanList

Has anybody else had problems with detecting if event.shiftKey is true? It
seems ever since I upgraded to 2.0.1 I've lost the ability to see if the
user has shift, crtl'd, or alted a key while clicking on something. Below is
a function I wrote a good amount of time ago that worked for the longest
period of time and it seems that it stopped working just as soon as I
upgraded.


// GLOBAL OPEN LINK FUNCTION
   public function openLink(event:MouseEvent, linkURL:String):void {
   trace(event.shiftKey);
   if(event.shiftKey){
   trace( You ShiftClicked);
   var request:URLRequest = new URLRequest(linkURL);
   navigateToURL(request, _blank);
   }
   }

That function traces false every time no matter what you got down on the
keyboard. Anyone have ideas or similiar problems?


Re: [flexcoders] The future of Flex IDE's

2007-06-14 Thread Jeffry Houser

  Load up Flex Builder  -- Help -- Help Contents

  Look at Platform Plug-in Developer Guide and Plug-in Development 
Environment guide.

  And/or google Eclipse Plugin Tutorials.

  If I were Adobe, I wouldn't devote time to creating resources like 
these.


Michael Schmalle wrote:
 
 
 Eclipse can still be extended...
 
 I wish Adobe after this Flex 3 push would really focus some effort on 
 letting people know how to extend their API's. I myself have written 
 java, but really have no idea where to start if I wanted to add a plugin 
 say, a code formater to flex builder right now.
 
 ... Like a simple tutorial ... :)
 
 Anyway, it can and probably will be made a lot better. Micorsoft's 
 Visual Studio has how many years on Flex Builder?? Lets be real here.
 
 Peace, Mike



-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com



[flexcoders] Help! Converting PowerPoint to AS3 SWFs

2007-06-14 Thread Oliver Merk
Hoping someone out there has an answer to this tricky one...

I need to convert a PowerPoint file to an AS3-compatible SWF file. The
SWF will get embedded into a Flex application. It must be AS3 so that
Flex sees the embedded SWF as a MovieClip, and I'll have the ability
to go to a particular frame of the slideshow using
gotoAndStop(framenumber).

I know one can embed an AS2 SWF into Flex, but you can't control it
without creating a localConnection as well as some additional code in
the SWF to accommodate this.

Any ideas?




[flexcoders] Re: Number column in DataGrid

2007-06-14 Thread headjoog
Nope - same results.  I think the mx:Binding is causing the weird 
behavior.  If I take it out, I can type numbers with decimals in the 
mx:TextInput item.  But with it in there, it won't allow any 
decimals.





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

 Top-level function parseFloat() might do the trick.  You may need 
to 
 pass it a substring if your text input has a leading currency 
 character.
 
 --- In flexcoders@yahoogroups.com, headjoog jburns@ wrote:
 
  I'm stuck and making a dunce appeal - this can't be as difficult 
as 
 I'm 
  making it:
  
  I have a Data Grid and a Form.  When an item is selected on the 
 Data 
  Grid, it displays the selected item on the Form for editing.
  
  I'm using mx:Binding so changes on the form are reflected in 
the 
  grid.  With straight text values, life is good - it works fine.
  
  One column in the grid is a Number (actually currency) and when I 
 try 
  to include that I get a type coercion error. (I'm saving this 
back 
 to a 
  database via Hibernate where the column is a number).  I tried to 
 use 
  Number(txtInput.text) in the mx:Binding destination tag and 
it 
  works, but I lose precision on the Number - it won't save 
 decimals.  It 
  acts weird - when I type a decimal, it takes it, then backs it 
out 
 if I 
  type more numbers.  
  
  I'm stuck on this conversion of the TextInput to a Number.  Do 
you 
 have 
  to convert the TextInput to a Number via a function?  Can 
someone 
  clue me in?
  
  Thanks -joe
 





[flexcoders] Flex 3 apache module on OSX?

2007-06-14 Thread John Robinson
Anyone successfully get this working? I ran into some hurdles during  
the install and am not quite sure I've got everything setup correctly.

The hurdle was that the installer wanted the path to the apache  
config directory, which when using the built-in webserver is hidden  
in /etc/httpd. My solution was to copy this directory to a visible  
directory on my desktop and point the installer there.

Then it asked for the webserver root directory which it picked out on  
it's own /Library/WebServer/Documents. This is where it put the  
samples directory.

After the install, I copied the files from my mock httpd directory  
into the real directory and restarted the server. Nothing. I then  
went into /Applications and noticed that instead of creating it's  
own folder, it just dumped it's files all over the applications  
directory. I then put these into their own folder  called  
Flex3Apache and updated compiler.conf and httpd.conf to reflect  
that. Restarted the server again but still no luck. When I browse to  
an mxml file, it just shows me a blank page (very snappily I might  
add, like it's not hitting the compiler at all).

Anyone?

Thanks,
John Robinson - Flash/Flex Developer at large
Blog: http://jrobinsonmedia.wordpress.com




[flexcoders] Re: Show incremental numeric index in a List

2007-06-14 Thread williamkusumo
Thanks for the feedback, guys!

I implemented IDropInListItemRenderer and got ahold of listData.owner.
You are right, itemRendererToIndex(...) will get you the correct index.

The trouble now is how do I bind the result of itemRendererToIndex to
a label inside the itemRenderer so that it automatically updates when
the dataProvider is changed?

You mentioned overriding updateDisplayList(), isn't that function
related more to updating the styles?

Thanks again!

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

 You can implement IDropInListItemRenderer in your HBox if you want.
 
  
 
 You can also assume that owner is the List and call
 itemRendererToIndex in an override of updateDisplayList().
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of williamkusumo
 Sent: Wednesday, June 13, 2007 5:53 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Show incremental numeric index in a List
 
  
 
 A quick note: The itemRenderer is based on HBox. So it does not
 implement IDropInListItemRenderer, thus I don't have reference to
 listData.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , williamkusumo williamkusumo@
 wrote:
 
  Hi!
  
  I have a List bounded to a dataProvider and an itemRenderer. Could
  anyone advice me on how I can insert an incremental numeric index in
  each list item (1, 2, 3, and so on)? This list can be re-arranged via
  drag-n-drop, so I can't put the index as part of the data.
  
  Any help will be greatly appreciated.
  
  Thanks!
 





RE: [flexcoders] Re: Help Request : Deferred Instantiation and Bound SWFLoader

2007-06-14 Thread Gordon Smith
I tested locally. But shouldn't his SWFs eventually appear?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, June 14, 2007 10:57 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Help Request : Deferred Instantiation and
Bound SWFLoader



Remember that SWFLoading is asynchronous in server environments.  Not
sure Gordon tested locally or remotely.  In an asynch environment, the
swf will not complete loading and have its stuff available until much
later, after a COMPLETE event (not creationComplete).



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ibid049
Sent: Thursday, June 14, 2007 9:07 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help Request : Deferred Instantiation and
Bound SWFLoader

By the way, I can fix the problem by setting 
creationPolicy=queued on the TabNavigator, or by setting it 
to none and then manually calling createComponentsFromDescriptors 
after the array is populated. But that band-aid short-circuits 
deffered instantiation, which I don't want to do.

Also interesting is that creationPolicy=all does not fix the 
problem. This is why I was thinking it had something to do with the 
timing of defferred instantiation vs. the bindings or something. It 
almost acts like createComponentsFromDescriptors() is getting called 
before the array is populated in the init() method, and then future 
calls to createComponentsFromDescriptors() don't fire or something.

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

 Your code worked for me. I pasted it into a new FlexBuilder 
project, and
 I made three different SWFs -- screen1.swf, screen2.swf, and 
screen3.swf
 -- and put them in the same project folder. When I ran the app I saw
 each SWF as I clicked the tabs. Perhaps all three of your SWFs are
 copies of the same SWF?
 
 BTW, your 10-line init() method can be condensed into
 screens = new ArrayCollection(
 [ { incSWF: screen1.swf }, { incSWF: screen2.swf }, { 
incSWF:
 screen3.swf } ]);
 
 - Gordon
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of ibid049
 Sent: Wednesday, June 13, 2007 12:36 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Help Request : Deferred Instantiation and 
Bound
 SWFLoader
 
 
 
 Please forgive the intrusion of contacting you directly, but I saw 
 you post several times on a related topic in the flexcoders mailing 
 list, and - after not receiving a response to my own query on the 
 list, thought you might be able to save me hours of wall-to-head-
 banging with just a few seconds worth of advice.
 
 It seems that a viewStack component that contains a SWFLoader is 
not 
 successfully loading the SWF of the second and further panes. 
 Frankly, I can't believe that's the case, because surely someone 
else 
 would have noticed this. I assume it's an elementary error on my 
 part.
 
 The following mxml demonstrates the problem. I'm binding the 
 repeater to an ArrayCollection of filenames that should be used as 
a 
 source for SWFLoaders inside the Repeater. This only loads the 
first 
 pane, even when clicking on the second or third pane. 
 
 I must be doing this in either a wrong or non-standard way. Is 
there 
 any way you could point to an easier way to accomplish what I'm 
 trying to do here?
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml   
 layout=absolute creationComplete=init()
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 import mx.collections.ArrayCollection;
 
 [Bindable] public var screens:ArrayCollection;
 
 public function init():void {
 screens = new ArrayCollection();
 var firstScreen:Object = new Object();
 var secondScreen:Object = new Object
 ();
 var thirdScreen:Object = new Object();
 firstScreen.incSWF = 'screen1.swf';
 secondScreen.incSWF = 'screen2.swf';
 thirdScreen.incSWF = 'screen3.swf';
 screens.addItem(firstScreen);
 screens.addItem(secondScreen);
 screens.addItem(thirdScreen);
 }
 
 ]]
 /mx:Script
 mx:TabNavigator id=ScreenStack top=22 left=0 
 right=0 bottom=0
 mx:Repeater id=AppRepeater 
 dataProvider={screens}
 mx:Canvas id=AppCanvas 
 width=100% height=100%
 mx:SWFLoader 
 id=ScreenLoader source={AppRepeater.currentItem.incSWF} 
 width=100% height=100%/ 
 /mx:Canvas
 /mx:Repeater
 /mx:TabNavigator
 /mx:Application


 


RE: [flexcoders] System Capabilities

2007-06-14 Thread Gordon Smith
Unfortunately, that info isn't available. What about timing a
computation-intensive loop to get a rough estimate of the CPU speed? You
could do a count-to-N loop that takes, say, 0.1 second on a slow machine
and 0.01 seconds on a fast machine and the user wouldn't really notice
the wait.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of {reduxdj}
Sent: Thursday, June 14, 2007 11:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] System Capabilities



I'm doing some processor intensive flash stuff and I wonder if anything 
in the flash system capabilities class will allow me to
get the actual CPU Speed or something comparable?

It would be nice if I could turn off some of the effects if the clients 
machine sucks etc.

Thanks,
Patrick



 


RE: [flexcoders] Re: Help Request : Deferred Instantiation and Bound SWFLoader

2007-06-14 Thread Alex Harui
Yes, of course, but I'm not sure what's going on with repeater bindings
and async loading.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Thursday, June 14, 2007 12:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Help Request : Deferred Instantiation and
Bound SWFLoader

 

I tested locally. But shouldn't his SWFs eventually appear?

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, June 14, 2007 10:57 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Help Request : Deferred Instantiation and
Bound SWFLoader

Remember that SWFLoading is asynchronous in server environments.  Not
sure Gordon tested locally or remotely.  In an asynch environment, the
swf will not complete loading and have its stuff available until much
later, after a COMPLETE event (not creationComplete).



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ibid049
Sent: Thursday, June 14, 2007 9:07 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help Request : Deferred Instantiation and
Bound SWFLoader

By the way, I can fix the problem by setting 
creationPolicy=queued on the TabNavigator, or by setting it 
to none and then manually calling createComponentsFromDescriptors 
after the array is populated. But that band-aid short-circuits 
deffered instantiation, which I don't want to do.

Also interesting is that creationPolicy=all does not fix the 
problem. This is why I was thinking it had something to do with the 
timing of defferred instantiation vs. the bindings or something. It 
almost acts like createComponentsFromDescriptors() is getting called 
before the array is populated in the init() method, and then future 
calls to createComponentsFromDescriptors() don't fire or something.

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

 Your code worked for me. I pasted it into a new FlexBuilder 
project, and
 I made three different SWFs -- screen1.swf, screen2.swf, and 
screen3.swf
 -- and put them in the same project folder. When I ran the app I saw
 each SWF as I clicked the tabs. Perhaps all three of your SWFs are
 copies of the same SWF?
 
 BTW, your 10-line init() method can be condensed into
 screens = new ArrayCollection(
 [ { incSWF: screen1.swf }, { incSWF: screen2.swf }, { 
incSWF:
 screen3.swf } ]);
 
 - Gordon
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of ibid049
 Sent: Wednesday, June 13, 2007 12:36 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Help Request : Deferred Instantiation and 
Bound
 SWFLoader
 
 
 
 Please forgive the intrusion of contacting you directly, but I saw 
 you post several times on a related topic in the flexcoders mailing 
 list, and - after not receiving a response to my own query on the 
 list, thought you might be able to save me hours of wall-to-head-
 banging with just a few seconds worth of advice.
 
 It seems that a viewStack component that contains a SWFLoader is 
not 
 successfully loading the SWF of the second and further panes. 
 Frankly, I can't believe that's the case, because surely someone 
else 
 would have noticed this. I assume it's an elementary error on my 
 part.
 
 The following mxml demonstrates the problem. I'm binding the 
 repeater to an ArrayCollection of filenames that should be used as 
a 
 source for SWFLoaders inside the Repeater. This only loads the 
first 
 pane, even when clicking on the second or third pane. 
 
 I must be doing this in either a wrong or non-standard way. Is 
there 
 any way you could point to an easier way to accomplish what I'm 
 trying to do here?
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml   
 layout=absolute creationComplete=init()
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 import mx.collections.ArrayCollection;
 
 [Bindable] public var screens:ArrayCollection;
 
 public function init():void {
 screens = new ArrayCollection();
 var firstScreen:Object = new Object();
 var secondScreen:Object = new Object
 ();
 var thirdScreen:Object = new Object();
 firstScreen.incSWF = 'screen1.swf';
 secondScreen.incSWF = 'screen2.swf';
 thirdScreen.incSWF = 'screen3.swf';
 screens.addItem(firstScreen);
 screens.addItem(secondScreen);
 screens.addItem(thirdScreen);
 }
 
 ]]
 /mx:Script
 mx:TabNavigator id=ScreenStack top=22 left=0 
 right=0 bottom=0
 mx:Repeater id=AppRepeater 
 dataProvider={screens}
 mx:Canvas id=AppCanvas 
 width=100% height=100%
 mx:SWFLoader 
 id=ScreenLoader 

[flexcoders] Re: Show incremental numeric index in a List

2007-06-14 Thread williamkusumo
Actually, if you consider performance, would Tracy's idea be a better
performer? (On dragDrop, we just loop through the dataProvider and
update a property that has the index manually)

Thanks!

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

 Thanks for the feedback, guys!
 
 I implemented IDropInListItemRenderer and got ahold of listData.owner.
 You are right, itemRendererToIndex(...) will get you the correct index.
 
 The trouble now is how do I bind the result of itemRendererToIndex to
 a label inside the itemRenderer so that it automatically updates when
 the dataProvider is changed?
 
 You mentioned overriding updateDisplayList(), isn't that function
 related more to updating the styles?
 
 Thanks again!
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  You can implement IDropInListItemRenderer in your HBox if you want.
  
   
  
  You can also assume that owner is the List and call
  itemRendererToIndex in an override of updateDisplayList().
  
   
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of williamkusumo
  Sent: Wednesday, June 13, 2007 5:53 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Show incremental numeric index in a List
  
   
  
  A quick note: The itemRenderer is based on HBox. So it does not
  implement IDropInListItemRenderer, thus I don't have reference to
  listData.
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  , williamkusumo williamkusumo@
  wrote:
  
   Hi!
   
   I have a List bounded to a dataProvider and an itemRenderer. Could
   anyone advice me on how I can insert an incremental numeric index in
   each list item (1, 2, 3, and so on)? This list can be
re-arranged via
   drag-n-drop, so I can't put the index as part of the data.
   
   Any help will be greatly appreciated.
   
   Thanks!
  
 





RE: [flexcoders] Re: Show incremental numeric index in a List

2007-06-14 Thread Alex Harui
updateDisplayList is for updating all visuals including the text in
labels.  I think I would call itemRendererToIndex in updateDisplayList
and modify the text at that time.  Actually, I'd probably have a
separate label just for the number and modify that.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of williamkusumo
Sent: Thursday, June 14, 2007 12:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Show incremental numeric index in a List

 

Thanks for the feedback, guys!

I implemented IDropInListItemRenderer and got ahold of listData.owner.
You are right, itemRendererToIndex(...) will get you the correct index.

The trouble now is how do I bind the result of itemRendererToIndex to
a label inside the itemRenderer so that it automatically updates when
the dataProvider is changed?

You mentioned overriding updateDisplayList(), isn't that function
related more to updating the styles?

Thanks again!

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

 You can implement IDropInListItemRenderer in your HBox if you want.
 
 
 
 You can also assume that owner is the List and call
 itemRendererToIndex in an override of updateDisplayList().
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of williamkusumo
 Sent: Wednesday, June 13, 2007 5:53 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Show incremental numeric index in a List
 
 
 
 A quick note: The itemRenderer is based on HBox. So it does not
 implement IDropInListItemRenderer, thus I don't have reference to
 listData.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , williamkusumo williamkusumo@
 wrote:
 
  Hi!
  
  I have a List bounded to a dataProvider and an itemRenderer. Could
  anyone advice me on how I can insert an incremental numeric index in
  each list item (1, 2, 3, and so on)? This list can be re-arranged
via
  drag-n-drop, so I can't put the index as part of the data.
  
  Any help will be greatly appreciated.
  
  Thanks!
 


 



RE: [flexcoders] Re: Number column in DataGrid

2007-06-14 Thread Alex Harui
The form should update the dataprovider that the datagrid is using.  Are
you set up that way?  What does the binding look like?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of headjoog
Sent: Thursday, June 14, 2007 12:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Number column in DataGrid

 

Nope - same results. I think the mx:Binding is causing the weird 
behavior. If I take it out, I can type numbers with decimals in the 
mx:TextInput item. But with it in there, it won't allow any 
decimals.

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

 Top-level function parseFloat() might do the trick. You may need 
to 
 pass it a substring if your text input has a leading currency 
 character.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , headjoog jburns@ wrote:
 
  I'm stuck and making a dunce appeal - this can't be as difficult 
as 
 I'm 
  making it:
  
  I have a Data Grid and a Form. When an item is selected on the 
 Data 
  Grid, it displays the selected item on the Form for editing.
  
  I'm using mx:Binding so changes on the form are reflected in 
the 
  grid. With straight text values, life is good - it works fine.
  
  One column in the grid is a Number (actually currency) and when I 
 try 
  to include that I get a type coercion error. (I'm saving this 
back 
 to a 
  database via Hibernate where the column is a number). I tried to 
 use 
  Number(txtInput.text) in the mx:Binding destination tag and 
it 
  works, but I lose precision on the Number - it won't save 
 decimals. It 
  acts weird - when I type a decimal, it takes it, then backs it 
out 
 if I 
  type more numbers. 
  
  I'm stuck on this conversion of the TextInput to a Number. Do 
you 
 have 
  to convert the TextInput to a Number via a function? Can 
someone 
  clue me in?
  
  Thanks -joe
 


 



[flexcoders] Flex 3 fractional scroll on List?

2007-06-14 Thread Jon Bradley
OK ... I can absolutely find zero information on this, either in the  
documentation or on the release notes.

The only mention of it was in Matt Chotin's article on Adobe.com.

I'm actually more interested in finding out whether or not Adobe  
added fractional / smooth scrolling to not only the List and DataGrid  
but the TileList as well.

Anyone with an idea of these new implementations?  I can't stand the  
current List functionality and would love to find a way around the  
cell-level scrolling if I can without re-writing a ton of code of  
course :).

Right now I'm stuck with Tile and Repeater, which works but lacks a  
lot of functionality.

cheers,

jon


[flexcoders] for RemoteObject lastResult return NULL in function

2007-06-14 Thread Evgeniy Strokin
Hello, I have a problem. If I'm getting null from myRo.getGetMyObj.lastResult 
in function onLoad(),.. but it returns value in here:
mx:TextInput id=txt2 text={myRo.getGetMyObj.lastResult.otherProp}/
But when I'm sending the object back to the server everything is fine.
This works fine, I'm getting right values in server from Java Object:  
myRo.setGetMyObj(mm);
But the same Java Object cannot be cast to the MyTestObject.as
In other words: I'm able to submit from my MyTestObject.as to 
MyTestObject.java, but not vice verse. But i'm getting result from 
MyTestObject.java though, but only here: mx:TextInput id=txt2 
text={myRo.getGetMyObj.lastResult.otherProp}/, this doesn't work (returns 
null always): mm1=MyTestObject(myRo.getGetMyObj.lastResult);
Does somebody know why? Maybe it shouldn't work at all this way?

Thank you

PS: here is mxml I use:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*
creationComplete=onLoad();
MyTestObject id=mm myProp={txt1.text} otherProp={Number(txt2.text)}/
mx:Script
![CDATA[
import mx.controls.Alert;
[Bindable]
private var mm1:MyTestObject;

private function onLoad():void{
myRo.getGetMyObj();
mm1=MyTestObject(myRo.getGetMyObj.lastResult);
}

private function clickHandler():void {
 myRo.setGetMyObj(mm);
}
]]
/mx:Script
mx:RemoteObject id=myRo destination=myObject showBusyCursor=true/
mx:Form id=frm defaultButton={sbmt}
mx:FormItem label=Data 1
mx:TextArea id=txt1 text={mm1.myProp}/
/mx:FormItem
mx:FormItem label=Data 2
mx:TextInput id=txt2 
text={myRo.getGetMyObj.lastResult.otherProp}/
/mx:FormItem
mx:FormItem
mx:Button id=sbmt label=Button click=clickHandler(); 
width=100% height=100%/
/mx:FormItem
/mx:Form
/mx:Application




RE: [flexcoders] Flex 3 fractional scroll on List?

2007-06-14 Thread Alex Harui
Still planned, not committed, not in this beta.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jon Bradley
Sent: Thursday, June 14, 2007 1:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 3 fractional scroll on List?

 

OK ... I can absolutely find zero information on this, either in the 
documentation or on the release notes.

The only mention of it was in Matt Chotin's article on Adobe.com.

I'm actually more interested in finding out whether or not Adobe 
added fractional / smooth scrolling to not only the List and DataGrid 
but the TileList as well.

Anyone with an idea of these new implementations? I can't stand the 
current List functionality and would love to find a way around the 
cell-level scrolling if I can without re-writing a ton of code of 
course :).

Right now I'm stuck with Tile and Repeater, which works but lacks a 
lot of functionality.

cheers,

jon

 



Re: [flexcoders] Flex 3 fractional scroll on List?

2007-06-14 Thread Jon Bradley

Thanks, Alex.

FWIW, I love the List functionality but can't stand that it was  
written to only scroll cells.


I understand the business case for the components working that way  
(they always have) to deal with a ton of data. But, from a usability  
and design perspective, if someone needs to display 'that' much data  
in a control, there's a problem with the design of the application in  
the first place.


It's great to know it's planned!  I'll keep an eye out on the nightly  
builds of the SDK to see what new things made it through.


cheers,

jon


On Jun 14, 2007, at 4:12 PM, Alex Harui wrote:



Still planned, not committed, not in this beta.



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

Sent: Thursday, June 14, 2007 1:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 3 fractional scroll on List?



OK ... I can absolutely find zero information on this, either in the
documentation or on the release notes.

The only mention of it was in Matt Chotin's article on Adobe.com.

I'm actually more interested in finding out whether or not Adobe
added fractional / smooth scrolling to not only the List and DataGrid
but the TileList as well.

Anyone with an idea of these new implementations? I can't stand the
current List functionality and would love to find a way around the
cell-level scrolling if I can without re-writing a ton of code of
course :).

Right now I'm stuck with Tile and Repeater, which works but lacks a
lot of functionality.

cheers,

jon








Re: [flexcoders] The future of Flex IDE's

2007-06-14 Thread Troy Gilbert
  Eclipse/FB does plenty of auto-finishing of
  variables/classes/constants for me. Where do you see it as falling
  short?

Have you used VS2005? It's like night and day (well, maybe later
afternoon and early evening).

For example, in FB if I'm on a new line of my source code and start
typing, there's no autocomplete prompt. Sure, I can hit CTRL+SPACE and
get one, but in VS2005 it's smart enough to do the autocomplete
automatically.

The real time save is when filling in function paramters... when I
open a paren for a function call's argument list, VS2005 will prompt
me with all of the valid (by scope) identifiers that match the right
type (or super type). In FB, I've got to hit CTRL+SPACE and then it's
just all the identifiers in scope, not a list filtered by what would
actually compile in that slot.

VS2005 also offers tooltips when going throught he autocomplete list
based on the doc-comments for each item. Features like this make code
documentation seamlessly beneficial and add tangible, immediate
benefit to my coding. You can almost *explore* the code as you write
it as opposed to jumping back and forth to an API reference.

Hell, I've got a pretty powerful machine sitting their idle while I
click away in a text editor... I appreciate the IDE using some of
those spare cycles to help my feeble human brain (that's what
computers are for!).

VS2005 also does syntactic error checking as you type, as opposed to
just build automatically when saving. I can always tell in FB when I
have a type somewhere become autocomplete all of the sudden stops
working... so, obviously FB has some idea that I've mad a typo, it'd
just be nice if it let me know (VS2005 uses the common spelling
error red-dotted underline and grammatical error blue-dotted
underline for unknown identifiers and syntactic errors, respectively).

Troy.


[flexcoders] Re: Help Request : Deferred Instantiation and Bound SWFLoader

2007-06-14 Thread ibid049
Yes, these are still not showing up long after the time it would take 
to get them from the server.  I understand the asynchronous bit.  
Also, running the swf in debug mode shows that downloadedBytes == 
totalBytes, so I'm sure it's done loading.  Plus, like I said, 
setting creationPolicy=queued makes them show up (but not 
creationPolicy=all).  I'm pretty sure it's some kind of timing 
issue, like something to do with calling 
createComponentsFromDescriptors() before the databinding classes have 
updated the underlying dataprovider.  

But I might be talking out of my butt.  There's a lot of magic 
going on here under the hood that I don't understand.


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

 Yes, of course, but I'm not sure what's going on with repeater 
bindings
 and async loading.
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Gordon Smith
 Sent: Thursday, June 14, 2007 12:54 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: Help Request : Deferred Instantiation 
and
 Bound SWFLoader
 
  
 
 I tested locally. But shouldn't his SWFs eventually appear?
 
  
 
 - Gordon
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Alex Harui
 Sent: Thursday, June 14, 2007 10:57 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: Help Request : Deferred Instantiation 
and
 Bound SWFLoader
 
 Remember that SWFLoading is asynchronous in server environments.  
Not
 sure Gordon tested locally or remotely.  In an asynch environment, 
the
 swf will not complete loading and have its stuff available until 
much
 later, after a COMPLETE event (not creationComplete).
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of ibid049
 Sent: Thursday, June 14, 2007 9:07 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Help Request : Deferred Instantiation and
 Bound SWFLoader
 
 By the way, I can fix the problem by setting 
 creationPolicy=queued on the TabNavigator, or by setting it 
 to none and then manually calling createComponentsFromDescriptors 
 after the array is populated. But that band-aid short-circuits 
 deffered instantiation, which I don't want to do.
 
 Also interesting is that creationPolicy=all does not fix the 
 problem. This is why I was thinking it had something to do with the 
 timing of defferred instantiation vs. the bindings or something. It 
 almost acts like createComponentsFromDescriptors() is getting 
called 
 before the array is populated in the init() method, and then future 
 calls to createComponentsFromDescriptors() don't fire or something.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Gordon Smith gosmith@ wrote:
 
  Your code worked for me. I pasted it into a new FlexBuilder 
 project, and
  I made three different SWFs -- screen1.swf, screen2.swf, and 
 screen3.swf
  -- and put them in the same project folder. When I ran the app I 
saw
  each SWF as I clicked the tabs. Perhaps all three of your SWFs are
  copies of the same SWF?
  
  BTW, your 10-line init() method can be condensed into
  screens = new ArrayCollection(
  [ { incSWF: screen1.swf }, { incSWF: screen2.swf }, { 
 incSWF:
  screen3.swf } ]);
  
  - Gordon
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of ibid049
  Sent: Wednesday, June 13, 2007 12:36 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com 
  Subject: [flexcoders] Help Request : Deferred Instantiation and 
 Bound
  SWFLoader
  
  
  
  Please forgive the intrusion of contacting you directly, but I 
saw 
  you post several times on a related topic in the flexcoders 
mailing 
  list, and - after not receiving a response to my own query on the 
  list, thought you might be able to save me hours of wall-to-head-
  banging with just a few seconds worth of advice.
  
  It seems that a viewStack component that contains a SWFLoader is 
 not 
  successfully loading the SWF of the second and further panes. 
  Frankly, I can't believe that's the case, because surely someone 
 else 
  would have noticed this. I assume it's an elementary error on my 
  part.
  
  The following mxml demonstrates the problem. I'm binding the 
  repeater to an ArrayCollection of filenames that should be used 
as 
 a 
  source for SWFLoaders inside the Repeater. This only loads the 
 first 
  pane, even when clicking on the second or third pane. 
  
  I must be doing this in either a wrong or non-standard way. Is 
 there 
  any way you could point to an easier way to accomplish what I'm 
  trying to do here?
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
 

Re: [flexcoders] The future of Flex IDE's

2007-06-14 Thread Michael Schmalle

Load up Flex Builder -- Help -- Help Contents



Look at Platform Plug-in Developer Guide and Plug-in Development
Environment guide.



And/or google Eclipse Plugin Tutorials.


Ok, thanks for the gogo baba talk but, you missed what I am saying. So that
is why they provide an API, I guess it's a catch 22 and I am on the wrong
side again.

What the hell is google?

Peace, Mike


On 6/14/07, Troy Gilbert [EMAIL PROTECTED] wrote:


   Eclipse/FB does plenty of auto-finishing of
 variables/classes/constants for me. Where do you see it as falling
 short?

Have you used VS2005? It's like night and day (well, maybe later
afternoon and early evening).

For example, in FB if I'm on a new line of my source code and start
typing, there's no autocomplete prompt. Sure, I can hit CTRL+SPACE and
get one, but in VS2005 it's smart enough to do the autocomplete
automatically.

The real time save is when filling in function paramters... when I
open a paren for a function call's argument list, VS2005 will prompt
me with all of the valid (by scope) identifiers that match the right
type (or super type). In FB, I've got to hit CTRL+SPACE and then it's
just all the identifiers in scope, not a list filtered by what would
actually compile in that slot.

VS2005 also offers tooltips when going throught he autocomplete list
based on the doc-comments for each item. Features like this make code
documentation seamlessly beneficial and add tangible, immediate
benefit to my coding. You can almost *explore* the code as you write
it as opposed to jumping back and forth to an API reference.

Hell, I've got a pretty powerful machine sitting their idle while I
click away in a text editor... I appreciate the IDE using some of
those spare cycles to help my feeble human brain (that's what
computers are for!).

VS2005 also does syntactic error checking as you type, as opposed to
just build automatically when saving. I can always tell in FB when I
have a type somewhere become autocomplete all of the sudden stops
working... so, obviously FB has some idea that I've mad a typo, it'd
just be nice if it let me know (VS2005 uses the common spelling
error red-dotted underline and grammatical error blue-dotted
underline for unknown identifiers and syntactic errors, respectively).

Troy.
 





--
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] Flex 3 fractional scroll on List?

2007-06-14 Thread Troy Gilbert

Don't let Adobe off too easy on the efficiency excuse... they could have
just as easily had smooth scrolling while still re-using item renderers,
etc. For fixed-size item renderers it only requires one additional item
renderer to be instantiated, and just a bit more code in the scroll bar
handling. I think it's a bad oversight, or a bad business decision, because
it makes an otherwise slick UI look archaic... come on, the AJAX guys have
even go this stuff working (as does .NET!), so there's really no excuse
(well, there are plenty of excuses, just no good *reasons*).

It irks me to no end that one of the few complex components I'm using from
the Flex framework in my current project is the HorizontalList (for
thumbnails) and I'm stuck with the option of having to subclass (and who
knows if the right vars are protected!) the control for just a fundamentally
basic piece of flash.

But hey, they got so many other things alright by me that it's not exactly
bringing down their average... it just sticks out like a sore thumb! ;-)

Troy.


On 6/14/07, Jon Bradley [EMAIL PROTECTED] wrote:


  Thanks, Alex.

FWIW, I love the List functionality but can't stand that it was written to
only scroll cells.

I understand the business case for the components working that way (they
always have) to deal with a ton of data. But, from a usability and design
perspective, if someone needs to display 'that' much data in a control,
there's a problem with the design of the application in the first place.

It's great to know it's planned!  I'll keep an eye out on the nightly
builds of the SDK to see what new things made it through.

cheers,

jon


On Jun 14, 2007, at 4:12 PM, Alex Harui wrote:


Still planned, not committed, not in this beta.


--

*From:* flexcoders@yahoogroups.com [mailto:flexcoders flexcoders@
yahoogroups.com] *On Behalf Of *Jon Bradley
*Sent:* Thursday, June 14, 2007 1:09 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Flex 3 fractional scroll on List?



OK ... I can absolutely find zero information on this, either in the
documentation or on the release notes.

The only mention of it was in Matt Chotin's article on Adobe.com.

I'm actually more interested in finding out whether or not Adobe
added fractional / smooth scrolling to not only the List and DataGrid
but the TileList as well.

Anyone with an idea of these new implementations? I can't stand the
current List functionality and would love to find a way around the
cell-level scrolling if I can without re-writing a ton of code of
course :).

Right now I'm stuck with Tile and Repeater, which works but lacks a
lot of functionality.

cheers,

jon



 



[flexcoders] Batching PNGs into an SWF

2007-06-14 Thread thirtyfivemph
My app is currently loading around a 100-150 PNGs (around 64x64 to
128x128 in size each) from my server. It's obviously taking way longer
than it should, not because of the total size of the transfer but
rather the overhead of the multiple connections, i.e. 100-150 separate
connections to the server, which may or may not utilize keepAlive
(depending on browser), which will be pipelined only two-wide (which
will probably be a *good* thing once we have thousands of concurrent
users!).

Of course, it's utterly unnecessary because every time the app
launches it has to pull the same 100-150 PNGs. Yeah, I could embed the
PNGs and eat the load time in the app load time, but then I'd require
a recompile of the app when the PNGs are updated (not desirable).

So, I'm hoping there's a simple solution that looks like this:

- a command-line tool that takes a directory full of PNGs and compiles
them into an SWF full of BitmapData's.
- some AS3 code that loads that SWF and can extract the PNGs by their
original filename (or some other obvious key).

Anyone able to point me in the right direction on this? I've seen some
tools that'll turn an animated GIF into an SWF (close, but not quite),
and I know SWF's can be loaded as Modules (which I assume would give
me an SWF full of BitmapData objects, or at least embedded asset
classes or whatever the correct term is).

Any suggestions would be much appreciated!

Troy.




RE: [flexcoders] Re: Help Request : Deferred Instantiation and Bound SWFLoader

2007-06-14 Thread Gordon Smith
Do you really need to use Repeater?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ibid049
Sent: Thursday, June 14, 2007 1:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help Request : Deferred Instantiation and
Bound SWFLoader



Yes, these are still not showing up long after the time it would take 
to get them from the server. I understand the asynchronous bit. 
Also, running the swf in debug mode shows that downloadedBytes == 
totalBytes, so I'm sure it's done loading. Plus, like I said, 
setting creationPolicy=queued makes them show up (but not 
creationPolicy=all). I'm pretty sure it's some kind of timing 
issue, like something to do with calling 
createComponentsFromDescriptors() before the databinding classes have 
updated the underlying dataprovider. 

But I might be talking out of my butt. There's a lot of magic 
going on here under the hood that I don't understand.

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

 Yes, of course, but I'm not sure what's going on with repeater 
bindings
 and async loading.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Gordon Smith
 Sent: Thursday, June 14, 2007 12:54 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: RE: [flexcoders] Re: Help Request : Deferred Instantiation 
and
 Bound SWFLoader
 
 
 
 I tested locally. But shouldn't his SWFs eventually appear?
 
 
 
 - Gordon
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Alex Harui
 Sent: Thursday, June 14, 2007 10:57 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: RE: [flexcoders] Re: Help Request : Deferred Instantiation 
and
 Bound SWFLoader
 
 Remember that SWFLoading is asynchronous in server environments. 
Not
 sure Gordon tested locally or remotely. In an asynch environment, 
the
 swf will not complete loading and have its stuff available until 
much
 later, after a COMPLETE event (not creationComplete).
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of ibid049
 Sent: Thursday, June 14, 2007 9:07 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Help Request : Deferred Instantiation and
 Bound SWFLoader
 
 By the way, I can fix the problem by setting 
 creationPolicy=queued on the TabNavigator, or by setting it 
 to none and then manually calling createComponentsFromDescriptors 
 after the array is populated. But that band-aid short-circuits 
 deffered instantiation, which I don't want to do.
 
 Also interesting is that creationPolicy=all does not fix the 
 problem. This is why I was thinking it had something to do with the 
 timing of defferred instantiation vs. the bindings or something. It 
 almost acts like createComponentsFromDescriptors() is getting 
called 
 before the array is populated in the init() method, and then future 
 calls to createComponentsFromDescriptors() don't fire or something.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 , Gordon Smith gosmith@ wrote:
 
  Your code worked for me. I pasted it into a new FlexBuilder 
 project, and
  I made three different SWFs -- screen1.swf, screen2.swf, and 
 screen3.swf
  -- and put them in the same project folder. When I ran the app I 
saw
  each SWF as I clicked the tabs. Perhaps all three of your SWFs are
  copies of the same SWF?
  
  BTW, your 10-line init() method can be condensed into
  screens = new ArrayCollection(
  [ { incSWF: screen1.swf }, { incSWF: screen2.swf }, { 
 incSWF:
  screen3.swf } ]);
  
  - Gordon
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of ibid049
  Sent: Wednesday, June 13, 2007 12:36 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%
40yahoogroups.com 
  Subject: [flexcoders] Help Request : Deferred Instantiation and 
 Bound
  SWFLoader
  
  
  
  Please forgive the intrusion of contacting you directly, but I 
saw 
  you post several times on a related topic in the flexcoders 
mailing 
  list, and - after not receiving a response to my own query on the 
  list, thought you might be able to save me hours of wall-to-head-
  banging with just a few seconds worth of advice.
  
  It 

Re: [flexcoders] Batching PNGs into an SWF

2007-06-14 Thread Claus Wahlers
thirtyfivemph wrote:

 My app is currently loading around a 100-150 PNGs (around 64x64 to
 128x128 in size each) from my server. It's obviously taking way longer
 than it should, not because of the total size of the transfer but
 rather the overhead of the multiple connections, i.e. 100-150 separate
 connections to the server, which may or may not utilize keepAlive
 (depending on browser), which will be pipelined only two-wide (which
 will probably be a *good* thing once we have thousands of concurrent
 users!).

You should look into the various unZIP classes out there:

- http://codeazur.com.br/lab/fzip/
- http://www.vanrijkom.org/archives/2007/02/far_flasharchiv.html
- http://nochump.com/blog/?p=15

Cheers,
Claus.




[flexcoders] Re: Creating Multiple objects and giving them each a unique name

2007-06-14 Thread jimmedia
I actually I figured it out, it was quite simple actually, basically
it was 

sprite.id = myAC.getItemAt(i).objectProperty.toString();

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

 So, are you saying that if you comment out the addEventListener
lines you
 only end up with one sprite displayed instead of multiple sprites
displayed?
 That can't be right... what does the code in the event listeners do?
 
 Are you needing a unique ID that ties back to your XML? If so, you first
 need a way to uniquely look up the XML elements (by index is fine if the
 collection doesn't change, otherwise you'll want to assign an ID
attribute
 to each element). Then you can use the unique XML element ID's as
the name
 property for your sprite. You can then use the sprite's parent's
 getChildByName method to grab the specific sprite.
 
 A more general way to do it: use a dictionary to associate any
object with
 any other object. In that case, you can use the XML element as the
key in
 the dictionary with the sprite as the value (and you can do a reverse
 lookup in the same way). In fact, I believe the Dictionary example
in the
 Flex 2 docs does something very similar.
 
 Troy.
 
 
 On 6/13/07, jimmedia [EMAIL PROTECTED] wrote:
 
I'm looping through an XML file with the following code
 
  
  for (var i:int = 0; i  numElementsinXML; i++)
  {
  var sprite:Sprite = new Sprite();
  sprite.graphics.lineStyle(0, 0xff, 1);
  sprite.graphics.beginFill(0xff, 1);
  sprite.graphics.drawCircle((i+25)*15, 80, 2);
  sprite.graphics.endFill();
  sprite.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverNode);
  sprite.addEventListener(MouseEvent.MOUSE_OUT, onMouseOutNode);
  addChild(sprite);
  }
  
 
  now the above code without the event listeners displays the proper
  number of sprites on the screen with proper spacing (in my case 12
  circles). With the event listeners though I only get one sprite
  displayed, but it does respond to the MouseEvent.
 
  I want to know how I can loop through my xml and produce a uniquely
  named sprite (or in fact object) based on my xml, and be able to
  reference it anywhere in my program.
 
  Thanks in advance.
 
   
 





RE: [flexcoders] for RemoteObject lastResult return NULL in function

2007-06-14 Thread Peter Farland
The lastResult property won't be populated until a result comes back
some time later (and definitely after the onLoad() function exits
because remote requests are made by the player in an asynchronous manner
after the current frame script execution finishes).
 
Pete



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Evgeniy Strokin
Sent: Thursday, June 14, 2007 4:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] for RemoteObject lastResult return NULL in
function



Hello, I have a problem. If I'm getting null from
myRo.getGetMyObj.lastResult in function onLoad(),.. but it returns value
in here:
mx:TextInput id=txt2 text={myRo.getGetMyObj.lastResult.otherProp}/
But when I'm sending the object back to the server everything is fine.
This works fine, I'm getting right values in server from Java Object:
myRo.setGetMyObj(mm);
But the same Java Object cannot be cast to the MyTestObject.as
In other words: I'm able to submit from my MyTestObject.as to
MyTestObject.java, but not vice verse. But i'm getting result from
MyTestObject.java though, but only here: mx:TextInput id=txt2
text={myRo.getGetMyObj.lastResult.otherProp}/, this doesn't work
(returns null always): mm1=MyTestObject(myRo.getGetMyObj.lastResult);
Does somebody kno! w why? Maybe it shouldn't work at all this way?

Thank you

PS: here is mxml I use:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  xmlns=*
creationComplete=onLoad();
MyTestObject id=mm myProp={txt1.text}
otherProp={Number(txt2.text)}/
mx:Script
![CDATA[
import mx.controls.Alert;
[Bindable]
private var mm1:MyTestObject;

! private function onLoad():void{
myRo.getGetMyObj();
mm1=MyTestObject(myRo.getGetMyObj.lastResult);
}

private function clickHandler():void {
 myRo.setGetMyObj(mm);
}
]]
/mx:Script
mx:RemoteObject id=myRo destination=myObject
showBusyCursor=true/
mx:Form id=frm defaultButton={sbmt}
! nbsp;   mx:FormItem label=Data 1
mx:TextArea id=txt1 text={mm1.myProp}/
/mx:FormItem
mx:FormItem label=Data 2
mx:TextInput id=txt2
text={myRo.getGetMyObj.lastResult.otherProp}/
/mx:FormItem
mx:FormItem
mx:Button id=sbmt label=Button click=clickHandler();
width=100% height=100%/
/mx:FormItem
/mx:Form
/mx:Application



 


RE: [flexcoders] Batching PNGs into an SWF

2007-06-14 Thread Gordon Smith
You can embed PNGs into a SWF application or module.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claus Wahlers
Sent: Thursday, June 14, 2007 1:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Batching PNGs into an SWF



thirtyfivemph wrote:

 My app is currently loading around a 100-150 PNGs (around 64x64 to
 128x128 in size each) from my server. It's obviously taking way longer
 than it should, not because of the total size of the transfer but
 rather the overhead of the multiple connections, i.e. 100-150 separate
 connections to the server, which may or may not utilize keepAlive
 (depending on browser), which will be pipelined only two-wide (which
 will probably be a *good* thing once we have thousands of concurrent
 users!).

You should look into the various unZIP classes out there:

- http://codeazur.com.br/lab/fzip/ http://codeazur.com.br/lab/fzip/ 
- http://www.vanrijkom.org/archives/2007/02/far_flasharchiv.html
http://www.vanrijkom.org/archives/2007/02/far_flasharchiv.html 
- http://nochump.com/blog/?p=15 http://nochump.com/blog/?p=15 

Cheers,
Claus.



 


[flexcoders] Reading Data from an editiable Datagrid.

2007-06-14 Thread Nick
Hello all! 

I have a DataGrid that I have associated (dataProvider) to a blank
array that has been initialized as a collection of 5 objects with each
object having 3 member variables. I have made my DataGrid editable and
now have the ability to enter data into the 5 rows. I would now like
to simply read this data back into my array for processing after the
user has finished filling in the data. For some reason I am having a
major block on how to accomplish this. 

I would love to just say something like: 

myData = myDataGrid.data 
trace(myData[0].col1Name)  //traces the first row, first column data. 

but that does not seem to be working for me.  

Any clues? I have a feeling I am missing something trivial here. :) 

Thanks. 

Nick 



[flexcoders] Flex3 :: ModuleManager :: not dispatching READY

2007-06-14 Thread Michael Schmalle

Hi,

I have this simple setup;

A module in ;

/modules/HelloWorldModule.swf

in creation complete in the main application;

   private function creatModule():void
   {
   var module:IModuleInfo = ModuleManager.getModule
(modules/HelloWorldModule.swf);
   module.addEventListener(ModuleEvent.READY, readyHandler)
   module.load();
   }

   private function readyHandler(event:ModuleEvent):void
   {
   trace(READY)
   }

When I test the project, I get...

[SWF] modules/HelloWorldModule.swf - 504,327 bytes after decompression

I cannot for the life of me get READY to be dispatched.

PROGRESS works fine, and it shows the whole swf being loaded.

It has been a few since I used module manager, is there anything I am
missing?

Peace, Mike

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


[flexcoders] Cairngorm release dates

2007-06-14 Thread gur_sukh
Hi,

This is for Cairngorm guru's who frequently visit Flex coders. I
needed dates for various releases of Cairngorms.


Cairngorm 2.2  - April 2007. 
Cairngorm 2.1 
Cairngorm 2 
Cairngorm 0.99 
Cairngorm 0.95 


Also do we have rough data as per the growth of its popularity.

Thanks in advance
GS



[flexcoders] Re: Possible bug with TextInput

2007-06-14 Thread Dmitry Miller
The Flex app displays all the characters correctly inside Safari or
Mac Firefox browsers. 

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

 On Tuesday 12 Jun 2007, Dmitry Miller wrote:
  Could this be a problem with the Flex fonts?
 
 They might be cut-down versions of the full fonts, and not contain
all unicode 
 characters, I guess.
 
 -- 
 Tom Chiverton
 Helping to confidentially seize vertical niches
 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.





RE: [flexcoders] Flex3 :: ModuleManager :: not dispatching READY

2007-06-14 Thread Alex Harui
We fixed a bug in HotFix2 and Moxie where modules didn't unload.  Now,
if you don't keep a handle to the module it won't load because as soon
as it finished, GC runs and if there is no handle to it, it goes away.

 

Var module:IModuleInfo was your only handle but it is local so as soon
as it goes out of scope it can go away.

Move it to an instance variable and you'll be fine.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Schmalle
Sent: Thursday, June 14, 2007 2:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex3 :: ModuleManager :: not dispatching READY

 

Hi,

I have this simple setup;

A module in ;

/modules/HelloWorldModule.swf

in creation complete in the main application;

private function creatModule():void
{
var module:IModuleInfo =
ModuleManager.getModule(modules/HelloWorldModule.swf);
module.addEventListener(ModuleEvent.READY, readyHandler)
module.load();
}

private function readyHandler(event:ModuleEvent):void
{
trace(READY)
}

When I test the project, I get...

[SWF] modules/HelloWorldModule.swf - 504,327 bytes after decompression

I cannot for the life of me get READY to be dispatched.

PROGRESS works fine, and it shows the whole swf being loaded.

It has been a few since I used module manager, is there anything I am
missing? 

Peace, Mike

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

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

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

 



Re: [flexcoders] SWFLoader weirdness when using separated applicationDomain

2007-06-14 Thread Oleg Filipchuk

Thanks Alex.
May you explain reasons why this isn't possible?
Are there any plans of implementing such a behavior?


--
Best regards,
Oleg Filipchuk


RE: [flexcoders] Re: Help Request : Deferred Instantiation and Bound SWFLoader

2007-06-14 Thread Alex Harui
Oh hey, it might be that the SWFLoader is sized based on its content and
in all its content has size of 0.  In queued it might be sized
correctly.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ibid049
Sent: Thursday, June 14, 2007 1:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help Request : Deferred Instantiation and
Bound SWFLoader

 

Yes, these are still not showing up long after the time it would take 
to get them from the server. I understand the asynchronous bit. 
Also, running the swf in debug mode shows that downloadedBytes == 
totalBytes, so I'm sure it's done loading. Plus, like I said, 
setting creationPolicy=queued makes them show up (but not 
creationPolicy=all). I'm pretty sure it's some kind of timing 
issue, like something to do with calling 
createComponentsFromDescriptors() before the databinding classes have 
updated the underlying dataprovider. 

But I might be talking out of my butt. There's a lot of magic 
going on here under the hood that I don't understand.

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

 Yes, of course, but I'm not sure what's going on with repeater 
bindings
 and async loading.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Gordon Smith
 Sent: Thursday, June 14, 2007 12:54 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: RE: [flexcoders] Re: Help Request : Deferred Instantiation 
and
 Bound SWFLoader
 
 
 
 I tested locally. But shouldn't his SWFs eventually appear?
 
 
 
 - Gordon
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Alex Harui
 Sent: Thursday, June 14, 2007 10:57 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: RE: [flexcoders] Re: Help Request : Deferred Instantiation 
and
 Bound SWFLoader
 
 Remember that SWFLoading is asynchronous in server environments. 
Not
 sure Gordon tested locally or remotely. In an asynch environment, 
the
 swf will not complete loading and have its stuff available until 
much
 later, after a COMPLETE event (not creationComplete).
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of ibid049
 Sent: Thursday, June 14, 2007 9:07 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Help Request : Deferred Instantiation and
 Bound SWFLoader
 
 By the way, I can fix the problem by setting 
 creationPolicy=queued on the TabNavigator, or by setting it 
 to none and then manually calling createComponentsFromDescriptors 
 after the array is populated. But that band-aid short-circuits 
 deffered instantiation, which I don't want to do.
 
 Also interesting is that creationPolicy=all does not fix the 
 problem. This is why I was thinking it had something to do with the 
 timing of defferred instantiation vs. the bindings or something. It 
 almost acts like createComponentsFromDescriptors() is getting 
called 
 before the array is populated in the init() method, and then future 
 calls to createComponentsFromDescriptors() don't fire or something.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 , Gordon Smith gosmith@ wrote:
 
  Your code worked for me. I pasted it into a new FlexBuilder 
 project, and
  I made three different SWFs -- screen1.swf, screen2.swf, and 
 screen3.swf
  -- and put them in the same project folder. When I ran the app I 
saw
  each SWF as I clicked the tabs. Perhaps all three of your SWFs are
  copies of the same SWF?
  
  BTW, your 10-line init() method can be condensed into
  screens = new ArrayCollection(
  [ { incSWF: screen1.swf }, { incSWF: screen2.swf }, { 
 incSWF:
  screen3.swf } ]);
  
  - Gordon
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of ibid049
  Sent: Wednesday, June 13, 2007 12:36 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%
40yahoogroups.com 
  Subject: [flexcoders] Help Request : Deferred Instantiation and 
 Bound
  SWFLoader
  
  
  
  Please forgive the intrusion of contacting you directly, but I 
saw 
  you post several times on a related topic in the flexcoders 
mailing 
  list, and - after not receiving a response to my own query on the 
  list, thought you might 

RE: [flexcoders] Flex 3 fractional scroll on List?

2007-06-14 Thread Alex Harui
How about the excuse/reason that we don't want to generate a renderer
for every item in your dataprovider, and if they had variablerowheight,
we'd never get the scrollbar parameters right?

 

We're going with a fractional approach but I'm not convinced of how
smooth it will appear in all situations.  That and time-to-implement are
reasons it remains planned and not committed.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Thursday, June 14, 2007 1:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 3 fractional scroll on List?

 

Don't let Adobe off too easy on the efficiency excuse... they could
have just as easily had smooth scrolling while still re-using item
renderers, etc. For fixed-size item renderers it only requires one
additional item renderer to be instantiated, and just a bit more code in
the scroll bar handling. I think it's a bad oversight, or a bad business
decision, because it makes an otherwise slick UI look archaic... come
on, the AJAX guys have even go this stuff working (as does .NET!), so
there's really no excuse (well, there are plenty of excuses, just no
good *reasons*). 

It irks me to no end that one of the few complex components I'm using
from the Flex framework in my current project is the HorizontalList (for
thumbnails) and I'm stuck with the option of having to subclass (and who
knows if the right vars are protected!) the control for just a
fundamentally basic piece of flash. 

But hey, they got so many other things alright by me that it's not
exactly bringing down their average... it just sticks out like a sore
thumb! ;-)

Troy.



On 6/14/07, Jon Bradley [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Thanks, Alex.

 

FWIW, I love the List functionality but can't stand that it was written
to only scroll cells.

 

I understand the business case for the components working that way (they
always have) to deal with a ton of data. But, from a usability and
design perspective, if someone needs to display 'that' much data in a
control, there's a problem with the design of the application in the
first place. 

 

It's great to know it's planned!  I'll keep an eye out on the nightly
builds of the SDK to see what new things made it through.

 

cheers,

 

jon

 

 

On Jun 14, 2007, at 4:12 PM, Alex Harui wrote:





 

Still planned, not committed, not in this beta.

 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders @yahoogroups.com]
On Behalf Of Jon Bradley 
Sent: Thursday, June 14, 2007 1:09 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Flex 3 fractional scroll on List?

 

OK ... I can absolutely find zero information on this, either in the 
documentation or on the release notes. 

The only mention of it was in Matt Chotin's article on Adobe.com.

I'm actually more interested in finding out whether or not Adobe 
added fractional / smooth scrolling to not only the List and DataGrid 
but the TileList as well. 

Anyone with an idea of these new implementations? I can't stand the 
current List functionality and would love to find a way around the 
cell-level scrolling if I can without re-writing a ton of code of 
course :).

Right now I'm stuck with Tile and Repeater, which works but lacks a 
lot of functionality.

cheers,

jon

 

 

 

 

 



RE: [flexcoders] SWFLoader weirdness when using separated applicationDomain

2007-06-14 Thread Alex Harui
Planned, but not for 3.0.  There are known infrastructure issue in
getting popups, layout, focus and other things to interoperate when
classes are not shared due to AD boundaries.  For example, FocusManager
expects clients to be IFocusManagerComponent, but UIComponents in
another AD are not IFocusManagerComponent, they are
[EMAIL PROTECTED] and thus the main FocusManager won't
work with them.

 

We want some player changes to make working with separate ADs easier,
but we can't do them in the 3.0 timeframe.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Oleg Filipchuk
Sent: Thursday, June 14, 2007 2:56 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] SWFLoader weirdness when using separated
applicationDomain

 

Thanks Alex. 
May you explain reasons why this isn't possible?
Are there any plans of implementing such a behavior?


-- 
Best regards,
Oleg Filipchuk



 



Re: [flexcoders] Flex3 :: ModuleManager :: not dispatching READY

2007-06-14 Thread Michael Schmalle

Thanks you Alex.

Now I really understand what is going on.

I actually ran into this problem when I was using a ModuleOperation class
that is in a service design pattern.

The operation calls getModule(), and I actually did what you mentioned in
that class. I took it from local to a public var.

But in the operation class, I still have it in an event.target reference
that comes back to the controller but, the operation instance is not
handling the READY. The operation class goes out of scope once the execute()
method finishes with a call to module.load().

Any suggestions?

Peace, Mike

On 6/14/07, Alex Harui [EMAIL PROTECTED] wrote:


   We fixed a bug in HotFix2 and Moxie where modules didn't unload.  Now,
if you don't keep a handle to the module it won't load because as soon as it
finished, GC runs and if there is no handle to it, it goes away.



Var module:IModuleInfo was your only handle but it is local so as soon as
it goes out of scope it can go away.

Move it to an instance variable and you'll be fine.


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Michael Schmalle
*Sent:* Thursday, June 14, 2007 2:15 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Flex3 :: ModuleManager :: not dispatching READY



Hi,

I have this simple setup;

A module in ;

/modules/HelloWorldModule.swf

in creation complete in the main application;

private function creatModule():void
{
var module:IModuleInfo = ModuleManager.getModule
(modules/HelloWorldModule.swf);
module.addEventListener(ModuleEvent.READY, readyHandler)
module.load();
}

private function readyHandler(event:ModuleEvent):void
{
trace(READY)
}

When I test the project, I get...

[SWF] modules/HelloWorldModule.swf - 504,327 bytes after decompression

I cannot for the life of me get READY to be dispatched.

PROGRESS works fine, and it shows the whole swf being loaded.

It has been a few since I used module manager, is there anything I am
missing?

Peace, Mike

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

 





--
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] Flex3 :: ModuleManager :: not dispatching READY

2007-06-14 Thread Michael Schmalle

Ok,

Now debuggin I just had one of those dev flashes.

The problem is, the operation reference was not fixed a reference. So it was
the actually operation that was going out of scope.

So the fix for now was;

   public function loadModule(url:String, parent:Container,
domain:ApplicationDomain):void
   {
   trace(CoreShellController.loadModule())

   currentOperation = modulesService.loadModule(url, parent, domain);

   performModuleOperation(currentOperation);
   }

In the controller, I just saved the instance of the operation while it was
executing.

Before I had;

   public function loadModule(url:String, parent:Container,
domain:ApplicationDomain):void
   {
   trace(CoreShellController.loadModule())

   performModuleOperation(
   modulesService.loadModule(url, parent, domain));
   }

Problem solved for now, thanks again Alex.

Peace, Mike


On 6/14/07, Michael Schmalle [EMAIL PROTECTED] wrote:


Thanks you Alex.

Now I really understand what is going on.

I actually ran into this problem when I was using a ModuleOperation class
that is in a service design pattern.

The operation calls getModule(), and I actually did what you mentioned in
that class. I took it from local to a public var.

But in the operation class, I still have it in an event.target reference
that comes back to the controller but, the operation instance is not
handling the READY. The operation class goes out of scope once the execute()
method finishes with a call to module.load().

Any suggestions?

Peace, Mike

On 6/14/07, Alex Harui [EMAIL PROTECTED] wrote:

We fixed a bug in HotFix2 and Moxie where modules didn't unload.
 Now, if you don't keep a handle to the module it won't load because as soon
 as it finished, GC runs and if there is no handle to it, it goes away.



 Var module:IModuleInfo was your only handle but it is local so as soon
 as it goes out of scope it can go away.

 Move it to an instance variable and you'll be fine.


  --

 *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
 *On Behalf Of *Michael Schmalle
 *Sent:* Thursday, June 14, 2007 2:15 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex3 :: ModuleManager :: not dispatching READY



 Hi,

 I have this simple setup;

 A module in ;

 /modules/HelloWorldModule.swf

 in creation complete in the main application;

 private function creatModule():void
 {
 var module:IModuleInfo = ModuleManager.getModule
 (modules/HelloWorldModule.swf);
 module.addEventListener(ModuleEvent.READY, readyHandler)
 module.load();
 }

 private function readyHandler(event:ModuleEvent):void
 {
 trace(READY)
 }

 When I test the project, I get...

 [SWF] modules/HelloWorldModule.swf - 504,327 bytes after decompression

 I cannot for the life of me get READY to be dispatched.

 PROGRESS works fine, and it shows the whole swf being loaded.

 It has been a few since I used module manager, is there anything I am
 missing?

 Peace, Mike

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

  





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





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


  1   2   >