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

2005-07-09 Thread P Trisnadi


Wow, that works so smoothly! :D Thanks, Matt.

- ptrisnadi

- Original Message From: Matt Chotin [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Thu Jul  7 22:08:00 2005Subject: RE: [flexcoders] Added image/s in TileList is/are not shown














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 --
?xml version="1.0"
encoding="utf-8"?
 photos
 photofilenameimage01.jpg/filename/photo

photofilenameimage02.jpg/filename/photo

photofilenameimage03.jpg/filename/photo
 /photos

-- TileList that I want to add images in
--
mx:Script
![CDATA[
 function showImage() {
 var
popup=mx.managers.PopUpManager.createPopUp(_root,
imageBrowser, true);
 }
]]
/mx:Script
...
 mx:Model
id="modelImage2" source="photos2.xml"/
 mx:TileList
id="tilelistImage"
dataProvider="{modelImage2.photo}"
cellRenderer="thumbnail2"
change="{showSelected(tilelistImage.selectedItem)}"
multipleSelection="true"/
 mx:Button label="Add
Photo" click="showImage()"/

-- TileList that I want to bring images
from
--
mx:Script
![CDATA[
 function addLibrary():Void {
 for
(var i=0;
itilelistAllImage.selectedIndices.length; i++)
{


_root.modelImage2.photo.addItemAt(0,"",tilelistAllImage.selectedItems[i]);
 }

_root.tilelistImage.sortItems();
 this.deletePopUp();
 }
]]
/mx:Script

 mx:Model
id="modelImage" source="photos.xml"/
 mx:TileList
id="tilelistAllImage"
dataProvider="{modelImage.photo}"
cellRenderer="thumbnail2"
change="{anySelected(tilelistAllImage.selectedItem)}"
multipleSelection="true"/
 mx:Button
label="Add" id="btAdd"
click="addLibrary()"/

-- CellRenderer --
?xml version="1.0"
encoding="utf-8"?
mx:VBox
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"
 mx:Script
 var
photoObj:Object;

function setValue(str:String,item:Object) {

if (item==undefined) {

visible=false;

return;

} else {

photoObj=item;

visible=true;

}
 }
 /mx:Script
 mx:Image
source="{photoObj.filename}" width="64"
height="64"
verticalAlign="middle"
horizontalAlign="center"/
 mx:Label
text="{photoObj.filename}" width="72"
textAlign="center"
fontSize="10"/
/mx:VBox


Any idea why it adds blank, undefined tile here?

TIA,
- ptrisnadi









--
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] HTTPService useProxy question...

2005-07-09 Thread JesterXL
Sent at 3:21pm

You have to use a proxy, not Flex, but any proxy.  The Flash Player is a 
client-side technology, and as such, it can only retreive data from sources 
within it's domain.  So, if the XML you are looking for is outside your 
site, no dice without a proxy.

I use PHP, for example, to hit swgcraft.com.  It has gzipped XML files on 
it's site, and dev.jessewarden.com wants to use that data.

PHP grabs the xml feed, unzips it, and sends it to Flex when Flex requests 
it.  Since PHP is server-side, and not bound by any domain sandbox, I'm good 
to go.

http://dev.jessewarden.com/swg/resources/

- Original Message - 
From: heybluez [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, July 08, 2005 3:14 PM
Subject: [flexcoders] HTTPService useProxy question...


Anyone bypass the flex proxy with useProxy=false?  I have a flex app
that currently uses the server as a proxy but we want to bypass the
flex server and go directly to the source HTTP post/request.

For example, one source is an RSS feed that will come up in a browser
but is an XML file.  When I use HTTPService and hit that with the
default settings (i.e. Flex Proxy) it works.  As soon as I turn that
off (i.e. useProxy=false) it says that it cannot retrieve data!

I am looking to see what I need to do...I did see this in the manual:

--
Note: You must use the Flex proxy to correctly return HTTP status
codes from a service.
--


Is this my issue?  The direct hit on the .rdf (i.e. XML) file does not
return status codes?!  Is that possible?

Ideas?

Thanks,
-Michael




--
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] popupmanager . . . position the window?

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

