Re: [flexcoders] Printing Invisible Components

2007-04-28 Thread Jeffry Houser


 There is an attribute called includeInLayout (or something 
similar).  Have you tried that?


At 04:25 PM 4/27/2007, Sastry wrote:


Hi All,

I am having issue with printing Tabs in Flex. I have a Tab Navigator
with multiple tabs. In some of the tabs I have Images and Panels. There
is a print button. When it is clicked, I show all the items which are
present in all the tabs and the user can select what items he can
print. If the user selects an image or panel which is currently
invisible on the screen that is an image or panel which is in another
tab then the print is coming blank.

Any thoughts on this?

Sastry




--
Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com
Connecticut Macromedia User Group: http://www.ctmug.com


Re: [flexcoders]How does Flex work on Mobile devices

2007-04-28 Thread mark_j_ellul
--- In flexcoders@yahoogroups.com, Paul J DeCoursey [EMAIL PROTECTED] wrote:

 dorkie dork from dorktown wrote:
  My boss asked, What options does Flex have for deploying to mobile
  devices?
 
 None at the moment, but I've heard that they are working on a way to 
 compile Flex for Flash Lite which works on many mobile devices.


Anyone from Adobe care to comment? A technology to run flex apps
(probably with reduced api) in Flash Lite would be of interested to
everyone on this group. Even if they don't know it yet ;o)

Regards

Mark



[flexcoders] Menu bar root menu click

2007-04-28 Thread Devin
I'm trying to create a menu navigation bar for a site I'm building.  
I'm having trouble figuring out away to execute a function when a 
root menuitem is clicked.  If you look at the following example if 
you click the home page link nothing happens.  Is there away to fire 
off a function when you click the homepage item?

?xml version=1.0?
!-- Simple example to demonstrate the MenuBar control. --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
creationComplete=initCollections(); 

mx:Script
![CDATA[

import mx.events.MenuEvent;
import mx.controls.Alert;
import mx.collections.*;

[Bindable]
public var menuBarCollection:XMLListCollection;

private var menubarXML:XMLList =

menuitem label=Home data=top/
menuitem label=Menu With Items data=top
menuitem label=MenuItem 2-A type=check  
data=2A/
menuitem type=separator/
menuitem label=MenuItem 2-B 
menuitem label=SubMenuItem 3-A 
type=radio
groupName=one data=3A/
menuitem label=SubMenuItem 3-B 
type=radio
groupName=one data=3B/
/menuitem
/menuitem
/;

// Event handler to initialize the MenuBar control.
private function initCollections():void {
menuBarCollection = new XMLListCollection(menubarXML);
}

// Event handler for the MenuBar control's itemClick 
event.
private function menuHandler(event:MenuEvent):void  {
// Don't open the Alert for a menu bar item that 
// opens a popup submenu.
Alert.show(Label:  + [EMAIL PROTECTED] + \n 
+ Data:  + [EMAIL PROTECTED], Clicked menu item);
  
}
 ]]
/mx:Script

mx:Panel title=MenuBar Control Example height=75% 
width=75% 
paddingTop=10 paddingLeft=10

mx:Label width=100% color=blue
   text=Select a menu item./

mx:MenuBar labelField=@label itemClick=menuHandler
(event); 
dataProvider={menuBarCollection} /

/mx:Panel
/mx:Application



[flexcoders] Copying/Pasting from MS Word to a Rich Text Editor inside a Flex App

2007-04-28 Thread Mike Anderson
Hello All,

Has there been any more headway made, regarding copying and pasting from
a Word Document to a RTE within a Flex Application, and have the ability
for the Flex App to decode all the MS Word Control Codes on the fly (and
finally, having the document show up almost identical in the RTE).

I know there are lots of different ways to render text - HTML, Rich Text
Control Codes, and then the bulky MS Word Control Codes...  This has
been the biggest challenge I think, without having some other active
control sitting in the middle, which handles all the decoding.

I think with Apollo, this will be much more realistic, since it has more
direct access to the local PC's system resources, and can potentially
use automation.

Could anybody please chime in on this thread, and indicate if there are
any new solutions out there?

Thanks in advance for all your help,

Mike


Re: [flexcoders] Copying/Pasting from MS Word to a Rich Text Editor inside a Flex App

2007-04-28 Thread Fabio Yasusi Yamamoto

you can embbed a html inside your flex app.

and in your html you can use something like fckeditor or tinyeditor


On 4/28/07, Mike Anderson [EMAIL PROTECTED] wrote:


  Hello All,

Has there been any more headway made, regarding copying and pasting from
a Word Document to a RTE within a Flex Application, and have the ability
for the Flex App to decode all the MS Word Control Codes on the fly (and
finally, having the document show up almost identical in the RTE).

I know there are lots of different ways to render text - HTML, Rich Text
Control Codes, and then the bulky MS Word Control Codes... This has
been the biggest challenge I think, without having some other active
control sitting in the middle, which handles all the decoding.

I think with Apollo, this will be much more realistic, since it has more
direct access to the local PC's system resources, and can potentially
use automation.

Could anybody please chime in on this thread, and indicate if there are
any new solutions out there?

Thanks in advance for all your help,

Mike
 





--
[]'s
Fabio Yasusi Yamamoto
[EMAIL PROTECTED]
Tel: +55-11-4063-0047


[flexcoders] Re: TitleList/HorizList REFRESH/UPDATE problem using httpservice

2007-04-28 Thread Fabio Yasusi Yamamoto

sorry to re-post this message, but after 1 week i'm still lost. my deadline
in very near and my only solution so far is to change all my
horizlist/tilelist to List, i can 't believe its is a flex bug. has to be
some explanation why this occurs :/



On 4/25/07, Fabio Yasusi Yamamoto [EMAIL PROTECTED] wrote:


Hi

i 've got very weird situation, for some reason TileList ( orr
HorizontalList ) stop responding after i submit a httpservice.send() for a
second time. ( the first time everything works ).
All items becomes unselectable until i use the scroolbar.

If i use mx:List, everything works. using the same itemRenderer and same
properties. The problem occurs only wirh TileList and HorizontalList

its is not cache, since the (real) application uses the headers to ensure
that ( and also uses post forms ).

i 'm not sure if i'm  doing something wrong, but i spend  2 days searching
for similar reports, i got 5-7 similar problems, but i found no solution.


i made a very little example:
http://www.hostname.org/Test2/bin/Test2.html
( just click the button twice , and you should see the items are not
selectable anymore)
( now try to move the scroll to the end, and go back to start , the items
are back to normal)

If i do:
thumbs.scrollToIndex(lastitem_pos) and
thumbs.scrollToIndex(0)

it also 'fixes' the items. ( but only if there is a scrolllbar ).

Anybody have any ideia how to fix that? or have a working titlelist/horizlist
that reload/refresh using httpservice?

