RE: [flexcoders] using Repeater

2005-07-07 Thread Abdul Qabiz
Hi Rajesh,

id should be string following rules for a variable name(should not start
with numbers, should not contain some special chars except $ etc). You
can not pass a binding expression there. 

Why do you want to assign a dynamic id? Since you are using repeater to
generate ViewStack, you know the order of ViewStacks and you can always
refer by their index?


-abdul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rajesh Jayabalan
Sent: Thursday, July 07, 2005 4:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] using Repeater

Hi,

when I try to use the value from repeator for a viewstack id I get a 
 
"id '{rp.currentItem.mrcName}' is not a valid identifier" error.
 
I am trying to create viewstack with dynamic ids and pass the id to a
function. Here is my code.
 
Rajesh J
 
































 

 








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



 




--
Flexcoders 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/

<*> 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] How do I bound XML data into an array that is my data provider for a data grid

2005-07-07 Thread Abdul Qabiz
Hi,

Look at the following code:



##employeesModelTest.mxml##

http://www.macromedia.com/2003/mxml"; xmlns="*"
initialize="onAppInit()">

import ComboBoxCellRenderer;

function onAppInit()
{
ComboBoxCellRenderer.dataProvider = ["San Francisco",
"Bangalore","Newton"];
 }


















##ComboBoxCellRenderer.mxml##

http://www.macromedia.com/2003/mxml";>

public static var dataProvider:Array;
private var listOwner:Object;

//TODO: all required code to make this renderer complete.








##employees.xml##


1
Matt
San Francisco
 

2
Gary
San Francisco
 



That is how you bind a Model with DataGrid. As far as ComboBox's
dataProvider is concerned, you can have static property in CellRenderer
class. Set the static property from the application.

-abdul
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joe
Sent: Thursday, July 07, 2005 3:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I bound XML data into an array that is my
data provider for a data grid

I am using an array to provide a data provider for my data grid that 
has a cellrendering colum that produces a combobox.
With in the array is a New Array for the combo box data provider. It is 
OK that the values for the combo box are hard coded, but I twant he 
rest of the values tin the data grid to come from a Model which source 
is a XML file. How can I bound the values from the XML source to my 
array.




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



 




--
Flexcoders 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/

<*> 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] aboute default mouse moveover style

2005-07-07 Thread Banks
Hi,all,

When mouse move over event takes, the control's style changes. My
question is: what style does the flash choose. i want to simulate the
style of the mouse moveover event occurs.

-- 
Best Regards
--Zhu Feng
MSN: [EMAIL PROTECTED]



--
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/

<*> 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] CheckBox in the DataGrid

2005-07-07 Thread shahnavaza
Hi All,

I have a DataGrid with a checkbox rendered successfully using
CellRenderer. My first problem is that how do I get the array of all
Checked checkboxes on particular button Click. Secondly, I need to
unCheck all checked Checkboxes on UnCheck button click. Following is
the Snippet. Thanks for your response






 




   













--
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/

<*> 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] Is antialiasing possible in flex?

2005-07-07 Thread Nithya R



pls let know if antialiasing is possible with flex/
 
thanks
nithyaSend instant messages to your online friends http://uk.messenger.yahoo.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Printing whole lotta pages?

2005-07-07 Thread Nihit Saxena










Thanks Manish, Its correct, to print a
content completely, it should not be under any mask. For 1.5 this is an
undocumented solution to the problem.

 

 

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish
 Jethani
Sent: Thursday, July 07, 2005
12:34 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:
Printing whole lotta pages?



 

On 7/6/05, svktiilikainen <[EMAIL PROTECTED]> wrote:

> Nihit, your code example works - it really is
possible to print two
> pages even if they are not on screen. Great,
thanks! But how does
> the code work, could you explain the logic a
little? Where are the
> resizeMask() etc methods coming from?

I'll try to beat Nihit to this (although he's
clearly "da man" when it
comes to printing).  Basically the parent of
the Loader, the Box, has
a mask that is used for clipping the content (as
the content won't fit
within the bounds).  In the sample code, this
mask is being removed
temporarily before printing and then added back
once it's done.  The
removeMask, createMask and resizeMask functions
are internal to the
Container class.  They are not documented, as
they are not meant to be
a part of the public API.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Added image/s in TileList is/are not shown

2005-07-07 Thread ptrisnadi
I tried searching for the answer everywhere (including The Mail Archive) but no 
success. 
Basically I want to add 1 or more images to a tilelist from another tilelist in 
a popup. Both 
tilelists are populated with correct images based on the XML file. I use 
addItemAt and it 
seems to do something, but it just adds blank tiles... What am I missing here?

-- TileList that I want to add images --


Re: [flexcoders] Redirect to next page

2005-07-07 Thread Harinath
Thanks a lot Abdul! Its working ...




On 7/6/05, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> Hari,
> 
> As Sree said, in Flex we think application in terms of Views. In your
> case, user can submit the data and see the result in the same place.
> 
> You can send the data using HTTPSerivce, servlet processes the data and
> returns the result in form of xml/name-value pairs etc. You can show
> that data in same place...
> 
> HTTPService won't go to next page, instead it waits for server-side
> script to return data.
> 
> 
> But answering your query, even though its not best practice in flex :)
> 
> Look at the modified code below:
> 
> ##Registration.jsp##
> 
> 
> <%@ taglib uri="FlexTagLib" prefix="mm" %>
> 
> http://www.macromedia.com/2003/mxml";
> height="600">
> 
>
> 
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>   
>  
> 
> 
> -abdul
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Harinath
> Sent: Wednesday, July 06, 2005 6:00 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Redirect to next page
> 
> Hi Sree,
> 
> Thanks a lot for the information. I am trying to use Flex for the
> first time and I really dont understand the usage of Flex. I started
> running the examples given by Macromedia in my Tomcat 5.0. Please run
> through the code of the examples that I have used. Let me know where I
> went wrong. Thanks in advance.
> 
> Registration.jsp:
> 
> 
> <%@ taglib uri="FlexTagLib" prefix="mm" %>
> 
> http://www.macromedia.com/2003/mxml";
> height="600">
> resultFormat="text" method="POST"
>result="methOne();">
>  
>{firstName.text}
>{lastName.text}
>{phone.text}
>{email.text}
> 
>  
>  
>
>
>
>
>
>
>
>
>
>
>
>
>
> click="registrationRequest.send()"/>
>
>
>   
>  
> 
> Action Mapping [Struts-Config.xml]
> 
>type="flex.FlexAction"
>   name="registration"
>   input="/registration.jsp">
>   redirect="true"/>
> 
> 
> Action Class
> 
> package flex;
> 
> import org.apache.struts.action.Action;
> import org.apache.struts.action.ActionForm;
> import org.apache.struts.action.ActionForward;
> import org.apache.struts.action.ActionMapping;
> import java.io.IOException;
> import javax.servlet.RequestDispatcher;
> import javax.servlet.ServletException;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
> 
> public class FlexAction extends Action {
>public ActionForward execute(ActionMapping mapping, ActionForm form,
>HttpServletRequest request, HttpServletResponse response)
>throws IOException, ServletException {
>ActionForward actionForward = null;
>FlexForm flexForm=(FlexForm)form;
> 
>System.out.println(" First Name :::"
> +request.getParameter("firstName"));
>System.out.println(" Last Name :::" +
> request.getParameter("lastName"));
>System.out.println(" Phone   :::" +
> request.getParameter("phone"));
>System.out.println(" E-Mail :::" +
> request.getParameter("email"));
> 
> 
>request.getSession().setAttribute("registration",form);
> 
>return mapping.findForward("success");
>}
> 
> 
> }
> 
> Confirm.jsp:
> 
> <%@ page import="java.util.Enumeration"%>
> <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
> Thank you for registering:
> 
> 
> 
> 
> 
> 
> On 7/5/05, Sreejith Unnikrishnan <[EMAIL PROTECTED]> wrote:
> > Hari,
> > This would be very minimal information for anybody to comment!
> > Are u developing the entire application in Flex?
> > Or a few UI components embedded in JSP?
> >
> > If it is the second case, there you might have to provide some more
> details,
> > but if it is the first, you should then understand that there is
> really no
> > concept such as "next page" in flex.
> >
> > The alert is a flex popup that displays the result of ur struts
> action, but
> > the forward does not work as in JSP. You should use that data and map
> it to
> > a flex component to see the results.
> >
> > Regards
> > Sree
> >
> > Harinath wrote:
> > Hi Guys
> > I am trying to develop simple application using flex using sturts
> > framework.But i am unable to forward to result page that is specified
> > in action mappings.
> > If i am using result="alert()" the result is displayed in popup
> > box. But why ?
> > it is not forward to next page..
> > Please help me
> > Thanks a lot..
> > Regards
> > Harinath K
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%4

RE: [flexcoders] Load a large swf (13MB)

2005-07-07 Thread Philippe Maegerman





Not sure, but I think the question was about being able 
to stream a .swf file, via flashcom or not ;)) 
I don't have an answer but I'd like to know 
too
 
Philippe Maegerman

 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Abdul 
QabizSent: jeudi 7 juillet 2005 8:42To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Load a large swf 
(13MB)

Hi,
 
Yeah you can. If it is progressive flv download, then as 
soon as some video is buffered you can play it.
 
If you are using flashcom, then it would be pure streaming 
and you can play...
 
I think, you can set the buffer time 
using:
 
NetStream.setBufferTime(..)
 
 http://livedocs.macromedia.com/flash/mx2004/main_7_2/1600.html 

 
 
-abdul


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Clint 
ModienSent: Thursday, July 07, 2005 4:07 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Load a large swf 
(13MB)
Can I start playing the movie before it's loaded?Can/Should I 
use flashcom to do this?Can I control the buffer?We load flv's 
using flashcom already... so we have a flashcom 
license.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






--**STATEMENT OF CONFIDENTIALITY** 
This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.
We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--


RE: [flexcoders] Load a large swf (13MB)

2005-07-07 Thread Abdul Qabiz





I think, you can not stream swf via 
flashcomm.
 
 
-abdul


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Philippe 
MaegermanSent: Thursday, July 07, 2005 1:36 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Load a large swf 
(13MB)

Not sure, but I think the question was about being able 
to stream a .swf file, via flashcom or not ;)) 
I don't have an answer but I'd like to know 
too
 
Philippe Maegerman

 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Abdul 
QabizSent: jeudi 7 juillet 2005 8:42To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Load a large swf 
(13MB)

Hi,
 
Yeah you can. If it is progressive flv download, then as 
soon as some video is buffered you can play it.
 
If you are using flashcom, then it would be pure streaming 
and you can play...
 
I think, you can set the buffer time 
using:
 
NetStream.setBufferTime(..)
 
 http://livedocs.macromedia.com/flash/mx2004/main_7_2/1600.html 

 
 
-abdul


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Clint 
ModienSent: Thursday, July 07, 2005 4:07 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Load a large swf 
(13MB)
Can I start playing the movie before it's loaded?Can/Should I 
use flashcom to do this?Can I control the buffer?We load flv's 
using flashcom already... so we have a flashcom 
license.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 

--**STATEMENT 
OF CONFIDENTIALITY** 
This e-mail and any attached files are confidential 
and intended solely for the use of the individual to whom it is addressed. If 
you have received this email in error please send it back to the person that 
sent it to you. Any views or opinions presented are solely those of author and 
do not necessarily represent those the Emakina Company. Unauthorized 
publication, use, dissemination, forwarding, printing or copying of this email 
and its associated attachments is strictly prohibited.
We also inform you that we have checked that this 
message does not contain any virus but we decline any responsability in case of 
any damage caused by an a non detected 
virus.--


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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Is antialiasing possible in flex?

2005-07-07 Thread Abdul Qabiz





Yeah it is possible. You need to embed 
the font outlines in Flex app for anti-aliasing to occur.
 
 Please search the archives, this topic has been 
discussed recently.
 
If you still have doubts, let us know..
 
-abdul
 
 



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Nithya RSent: 
Thursday, July 07, 2005 1:53 PMTo: flexcodersSubject: 
[flexcoders] Is antialiasing possible in flex?

pls let know if antialiasing is possible with flex/
 
thanks
nithya
Send instant messages to your online friends http://uk.messenger.yahoo.com 
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flex and Remoting?

2005-07-07 Thread chris.alvarado
Hello again everyone =)

So, ive been playing around with some of the Flex examples and
building little test widgets today and i must say im really liking
what im seeing.

to recap, i have a large app built using Flash, ColdFusion and MS SQL
and im strongly considering recommending that we rearchitect it in
Flex.

at the moment the application retrieves data from the database via
remoting. is remoting still viable for Flex applications or am i
better off creating web services?

if Remoting is still the preferred solution, can anyone point me at
some good write-ups on Data Integration with Flex using Remoting?

Thanks everyone!

-- 
-chris.alvarado
[application developer]


--
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/

<*> 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] Flex and Remoting?

2005-07-07 Thread Abdul Qabiz
Flash Remoting in Flex is known as RemoteObject. And it is still a
better solution...

Flex server comes with built-in remoting gateway, so every things is
seemlessly integrated. And it is very easy to use RemoteObject in Flex
as compared to Flash...

You can search the macromedia website, flexcoders archives for all
RemoteObject/Remoting related articles and discussions...

I am sure there are some articles on Macromedia website regarding
RemoteObject...

-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chris.alvarado
Sent: Thursday, July 07, 2005 3:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex and Remoting?

Hello again everyone =)

So, ive been playing around with some of the Flex examples and
building little test widgets today and i must say im really liking
what im seeing.

to recap, i have a large app built using Flash, ColdFusion and MS SQL
and im strongly considering recommending that we rearchitect it in
Flex.

at the moment the application retrieves data from the database via
remoting. is remoting still viable for Flex applications or am i
better off creating web services?

if Remoting is still the preferred solution, can anyone point me at
some good write-ups on Data Integration with Flex using Remoting?

Thanks everyone!

-- 
-chris.alvarado
[application developer]


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



 




--
Flexcoders 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/

<*> 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: Dynamically add an MXML to a Panel

2005-07-07 Thread cazzaran
You gathered correct. Unfortunately, what I was trying to do was a
sort of "runtime load" of an MXML component, which, in retrospect, I
should have known wasn't possible.

I tried what you said verbatim, and it didn't work. However, I got the
jist of what you were saying; what I did was to simply assign an xmlns
to where my custom Panel innards are, and then load them all with a
long list of tags, each with the name of the MXML file, and an id to
match. The import isn't enough apparently, I need to actually
instatiate them.

Then, using your eval(resource) -- something I MUST thank you for, I
would have lost a lot of time on that one -- I link the ComboBox
selection to the component's id.

It's ugly, and I can see it making my app huge (potentially, anyway)
but there isn't much choice otherwise. 

As always, my humble thanks for all the help, everyone. This group is
literally priceless.

-Josh

--- In flexcoders@yahoogroups.com, Scott Barnes <[EMAIL PROTECTED]> wrote:
> Basically from what I can gather you are trying to load in an MXML
> component based on a combo box's data attribute.
> 
> This cannot be done unless that mxml component has been imported at
> compile time.
> 
> The reason for this is even though FLEX is a server-side "compiler"
> once a MXML file has been processed, it basically disconnects from
> FLEX server itself *much like html does to a web server*. Through
> events like RemoteObject we can reconnect if need be but thats another
> discussion.
> 
> There is a way though.
> 
> in your main mxml file (ie index.mxml) put an import statement, ie:
> 
> 
> import com.mossyblog.customviews.*;
> 
> function loadMessageSpecificsPanel(event) {
>   var resource = event.target.selectedItem.data.resource;
>   var child = editMessageSpecificsPanel.createChild(eval(resource),
> undefined, {label:'TEST', width:'100%', height:'100%'});
> }
> 
> 
> note the eval(resource).
> 
> ?
> 
> 
> On 7/7/05, cazzaran <[EMAIL PROTECTED]> wrote:
> > I have a Panel in my application that needs to include different form
> > stuff based on what a user chooses in a ComboBox. I have a Panel that
> > looks like:
> > 
> >  > id="editMessageSpecificsPanel"/>
> > 
> > Based on the selection they choose in the ComboBox, I need what shows
> > up in the Panel to change. I have created several MXML files that have
> > an HBox that lays out what the Panel's internals need to look like.
> > One very simple one looks like:
> > 
> > http://www.macromedia.com/2003/mxml";>
> >   
> > 
> >> height="80" enabled="false" editable="true" />
> > 
> >   
> > 
> > 
> > I call, upon the change event on the ComboBox. It contains a bunch of
> > objects, with the property "resource" containing the name of the MXML
> > file I need to include:
> > 
> > private function loadMessageSpecificsPanel(event) {
> > var resource = event.target.selectedItem.data.resource; //
Get the
> > name of the MXML file we need
> > var child = editMessageSpecificsPanel.createChild(resource,
> > undefined, {label:'TEST', width:'100%', height:'100%'});
> > }
> > 
> > This isn't working though. Even though child IS getting populated with
> > something, it's not correct, doesn't have any of the variables I
> > specified in the included MXML, and the Panel in the UI is still
blank.
> > 
> > Any help is MUCH appreciated!
> > 
> > -Josh Oransky
> > 
> > 
> > 
> > 
> > --
> > 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
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> 
> -- 
> Regards,
> Scott Barnes
> http://www.mossyblog.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/