i have a but that loads a popup window with a form in it. i need to
position that window the in center of my app.

what is the best way to go about this?

my popup function looks like this:

private function showPopup(modal) {
var popup = mx.managers.PopUpManager.createPopUp(_root,
AddForm, modal, {deferred: true});
}


i know i can pass the x and y coords as part of the initialization
object for the window, but i cant figure out how to dynamically
determin the height and width of the app and the window im creating in
order to position the window in the center.

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




[flexcoders] Flex w/ apachecfmx7

2005-07-09 Thread Jeremy Rottman
I am working on getting flex setup in a different enviroment so I can
fully test it's deploy speed. I have a test server setup, with an
exttremly light install of mdk 10.2. With that I have apache 2.0.54
installed and fired up. I also have coldfusionmx 7 installed. I have
followed the steps exactly as per the documentation for installing
flex with coldfusion. But, I still get 500 errors when trying to run
my test file. 

So here is my question. Since my cfmx server is bound to my apache
server, do I need to put the flex.war file in my coldfusion WEB-INF
folder or do I need to put it in my apache distribution folder.




--
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] Extend or build from scratch?

2005-07-09 Thread delaquae
I need to create a slightly modified version of a PieChart where each 
wedge has an outerRadius (instead of the whole pie).  In effect, I 
want to add another dimension similar to the radiusField on a 
BubbleChart.  I'm wondering if this will require a completely new 
component (i.e. from scratch) or if it is possible to leverage the 99% 
functionality that already exists in the BubbleChart?  




--
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] application flow, logic question . . .

2005-07-09 Thread JesterXL
Sent at 12:43 pm EST/ GMT -5

You can still use loadMovie, although, I recommend against that even in 
Flash.

Basically, you can have 3(or more) components:
- Login.mxml
- Interface1.mxml
- Interface2.mxml

Your Login MXML is just that, a coponent that shows the username  password 
fields, dispatches a login event assuming the fields have validated.  You 
can use your base class/tag for your Login.xml as mx:TitleWindow

Your Interface1 and 2 are whatever those interfaces are.

Your main Application.mxml file is technically your _root, but it's actually 
a Singleton class which is really really nice.
- in the initialize event of your app, it calls a function to setup your 
app.
- you'll have a ViewStack with your login component in it, like so:

mx:ViewStack id=app_view creationPolicy=all

  local:Login local:xmlns=* /

  local:Interface1 local:xmlns=* /

/mx:ViewStack

If the user successfully logs in, then you can have your ViewStack go to the 
next view, in this case, your Interface1:

app_view.selectedIndex = 1;

There are other ways, but that's the gist; if they get logged out for 
whatever reason, set the index back to 0.

This is all compiled into 1 swf, but your MXML files remain seperated, kind 
of like components, only a LOT cooler.


