Re: [flexcoders] Passing an email *subject* when opening email client?

2008-06-01 Thread Josh McDonald
I think you append ?subject=foo but it only works in MSIE... It's been a
while tho so I could be very wrong!

-J

On Sun, Jun 1, 2008 at 5:01 PM, JRBower [EMAIL PROTECTED] wrote:


 The function below works great for passing the email address but I'd like
 to
 also pass the subject also. Any ideas how to include the subject in this
 function?

 private function launchMailer(e:Event):void
 {
 var mailLink:URLRequest = new URLRequest(mailto://; +
 e.currentTarget.label);
 navigateToURL( mailLink, _self );
 }

 Thanks,
 James
 --
 View this message in context:
 http://www.nabble.com/Passing-an-email-*subject*-when-opening-email-client--tp17582920p17582920.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Passing an email *subject* when opening email client?

2008-06-01 Thread Maciek
http://www.google.com/search?btnI=Iq=mailto+syntax


On Sun, 2008-06-01 at 00:01 -0700, JRBower wrote:
 
 The function below works great for passing the email address but I'd
 like to
 also pass the subject also. Any ideas how to include the subject in
 this
 function?
 
 private function launchMailer(e:Event):void
 { 
 var mailLink:URLRequest = new URLRequest(mailto://; +
 e.currentTarget.label);
 navigateToURL( mailLink, _self );
 }
 
 Thanks,
 James
 -- 
 View this message in context:
 http://www.nabble.com/Passing-an-email-*subject*-when-opening-email-client--tp17582920p17582920.html
 Sent from the FlexCoders mailing list archive at Nabble.com.
 
 
 
 
  




[flexcoders] Passing an email *subject* when opening email client?

2008-06-01 Thread JRBower

The function below works great for passing the email address but I'd like to
also pass the subject also. Any ideas how to include the subject in this
function?


private function launchMailer(e:Event):void
   {
 var mailLink:URLRequest = new URLRequest(mailto://; +
e.currentTarget.label);
 navigateToURL( mailLink, _self );
   }

Thanks,
James
-- 
View this message in context: 
http://www.nabble.com/Passing-an-email-*subject*-when-opening-email-client--tp17582920p17582920.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Casting Problem.. Type Coercion Failed

2008-06-01 Thread Manu Dhanda

Hii

am writing a simple application where for logging in, am checking the values
against the value objects contained in an ArrayCollection.

While 

if((evt.userVO.email == ModelLocator.ALL_USERS[i].email)  (evt.userVO.pwd
== ModelLocator.ALL_USERS[i].pwd))

returns true, then why it throws this Type coercion error at this following
line:

model.currentUser = ModelLocator.ALL_USERS[i];
//UserVO(ModelLocator.ALL_USERS[i]);

currentUser is type UserVO and ALL_USERS is a collection of UserVO objects.

I had tried by explicitely casting the above line(as commented), but still
the same.

Here is the error, I received while debugging:

Explicit casting:-

TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED]
to com.live.flats.vo.UserVO.
at
com.live.flats.commands::LoginInfoCommand/execute()[F:\xampp\htdocs\flats\flex_src\com\live\flats\commands\LoginInfoCommand.as:60]
at
com.adobe.cairngorm.control::FrontController/executeCommand()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\FrontController.as:215]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
com.adobe.cairngorm.control::CairngormEventDispatcher/dispatchEvent()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEventDispatcher.as:113]
at
com.adobe.cairngorm.control::CairngormEvent/dispatch()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEvent.as:77]
at
com.live.flats.view::LoginPanelBar/loginUser()[F:\xampp\htdocs\flats\flex_src\com\live\flats\view\LoginPanelBar.mxml:29]
at
com.live.flats.view::LoginPanelBar/__loginButton_click()[F:\xampp\htdocs\flats\flex_src\com\live\flats\view\LoginPanelBar.mxml:74]


Implicit Casting:-

TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED]
to com.live.flats.vo.UserVO.
at
com.live.flats.commands::LoginInfoCommand/execute()[F:\xampp\htdocs\flats\flex_src\com\live\flats\commands\LoginInfoCommand.as:60]
at
com.adobe.cairngorm.control::FrontController/executeCommand()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\FrontController.as:215]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
com.adobe.cairngorm.control::CairngormEventDispatcher/dispatchEvent()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEventDispatcher.as:113]
at
com.adobe.cairngorm.control::CairngormEvent/dispatch()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEvent.as:77]
at
com.live.flats.view::LoginPanelBar/loginUser()[F:\xampp\htdocs\flats\flex_src\com\live\flats\view\LoginPanelBar.mxml:29]
at
com.live.flats.view::LoginPanelBar/__loginButton_click()[F:\xampp\htdocs\flats\flex_src\com\live\flats\view\LoginPanelBar.mxml:74]


Any help would be great.
Thanks.


-- 
View this message in context: 
http://www.nabble.com/Casting-Problem..-Type-Coercion-Failed-tp17585702p17585702.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] yoyo Tween Function in Flex?

2008-06-01 Thread Paul Andrews
mx.effects.tween.

In the function called at the end of the tween, use reverse().

Paul
  - Original Message - 
  From: Sherif Abdou 
  To: flexcoders@yahoogroups.com 
  Sent: Sunday, June 01, 2008 2:38 AM
  Subject: [flexcoders] yoyo Tween Function in Flex?




  Is there a similiar function in flex like the flash tween yoyo(), basically 
all the yoyo() does in flash is it returns the target back to its original 
positions. Thanks. 

   

Re: [flexcoders] New to flex, wonder why one works and the other doesn't...

2008-06-01 Thread Charlie Hubbard
Right.  Image is a UIComponent, and TextArea is a UIComponent.
UIComponent's can't contain other UIComponents without being a
subclass of Container or implementing the IContainer interface.  Not a
simple task.

addChild() is defined in DisplayObject which apart of the Flash API
not the Flex API.  BitmapAsset is a sublcass of DisplayObject and not
UIComponent.  So you can add it to the text area directly using this
code:

var img : BitmapAsset = new imgCls() as BitmapAsset;
img.x = txtArea.mouseX;
img.y = txtArea.mouseY;
txtArea.addChild( img );

Now, try that out, and you'll start to see some issues that you'll
have to asess if this is going to work for what you're trying to do.
Since the bitmap is not apart of the document in the TextArea you are
going to get clipping or scrolling.  If you want to do that you'll
have to get really dirty with the TextArea API.  Probably even
ditching TextArea altogether and writing your own, or modifying rich
text editor.

Charlie


On Thu, May 29, 2008 at 5:37 PM, aarhac [EMAIL PROTECTED] wrote:
 Hello,

 I have figured out how to work around my problem, but I do wonder why
 one of the following methods works, and the other doesn't. I would be
 grateful if someone could explain the error in the failing method.

 The code is pasted below (Below the line of dashes) in it's entirety,
 and is commented as to which works and which doesn't.

 The image referenced in this case is a 32x32 pixel png file on my
 local system. I am attempting to display the image on a text area.

 Using the default example from the flex documentation to embed an
 image, I cannot get the image to show up when added to the text area's
 display list, but it does show just fine when added to the root
 display list. I also added the image to the textArea using
 addChildAt(txtIcon, txtArea.numChildren) with no change in effect.

 The second method works just fine. I imagine that the problem has
 something to do with applying the image as a byte array to
 image.source, but I wonder why exactly? Is this a bug?

 Thanks in advance,

 --Aaron

 

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

 !--Works--
 mx:Image id=txtIcon source=@Embed(source='c:/icon.png')/

 mx:TextArea id=txtArea width=400 height=200 click=addImage()/

 mx:Script
 ![CDATA[
 import mx.controls.Image;
 import mx.core.BitmapAsset;

 // Doesn't work
 [Embed(source=c:/icon.png)]
 [Bindable]
 public var imgCls:Class;

 public function addImage():void
 {
 // Doesn't work
 var loadedImg:Image = new Image();
 loadedImg.source = new imgCls() as BitmapAsset;

 loadedImg.x = 10;
 loadedImg.y = 10;
 txtArea.addChild(loadedImg);

 // Note: While the above doesn't work, adding the
 // image to the root display list does work:
 //addChild(loadedImg);

 // Works
 txtIcon.x = 50;
 txtIcon.y = 10;
 txtArea.addChild(txtIcon);
 }
 ]]
 /mx:Script

 /mx:Application

 


Re: [flexcoders] New to flex, wonder why one works and the other doesn't...

2008-06-01 Thread Charlie Hubbard
Damn.  Sorry the last paragraph should read:

Since the bitmap is not apart of the document in the TextArea you
aren't going to get clipping or scrolling of that image.

Charlie

On Sun, Jun 1, 2008 at 10:52 AM, Charlie Hubbard
[EMAIL PROTECTED] wrote:
 Right.  Image is a UIComponent, and TextArea is a UIComponent.
 UIComponent's can't contain other UIComponents without being a
 subclass of Container or implementing the IContainer interface.  Not a
 simple task.

 addChild() is defined in DisplayObject which apart of the Flash API
 not the Flex API.  BitmapAsset is a sublcass of DisplayObject and not
 UIComponent.  So you can add it to the text area directly using this
 code:

var img : BitmapAsset = new imgCls() as BitmapAsset;
img.x = txtArea.mouseX;
img.y = txtArea.mouseY;
txtArea.addChild( img );

 Now, try that out, and you'll start to see some issues that you'll
 have to asess if this is going to work for what you're trying to do.
 Since the bitmap is not apart of the document in the TextArea you are
 going to get clipping or scrolling.  If you want to do that you'll
 have to get really dirty with the TextArea API.  Probably even
 ditching TextArea altogether and writing your own, or modifying rich
 text editor.

 Charlie


 On Thu, May 29, 2008 at 5:37 PM, aarhac [EMAIL PROTECTED] wrote:
 Hello,

 I have figured out how to work around my problem, but I do wonder why
 one of the following methods works, and the other doesn't. I would be
 grateful if someone could explain the error in the failing method.

 The code is pasted below (Below the line of dashes) in it's entirety,
 and is commented as to which works and which doesn't.

 The image referenced in this case is a 32x32 pixel png file on my
 local system. I am attempting to display the image on a text area.

 Using the default example from the flex documentation to embed an
 image, I cannot get the image to show up when added to the text area's
 display list, but it does show just fine when added to the root
 display list. I also added the image to the textArea using
 addChildAt(txtIcon, txtArea.numChildren) with no change in effect.

 The second method works just fine. I imagine that the problem has
 something to do with applying the image as a byte array to
 image.source, but I wonder why exactly? Is this a bug?

 Thanks in advance,

 --Aaron

 

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

 !--Works--
 mx:Image id=txtIcon source=@Embed(source='c:/icon.png')/

 mx:TextArea id=txtArea width=400 height=200 click=addImage()/

 mx:Script
 ![CDATA[
 import mx.controls.Image;
 import mx.core.BitmapAsset;

 // Doesn't work
 [Embed(source=c:/icon.png)]
 [Bindable]
 public var imgCls:Class;

 public function addImage():void
 {
 // Doesn't work
 var loadedImg:Image = new Image();
 loadedImg.source = new imgCls() as BitmapAsset;

 loadedImg.x = 10;
 loadedImg.y = 10;
 txtArea.addChild(loadedImg);

 // Note: While the above doesn't work, adding the
 // image to the root display list does work:
 //addChild(loadedImg);

 // Works
 txtIcon.x = 50;
 txtIcon.y = 10;
 txtArea.addChild(txtIcon);
 }
 ]]
 /mx:Script

 /mx:Application

 