Thanks!





--
[]'s
Fabio Yasusi Yamamoto
[EMAIL PROTECTED]
Tel: +55-11-4063-0047


[flexcoders] Datagrid auto sorting. Has anyone done this?

2007-04-28 Thread Mark Piller
Do you know how to configure a datagrid to automatically sort in a
particular column before the data is rendered?

Thanks,
Mark



Re: [flexcoders] Re: TitleList/HorizList REFRESH/UPDATE problem using httpservice

2007-04-28 Thread Manish Jethani
On 4/28/07, Fabio Yasusi Yamamoto [EMAIL PROTECTED] wrote:

 On 4/25/07, Fabio Yasusi Yamamoto [EMAIL PROTECTED] wrote:

  i made a very little example:
  http://www.hostname.org/Test2/bin/Test2.html
  ( just click the button twice , and you should see the items are not 
  selectable anymore)
  ( now try to move the scroll to the end, and go back to start , the items 
  are back to normal)

Looks like it has something to do with the recycling of item
renderers. The behaviour I just saw is that the 4th item in the 1st
row and the entire 2nd row are responding to the mouse, but not the
first three items. So I'm guessing there's something blocking events
there.

  If i do:
  thumbs.scrollToIndex(lastitem_pos) and
  thumbs.scrollToIndex(0)
 
  it also 'fixes' the items. ( but only if there is a scrolllbar ).

Are you sure the problem occurs even when there's no scrollbars?

Can you try calling invalidateList() when the data is updated?


Re: [flexcoders] Datagrid auto sorting. Has anyone done this?

2007-04-28 Thread Manish Jethani
On 4/28/07, Mark Piller [EMAIL PROTECTED] wrote:
 Do you know how to configure a datagrid to automatically sort in a
 particular column before the data is rendered?

Basically you just set the sort on the collection, and the DataGrid
will appropriately display a sort arrow on the header. So it's the
collection you need to sort.

You can see an example of how to sort a collection here:

http://www.adobe.com/livedocs/flex/2/langref/mx/collections/Sort.html


Re: [flexcoders] Copying/Pasting from MS Word to a Rich Text Editor inside a Flex App

2007-04-28 Thread Manish Jethani
On 4/28/07, Mike Anderson [EMAIL PROTECTED] wrote:

 Has there been any more headway made, regarding copying and pasting from
 a Word Document to a RTE within a Flex Application, and have the ability
 for the Flex App to decode all the MS Word Control Codes on the fly (and
 finally, having the document show up almost identical in the RTE).

You can try something like this but for Word to RTE:

http://mannu.livejournal.com/348299.html

I don't know how Word formatting looks on the clipboard. Try copying
something and pasting it into Notepad: that's what you need to convert
to rich text format (RTE).


[flexcoders] Re: setCredentials and AMFPHP 1.9 beta 2

2007-04-28 Thread Stefan Schmalhaus
Any news on this topic? Or do we have to wait until AMFPHP 2.0 is
released?



Re: [flexcoders] Re: Programatic Icon

2007-04-28 Thread Michael Schmalle

I agree, styles are better for styles. Again, just answering some ones
question. What I have learned in flex is, there a re a lot of ways to climb
the mountain.


Ok, because I'm a big loser and I don't like using mx_internal... sorry

that I'm so lame Mike

Thats a joke right? I don't like it either unless it gets me somewhere.

if(this.parent!= null  this.parent is UIComponent) {
   if((this.parent as UIComponent).getStyle(arrowColor)) {
_color = (this.parent as
UIComponent).getStyle(arrowColor);
  }
}

You could replace that block with;

   var color:uint;
   if (parent is IStyleClient)
  color = IStyleClient(parent).getStyle(arrowColor);
   if (!isNaN(color))
  _color = color;



Peace, Mike


On 4/27/07, Paul J DeCoursey [EMAIL PROTECTED] wrote:


  Ok, because I'm a big loser and I don't like using mx_internal... sorry
that I'm so lame Mike... but here is a modified version that doesn't
use mx_internal.

Basically three things change from Mikes example.

private function changeIcon(event:MouseEvent):void {
myPanel.setStyle(arrowColor, 0xff);
}

I set a style rather than a property on an object we can't safely access.

on the Icon class I add this metadata
[Style(name=arrowColor,type=uint,format=Color,inherit=yes)]

and updateDisplayList becomes this

override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
if(this.parent!= null  this.parent is UIComponent) {
if((this.parent as UIComponent).getStyle(arrowColor)) {
_color = (this.parent as
UIComponent).getStyle(arrowColor);
}
}
graphics.clear();
graphics.beginFill(_color, 1);
graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
graphics.endFill();
}

Might be possible to improve the logic in the part where it gets the
style.

Paul


Michael Schmalle wrote:
 Ok, I got it;

 MXML APP
 --
 ?xml version=1.0 encoding=utf-8?
 mx:Application
 xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute


 mx:Script
 ![CDATA[

 import mx.core.mx_internal;
 use namespace mx_internal;

 private function changeIcon(event:MouseEvent):void
 {
 myPanel.titleIconObject.color = 0xFFCC00;
 }

 ]]
 /mx:Script

 mx:Panel id=myPanel
 titleIcon={Icon}
 title=Icon Panel

 mx:List/

 mx:Button
 label=Change
 click=changeIcon(event)/

 /mx:Panel

 /mx:Application


 Icon Class
 --

 package
 {

 import mx.skins.ProgrammaticSkin;

 public class Icon extends ProgrammaticSkin
 {
 private var _color:uint = 0xFF;

 public function get color():uint
 {
 return _color;
 }
 public function set color(value:uint):void
 {
 _color = value;
 validateDisplayList();
 }

 public function Icon()
 {
 super();
 }

 override public function get measuredHeight():Number
 {
 return 16;
 }

 override public function get measuredWidth():Number
 {
 return 16;
 }

 override protected function updateDisplayList(unscaledWidth:Number,

 unscaledHeight:Number):void
 {
 super.updateDisplayList(unscaledWidth, unscaledHeight);

 graphics.clear();
 graphics.beginFill(_color, 1);
 graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
 graphics.endFill();
 }
 }
 }


 Peace, Mike


 





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

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

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


Re: [flexcoders] Re: TitleList/HorizList REFRESH/UPDATE problem using httpservice

2007-04-28 Thread Fabio Yasusi Yamamoto

Yes, the problem happens with or without scrollbars.

invalidadeList and/or InvalidadeDisplayList had no effect.


On 4/28/07, Manish Jethani [EMAIL PROTECTED] wrote:


Are you sure the problem occurs even when there's no scrollbars?

Can you try calling invalidateList() when the data is updated?
 __._,_._



[flexcoders] where do I go to get the com.adobe.ac.mxeffects package?