<*> 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] Flex & external desktop application communication

2005-07-07 Thread Alistair McLeod










Hi Ted,

 

I’m sure everyone on this list is
interested in seeing Flex implementations, so please do let us know when you’ve
got something to show us.

 

Cheers,

 

Ali

 



--

Alistair
 McLeod

Development Director

iteration::two

 

[EMAIL PROTECTED]

Office: +44 (0)131 338 6108

 

This e-mail and any associated attachments
transmitted with it may contain confidential information and must not be
copied, or disclosed, or used by anyone other than the intended recipient(s).
If you are not the intended recipient(s) please destroy this e-mail, and any
copies of it, immediately.

 

Please also note that while software
systems have been used to try to ensure that this e-mail has been swept for
viruses, iteration::two do not accept responsibility for any damage or loss
caused in respect of any viruses transmitted by the e-mail. Please ensure your
own checks are carried out before any attachments are opened.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Theodore E Patrick
Sent: 06 July 2005 16:50
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex
& external desktop application communication



 

Abdul, 

 

I have not been busier. Flex/Flash
application use is growing big time. 

 

I will be very interested to see Flexcoder
reaction to our new product. If noone objects(?),  I would like love to
announce the product Beta on Flexcoders. 

 

I am not sure what the Flexcoder list
policy is regarding product/beta announcements?

 

More to come!

 

Ted ;)

 











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Abdul Qabiz
Sent: Wednesday, July 06, 2005
11:27 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex
& external desktop application communication



 

Yeah XMLSocket is always a good option.

 

Ted, looks like you are doing
kick-ass stuff ;)

 

-abdul

 







From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Theodore E Patrick
Sent: Wednesday, July 06, 2005
8:52 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex
& external desktop application communication

Actually I am working on one right now for
my new company. I am using XMLSocket to connect to a locally running server
combined with data pulled from remote webservices. It is very easy to integrate
just about any feature you need as the local server can provide file system
access and provides seamless read/write into the application.

 

FLEXSWF <> HTTP <> LocalServer

FLEXSWF <> XMLSocket <>
LocalServer

FLEXSWF <> WS <> RemoteServer

 

I shipped a custom XMLSocket server last
month for a Kiosk installation for Flash integration. The server provided media
conversion for SWF display, PNG/JPG/GIF/AnimatedGIF/WMA/RM all running through
a Flash UI. Additionally we integrated with an MSR (CC Reader) on the IBM
AnyPlace Kiosk which pushed the CC value into Flash as an event.

 

The other option is diving into Central.
Using FileReference and FileReferenceList, you can read, write, upload download
files as needed. 

 

All are good options but it depends on
what you need. Having been down the kiosk path as recently as last week, using
a custom XMLSocket/HTTP server is a very solid solution although I think I
stand alone in this effort.

 

Actually if all goes well my new company
will have a public beta of a FlexUI & Custom Server for download within a
weeks time. :)

 

Ted ;)

 











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of superabe
Sent: Tuesday, July 05, 2005 6:48
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex &
external desktop application communication



 



Hello list,





 





I know Flex excels at communicating with server-side data
sources.





Is there any way for a flex app to communicate with a
desktop application installed on the same machine as where the app is being
viewed (in a controlled kiosk environment for e.g.)





 





TIA,





 





superabe





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




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








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






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









SPONSORED
LINKS 




 
  
  Computer
  software testing 
  
  
  Macromedia
  flex 
  
  
  Development
  
  
 
 
  
  Software
  developer 
  
  
   
  
  
   
  
 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/fi

RE: [flexcoders] Is antialiasing possible in flex?

2005-07-07 Thread Bikram Sahu





hi,
    recently i am facing a problem that 
i want to upload a file to the server please tell me how can i pass the file to 
the server in flex.
 
with 
Regards
Bikram 
Sahu

  -Original Message-[Bikram 
  Sahu]  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED]On Behalf Of Nithya 
  RSent: Thursday, July 07, 2005 1:53 PMTo: 
  flexcodersSubject: [flexcoders] Is antialiasing possible in 
  flex?
  pls let know if antialiasing is possible with flex/
   
  thanks
  nithya
  Send instant messages to your online friends http://uk.messenger.yahoo.com 
  --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Is antialiasing possible in flex?

2005-07-07 Thread Abdul Qabiz





http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19382
http://www.flexauthority.com/articlesArchive/fileUpload.cfm
 www.markme.com/mchotin/archives/006375.cfm (currently down - should be up 
soon)
 
you can adopt similar technique using any server-side 
script...
 
 
-abdul


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Bikram 
SahuSent: Thursday, July 07, 2005 2:00 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Is antialiasing 
possible in flex?

hi,
    recently i am facing a problem that 
i want to upload a file to the server please tell me how can i pass the file to 
the server in flex.
 
with 
Regards
Bikram 
Sahu

  -Original Message-[Bikram 
  Sahu]  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED]On Behalf Of Nithya 
  RSent: Thursday, July 07, 2005 1:53 PMTo: 
  flexcodersSubject: [flexcoders] Is antialiasing possible in 
  flex?
  pls let know if antialiasing is possible with flex/
   
  thanks
  nithya
  Send instant messages to your online friends http://uk.messenger.yahoo.com 
  --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  --Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] CheckBox in the DataGrid

2005-07-07 Thread Abdul Qabiz
Hi,

You can achieve this by just updating dataProvider and if design of
yourCellRenderer in such a way that if dataProvider changes CellRenderer
is updated.

Say you have a field in dataProvider, which is bound with checkbox's
selected property. If you change the dataProvider, CheckBoxes get
updated.

-abdul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of shahnavaza
Sent: Thursday, July 07, 2005 1:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] CheckBox in the DataGrid

Hi All,

I have a DataGrid with a checkbox rendered successfully using
CellRenderer. My first problem is that how do I get the array of all
Checked checkboxes on particular button Click. Secondly, I need to
unCheck all checked Checkboxes on UnCheck button click. Following is
the Snippet. Thanks for your response






 


















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



 




--
Flexcoders 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/

<*> 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] Added image/s in TileList is/are not shown

2005-07-07 Thread Scott Barnes
sorry your message was truncated, could you followup with the code?

you can't move one movieclip (ie image) from containerA to containerB,
sadly DuplicateMovieClip only allows you to duplicate a movieclip onto
the same level as its original source (btw FLASH 8 wishlist feature).

The only way is to re-create that same image again in another
container, via methods like createChild(function,instanceName,initObj)
(function = class path ... ie mx.controls.Button)





On 7/7/05, ptrisnadi <[EMAIL PROTECTED]> wrote:
> I tried searching for the answer everywhere (including The Mail Archive) but 
> no success.
> Basically I want to add 1 or more images to a tilelist from another tilelist 
> in a popup. Both
> tilelists are populated with correct images based on the XML file. I use 
> addItemAt and it
> seems to do something, but it just adds blank tiles... What am I missing here?
> 
> -- TileList that I want to add images --
> 
> 

Re: [flexcoders] Flex & external desktop application communication

2005-07-07 Thread Scott Barnes
That's for sure, as i can just see the Director of Finance @ my work
drool at the ability to transmit data from FLEX to his annoying Excel
spreedsheet(s) and vice versa.

Never thought it was possible, so i'm very keen to see "how".

On 7/7/05, Alistair McLeod <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> Hi Ted, 
> 
>   
> 
> I'm sure everyone on this list is interested in seeing Flex implementations,
> so please do let us know when you've got something to show us. 
> 
>   
> 
> Cheers, 
> 
>   
> 
> Ali 
> 
>   
>  
> 
> -- 
> 
> Alistair McLeod 
> 
> Development Director 
> 
> iteration::two 
> 
>   
> 
> [EMAIL PROTECTED] 
> 
> Office: +44 (0)131 338 6108 
> 
>   
> 
> This e-mail and any associated attachments transmitted with it may contain
> confidential information and must not be copied, or disclosed, or used by
> anyone other than the intended recipient(s). If you are not the intended
> recipient(s) please destroy this e-mail, and any copies of it, immediately. 
> 
>   
> 
> Please also note that while software systems have been used to try to ensure
> that this e-mail has been swept for viruses, iteration::two do not accept
> responsibility for any damage or loss caused in respect of any viruses
> transmitted by the e-mail. Please ensure your own checks are carried out
> before any attachments are opened. 
>  
>  
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Theodore E Patrick
>  Sent: 06 July 2005 16:50
>  To: flexcoders@yahoogroups.com
>  Subject: RE: [flexcoders] Flex & external desktop application communication
> 
>   
> 
> Abdul, 
> 
>   
> 
> I have not been busier. Flex/Flash application use is growing big time. 
> 
>   
> 
> I will be very interested to see Flexcoder reaction to our new product. If
> noone objects(?),  I would like love to announce the product Beta on
> Flexcoders. 
> 
>   
> 
> I am not sure what the Flexcoder list policy is regarding product/beta
> announcements? 
> 
>   
> 
> More to come! 
> 
>   
> 
> Ted ;) 
> 
>   
>  
>  
>  
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Abdul Qabiz
>  Sent: Wednesday, July 06, 2005 11:27 AM
>  To: flexcoders@yahoogroups.com
>  Subject: RE: [flexcoders] Flex & external desktop application communication
> 
>   
> 
> Yeah XMLSocket is always a good option. 
> 
>   
> 
> Ted, looks like you are doing kick-ass stuff ;) 
> 
>   
> 
> -abdul 
> 
>   
>  
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Theodore E Patrick
>  Sent: Wednesday, July 06, 2005 8:52 PM
>  To: flexcoders@yahoogroups.com
>  Subject: RE: [flexcoders] Flex & external desktop application communication
> 
> Actually I am working on one right now for my new company. I am using
> XMLSocket to connect to a locally running server combined with data pulled
> from remote webservices. It is very easy to integrate just about any feature
> you need as the local server can provide file system access and provides
> seamless read/write into the application. 
> 
>   
> 
> FLEXSWF <> HTTP <> LocalServer 
> 
> FLEXSWF <> XMLSocket <> LocalServer 
> 
> FLEXSWF <> WS <> RemoteServer 
> 
>   
> 
> I shipped a custom XMLSocket server last month for a Kiosk installation for
> Flash integration. The server provided media conversion for SWF display,
> PNG/JPG/GIF/AnimatedGIF/WMA/RM all running through a Flash UI. Additionally
> we integrated with an MSR (CC Reader) on the IBM AnyPlace Kiosk which pushed
> the CC value into Flash as an event. 
> 
>   
> 
> The other option is diving into Central. Using FileReference and
> FileReferenceList, you can read, write, upload download files as needed. 
> 
>   
> 
> All are good options but it depends on what you need. Having been down the
> kiosk path as recently as last week, using a custom XMLSocket/HTTP server is
> a very solid solution although I think I stand alone in this effort. 
> 
>   
> 
> Actually if all goes well my new company will have a public beta of a FlexUI
> & Custom Server for download within a weeks time. :) 
> 
>   
> 
> Ted ;) 
> 
>   
>  
>  
>  
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of superabe
>  Sent: Tuesday, July 05, 2005 6:48 PM
>  To: flexcoders@yahoogroups.com
>  Subject: [flexcoders] Flex & external desktop application communication 
> 
>   
>  
> 
> Hello list, 
>  
> 
>   
>  
> 
> I know Flex excels at communicating with server-side data sources. 
>  
> 
> Is there any way for a flex app to communicate with a desktop application
> installed on the same machine as where the app is being viewed (in a
> controlled kiosk environment for e.g.) 
>  
> 
>   
>  
> 
> TIA, 
>  
> 
>   
>  
> 
> superabe 
> 
> 
>  
>  --
>  Flexcoders Mailing List
>  FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  Search Archives:
> http://w

Re: [flexcoders] Re: Dynamically add an MXML to a Panel

2005-07-07 Thread Scott Barnes
On 7/7/05, cazzaran <[EMAIL PROTECTED]> wrote:
> You gathered correct. Unfortunately, what I was trying to do was a
> sort of "runtime load" of an MXML component, which, in retrospect, I
> should have known wasn't possible.

No, you wouldn't be the first and will not be the last. I remember
thinkng along the same lines (ie i thought that was what FLEX major
power feature was, much like Flash Communication Server where it stays
connected to the server and simply *grows* the SWF...ahh but to
dream).
 
> I tried what you said verbatim, and it didn't work. However, I got the
> jist of what you were saying; what I did was to simply assign an xmlns
> to where my custom Panel innards are, and then load them all with a
> long list of tags, each with the name of the MXML file, and an id to
> match. The import isn't enough apparently, I need to actually
> instatiate them.

Sort of, i'm not sure it actually needs instantiation. An example was
when i made SynergyFLEX, i include an XML file via mx:XML. Inside that
XML file i place basically references to various classes..

eg:


That's all that was needed in order for the compiler to include that
class as part of the overall SWF, so when the time came (which was
much later in the application workflow) i would only *then*
instantiate it via the createChild().

I thought i was pretty tricky finding that one, and if others knew
about it already ...thankyou for sharing it! heh...*grumble*

Note: I put the mx:XML file in mx:Application container. In truth you
can put it / nest it anywhere you like within the application,
provided the container its housed in is "known" to FLEX at compile
time...


> 
> Then, using your eval(resource) -- something I MUST thank you for, I
> would have lost a lot of time on that one -- I link the ComboBox
> selection to the component's id.

aye, eval() doth saveith but for-warned! heh..it's been considered in
many languages a "last resort" concept to apply in ones code (Well
thats what i've been taught anyway)..


> It's ugly, and I can see it making my app huge (potentially, anyway)
> but there isn't much choice otherwise.

Your actual "Classes" imported shouldn't consume a lot of memory (from
my brief understanding of the flash player). Its only when you
instantiate them (ie take them from their prototype state to a full
visual) that it starts to get some memory behind it (especially with
the current players performance issues).

It'd be good to hear an offical wording on this via some of the MM
engineers about importing classes vs instantiating them and the memory
consumption between the two?

-- 
Regards,
Scott Barnes
http://www.mossyblog.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/

<*> 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] Flex & external desktop application communication

2005-07-07 Thread Abdul Qabiz
 >Never thought it was possible, so i'm very keen to see "how".

Many ways :), some are...

- LocalConnection
- XMLSocket


I wrote a Flash application in past, which used to communicate with MS
Outlook and MS Excel. It was kind of experiment after someone on
flashcoders asked about it..

If you are working for intranet applications, these things(custom
ActiveX, standalone apps etc) are possible and easy..


BTW! Looking for Ted's experiment and his python socket server :)

-abdul


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Barnes
Sent: Thursday, July 07, 2005 3:37 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex & external desktop application
communication

That's for sure, as i can just see the Director of Finance @ my work
drool at the ability to transmit data from FLEX to his annoying Excel
spreedsheet(s) and vice versa.

Never thought it was possible, so i'm very keen to see "how".