[flexcoders] please need help with dataGrid and checkBox

2008-06-01 Thread Laila Towailib
-- Forwarded message --
From: Laila Towailib [EMAIL PROTECTED]
Date: Sat, May 31, 2008 at 8:37 PM
Subject: dataGrid and checkBox
To: flexcoders@yahoogroups.com


*what is the best way to add a checkbox field to each row of a datagrid and
read what is checked ?
I really need this for my project.*


[flexcoders] Re: What next after getting FLEX ?

2008-06-01 Thread itdanny2002
Dear All,

Thank you very much. 
Then I need to learn Linux + PHP + MySQL. 
I would like to ask one more questions since
I never use Linux stuff before. I only use 
IIS in windows envirnoment. What should I use 
in Linux ? Tomcat ? JBoss ? I can't distinguish it.

Thanks in advance

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

 I throw in my vote for Tomcat, and Java Berkley DB. I'm trying to 
use Blaze
 DS, but still not there yet, so I can't point to it yet. I've been 
using
 Flex Builder as well.
 
 On Tue, May 27, 2008 at 11:26 AM, itdanny2002 [EMAIL PROTECTED] 
wrote:
 
Hi All,
 
  I'm new FLEXer. I wanna to buy an application
  with database in server as well as locally.
  What should I get for Web Server and Database ?
 
  1. IIS + MS-Access ?
  2. JBoss (Window) + MySQL ?
  3. JBoss (Linus) + MySQL ?
  4. Tomcat + MySQL ?
  5
 
  Indeed, I prefer to use in IIS + MS-Access as
  I'm familiar with it. If not What do you suggest ?
 
  Many Thanks
 
   
 
 
 
 
 -- 
 All that is necessary for the triumph of evil is that good men do 
nothing.
 - Edmund Burke





[flexcoders] Flex drag n drop, zoom issue

2008-06-01 Thread gireeshgiri
Hi, 

   I am having an issue with the application currently I am
developing, the issue after dropping object to the canvas and if i try
to zoom (in-out) the dropped objects seems to shifts its place. I have
placed a demo URL, you can drag and drop objects to the plan, and try
zooming the plan. 

Demo URL
http://gireeshkumar.ind.in/designDemo/floorDesign2.html

Please help me. 

Thanks
Gireesh.




Re: [flexcoders] please need help with dataGrid and checkBox

2008-06-01 Thread Manu Dhanda

Use itemRenderer, inline or custom

For example:
this is your datagridcolumn
mx:AdvancedDataGridColumn dataField=aircon headerText=AC width=50
itemRenderer=com.renderers.DistRenderer/

Here is this renderer implementation:
DistRenderer.mxml

?xml version=1.0 encoding=utf-8?
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100% 
height=100% paddingLeft=16 verticalAlign=middle
mx:Script
![CDATA[
import com.live.flats.model.ModelLocator;
/**
 * Keep track of the currently selected item.
 */ 
public function getBoolValue(distId:Object):Boolean
{
//implement your logic here..
return bool;
}

]]
/mx:Script

mx:CheckBox selected={getBoolValue(data.distId)}/   
/mx:VBox

cheers!!
Manu.



Laila Towailib wrote:
 
 -- Forwarded message --
 From: Laila Towailib [EMAIL PROTECTED]
 Date: Sat, May 31, 2008 at 8:37 PM
 Subject: dataGrid and checkBox
 To: flexcoders@yahoogroups.com
 
 
 *what is the best way to add a checkbox field to each row of a datagrid
 and
 read what is checked ?
 I really need this for my project.*
 
 

-- 
View this message in context: 
http://www.nabble.com/please-need-help-with-dataGrid-and-checkBox-tp17586826p17587005.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: please need help with dataGrid and checkBox

2008-06-01 Thread Cato Paus

package {

import flash.display.DisplayObject;

import flash.events.KeyboardEvent;

import flash.events.MouseEvent;

import flash.text.TextField;

import mx.controls.CheckBox;

import mx.controls.dataGridClasses.DataGridListData;

import mx.controls.listClasses.ListBase;



/**

* The Renderer.

*/

public class TaskActive extends CheckBox

{



public function TaskActive()

{

focusEnabled = false;

invalidateDisplayList();

}



// update data item on click



// TODO: Validate taskVO

//and send update to db.



override protected function clickHandler(event:MouseEvent):void

{

super.clickHandler(event);

data[DataGridListData(listData).dataField] = selected;

}



// center the checkbox icon

override protected function updateDisplayList(w:Number, h:Number):void

{

super.updateDisplayList(w, h);



var n:int = numChildren;

for (var i:int = 0; i n; i++)

{

var c:DisplayObject = getChildAt(i);

// CheckBox component is made up of box skin and label TextField

if (!(c is TextField))

{

c.x = Math.round((w - c.width) / 2);

c.y = Math.round((h - c.height) / 2);

}

}

}

}

}

bump the file in root of app,

and here is some good reading :)

http://weblogs.macromedia.com/pent/
http://weblogs.macromedia.com/pent/

http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.ht\
ml
http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.h\
tml










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

 -- Forwarded message --
 From: Laila Towailib [EMAIL PROTECTED]
 Date: Sat, May 31, 2008 at 8:37 PM
 Subject: dataGrid and checkBox
 To: flexcoders@yahoogroups.com


 *what is the best way to add a checkbox field to each row of a
datagrid and
 read what is checked ?
 I really need this for my project.*





Re: [flexcoders] Re: What next after getting FLEX ?

2008-06-01 Thread Paul Andrews
I don't think anyone said you have to learn linux. Use Windows. If you're 
comfortable with IIS use that.

Try and follow some basic tutorials - they often include installation 
instructions - and get small things working.

Don't try and do everything at once. It's the road to disaster. Tackle the 
small hill before you head for the mountain.

The very best thing to do is to settle on a small database tutorial and 
follow it through. Then experiment with what you have built.

Paul
- Original Message - 
From: itdanny2002 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, June 01, 2008 12:34 PM
Subject: [flexcoders] Re: What next after getting FLEX ?


 Dear All,

 Thank you very much.
 Then I need to learn Linux + PHP + MySQL.
 I would like to ask one more questions since
 I never use Linux stuff before. I only use
 IIS in windows envirnoment. What should I use
 in Linux ? Tomcat ? JBoss ? I can't distinguish it.

 Thanks in advance

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

 I throw in my vote for Tomcat, and Java Berkley DB. I'm trying to
 use Blaze
 DS, but still not there yet, so I can't point to it yet. I've been
 using
 Flex Builder as well.

 On Tue, May 27, 2008 at 11:26 AM, itdanny2002 [EMAIL PROTECTED]
 wrote:

Hi All,
 
  I'm new FLEXer. I wanna to buy an application
  with database in server as well as locally.
  What should I get for Web Server and Database ?
 
  1. IIS + MS-Access ?
  2. JBoss (Window) + MySQL ?
  3. JBoss (Linus) + MySQL ?
  4. Tomcat + MySQL ?
  5
 
  Indeed, I prefer to use in IIS + MS-Access as
  I'm familiar with it. If not What do you suggest ?
 
  Many Thanks



RE: [flexcoders] Flex drag n drop, zoom issue

2008-06-01 Thread Rick Winscot
I took a quick look at your sample. and it looks like you are doing
something strange with your scaleX/scaleY - they aren't being set uniformly.
You'll only need a single change so I would think: scaleX = scaleY =
zoomer.value  -- no?

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gireeshgiri
Sent: Sunday, June 01, 2008 3:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex drag n drop, zoom issue

 

Hi, 

I am having an issue with the application currently I am
developing, the issue after dropping object to the canvas and if i try
to zoom (in-out) the dropped objects seems to shifts its place. I have
placed a demo URL, you can drag and drop objects to the plan, and try
zooming the plan. 

Demo URL
http://gireeshkumar.ind.in/designDemo/floorDesign2.html

Please help me. 

Thanks
Gireesh.

 



RE: [flexcoders] yoyo Tween Function in Flex?

2008-06-01 Thread Rick Winscot
I'm a huge fan of Tweener (http://code.google.com/p/tweener/). It gives you
a real fine grained approach in visual effects. Paul's suggestion will give
you a 'yo' after 'yo' - but if you want the movement to look more organic.
Tweener's transition types are great (easeInElastic == walk the dog).  

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Andrews
Sent: Sunday, June 01, 2008 9:07 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] yoyo Tween Function in Flex?

 

mx.effects.tween.

 

In the function called at the end of the tween, use reverse().

 

Paul

- Original Message - 

From: Sherif Abdou mailto:[EMAIL PROTECTED]  

To: flexcoders@yahoogroups.com 

Sent: Sunday, June 01, 2008 2:38 AM

Subject: [flexcoders] yoyo Tween Function in Flex?

 

 

Is there a similiar function in flex like the flash tween yoyo(), basically
all the yoyo() does in flash is it returns the target back to its original
positions. Thanks. 





 



Re: [flexcoders] Flex drag n drop, zoom issue

2008-06-01 Thread Gireesh Kumar
Hi,

Here is the code I use to set the scaleX and Y values

private function doZoom(event:Event):void{
if(currentPlanCanvas == null){
return;
}
doComponentZoom(currentPlanCanvas,
(HSlider(event.currentTarget).value));
}
private function
doComponentZoom(component:UIComponent,val:Number):void{
component.scaleX = val;
component.scaleY = val;
if(component is Container){
var children:Array = Container(component).getChildren();
for(var i:int = 0; i  children.length; i++){
doComponentZoom(children[i], val);
}
}
}




Thanks
Gireesh






On Sun, Jun 1, 2008 at 10:22 PM, Rick Winscot [EMAIL PROTECTED]
wrote:

I took a quick look at your sample… and it looks like you are doing
 something strange with your scaleX/scaleY – they aren't being set uniformly.
 You'll only need a single change so I would think: scaleX = scaleY =
 zoomer.value  -- no?



 Rick Winscot





 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *gireeshgiri
 *Sent:* Sunday, June 01, 2008 3:11 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex drag n drop, zoom issue



 Hi,

 I am having an issue with the application currently I am
 developing, the issue after dropping object to the canvas and if i try
 to zoom (in-out) the dropped objects seems to shifts its place. I have
 placed a demo URL, you can drag and drop objects to the plan, and try
 zooming the plan.

 Demo URL
 http://gireeshkumar.ind.in/designDemo/floorDesign2.html

 Please help me.

 Thanks
 Gireesh.

   




-- 
Gireesh Kumar G
http://gireeshkumar.ind.in/


Re: [flexcoders] yoyo Tween Function in Flex?

2008-06-01 Thread Paul Andrews
Also consider TweenLite - http://blog.greensock.com/tweenliteas3/ since were 
going off-Adobe-piste.. !
  - Original Message - 
  From: Rick Winscot 
  To: flexcoders@yahoogroups.com 
  Sent: Sunday, June 01, 2008 6:05 PM
  Subject: RE: [flexcoders] yoyo Tween Function in Flex?


  I'm a huge fan of Tweener (http://code.google.com/p/tweener/). It gives you a 
real fine grained approach in visual effects. Paul's suggestion will give you a 
'yo' after 'yo' - but if you want the movement to look more organic. Tweener's 
transition types are great (easeInElastic == walk the dog).  

   

  Rick Winscot

   

   

  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul 
Andrews
  Sent: Sunday, June 01, 2008 9:07 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] yoyo Tween Function in Flex?

   

  mx.effects.tween.

   

  In the function called at the end of the tween, use reverse().

   

  Paul

- Original Message - 