2007-04-28 Thread simonjpalmer
probably a bit of a newbie question, but I don't appear to have this
library anywhere and I'm wondering if it is a standard part of flex or
whether I have to go and grab it from somewhere.

Can anyone point me in the right direction?

Thanks
Simon



Re: [flexcoders] Re: Programatic Icon

2007-04-28 Thread Paul J DeCoursey
Michael Schmalle wrote:
 I agree, styles are better for styles. Again, just answering some ones
 question. What I have learned in flex is, there a re a lot of ways to 
 climb
 the mountain.

 Ok, because I'm a big loser and I don't like using mx_internal... sorry
 that I'm so lame Mike

 Thats a joke right? I don't like it either unless it gets me somewhere.
yes, it's a joke.

 if(this.parent!= null  this.parent is UIComponent) {
if((this.parent as UIComponent).getStyle(arrowColor)) {
 _color = (this.parent as
 UIComponent).getStyle(arrowColor);
   }
 }

 You could replace that block with;

var color:uint;
if (parent is IStyleClient)
   color = IStyleClient(parent).getStyle(arrowColor);
if (!isNaN(color))
   _color = color;

thanks, that is much better.


 Peace, Mike


 On 4/27/07, Paul J DeCoursey [EMAIL PROTECTED] wrote:

   Ok, because I'm a big loser and I don't like using mx_internal... 
 sorry
 that I'm so lame Mike... but here is a modified version that doesn't
 use mx_internal.

 Basically three things change from Mikes example.

 private function changeIcon(event:MouseEvent):void {
 myPanel.setStyle(arrowColor, 0xff);
 }

 I set a style rather than a property on an object we can't safely 
 access.

 on the Icon class I add this metadata
 [Style(name=arrowColor,type=uint,format=Color,inherit=yes)]

 and updateDisplayList becomes this

 override protected function
 updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
 super.updateDisplayList(unscaledWidth, unscaledHeight);
 if(this.parent!= null  this.parent is UIComponent) {
 if((this.parent as UIComponent).getStyle(arrowColor)) {
 _color = (this.parent as
 UIComponent).getStyle(arrowColor);
 }
 }
 graphics.clear();
 graphics.beginFill(_color, 1);
 graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
 graphics.endFill();
 }

 Might be possible to improve the logic in the part where it gets the
 style.

 Paul


 Michael Schmalle wrote:
  Ok, I got it;
 
  MXML APP
  --
  ?xml version=1.0 encoding=utf-8?
  mx:Application
  xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
 
 
  mx:Script
  ![CDATA[
 
  import mx.core.mx_internal;
  use namespace mx_internal;
 
  private function changeIcon(event:MouseEvent):void
  {
  myPanel.titleIconObject.color = 0xFFCC00;
  }
 
  ]]
  /mx:Script
 
  mx:Panel id=myPanel
  titleIcon={Icon}
  title=Icon Panel
 
  mx:List/
 
  mx:Button
  label=Change
  click=changeIcon(event)/
 
  /mx:Panel
 
  /mx:Application
 
 
  Icon Class
  --
 
  package
  {
 
  import mx.skins.ProgrammaticSkin;
 
  public class Icon extends ProgrammaticSkin
  {
  private var _color:uint = 0xFF;
 
  public function get color():uint
  {
  return _color;
  }
  public function set color(value:uint):void
  {
  _color = value;
  validateDisplayList();
  }
 
  public function Icon()
  {
  super();
  }
 
  override public function get measuredHeight():Number
  {
  return 16;
  }
 
  override public function get measuredWidth():Number
  {
  return 16;
  }
 
  override protected function updateDisplayList(unscaledWidth:Number,
 
  unscaledHeight:Number):void
  {
  super.updateDisplayList(unscaledWidth, unscaledHeight);
 
  graphics.clear();
  graphics.beginFill(_color, 1);
  graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
  graphics.endFill();
  }
  }
  }
 
 
  Peace, Mike
 

  







[flexcoders] Using RPC for an RSS feed reader in an FDS project

2007-04-28 Thread simonjpalmer
I have an FDS app and I want to add an RSS feed reader to the main
page, allowing the user to supply the URL of the feed they want to
display.  I have a nice ticker based feed reader which I developed
separately using an HTTPService.  When I drop it into my fds app I get
all sorts of errors about using proxies.

Some research through the docs would appear to suggest that I need
pre-configured destinations for my HTTPService because I am using FDS.
 That in turn would seem to imply that I can't have customisable URL's
for the feed loactions.  Am I wrong?

How do I go about finding out how to do this?  Anyone tried anything
similar?

Thanks
Simon



RE: [flexcoders] addChild problems

2007-04-28 Thread Tracy Spratt
Make sure the dynamically added component has a non-zero height and
width.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason C Reynolds
Sent: Wednesday, April 25, 2007 6:01 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] addChild problems

 

Does not work just means it isn't showing up on screen - something is
wrong with how I am adding stuff to the display list.

 

MainApp has the canvas object, and the content object - creates an
instance of any class that extends my ContentTemplate class.

I don't see why canvas.addChild(contentObject) does not work.

Passing a reference of that canvas to the constructor, then
canvasReference.addChild(anyObject) works.

 

So in MainApp I have something like this:

 

contentHolder = new Canvas();

this.addChild(contentHolder);

contentScreen = new SampleScreen(contentHolder);

// SampleScreen extends a template class that extends UIComponent

 

Inside SampleScreen:

question = new Text();

question.text = some text;

contentHolder.addChild(question);

 

All this works

 

But, with all these classes that are going to extend SampleScreen I
really don't want to pass that reference to contentHolder around.

What is confusing me, is why I couldn't do this:

 

MainApp

contentHolder = new Canvas();

this.addChild(contentHolder);

contentScreen =  new SampleScreen();

contentHolder.addChild(contentScreen); // HERE is what I want to work,
contentScreen extends UIComponent - so in my mind it should work (show
up on screen).

 

SampleScreen

question = new Text();

question.text = some text;

this.addChild(question); // HERE is the other change from the working
version. Since SampleScreen extends UIComponent, and above I have added
it to the canvas' display list, why is it not showing up?

 

 

Thanks much for looking... Jason

 

 

 

 

 

- Original Message - 

From: Manish Jethani mailto:[EMAIL PROTECTED]  

To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  

Sent: Wednesday, April 25, 2007 4:11 PM

Subject: Re: [flexcoders] addChild problems

 

If you can show the heirarchy of your objects and which one
you're
trying to add that's failing, that'll help. Also explain what
does
not work means (do you get an error?).