On 7/7/05, Alistair McLeod <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> Hi Ted, 
> 
>   
> 
> I'm sure everyone on this list is interested in seeing Flex
implementations,
> so please do let us know when you've got something to show us. 
> 
>   
> 
> Cheers, 
> 
>   
> 
> Ali 
> 
>   
>  
> 
> -- 
> 
> Alistair McLeod 
> 
> Development Director 
> 
> iteration::two 
> 
>   
> 
> [EMAIL PROTECTED] 
> 
> Office: +44 (0)131 338 6108 
> 
>   
> 
> This e-mail and any associated attachments transmitted with it may
contain
> confidential information and must not be copied, or disclosed, or used
by
> anyone other than the intended recipient(s). If you are not the
intended
> recipient(s) please destroy this e-mail, and any copies of it,
immediately. 
> 
>   
> 
> Please also note that while software systems have been used to try to
ensure
> that this e-mail has been swept for viruses, iteration::two do not
accept
> responsibility for any damage or loss caused in respect of any viruses
> transmitted by the e-mail. Please ensure your own checks are carried
out
> before any attachments are opened. 
>  
>  
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Theodore E Patrick
>  Sent: 06 July 2005 16:50
>  To: flexcoders@yahoogroups.com
>  Subject: RE: [flexcoders] Flex & external desktop application
communication
> 
>   
> 
> Abdul, 
> 
>   
> 
> I have not been busier. Flex/Flash application use is growing big
time. 
> 
>   
> 
> I will be very interested to see Flexcoder reaction to our new
product. If
> noone objects(?),  I would like love to announce the product Beta on
> Flexcoders. 
> 
>   
> 
> I am not sure what the Flexcoder list policy is regarding product/beta
> announcements? 
> 
>   
> 
> More to come! 
> 
>   
> 
> Ted ;) 
> 
>   
>  
>  
>  
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Abdul Qabiz
>  Sent: Wednesday, July 06, 2005 11:27 AM
>  To: flexcoders@yahoogroups.com
>  Subject: RE: [flexcoders] Flex & external desktop application
communication
> 
>   
> 
> Yeah XMLSocket is always a good option. 
> 
>   
> 
> Ted, looks like you are doing kick-ass stuff ;) 
> 
>   
> 
> -abdul 
> 
>   
>  
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Theodore E Patrick
>  Sent: Wednesday, July 06, 2005 8:52 PM
>  To: flexcoders@yahoogroups.com
>  Subject: RE: [flexcoders] Flex & external desktop application
communication
> 
> Actually I am working on one right now for my new company. I am using
> XMLSocket to connect to a locally running server combined with data
pulled
> from remote webservices. It is very easy to integrate just about any
feature
> you need as the local server can provide file system access and
provides
> seamless read/write into the application. 
> 
>   
> 
> FLEXSWF <> HTTP <> LocalServer 
> 
> FLEXSWF <> XMLSocket <> LocalServer 
> 
> FLEXSWF <> WS <> RemoteServer 
> 
>   
> 
> I shipped a custom XMLSocket server last month for a Kiosk
installation for
> Flash integration. The server provided media conversion for SWF
display,
> PNG/JPG/GIF/AnimatedGIF/WMA/RM all running through a Flash UI.
Additionally
> we integrated with an MSR (CC Reader) on the IBM AnyPlace Kiosk which
pushed
> the CC value into Flash as an event. 
> 
>   
> 
> The other option is diving into Central. Using FileReference and
> FileReferenceList, you can read, write, upload download files as
needed. 
> 
>   
> 
> All are good options but it depends on what you need. Having been down
the
> kiosk path as recently as last week, using a custom XMLSocket/HTTP
server is
> a very solid solution although I think I stand alone in this effort. 
> 
>   
> 
> Actually if all goes well my new company will have a public beta of a
FlexUI
> & Custom Server for download within a weeks time. :) 
> 
>   
> 
> Ted ;) 
> 
>   
>  
>  
>  
>  
> 
> From: fl

[flexcoders] Camera

2005-07-07 Thread Philippe Maegerman





Is it possible 
to instantiate a Video Object in Flex to attach a webcam and stream to 
flashcom?
 
Philippe Maegerman
 


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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






--**STATEMENT OF CONFIDENTIALITY** 
This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.
We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--


Re: [flexcoders] bug of the minute: MenuBar, Scaling, and Sub Menus

2005-07-07 Thread Manish Jethani
On 7/7/05, Matthew Shirey <[EMAIL PROTECTED]> wrote:

>  Uhm... to get right to the point... That's Crazy.  Why are MenuItems and
> Menus not children??

I'm not aware of the exact reason for this, but my guess is that they
are not children in order to support the following case:

 
   
 

The Box would normally clip its content -- including the dropdown
menus (if they were children of the MenuBar).

> I'm dealing with an application that I am trying
> desperately to use scaling in to make it easier for visually impaired to
> use.  But at every turn scaling seems to be broken.  I just found that with
> a ComboBox control scaling is also broken.  The control itself is fine, but
> the drop down list when clicked on is not scaled properly.  To say that this
> is frustrating would be a gross understatement.

It's the same for ComboBox: the dropdown is not a child of the component.

If you decide to subclass the components to add scaling support, you
would have to override the setters for "scaleX" and "scaleY" and apply
the same value to the dropdown movie clips.  This may not be trivial
for both components, since the dropdowns are created only when needed.
 Thankfully the source for both ComboBox and MenuBar is available in
FlexforFlash.zip, so if you're truly determined you can do it.

If you want to scale the entire app, then you should simply set scaleX
and scaleY on the Application element.  That takes care of the menus
and combo boxes.


--
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/

<*> 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] Flex & external desktop application communication

2005-07-07 Thread Theodore E Patrick
The nice aspect of a local server (HTTP/XMLSocket) for integration is that
you can interact with Flex applications in the browser cleanly within the
security sandbox of the player. So long as the crossdomain.xml files are in
place and valid, you can have Flex integrate with a local server without
issue from a public website or intranet.

FlexUI <> mx:Loader <> Local HTTP Server <> Local System

FlexUI <> XMLSocket <> Local XMLSocket Server <> Local System

In our case, we are licensing, installing, and configuring software via a
Flex UI through a desktop "Service". Within Flash, FlexBuilder,
Eclipse(Zorn), Browsers, and Standalone Players, we can license, install,
and configure software to the local file system securely. All content is
distributed in a signed format that can be tested for authenticity within
the "Service" before installation occurs.

We shipped Beta 1 of the "Service" internally yesterday on WIN (OSX soon).
We are about a week from announcing and the public beta will proceed
afterwards.

I will make sure to push the announcement onto Flexcoders a day in advance.

There is nothing like a great example.

Ted ;)

 
>  >Never thought it was possible, so i'm very keen to see "how".
> 
> Many ways :), some are...
> 
> - LocalConnection
> - XMLSocket
> 
> 
> I wrote a Flash application in past, which used to communicate with MS
> Outlook and MS Excel. It was kind of experiment after someone on
> flashcoders asked about it..
> 
> If you are working for intranet applications, these things(custom
> ActiveX, standalone apps etc) are possible and easy..
> 
> 
> BTW! Looking for Ted's experiment and his python socket server :)
> 
> -abdul 




--
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/

<*> 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] Macromedia Flex contracts a plenty!

2005-07-07 Thread Clint Modien



404 for http://www.flexauthority.com

from 2 different locations in North America

On 7/7/05, Jeff Steiner <[EMAIL PROTECTED]> wrote:
















I thought that I would bring up the Flex
Jobs topic in the forums of Flex Authority.  I am seeing probably 4-5 Flex jobs
a week on the major job search engines!

 

If you are interested, take a peek at 
http://www.flexauthority.com/forumThreadList.cfm?topicID=12.

 



Jeff

Founder

Flex Authority


http://www.flexauthority.com

 

We are actively seeking contributors for
the site.  Have a sample that you want to share with the world?  Send
it to us!















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




  
  
SPONSORED LINKS
  
  
  


Computer software testing
  
  

Macromedia flex
  
  

Development
  
  



Software developer
  

   






  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: 
[EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  














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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] using Repeater

2005-07-07 Thread Clint Modien



very nice and LARGE section in the docs... (thank you flex doc team)

http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=0419.htm


p.s. rtfm

On 7/7/05, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
Hi Rajesh,id should be string following rules for a variable name(should not startwith numbers, should not contain some special chars except $ etc). Youcan not pass a binding _expression_ there.Why do you want to assign a dynamic id? Since you are using repeater to
generate ViewStack, you know the order of ViewStacks and you can alwaysrefer by their index?-abdul-Original Message-From: flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com] OnBehalf Of Rajesh JayabalanSent: Thursday, July 07, 2005 4:12 AMTo: flexcoders@yahoogroups.com
Subject: [flexcoders] using RepeaterHi,when I try to use the value from repeator for a viewstack id I get a"id '{rp.currentItem.mrcName}' is not a valid identifier" error.
I am trying to create viewstack with dynamic ids and pass the id to afunction. Here is my code.Rajesh J
dataProvider="{getMRC.result.mrcategories.mrcategory}">
creationComplete="getItems(event.target.getRepeaterItem().mrcid)"width="100%" height="100%">width="100%" height="100%">label="Product Catalog"dataObject="{
getCatItems.result.catalog.product}"change="selectedItem=event.target.selectedItem"/>
mouseDown="changeView('thumb',event.target.getRepeaterItem().mrcName)"mouseOver="event.target.source=thumbRoll"
mouseOut="event.target.source=currentView=='thumb'?thumbOn:thumbOff"/>mouseDown="changeView('grid',event.target.getRepeaterItem
().mrcName)"mouseOver="event.target.source=listRoll"mouseOut="event.target.source=currentView=='grid'?listOn:listOff"/>
--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/<*> 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 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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] HistoryManger state is undefined on loading

2005-07-07 Thread rockmoyosa
My case:

- saveState is executed 
- On "Back" loadState is executed.

But.
Than my state is "undefined"


private var changed:Boolean;

public function initHistory():Void {
mx.managers.HistoryManager.register(this);
storeInternalState();
}

public function saveState():Object {
// called by HistoryManager, tells the component
// to create a "state" object and to return it\
var state = new Object();
state.model = Model.getInstance();
state.view = this._scope.m_detailview;

mx.controls.Alert.show(""+this._scope.m_detailview.visible);
Log.debug("hello"+state);
return state;
}

public function loadState(state:Object):Void {
// called by HistoryManager, passes in a state
// object so the component can rebuild it's state
mx.controls.Alert.show("state: "+state.view);
restoreInternalState(state);
}

public function savePresent():Void {
storeInternalState( );
}

public function storeInternalState():Void {
mx.managers.HistoryManager.save();
}

public function restoreInternalState(state:Object):Void {
Log.dump(state);
Log.debug("state.view.visible: "+state.view.visible);

if(state.view.visible == true && 
this._scope.m_detailview.visible ==
false ||
state.view.visible == false &&
this._scope.m_detailview.visible == true){
toggleView();
}
Model.getInstance().restoreInstance(state.model);
}




--
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/

<*> 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] Camera

2005-07-07 Thread Philippe Maegerman





Thank you very much Abdul, 
After 
a good battle I was arrived to your second proposition, very light and 
simple.  
I 
wanted to go the 'deluxe' way and bundle it into a .swc so I could 
instantiate a  tag and pass arguments like 'height', 'width', 'src' 
video settings etc ... but coudn't get it work :(( I can load it into a 
container but can't access the video object inside (I simplified, just trying 
to attachVideo on the client side without 
Flashcom) :((
I am 
actualy digging the flex doc 'Developing Flex Components and Themes in Flash 
AUthoring' to see what I miss.
Whenever I get something solid like a rock, I'll post 
the file ;))
 
Cheers,
 
Philippe Maegerman


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Abdul 
QabizSent: jeudi 7 juillet 2005 14:57To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] 
Camera
Hi,You don't need a VideoObject to send stream to 
flashcom. But you need itto see what is going to server :)Video 
class can not be instantiated using ActionScript. You need to havea Video 
Symbol in your swf.There are two methods:1) Use 
MediaDisplay2) Create a swf with Video symbol and embed in Flex 
app.First method would work without much effort but file size might be 
more,because entire MediaDisplay code would be in swf even though you 
won'tbe using any MediaDisplay functionality.Second method would 
take 5-10 minutes more effort for creating a swfwith Video symbol using 
Macromedia Flash IDE. But final output of yourapplication would be 
small.I am going to show you both ways here. See the following code and 
alsoat attached files:1) 
##CameraUsingMediaDisplay.mxml##http://www.macromedia.com/2003/mxml"width="600" 
height="600" creationComplete="onAppInit()" >    
    
    
    
    height="280">    
    
2) 
##CameraUsingVideoSymbol.mxml##http://www.macromedia.com/2003/mxml"width="600" 
height="600" creationComplete="onAppInit()" >    
    
    
    
    height="280" 
/>        
-abdulFrom: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of 
Philippe MaegermanSent: Thursday, July 07, 2005 4:00 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] CameraIs it 
possible to instantiate a Video Object in Flex to attach a webcamand stream 
to flashcom?Philippe Maegerman--Flexcoders Mailing 
ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com 
YAHOO! GROUPS LINKS 
  *  Visit 
your group "flexcoders 
" on the web.    
*  To unsubscribe from this group, send an 
email to:  
[EMAIL PROTECTED] 
    *  
Your use of Yahoo! Groups is subject to the Yahoo! Terms ofService  
. 
--**STATEMENT 
OF CONFIDENTIALITY** This e-mail and any attached files are confidential 
and intended solelyfor the use of the individual to whom it is addressed. If 
you havereceived this email in error please send it back to the person that 
sentit to you. Any views or opinions presented are solely those of 
authorand do not necessarily represent those the Emakina Company. 
Unauthorizedpublication, use, dissemination, forwarding, printing or copying 
of thisemail and its associated attachments is strictly 
prohibited.We also inform you that we have checked that this message 
does notcontain any virus but we decline any responsability in case of 
anydamage caused by an a non detected 
virus.Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






--**STATEMENT OF CONFIDENTIALITY** 
This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.
We also inform you that we have checked that this message does not contain any virus but we decli

[flexcoders] Re: HistoryManger state is undefined on loading

2005-07-07 Thread rockmoyosa
I tell what happened. state. objects are now STRINGS(!?)

<< DUMP START >> 
 this:Object
|model = [object Object]  (string)
|view = false  (string)

I can overcome the view by:
var detailVisible = Boolean(state.view == "true");

But for model it's a different story.



--- In flexcoders@yahoogroups.com, "rockmoyosa" <[EMAIL PROTECTED]> wrote:
> My case:
> 
> - saveState is executed 
> - On "Back" loadState is executed.
> 
> But.
> Than my state is "undefined"
> 
> 
> private var changed:Boolean;
>   
>   public function initHistory():Void {
>   mx.managers.HistoryManager.register(this);
>   storeInternalState();
>   }
>   
>   public function saveState():Object {
>   // called by HistoryManager, tells the component
>   // to create a "state" object and to return it\
>   var state = new Object();
>   state.model = Model.getInstance();
>   state.view = this._scope.m_detailview;
>   
>   mx.controls.Alert.show(""+this._scope.m_detailview.visible);
>   Log.debug("hello"+state);
>   return state;
>   }
>   
>   public function loadState(state:Object):Void {
>   // called by HistoryManager, passes in a state
>   // object so the component can rebuild it's state
>   mx.controls.Alert.show("state: "+state.view);
>   restoreInternalState(state);
>   }
>   
>   public function savePresent():Void {
>   storeInternalState( );
>   }
> 
>   public function storeInternalState():Void {
>   mx.managers.HistoryManager.save();
>   }
>   
>   public function restoreInternalState(state:Object):Void {
>   Log.dump(state);
>   Log.debug("state.view.visible: "+state.view.visible);
>   
>   if(state.view.visible == true && 
> this._scope.m_detailview.visible ==
> false ||
>   state.view.visible == false &&
> this._scope.m_detailview.visible == true){
>   toggleView();
>   }
>   Model.getInstance().restoreInstance(state.model);
>   }




--
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/

<*> 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] Dynamic LineSeries color doesnt work

2005-07-07 Thread Ely Greenfield



What type of chart are you using?

Series in a chart get an 'internalStyleName' from the enclosing chart.
Each series gets a different internalStyleName.

Different chart types have different internal style names for their
series. The LineSeries has internalStyleNames that have strokes applied
for the LineSeries within. Other chart types, however, don't have
strokes specified for their internal stylenames.

You can assign a specific stroke to your line series like so:

Import mx.graphics.Stroke;

Ls.stroke = new Stoke(0xFF,2,100); // color, weight, alpha

Ely.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of DavidLand
Sent: Wednesday, July 06, 2005 6:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamic LineSeries color doesnt work
Importance: High

Whenever I add a LineSeries to a chart via AS it does not seem to obtain
the automatic stroke color. It just shows up as 2 grey lines if it still
has a shadow. In the legend there is no color swatch as well. 
Code is below and any help is of course appreciated. thnx

var ls=new LineSeries();
ls.showDataEffect = "interpolate";
ls.interpolateValues = "true";
ls.yField = "TCUR";
ls.showDataEffect = "drillDownEffect";
ls.name = "Cloud Cover";
drillDownChart.series.addItem(ls);




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



 




--
Flexcoders 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/

<*> 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] MM weblogs moved

2005-07-07 Thread Matt Chotin
Most of the weblogs from Macromedia were moved from www.markme.com to
weblogs.macromedia.com.  The templates got uglier but the machine is
better :-)  If you see any problems let us know.

Matt


--
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/

<*> 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] bug of the minute: MenuBar, Scaling, and Sub Menus

2005-07-07 Thread Matthew Shirey



Thanks for the additional information.  Since I do understand a
bit of how flash is being used to present these UI elements, I do
understand, thanks to you, why there's no parent/child
relationship.  For me, its just really unfortunate.  Because
of the difficulty I have had with the scaling of an entire application,
I have had to drop it from the requirements for this application. 
My superiors were not thrilled, but they can easily see that its just
devouring precious time.  For now, I'm just ramping all of the
fonts very large for the whole application.  For those of us who
can actually see, we're going to want to take a step back from the
monitor, but its all I could come up with on my current time
line.  I'll explore scaling the whole application again once I get
this version out.  Thanks again for the information.