From: Sherif Abdou 

To: flexcoders@yahoogroups.com 

Sent: Sunday, June 01, 2008 2:38 AM

Subject: [flexcoders] yoyo Tween Function in Flex?

 

 

Is there a similiar function in flex like the flash tween yoyo(), basically 
all the yoyo() does in flash is it returns the target back to its original 
positions. Thanks. 






   

RE: [flexcoders] Flex drag n drop, zoom issue

2008-06-01 Thread Rick Winscot
It crossed my mind that you might be doing something like this. can I
recommend an alternate solution? Use a canvas/container to host your plan
_and_ all of your placed objects - then just set the scaleX/scaleY of that
canvas/container. If you do it this way - you won't have to worry about
object placement or spacing.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gireesh Kumar
Sent: Sunday, June 01, 2008 1:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex drag n drop, zoom issue

 

Hi, 

Here is the code I use to set the scaleX and Y values 

private function doZoom(event:Event):void{
if(currentPlanCanvas == null){
return;
}
doComponentZoom(currentPlanCanvas,
(HSlider(event.currentTarget).value));
}
private function
doComponentZoom(component:UIComponent,val:Number):void{
component.scaleX = val;
component.scaleY = val;
if(component is Container){
var children:Array = Container(component).getChildren();
for(var i:int = 0; i  children.length; i++){
doComponentZoom(children[i], val);
}
}
}




Thanks
Gireesh







On Sun, Jun 1, 2008 at 10:22 PM, Rick Winscot [EMAIL PROTECTED]
wrote:

I took a quick look at your sample. and it looks like you are doing
something strange with your scaleX/scaleY - they aren't being set uniformly.
You'll only need a single change so I would think: scaleX = scaleY =
zoomer.value  -- no?

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gireeshgiri
Sent: Sunday, June 01, 2008 3:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex drag n drop, zoom issue

 

Hi, 

I am having an issue with the application currently I am
developing, the issue after dropping object to the canvas and if i try
to zoom (in-out) the dropped objects seems to shifts its place. I have
placed a demo URL, you can drag and drop objects to the plan, and try
zooming the plan. 

Demo URL
http://gireeshkumar.ind.in/designDemo/floorDesign2.html

Please help me. 

Thanks
Gireesh.




-- 
Gireesh Kumar G
http://gireeshkumar.ind.in/ 

 



Re: [flexcoders] Flex drag n drop, zoom issue

2008-06-01 Thread Gireesh Kumar
Actually it is a canvas, and I am placing the objects on the canvas, I tried
setting the plan image as background of canvas also.

And if I change only the canvas scaleX and scaleY the placed object is not
zooming properly.
If you look at the source you will see this.


Thanks
Gireesh

On Sun, Jun 1, 2008 at 11:06 PM, Rick Winscot [EMAIL PROTECTED]
wrote:

It crossed my mind that you might be doing something like this… can I
 recommend an alternate solution? Use a canvas/container to host your plan _
 *and*_ all of your placed objects – then just set the scaleX/scaleY of
 that canvas/container. If you do it this way – you won't have to worry about
 object placement or spacing.



 Rick Winscot





 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Gireesh Kumar
 *Sent:* Sunday, June 01, 2008 1:06 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Flex drag n drop, zoom issue



 Hi,

 Here is the code I use to set the scaleX and Y values

 private function doZoom(event:Event):void{
 if(currentPlanCanvas == null){
 return;
 }
 doComponentZoom(currentPlanCanvas,
 (HSlider(event.currentTarget).value));
 }
 private function
 doComponentZoom(component:UIComponent,val:Number):void{
 component.scaleX = val;
 component.scaleY = val;
 if(component is Container){
 var children:Array = Container(component).getChildren();
 for(var i:int = 0; i  children.length; i++){
 doComponentZoom(children[i], val);
 }
 }
 }




 Thanks
 Gireesh





  On Sun, Jun 1, 2008 at 10:22 PM, Rick Winscot [EMAIL PROTECTED]
 wrote:

 I took a quick look at your sample… and it looks like you are doing
 something strange with your scaleX/scaleY – they aren't being set uniformly.
 You'll only need a single change so I would think: scaleX = scaleY =
 zoomer.value  -- no?



 Rick Winscot





 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *gireeshgiri
 *Sent:* Sunday, June 01, 2008 3:11 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex drag n drop, zoom issue



 Hi,

 I am having an issue with the application currently I am
 developing, the issue after dropping object to the canvas and if i try
 to zoom (in-out) the dropped objects seems to shifts its place. I have
 placed a demo URL, you can drag and drop objects to the plan, and try
 zooming the plan.

 Demo URL
 http://gireeshkumar.ind.in/designDemo/floorDesign2.html

 Please help me.

 Thanks
 Gireesh.




 --
 Gireesh Kumar G
 http://gireeshkumar.ind.in/

   




-- 
Gireesh Kumar G
http://gireeshkumar.ind.in/


Re: [flexcoders] Passing an email *subject* when opening email client?

2008-06-01 Thread Vadim Melnik
I believe it's related to mailto protocol (http://www.rfc.net/rfc2368.html), 
something like listed below should work:

navigateToURL(new URLRequest(mailto://[EMAIL PROTECTED]), _self );

--
Thanks,
Vadim.

  - Original Message - 
  From: JRBower 
  To: flexcoders@yahoogroups.com 
  Sent: Sunday, June 01, 2008 10:01 AM
  Subject: [flexcoders] Passing an email *subject* when opening email client?



  The function below works great for passing the email address but I'd like to
  also pass the subject also. Any ideas how to include the subject in this
  function?

  private function launchMailer(e:Event):void
  { 
  var mailLink:URLRequest = new URLRequest(mailto://; +
  e.currentTarget.label);
  navigateToURL( mailLink, _self );
  }

  Thanks,
  James
  -- 
  View this message in context: 
http://www.nabble.com/Passing-an-email-*subject*-when-opening-email-client--tp17582920p17582920.html
  Sent from the FlexCoders mailing list archive at Nabble.com.



   

Re: [flexcoders] Drilldown ideas

2008-06-01 Thread Charlie Hubbard
I think you're asking what's the best UI metaphor for displaying
hierarchal data from a dataGrid.  While popup windows are cheap and
easy.  This work well if your user will be edtting the data once they
see it.  The Ok-Cancel metaphor on the popup window makes editing easy
to use.  Adding editing with these other options can be difficult.
However, I think navigating around in data they are pain, plus the pop
always is smaller than your screen real estate of your main window.

I favor more a fluid UI by dividing the UI into the dataGrid on top
and the content on bottom.  Click a row displays the data in the
bottom panel.  You can orient the two areas anyway you like.  Left and
right if your data lends itself to being displayed easily that way.
But, with tables they always seem less cramped if it's a top bottom
orientation.  This way your users can quickly navigate through the
data and see the content with one window.  If the bottom portion
doesn't have enough space.  Surround your table in a tab UI, then
allow them to open up the content in a sibling tab so that they have
all the screen space they need.  And, that allows for a quick bookmark
like work flow allowing the user to refer back to previously found
objects.

TreeTable grids work if the columns of the table match the columns
you'll display when you drill down on a row.  If the UI shown for
drill down has different data requirements than the table's you'll
find it too limiting or akward to display other types of data in the
table.  Ultimately, TreeTables can limit your ability to modify the UI
in the future.

Charlie

On Wed, May 21, 2008 at 8:20 AM, markgoldin_2000
[EMAIL PROTECTED] wrote:
 If a user wants to drilldown into a dataGrid's cell what could have
 been the best approach? Popup windows? Other ideas? If popup it is, can
 I completely get rid of a blur affect when popup window is shown?

 Thanks for help.

 


[flexcoders] Flex / Air sharewware app: what database to use in network environment?

2008-06-01 Thread scottyale2008
I've sold a Windows based shareware application using a FoxPro database 
for years and now it's time to give it much needed RIA.  I was excited 
to hear when Flex 3 was released it supported SQLite, but it's not 
meant to be a network shared database.  My shareware app generally has 
anywhere from 25 users to 500+ users per network install.  The beauty 
of the current version is it is easy to setup and install, even for non 
IT users.

What would be the good database to use with Flex or AIR?  I could 
create .Net web services with SQL, but this would take more time to 
setup and install for potential buyers and of course more support on my 
end.  The install would require the user to setup IIS and SQL.  Could 
be tricky if they don't already have SQL running.

I could create a hosted db, maybe something with Google or Amazon, but 
this would require a large learning curve.   Is there anything close to 
SQLite for networks?   Or is there something else I should consider?  

Any advice or tips would be greatly appreciated!



[flexcoders] IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2038 on file upload

2008-06-01 Thread vishnu sv
Hi,

I am trying to upload files to share.adobe.com using the share apis. But on 
uploading the file I am getting the following error IOErrorEvent type=ioError 
bubbles=false cancelable=false eventPhase=2 text=Error #2038

In Charles I am getting 'No request was made. Possibly certificate rejected' 
error. I don't see any data being send to api.share.acrobat.com. 
I am calling FileReference.upload() method to upload the file.

Please see the bellow code snippet with which I am uploading

//Starts here
public function putFile(authead:String): void
{
try
{
var request:URLRequest = new URLRequest();
request.method = URLRequestMethod.POST;
var requestBody : XML =request
file
nameFile/name
/file
/request
request.data = new URLVariables();
request.data.request = requestBody.toXMLString();
request.url = 
https://api.share.acrobat.com/webservices/api/v1/dc/?+authead;
// authead WILL have authentication data.
mx.controls.Alert.show(request.url);
fr.upload(request);
   }
   catch(erro :Error)
   {   
   mx.controls.Alert(erro.toString());
  
   }
}
//Ends here
fr is a FileReference object. 

I tried accessing the same URL with HTTPService object and it sends the request 
correctly and get the data back from the server. I am able to post the request 
to (https://api.share.acrobat.com/webservices/api/v1/dc/?+authead) using HTML 
form also.

Please help me to resolve this issue.

Thanks
-Vishnu


   
-
 What is your Emotional Quotient? Find out.

Re: [flexcoders] New to flex, wonder why one works and the other doesn't...

2008-06-01 Thread Joseph Balderson
Of course! I knew the answer was simple, man that was bugging me. Thanks 
Charlie.

:)
___

Joseph Balderson | http://joeflash.ca
Flex  Flash Platform Developer | Abobe Certified Developer  Trainer
Author, Professional Flex 3 (coming Winter 2008)
Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674



Charlie Hubbard wrote:
 Right.  Image is a UIComponent, and TextArea is a UIComponent.
 UIComponent's can't contain other UIComponents without being a
 subclass of Container or implementing the IContainer interface.  Not a
 simple task.
 
 addChild() is defined in DisplayObject which apart of the Flash API
 not the Flex API.  BitmapAsset is a sublcass of DisplayObject and not
 UIComponent.  So you can add it to the text area directly using this
 code:
 
   var img : BitmapAsset = new imgCls() as BitmapAsset;
   img.x = txtArea.mouseX;
   img.y = txtArea.mouseY;
   txtArea.addChild( img );
 
 Now, try that out, and you'll start to see some issues that you'll
 have to asess if this is going to work for what you're trying to do.
 Since the bitmap is not apart of the document in the TextArea you are
 going to get clipping or scrolling.  If you want to do that you'll
 have to get really dirty with the TextArea API.  Probably even
 ditching TextArea altogether and writing your own, or modifying rich
 text editor.
 
 Charlie
 
 
 On Thu, May 29, 2008 at 5:37 PM, aarhac [EMAIL PROTECTED] wrote:
 Hello,

 I have figured out how to work around my problem, but I do wonder why
 one of the following methods works, and the other doesn't. I would be
 grateful if someone could explain the error in the failing method.

 The code is pasted below (Below the line of dashes) in it's entirety,
 and is commented as to which works and which doesn't.

 The image referenced in this case is a 32x32 pixel png file on my
 local system. I am attempting to display the image on a text area.

 Using the default example from the flex documentation to embed an
 image, I cannot get the image to show up when added to the text area's
 display list, but it does show just fine when added to the root
 display list. I also added the image to the textArea using
 addChildAt(txtIcon, txtArea.numChildren) with no change in effect.

 The second method works just fine. I imagine that the problem has
 something to do with applying the image as a byte array to
 image.source, but I wonder why exactly? Is this a bug?

 Thanks in advance,

 --Aaron

 

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

 !--Works--
 mx:Image id=txtIcon source=@Embed(source='c:/icon.png')/

 mx:TextArea id=txtArea width=400 height=200 click=addImage()/

 mx:Script
 ![CDATA[
 import mx.controls.Image;
 import mx.core.BitmapAsset;

 // Doesn't work
 [Embed(source=c:/icon.png)]
 [Bindable]
 public var imgCls:Class;

 public function addImage():void
 {
 // Doesn't work
 var loadedImg:Image = new Image();
 loadedImg.source = new imgCls() as BitmapAsset;

 loadedImg.x = 10;
 loadedImg.y = 10;
 txtArea.addChild(loadedImg);

 // Note: While the above doesn't work, adding the
 // image to the root display list does work:
 //addChild(loadedImg);

 // Works
 txtIcon.x = 50;
 txtIcon.y = 10;
 txtArea.addChild(txtIcon);
 }
 ]]
 /mx:Script

 /mx:Application


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


[flexcoders] Re: How to convert a powerpoint to AS3 swf for loading in Flex?

2008-06-01 Thread rdebled
I'm not sure exactly which forum you're referring to.  Can you 
provide a link or details of where I should look?

Thanks.

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

 Yes, you'll find a debate about that on the flashcoders forum!




Re: [flexcoders] Panel with no borders. How To?

2008-06-01 Thread Charlie Hubbard
I know this has been said, but if  you want a panel without any
borders then you really probably want a Canvas not a Panel.  The only
real difference between the border functionality of Panel has two
layout modes and absolute positioning is not the default.  Canvas only
supports absolute positioning.

Charlie

On Sat, May 31, 2008 at 6:11 AM, Manu Dhanda [EMAIL PROTECTED] wrote:

 Hii

 I need a panel with no border or say with border with ZERO width.

 How can I get this done?

 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Panel-with-no-borders.-How-To--tp17573772p17573772.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

 


[flexcoders] Re: please need help with dataGrid and checkBox

2008-06-01 Thread dbronk
How about just:

mx:DataGrid
mx:columns
mx:DataGridColumn headerText=Check Something editable=true
mx:itemRenderer
mx:Component
mx:CheckBox selected=[EMAIL PROTECTED]'true'}
click=[EMAIL PROTECTED](event.target as CheckBox).selected /
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn
/mx:columns
/mx:DataGrid

Dale


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

 
 package {
 
 import flash.display.DisplayObject;
 
 import flash.events.KeyboardEvent;
 
 import flash.events.MouseEvent;
 
 import flash.text.TextField;
 
 import mx.controls.CheckBox;
 
 import mx.controls.dataGridClasses.DataGridListData;
 
 import mx.controls.listClasses.ListBase;
 
 
 
 /**
 
 * The Renderer.
 
 */
 
 public class TaskActive extends CheckBox
 
 {
 
 
 
 public function TaskActive()
 
 {
 
 focusEnabled = false;
 
 invalidateDisplayList();
 
 }
 
 
 
 // update data item on click
 
 
 
 // TODO: Validate taskVO
 
 //and send update to db.
 
 
 
 override protected function clickHandler(event:MouseEvent):void
 
 {
 
 super.clickHandler(event);
 
 data[DataGridListData(listData).dataField] = selected;
 
 }
 
 
 
 // center the checkbox icon
 
 override protected function updateDisplayList(w:Number, h:Number):void
 
 {
 
 super.updateDisplayList(w, h);
 
 
 
 var n:int = numChildren;
 
 for (var i:int = 0; i n; i++)
 
 {
 
 var c:DisplayObject = getChildAt(i);
 
 // CheckBox component is made up of box skin and label TextField
 
 if (!(c is TextField))
 
 {
 
 c.x = Math.round((w - c.width) / 2);
 
 c.y = Math.round((h - c.height) / 2);
 
 }
 
 }
 
 }
 
 }
 
 }
 
 bump the file in root of app,
 
 and here is some good reading :)
 
 http://weblogs.macromedia.com/pent/
 http://weblogs.macromedia.com/pent/
 