- Original Message - 
From: chris.alvarado [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, July 08, 2005 11:29 AM
Subject: [flexcoders] application flow, logic question . . .


Good morning everyone,

So it looks like I will be rebuilding a year long project that I
originially developed in Flash, with Flex.

The current structure is that i have a controlling movie that acts
as the skeleton. if a user is not logged in they are presented with a
login box and that is all. once the user logs in successfully they are
presented with various navigation icons based on whatever permissions
they have. when they select a particular navigation item, the
subsequent interface is loaded into the conrolling movie using the
loadMovie() method. (each interface is a separate .swf).

so my question is, how would i replicate this structue in Flex? would
i make each interface it's own MXML file? and if so how would i call
those files into the main MXML file?

any suggestions would be greatly appreciated, as would any urls to
some examples of similar scenarios.

thanks all!

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




RE: [flexcoders] Re: application flow, logic question . . .

2005-07-09 Thread Steven Webster
Chris,

I'd also recommend that you do a search in the docs for creationPolicy and
read about deferred instantiation.  Try and forget everything you know about
splitting a flash movie up into separate movies and loading them on demand,
and relinquish that responsibility to Flex.  With clever use of
creationPolicy, you can allow Flex to defer the loading of your application
with an appropriate policy.

Don't get me wrong, you may find there's a need ultimately to start using
Loader controls to create and destroy your own views; but I'd always
recommend that you try and avoid this strategy until evident performance
demands it.

Welcome to Flex ... there's no going back,

Steven

--
Steven Webster
Technical Director
iteration::two
 
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.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of alex_harui
Sent: 08 July 2005 19:57
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: application flow, logic question . . .

Welcome to the world of Flex.  In Flex the loadMovie functionality is
basically encapsulated within the mx:Loader component.

You should be able to have a base MXML file with an mx:Loader in it and pass
in other MXML files for the Loader to load


--- In flexcoders@yahoogroups.com, chris.alvarado 
[EMAIL PROTECTED] wrote:
 Good morning everyone,
 
 So it looks like I will be rebuilding a year long project that I
 originially developed in Flash, with Flex.
 
 The current structure is that i have a controlling movie that acts
 as the skeleton. if a user is not logged in they are presented with 
a
 login box and that is all. once the user logs in successfully they 
are
 presented with various navigation icons based on whatever 
permissions
 they have. when they select a particular navigation item, the
 subsequent interface is loaded into the conrolling movie using the
 loadMovie() method. (each interface is a separate .swf).
 
 so my question is, how would i replicate this structue in Flex? 
would
 i make each interface it's own MXML file? and if so how would i call
 those files into the main MXML file?
 
 any suggestions would be greatly appreciated, as would any urls to
 some examples of similar scenarios.
 
 thanks all!
 
 -- 
 -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/
 




RE: [flexcoders] Re: HTTPService useProxy question...

2005-07-09 Thread Theodore E Patrick
 First thanks for the response!  Clears a lot of things up.
 
 But...if I read this correctly, then all the sites that I am
 requesting FROM have to have a crossdomain.xml file in their root web
 directory?

Exactly. The Flash client works same as Java or JS in regards to security,
cross domain data exchange is limited. The exception here is that Flash
allows this with a light security measure in crossdomain.xml. It also
provides access to low ports for XMLSocket and several other features.

If you are accessing Internet WebServices, either write your own proxy or
use the one included in Flex. Plus with the Flex proxy you also have
whitelist security and support for HTTP authorization headers.

useProxy=false is ideal if the only web service you are exchanging data is
on your own server. 

Hope that helps.

Ted ;)



 
 Thanks again,
 Michael
 
 --- In flexcoders@yahoogroups.com, Theodore E Patrick [EMAIL PROTECTED] 
 wrote:
  When you set proxy=false you need to have crossdomain.xml files
 set-up to
  handle the flash player security sandbox. If you do not have
 crossdomain.xml
  files configured, the player will block the URL request internally.
 
  Here is the lowdown on crossdomain.xml.
 
  http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14213
 
  Here are some sample crossdomain.xml files:
 
  http://www.macromedia.com/crossdomain.xml
  http://www.yahoo.com/crossdomain.xml
  http://www.ifbin.com/crossdomain.xml
 
  These files are typically found on the server where the data is being
  requested. The Flash Player will automatically check this address
 for any
  domain or subdomain that is accessed.
 
  The Flex proxy gets around this restriction.
 
  Cheers,
 
  Ted ;)
 
   -Original Message-
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
   Behalf Of heybluez
   Sent: Friday, July 08, 2005 3:15 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] HTTPService useProxy question...
  
   Anyone bypass the flex proxy with useProxy=false?  I have a flex app
   that currently uses the server as a proxy but we want to bypass the
   flex server and go directly to the source HTTP post/request.
  
   For example, one source is an RSS feed that will come up in a browser
   but is an XML file.  When I use HTTPService and hit that with the
   default settings (i.e. Flex Proxy) it works.  As soon as I turn that
   off (i.e. useProxy=false) it says that it cannot retrieve data!
  
   I am looking to see what I need to do...I did see this in the manual:
  
   --
   Note: You must use the Flex proxy to correctly return HTTP status
   codes from a service.
   --
  
  
   Is this my issue?  The direct hit on the .rdf (i.e. XML) file does not
   return status codes?!  Is that possible?
  
   Ideas?
  
   Thanks,
   -Michael
  
  
  
  
   --
   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: HTTPService useProxy question...