On 4/26/07, Jason C Reynolds [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:


 Sorry for the vauge subject... here's what I'm trying to do
that does not
 work.

 I am creating a MainApp class instance in my mxml project
file. I want to
 use this to control the basic common stuff throughout the
application, and I
 have made an instance of a Canvas object that I will be using
as a container
 to the constantly changing part of the screen. I made a
ContentTemplate
 class that extends UIComponent (I had problems with addChild
in actionscript
 before I realized if it's not pure as3 it needs to be a
UIComponent to
 work). From this ContentTemplate class, I have created several
classes that
 extend it and want to use addChild/removeChild to change that
canvas part of
 the program.

 So, in MainApp I have a variable contentScreen of type
ContentTemplate. Lets
 just say all ContentTemplate is doing is making a new text
control. I tried
 to make this text control in the ContentTemplate, and since it
is extending
 UIComponent - I thought just a this.addChild would work...
Then in mainApp
 just add it to the display list of the Canvas object. This
does not work.

 If I pass a reference to that canvas object in the
constructor, then
 addChild from there it works.

 Hopefully I somewhat clear what I'm trying to do - and anyone
have any
 suggestions why this would not work?

 Thanks for any response, Jason



 

 



Re: [flexcoders] where do I go to get the com.adobe.ac.mxeffects package?

2007-04-28 Thread Dave Carabetta

Assuming you're using Flex 2.0.1 (because this is the updated package),
you're looking for the Distortion Effects found here:

http://weblogs.macromedia.com/auhlmann/archives/DistortionEffects.zip

And here's the supporting blog entry for how to use them:

http://weblogs.macromedia.com/auhlmann/archives/2007/03/distortion_effe.cfm

They are not part of the standard Flex framework.

Regards,
Dave.
Cynergy Systems, Inc.


On 4/28/07, simonjpalmer [EMAIL PROTECTED] wrote:


  probably a bit of a newbie question, but I don't appear to have this
library anywhere and I'm wondering if it is a standard part of flex or
whether I have to go and grab it from somewhere.

Can anyone point me in the right direction?

Thanks
Simon





[flexcoders] Using Xml data in Chart

2007-04-28 Thread RDK
Hi,
   
  Thanks in Advance.
   
  I am new to Flex where i am using Xml Data in Columnchart how to connect the 
xml file with dataprovider. please kindly let me know.
   
  Regards,
  R.Denesh Kumar
   

   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.

Re: [flexcoders] Multiuser Applications (Games)

2007-04-28 Thread Jobe Makar
And don't forget ElectroServer :)


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
  - Original Message - 
  From: Teddy Setiawan 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, April 27, 2007 11:30 PM
  Subject: RE: [flexcoders] Multiuser Applications (Games)



  I use FMS for the real time multiplayer game , 
  for free flash server beside FMS you should check RED5, its open source flash 
server .


  Regards

  teddy





To: flexcoders@yahoogroups.com
From: [EMAIL PROTECTED]
Date: Sat, 28 Apr 2007 00:32:29 -0200
Subject: Re: [flexcoders] Multiuser Applications (Games)




Joel, I don't think AMFPHP would fit for this purpose. You'd better use a 
Java server with Smartfox for instance. You would than connect to it through 
socket. I have already acomplished that using my home-made Java server for 
games. :) 


 
On 4/27/07, lowdown976 [EMAIL PROTECTED] wrote: 
  I am working on a little No Limit Hold 'em game in Flex. I am going to
  use Cairngorm, because I love the basic structure, and I would like to
  use PHP with AMFPHP 1.9 to handle my services. Both are more familiar 
  to me thatn anything else, but I love to learn new things so I am open
  to suggestion.

  Now here is where the tricky bit comes in. I can't for the life of me
  find a method for allowing real-time multiplayer capabilities. Will I 
  need to use the LDS? Coldfusion?

  I just need some direction. I've searched in vane. Once I have a
  general area to focus my learning energies, I think I can get this
  thing finished.

  Cheers,

  Joel






-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org 



--
  Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy! Try it! 

   

Re: [flexcoders] [OT] php framework

2007-04-28 Thread Robert Cuadra

If you are doing very basic i/o to a database then php5 with cake is very
easy to setup and use. The more tricks you try to pull, the quicker you will
run into the limitations and annoyances of php.

-Robert

On 4/27/07, Weyert de Boer [EMAIL PROTECTED] wrote:


  Yeah, PHP is nice I am using it for a major project. If I would have to
rewrite it would probably be in .NET though. There are some serious
issues with PHP5 not limited to the OOP part. Also there lovely backward
compatibility that is near non-existence g

Yours,
Weyert
 



[flexcoders] Re: Multiuser Applications (Games)

2007-04-28 Thread lowdown976
--- In flexcoders@yahoogroups.com, Andr� Rodrigues Pena
[EMAIL PROTECTED] wrote:

 Joel, I don't think AMFPHP would fit for this purpose. You'd better
use a
 Java server with Smartfox for instance. You would than connect to it
through
 socket. I have already acomplished that using my home-made Java
server for
 games. :)
 


That is what I am thinking. I was messing with LDS tonight, but this
project is just for a small group of friends.

Are you going to release your server at all? I think for updating a
poker table, my needs would be very small. I'd love to see what you've
made.



Re: [flexcoders] How do I load variables from a loaded swf?

2007-04-28 Thread Johannes Boyne
Thanks Tracy!

I didn't know, that it is so easy ;)

Johannes


Tracy Spratt schrieb:
 
 
 Use the SWFLoader's content property to access public members of the
 loaded content. You'll need to listen for the applicationComplete
 event before you can access the content, though.
 
 Tracy
 
 -Original Message-
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On
 Behalf Of Johannes Boyne
 Sent: Thursday, April 26, 2007 8:42 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] How do I load variables from a loaded swf?
 
 Hey,
 
 my problem is this:
 
 I have loaded a SWF(Flash9)-File in to my Flex App.
 Now I want to load some variables out of the SWF-File, but I
 haven't the faintest idea how to do this on an elegant and
 performance full way.
 
 Thanks!
 
 Johannes
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 


RE: [flexcoders] Click through a Container

2007-04-28 Thread Gordon Smith
 Isn't there something like turn shield on or off? 
 
Doh! I forgot! Try setting the mouseEnabled property of your Canvas to
false.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudia Barnal
Sent: Thursday, April 26, 2007 3:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Click through a Container



Hi Gordon,

I do need as much interactivity as possible :)

Isn't there something like turn shield on or off? I noticed that if you
don't define a background color or alpha, you can interact with the
button. 

As for the actual WHY question... the answer is: The designer wants it.
It is really not just one button under the translucent piece... it is a
part of the application, and the button and other controls happens to be
right there. 

Thanks,
Claudia


On 4/26/07, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote: 



I don't think this is easy to do. How much interactivity with
the Button do you actually need? When you roll over the button, do you
need it to highlight? When you click, do you need the button to depress?
Or do you just need the button's click handler to execute?
 