http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.ht\
 ml

http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.h\
 tml
 
 
 
 
 
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, Laila Towailib layla.towailib@
 wrote:
 
  -- Forwarded message --
  From: Laila Towailib layla.towailib@
  Date: Sat, May 31, 2008 at 8:37 PM
  Subject: dataGrid and checkBox
  To: flexcoders@yahoogroups.com
 
 
  *what is the best way to add a checkbox field to each row of a
 datagrid and
  read what is checked ?
  I really need this for my project.*
 





[flexcoders] Re: How to convert a powerpoint to AS3 swf for loading in Flex?

2008-06-01 Thread rdebled
I've tried a few possible solutions.  First I tried using 
LocalConnection to get the Flex app to speak to an AS2 wrapper.  This 
works, but it's got the limitation that the app can only have one 
instance running because multiple instances cause the LocalConnection 
names to collide.  There are ways around this (create the LC name 
based on some variant of the app start timecode) but it's not pretty.

Next solution I tried worked pretty well, at least for my situation.  
I created an AS2 wrapper that connects to a flash communications 
server.  The Flex app passes the FMS URL to the wrapper via the 
calling address (i.e. wrapper.swf?url=fmsURL) and the wrapper moves 
the playhead around based on a sharedObject slide number set by the 
Flex app.  A weird problem from this was that the as2 flash wrapper 
could load the file fine and move around fine, but could never return 
to the first frame after moving away from it.  Any thoughts on why 
that might happen would be appreciated.

Finally, and most successfully, I started playing with print2flash 
which can convert a ppt to a swf and has a flex component that can 
open that swf and move around it.  It's early stages right now, but 
it seems to do everything I need, with API calls for moving from one 
page to another, zooming, scrolling, etc.  The Pro edition is $80 and 
there's a server edition that has an automation API, letting you 
integrate conversion into your application.  Very cool. Anyone facing 
this powerpoint to Flex problem should take a look to see if this 
meets your needs.

Robin

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

 I need to load a powerpoint file inside my Flex app.  I planned to 
 just convert the ppt to a swf and load that with a SWFLoader 
control, 
 but every conversion app I've run in to creates a Flash 8 AS2 
file.  
 This seems to make it impossible to control the slides because the 
 SWF has to load as an AVM1Movie. 
 
 Does anyone know of any tools that convert to Flash 9 format, or 
some 
 other way to create an AS3 swf out of a ppt file? 
 
 Thanks.





Re: [flexcoders] Re: How to convert a powerpoint to AS3 swf for loading in Flex?

2008-06-01 Thread Paul Andrews
Here you go: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Paul
- Original Message - 
From: rdebled [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, June 01, 2008 9:14 PM
Subject: [flexcoders] Re: How to convert a powerpoint to AS3 swf for loading 
in Flex?


 I'm not sure exactly which forum you're referring to.  Can you
 provide a link or details of where I should look?

 Thanks.

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

 Yes, you'll find a debate about that on the flashcoders forum!



 

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



 



Re: [flexcoders] Multiple filtered views on one source ArrayCollection

2008-06-01 Thread Richard Rodseth
Array collection has a publicly-accessible source Array property and
filterFunction property.

I'm actually building array collections on the fly in a model class
getter with a custom binding event. Same source, different filter
function. Seems to be working for me.

Does that help?

On Sun, Jun 1, 2008 at 4:46 PM, Josh McDonald [EMAIL PROTECTED] wrote:
 Hey guys,

 I think maybe I've missed the point of something, or there's a class I need
 to use that I don't know exists :)

 I have an ArrayCollection we'll call sourceCollection. I need to have a
 couple of different views of this data, with which I can use filterFunctions
 without affecting each other or the sourceCollection, and I need these views
 to be updated when the source changes. Perfectly happy for these views to be
 read-only.

 Is there already something that suits my needs? Or do I need to roll my own?
 No problem, but it seems like a common task and I don't want to re-implement
 something that already exists and works :)

 At first glance I thought the solution would be new
 ArrayCollection(sourceCollection.source), but it won't get updates. If it
 doesn't exist I'd rather build something reusable than just hack together a
 solution by listening to the sourceCollection object.

 -J

 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]

 


Re: [flexcoders] Multiple filtered views on one source ArrayCollection

2008-06-01 Thread Josh McDonald
Normally I'd agree, but my problem is the sourceCollection is being set via
a binding long before it gets populated, and an ArrayCollection doesn't like
it when you change .source behind its back. I also don't know if there's any
conditions where the implementation of ArrayCollection will replace its own
.source with a new Array instance, which would definitely kill the
connection to any other ArrayCollection instances.

-J

On Mon, Jun 2, 2008 at 9:59 AM, Richard Rodseth [EMAIL PROTECTED] wrote:

   Array collection has a publicly-accessible source Array property and
 filterFunction property.

 I'm actually building array collections on the fly in a model class
 getter with a custom binding event. Same source, different filter
 function. Seems to be working for me.

 Does that help?


 On Sun, Jun 1, 2008 at 4:46 PM, Josh McDonald [EMAIL 
 PROTECTED]dznuts%40gmail.com
 wrote:
  Hey guys,
 
  I think maybe I've missed the point of something, or there's a class I
 need
  to use that I don't know exists :)
 
  I have an ArrayCollection we'll call sourceCollection. I need to have a
  couple of different views of this data, with which I can use
 filterFunctions
  without affecting each other or the sourceCollection, and I need these
 views
  to be updated when the source changes. Perfectly happy for these views to
 be
  read-only.
 
  Is there already something that suits my needs? Or do I need to roll my
 own?
  No problem, but it seems like a common task and I don't want to
 re-implement
  something that already exists and works :)
 
  At first glance I thought the solution would be new
  ArrayCollection(sourceCollection.source), but it won't get updates. If it
  doesn't exist I'd rather build something reusable than just hack together
 a
  solution by listening to the sourceCollection object.
 
  -J
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for thee.
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED] josh%40gfunk007.com
 
 
  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Multiple filtered views on one source ArrayCollection

2008-06-01 Thread Josh McDonald
Hey guys,

I think maybe I've missed the point of something, or there's a class I need
to use that I don't know exists :)

I have an ArrayCollection we'll call sourceCollection. I need to have a
couple of different views of this data, with which I can use filterFunctions
without affecting each other or the sourceCollection, and I need these views
to be updated when the source changes. Perfectly happy for these views to be
read-only.

Is there already something that suits my needs? Or do I need to roll my own?
No problem, but it seems like a common task and I don't want to re-implement
something that already exists and works :)

At first glance I thought the solution would be new
ArrayCollection(sourceCollection.source), but it won't get updates. If it
doesn't exist I'd rather build something reusable than just hack together a
solution by listening to the sourceCollection object.

-J

-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: Tree duplicating items - desperate!!!