2005-07-09 Thread heybluez
Hey Guys,

Thanks!  I will just built an alternative proxy with PHP or something.
 It should not be too complicated :)

-Michael

--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:
 Sent at 3:21pm
 
 You have to use a proxy, not Flex, but any proxy.  The Flash Player
is a 
 client-side technology, and as such, it can only retreive data from
sources 
 within it's domain.  So, if the XML you are looking for is outside your 
 site, no dice without a proxy.
 
 I use PHP, for example, to hit swgcraft.com.  It has gzipped XML
files on 
 it's site, and dev.jessewarden.com wants to use that data.
 
 PHP grabs the xml feed, unzips it, and sends it to Flex when Flex
requests 
 it.  Since PHP is server-side, and not bound by any domain sandbox,
I'm good 
 to go.
 
 http://dev.jessewarden.com/swg/resources/
 
 - Original Message - 
 From: heybluez [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, July 08, 2005 3:14 PM
 Subject: [flexcoders] HTTPService useProxy question...
 
 
 Anyone bypass the flex proxy with useProxy=false?  I have a flex app
 that currently uses the server as a proxy but we want to bypass the
 flex server and go directly to the source HTTP post/request.
 
 For example, one source is an RSS feed that will come up in a browser
 but is an XML file.  When I use HTTPService and hit that with the
 default settings (i.e. Flex Proxy) it works.  As soon as I turn that
 off (i.e. useProxy=false) it says that it cannot retrieve data!
 
 I am looking to see what I need to do...I did see this in the manual:
 
 --
 Note: You must use the Flex proxy to correctly return HTTP status
 codes from a service.
 --
 
 
 Is this my issue?  The direct hit on the .rdf (i.e. XML) file does not
 return status codes?!  Is that possible?
 
 Ideas?
 
 Thanks,
 -Michael
 
 
 
 
 --
 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] popupmanager . . . position the window?

2005-07-09 Thread Daniel Cascais
I haven't tried this out, but maybe if you append this to your code:

popup.move(Stage.width * .5 - popup.width * .5, Stage.height * .5 -
popup.height * .5);

On 7/8/05, chris.alvarado [EMAIL PROTECTED] wrote:
 good afternoon everyone,
 
 i have a but that loads a popup window with a form in it. i need to
 position that window the in center of my app.
 
 what is the best way to go about this?
 
 my popup function looks like this:
 
 private function showPopup(modal) {
 var popup =
 mx.managers.PopUpManager.createPopUp(_root,
 AddForm, modal, {deferred: true});
 }
 
 
 i know i can pass the x and y coords as part of the initialization
 object for the window, but i cant figure out how to dynamically
 determin the height and width of the app and the window im creating in
 order to position the window in the center.
 
 -- 
 -chris.alvarado
 [application developer]
-- 
Daniel Cascais
Tel: +56 (0)2  4589495
Cel: +56 (0)9  9417355


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

2005-07-09 Thread Jeff Steiner










Did you add the mxml and swf file
extensions to the AddHandler tag?



And  it goes in your WEB-INF
folder. I extract it for JRun, but YMMV.





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 Jeremy Rottman
Sent: Friday, July 08, 2005 12:01
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex w/
apachecfmx7