M.On 7/7/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
On 7/7/05, Matthew Shirey <[EMAIL PROTECTED]> wrote:>  Uhm... to get right to the point... That's Crazy.  Why are MenuItems and> Menus not children??I'm not aware of the exact reason for this, but my guess is that they
are not children in order to support the following case:     The Box would normally clip its content -- including the dropdownmenus (if they were children of the MenuBar).
> I'm dealing with an application that I am trying> desperately to use scaling in to make it easier for visually impaired to> use.  But at every turn scaling seems to be broken.  I just found that with
> a ComboBox control scaling is also broken.  The control itself is fine, but> the drop down list when clicked on is not scaled properly.  To say that this> is frustrating would be a gross understatement.
It's the same for ComboBox: the dropdown is not a child of the component.If you decide to subclass the components to add scaling support, youwould have to override the setters for "scaleX" and "scaleY" and apply
the same value to the dropdown movie clips.  This may not be trivialfor both components, since the dropdowns are created only when needed. Thankfully the source for both ComboBox and MenuBar is available in
FlexforFlash.zip, so if you're truly determined you can do it.If you want to scale the entire app, then you should simply set scaleXand scaleY on the Application element.  That takes care of the menusand combo boxes.
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links<*> To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
<*> 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 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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] XML Socket Doesn't Work

2005-07-07 Thread cshafer213
Can Anyone Tell Me what is wrong with the following code to connect to
an XML socket server? The stat Lable should display either "status =
Connected" or "status = Error" when the button is clicked, and nothing
is happening.

Thanks,

Chris Shafer, George Weiss Associates


http://www.macromedia.com/2003/mxml";>



  
  
  





--
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/

<*> 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] Reorder tree via dragging

2005-07-07 Thread Matthew Shirey



As I am currently working with this, I can say that
dataForFormat("source") will give you a reference to the source object
of the drag drop operation.  I am not sure about the "items" one
though.  I've read mixed documentation, some say its
"treeItems".  Any rate, there's a formats array in the event
object that you can itterate through and see all of the available
formats if needed.

M.On 7/6/05, Matt Chotin <[EMAIL PROTECTED]> wrote:

















I think dataForFormat("items")
or dataForFormat("source"), not sure which is valid for Tree, might
give you the original items as opposed to the copies.

 

Matt

 









From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Sean McKibben
Sent: Wednesday, July 06, 2005
1:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reorder tree
via dragging



 

So I'm trying to make a tree which can reorder its nodes by
dragging  
them. One of the things I wanted to do is prevent
a parent item from  
being dragged on to any of its children, and to
show that during the  
dragOver event.

In order to calculate whether the source is being
dragged on to any  
of its offspring, I've been comparing the  
event.dragSource.dataForFormat("treeItems")
first to  
firstValue=event.target.getDropParent().getTreeNodeAt

(event.target.getDropLocation()) then recursively
to the parents of  
firstValue.

This apparently doesn't work because dataForFormat
seems to hand me a  
copy of the items being dragged instead of an
actual reference, so  
the two values are never equal. I did note that
the items that  
dataForFormat give me, do contain references to
the real parents,  
data and other objects, it is just that the items
themselves are  
copies for some reason.

What I ended up doing is something like the
following:

if(checkParentDrop(myowncustom.TreeUtils.findDataItemNode

(view.TemplateAssemblyTree,
dragItems[i].getData())
   
, event.target.getDropParent().getTreeNodeAt 
(event.target.getDropLocation(
 action =
"">

private function checkParentDrop(source,
node):Boolean
 {

if(source == node)

return true;

if(node.getParent()!=null)

return checkParentDrop(source, node.getParent());

else

return false;
 }


public static function findDataItemNode(tree:mx.controls.Tree, 

o:Object):TreeNode
... recursively check the entire tree for the same
getData()  
reference ...

So basically instead of comparing items from 

event.dragSource.dataForFormat("treeItems"),
i have to recursively  
look them up by the reference they contain to
their getData()  
information, to get the actual reference to the
TreeNode which I then  
compare to the drop target and its ancestors for
referential equality.

This is horribly ugly, but it works. Is there a
better way that  
people have stumbled across to validate
tree->self drags? I wish that  
dataForFormat handed over references instead of
copies!

(sorry if this was discussed before; I'm
apparently bad at finding  
previously discussed topics in this list!)

Sean




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 

   To unsubscribe from this group, send an email to: 
[EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  














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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] MM weblogs moved

2005-07-07 Thread Dave Carabetta
On 7/7/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> Most of the weblogs from Macromedia were moved from www.markme.com to
> weblogs.macromedia.com.  The templates got uglier but the machine is
> better :-)  If you see any problems let us know.
> 

Matt,

Do you know when/if the /go/* feed URLs will be updated? For example,
I subscribe to the Flex Product Notification feed with a URL of
http://www.macromedia.com/go/rss_flex, but that URL still re-directs
to the old markme.com site, which is no longer around. All of the
product notification feeds suffer from this, but since this is a Flex
list, I figured I'd keep it relevant! This is probably more of a
question for Christian Cantrell, but thought you might know.

Regards,
Dave.


--
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/

<*> 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] MM weblogs moved

2005-07-07 Thread John Dowdell
Dave Carabetta wrote:
> Do you know when/if the /go/* feed URLs will be updated? 

These are in the pipeline (gotta do it!), but the older machine was 
physically damaged, while its owners (Mike Chambers & Christian 
Cantrell) are at the FlashForward conference in New York. It will 
probably take a few days to resuscitate it and clean the transfer, but 
the goal is to transparently redirect old links and current RSS readers.

Fastest information will be at the MXNA Weblog (the weblog about the 
aggregator):
http://weblogs.macromedia.com/mxnaweblog/

tx,
jd




-- 
John Dowdell . Macromedia Developer Support . San Francisco CA USA
Weblog: http://www.macromedia.com/go/blog_jd
Aggregator: http://www.macromedia.com/go/weblogs
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, 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/

<*> 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] Push/"AJAX" via a Loader (Re: Flex & external desktop application communication)

2005-07-07 Thread Eric Raymond
So a loader can be used to communicate with an HTTP Server in a push
model?!!!  Is this analagous to the way AJAX web sites push content to
the client?

This would be an amazing hack!

If so, I'm very curious as to how well this works in practice.  (I
suspect the devil is in the details here.)

The loader documentation says the the url needs to be a swf or a jpg.
 Can you send down arbitrary data?

Is it possible to access the content of a loader as bytes?

Is it possible to access the content of a loader incrementally (up to
bytesLoaded bytes)?


Can you detect errors?  Can you re-establish communication when there
is an error?  (Do you just dynamically create a new, invisble
loader?).

Do you need to destroy the loader after a period of time to release
the bytes it accumulates?

The benefit of this over XMLSocket would be:

- Avoids issues of (client) firewalls with the use of an arbitrary
port/protocol for XMLSocket

- Simply need to setup a servlet to handle a URL rather than configure
a service to handle commmunication over a port.

- SSL support should come for free


--- In flexcoders@yahoogroups.com, "Theodore E Patrick" <[EMAIL PROTECTED]>
wrote:
> FlexUI <> mx:Loader <> Local HTTP Server <> Local System




--
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/

<*> 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] XML Socket Doesn't Work

2005-07-07 Thread Theodore E Patrick
Chris,

You need to use Delagate with XMLSocket callbacks.

This should work:

import mx.utils.Delegate;

sock.onClose = Delegate.create( this, sockOnClose );

sock.onConnect = Delegate.create( this, sockOnConnect );

sock.onData = Delegate.create( this, sockOnData );

Cheers,

Ted ;)



> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of cshafer213
> Sent: Thursday, July 07, 2005 2:12 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] XML Socket Doesn't Work
> 
> Can Anyone Tell Me what is wrong with the following code to connect to
> an XML socket server? The stat Lable should display either "status =
> Connected" or "status = Error" when the button is clicked, and nothing
> is happening.
> 
> Thanks,
> 
> Chris Shafer, George Weiss Associates
> 
> 
> http://www.macromedia.com/2003/mxml";>
> 
> 
> 
>   
>   
>   
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
> 




--
Flexcoders 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/

<*> 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] MM weblogs moved

2005-07-07 Thread Dave Carabetta
On 7/7/05, John Dowdell <[EMAIL PROTECTED]> wrote:
> Dave Carabetta wrote:
> > Do you know when/if the /go/* feed URLs will be updated?
> 
> These are in the pipeline (gotta do it!), but the older machine was
> physically damaged, while its owners (Mike Chambers & Christian
> Cantrell) are at the FlashForward conference in New York. It will
> probably take a few days to resuscitate it and clean the transfer, but
> the goal is to transparently redirect old links and current RSS readers.
> 
> Fastest information will be at the MXNA Weblog (the weblog about the
> aggregator):
> http://weblogs.macromedia.com/mxnaweblog/
> 

Not a problem. Thanks for the update.

Regards,
Dave.


--
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/

<*> 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: HistoryManger state is undefined on loading

2005-07-07 Thread jacksodj
I personnaly have seen really flakey behavior from that history 
controller. I have posted before, but have not been able to see a 
good resolution
--- In flexcoders@yahoogroups.com, "rockmoyosa" <[EMAIL PROTECTED]> 
wrote:
> My case:
> 
> - saveState is executed 
> - On "Back" loadState is executed.
> 
> But.
> Than my state is "undefined"
> 
> 
> private var changed:Boolean;
>   
>   public function initHistory():Void {
>   mx.managers.HistoryManager.register(this);
>   storeInternalState();
>   }
>   
>   public function saveState():Object {
>   // called by HistoryManager, tells the component
>   // to create a "state" object and to return it\
>   var state = new Object();
>   state.model = Model.getInstance();
>   state.view = this._scope.m_detailview;
>   
>   mx.controls.Alert.show
(""+this._scope.m_detailview.visible);
>   Log.debug("hello"+state);
>   return state;
>   }
>   
>   public function loadState(state:Object):Void {
>   // called by HistoryManager, passes in a state
>   // object so the component can rebuild it's state
>   mx.controls.Alert.show("state: "+state.view);
>   restoreInternalState(state);
>   }
>   
>   public function savePresent():Void {
>   storeInternalState( );
>   }
> 
>   public function storeInternalState():Void {
>   mx.managers.HistoryManager.save();
>   }
>   
>   public function restoreInternalState(state:Object):Void {
>   Log.dump(state);
>   Log.debug
("state.view.visible: "+state.view.visible);
>   
>   if(state.view.visible == true && 
this._scope.m_detailview.visible ==
> false ||
>   state.view.visible == false 
&&
> this._scope.m_detailview.visible == true){
>   toggleView();
>   }
>   Model.getInstance().restoreInstance(state.model);
>   }




--
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/

<*> 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] How do I bound XML data into an array that is my dataprovider for a data grid

2005-07-07 Thread joe . g . james




Thanks that works great, but if  select
something from the combobox and then try to sort the column that the combobox
is in, it does not sort with the rest of the row.
How do I set that value?  Thanks




CONFIDENTIALITY STATEMENT - This message and any files or text attached
to it are intended only for the recipients named above, and contain information
that may be confidential or privileged.  If you are not an intended
recipient, you must not read, copy, use, or disclose this communication.
 Please also notify the sender by replying to this message, and then
delete all copies of it from your system.  Thank you.





"Abdul Qabiz"
<[EMAIL PROTECTED]> 
Sent by: flexcoders@yahoogroups.com
07/07/2005 12:54 AM



Please respond to
flexcoders@yahoogroups.com





To



cc



Subject
RE: [flexcoders] How do I
bound XML data into an array that is my data provider for a data grid








Hi,

Look at the following code:



##employeesModelTest.mxml##


initialize="onAppInit()">
    
        import ComboBoxCellRenderer;
        
        function onAppInit()
        {
            ComboBoxCellRenderer.dataProvider
= ["San Francisco",
"Bangalore","Newton"];
         }
        
    
    
    
    
        
            
                
                
columnName="name">
                
cellRenderer="{ComboBoxCellRenderer}">
            
        
    
    




##ComboBoxCellRenderer.mxml##


    
        public static var dataProvider:Array;
        private var listOwner:Object;
        
                
//TODO: all required code to make this renderer complete.
        
        
    
    
dataProvider="{ComboBoxCellRenderer.dataProvider}" change=""/>




##employees.xml##

                

                
                 1
                
                 Matt
                
                 San
Francisco
                
 
                

                
                 2
                
                 Gary
                
                 San
Francisco
                
 



That is how you bind a Model with DataGrid. As far as ComboBox's
dataProvider is concerned, you can have static property in CellRenderer
class. Set the static property from the application.

-abdul
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joe
Sent: Thursday, July 07, 2005 3:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I bound XML data into an array that is my
data provider for a data grid

I am using an array to provide a data provider for my data grid that 
has a cellrendering colum that produces a combobox.
With in the array is a New Array for the combo box data provider. It is

OK that the values for the combo box are hard coded, but I twant he 
rest of the values tin the data grid to come from a Model which source

is a XML file. How can I bound the values from the XML source to my 
array.




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



 




--
Flexcoders 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/

<*> 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 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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Flex over dialup?

2005-07-07 Thread Bob Remeika
Jesse,

I appreciate the time for the thorough response.  This is something that
is useful knowledge not only to us, but to the community as a whole.  I
will try to keep everybody updated as we discover tips and tricks that
will help other developers.

Thanks,

Bob Remeika


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of JesterXL
Sent: Tuesday, July 05, 2005 11:10 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex over dialup?

The app's performance is not directly proportional to download speed. 
Download time is indirectly.  "Slower modem, more time to download the
app; 
modems & broadband have the exact same application running speed."

I'm using a Label, DataGrid, HSlider, Button, ComboBox, CheckBox, Panel,

TitleWindow, VBox, and HBox, along with some small sized codebase, and
the 
resulting SWF is 188k.

After opening up in Flash's bandwidth profiler (running at 56k
[4.7kb/sec]), 
it takes:
- 3 seconds to show the preloader
- 45 seconds to fully download

On slow DSL (32.6kb/sec), it takes:
- 2 seconds to show the preloader
- 5 seconds to fully download

The majority of the filesize comes from components, in particular the
image 
assets.  Additionally, there is a large upfront cost of utilizing the
Flex 
component framework; so dropping a Panel in an application incurs a
large 
charge, but each additional component isn't so much because they all
utilize 
the same framework, so the more components you add, the less impact they

have on final filesize.

Therefore, the number of components isn't a large factor, but rather the

type... which really doesn't matter.

There are a few ways to lessen the impact, such as using
SharedLibraries, 
but this really only applies to an Enterprise Class level application; 
you'll be hard pressed to get passed the 53k crusp:

(old)
http://www.macromedia.com/devnet/mx/flash/articles/buildtest_comp_02.htm
l

Building web applications for the bandwidth challenged market is tough;
.NET 
& JVM are out of the question since they take lik 3+ hours to download
where 
as Flash Player takes about 10 minutes over a modem, and then your app
takes 
45 seconds.

It's tough making the business call... taking a Utilitarian approach, if
the 
web application you provided has adequette functionality, then it's
worth 
the 45 second hit, which caches afterwards anyway.  Portraying that
value 
beforehand to get them to "think" it's worth it is tough, I'm sure.

Sorry I can't offer more; I usually develop for intranets or desktops,
so 
it's either Broadband or already installed for me Good luck!

- Original Message - 
From: "Bob Remeika" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, July 05, 2005 1:29 PM
Subject: [flexcoders] Flex over dialup?


Does anybody here have experience with using Flex applications over
dialup?  I would assume that the initial load time of the application
would be the killer, but subsequent requests would be more user
friendly and bandwidth friendly than a standard web page.  I am
interested to see if anybody has had the chance to see what the user
experience is like on 56K.

In aaddition to this post... does anybody know what the average file
size of a flex swf is? If most of the content (i.e. jpgs, videos, and
other swfs) are loaded dynmically at run-time, what is the expected
file size of a standard shopping cart?

Any information would be helpful... we would like to use flex, but we
are worried that some users will have a hard time using our flex
application over a slow connection.

Thank you,
Bob Remeika




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








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



 




--
Flexcoders 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/

<*> 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] Macromedia Flex contracts a plenty!

2005-07-07 Thread Jeff Steiner










Sorry – site maintenance this
morning.

 

Back up and running.

 

And – there is another contract out
there.

 



Jeff

Founder

Flex Authority

http://www.flexauthority.com

 

We are actively seeking contributors for
the site.  Have a sample that you want to share with the world?  Send
it to us!











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien
Sent: Thursday, July 07, 2005 6:23
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Macromedia Flex contracts a plenty!



 

404 for http://www.flexauthority.com

from 2 different locations in North America





On 7/7/05, Jeff
Steiner <[EMAIL PROTECTED]>
wrote:



I thought that I would bring up the Flex Jobs topic in the
forums of Flex Authority.  I am seeing probably 4-5 Flex jobs a week on
the major job search engines!

 

If you are interested, take a peek at http://www.flexauthority.com/forumThreadList.cfm?topicID=12.

 



Jeff

Founder

Flex Authority

http://www.flexauthority.com

 

We are actively seeking contributors for the site.  Have
a sample that you want to share with the world?  Send it to us!

















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







SPONSORED
LINKS 




 
  
  Computer software testing 
  
  
  Macromedia flex 
  
  
  Development 
  
 
 
  
  Software developer 
  
  
   
  
  
   
  
 


 







YAHOO!
GROUPS LINKS


 


  Visit your group
 "flexcoders"
 on the web.
  
  To unsubscribe
 from this group, send an email to:
   [EMAIL PROTECTED]
  
  Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service.


 












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









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



  
  
SPONSORED LINKS
  
  
  

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   






  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] How do I bound XML data into an array that is my dataprovider for a data grid

2005-07-07 Thread Tracy Spratt










Are you using editField() to update the
dataProvider in the “//TODO:” section?

Tracy

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, July 07, 2005
12:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How do I
bound XML data into an array that is my dataprovider for a data grid



 


Thanks that works great, but if  select something
from the combobox and then try to sort the column that the combobox is in, it
does not sort with the rest of the row. 
How
do I set that value?  Thanks 




CONFIDENTIALITY STATEMENT - This message and any files or text attached to it
are intended only for the recipients named above, and contain information that
may be confidential or privileged.  If you are not an intended recipient,
you must not read, copy, use, or disclose this communication.  Please also
notify the sender by replying to this message, and then delete all copies of it
from your system.  Thank you. 




 
  
  "Abdul Qabiz"
  <[EMAIL PROTECTED]> 
  Sent
  by: flexcoders@yahoogroups.com
  
  07/07/2005 12:54 AM 
  
   

Please
respond to
flexcoders@yahoogroups.com

   
  
  
  
  
  
   

To





   
   

cc


 

   
   

Subject


RE: [flexcoders] How do I bound XML data into
an array that is my data provider for a data grid

   
  
   
  
   

 


 

   
  
  
  
 





Hi,

Look at the following code:



##employeesModelTest.mxml##


initialize="onAppInit()">
   
       import
ComboBoxCellRenderer;
       
       function onAppInit()
       {
         
 ComboBoxCellRenderer.dataProvider = ["San Francisco",
"Bangalore","Newton"];
        }
       
   
   
   
   
       
         
 
             
 
             
 
columnName="name">
             
 
cellRenderer="{ComboBoxCellRenderer}">
         
 
       
   
   




##ComboBoxCellRenderer.mxml##


   
       public static var
dataProvider:Array;
       private var
listOwner:Object;
       
             
  //TODO: all required code to make this renderer complete.
       
       
   
   
dataProvider="{ComboBoxCellRenderer.dataProvider}"
change=""/>




##employees.xml##

             
  
             
                 
 1
             
                 
 Matt
             
                 
 San Francisco
             
   
             
  
             
                 
 2
             
                 
 Gary
             
                 
 San Francisco
             
   



That is how you bind a Model with DataGrid. As far
as ComboBox's
dataProvider is concerned, you can have static
property in CellRenderer
class. Set the static property from the
application.

-abdul
-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Joe
Sent: Thursday, July 07, 2005 3:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I bound XML data into
an array that is my
data provider for a data grid

I am using an array to provide a data provider for
my data grid that 
has a cellrendering colum that produces a
combobox.
With in the array is a New Array for the combo box
data provider. It is 
OK that the values for the combo box are hard
coded, but I twant he 
rest of the values tin the data grid to come from
a Model which source 
is a XML file. How can I bound the values from the
XML source to my 
array.




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

Yahoo! Groups Links








--
Flexcoders 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/

<*> 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Control Bar Background Color

2005-07-07 Thread jwc_wensan
Good Afternoon:

In my code I have changed the "headerColor" of the Panel and want
to change the ControlBar background color to match.

I changed the background color to match, but it did not work.

I then read this from livedocs:


The  container inherits all the properties of its 
parent classes.  Note: Although the ControlBar container inherits 
the borderStyle, backgroundColor, and backgroundImage styles from 
the HBox container, you cannot set them. 
*

Does this mean we are stuck with the Flex default background color
for the ControlBar?

Is there a workaround?

Thanks,

Jack




--
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/

<*> 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] Push/"AJAX" via a Loader (Re: Flex & external desktop application communication)

2005-07-07 Thread Theodore E Patrick
> So a loader can be used to communicate with an HTTP Server in a push
> model?!!!  Is this analagous to the way AJAX web sites push content to
> the client?

Loader is for SWF/Image but there are ton of various ways to exchange data
in Flash. The Flash Player has supported data exchange since version 4 in
various forms. With the current 7 Player you have many options to exchange
data:

ActionScript Classes:

LoadVars
XML
MovieClip.loadVariables
XMLSocket

MXML (built atop the above...)

mx:Loader
mx:Image
mx:HTTPService
mx:WebService
**Others**

The usage varies in form and function but each has strengths and weaknesses.


In regards to a push model there are 2 primary ways to accomplish this:

HTTP Poll with delayed response on server data. The AIM/ICQ Central client
used this model with a custom HTTP server. The HTTP poll request would hang
until the server had data to push, then the result would return.

XMLSocket with true push == Ideal!

I prefer the later because it works, is scalable, and you can shape the
server side API as needed. There is a limited amount you can do with HTTP as
each call is round-trip. With XMLSocket each pipe can send and receive data
independently. The naming of XMLSocket is misleading, it should be
NullSocket as the only required element is null byte delimiters in the
message transport. If you use XMLSocket.onData callback the use of XML is
optional and you can pass plain ASCII messages. 

Most of my server protocols look like this:

Server > Client: SYNC 0 1 2

Client > Server: SYNC 1 55 8787 

Client > Server: SYNC 1 52 8223 

Server > Client: SYNC 0 1 4 

Server > Client: SYNC 0 2 2 

Server > Client: SYNC 0 1 3

I typically create an array using String.split on the value received and
apply it to a function for handling the particular message. In testing this
is about 20X faster than using XML as a payload. Parsing XML on the server
and client are a huge waste when you typically can make due with far less.
Parsing delimited text with String.split is 10x faster than XML parsing in
Flash and you do not bloat memory in the player. Using String.split you can
still use XML with inner message blocks using 'escape' and 'unescape' on
send and receive or using an ASCII character that is illegal in XML like |
or others.

I have written over 20 XMLSocket servers with Python/Java and in every case,
using delimited text was dramatically faster than using XML. For example, I
have a simple echo client/server in Flash that can round-trip exchange 1000
messages in 1.3 seconds. You can't do that with HTTP, apache and IIS would
explode.

In the cases when I used mx:Loader, I was importing SWF files. With the
Kiosk app, we were converting media formats. Flex/Flash would call a URL on
the local server, the local server would fetch a media resource from the
web, convert it to SWF, then return the data to the original loader request.
This was essentially a proxy for media conversion of
GIF/JPG/PNG/WMA/AnimatedGif.

> If so, I'm very curious as to how well this works in practice.  (I
> suspect the devil is in the details here.)
> 
> The loader documentation says the the url needs to be a swf or a jpg.
>  Can you send down arbitrary data?

If you are using data, it is best to use mx:HTTPService or just use
XML/LoadVars, this will allow you to exchange data cleanly.
 
> Is it possible to access the content of a loader as bytes?

No. There is no support for ByteArray to enable reading binary data. Central
supports this and I could see some amazing uses for this in the regular
Flash Player.
 
> Is it possible to access the content of a loader incrementally (up to
> bytesLoaded bytes)?

No. Loader is really a MovieClip with a light API atop. By default, Loader
will stream data into the MovieClip. If you are using SWF, it will do its
default file streaming.

> Can you detect errors?  Can you re-establish communication when there
> is an error?  (Do you just dynamically create a new, invisble
> loader?).

Yes although it is a kluge. Determining bytesloaded and detecting load
failure is tricky. Flex makes it easier but nothing is perfect. I even think
the docs mention a shortcoming of this, not sure.
 
> Do you need to destroy the loader after a period of time to release
> the bytes it accumulates?

No just calling a different URL handles this. This is a base feature of
MovieClip in the Flash Player.
 
> The benefit of this over XMLSocket would be:
> 
> - Avoids issues of (client) firewalls with the use of an arbitrary
> port/protocol for XMLSocket

This is not true, you can run XMLSocket over port 80! Support for low ports
was enabled in 7,0,14,0 within crossdomain.xml files. XMLSocket works
directly through firewalls without issue. In most cases the client side
(behind the firewall) is initiating the connection so there is no issue at
all. If you use port 80, this gets even cleaner.

> - Simply need to setup a servlet to handle a URL rather than configure
> a service to handle commmunication over a po

[flexcoders] CheckCellRenderer

2005-07-07 Thread terry_hrtn
I'm using the CheckCellRenderer from the samples on a datagrid that is 
inside of a title window.  The problem I'm having is when I check the 
top item the item in the grid that is not being displayed at the moment 
is also checked.  Any ideas?




--
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/

<*> 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] getDropParent() when the branch is closed.

2005-07-07 Thread Jeff Krueger










All,

 

    I am trying to drag an item from a grid and drop
it on a tree control.  I have found that the getDropParent seems to be the best
bet when trying to find where to add a new child node to.  The only problem I
am having is if the user chooses to drop the item on a branch that is currently
closed, the getDropParent() call returns one level higher.  If the branch is
set to open even with no children nodes then everything works.  I can kind of
understand why it works like this, but is there a way to work around this.  Below
is my dragDrop method, pretty much what everyone else has posted.  I could
expand all branches when the drag begins but that could be ugly.

 

 

public function
doDragDrop(event:Object)

    {   

doDragExit( event);

    var
dragItems = event.dragSource.dataForFormat( "items" );

    var targetForDrop =
tree.getDropParent();

    for ( var i = 0; i


    {

        targetForDrop.addTreeNode("test",dragItems[i]);

    tree.setIsOpen(targetForDrop,
true);

    tree.selectItem(targetForDrop,
true);

}

}

 

Thanks

 

 

 

Jeff 

 






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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Flex over dialup?

2005-07-07 Thread JesterXL
Anything to help a "fish"; we studied your company's book back in college.

- Original Message - 
From: "Bob Remeika" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, July 07, 2005 2:28 PM
Subject: RE: [flexcoders] Flex over dialup?


Jesse,

I appreciate the time for the thorough response.  This is something that
is useful knowledge not only to us, but to the community as a whole.  I
will try to keep everybody updated as we discover tips and tricks that
will help other developers.

Thanks,

Bob Remeika


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of JesterXL
Sent: Tuesday, July 05, 2005 11:10 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex over dialup?

The app's performance is not directly proportional to download speed. 
Download time is indirectly.  "Slower modem, more time to download the
app; 
modems & broadband have the exact same application running speed."

I'm using a Label, DataGrid, HSlider, Button, ComboBox, CheckBox, Panel,

TitleWindow, VBox, and HBox, along with some small sized codebase, and
the 
resulting SWF is 188k.

After opening up in Flash's bandwidth profiler (running at 56k
[4.7kb/sec]), 
it takes:
- 3 seconds to show the preloader
- 45 seconds to fully download

On slow DSL (32.6kb/sec), it takes:
- 2 seconds to show the preloader
- 5 seconds to fully download

The majority of the filesize comes from components, in particular the
image 
assets.  Additionally, there is a large upfront cost of utilizing the
Flex 
component framework; so dropping a Panel in an application incurs a
large 
charge, but each additional component isn't so much because they all
utilize 
the same framework, so the more components you add, the less impact they

have on final filesize.

Therefore, the number of components isn't a large factor, but rather the

type... which really doesn't matter.

There are a few ways to lessen the impact, such as using
SharedLibraries, 
but this really only applies to an Enterprise Class level application; 
you'll be hard pressed to get passed the 53k crusp:

(old)
http://www.macromedia.com/devnet/mx/flash/articles/buildtest_comp_02.htm
l

Building web applications for the bandwidth challenged market is tough;
.NET 
& JVM are out of the question since they take lik 3+ hours to download
where 
as Flash Player takes about 10 minutes over a modem, and then your app
takes 
45 seconds.

It's tough making the business call... taking a Utilitarian approach, if
the 
web application you provided has adequette functionality, then it's
worth 
the 45 second hit, which caches afterwards anyway.  Portraying that
value 
beforehand to get them to "think" it's worth it is tough, I'm sure.

Sorry I can't offer more; I usually develop for intranets or desktops,
so 
it's either Broadband or already installed for me Good luck!

- Original Message - 
From: "Bob Remeika" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, July 05, 2005 1:29 PM
Subject: [flexcoders] Flex over dialup?


Does anybody here have experience with using Flex applications over
dialup?  I would assume that the initial load time of the application
would be the killer, but subsequent requests would be more user
friendly and bandwidth friendly than a standard web page.  I am
interested to see if anybody has had the chance to see what the user
experience is like on 56K.

In aaddition to this post... does anybody know what the average file
size of a flex swf is? If most of the content (i.e. jpgs, videos, and
other swfs) are loaded dynmically at run-time, what is the expected
file size of a standard shopping cart?

Any information would be helpful... we would like to use flex, but we
are worried that some users will have a hard time using our flex
application over a slow connection.

Thank you,
Bob Remeika




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








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



 




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



 




--
Flexcoders 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/

<*> 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] Is antialiasing possible in flex?

2005-07-07 Thread Sreejith Unnikrishnan
Title: Message





Nithya, you dont seem to take the FAQs seriously :-(
 
Please 
take this as a friendly advice. Take a minute to search the 
mail-archive.
Anyways, for now, check out
http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=flexcoders_yahoogroups_com&restrict=&exclude=&words=aliasing+
 
Sree

  
  -Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
  Nithya RSent: Thursday, July 07, 2005 1:53 PMTo: 
  flexcodersSubject: [flexcoders] Is antialiasing possible in 
  flex?
  pls let know if antialiasing is possible with flex/
   
  thanks
  nithya
  Send instant messages to your online friends http://uk.messenger.yahoo.com 
  --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] data binding remoting data . . .

2005-07-07 Thread chris.alvarado
good afternoon everyone,

so im finally diving into Flex and im really liking it so far.

ive found some pretty good examples of working with data from remoting
(specifically Coldfusion). however i havent found any examples of how
to bind data to something like a combobox.

in Flash with remoting what i would do is dump the resultset from CF
into a dataset component then bind that component to the combobox and
set the combobox's labelField property to whatever the name of the
field from the resultset i wanted to display as the label. then, since
i always bound the selectedIndex property i could just reference the
selected item as dataset.items[dataset.selectedIndex].fieldName to get
whatever data i wanted.

however im not able to replicate this in Flex. how is everyone else
handling databinding the data returned via remoting?

thanks everyone!

-- 
-chris.alvarado
[application developer]


--
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/

<*> 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] Reorder tree via dragging

2005-07-07 Thread Sean McKibben
So, what I've ended up using is the dataForFormat("source") when the  
dragSource is a tree, which gets a reference to the tree. Once you  
have that, the actual items being dragged will be the selectedNode or  
the selectedNodes, depending on whether or not the tree allows  
multiple selection.

So if you do
(selectedNode == event.target.getDropParent().getTreeNodeAt  
(event.target.getDropLocation())
it will return true if they are, in fact, the same node.

Is anyone aware of a published list of what the various dataForFormat  
strings are in the components that ship with flex?

Thanks,
Sean


On Jul 7, 2005, at 12:13 PM, Matthew Shirey wrote:

> As I am currently working with this, I can say that dataForFormat 
> ("source") will give you a reference to the source object of the  
> drag drop operation.  I am not sure about the "items" one though.   
> I've read mixed documentation, some say its "treeItems".  Any rate,  
> there's a formats array in the event object that you can itterate  
> through and see all of the available formats if needed.
>
> M.
>
> On 7/6/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> I think dataForFormat("items") or dataForFormat("source"), not sure  
> which is valid for Tree, might give you the original items as  
> opposed to the copies.
>
>
> Matt
>
>
> From: flexcoders@yahoogroups.com  
> [mailto:[EMAIL PROTECTED] On Behalf Of Sean McKibben
> Sent: Wednesday, July 06, 2005 1:17 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Reorder tree via dragging
>
>
> So I'm trying to make a tree which can reorder its nodes by dragging
> them. One of the things I wanted to do is prevent a parent item from
> being dragged on to any of its children, and to show that during the
> dragOver event.
>
> In order to calculate whether the source is being dragged on to any
> of its offspring, I've been comparing the
> event.dragSource.dataForFormat("treeItems") first to
> firstValue=event.target.getDropParent().getTreeNodeAt
> (event.target.getDropLocation()) then recursively to the parents of
> firstValue.
>
> This apparently doesn't work because dataForFormat seems to hand me a
> copy of the items being dragged instead of an actual reference, so
> the two values are never equal. I did note that the items that
> dataForFormat give me, do contain references to the real parents,
> data and other objects, it is just that the items themselves are
> copies for some reason.
>
> What I ended up doing is something like the following:
>
> if(checkParentDrop(myowncustom.TreeUtils.findDataItemNode
> (view.TemplateAssemblyTree, dragItems[i].getData())
> , event.target.getDropParent().getTreeNodeAt
> (event.target.getDropLocation(
>  action = DragManager.NONE;
>
> private function checkParentDrop(source, node):Boolean
>  {
>  if(source == node)
>  return true;
>  if(node.getParent()!=null)
>  return checkParentDrop(source, node.getParent());
>  else
>  return false;
>  }
>
>
> public static function findDataItemNode(tree:mx.controls.Tree,
> o:Object):TreeNode
> ... recursively check the entire tree for the same getData()
> reference ...
>
> So basically instead of comparing items from
> event.dragSource.dataForFormat("treeItems"), i have to recursively
> look them up by the reference they contain to their getData()
> information, to get the actual reference to the TreeNode which I then
> compare to the drop target and its ancestors for referential equality.
>
> This is horribly ugly, but it works. Is there a better way that
> people have stumbled across to validate tree->self drags? I wish that
> dataForFormat handed over references instead of copies!
>
> (sorry if this was discussed before; I'm apparently bad at finding
> previously discussed topics in this list!)
>
> Sean
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders% 
> 40yahoogroups.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
>
>  Visit your group "flexcoders" on the web.
>
>  To unsubscribe from this group, send an email to:
>   [EMAIL PROTECTED]
>
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
>
>
> --
> 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
>
>  Visit your group "flexcoders" on the web.
>
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www

[flexcoders] Re: Control Bar Background Color

2005-07-07 Thread Andrew Spaulding
I assume you used the headerColors attribute on the panel to change
the header colours. The Panel component also has a footerColors style.
The footerColors style is an array of two colours used to the draw
footer background (the area for the ControlBar).

use it like this:





You can also use the footer-colours and header-colors tag in your css
style declarations.

Cheers,

Andrew Spaulding
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, "jwc_wensan" <[EMAIL PROTECTED]> wrote:
> Good Afternoon:
> 
> In my code I have changed the "headerColor" of the Panel and want
> to change the ControlBar background color to match.
> 
> I changed the background color to match, but it did not work.
> 
> I then read this from livedocs:
> 
> 
> The  container inherits all the properties of its 
> parent classes.  Note: Although the ControlBar container inherits 
> the borderStyle, backgroundColor, and backgroundImage styles from 
> the HBox container, you cannot set them. 
> *
> 
> Does this mean we are stuck with the Flex default background color
> for the ControlBar?
> 
> Is there a workaround?
> 
> Thanks,
> 
> Jack




--
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/

<*> 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] Load a large swf (13MB)

2005-07-07 Thread John Dowdell
Clint Modien wrote:
> Can I start playing the movie before it's loaded?

The question is actually harder to answer than it might seem, because 
SWF has added more capabilities and content types since it started.

Here's a good intro to the basic streaming nature of a SWF file, written 
towards Flash 4/5 days:
http://www.macromedia.com/support/flash/how/subjects/Stream1/

For basic SWF a movie will start to display as soon as the first frame 
is loaded... the second frame will display immediately if it has no new 
media, or (if the second frame has new media) after the second frame's 
media has downloaded. Generally, Flash is set up to start playing "in a 
Flash".

It gets harder if you're using elements which can be called at any time 
during play (attachMovie, attachSound, etc) because these elements then 
need to be front-loaded, and need to be completely downloaded before the 
*chance* that they might be called in the first frame. Components 
generally fall into this class as well.

The video features add another complication to "is it streaming"... we 
can set up video to download entirely before playing, to stream from a 
server, more:
http://www.macromedia.com/devnet/mx/flash/articles/flv_download.html

One useful strategy for many cases where a 13-megabyte SWF is considered 
would be to break the presentation into modules which can then be called 
on demand. If everything was in a single 13M SWF then you might have to 
download the bulk of it before seeing anything interesting (depending on 
how it was constructed), but if there's 2M for a map module, another 4M 
for a voice-over and so on, then you can load these assets as they're 
requested and speed the immediate startup of the piece for your audience.


Easier question to ask than to answer, sorry, but does the above provide 
a path for what you wish to achieve...?

jd





-- 
John Dowdell . Macromedia Developer Support . San Francisco CA USA
Weblog: http://www.macromedia.com/go/blog_jd
Aggregator: http://www.macromedia.com/go/weblogs
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, 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/

<*> 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] Load a large swf (13MB)

2005-07-07 Thread Clint Modien



found the answer... has to be an flv... the 13MB swf would have to completely download before it would start playing...

http://www.macromedia.com/devnet/mx/flash/articles/video_primer_03.html


On 7/7/05, John Dowdell <[EMAIL PROTECTED]> wrote:
Clint Modien wrote:> Can I start playing the movie before it's loaded?The question is actually harder to answer than it might seem, becauseSWF has added more capabilities and content types since it started.
Here's a good intro to the basic streaming nature of a SWF file, writtentowards Flash 4/5 days:http://www.macromedia.com/support/flash/how/subjects/Stream1/
For basic SWF a movie will start to display as soon as the first frameis loaded... the second frame will display immediately if it has no newmedia, or (if the second frame has new media) after the second frame's
media has downloaded. Generally, Flash is set up to start playing "in aFlash".It gets harder if you're using elements which can be called at any timeduring play (attachMovie, attachSound, etc) because these elements then
need to be front-loaded, and need to be completely downloaded before the*chance* that they might be called in the first frame. Componentsgenerally fall into this class as well.The video features add another complication to "is it streaming"... we
can set up video to download entirely before playing, to stream from aserver, more:http://www.macromedia.com/devnet/mx/flash/articles/flv_download.html
One useful strategy for many cases where a 13-megabyte SWF is consideredwould be to break the presentation into modules which can then be calledon demand. If everything was in a single 13M SWF then you might have to
download the bulk of it before seeing anything interesting (depending onhow it was constructed), but if there's 2M for a map module, another 4Mfor a voice-over and so on, then you can load these assets as they're
requested and speed the immediate startup of the piece for your audience.Easier question to ask than to answer, sorry, but does the above providea path for what you wish to achieve...?jd
--John Dowdell . Macromedia Developer Support . San Francisco CA USAWeblog: http://www.macromedia.com/go/blog_jdAggregator: 
http://www.macromedia.com/go/weblogsTechnotes: http://www.macromedia.com/support/Spam killed my private email -- public record is best, thanks.--
Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links<*> To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
<*> 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 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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Added image/s in TileList is/are not shown

2005-07-07 Thread P Trisnadi
Thanks for your interest and notice, Scott. To recap:
I have a TileList that shows images and their names,
read from an XML file and rendered by a CellRenderer.
When the [Add Photo] button is clicked, a createPopUp
is called. This PopUp also has a TileList that reads
another XML file with the same structure (but
different data.) Images can be selected, and when the
[Add] button is clicked selected images should be
added to the main TileList's model. However, something
is added to the TileList, but it only shows blank
tiles/undefined...

Here is the code again...

-- XML file, both look similar --

  
   image01.jpg
   image02.jpg
   image03.jpg
  

-- TileList that I want to add images in
--


[flexcoders] Re: XML Socket Doesn't Work

2005-07-07 Thread cshafer213
--- In flexcoders@yahoogroups.com, "Theodore E Patrick" <[EMAIL PROTECTED]> 
wrote:
Thanks for responding and putting me on the right track. I changed my
code to add the Delegate as best I could but I still can't get it working:


http://www.macromedia.com/2003/mxml";>



  
  
  



> Chris,
> 
> You need to use Delagate with XMLSocket callbacks.
> 
> This should work:
> 
> import mx.utils.Delegate;
> 
> sock.onClose = Delegate.create( this, sockOnClose );
> 
> sock.onConnect = Delegate.create( this, sockOnConnect );
>   
> sock.onData = Delegate.create( this, sockOnData );
> 
> Cheers,
> 
> Ted ;)
> 
> 
> 
> > -Original Message-
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of cshafer213
> > Sent: Thursday, July 07, 2005 2:12 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] XML Socket Doesn't Work
> > 
> > Can Anyone Tell Me what is wrong with the following code to connect to
> > an XML socket server? The stat Lable should display either "status =
> > Connected" or "status = Error" when the button is clicked, and nothing
> > is happening.
> > 
> > Thanks,
> > 
> > Chris Shafer, George Weiss Associates
> > 
> > 
> > http://www.macromedia.com/2003/mxml";>
> > 
> > 
> > 
> >   
> >   
> >   
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> > 
> > 
> > 
> >




--
Flexcoders 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/

<*> 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: using Repeater

2005-07-07 Thread Rajesh Jayabalan
Thanx a lot
--- In flexcoders@yahoogroups.com, Clint Modien <[EMAIL PROTECTED]> wrote:
> very nice and LARGE section in the docs... (thank you flex doc team)
> 
>
http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=0419.htm
> 
> p.s. rtfm
> 
> 
> 
> On 7/7/05, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> > 
> > Hi Rajesh,
> > 
> > id should be string following rules for a variable name(should not
start
> > with numbers, should not contain some special chars except $ etc). You
> > can not pass a binding expression there.
> > 
> > Why do you want to assign a dynamic id? Since you are using
repeater to
> > generate ViewStack, you know the order of ViewStacks and you can
always
> > refer by their index?
> > 
> > 
> > -abdul
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of Rajesh Jayabalan
> > Sent: Thursday, July 07, 2005 4:12 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] using Repeater
> > 
> > Hi,
> > 
> > when I try to use the value from repeator for a viewstack id I get a
> > 
> > "id '{rp.currentItem.mrcName}' is not a valid identifier" error.
> > 
> > I am trying to create viewstack with dynamic ids and pass the id to a
> > function. Here is my code.
> > 
> > Rajesh J
> > 
> > 
> > 
> > 
> > 
> >  > dataProvider="{getMRC.result.mrcategories.mrcategory}">
> > 
> >  > creationComplete="getItems(event.target.getRepeaterItem().mrcid)"
> > width="100%" height="100%">
> > 
> >  > width="100%" height="100%">
> > 
> >  > 
> > label="Product Catalog"
> > 
> > dataObject="{getCatItems.result.catalog.product}"
> > 
> > change="selectedItem=event.target.selectedItem"/>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  > mouseDown="changeView('thumb',event.target.getRepeaterItem().mrcName)"
> > 
> > mouseOver="event.target.source=thumbRoll"
> > mouseOut="event.target.source=currentView=='thumb'?thumbOn:thumbOff"/>
> > 
> >  > mouseDown="changeView('grid',event.target.getRepeaterItem().mrcName)"
> > 
> > mouseOver="event.target.source=listRoll"
> > mouseOut="event.target.source=currentView=='grid'?listOn:listOff"/>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> > 
> > 
> >




--
Flexcoders 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/

<*> 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] data binding remoting data . . .

2005-07-07 Thread Tarik Ahmed
Hi Chris. It sounds like you mostly got this working; are you saying 
you're getting stuck on selectedIndex part of it?

But in general ya... I would an mx:RemoteObject, with a method where 
upon completion have a result="resultHandler(event.result)" that assigns 
the resulting data to a local array.

And then:
   

Type deal. If I need the comboBox to have it's selectedIndex then  to be 
set, then I handle that in the resultHandler() (to use the above example).

This might be of help:
http://www.cflex.net/showfiledetails.cfm?ObjectID=111



chris.alvarado wrote:

>good afternoon everyone,
>
>so im finally diving into Flex and im really liking it so far.
>
>ive found some pretty good examples of working with data from remoting
>(specifically Coldfusion). however i havent found any examples of how
>to bind data to something like a combobox.
>
>in Flash with remoting what i would do is dump the resultset from CF
>into a dataset component then bind that component to the combobox and
>set the combobox's labelField property to whatever the name of the
>field from the resultset i wanted to display as the label. then, since
>i always bound the selectedIndex property i could just reference the
>selected item as dataset.items[dataset.selectedIndex].fieldName to get
>whatever data i wanted.
>
>however im not able to replicate this in Flex. how is everyone else
>handling databinding the data returned via remoting?
>
>thanks everyone!
>
>  
>





--
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/

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

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




RE: [flexcoders] Re: XML Socket Doesn't Work

2005-07-07 Thread Theodore E Patrick
Ah, there are 2 errors is there, socket is a temporary variable within the
connect method and null is not a valid value for the server.

Think of the   block as a class (because it is at runtime). I
made this mistake first time round the MXML tree.



http://www.macromedia.com/2003/mxml";>


 
   
   
   


Cheers,

Ted ;)


> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of cshafer213
> Sent: Thursday, July 07, 2005 8:18 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: XML Socket Doesn't Work
> 
> --- In flexcoders@yahoogroups.com, "Theodore E Patrick" <[EMAIL PROTECTED]> 
> wrote:
> Thanks for responding and putting me on the right track. I changed my
> code to add the Delegate as best I could but I still can't get it working:
> 
> 
> http://www.macromedia.com/2003/mxml";>
> 
> 
> 
>   
>   
>   
> 
> 
> 
> > Chris,
> >
> > You need to use Delagate with XMLSocket callbacks.
> >
> > This should work:
> >
> > import mx.utils.Delegate;
> >
> > sock.onClose = Delegate.create( this, sockOnClose );
> >
> > sock.onConnect = Delegate.create( this, sockOnConnect );
> >
> > sock.onData = Delegate.create( this, sockOnData );
> >
> > Cheers,
> >
> > Ted ;)
> >
> >
> >
> > > -Original Message-
> > > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> > > Behalf Of cshafer213
> > > Sent: Thursday, July 07, 2005 2:12 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] XML Socket Doesn't Work
> > >
> > > Can Anyone Tell Me what is wrong with the following code to connect to
> > > an XML socket server? The stat Lable should display either "status =
> > > Connected" or "status = Error" when the button is clicked, and nothing
> > > is happening.
> > >
> > > Thanks,
> > >
> > > Chris Shafer, George Weiss Associates
> > >
> > > 
> > > http://www.macromedia.com/2003/mxml";>
> > > 
> > > 
> > > 
> > >   
> > >   
> > >textAlign="center" />
> > > 
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
> 




--
Flexcoders 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/

<*> 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 compile a transparent application

2005-07-07 Thread mohimbe77
--- In flexcoders@yahoogroups.com, "mohimbe77" <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I've been developing in Flex for about 6 months and need to be 
able to 
> compile an MXML application that ends up being transparent when it 
is 
> placed on an HTML page.
> 
> I know all about the 'wmode' attributes setting in the page 
> object/embed statement; I've done this with Flash SWF for years. 
Make 
> the background of the Flash app white, and set 'wmode' to 
transparent. 
> Well, I tried this in Flex without success.
> 
> Is there some kind of compile setting that will make this happen? 
Or 
> am I just SOL?
> 

> Thanks!

I did figure this out, and it's !

I just needed to set the Application backgroundColor to white, and 
the application backgroundAlpha to 0. Then my compiled SWF can be 
made transparent by using the 'wmode' object/embed attribute.






--
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/

<*> 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] using a repeater with large data sets

2005-07-07 Thread Andrew Spaulding
Hi all,

I posted this about an hour ago but it didnt appear to show up (sorry
if you have already received this)

I am using a repeater to show a list of search results. Each search
result is a container of sorts with a custom header, clicking on the
header open and closes the search result deatail (along with a few
extra bits and pieces of functionality).

I have found that the CF call takes merely seconds, yet rendering the
result components using the repeater takes quite some time when a
large result set is returned.

I was wondering what the performance benefits would be if I manually
created the search results using createChild etc, rather than the
repeater? If I am unable to speed things up my next step is to
implement paging.

Any thoughts?

Cheers,

Andrew Spaulding
www.flexdaddy.info




--
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/

<*> 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] Added image/s in TileList is/are not shown

2005-07-07 Thread P Trisnadi
Not sure why second message was also truncated. Let's
try this again...
--
Thanks for your interest and notice, Scott. To recap:
I have a TileList that shows images and their names,
read from an XML file and rendered by a CellRenderer.
When the [Add Photo] button is clicked, a createPopUp
is called. This PopUp also has a TileList that reads
another XML file with the same structure (but
different data.) Images can be selected, and when the
[Add] button is clicked selected images should be
added to the main TileList's model. However, something
is added to the TileList, but it only shows blank
tiles/undefined...

Here is the code again...

-- XML file, both look similar --

  
   image01.jpg
   image02.jpg
   image03.jpg
  

-- TileList that I want to add images in
--



...

 


-- TileList that I want to bring images from
--








-- CellRenderer --

http://www.macromedia.com/2003/mxml";
width="72" height="86" horizontalAlign="center"
verticalAlign="middle" horizontalGap="0"
verticalGap="0" borderStyle="none" hScrollPolicy="off"
vScrollPolicy="off">

var photoObj:Object;
function setValue(str:String,item:Object) {
if (item==undefined) {
visible=false;
return;
} else {
photoObj=item;
visible=true;
}
}






Any idea why it adds blank, undefined tile here?

TIA,
- ptrisnadi




Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.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/

<*> 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] using a repeater with large data sets

2005-07-07 Thread Andrew Spaulding
Hi all,

I am currently using a repeater to display a list of search results,
each of them being a container of sorts with a custom header with
extra controls. Click on the header open and closes the result, a long
with a few other bits and pieces. 

One thing I have found is that with a larger search result listing it
takes quite some time to render the results. 

If I was to manually create the search result children myself using
createChild etc (rather than using the repeater) what effects would
this have on my performance issues? I am not particularly interested
in paging result sets just yet, but this would be my next step if I am
unable to speed things up otherwise.

Any thoughts would be appreciated,

Cheers,

Andrew Spaulding
www.flexdaddy.info




--
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/

<*> 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] using a repeater with large data sets

2005-07-07 Thread Tracy Spratt
One possibility with the repeater is to set the number of items that are
rendered, then, instead of scrolling, use page-up, page-down buttons.  A
repeater with around a hundred moderately complex items is horribly
slow.  Show only 10, and recycleChildren and things improve
dramatically.  This is much simpler to impement that true server-based
data paging, though Matt C. has a good discussion of that.

A cellRenderer in a list is faster than the repeater, but with 100+
items still takes several seconds.

No matter how you do it, it is the rendering that takes the time.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andrew Spaulding
Sent: Thursday, July 07, 2005 7:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] using a repeater with large data sets

Hi all,

I am currently using a repeater to display a list of search results,
each of them being a container of sorts with a custom header with
extra controls. Click on the header open and closes the result, a long
with a few other bits and pieces. 

One thing I have found is that with a larger search result listing it
takes quite some time to render the results. 

If I was to manually create the search result children myself using
createChild etc (rather than using the repeater) what effects would
this have on my performance issues? I am not particularly interested
in paging result sets just yet, but this would be my next step if I am
unable to speed things up otherwise.

Any thoughts would be appreciated,

Cheers,

Andrew Spaulding
www.flexdaddy.info




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



 






--
Flexcoders 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/

<*> 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: using a repeater with large data sets

2005-07-07 Thread Andrew Spaulding
Good idea Trac!

I'll use the count and startingIndex properties to manage the paging
locally ;)

Kind regards,

Andrew Spaulding
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
> One possibility with the repeater is to set the number of items that are
> rendered, then, instead of scrolling, use page-up, page-down buttons.  A
> repeater with around a hundred moderately complex items is horribly
> slow.  Show only 10, and recycleChildren and things improve
> dramatically.  This is much simpler to impement that true server-based
> data paging, though Matt C. has a good discussion of that.
> 
> A cellRenderer in a list is faster than the repeater, but with 100+
> items still takes several seconds.
> 
> No matter how you do it, it is the rendering that takes the time.
> 
> Tracy
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Andrew Spaulding
> Sent: Thursday, July 07, 2005 7:36 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] using a repeater with large data sets
> 
> Hi all,
> 
> I am currently using a repeater to display a list of search results,
> each of them being a container of sorts with a custom header with
> extra controls. Click on the header open and closes the result, a long
> with a few other bits and pieces. 
> 
> One thing I have found is that with a larger search result listing it
> takes quite some time to render the results. 
> 
> If I was to manually create the search result children myself using
> createChild etc (rather than using the repeater) what effects would
> this have on my performance issues? I am not particularly interested
> in paging result sets just yet, but this would be my next step if I am
> unable to speed things up otherwise.
> 
> Any thoughts would be appreciated,
> 
> Cheers,
> 
> Andrew Spaulding
> www.flexdaddy.info
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links




--
Flexcoders 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/

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

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




Re: [flexcoders] Re: using a repeater with large data sets

2005-07-07 Thread Alex Cruikshank
Hi Andrew,
If you're using remoting, I'd make sure your performance problems
aren't with the serialization/deserialization of the results before
you invest much time in optimizing the display.  I've done some
research into this
(http://www.carbonfive.com/community/archives/2005/07/the_remoting_de.html)
and the performance of calls returning large lists can be quite poor
even when the app server call is snappy.  This is true even when the
results aren't displayed at all.

I recommend using a List, Horizontal List, or Tile list with a paging
data provider for anything that may have over 50 or so items.  Once
you get your data provider working, a repeater is surprisingly easy to
convert to a list.  You just need to extract the contents of the
repeater into a separate mxml (if they're not already), give the new
mxml a setValue() method, and set the cell renderer of the list to the
new mxml.

Hope this helps,
Alex


On 7/7/05, Andrew Spaulding <[EMAIL PROTECTED]> wrote:
>  Good idea Trac!
>  
>  I'll use the count and startingIndex properties to manage the paging
>  locally ;)
>  
>  Kind regards,
>  
>  Andrew Spaulding
>  www.flexdaddy.info
>  
>  
>  
>  --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>  > One possibility with the repeater is to set the number of items that are
>  > rendered, then, instead of scrolling, use page-up, page-down buttons.  A
>  > repeater with around a hundred moderately complex items is horribly
>  > slow.  Show only 10, and recycleChildren and things improve
>  > dramatically.  This is much simpler to impement that true server-based
>  > data paging, though Matt C. has a good discussion of that.
>  > 
>  > A cellRenderer in a list is faster than the repeater, but with 100+
>  > items still takes several seconds.
>  > 
>  > No matter how you do it, it is the rendering that takes the time.
>  > 
>  > Tracy
>  > 
>  > -Original Message-
>  > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
>  > Behalf Of Andrew Spaulding
>  > Sent: Thursday, July 07, 2005 7:36 PM
>  > To: flexcoders@yahoogroups.com
>  > Subject: [flexcoders] using a repeater with large data sets
>  > 
>  > Hi all,
>  > 
>  > I am currently using a repeater to display a list of search results,
>  > each of them being a container of sorts with a custom header with
>  > extra controls. Click on the header open and closes the result, a long
>  > with a few other bits and pieces. 
>  > 
>  > One thing I have found is that with a larger search result listing it
>  > takes quite some time to render the results. 
>  > 
>  > If I was to manually create the search result children myself using
>  > createChild etc (rather than using the repeater) what effects would
>  > this have on my performance issues? I am not particularly interested
>  > in paging result sets just yet, but this would be my next step if I am
>  > unable to speed things up otherwise.
>  > 
>  > Any thoughts would be appreciated,
>  > 
>  > Cheers,
>  > 
>  > Andrew Spaulding
>  > www.flexdaddy.info
>  > 
>  > 
>  > 
>  > 
>  > --
>  > Flexcoders Mailing List
>  > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  > Search Archives:
>  > http://www.mail-archive.com/flexcoders%40yahoogroups.com
>  > Yahoo! Groups Links
>  
>  
>  
>  
> 
>  --
>  Flexcoders 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 
>  
>  
>  Visit your group "flexcoders" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  
>  
>


--
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/

<*> 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] aboute default mouse moveover style

2005-07-07 Thread Matt Chotin










Generally this is the focusIn skin that you’re
seeing on a lot of the components.  In the lists you’d be looking at the
rollover styles.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Banks
Sent: Thursday, July 07, 2005 1:02
AM
To: [EMAIL PROTECTED] Com
Subject: [flexcoders] aboute
default mouse moveover style



 

Hi,all,

When mouse move over event takes, the control's style
changes. My
question is: what style does the flash choose. i want to
simulate the
style of the mouse moveover event occurs.

-- 
Best Regards
--Zhu Feng
MSN: [EMAIL PROTECTED]



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] aboute default mouse moveover style

2005-07-07 Thread Matt Chotin










Sorry, meant the focus skins (you’ll
see them on UIComponent)

 









From: Matt Chotin 
Sent: Thursday, July 07, 2005 9:45
PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] aboute
default mouse moveover style



 

Generally this is the focusIn skin that
you’re seeing on a lot of the components.  In the lists you’d
be looking at the rollover styles.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Banks
Sent: Thursday, July 07, 2005 1:02
AM
To: [EMAIL PROTECTED] Com
Subject: [flexcoders] aboute
default mouse moveover style



 

Hi,all,

When mouse move
over event takes, the control's style changes. My
question is: what
style does the flash choose. i want to simulate the
style of the mouse
moveover event occurs.

-- 
Best Regards
--Zhu Feng
MSN:
[EMAIL PROTECTED]



--
Flexcoders Mailing
List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: HistoryManger state is undefined on loading

2005-07-07 Thread Matt Chotin










Yes, I think all history manager
information is stored as strings so type is not going to be maintained and you’ll
need to deal with that in your loadState method.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of rockmoyosa
Sent: Thursday, July 07, 2005 7:18
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
HistoryManger state is undefined on loading



 

I tell what happened. state. objects are now STRINGS(!?)

<< DUMP START >> 
this:Object
|    model
= [object Object]  (string)
|    view =
false  (string)

I can overcome the view by:
var detailVisible = Boolean(state.view ==
"true");

But for model it's a different story.



--- In flexcoders@yahoogroups.com,
"rockmoyosa" <[EMAIL PROTECTED]> wrote:
> My case:
> 
> - saveState is executed 
> - On "Back" loadState is executed.
> 
> But.
> Than my state is "undefined"
> 
> 
> private var changed:Boolean;
>   
>   public
function initHistory():Void {
>  
  mx.managers.HistoryManager.register(this);
>  
  storeInternalState();
>   }
>   
>   public
function saveState():Object {
>  
  // called by HistoryManager, tells the component
>  
  // to create a "state" object and to
return it\
>  
  var state = new Object();
>  
  state.model = Model.getInstance();
>  
  state.view = this._scope.m_detailview;
>  
  
>  
 
mx.controls.Alert.show(""+this._scope.m_detailview.visible);
>  
  Log.debug("hello"+state);
>  
  return state;
>   }
>   
>   public
function loadState(state:Object):Void {
>  
  // called by HistoryManager, passes in a state
>  
  // object so the component can rebuild it's
state
>  
  mx.controls.Alert.show("state:
"+state.view);
>  
  restoreInternalState(state);
>   }
>   
>   public
function savePresent():Void {
>  
  storeInternalState( );
>   }
> 
>   public
function storeInternalState():Void {
>  
  mx.managers.HistoryManager.save();
>   }
>   
>   public
function restoreInternalState(state:Object):Void {
>  
  Log.dump(state);
>  
  Log.debug("state.view.visible:
"+state.view.visible);
>  
  
>  
  if(state.view.visible == true &&
this._scope.m_detailview.visible ==
> false ||
>  
      
   
state.view.visible == false &&
> this._scope.m_detailview.visible == true){
>  
    toggleView();
>  
  }
>  
 
Model.getInstance().restoreInstance(state.model);
>   }




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] CheckCellRenderer

2005-07-07 Thread Matt Chotin










What do you meant the item in the grid
that is not being displayed.  As in an item you didn’t have selected
updated as well?  Perhaps you’re updating the wrong entry in the data
provider?

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of terry_hrtn
Sent: Thursday, July 07, 2005 2:34
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
CheckCellRenderer



 

I'm using the CheckCellRenderer from the samples on a datagrid that is 
inside of a title window.  The problem I'm
having is when I check the 
top item the item in the grid that is not being
displayed at the moment 
is also checked.  Any ideas?




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] getDropParent() when the branch is closed.

2005-07-07 Thread Matt Chotin










Maybe you could add a itemRollOver handler
on the Tree so that when you are dragging (indicated by dragEnter I guess) and
you encounter a branch you could make sure the branch gets opened?

 

Matt

 

 

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Krueger
Sent: Thursday, July 07, 2005 2:34
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
getDropParent() when the branch is closed.



 

All,

 

   
I am trying to drag an item from a grid and drop it on a tree control.  I
have found that the getDropParent seems to be the best bet when trying to find
where to add a new child node to.  The only problem I am having is if the
user chooses to drop the item on a branch that is currently closed, the
getDropParent() call returns one level higher.  If the branch is set to
open even with no children nodes then everything works.  I can kind of
understand why it works like this, but is there a way to work around
this.  Below is my dragDrop method, pretty much what everyone else has
posted.  I could expand all branches when the drag begins but that could
be ugly.

 

 

public function
doDragDrop(event:Object)

   
{  


doDragExit( event);

   
var dragItems = event.dragSource.dataForFormat(
"items" );

   
var targetForDrop = tree.getDropParent();

   
for ( var i = 0; i 

   
{

   
   
targetForDrop.addTreeNode("test",dragItems[i]);

   
tree.setIsOpen(targetForDrop, true);

   
tree.selectItem(targetForDrop, true);

}

}

 

Thanks

 

 

 

Jeff 

 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Reorder tree via dragging

2005-07-07 Thread Matt Chotin










We mention the formats in the List section
of the drag and drop chapter I think.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sean McKibben
Sent: Thursday, July 07, 2005 3:46
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Reorder
tree via dragging



 

So, what I've ended up using is the dataForFormat("source")
when the  
dragSource is a tree, which gets a reference to
the tree. Once you  
have that, the actual items being dragged will be
the selectedNode or  
the selectedNodes, depending on whether or not the
tree allows  
multiple selection.

So if you do
(selectedNode ==
event.target.getDropParent().getTreeNodeAt  
(event.target.getDropLocation())
it will return true if they are, in fact, the same
node.

Is anyone aware of a published list of what the
various dataForFormat  
strings are in the components that ship with flex?

Thanks,
Sean


On Jul 7, 2005, at 12:13 PM, Matthew Shirey wrote:

> As I am currently working with this, I can
say that dataForFormat 
> ("source") will give you a
reference to the source object of the  
> drag drop operation.  I am not sure
about the "items" one though.   
> I've read mixed documentation, some say its
"treeItems".  Any rate,  
> there's a formats array in the event object
that you can itterate  
> through and see all of the available formats
if needed.
>
> M.
>
> On 7/6/05, Matt Chotin
<[EMAIL PROTECTED]> wrote:
> I think dataForFormat("items") or
dataForFormat("source"), not sure  
> which is valid for Tree, might give you the
original items as  
> opposed to the copies.
>
>
> Matt
>
>
> From: flexcoders@yahoogroups.com 

> [mailto:flexcoders@yahoogroups.com]
On Behalf Of Sean McKibben
> Sent: Wednesday, July 06, 2005 1:17 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Reorder tree via
dragging
>
>
> So I'm trying to make a tree which can
reorder its nodes by dragging
> them. One of the things I wanted to do is
prevent a parent item from
> being dragged on to any of its children, and
to show that during the
> dragOver event.
>
> In order to calculate whether the source is
being dragged on to any
> of its offspring, I've been comparing the
>
event.dragSource.dataForFormat("treeItems") first to
>
firstValue=event.target.getDropParent().getTreeNodeAt
> (event.target.getDropLocation()) then
recursively to the parents of
> firstValue.
>
> This apparently doesn't work because
dataForFormat seems to hand me a
> copy of the items being dragged instead of an
actual reference, so
> the two values are never equal. I did note
that the items that
> dataForFormat give me, do contain references
to the real parents,
> data and other objects, it is just that the
items themselves are
> copies for some reason.
>
> What I ended up doing is something like the
following:
>
>
if(checkParentDrop(myowncustom.TreeUtils.findDataItemNode
> (view.TemplateAssemblyTree,
dragItems[i].getData())
>
, event.target.getDropParent().getTreeNodeAt
> (event.target.getDropLocation(
>  action =
"">
>
> private function checkParentDrop(source,
node):Boolean
>  {
> 
if(source == node)
> 
return true;
> 
if(node.getParent()!=null)
> 
return checkParentDrop(source, node.getParent());
> 
else
> 
return false;
>  }
>
>
> public static function
findDataItemNode(tree:mx.controls.Tree,
> o:Object):TreeNode
> ... recursively check the entire tree for the
same getData()
> reference ...
>
> So basically instead of comparing items from
>
event.dragSource.dataForFormat("treeItems"), i have to recursively
> look them up by the reference they contain to
their getData()
> information, to get the actual reference to
the TreeNode which I then
> compare to the drop target and its ancestors
for referential equality.
>
> This is horribly ugly, but it works. Is there
a better way that
> people have stumbled across to validate
tree->self drags? I wish that
> dataForFormat handed over references instead
of copies!
>
> (sorry if this was discussed before; I'm
apparently bad at finding
> previously discussed topics in this list!)
>
> Sean
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%

> 40yahoogroups.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
>
>  Visit your group "flexcoders"
on the web.
>
>  To unsubscribe from this group, send an
email to:
>  
[EMAIL PROTECTED]
>
>  Your use of Yahoo! Groups is subject to
the Yahoo! Terms of Service.
>
>
>
>
> --
> 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 LINK

RE: [flexcoders] aboute default mouse moveover style

2005-07-07 Thread Matt Chotin










Actually, I might have been looking at
Flex 2.0 docs here J  highlightColor is used when a component has focus, not sure
if mouseOver will cause highlight too (I think it does).

 









From: Matt Chotin 
Sent: Thursday, July 07, 2005 9:45
PM
To: Matt Chotin; flexcoders@yahoogroups.com
Subject: RE: [flexcoders] aboute
default mouse moveover style



 

Sorry, meant the focus skins (you’ll
see them on UIComponent)

 









From: Matt Chotin 
Sent: Thursday, July 07, 2005 9:45
PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] aboute
default mouse moveover style



 

Generally this is the focusIn skin that
you’re seeing on a lot of the components.  In the lists you’d
be looking at the rollover styles.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Banks
Sent: Thursday, July 07, 2005 1:02
AM
To: [EMAIL PROTECTED] Com
Subject: [flexcoders] aboute
default mouse moveover style



 

Hi,all,

When mouse move
over event takes, the control's style changes. My
question is: what
style does the flash choose. i want to simulate the
style of the mouse
moveover event occurs.

-- 
Best Regards
--Zhu Feng
MSN:
[EMAIL PROTECTED]



--
Flexcoders Mailing
List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Added image/s in TileList is/are not shown

2005-07-07 Thread Matt Chotin










You’re using the List addItemAt method
instead of the DataProvider addItemsAt method.  I think you want to use _root.modelImage2.photo.addItemsAt(0,
tilelistAllImage.selectedItems);

as the body of your addLibrary method, no
need for the for loop.

 

Matt









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of P Trisnadi
Sent: Thursday, July 07, 2005 2:10
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Added
image/s in TileList is/are not shown



 

Not sure why second message was also truncated. Let's
try this again...
--
Thanks for your interest and notice, Scott. To
recap:
I have a TileList that shows images and their
names,
read from an XML file and rendered by a
CellRenderer.
When the [Add Photo] button is clicked, a
createPopUp
is called. This PopUp also has a TileList that
reads
another XML file with the same structure (but
different data.) Images can be selected, and when
the
[Add] button is clicked selected images should be
added to the main TileList's model. However,
something
is added to the TileList, but it only shows blank
tiles/undefined...

Here is the code again...

-- XML file, both look similar --

  
   image01.jpg
  
image02.jpg
  
image03.jpg
  

-- TileList that I want to add images in
--



...
    
 
dataProvider="{modelImage2.photo}"
cellRenderer="thumbnail2"
change="{showSelected(tilelistImage.selectedItem)}"
multipleSelection="true"/>
    

-- TileList that I want to bring images
from
--




    
    
dataProvider="{modelImage.photo}"
cellRenderer="thumbnail2"
change="{anySelected(tilelistAllImage.selectedItem)}"
multipleSelection="true"/>
    
click="addLibrary()"/>

-- CellRenderer --


xmlns:mx="http://www.macromedia.com/2003/mxml"
width="72" height="86"
horizontalAlign="center"
verticalAlign="middle"
horizontalGap="0"
verticalGap="0"
borderStyle="none" hScrollPolicy="off"
vScrollPolicy="off">
    
    var
photoObj:Object;
   
function setValue(str:String,item:Object) {
   
if (item==undefined) {
   
visible=false;
   
return;
   
} else {
   
photoObj=item;
   
visible=true;
   
}
    }
    
    
height="64"
verticalAlign="middle"
horizontalAlign="center"/>
    
textAlign="center"
fontSize="10"/>



Any idea why it adds blank, undefined tile here?

TIA,
- ptrisnadi


 
  

Sell on Yahoo! Auctions – no fees. Bid on
great items.  
http://auctions.yahoo.com/


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: using a repeater with large data sets

2005-07-07 Thread Andrew Spaulding
Hi Alex,

Yeh I followed your posts on performace with large data sets, and our
return data from the RemoteObject service is relatively fast. The
problem lies with the rendering of the results.

For what I'm doing I have found the the Repeater works better for me
compared to a List with a CellRenderer (and yes I already have the
repeated contents extracted into a separate mxml file).

I have gone with Tracy's idea, and am using the 'count' and
'startingIndex' property on the Repeater. I am currently putting
together a paging component, kind of like how Google would page its
search results, and am having this control the Repeater.

Thanks to everyone for there help,

Andrew
www.flexdaddy.info


--- In flexcoders@yahoogroups.com, Alex Cruikshank <[EMAIL PROTECTED]> wrote:
> Hi Andrew,
> If you're using remoting, I'd make sure your performance problems
> aren't with the serialization/deserialization of the results before
> you invest much time in optimizing the display.  I've done some
> research into this
>
(http://www.carbonfive.com/community/archives/2005/07/the_remoting_de.html)
> and the performance of calls returning large lists can be quite poor
> even when the app server call is snappy.  This is true even when the
> results aren't displayed at all.
> 
> I recommend using a List, Horizontal List, or Tile list with a paging
> data provider for anything that may have over 50 or so items.  Once
> you get your data provider working, a repeater is surprisingly easy to
> convert to a list.  You just need to extract the contents of the
> repeater into a separate mxml (if they're not already), give the new
> mxml a setValue() method, and set the cell renderer of the list to the
> new mxml.
> 
> Hope this helps,
> Alex
> 
> 
> On 7/7/05, Andrew Spaulding <[EMAIL PROTECTED]> wrote:
> >  Good idea Trac!
> >  
> >  I'll use the count and startingIndex properties to manage the paging
> >  locally ;)
> >  
> >  Kind regards,
> >  
> >  Andrew Spaulding
> >  www.flexdaddy.info
> >  
> >  
> >  
> >  --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]>
wrote:
> >  > One possibility with the repeater is to set the number of items
that are
> >  > rendered, then, instead of scrolling, use page-up, page-down
buttons.  A
> >  > repeater with around a hundred moderately complex items is horribly
> >  > slow.  Show only 10, and recycleChildren and things improve
> >  > dramatically.  This is much simpler to impement that true
server-based
> >  > data paging, though Matt C. has a good discussion of that.
> >  > 
> >  > A cellRenderer in a list is faster than the repeater, but with 100+
> >  > items still takes several seconds.
> >  > 
> >  > No matter how you do it, it is the rendering that takes the time.
> >  > 
> >  > Tracy
> >  > 
> >  > -Original Message-
> >  > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> >  > Behalf Of Andrew Spaulding
> >  > Sent: Thursday, July 07, 2005 7:36 PM
> >  > To: flexcoders@yahoogroups.com
> >  > Subject: [flexcoders] using a repeater with large data sets
> >  > 
> >  > Hi all,
> >  > 
> >  > I am currently using a repeater to display a list of search
results,
> >  > each of them being a container of sorts with a custom header with
> >  > extra controls. Click on the header open and closes the result,
a long
> >  > with a few other bits and pieces. 
> >  > 
> >  > One thing I have found is that with a larger search result
listing it
> >  > takes quite some time to render the results. 
> >  > 
> >  > If I was to manually create the search result children myself using
> >  > createChild etc (rather than using the repeater) what effects would
> >  > this have on my performance issues? I am not particularly
interested
> >  > in paging result sets just yet, but this would be my next step
if I am
> >  > unable to speed things up otherwise.
> >  > 
> >  > Any thoughts would be appreciated,
> >  > 
> >  > Cheers,
> >  > 
> >  > Andrew Spaulding
> >  > www.flexdaddy.info
> >  > 
> >  > 
> >  > 
> >  > 
> >  > --
> >  > Flexcoders Mailing List
> >  > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >  > Search Archives:
> >  > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >  > Yahoo! Groups Links
> >  
> >  
> >  
> >  
> > 
> >  --
> >  Flexcoders 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 
> >  
> >  
> >  Visit your group "flexcoders" on the web.
> >   
> >  To unsubscribe from this group, send an email to:
> >  [EMAIL PROTECTED]
> >   
> >  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> >  
> >  
> >




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexco

RE: [flexcoders] Re: using a repeater with large data sets

2005-07-07 Thread Matt Chotin










My blog post from way back has an example
of that control (well the files that come with the example)

 

http://weblogs.macromedia.com/mchotin/archives/2004/03/large_data_sets.cfm

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Andrew Spaulding
Sent: Thursday, July 07, 2005
10:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: using a
repeater with large data sets



 

Hi Alex,

Yeh I followed your posts on performace with large
data sets, and our
return data from the RemoteObject service is
relatively fast. The
problem lies with the rendering of the results.

For what I'm doing I have found the the Repeater
works better for me
compared to a List with a CellRenderer (and yes I
already have the
repeated contents extracted into a separate mxml
file).

I have gone with Tracy's idea, and am using the 'count' and
'startingIndex' property on the Repeater. I am
currently putting
together a paging component, kind of like how
Google would page its
search results, and am having this control the
Repeater.

Thanks to everyone for there help,

Andrew
www.flexdaddy.info


--- In flexcoders@yahoogroups.com,
Alex Cruikshank <[EMAIL PROTECTED]> wrote:
> Hi Andrew,
> If you're using remoting, I'd make sure your
performance problems
> aren't with the serialization/deserialization
of the results before
> you invest much time in optimizing the
display.  I've done some
> research into this
>
(http://www.carbonfive.com/community/archives/2005/07/the_remoting_de.html)
> and the performance of calls returning large
lists can be quite poor
> even when the app server call is
snappy.  This is true even when the
> results aren't displayed at all.
> 
> I recommend using a List, Horizontal List, or
Tile list with a paging
> data provider for anything that may have over
50 or so items.  Once
> you get your data provider working, a
repeater is surprisingly easy to
> convert to a list.  You just need to extract
the contents of the
> repeater into a separate mxml (if they're not
already), give the new
> mxml a setValue() method, and set the cell
renderer of the list to the
> new mxml.
> 
> Hope this helps,
> Alex
> 
> 
> On 7/7/05, Andrew Spaulding <[EMAIL PROTECTED]>
wrote:
> >  Good idea Trac!
> >  
> >  I'll use the count and
startingIndex properties to manage the paging
> >  locally ;)
> >  
> >  Kind regards,
> >  
> >  Andrew Spaulding
> >  www.flexdaddy.info
> >  
> >  
> >  
> >  --- In flexcoders@yahoogroups.com,
"Tracy Spratt" <[EMAIL PROTECTED]>
wrote:
> >  > One possibility with the
repeater is to set the number of items
that are
> >  > rendered, then, instead of
scrolling, use page-up, page-down
buttons.  A
> >  > repeater with around a
hundred moderately complex items is horribly
> >  > slow.  Show only 10, and
recycleChildren and things improve
> >  > dramatically.  This is
much simpler to impement that true
server-based
> >  > data paging, though Matt C.
has a good discussion of that.
> >  > 
> >  > A cellRenderer in a list is
faster than the repeater, but with 100+
> >  > items still takes several
seconds.
> >  > 
> >  > No matter how you do it, it
is the rendering that takes the time.
> >  > 
> >  > Tracy
> >  > 
> >  > -Original Message-
> >  > From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
> >  > Behalf Of Andrew Spaulding
> >  > Sent: Thursday, July 07, 2005
7:36 PM
> >  > To: flexcoders@yahoogroups.com
> >  > Subject: [flexcoders] using a
repeater with large data sets
> >  > 
> >  > Hi all,
> >  > 
> >  > I am currently using a
repeater to display a list of search
results,
> >  > each of them being a
container of sorts with a custom header with
> >  > extra controls. Click on the
header open and closes the result,
a long
> >  > with a few other bits and
pieces. 
> >  > 
> >  > One thing I have found is
that with a larger search result
listing it
> >  > takes quite some time to
render the results. 
> >  > 
> >  > If I was to manually create
the search result children myself using
> >  > createChild etc (rather than
using the repeater) what effects would
> >  > this have on my performance
issues? I am not particularly
interested
> >  > in paging result sets just
yet, but this would be my next step
if I am
> >  > unable to speed things up
otherwise.
> >  > 
> >  > Any thoughts would be
appreciated,
> >  > 
> >  > Cheers,
> >  > 
> >  > Andrew Spaulding
> >  > www.flexdaddy.info
> >  > 
> >  > 
> >  > 
> >  > 
> >  > --
> >  > Flexcoders Mailing List
> >  > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >  > Search Archives:
> >  > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >  > Yahoo! Groups Links
> >  
> >  
> >  
> >  
> > 
> >  --
> >  Flexcoders Mailing List
> >  FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >  Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com

> > 
> >  
> >  
> >  

[flexcoders] Re: using a repeater with large data sets

2005-07-07 Thread Andrew Spaulding
Ah ofcourse, the 'PageSelector' component you wrote. I remember
reading the articles a long time back when you first wrote them, but
in this scenario I wasn't interested in server side paging. 

I'll check out the component, 

thanks,

Andrew
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
> My blog post from way back has an example of that control (well the
> files that come with the example)
> 
>  
> 
> http://weblogs.macromedia.com/mchotin/archives/2004/03/large_data_sets.c
> fm
> 
>  
> 
> Matt
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Andrew Spaulding
> Sent: Thursday, July 07, 2005 10:09 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: using a repeater with large data sets
> 
>  
> 
> Hi Alex,
> 
> Yeh I followed your posts on performace with large data sets, and our
> return data from the RemoteObject service is relatively fast. The
> problem lies with the rendering of the results.
> 
> For what I'm doing I have found the the Repeater works better for me
> compared to a List with a CellRenderer (and yes I already have the
> repeated contents extracted into a separate mxml file).
> 
> I have gone with Tracy's idea, and am using the 'count' and
> 'startingIndex' property on the Repeater. I am currently putting
> together a paging component, kind of like how Google would page its
> search results, and am having this control the Repeater.
> 
> Thanks to everyone for there help,
> 
> Andrew
> www.flexdaddy.info
> 
> 
> --- In flexcoders@yahoogroups.com, Alex Cruikshank <[EMAIL PROTECTED]> wrote:
> > Hi Andrew,
> > If you're using remoting, I'd make sure your performance problems
> > aren't with the serialization/deserialization of the results before
> > you invest much time in optimizing the display.  I've done some
> > research into this
> >
> (http://www.carbonfive.com/community/archives/2005/07/the_remoting_de.ht
> ml)
> > and the performance of calls returning large lists can be quite poor
> > even when the app server call is snappy.  This is true even when the
> > results aren't displayed at all.
> > 
> > I recommend using a List, Horizontal List, or Tile list with a paging
> > data provider for anything that may have over 50 or so items.  Once
> > you get your data provider working, a repeater is surprisingly easy to
> > convert to a list.  You just need to extract the contents of the
> > repeater into a separate mxml (if they're not already), give the new
> > mxml a setValue() method, and set the cell renderer of the list to the
> > new mxml.
> > 
> > Hope this helps,
> > Alex
> > 
> > 
> > On 7/7/05, Andrew Spaulding <[EMAIL PROTECTED]> wrote:
> > >  Good idea Trac!
> > >  
> > >  I'll use the count and startingIndex properties to manage the
> paging
> > >  locally ;)
> > >  
> > >  Kind regards,
> > >  
> > >  Andrew Spaulding
> > >  www.flexdaddy.info
> > >  
> > >  
> > >  
> > >  --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]>
> wrote:
> > >  > One possibility with the repeater is to set the number of items
> that are
> > >  > rendered, then, instead of scrolling, use page-up, page-down
> buttons.  A
> > >  > repeater with around a hundred moderately complex items is
> horribly
> > >  > slow.  Show only 10, and recycleChildren and things improve
> > >  > dramatically.  This is much simpler to impement that true
> server-based
> > >  > data paging, though Matt C. has a good discussion of that.
> > >  > 
> > >  > A cellRenderer in a list is faster than the repeater, but with
> 100+
> > >  > items still takes several seconds.
> > >  > 
> > >  > No matter how you do it, it is the rendering that takes the time.
> > >  > 
> > >  > Tracy
> > >  > 
> > >  > -Original Message-
> > >  > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> > >  > Behalf Of Andrew Spaulding
> > >  > Sent: Thursday, July 07, 2005 7:36 PM
> > >  > To: flexcoders@yahoogroups.com
> > >  > Subject: [flexcoders] using a repeater with large data sets
> > >  > 
> > >  > Hi all,
> > >  > 
> > >  > I am currently using a repeater to display a list of search
> results,
> > >  > each of them being a container of sorts with a custom header with
> > >  > extra controls. Click on the header open and closes the result,
> a long
> > >  > with a few other bits and pieces. 
> > >  > 
> > >  > One thing I have found is that with a larger search result
> listing it
> > >  > takes quite some time to render the results. 
> > >  > 
> > >  > If I was to manually create the search result children myself
> using
> > >  > createChild etc (rather than using the repeater) what effects
> would
> > >  > this have on my performance issues? I am not particularly
> interested
> > >  > in paging result sets just yet, but this would be my next step
> if I am
> > >  > unable to speed things up otherwise.
> > >  > 
> > >  > Any thoughts would be appreciated,
> > >  > 
> >