2008-06-01 Thread Rafael Faria
If i remove those lines it wont create the brances dynamically...

What i do is when i drag over a page that is not a branch it
automatically transform it as a branch, if i don't drop and drag out
of it, it will trasnform back to a simple leaf. that's why i need to
leave it on the dragover.

if you have a better solution please i would love to hear because this
is killing me.

i don't know why is duplicating like i showed on the screenshots
because even when i use the debug version i get no errors.

helpp 


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

 What are the four lines?  If you remove them what happens?  Step through
 dragCompleteHandler.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Rafael Faria
 Sent: Thursday, May 29, 2008 11:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Tree duplicating items - desperate!!!
 
  
 
 fellows,
 
 i have been bugging you guys about my tree component for a quite long
 time and i'm almost finish. the only thing i still have to deal is a
 bug that's happening.
 
 What happen is, i have to create branches on the fly, dynamically
 whenever i dragover a item.
 
 here is the code to do that (anyone think in a better solution?)
 
 var currNodeOver:TreeItemRenderer =
 TreeItemRenderer(indexToItemRenderer(calculateDropIndex(event)));
 if (currNodeOver == null) return;
 [EMAIL PROTECTED] = true;
 expandItem(currNodeOver.data,true, true);
 
 What is happening is along the drag and drop, an item has been
 duplicated somehow. I have cleaned the code on the point to leave just
 that 4 lines on my extended tree and guess what? still happens.
 
 so i'm not sure if it's a tree bug or is something wrong with those
 lines, but sometimes (and it doesnt happen everytime) when i drag a
 children from a branch it duplicates, which mean that the one i was
 dragging does not move.
 
 I'm not sure if i'm being clear, but i hope i can get some help on
 that cause i just lost a couple days trying to fix it.
 
 Here is some screen shot of what's happening.
 
 Picture 1, the normal state. 
 http://www.enilsson.com/assets/images/pic1.png
 http://www.enilsson.com/assets/images/pic1.png 
 
 Picture 2, the bug 
 http://www.enilsson.com/assets/images/pic2.png
 http://www.enilsson.com/assets/images/pic2.png 
 
 Like i said. it should had moved instead of duplicate. Most of the
 time is working, everything works... but suddenly it duplicates and
 debug doesn't return any errors.
 
 helpp





[flexcoders] [Bindable], get and set functions and debugging - an idea or two to make it a little nicer

2008-06-01 Thread Josh McDonald
Hey guys, say I have the following:

[Bindable]
public function get foo() : Foo {...}

public function set foo(v : Foo) : Void {...}

When I'm single-stepping through something that calls obj.foo =
fooInstance() the debugger tells me I'm in set foo, but highlights get
foo. Now I understand why this is happening, due to the compile-time voodoo
required for the generic [Bindabe] tag, but for newbs this would probably be
fairly intimidating.

It'd be really good if there was some sort of metadata included when
compiling debug versions that flags a specific method as compile-time
generated in the debugger stack trace or something along those lines.

Or a compile-time warning telling you to put [Bindable] on set rather than
get, despite it being counter-intuitive (does it even work?).

Maybe a compile-time warning telling you you're better off using the event=
form of [Bindable] when using get/set, which I assume doesn't require any
compile-time hijinks?

Just having the debugger smart enough to recognise these generated functions
and do something more appropriate. If you step into a [Bindable] setter you
end up single stepping through code you can't see on screen until it calls
set _generatedFooName() or whatever it happens to be that contains your
actual code. Confusing to say the least!

Maybe another window showing the .as intermediary code that's generated
between mxml and swf?

-J

-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: New to flex, wonder why one works and the other doesn't...

2008-06-01 Thread Michael Labriola
Guys, sorry, but that's not quite right. UIComponents can contain 
other UIComponents without being a container. It is a common use 
case. Take a look at the simple example Adobe includes with their 
docs:

http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.h
tm?href=1742.html

You will notice that the mocal text component is a UIComponent but 
it contains a button and a text area... both UIComponents.

The difference is that containers like Canvas have the logic to size 
and position any child they contain by default. UIComponent does 
not. So, in a UIComponent descendant, you need to write code to size 
and position every child or they will exist as 0 width and 0 height 
component.

HTH,
Labriola


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

 Right.  Image is a UIComponent, and TextArea is a UIComponent.
 UIComponent's can't contain other UIComponents without being a
 subclass of Container or implementing the IContainer interface.  
Not a
 simple task.
 
 addChild() is defined in DisplayObject which apart of the Flash API
 not the Flex API.  BitmapAsset is a sublcass of DisplayObject and 
not
 UIComponent.  So you can add it to the text area directly using 
this
 code:
 
   var img : BitmapAsset = new imgCls() as BitmapAsset;
   img.x = txtArea.mouseX;
   img.y = txtArea.mouseY;
   txtArea.addChild( img );
 
 Now, try that out, and you'll start to see some issues that you'll
 have to asess if this is going to work for what you're trying to 
do.
 Since the bitmap is not apart of the document in the TextArea you 
are
 going to get clipping or scrolling.  If you want to do that you'll
 have to get really dirty with the TextArea API.  Probably even
 ditching TextArea altogether and writing your own, or modifying 
rich
 text editor.
 
 Charlie
 
 
 On Thu, May 29, 2008 at 5:37 PM, aarhac [EMAIL PROTECTED] wrote:
  Hello,
 
  I have figured out how to work around my problem, but I do 
wonder why
  one of the following methods works, and the other doesn't. I 
would be
  grateful if someone could explain the error in the failing 
method.
 
  The code is pasted below (Below the line of dashes) in it's 
entirety,
  and is commented as to which works and which doesn't.
 
  The image referenced in this case is a 32x32 pixel png file on my
  local system. I am attempting to display the image on a text 
area.
 
  Using the default example from the flex documentation to embed an
  image, I cannot get the image to show up when added to the text 
area's
  display list, but it does show just fine when added to the root
  display list. I also added the image to the textArea using
  addChildAt(txtIcon, txtArea.numChildren) with no change in 
effect.
 
  The second method works just fine. I imagine that the problem has
  something to do with applying the image as a byte array to
  image.source, but I wonder why exactly? Is this a bug?
 
  Thanks in advance,
 
  --Aaron
 
  
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
 
  !--Works--
  mx:Image id=txtIcon source=@Embed(source='c:/icon.png')/
 
  mx:TextArea id=txtArea width=400 height=200 
click=addImage()/
 
  mx:Script
  ![CDATA[
  import mx.controls.Image;
  import mx.core.BitmapAsset;
 
  // Doesn't work
  [Embed(source=c:/icon.png)]
  [Bindable]
  public var imgCls:Class;
 
  public function addImage():void
  {
  // Doesn't work
  var loadedImg:Image = new Image();
  loadedImg.source = new imgCls() as BitmapAsset;
 
  loadedImg.x = 10;
  loadedImg.y = 10;
  txtArea.addChild(loadedImg);
 
  // Note: While the above doesn't work, adding the
  // image to the root display list does work:
  //addChild(loadedImg);
 
  // Works
  txtIcon.x = 50;
  txtIcon.y = 10;
  txtArea.addChild(txtIcon);
  }
  ]]
  /mx:Script
 
  /mx:Application
 
 





[flexcoders] Air App - Check connection

2008-06-01 Thread Indra Prastha
Hi Guys,

I'm creating an Air Application that has to check the connections to a
server.
So when there's connection to the server, it retrieves XMLs through
HTTPservice from my backend
and if there's no connection , it should retrieve XMLs from local disk.
Reading xml is no problem in both ways, but whats the best way to create
the connection checking logic.??

Thanks
- Indra



[flexcoders] Re: Air App - Check connection

2008-06-01 Thread Michael Labriola

Indra,

Look in the AIR help files for the presence API. 

I think this article also covers it, but not sure how up to date it 
is:

http://www.adobe.com/devnet/air/flex/articles/flickr_floater_06.html

HTH,
Labriola

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

 Hi Guys,
 
 I'm creating an Air Application that has to check the connections 
to a
 server.
 So when there's connection to the server, it retrieves XMLs through
 HTTPservice from my backend
 and if there's no connection , it should retrieve XMLs from local 
disk.
 Reading xml is no problem in both ways, but whats the best way to 
create
 the connection checking logic.??
 
 Thanks
 - Indra





Re: [flexcoders] Re: Air App - Check connection

2008-06-01 Thread Sherif Abdou
I think you would need LIveCycle Express for that