And I'm curious... why do you need to have a translucent Canvas
over a Button?
 
- Gordon



From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com http://yahoogroups.com ] On Behalf
Of Claudia Barnal
Sent: Thursday, April 26, 2007 3:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Click through a Container




Hi,

How can I click through a Container (Canvas in my case) that has
a
backgroundColor set and a 0.2 backgroundAlpha.

I want to be able to interact with a button that is under the
Container.

Thanks,
Claudia







 


[flexcoders] MouseUP event dont't trigger

2007-04-28 Thread eveyeti
Hi,
I have an issue on UIComponent, inside this class there is addListener
Listening mouseUp event but it never trigger.

this is my code:

package
{
 import mx.core.UIComponent;
 import mx.controls.Alert;
 import flash.events.MouseEvent;

 public class MiComponente  extends UIComponent
 {
 public function MiComponente(){
 super();

this.addEventListener(MouseEvent.MOUSE_UP,onMouseUp,false,0,true);

 }
 public function onMouseUp(evt:MouseEvent):void{
 Alert.show(it' works,YEZ);
 }
 }
}



[flexcoders] Mapping SOAP response onto a DataGrid

2007-04-28 Thread sebastien_arbogast
After reading the Use Webservices lesson, I tried to prototype an
application with a DataGrid to display items retrieved from a webservice
of my own.
Here is my Flex application:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=basementIssues.getAllIssues.send()
 mx:WebService id=basementIssues

wsdl=http://localhost:8080/basement-ws/services/IssuesService?wsdl;
 useProxy=false
 mx:operation name=getAllIssues
 mx:request
 /mx:request
 /mx:operation
 mx:operation name=createIssue
 mx:request
 description{issueDescription.text}/description
 title{issueTitle.text}/title
 /mx:request
 /mx:operation
 /mx:WebService
 mx:Panel layout=absolute right=10 left=10 top=10
bottom=10 title=Basement Issues
 mx:DataGrid right=0 left=0 top=0 height=265
dataProvider={basementIssues.getAllIssues.lastResult.issueListItem}
 mx:columns
 mx:DataGridColumn headerText=Title
dataField=title/
 mx:DataGridColumn headerText=Creation Date
dataField=creationDate/
 mx:DataGridColumn headerText=Status
dataField=status/
 /mx:columns
 /mx:DataGrid
 mx:Button label=New issue
click=basementIssues.createIssue.send();
basementIssues.getAllIssues.send(); bottom=10 right=10/
 mx:RichTextEditor right=10 id=issueDescription bottom=40
top=303 left=91
 /mx:RichTextEditor
 mx:TextInput right=10 left=91 id=issueTitle top=273/
 mx:Label x=10 y=275 text=Title/
 mx:Label x=10 y=304 text=Description/
 /mx:Panel
/mx:Application

The creation works great (which I can see in my server log), meaning
that the service is correctly accessible, with a crossdomain.xml set up
and everything.
And it seems I have a problem mapping the results of getAllIssues call.
Here is the SOAP response I typically get from the webservice.

soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 soapenv:Body
 getAllIssuesResponse
xmlns=http://org.epseelon.basement.issues.business;
 getAllIssuesReturn
 issueListItem
 creationDatevendredi 27 avril 2007 18 h 46
CEST/creationDate
 id1/id
 statusNouvelle/status
 titleIssue 1/title
 /issueListItem
 /getAllIssuesReturn
 /getAllIssuesResponse
 /soapenv:Body
/soapenv:Envelope

There must be something wrong in my dataProvider because nothing is
displayed.



[flexcoders] Re: Howto dynamicly bind XML element to a TextInput component using BindingUtils?

2007-04-28 Thread Devin
can you just recall BindingUtils.bindProperty(txtDemo, text, 
xml, label); in your click function?

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

 The question is: Howto dynamicly bind XML element to a TextInput 
 component using BindingUtils?
 
 Now I use following codes:
 !--
 [Bindable] private var xml: XML = itemlabellist1/label/item;
 
 // initialize code for application's initialize event
 private function init(): void {
 BindingUtils.bindProperty(txtDemo, text, xml, label);
 }
 
 //click event
 private function test(): void {
 xml.label = something;
BindingUtils.bindProperty(txtDemo, text, xml, label);
 // txtDemo.executeBindings(); // no use anymore
 }
 --
 mx:TextInput id=txtDemo/
 mx:Button label=Test click=test()/
 
 //--
 My really idea is when bindable xml property is changed, then the 
 textinput will be updated as hoped. However, no update happens to 
me 
 when I click the Test button.
 
 But, if I make codes like that:
 mx: TextInput id=txtDemo text={xml.label}/
 the text will updated when xml changs.
 
 So, what happened, I indeed need the dynamicly bind to the 
textinput 
 compont.
 Help me. thanks.





Re: [flexcoders] addChild problems

2007-04-28 Thread Manish Jethani
On 4/26/07, Jason C Reynolds [EMAIL PROTECTED] wrote:

 MainApp
 contentHolder = new Canvas();
 this.addChild(contentHolder);
 contentScreen =  new SampleScreen();
 contentHolder.addChild(contentScreen); // HERE is what I want to work, 
 contentScreen extends UIComponent - so in my mind it should work (show up on 
 screen).

 SampleScreen
 question = new Text();
 question.text = some text;
 this.addChild(question); // HERE is the other change from the working version.

So if you add the Text object directly to the Canvas, it works, but,
if there's a UIComponent in between, it doesn't.

 Canvas = UIComponent = Text // doesn't work
 Canvas = Text // works

Suggestions:

 1)  Check question.parent.parent ... is it pointing to the Canvas?
 2)  Compile with -debug and see if you're getting a runtime error
(and see the stack trace)
 3)  Are you overriding measure() in your UIComponent? If not, at
least set its width and height explicitly.


Re: [flexcoders] MouseUP event dont't trigger

2007-04-28 Thread Daniel Freiman

There could be a lot of reasons why this is happening.  For starters, check
out my FAQ page at:

http://nondocs.blogspot.com/2007/04/flexfaqmouseevents.html

If none of those things are the problem, then you're going to need to
provide some more detail so we can figure out what other weird things might
be going on.

- Dan Freiman

On 4/28/07, eveyeti [EMAIL PROTECTED] wrote:


  Hi,
I have an issue on UIComponent, inside this class there is addListener
Listening mouseUp event but it never trigger.

this is my code:

*package
{
import mx.core.UIComponent;
import mx.controls.Alert;
import flash.events.MouseEvent;

public class MiComponente  extends UIComponent
{
public function MiComponente(){
super();
this.addEventListener(MouseEvent.MOUSE_UP
,onMouseUp,false,0,true);

}
public function onMouseUp(evt:MouseEvent):void{
Alert.show(it' works,YEZ);
}
}
}*
 



Re: [flexcoders] Mapping SOAP response onto a DataGrid

2007-04-28 Thread Mickael RUELLAN
What's going on if you replace your dataProvider by :

dataProvider={basementIssues.getAllIssues.lastResult.getAllIssuesReturn.issueListItem}

Mika

sebastien_arbogast a écrit :

 After reading the Use Webservices lesson, I tried to prototype an 
 application with a DataGrid to display items retrieved from a 
 webservice of my own.
 Here is my Flex application:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=absolute creationComplete=basementIssues.getAllIssues.send()
 mx:WebService id=basementIssues
 
 wsdl=http://localhost:8080/basement-ws/services/IssuesService?wsdl;
 useProxy=false
 mx:operation name=getAllIssues
 mx:request
 /mx:request
 /mx:operation
 mx:operation name=createIssue
 mx:request
 description{issueDescription.text}/description
 title{issueTitle.text}/title
 /mx:request
 /mx:operation
 /mx:WebService
 mx:Panel layout=absolute right=10 left=10 top=10 
 bottom=10 title=Basement Issues
 mx:DataGrid right=0 left=0 top=0 height=265 
 dataProvider={basementIssues.getAllIssues.lastResult.issueListItem}
 mx:columns
 mx:DataGridColumn headerText=Title dataField=title/
 mx:DataGridColumn headerText=Creation Date 
 dataField=creationDate/
 mx:DataGridColumn headerText=Status 
 dataField=status/
 /mx:columns
 /mx:DataGrid
 mx:Button label=New issue 
 click=basementIssues.createIssue.send(); 
 basementIssues.getAllIssues.send(); bottom=10 right=10/
 mx:RichTextEditor right=10 id=issueDescription 
 bottom=40 top=303 left=91
 /mx:RichTextEditor
 mx:TextInput right=10 left=91 id=issueTitle top=273/
 mx:Label x=10 y=275 text=Title/
 mx:Label x=10 y=304 text=Description/
 /mx:Panel
 /mx:Application

 The creation works great (which I can see in my server log), meaning 
 that the service is correctly accessible, with a crossdomain.xml set 
 up and everything.
 And it seems I have a problem mapping the results of getAllIssues 
 call. Here is the SOAP response I typically get from the webservice.

 soapenv:Envelope 
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
 xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 soapenv:Body
 getAllIssuesResponse 
 xmlns=http://org.epseelon.basement.issues.business;
 getAllIssuesReturn
 issueListItem
 creationDatevendredi 27 avril 2007 18 h 46 
 CEST/creationDate
 id1/id
 statusNouvelle/status
 titleIssue 1/title
 /issueListItem
 /getAllIssuesReturn
 /getAllIssuesResponse
 /soapenv:Body
 /soapenv:Envelope

 There must be something wrong in my dataProvider because nothing is 
 displayed.

  


Re: [flexcoders] Mapping SOAP response onto a DataGrid

2007-04-28 Thread André Rodrigues Pena

Man I had a bad time time trying to fit the SOAP response of a SQL
SERVER 2005 WEBMETHOD in a DataGrid. I gave up!

On 4/28/07, Mickael RUELLAN [EMAIL PROTECTED] wrote:


  What's going on if you replace your dataProvider by :

dataProvider={
basementIssues.getAllIssues.lastResult.getAllIssuesReturn.issueListItem}

Mika

sebastien_arbogast a écrit :

 After reading the Use Webservices lesson, I tried to prototype an
 application with a DataGrid to display items retrieved from a
 webservice of my own.
 Here is my Flex application:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=basementIssues.getAllIssues.send()
 mx:WebService id=basementIssues

 wsdl=http://localhost:8080/basement-ws/services/IssuesService?wsdl;
 useProxy=false
 mx:operation name=getAllIssues
 mx:request
 /mx:request
 /mx:operation
 mx:operation name=createIssue
 mx:request
 description{issueDescription.text}/description
 title{issueTitle.text}/title
 /mx:request
 /mx:operation
 /mx:WebService
 mx:Panel layout=absolute right=10 left=10 top=10
 bottom=10 title=Basement Issues
 mx:DataGrid right=0 left=0 top=0 height=265
 dataProvider={basementIssues.getAllIssues.lastResult.issueListItem}
 mx:columns
 mx:DataGridColumn headerText=Title dataField=title/
 mx:DataGridColumn headerText=Creation Date
 dataField=creationDate/
 mx:DataGridColumn headerText=Status
 dataField=status/
 /mx:columns
 /mx:DataGrid
 mx:Button label=New issue
 click=basementIssues.createIssue.send();
 basementIssues.getAllIssues.send(); bottom=10 right=10/
 mx:RichTextEditor right=10 id=issueDescription
 bottom=40 top=303 left=91
 /mx:RichTextEditor
 mx:TextInput right=10 left=91 id=issueTitle top=273/
 mx:Label x=10 y=275 text=Title/
 mx:Label x=10 y=304 text=Description/
 /mx:Panel
 /mx:Application

 The creation works great (which I can see in my server log), meaning
 that the service is correctly accessible, with a crossdomain.xml set
 up and everything.
 And it seems I have a problem mapping the results of getAllIssues
 call. Here is the SOAP response I typically get from the webservice.

 soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 soapenv:Body
 getAllIssuesResponse
 xmlns=http://org.epseelon.basement.issues.business;
 getAllIssuesReturn
 issueListItem
 creationDatevendredi 27 avril 2007 18 h 46
 CEST/creationDate
 id1/id
 statusNouvelle/status
 titleIssue 1/title
 /issueListItem
 /getAllIssuesReturn
 /getAllIssuesResponse
 /soapenv:Body
 /soapenv:Envelope

 There must be something wrong in my dataProvider because nothing is
 displayed.









--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Re: Menu bar root menu click

2007-04-28 Thread gustavo.saume

Hi Devin,

the itemClickEvent only works on the items of the subMenus
you could set an clickEvent on the menuBar and check the target, if 
it's a MenuBarItem so you could get the data property with the XML.

HTH

Gus
CINet Consult



Re: [flexcoders] Click through a Container

2007-04-28 Thread Claudia Barnal

Yeah, as Juan told me, tried it and it works great :) Thanks!

So here is another question... What if I have other controls in that
container that also need mouse interactivity?

As it is, the mouseEnabled property works great if I want to click through
the container, but what if that container has controls that need to be
clicked and stuff?

Thanks again,
Claudia

On 4/27/07, Gordon Smith [EMAIL PROTECTED] wrote:


   Isn't there something like turn shield on or off?
Doh! I forgot! Try setting the mouseEnabled property of your Canvas to
false.

- Gordon


 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Claudia Barnal
*Sent:* Thursday, April 26, 2007 3:46 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Click through a Container