I am working on getting flex setup in a different enviroment so I can
fully test it's deploy speed. I have a test server
setup, with an
exttremly light install of mdk 10.2. With that I
have apache 2.0.54
installed and fired up. I also have coldfusionmx 7
installed. I have
followed the steps exactly as per the
documentation for installing
flex with coldfusion. But, I still get 500 errors
when trying to run
my test file. 

So here is my question. Since my cfmx server is
bound to my apache
server, do I need to put the flex.war file in my
coldfusion WEB-INF
folder or do I need to put it in my apache
distribution folder.




--
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] Gartner's Take on Rich Internet Applications

2005-07-09 Thread Jeppe N. Madsen
On Fri, 08 Jul 2005, Sjors Pals wrote:

  Its funny that these kind of products are considered as RIA's since
  the only Internet thing about it that you run a plugin in a browser
  window :-\

You mean, in the same way you run Flex apps :-)

/Jeppe




--
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: popupmanager . . . position the window?

2005-07-09 Thread Eric Raymond
Here are two utility functions that I use to handle popups.  One will
center the popup, the other will align it to the top, right edge.

It was a lot of trial and error to get something which worked all the
time in Flex.  Not sure why such an simple, common task was so
painful.  Note that Flex has a centerPopup function call in the API,
but it is unreliable.

class Util {
public static var singleton : Util = new Util();

public static function showPopUpCentered(windowClass:Object,
modal:Boolean, initVars:Object):Object {
var popup = mx.managers.PopUpManager.createPopUp( _root,
windowClass, modal, initVars);
popup.centerPopUp( MovieClip(mx.core.Application.application)
);
return popup;
}

public static function showPopUpRightMost(windowClass:Object,
modal:Boolean, initVars:Object):Object {
var popup = mx.managers.PopUpManager.createPopUp( _root,
windowClass, modal, initVars);
popup.addEventListener(creationComplete, singleton,
moveRightMost);
return(popup);
}

public function creationComplete(event) {
event.target.move((mx.core.Application.application.tabStack ==
undefined ? mx.core.Application.application.width :
(mx.core.Application.application.tabStack.width +
mx.core.Application.application.tabStack.x)) - event.target.width,
mx.core.Application.application.tabStack == undefined ? 0 :
mx.core.Application.application.tabStack.y);
}
}

Notes on showPopUpRightMost:

1) You have to wait until the popup is fully created before you can
use it's size.  I used a creationComplete event listener on a
singleton of the Util class.  There are other ways to do this (which
probably would be better suited to standlone code snippets like this)

2) The guts of the implementation, creationComplete, looks to see if
the application has a top level tabStack component.  If it finds a
tabStack, it uses that instead of the application window.  You can
choose another component to align to, or you can strip out this code
entirely.


Now for the $1000 question, what effect does adding deferred: true
to the popups init vars really do?


P.S.  Someone else on this list provided the magic incantations for
showPopUpCentered.






--
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-09 Thread Matt Chotin










Right, source should not be a copy, it
should be the original002E











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sean McKibben
Sent: Friday, July 08, 2005 9:09
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Reorder
tree via dragging





One thing I noticed is that the dataForFormat(source)
doesn't seem to give out a copy (in contrast to what it says on page 562 of
Developing Flex Applications). If you do
(event.target==event.dragSource.dataForFormat(source)) I believe it
gives you true if you're dragging within the same object, which it wouldn't do
if dataForFormat(source) returned a copy. Is this correct?









Sean

















On Jul 8, 2005, at 12:52 AM, Sean McKibben wrote:







It mentions the
source items and treeItems in Developing Flex Applications and has a
list on page 562 with descriptions. It seems to get it wrong on page 564,
however, when it saysIn the DataSource object, the selected items
in the Tree control are copied into the DataSource object with a format string
of items.











I believe to get a copy of the selected items in a TreeNode,
you would need to use treeItems; items would return
undefined, correct?











It might be good to include the information from page 562 in the
LiveDocs for the dataForFormat method of mx.core.DragSource.











Thanks,





Sean





















On Jul 7, 2005, at 10:54 PM, Matt Chotin wrote:









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