- Original Message 
From: Michael Labriola [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, June 1, 2008 8:40:06 PM
Subject: [flexcoders] Re: Air App - Check connection



Indra,

Look in the AIR help files for the presence API. 

I think this article also covers it, but not sure how up to date it 
is:

http://www.adobe. com/devnet/ air/flex/ articles/ flickr_floater_ 06.html

HTH,
Labriola

--- In [EMAIL PROTECTED] ups.com, Indra Prastha indra.prastha@ ... 
wrote:

 Hi Guys,
 
 I'm creating an Air Application that has to check the connections 
to a
 server.
 So when there's connection to the server, it retrieves XMLs through
 HTTPservice from my backend
 and if there's no connection , it should retrieve XMLs from local 
disk.
 Reading xml is no problem in both ways, but whats the best way to 
create
 the connection checking logic.??
 
 Thanks
 - Indra





  

[flexcoders] SWFLoader doesn't fire complete event

2008-06-01 Thread Pete Miller

I have problems with getting the 'complete' event to occur in an application 
I'm working on, so I wrote this:

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

mx:Script
![CDATA[
import mx.events.*;
import mx.controls.Alert;

public function onComplete():void {
Alert.show('Complete!', '', Alert.OK, this);
}
]]
/mx:Script

mx:SWFLoader source='@Embed(source=deleteme.swf)' 
complete='onComplete()' /

/mx:Application


This doesn't work either.  If I can see the swf on the screen, then why don't I 
get the 'complete' event?

P.

_
Keep your kids safer online with Windows Live Family Safety.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_Refresh_family_safety_052008

Re: [flexcoders] SWFLoader doesn't fire complete event

2008-06-01 Thread Sherif Abdou
mx:Script
![CDATA[
test.content.addEventListener(Event.COMPLETE,doWhateverFunction);
]]
/mx:Script
mx:SWFLoader id=test/
you need to add a Listener to the content and not the SWF. try that


- Original Message 
From: Pete Miller [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, June 1, 2008 9:16:58 PM
Subject: [flexcoders] SWFLoader doesn't fire complete event


I have problems with getting the 'complete' event to occur in an application 
I'm working on, so I wrote this:

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

mx:Script
![CDATA[
import mx.events.*;
import mx.controls. Alert;

public function onComplete() :void {
Alert.show(' Complete! ', '', Alert.OK, this);
}
]]
/mx:Script

mx:SWFLoader source='@Embed( source=deleteme .swf)' complete='onComplet 
e()' /

/mx:Application


This doesn't work either.  If I can see the swf on the screen, then why don't I 
get the 'complete' event?

P.



Keep your kids safer online with Windows Live Family Safety. Help protect your 
kids. 


  

[flexcoders] Re: BitmapData source for mx:Image

2008-06-01 Thread limhy0306
Hi,

I've tried it; but it still doesn't work!

Thank you.

Regards,
hy

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

 Try setting columnWidth rowHeight to 176 and 144
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of limhy0306
 Sent: Thursday, May 29, 2008 1:41 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] BitmapData source for mx:Image
 
  
 
 Hi,
 
 I've encountered the following problem when using BitmapData as 
 source for mx:Image:
 
 mx:Image width=176 height=144 id=imgDisplay
 scaleContent=true 
 maintainAspectRatio=true
 maxWidth=176
 maxHeight=144
 mx:source
 display:Bitmap width=176 height=144
 bitmapData={data.thumbBmpData}/
 /mx:source
 /mx:Image
 
 This Image component is a Renderer for a TileList which is used to 
 show a list of images. The DataProvider to the TileList is a class 
 ThumbnailData - which stores thumbBmpData: BitmapData.
 
 I have no problem displaying the images when the BitmapData is 
 176x144.
 
 However, when any one of the image changes its BitmapData to a 
bigger 
 size (e.g. 352x288)
 - that image suddenly expands to 352x288; instead of getting 
scaled 
 to fit into 176x144.
 
 Anyone encountered this problem before?
 
 Thank you very much.
 
 Regards,
 HY





RE: [flexcoders] SWFLoader doesn't fire complete event

2008-06-01 Thread Joan Lafferty
You could also try adding a listener to the SWFLoader for the complete
event in the initialize or preinitialize event. Since both your complete
event and source are defined in mxml, if the source loads really
quickly, you probably will miss the event. Try:

 

 

mx:SWFLoader id=thisSWF source='@Embed(source=deleteme.swf)'
preinitialize=thisSWF.addEventListener('complete', onComplete) /






From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pete Miller
Sent: Sunday, June 01, 2008 7:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SWFLoader doesn't fire complete event

 

I have problems with getting the 'complete' event to occur in an
application I'm working on, so I wrote this:

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

mx:Script
![CDATA[
import mx.events.*;
import mx.controls.Alert;

public function onComplete():void {
Alert.show('Complete!', '', Alert.OK, this);
}
]]
/mx:Script

mx:SWFLoader source='@Embed(source=deleteme.swf)'
complete='onComplete()' /

/mx:Application


This doesn't work either.  If I can see the swf on the screen, then why
don't I get the 'complete' event?

P.



Keep your kids safer online with Windows Live Family Safety. Help
protect your kids.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_W
L_Refresh_family_safety_052008  

 



Re: [flexcoders] Re: BitmapData source for mx:Image

2008-06-01 Thread Josh McDonald
This is a guess, but:

When the binding updates the bitmapData on your mx:bitmap, it's not updating
the width and height of that mx:bitmap component. The Image see the
mx:bitmap is the same size, so paints it directly in rather than scaling it
to fit.

-J

On Mon, Jun 2, 2008 at 1:17 PM, limhy0306 [EMAIL PROTECTED] wrote:

   Hi,

 I've tried it; but it still doesn't work!

 Thank you.

 Regards,
 hy


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex
 Harui [EMAIL PROTECTED] wrote:
 
  Try setting columnWidth rowHeight to 176 and 144
 
 
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of limhy0306
  Sent: Thursday, May 29, 2008 1:41 AM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] BitmapData source for mx:Image
 
 
 
  Hi,
 
  I've encountered the following problem when using BitmapData as
  source for mx:Image:
 
  mx:Image width=176 height=144 id=imgDisplay
  scaleContent=true
  maintainAspectRatio=true
  maxWidth=176
  maxHeight=144
  mx:source
  display:Bitmap width=176 height=144
  bitmapData={data.thumbBmpData}/
  /mx:source
  /mx:Image
 
  This Image component is a Renderer for a TileList which is used to
  show a list of images. The DataProvider to the TileList is a class
  ThumbnailData - which stores thumbBmpData: BitmapData.
 
  I have no problem displaying the images when the BitmapData is
  176x144.
 
  However, when any one of the image changes its BitmapData to a
 bigger
  size (e.g. 352x288)
  - that image suddenly expands to 352x288; instead of getting
 scaled
  to fit into 176x144.
 
  Anyone encountered this problem before?
 
  Thank you very much.
 
  Regards,
  HY
 

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Re: BitmapData source for mx:Image

2008-06-01 Thread Josh McDonald
Are you getting a layout change, or does the bitmap sort of just grow out
of where the image component was like it's colouring outside the lines?

On Mon, Jun 2, 2008 at 1:28 PM, Josh McDonald [EMAIL PROTECTED] wrote:

 This is a guess, but:

 When the binding updates the bitmapData on your mx:bitmap, it's not
 updating the width and height of that mx:bitmap component. The Image see the
 mx:bitmap is the same size, so paints it directly in rather than scaling it
 to fit.

 -J


 On Mon, Jun 2, 2008 at 1:17 PM, limhy0306 [EMAIL PROTECTED] wrote:

   Hi,

 I've tried it; but it still doesn't work!

 Thank you.

 Regards,
 hy


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex
 Harui [EMAIL PROTECTED] wrote:
 
  Try setting columnWidth rowHeight to 176 and 144
 
 
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of limhy0306
  Sent: Thursday, May 29, 2008 1:41 AM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] BitmapData source for mx:Image
 
 
 
  Hi,
 
  I've encountered the following problem when using BitmapData as
  source for mx:Image:
 
  mx:Image width=176 height=144 id=imgDisplay
  scaleContent=true
  maintainAspectRatio=true
  maxWidth=176
  maxHeight=144
  mx:source
  display:Bitmap width=176 height=144
  bitmapData={data.thumbBmpData}/
  /mx:source
  /mx:Image
 
  This Image component is a Renderer for a TileList which is used to
  show a list of images. The DataProvider to the TileList is a class
  ThumbnailData - which stores thumbBmpData: BitmapData.
 
  I have no problem displaying the images when the BitmapData is
  176x144.
 
  However, when any one of the image changes its BitmapData to a
 bigger
  size (e.g. 352x288)
  - that image suddenly expands to 352x288; instead of getting
 scaled
  to fit into 176x144.
 
  Anyone encountered this problem before?
 
  Thank you very much.
 
  Regards,
  HY
 

  




 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] JAXB for actionscript

2008-06-01 Thread Everson Alves
Hello,

I haven´t seen any but i´ve written a air application that gets Java code
generated with JAXB and creates the corresponding actionscript classes. The
code is messy but it works. I can give it to you if you are interested.

On 5/26/08, gianlucavatinno [EMAIL PROTECTED] wrote:

   hello to all,

 I'm searching for program like JAXB (for java) that compiles xsd into
 actionscript 3 class.
 is there anything like that?




RE: [flexcoders] Flex drag n drop, zoom issue

2008-06-01 Thread Rick Winscot
Right. I don't have the time to fix your application for you - but I do have
time to give you a quickie example that will set you in the right direction.
This example works as-is if you replace the house_plans.png and couch.png
images. The 'take-aways' are listed below the example.

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

 

mx:Script

  ![CDATA[



private function doZoom():void

{

  myCanvas.scaleX = myCanvas.scaleY = ( myZoomer.value / 100
);

}



  ]]

/mx:Script

 

  mx:VSlider x=414 y=151 minimum=10 maximum=100
snapInterval=5 liveDragging=true id=myZoomer change=doZoom();
value=100/

 

  mx:Canvas x=439 y=151 width=400 height=400 id=myHolder

mx:Canvas id=myCanvas horizontalScrollPolicy=off
verticalScrollPolicy=off

  mx:Image source=house_plans.png/

  mx:Image x=62 y=26 source=couch.png/

/mx:Canvas

  /mx:Canvas

  

/mx:Application

 

 

Key Take-aways:

 

#1 - a container in container approach helps eliminate scroll bar scaling
issues

#2 - a container in container approach helps reduce the number of scalable
objects you have to keep track of to one (myCanvas - children should be
added here)

#3 - position of all objects is maintained without having to after-manage
coordinates

 

How you manage the size/ratio of objects after you get this all setup.
should probably be done just setting the unscaledWith and unscaledHeight
appropriately. 

 

Rick Winscot

 

 

 

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gireesh Kumar
Sent: Sunday, June 01, 2008 2:04 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex drag n drop, zoom issue

 


Actually it is a canvas, and I am placing the objects on the canvas, I tried
setting the plan image as background of canvas also. 

And if I change only the canvas scaleX and scaleY the placed object is not
zooming properly. 
If you look at the source you will see this. 


Thanks
Gireesh

On Sun, Jun 1, 2008 at 11:06 PM, Rick Winscot [EMAIL PROTECTED]
wrote:

It crossed my mind that you might be doing something like this. can I
recommend an alternate solution? Use a canvas/container to host your plan
_and_ all of your placed objects - then just set the scaleX/scaleY of that
canvas/container. If you do it this way - you won't have to worry about
object placement or spacing.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gireesh Kumar
Sent: Sunday, June 01, 2008 1:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex drag n drop, zoom issue

 

Hi, 

Here is the code I use to set the scaleX and Y values 

private function doZoom(event:Event):void{
if(currentPlanCanvas == null){
return;
}
doComponentZoom(currentPlanCanvas,
(HSlider(event.currentTarget).value));
}
private function
doComponentZoom(component:UIComponent,val:Number):void{
component.scaleX = val;
component.scaleY = val;
if(component is Container){
var children:Array = Container(component).getChildren();
for(var i:int = 0; i  children.length; i++){
doComponentZoom(children[i], val);
}
}
}




Thanks
Gireesh






On Sun, Jun 1, 2008 at 10:22 PM, Rick Winscot [EMAIL PROTECTED]
wrote:

I took a quick look at your sample. and it looks like you are doing
something strange with your scaleX/scaleY - they aren't being set uniformly.
You'll only need a single change so I would think: scaleX = scaleY =
zoomer.value  -- no?

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gireeshgiri
Sent: Sunday, June 01, 2008 3:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex drag n drop, zoom issue

 

Hi, 

I am having an issue with the application currently I am
developing, the issue after dropping object to the canvas and if i try
to zoom (in-out) the dropped objects seems to shifts its place. I have
placed a demo URL, you can drag and drop objects to the plan, and try
zooming the plan. 

Demo URL
http://gireeshkumar.ind.in/designDemo/floorDesign2.html

Please help me. 

Thanks
Gireesh.






-- 
Gireesh Kumar G
http://gireeshkumar.ind.in/ 




-- 
Gireesh Kumar G
http://gireeshkumar.ind.in/ 

 



Re: [flexcoders] Multiple filtered views on one source ArrayCollection

2008-06-01 Thread Paul Andrews
Check out ListCollectionView. I've been down that same road. (Feb Thread: any 
ArrayCollection tricks?)

From the thread: I found a great example here, which is perfect: 
http://viconflex.blogspot.com/2006/11/listcollectionview-different.html 

Paul

  - Original Message - 
  From: Josh McDonald 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, June 02, 2008 12:46 AM
  Subject: [flexcoders] Multiple filtered views on one source ArrayCollection


  Hey guys,

  I think maybe I've missed the point of something, or there's a class I need 
to use that I don't know exists :)

  I have an ArrayCollection we'll call sourceCollection. I need to have a 
couple of different views of this data, with which I can use filterFunctions 
without affecting each other or the sourceCollection, and I need these views to 
be updated when the source changes. Perfectly happy for these views to be 
read-only.

  Is there already something that suits my needs? Or do I need to roll my own? 
No problem, but it seems like a common task and I don't want to re-implement 
something that already exists and works :) 

  At first glance I thought the solution would be new 
ArrayCollection(sourceCollection.source), but it won't get updates. If it 
doesn't exist I'd rather build something reusable than just hack together a 
solution by listening to the sourceCollection object.

  -J

  -- 
  Therefore, send not to know For whom the bell tolls. It tolls for thee.

  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]  

Re: [flexcoders] book errata

2008-06-01 Thread Joseph Balderson
Check the peachpit website.
___