Hi Gordon,

I do need as much interactivity as possible :)

Isn't there something like turn shield on or off? I noticed that if you
don't define a background color or alpha, you can interact with the button.

As for the actual WHY question... the answer is: The designer wants it.
It is really not just one button under the translucent piece... it is a
part of the application, and the button and other controls happens to be
right there.

Thanks,
Claudia

On 4/26/07, Gordon Smith [EMAIL PROTECTED] wrote:

I don't think this is easy to do. How much interactivity with the
 Button do you actually need? When you roll over the button, do you need it
 to highlight? When you click, do you need the button to depress? Or do you
 just need the button's click handler to execute?

 And I'm curious... why do you need to have a translucent Canvas over a
 Button?

 - Gordon

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Claudia Barnal
 *Sent:* Thursday, April 26, 2007 3:30 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Click through a Container



 Hi,

 How can I click through a Container (Canvas in my case) that has a
 backgroundColor set and a 0.2 backgroundAlpha.

 I want to be able to interact with a button that is under the Container.

 Thanks,
 Claudia


  



[flexcoders] Re: MouseUP event dont't trigger

2007-04-28 Thread eveyeti
Thank's Daniel.

I have a detail in my code that's is answered with the FAQ. 


I lack myself to draw the pixels over entirety of component


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

 There could be a lot of reasons why this is happening.  For
starters, check
 out my FAQ page at:
 
 http://nondocs.blogspot.com/2007/04/flexfaqmouseevents.html
 
 If none of those things are the problem, then you're going to need to
 provide some more detail so we can figure out what other weird
things might
 be going on.
 
 - Dan Freiman
 




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

2007-04-28 Thread Kelly Birr
Silverlight does not require IE.  It workes on IE and Firefox under 
Windows, and Safari for Mac.  I also understand Firefox for Mac support 
is expected soon (if I've not already missed it).  It has extensive 
cross platform functionality including streaming video support. 

It also has the advantage of development under Visual Studio which is a 
HUGE plus for me.  Don't get me wrong, Eclipse is a good IDE with a good 
debugger and a great set of available (even free) 3rd party plug-ins.  
But, I've yet to find anything that can compare to the power and ease of 
Visual Studio 2005 (IMHO).

All that being said Silverlight is not without it's problems:
* It's control library is still very week.  It does not even have a real 
TextInput equivalent in the last preview release I used. 
* I does not offer any form of compilation, so it is delivered to the 
end user as XAML and Javascript source code (which sucks).
* It may also be a long time before it has anywhere close to the market 
penetration that Flash has now.

I think Silverlight will be a good contender, but I really do not see it 
replacing Flash/Flex any time in the near future.

- Kelly

Paul J DeCoursey wrote:
 Ummm no IE does not work on the Mac, the last few versions were 
 awful and barely worked. MS hasn't been developing it in at least 2 
 years, maybe three.  They stopped supporting it over a year ago.

   
 Everybody uses Windows, almost all the workstations are windows. Macs
 have IE working OK. The better solution was a cross plataform
 solution, that's why I've been working with Flex.
 





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





   



[flexcoders] Re: Multiuser Applications (Games)

2007-04-28 Thread lowdown976
--- In flexcoders@yahoogroups.com, Andr� Rodrigues Pena
[EMAIL PROTECTED] wrote:

 Joel, I don't think AMFPHP would fit for this purpose. You'd better
use a
 Java server with Smartfox for instance. You would than connect to it
through


Smartfox is awesome. Thanks for the heads up.



Re: [flexcoders] Re: Multiuser Applications (Games)

2007-04-28 Thread André Rodrigues Pena

Yes it's the best :)

On 4/28/07, lowdown976 [EMAIL PROTECTED] wrote:


  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Andr�
Rodrigues Pena
[EMAIL PROTECTED] wrote:

 Joel, I don't think AMFPHP would fit for this purpose. You'd better
use a
 Java server with Smartfox for instance. You would than connect to it
through

Smartfox is awesome. Thanks for the heads up.







--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Question about the 'includes' compiler option and SWC files.

2007-04-28 Thread gotgoose09
Is there a way to indicate 'includes' to include a folder of classes
instead of listing each one separately?

What I want: -includes 'source.classes.*' This gives me an error,
which leads me to believe that the compiler doesn't allow the *
operator as a wildcard.  This forces me to do this: -includes
'source.classes.class1' 'source.classes.class2'
'source.classes.class3'. (Is a mass include possible?)  This seems
like it could be a pain to update so I looked into putting the classes
I wanted into a SWC file.

I then created a library project in Flex Builder, put my desired
classes in there, and compiled them into a SWC.  I then included this
into my project using the 'include-library' option, and my problem was
solved.  However, the SWC I generated is 322,208KB and the SWF from my
main project is 225,261KB.  A small number classes amounting to a few
KB were included in the SWC but it is 322,208KB.  Is Flex 2 including
all the dependencies from the Flex framework in this SWC?  Also, why
is my project SWF file smaller than the SWC file?

If anyone could share their knowledge about this I would greatly
appreciate it.

Thanks in advance! :-)



Re: [flexcoders] Mapping SOAP response onto a DataGrid

2007-04-28 Thread Sebastien Arbogast

Mickael was right. I figured it out using the debugger in Flex Builder. It
works great now. This Flex thing is really amazingly simple. Thanks guys.

2007/4/28, André Rodrigues Pena [EMAIL PROTECTED]:


  Man I had a bad time time trying to fit the SOAP response of a SQL
SERVER 2005 WEBMETHOD in a DataGrid. I gave up!