Joseph Balderson | http://joeflash.ca
Flex  Flash Platform Developer | Abobe Certified Developer  Trainer
Author, Professional Flex 3 (coming Winter 2008)
Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674



Mark Volkmann wrote:
 Is there an errata page for the book Adobe Flex 3 - Training from the 
 Source?
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 
 


Re: [flexcoders] Multiple filtered views on one source ArrayCollection

2008-06-01 Thread Josh McDonald
Dammit I've been looking at that class all week. I didn't notice it took an
IList!

I ran with the hack temporarily (building a new ArrayCollection from
sourceCollection.source on CollectionEvent.CHANGE), coz I knew there'd be an
easy answer.

Thanks mate :)

-J

On Mon, Jun 2, 2008 at 1:38 PM, Paul Andrews [EMAIL PROTECTED] wrote:

Check out ListCollectionView. I've been down that same road. (Feb
 Thread: any ArrayCollection tricks?)

 From the thread: I found a great example here, which is perfect:
 http://viconflex.blogspot.com/2006/11/listcollectionview-different.html 

 Paul


 - Original Message -
 *From:* Josh McDonald [EMAIL PROTECTED]
 *To:* flexcoders@yahoogroups.com
 *Sent:* Monday, June 02, 2008 12:46 AM
 *Subject:* [flexcoders] Multiple filtered views on one source
 ArrayCollection

 Hey guys,

 I think maybe I've missed the point of something, or there's a class I need
 to use that I don't know exists :)

 I have an ArrayCollection we'll call sourceCollection. I need to have a
 couple of different views of this data, with which I can use filterFunctions
 without affecting each other or the sourceCollection, and I need these views
 to be updated when the source changes. Perfectly happy for these views to be
 read-only.

 Is there already something that suits my needs? Or do I need to roll my
 own? No problem, but it seems like a common task and I don't want to
 re-implement something that already exists and works :)

 At first glance I thought the solution would be new
 ArrayCollection(sourceCollection.source), but it won't get updates. If it
 doesn't exist I'd rather build something reusable than just hack together a
 solution by listening to the sourceCollection object.

 -J

 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Flex drag n drop, zoom issue

2008-06-01 Thread Gireesh Kumar
Hi Rick,

   It worked, I need to make some adjustment to my application to get this
integrated.

Thanks you very much.
Gireesh.

On Mon, Jun 2, 2008 at 9:06 AM, Rick Winscot [EMAIL PROTECTED] wrote:

Right… I don't have the time to fix your application for you – but I do
 have time to give you a quickie example that will set you in the right
 direction. This example works as-is if you replace the house_plans.png and
 couch.png images. The 'take-aways' are listed below the example.



 ?xml version=1.0 encoding=utf-8?

 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
 



 mx:Script

   ![CDATA[



 *private* *function* doZoom():*void*

 {

   myCanvas.scaleX = myCanvas.scaleY = ( myZoomer.value /
 100 );

 }



   ]]

 /mx:Script



   mx:VSlider x=414 y=151 minimum=10 maximum=100
 snapInterval=5 liveDragging=true id=myZoomer change=doZoom();
 value=100/



   mx:Canvas x=439 y=151 width=400 height=400 id=myHolder

 mx:Canvas id=myCanvas horizontalScrollPolicy=off
 verticalScrollPolicy=off

   mx:Image source=house_plans.png/

   mx:Image x=62 y=26 source=couch.png/

 /mx:Canvas

   /mx:Canvas



 /mx:Application





 Key Take-aways:



 #1 – a container in container approach helps eliminate scroll bar scaling
 issues

 #2 – a container in container approach helps reduce the number of scalable
 objects you have to keep track of to one (myCanvas – children should be
 added here)

 #3 – position of all objects is maintained without having to after-manage
 coordinates



 How you manage the size/ratio of objects after you get this all setup…
 should probably be done just setting the unscaledWith and unscaledHeight
 appropriately.



 Rick Winscot











 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Gireesh Kumar
 *Sent:* Sunday, June 01, 2008 2:04 PM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Flex drag n drop, zoom issue




 Actually it is a canvas, and I am placing the objects on the canvas, I
 tried setting the plan image as background of canvas also.

 And if I change only the canvas scaleX and scaleY the placed object is not
 zooming properly.
 If you look at the source you will see this.


 Thanks
 Gireesh

 On Sun, Jun 1, 2008 at 11:06 PM, Rick Winscot [EMAIL PROTECTED]
 wrote:

 It crossed my mind that you might be doing something like this… can I
 recommend an alternate solution? Use a canvas/container to host your plan _
 *and*_ all of your placed objects – then just set the scaleX/scaleY of
 that canvas/container. If you do it this way – you won't have to worry about
 object placement or spacing.



 Rick Winscot





 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Gireesh Kumar
 *Sent:* Sunday, June 01, 2008 1:06 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Flex drag n drop, zoom issue



 Hi,

 Here is the code I use to set the scaleX and Y values

 private function doZoom(event:Event):void{
 if(currentPlanCanvas == null){
 return;
 }
 doComponentZoom(currentPlanCanvas,
 (HSlider(event.currentTarget).value));
 }
 private function
 doComponentZoom(component:UIComponent,val:Number):void{
 component.scaleX = val;
 component.scaleY = val;
 if(component is Container){
 var children:Array = Container(component).getChildren();
 for(var i:int = 0; i  children.length; i++){
 doComponentZoom(children[i], val);
 }
 }
 }




 Thanks
 Gireesh




  On Sun, Jun 1, 2008 at 10:22 PM, Rick Winscot [EMAIL PROTECTED]
 wrote:

 I took a quick look at your sample… and it looks like you are doing
 something strange with your scaleX/scaleY – they aren't being set uniformly.
 You'll only need a single change so I would think: scaleX = scaleY =
 zoomer.value  -- no?



 Rick Winscot





 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *gireeshgiri
 *Sent:* Sunday, June 01, 2008 3:11 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex drag n drop, zoom issue



 Hi,

 I am having an issue with the application currently I am
 developing, the issue after dropping object to the canvas and if i try
 to zoom (in-out) the dropped objects seems to shifts its place. I have
 placed a demo URL, you can drag and drop objects to the plan, and try
 zooming the plan.

 Demo URL
 http://gireeshkumar.ind.in/designDemo/floorDesign2.html

 Please help me.

 Thanks
 Gireesh.




 --
 Gireesh Kumar G
 http://gireeshkumar.ind.in/




 --
 Gireesh Kumar G
 http://gireeshkumar.ind.in/

   




-- 
Gireesh Kumar G
http://gireeshkumar.ind.in/


Re: [flexcoders] Casting Problem.. Type Coercion Failed

2008-06-01 Thread Doug McCune
ALL_USERS isn't a collection of UserVO objects it seems. Looks like it's a
collection of generic Objects. How did you create the collection? Did you
use AMF? Did you load from XML? Somehow the objects that got created did not
get created as the proper UserVO objects. So check the collection when it
gets set, it's not getting set right. If you're using AMF then you might
need to include a reference to the UserVO class so the compiler knows to
include it, otherwise it won't get deserialized right. If you're using some
other method (like loading XML, etc) then make sure in the parsing of the
data that you are explicitly creating UserVO objects.

Doug

On Sun, Jun 1, 2008 at 6:35 AM, Manu Dhanda [EMAIL PROTECTED]
wrote:


 Hii

 am writing a simple application where for logging in, am checking the
 values
 against the value objects contained in an ArrayCollection.

 While

 if((evt.userVO.email == ModelLocator.ALL_USERS[i].email)  (evt.userVO.pwd
 == ModelLocator.ALL_USERS[i].pwd))

 returns true, then why it throws this Type coercion error at this following
 line:

 model.currentUser = ModelLocator.ALL_USERS[i];
 //UserVO(ModelLocator.ALL_USERS[i]);

 currentUser is type UserVO and ALL_USERS is a collection of UserVO objects.

 I had tried by explicitely casting the above line(as commented), but still
 the same.

 Here is the error, I received while debugging:

 Explicit casting:-

 TypeError: Error #1034: Type Coercion failed: cannot convert
 [EMAIL PROTECTED]
 to com.live.flats.vo.UserVO.
 at

 com.live.flats.commands::LoginInfoCommand/execute()[F:\xampp\htdocs\flats\flex_src\com\live\flats\commands\LoginInfoCommand.as:60]
 at

 com.adobe.cairngorm.control::FrontController/executeCommand()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\FrontController.as:215]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at

 com.adobe.cairngorm.control::CairngormEventDispatcher/dispatchEvent()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEventDispatcher.as:113]
 at

 com.adobe.cairngorm.control::CairngormEvent/dispatch()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEvent.as:77]
 at

 com.live.flats.view::LoginPanelBar/loginUser()[F:\xampp\htdocs\flats\flex_src\com\live\flats\view\LoginPanelBar.mxml:29]
 at

 com.live.flats.view::LoginPanelBar/__loginButton_click()[F:\xampp\htdocs\flats\flex_src\com\live\flats\view\LoginPanelBar.mxml:74]

 Implicit Casting:-

 TypeError: Error #1034: Type Coercion failed: cannot convert
 [EMAIL PROTECTED]
 to com.live.flats.vo.UserVO.
 at

 com.live.flats.commands::LoginInfoCommand/execute()[F:\xampp\htdocs\flats\flex_src\com\live\flats\commands\LoginInfoCommand.as:60]
 at

 com.adobe.cairngorm.control::FrontController/executeCommand()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\FrontController.as:215]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at

 com.adobe.cairngorm.control::CairngormEventDispatcher/dispatchEvent()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEventDispatcher.as:113]
 at

 com.adobe.cairngorm.control::CairngormEvent/dispatch()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEvent.as:77]
 at

 com.live.flats.view::LoginPanelBar/loginUser()[F:\xampp\htdocs\flats\flex_src\com\live\flats\view\LoginPanelBar.mxml:29]
 at

 com.live.flats.view::LoginPanelBar/__loginButton_click()[F:\xampp\htdocs\flats\flex_src\com\live\flats\view\LoginPanelBar.mxml:74]

 Any help would be great.
 Thanks.

 --
 View this message in context:
 http://www.nabble.com/Casting-Problem..-Type-Coercion-Failed-tp17585702p17585702.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  



[flexcoders] MXML syntax suggestion - worth adding a feature request for Fx4?

2008-06-01 Thread Josh McDonald
Just wanna test the waters and see what people think before I clog up
adobe's pipeline with yet another request :)

What about a non-binding evaluation syntax for MXML? OpenLaszlo (shudder)
lets you do

element attr=${ foo }/

Which is a binding, and:

element attr=$once{ foo }/

Which is executed once. I imagine we'd want it done either post
instantiation, or before creationComplete. I think it'd be useful for
constants, as well as calling functions that return a closure to generate
things like labelFunctions, sortFunctions, etc.

Not sure on the syntax or exact execution time, but I think it's hella
useful. I'd definitely want a compile-time warning if you point it to a
variable or a function that returns a variable (rather than an immutable
primitive or another function).

Ideas? Feedback?

Love it / Hate it / It's already in there you douchebag?

-J

-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] The different between generial Flex 3 and Flex 3 Profesional?

2008-06-01 Thread Scott Barnes
wow :)

I only joined Microsoft in 2007 (prior to which I was on this list coding
away in Flex since this list was born), I don't know what we did prior to
2007 nor do I really care (can't change the past, can only influence the
future!), suffice to say while I'm on the job, the tactics and strategies
aren't underhanded and the compete is kept clean (which we have been really
good about). That being said, when I see assumptions or inaccurate
information being presented in a forum (couldn't care as to what theme or
where) i'll simply step forward, make sure our opinion is heard and step
back. I don't draw battle lines, I don't buy into this is our gangs turf,
go to your own mentality as to me it just is a waste of brain matter to
think in that mode. Suffice to say, should you still think it's not
appropriate, Adobe Staffers have done similar posts to this on Silverlight
related forums? (which I welcome! as I'm sure folks in the .NET community
aren't kind to Adobe messaging either).

It doesn't bother me that folks dislike Silverlight or say negative things
about it, if it's not for you, great, enjoy Flex and all the best. I'd
rather you dislike us with an accurate amount of information vs reading a
friend of a friends blog post or picked up some random text byte on a forum
somewhere.

I'd encourage all to interact with various communities (don't be restricted
by just one technology, explore more), as you learn more about your approach
by seeing how others complete theirs.

All the best and have another glass of wine! :) (if it's good, keep the flow
going!).

Scott Barnes
Product Manager
Microsoft.

On Sat, May 31, 2008 at 4:27 PM, Paul Andrews [EMAIL PROTECTED] wrote:

oops too much red wine.

 I was going to say I wouldn't have been been bothered if it had been
 anyone but a senior MS guy.  Don't worry about resurrecting this argument,
 I'm crawling back under my stone on this one.

 Paul

  - Original Message -
 *From:* Paul Andrews [EMAIL PROTECTED]
 *To:* flexcoders@yahoogroups.com
  *Sent:* Sunday, June 01, 2008 12:23 AM
 *Subject:* Re: [flexcoders] The different between generial Flex 3 and Flex
 3 Profesional?

 No. I just think that when it's the head of a rival technology company
 technology, it's different. Clearly, it's not the general view so there's no
 point in making more of it. I wouldn't have been been bothered. It seems I
 shouldn't be bothered anyway, it seems.

 Paul

 - Original Message -
 *From:* Jeffry Houser [EMAIL PROTECTED]
 *To:* flexcoders@yahoogroups.com
 *Sent:* Saturday, May 31, 2008 9:18 PM
 *Subject:* Re: [flexcoders] The different between generial Flex 3 and Flex
 3 Profesional?


  One of my friends, a long time ColdFusion Developer has been doing a lot
 of work with Ruby lately.  Are you saying it's wrong for him to talk to me
 about Ruby?

  I'm not grokking the basis of your argument.

 Paul Andrews wrote:

  I guess I'm the agressive one. I've seen other products where former
 practictioners of product A have moved to rival company B and return to
 their former haunts to help out company A's customers with their insight.









 --
 Jeffry Houser
 Flex, ColdFusion, AIR
 AIM: Reboog711  | Phone: 1-203-379-0773
 --
 Adobe Community Expert 
 http://www.adobe.com/communities/experts/members/JeffryHouser.html 
 http://www.adobe.com/communities/experts/members/JeffryHouser.html
 My Company: http://www.dot-com-it.com http://www.dot-com-it.com/
 My Podcast: http://www.theflexshow.com http://www.theflexshow.com/
 My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com/

 



RE: [flexcoders] SWFLoader doesn't fire complete event

2008-06-01 Thread Alex Harui
I'd have to double-check, but I don't think @Embed's generate a complete
event since it isn't an external asynchronous load.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joan Lafferty
Sent: Sunday, June 01, 2008 8:28 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] SWFLoader doesn't fire complete event

 

You could also try adding a listener to the SWFLoader for the complete
event in the initialize or preinitialize event. Since both your complete
event and source are defined in mxml, if the source loads really
quickly, you probably will miss the event. Try:

 

 

mx:SWFLoader id=thisSWF source='@Embed(source=deleteme.swf)'
preinitialize=thisSWF.addEventListener('complete', onComplete) /







From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pete Miller
Sent: Sunday, June 01, 2008 7:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SWFLoader doesn't fire complete event

 

I have problems with getting the 'complete' event to occur in an
application I'm working on, so I wrote this:

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

mx:Script
![CDATA[
import mx.events.*;
import mx.controls.Alert;

public function onComplete():void {
Alert.show('Complete!', '', Alert.OK, this);
}
]]
/mx:Script

mx:SWFLoader source='@Embed(source=deleteme.swf)'
complete='onComplete()' /

/mx:Application


This doesn't work either.  If I can see the swf on the screen, then why
don't I get the 'complete' event?

P.



Keep your kids safer online with Windows Live Family Safety. Help
protect your kids.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_W
L_Refresh_family_safety_052008  

 



RE: [flexcoders] Re: Tree duplicating items - desperate!!!

2008-06-01 Thread Alex Harui
I would add trace statements showing when you add/remove stuff and see
if the log makes sense.  You could be dragging over or out in some way
that you don't expect

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rafael Faria
Sent: Sunday, June 01, 2008 5:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tree duplicating items - desperate!!!

 

If i remove those lines it wont create the brances dynamically...

What i do is when i drag over a page that is not a branch it
automatically transform it as a branch, if i don't drop and drag out
of it, it will trasnform back to a simple leaf. that's why i need to
leave it on the dragover.

if you have a better solution please i would love to hear because this
is killing me.

i don't know why is duplicating like i showed on the screenshots
because even when i use the debug version i get no errors.

helpp 

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

 What are the four lines? If you remove them what happens? Step through
 dragCompleteHandler.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Rafael Faria
 Sent: Thursday, May 29, 2008 11:14 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Tree duplicating items - desperate!!!
 
 
 
 fellows,
 
 i have been bugging you guys about my tree component for a quite long
 time and i'm almost finish. the only thing i still have to deal is a
 bug that's happening.
 
 What happen is, i have to create branches on the fly, dynamically
 whenever i dragover a item.
 
 here is the code to do that (anyone think in a better solution?)
 
 var currNodeOver:TreeItemRenderer =
 TreeItemRenderer(indexToItemRenderer(calculateDropIndex(event)));
 if (currNodeOver == null) return;
 [EMAIL PROTECTED] = true;
 expandItem(currNodeOver.data,true, true);
 
 What is happening is along the drag and drop, an item has been
 duplicated somehow. I have cleaned the code on the point to leave just
 that 4 lines on my extended tree and guess what? still happens.
 
 so i'm not sure if it's a tree bug or is something wrong with those
 lines, but sometimes (and it doesnt happen everytime) when i drag a
 children from a branch it duplicates, which mean that the one i was
 dragging does not move.
 
 I'm not sure if i'm being clear, but i hope i can get some help on
 that cause i just lost a couple days trying to fix it.
 
 Here is some screen shot of what's happening.
 
 Picture 1, the normal state. 
 http://www.enilsson.com/assets/images/pic1.png
http://www.enilsson.com/assets/images/pic1.png 
 http://www.enilsson.com/assets/images/pic1.png
http://www.enilsson.com/assets/images/pic1.png  
 
 Picture 2, the bug 
 http://www.enilsson.com/assets/images/pic2.png
http://www.enilsson.com/assets/images/pic2.png 
 http://www.enilsson.com/assets/images/pic2.png
http://www.enilsson.com/assets/images/pic2.png  
 
 Like i said. it should had moved instead of duplicate. Most of the
 time is working, everything works... but suddenly it duplicates and
 debug doesn't return any errors.
 
 helpp


 



Re: [flexcoders] The different between generial Flex 3 and Flex 3 Profesional?

2008-06-01 Thread Paul Andrews
Hi Scott,

Wow . Well maybe.

I'm trying to make my mind up about whether I should really be bothered about 
your presence or not. As I said in another post, I've seen similar things in 
another technical area and the helpful posts were more about promotion of the 
rival technology rather than really helping the community. In the case in 
question the helpful posts contained very valid information for the community, 
particularly at first, but gradually the posts had subtexts inferring the 
superiority of the rival product and even at one stage offers of discounting to 
encourage people to jump ship. Then, as here, the poster was an expert in using 
both technologies and had many personal friends on the forum: no mistake about 
it the guy was loved by the community he left and really he was exploiting the 
situation to grow users of his product. His interventions split the community 
badly and eventually he desisted. Anyway, that gives an idea of where I come 
from. That particular forum often has discussions about the merits of the two 
products involved and generally it's not provocative.

I'm not saying that you are behaving as this guy did, but for me there's an 
echo of what happened elsewhere.

Seeing your posts really unsettled me. Maybe I'm wrong. Given your position at 
Microsoft, it's inevitable that your aim must be to encourage users of rival 
technologies to adopt your technologies. If you don't have that aim Microsoft 
recruited the wrong person. As impartial as you may try to be in your posts 
they effectively are an infomercial.

I have no idea if Adobe staff are regularly correcting misconceptions on 
Silverlight forums. If they are, as a silverlight user, I'd have similar 
feelings.

Ultimately developers will cross over and mix technologies and I'm not bothered 
about that. It's when the actual parties get involved that I get nervous.

I think I've made my point, as have you and others. I'm going to let things be. 
Just don't offer any discounts here for Silverlight for Flex developers..  ;-)

Paul


  - Original Message - 
  From: Scott Barnes 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, June 02, 2008 6:04 AM
  Subject: Re: [flexcoders] The different between generial Flex 3 and Flex 3 
Profesional?


  wow :) 

  I only joined Microsoft in 2007 (prior to which I was on this list coding 
away in Flex since this list was born), I don't know what we did prior to 2007 
nor do I really care (can't change the past, can only influence the future!), 
suffice to say while I'm on the job, the tactics and strategies aren't 
underhanded and the compete is kept clean (which we have been really good 
about). That being said, when I see assumptions or inaccurate information being 
presented in a forum (couldn't care as to what theme or where) i'll simply step 
forward, make sure our opinion is heard and step back. I don't draw battle 
lines, I don't buy into this is our gangs turf, go to your own mentality as 
to me it just is a waste of brain matter to think in that mode. Suffice to say, 
should you still think it's not appropriate, Adobe Staffers have done similar 
posts to this on Silverlight related forums? (which I welcome! as I'm sure 
folks in the .NET community aren't kind to Adobe messaging either).

  It doesn't bother me that folks dislike Silverlight or say negative things 
about it, if it's not for you, great, enjoy Flex and all the best. I'd rather 
you dislike us with an accurate amount of information vs reading a friend of a 
friends blog post or picked up some random text byte on a forum somewhere. 

  I'd encourage all to interact with various communities (don't be restricted 
by just one technology, explore more), as you learn more about your approach by 
seeing how others complete theirs.

  All the best and have another glass of wine! :) (if it's good, keep the flow 
going!).

  Scott Barnes
  Product Manager
  Microsoft.


  On Sat, May 31, 2008 at 4:27 PM, Paul Andrews [EMAIL PROTECTED] wrote:


oops too much red wine.

I was going to say I wouldn't have been been bothered if it had been 
anyone but a senior MS guy.  Don't worry about resurrecting this argument, I'm 
crawling back under my stone on this one.

Paul
  - Original Message - 
  From: Paul Andrews 
  To: flexcoders@yahoogroups.com 
  Sent: Sunday, June 01, 2008 12:23 AM
  Subject: Re: [flexcoders] The different between generial Flex 3 and Flex 
3 Profesional?


  No. I just think that when it's the head of a rival technology company 
technology, it's different. Clearly, it's not the general view so there's no 
point in making more of it. I wouldn't have been been bothered. It seems I 
shouldn't be bothered anyway, it seems.

  Paul 
- Original Message - 
From: Jeffry Houser 
To: flexcoders@yahoogroups.com 
Sent: Saturday, May 31, 2008 9:18 PM
Subject: Re: [flexcoders] The different between generial Flex 3 and