On 4/28/07, Mickael RUELLAN [EMAIL PROTECTED] wrote:

   What's going on if you replace your dataProvider by :

 dataProvider={
 basementIssues.getAllIssues.lastResult.getAllIssuesReturn.issueListItem}

 Mika

 sebastien_arbogast a écrit :

 
  After reading the Use Webservices lesson, I tried to prototype an
  application with a DataGrid to display items retrieved from a
  webservice of my own.
  Here is my Flex application:
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx= http://www.adobe.com/2006/mxml;
  layout=absolute creationComplete=basementIssues.getAllIssues.send
 ()
  mx:WebService id=basementIssues
 
  wsdl= http://localhost:8080/basement-ws/services/IssuesService?wsdl;
  useProxy=false
  mx:operation name=getAllIssues
  mx:request
  /mx:request
  /mx:operation
  mx:operation name=createIssue
  mx:request
  description{issueDescription.text}/description
  title{issueTitle.text}/title
  /mx:request
  /mx:operation
  /mx:WebService
  mx:Panel layout=absolute right=10 left=10 top=10
  bottom=10 title=Basement Issues
  mx:DataGrid right=0 left=0 top=0 height=265
  dataProvider={basementIssues.getAllIssues.lastResult.issueListItem}
  mx:columns
  mx:DataGridColumn headerText=Title dataField=title/
  mx:DataGridColumn headerText=Creation Date
  dataField=creationDate/
  mx:DataGridColumn headerText=Status
  dataField=status/
  /mx:columns
  /mx:DataGrid
  mx:Button label=New issue
  click= basementIssues.createIssue.send();
  basementIssues.getAllIssues.send(); bottom=10 right=10/
  mx:RichTextEditor right=10 id=issueDescription
  bottom=40 top=303 left=91
  /mx:RichTextEditor
  mx:TextInput right=10 left=91 id=issueTitle top=273/
  mx:Label x=10 y=275 text=Title/
  mx:Label x=10 y=304 text=Description/
  /mx:Panel
  /mx:Application
 
  The creation works great (which I can see in my server log), meaning
  that the service is correctly accessible, with a crossdomain.xml set
  up and everything.
  And it seems I have a problem mapping the results of getAllIssues
  call. Here is the SOAP response I typically get from the webservice.
 
  soapenv:Envelope
  xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema 
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  soapenv:Body
  getAllIssuesResponse
  xmlns=http://org.epseelon.basement.issues.business 
  getAllIssuesReturn
  issueListItem
  creationDatevendredi 27 avril 2007 18 h 46
  CEST/creationDate
  id1/id
  statusNouvelle/status
  titleIssue 1/title
  /issueListItem
  /getAllIssuesReturn
  /getAllIssuesResponse
  /soapenv:Body
  /soapenv:Envelope
 
  There must be something wrong in my dataProvider because nothing is
  displayed.
 
 




--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org

 





--
Sébastien Arbogast

http://www.sebastien-arbogast.com


[flexcoders] Re: Programatic Icon

2007-04-28 Thread Paul Whitelock
Thanks Mike and Paul for the style solution. I changed my class so
that the icon is controlled by styles rather than using mx_internal. 

The only change I made was to override the styleChanged() function
rather than retrieving style information in updateDisplayList().

Paul



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

 I agree, styles are better for styles. Again, just answering some ones
 question. What I have learned in flex is, there a re a lot of ways
to climb
 the mountain.
 
  Ok, because I'm a big loser and I don't like using mx_internal...
sorry
 that I'm so lame Mike
 
 Thats a joke right? I don't like it either unless it gets me somewhere.
 
 if(this.parent!= null  this.parent is UIComponent) {
 if((this.parent as UIComponent).getStyle(arrowColor)) {
  _color = (this.parent as
  UIComponent).getStyle(arrowColor);
}
 }
 
 You could replace that block with;
 
 var color:uint;
 if (parent is IStyleClient)
color = IStyleClient(parent).getStyle(arrowColor);
 if (!isNaN(color))
_color = color;
 
 
 
 Peace, Mike
 
 
 On 4/27/07, Paul J DeCoursey [EMAIL PROTECTED] wrote:
 
Ok, because I'm a big loser and I don't like using
mx_internal... sorry
  that I'm so lame Mike... but here is a modified version that doesn't
  use mx_internal.
 
  Basically three things change from Mikes example.
 
  private function changeIcon(event:MouseEvent):void {
  myPanel.setStyle(arrowColor, 0xff);
  }
 
  I set a style rather than a property on an object we can't safely
access.
 
  on the Icon class I add this metadata
  [Style(name=arrowColor,type=uint,format=Color,inherit=yes)]
 
  and updateDisplayList becomes this
 
  override protected function
  updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
  super.updateDisplayList(unscaledWidth, unscaledHeight);
  if(this.parent!= null  this.parent is UIComponent) {
  if((this.parent as UIComponent).getStyle(arrowColor)) {
  _color = (this.parent as
  UIComponent).getStyle(arrowColor);
  }
  }
  graphics.clear();
  graphics.beginFill(_color, 1);
  graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
  graphics.endFill();
  }
 
  Might be possible to improve the logic in the part where it gets the
  style.
 
  Paul
 
 
  Michael Schmalle wrote:
   Ok, I got it;
  
   MXML APP
   --
   ?xml version=1.0 encoding=utf-8?
   mx:Application
   xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=absolute
  
  
   mx:Script
   ![CDATA[
  
   import mx.core.mx_internal;
   use namespace mx_internal;
  
   private function changeIcon(event:MouseEvent):void
   {
   myPanel.titleIconObject.color = 0xFFCC00;
   }
  
   ]]
   /mx:Script
  
   mx:Panel id=myPanel
   titleIcon={Icon}
   title=Icon Panel
  
   mx:List/
  
   mx:Button
   label=Change
   click=changeIcon(event)/
  
   /mx:Panel
  
   /mx:Application
  
  
   Icon Class
   --
  
   package
   {
  
   import mx.skins.ProgrammaticSkin;
  
   public class Icon extends ProgrammaticSkin
   {
   private var _color:uint = 0xFF;
  
   public function get color():uint
   {
   return _color;
   }
   public function set color(value:uint):void
   {
   _color = value;
   validateDisplayList();
   }
  
   public function Icon()
   {
   super();
   }
  
   override public function get measuredHeight():Number
   {
   return 16;
   }
  
   override public function get measuredWidth():Number
   {
   return 16;
   }
  
   override protected function updateDisplayList(unscaledWidth:Number,
  
   unscaledHeight:Number):void
   {
   super.updateDisplayList(unscaledWidth, unscaledHeight);
  
   graphics.clear();
   graphics.beginFill(_color, 1);
   graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
   graphics.endFill();
   }
   }
   }
  
  
   Peace, Mike
  
 
   
 
 
 
 
 -- 
 Teoti Graphix
 http://www.teotigraphix.com
 
 Blog - Flex2Components
 http://www.flex2components.com
 
 You can find more by solving the problem then by 'asking the question'.





Re: [flexcoders] Re: TitleList/HorizList REFRESH/UPDATE problem using httpservice

2007-04-28 Thread Fabio Yasusi Yamamoto

i've found a better solution.

if i change my datasource variable ( the one who is getting the value from
httpservice.lastresult ) to null, and latter i run httpservice.send().
everything works.



i dont know why this is happening, really sounds like a flex bug to me

but i can live with the workaround.

thanks!


On 4/28/07, Fabio Yasusi Yamamoto [EMAIL PROTECTED] wrote:


Yes, the problem happens with or without scrollbars.

invalidadeList and/or InvalidadeDisplayList had no effect.


On 4/28/07, Manish Jethani  [EMAIL PROTECTED] wrote:

 Are you sure the problem occurs even when there's no scrollbars?

 Can you try calling invalidateList() when the data is updated?
  __._,_._





--
[]'s
Fabio Yasusi Yamamoto
[EMAIL PROTECTED]
Tel: +55-11-4063-0047