Re: [flexcoders] ItemRenderer dispatch event problem

2009-07-05 Thread Sefi Ninio
Read up on event life cycle, specifically about capture, target and bubble
phases.
dispatchEvent(new Event(eventType)); will dispatch the event.
But since it's a renderer (let's say a datagrid renderer for example sake),
the only way for you to listen for the event is on the datagrid itself, i.e.
datagrid.addEventListener(eventType, handlerFunction);

Adding the event listener like this is listening for events from the given
type, *dispatched from the datagrid*, but it's your renderer that is
dispatching the event, not the datagrid...

The way to make this work, is dispatch it from the renderer with bubbling -
which will make it bubble up the display list heirarchy renderer-datagrid
-etc... and will make your handler catch the event.

So, a long story short, dispatch the event from the renderer like this:
dispatchEvent(new Event(eventType, true));

But you should really read up on event phases

2009/7/5 j2me_soul j2me_s...@163.com



 How can let the parent of itemrenderer know something is happened ?
 I use dispatchevent function, but it doesn't work.



 --
 200万种商品,最低价格,疯狂诱惑你http://count.mail.163.com/redirect/footer.htm?f=http://gouwu.youdao.com
 



Re: [flexcoders] Re: Problems with Julian Dates with AIR percision?

2009-07-05 Thread Charlie Hubbard
Yarg!  I figure it out, and it was not related to precision after all.  It
was the portion of my query unrelated to the datetime treatment.

Thanks for the reply,

Charlie

On Sat, Jul 4, 2009 at 12:06 PM, jason_williams_mm jwilli...@macromedia.com
 wrote:



 Hi Charlie,
 Can you post an example of the code that you are using? It would help to
 see an example table definition along with the AS code you are using.

 Thanks,
 jw


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Charlie
 Hubbard charlie.hubb...@... wrote:
 
  I'm writing some unit tests for my database, and I'm having a real
 problem
  with Julian date comparisons in the SQLite database. I'm trying to load
  records by the following query:
 
  select * from Table where created_at  ?
 
  If my given Date is less than stored dates by 100ms SQLite fails to hand
  them back. I've taken the times stored in SQLite and put them into
  coversion programs to convert them to unix epoch longs, and millisecond
  percision is stored in the number. SQLIte does have percision down to the
  millisecond, but when I do a sql query they fail to compare correctly.
 I've
  also confirmed that I do get back the milliseconds correctly stored in
 the
  actionscript's Date object. Has anyone else had trouble like this? Should
  I just store them as unix epoch integers rather than SQLite's Julian?
 These
  timestamps are important and I want them to be as precise as possible so
  while I could chalk it up to only have second precision that increases
 the
  likelyhood of mistakes if operations occur within that second.
 
  Charlie
 

  



[flexcoders] Re: getting the xml data from a dispatched event

2009-07-05 Thread Jason B

It wont accept your suggestions

Severity and DescriptionPathResourceLocation
Creation Time   Id
1120: Access of undefined property Panelcreatemealitem. /srcMain.mxml   
line 1051246801954900   468962








--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:

 
 Wow, I've got to say; What  a mess.  However, you can get it to work
 with the following changes:
 
 [Bindable]
 private var customMeals:XMLListCollection = new XMLListCollection();
 
 
 
 // addToMeal event Handler
 private function addToMealHandler(event:Event):void
 {
   customMeals.addItem((event.target as
 Panelcreatemealitem).mealDetails);
   Alert.show(customMeals.toString());
 }
 
 You have some naming conflicts and, since you're dealing with xml,
 you'll need to use an XMLListCollection; instead of an ArrayCollection.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, Jason B nospam@ wrote:
 
  Heres my three mxml files two of which are under the com/ folder and
 get imported...hope that helps
 
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=vertical
  creationComplete=init() styleName=plain
 xmlns:nutrition=com.nutrition.*
  paddingLeft=10 paddingTop=10 paddingRight=10 paddingBottom=10
 
  mx:Script
  ![CDATA[
  import mx.collections.ArrayCollection;
  import mx.collections.ICollectionView;
  import mx.collections.XMLListCollection;
  import com.nutrition.MealItem;
  import mx.controls.Alert;
  import mx.rpc.events.FaultEvent;
  import mx.rpc.events.ResultEvent;
  import mx.rpc.http.HTTPService;
  // initialize
  private function init():void
  {
  //load calories
  httpservice_load(/main.php/flexnutrition/loadcalories,
 this[loadcaloriesResultHandler]);
 
  hsNutrition.send();
  addEventListener('addToMeal', addToMealHandler);
  addEventListener('removeMeal', removeMealHandler);
  addEventListener('learnAboutThis', learnaboutthisswf);
 
 
 
  }
 
  private function httpservice_load(url_src:String,
 resulthandler:Function):void{
 
  httpService.url = url_src;
 
  //var tmp:String = resulthandler.toString();
  //if(tmp != none)
  httpService.addEventListener(ResultEvent.RESULT, resulthandler);
  httpService.send();
  }
 
  private function learnaboutthisswf(event:Event):void{
  vfc_guy.load(/uploads/swf/ + loadswf_var);
 
  }
 
  [Bindable]
  private var nutritionData:XML;
  [Bindable]
  private var maindata:XML;
  [Bindable]
  public var loadswf_var:String;
  [Bindable]
  public var createmeals_loadswf_var:String;
 
  //load all calories for main meals
  private function loadcaloriesResultHandler(event:ResultEvent):void
  {
  maindata = event.result as XML;
  vfc_guy.load(/uploads/swf/ + maindata.swf);
  }
 
  // nutrition result handler
  private function nutritionResultHandler(event:ResultEvent):void
  {
  nutritionData = event.result as XML;
  }
  // nutrition fault handler
  private function nutritionFaultHandler(event:FaultEvent):void
  {
  Alert.show(event.toString());
  }
 
  // create breakfast
  private function createBreakfast():void
  {
  vsMain.selectedIndex = 1;
  plantype = 'Breakfast';
  }
  // create lunch
  private function createLunch():void
  {
  vsMain.selectedIndex = 1;
  plantype = 'Lunch';
  }
  // create dinner
  private function createDinner():void
  {
  vsMain.selectedIndex = 1;
  plantype = 'Dinner';
  }
 
  [Bindable]
  private var plantype:String;
 
  [Bindable]
  private var customMeals:ArrayCollection = new ArrayCollection;
 
  // addToMeal event Handler
  private function addToMealHandler(event:Event):void
  {
  trace(event.target);
  //customMeals.addItem((event.target as mealitem).mealDetails);
  Alert.show(event.toString());
 
  }
 
  // removeMeal event Handler
  private function removeMealHandler(event:Event):void
  {
  customMeals.removeItemAt(ls.selectedIndex);
  }
 
  ]]
  /mx:Script
 
  mx:HTTPService id=hsNutrition
 url=/main.php/flexnutrition/nutritioncal
  result=nutritionResultHandler(event)
  fault=nutritionFaultHandler(event) resultFormat=e4x/
 
  mx:HTTPService id=httpService url= resultFormat=e4x/
 
  mx:Label id=totalcalories text={'Today\'s Meal Plan is based on a
 ' + maindata.totalcalories + ' Calorie Diet'} fontWeight=bold
 fontSize=18/
 
  !--mx:Button label=Print Meal Menu /--
 
  mx:ViewStack id=vsMain width=100% height=100%
 
  mx:Canvas id=nutrition_canvas width=100% height=100%
 
  mx:SWFLoader id=vfc_guy source= height=400 width=400
 autoLoad=true x=700 y=100 /
 
  mx:HBox width=100% height=100%
 
  mx:VBox width=40% height=100%
 
  nutrition:MealPanel id=pnlBreakfast
 meal={nutritionData.breakfast}
  title=Breakfast : Please select one meal from
 below({maindata.breakfast} Cal Goal)/
 
  mx:HBox horizontalCenter=right
  mx:Button label=Create your own Breakfast
 click=createBreakfast()/
  /mx:HBox
 
 
  nutrition:MealPanel id=pnlSnack1 meal={nutritionData.snack1}
  title=Snack : Please select one snack from below({maindata.snack1}
 Cal Goal)/
  !--mx:Button 

[flexcoders] Help me to start with flex

2009-07-05 Thread Ramkumar
Hi
I am new to flex and Cairngorm framework.
i would like to start the flex with basics.
Please any one help me to learn this.
Thanks and Regards,
N.Ramkumar


Re: [flexcoders] Problem With debugging

2009-07-05 Thread vamsi krishna
Hi John,
Thank you for your help. But my problem is not resolved. Can you suggest me any 
other way.

--- On Sat, 4/7/09, John McCormack j...@easypeasy.co.uk wrote:


From: John McCormack j...@easypeasy.co.uk
Subject: Re: [flexcoders] Problem With debugging
To: flexcoders@yahoogroups.com
Date: Saturday, 4 July, 2009, 11:10 PM








Hi,

You may have other versions of the FlashPlayer - I found lots of 
versions when I had trouble - Firefox an IE use different programs.
The uninstaller should be used, not the control panel:
http://kb2.adobe. com/cps/141/ tn_14157. html
This may not be the latest version.

Anggie Bratadinata over at Flash_tiger@ yahoogroups. com posted about this 
uninstaller, you might try that.
http://www.revounin staller.com/

Also, change between IE, Firefox, or standalone (html off) to see if 
another debugger helps.
Try searching the registry for flashplayer to see if any others exist 
and consider renaming them.

Perhaps it's an issue to do with the local connection.
Presumably you are hitting F11 to debug.

John

vamsi_vitla999 wrote:
 Hi

 I have strucked up with an debugger issue. Please help me out in resolving in 
 this issue.
 when i tried to debug an application. it gives me an Pop up window stating 
 that
 Failed to connect : session timed out Ensure that
 1.You compiled your flash application with debugging on
 2.You are running the debugger version of flash player.

 I tried to install flash player. and reinstalled flex builder but no use.
 Please help me out

 Thank you In Advance

 Vamsi



  - - --

 --
 Flexcoders Mailing List
 FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
 Alternative FAQ location: https://share. acrobat.com/ adc/document. do?docid= 
 942dbdc8- e469-446f- b4cf-1e62079f684 7
 Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. 
 comYahoo! Groups Links





 

















  See the Web#39;s breaking stories, chosen by people like you. Check out 
Yahoo! Buzz. http://in.buzz.yahoo.com/

Re: [flexcoders] Help me to start with flex

2009-07-05 Thread Nancy Gill
Try this:

http://www.adobe.com/devnet/flex/videotraining/

Nancy Gill
Adobe Community Expert

  - Original Message - 
  From: Ramkumar 
  To: flexcoders@yahoogroups.com 
  Sent: Saturday, July 04, 2009 10:07 AM
  Subject: [flexcoders] Help me to start with flex





  Hi
  I am new to flex and Cairngorm framework.
  i would like to start the flex with basics.
  Please any one help me to learn this.
  Thanks and Regards,
  N.Ramkumar


  


  __ Information from ESET NOD32 Antivirus, version of virus signature 
database 4218 (20090705) __

  The message was checked by ESET NOD32 Antivirus.

  http://www.eset.com


Re: [flexcoders] Problem With debugging

2009-07-05 Thread John McCormack
Hi Vamsi,

I don't know if I can help but I can give it a try.
First, which versions of Flex Builder and FlashPlayer do you use?
Can you debug any other SWF - one from some time ago?

I just tried this:
I right clicked the taskbar and ran Task Manager.
On the Processes tab I clicked the Image Name to put them in order.
I then ran an actionscript project from within Flex Builder.
In the processes list I had FlashUtil10.exe appear - having them in 
order helps see it come and go.

I right-clicked FlashUtil10.exe for its properties which showed that it 
was stored in C:\Windows\SysWOW64\Macromed\Flash
Do you get any such program appear when you run your SWF?
If so, what are its properties?
Are you running the version you expect?
Find its place in filing system, go to ti with Windows Explorer and look 
at its properties.
When I do this mine says Adobe Flash Player Helper 10.0 r2

John


vamsi krishna wrote:


 Hi John,
 Thank you for your help. But my problem is not resolved. Can you 
 suggest me any other way.

 --- On *Sat, 4/7/09, John McCormack /j...@easypeasy.co.uk/* wrote:


 From: John McCormack j...@easypeasy.co.uk
 Subject: Re: [flexcoders] Problem With debugging
 To: flexcoders@yahoogroups.com
 Date: Saturday, 4 July, 2009, 11:10 PM

 Hi,

 You may have other versions of the FlashPlayer - I found lots of
 versions when I had trouble - Firefox an IE use different programs.
 The uninstaller should be used, not the control panel:
 http://kb2.adobe. com/cps/141/ tn_14157. html
 http://kb2.adobe.com/cps/141/tn_14157.html
 This may not be the latest version.

 Anggie Bratadinata over at Flash_tiger@ yahoogroups. com
 
 http://in.mc77.mail.yahoo.com/mc/compose?to=Flash_tiger%40yahoogroups.com
 posted about this
 uninstaller, you might try that.
 http://www.revounin staller.com/ http://www.revouninstaller.com/

 Also, change between IE, Firefox, or standalone (html off) to see if
 another debugger helps.
 Try searching the registry for flashplayer to see if any others exist
 and consider renaming them.

 Perhaps it's an issue to do with the local connection.
 Presumably you are hitting F11 to debug.

 John

 vamsi_vitla999 wrote:
  Hi
 
  I have strucked up with an debugger issue. Please help me out in
 resolving in this issue.
  when i tried to debug an application. it gives me an Pop up
 window stating that
  Failed to connect : session timed out Ensure that
  1.You compiled your flash application with debugging on
  2.You are running the debugger version of flash player.
 
  I tried to install flash player. and reinstalled flex builder
 but no use.
  Please help me out
 
  Thank you In Advance
 
  Vamsi
 
 
 
   - - --
 
  --
  Flexcoders Mailing List
  FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
 sFAQ.txt
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: https://share. acrobat.com/
 adc/document. do?docid= 942dbdc8- e469-446f- b4cf-1e62079f684 7
 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives: http://www.mail- archive.com/ flexcoders%
 40yahoogroups. comYahoo
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
 Groups Links
 
 
 
 
 
 


 
 Love Cricket? Check out live scores, photos, video highlights and 
 more. Click here 
 http://in.rd.yahoo.com/tagline_cricket_2/*http://cricket.yahoo.com.

 




Re: [flexcoders] Problem With debugging

2009-07-05 Thread John McCormack
Sorry Vamsi,

I copied  FlashUtil10.exe to the desktop and ran it.
It's just an updater that runs at the same time.
Try again!

I just ran a debug version of a SWF outside of the IDE and it runs 
FlashPlayer.exe
which appears in the TaskManager list as version 9.0 r124 from here
C:\Program Files (x86)\Adobe\Flex Builder 3 Plug-in\Player\win
Browse to there and check yours.
When I right-click it has debugger as a menu item.
Does yours?

In the past I have found that a module in the library (SWC) was getting 
called, replacing the newer code that I was expecting to be called and 
that caused a similar problem because that code was not a debug version.
I suspect that your SWF is not getting built properly, so try a version 
of your SWF that has almost nothing in it and start to add back content 
to the point where it fails.

Try setting your SWF to run on an earlier version of the player to see 
if that version pops up and runs.
Is the SDK version setting okay?

Is it possible that some security problem is blocking access - I can't 
help you there but it's possible.

John


John McCormack wrote:
 Hi Vamsi,

 I don't know if I can help but I can give it a try.
 First, which versions of Flex Builder and FlashPlayer do you use?
 Can you debug any other SWF - one from some time ago?

 I just tried this:
 I right clicked the taskbar and ran Task Manager.
 On the Processes tab I clicked the Image Name to put them in order.
 I then ran an actionscript project from within Flex Builder.
 In the processes list I had FlashUtil10.exe appear - having them in 
 order helps see it come and go.

 I right-clicked FlashUtil10.exe for its properties which showed that it 
 was stored in C:\Windows\SysWOW64\Macromed\Flash
 Do you get any such program appear when you run your SWF?
 If so, what are its properties?
 Are you running the version you expect?
 Find its place in filing system, go to ti with Windows Explorer and look 
 at its properties.
 When I do this mine says Adobe Flash Player Helper 10.0 r2

 John


 vamsi krishna wrote:
   
 Hi John,
 Thank you for your help. But my problem is not resolved. Can you 
 suggest me any other way.

 --- On *Sat, 4/7/09, John McCormack /j...@easypeasy.co.uk/* wrote:


 From: John McCormack j...@easypeasy.co.uk
 Subject: Re: [flexcoders] Problem With debugging
 To: flexcoders@yahoogroups.com
 Date: Saturday, 4 July, 2009, 11:10 PM

 Hi,

 You may have other versions of the FlashPlayer - I found lots of
 versions when I had trouble - Firefox an IE use different programs.
 The uninstaller should be used, not the control panel:
 http://kb2.adobe. com/cps/141/ tn_14157. html
 http://kb2.adobe.com/cps/141/tn_14157.html
 This may not be the latest version.

 Anggie Bratadinata over at Flash_tiger@ yahoogroups. com
 
 http://in.mc77.mail.yahoo.com/mc/compose?to=Flash_tiger%40yahoogroups.com
 posted about this
 uninstaller, you might try that.
 http://www.revounin staller.com/ http://www.revouninstaller.com/

 Also, change between IE, Firefox, or standalone (html off) to see if
 another debugger helps.
 Try searching the registry for flashplayer to see if any others exist
 and consider renaming them.

 Perhaps it's an issue to do with the local connection.
 Presumably you are hitting F11 to debug.

 John

 vamsi_vitla999 wrote:
  Hi
 
  I have strucked up with an debugger issue. Please help me out in
 resolving in this issue.
  when i tried to debug an application. it gives me an Pop up
 window stating that
  Failed to connect : session timed out Ensure that
  1.You compiled your flash application with debugging on
  2.You are running the debugger version of flash player.
 
  I tried to install flash player. and reinstalled flex builder
 but no use.
  Please help me out
 
  Thank you In Advance
 
  Vamsi
 
 
 
   - - --
 
  --
  Flexcoders Mailing List
  FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
 sFAQ.txt
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: https://share. acrobat.com/
 adc/document. do?docid= 942dbdc8- e469-446f- b4cf-1e62079f684 7
 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives: http://www.mail- archive.com/ flexcoders%
 40yahoogroups. comYahoo
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
 Groups Links
 
 
 
 
 
 


 
 Love Cricket? Check out live scores, photos, video highlights and 
 more. Click here 
 http://in.rd.yahoo.com/tagline_cricket_2/*http://cricket.yahoo.com.


 




 

 --
 Flexcoders Mailing List
 FAQ: 

[flexcoders] Re: getting the xml data from a dispatched event

2009-07-05 Thread Tim Hoff

import com.nutrition.Panelcreatemealitem;

-TH

--- In flexcoders@yahoogroups.com, Jason B nos...@... wrote:


 It wont accept your suggestions

 Severity and Description Path Resource Location Creation Time Id
 1120: Access of undefined property Panelcreatemealitem. /src Main.mxml
line 105 1246801954900 468962








 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
 
  Wow, I've got to say; What a mess. However, you can get it to work
  with the following changes:
 
  [Bindable]
  private var customMeals:XMLListCollection = new XMLListCollection();
 
 
 
  // addToMeal event Handler
  private function addToMealHandler(event:Event):void
  {
  customMeals.addItem((event.target as
  Panelcreatemealitem).mealDetails);
  Alert.show(customMeals.toString());
  }
 
  You have some naming conflicts and, since you're dealing with xml,
  you'll need to use an XMLListCollection; instead of an
ArrayCollection.
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Jason B nospam@ wrote:
  
   Heres my three mxml files two of which are under the com/ folder
and
  get imported...hope that helps
  
  
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=vertical
   creationComplete=init() styleName=plain
  xmlns:nutrition=com.nutrition.*
   paddingLeft=10 paddingTop=10 paddingRight=10
paddingBottom=10
  
   mx:Script
   ![CDATA[
   import mx.collections.ArrayCollection;
   import mx.collections.ICollectionView;
   import mx.collections.XMLListCollection;
   import com.nutrition.MealItem;
   import mx.controls.Alert;
   import mx.rpc.events.FaultEvent;
   import mx.rpc.events.ResultEvent;
   import mx.rpc.http.HTTPService;
   // initialize
   private function init():void
   {
   //load calories
   httpservice_load(/main.php/flexnutrition/loadcalories,
  this[loadcaloriesResultHandler]);
  
   hsNutrition.send();
   addEventListener('addToMeal', addToMealHandler);
   addEventListener('removeMeal', removeMealHandler);
   addEventListener('learnAboutThis', learnaboutthisswf);
  
  
  
   }
  
   private function httpservice_load(url_src:String,
  resulthandler:Function):void{
  
   httpService.url = url_src;
  
   //var tmp:String = resulthandler.toString();
   //if(tmp != none)
   httpService.addEventListener(ResultEvent.RESULT, resulthandler);
   httpService.send();
   }
  
   private function learnaboutthisswf(event:Event):void{
   vfc_guy.load(/uploads/swf/ + loadswf_var);
  
   }
  
   [Bindable]
   private var nutritionData:XML;
   [Bindable]
   private var maindata:XML;
   [Bindable]
   public var loadswf_var:String;
   [Bindable]
   public var createmeals_loadswf_var:String;
  
   //load all calories for main meals
   private function loadcaloriesResultHandler(event:ResultEvent):void
   {
   maindata = event.result as XML;
   vfc_guy.load(/uploads/swf/ + maindata.swf);
   }
  
   // nutrition result handler
   private function nutritionResultHandler(event:ResultEvent):void
   {
   nutritionData = event.result as XML;
   }
   // nutrition fault handler
   private function nutritionFaultHandler(event:FaultEvent):void
   {
   Alert.show(event.toString());
   }
  
   // create breakfast
   private function createBreakfast():void
   {
   vsMain.selectedIndex = 1;
   plantype = 'Breakfast';
   }
   // create lunch
   private function createLunch():void
   {
   vsMain.selectedIndex = 1;
   plantype = 'Lunch';
   }
   // create dinner
   private function createDinner():void
   {
   vsMain.selectedIndex = 1;
   plantype = 'Dinner';
   }
  
   [Bindable]
   private var plantype:String;
  
   [Bindable]
   private var customMeals:ArrayCollection = new ArrayCollection;
  
   // addToMeal event Handler
   private function addToMealHandler(event:Event):void
   {
   trace(event.target);
   //customMeals.addItem((event.target as mealitem).mealDetails);
   Alert.show(event.toString());
  
   }
  
   // removeMeal event Handler
   private function removeMealHandler(event:Event):void
   {
   customMeals.removeItemAt(ls.selectedIndex);
   }
  
   ]]
   /mx:Script
  
   mx:HTTPService id=hsNutrition
  url=/main.php/flexnutrition/nutritioncal
   result=nutritionResultHandler(event)
   fault=nutritionFaultHandler(event) resultFormat=e4x/
  
   mx:HTTPService id=httpService url= resultFormat=e4x/
  
   mx:Label id=totalcalories text={'Today\'s Meal Plan is based
on a
  ' + maindata.totalcalories + ' Calorie Diet'} fontWeight=bold
  fontSize=18/
  
   !--mx:Button label=Print Meal Menu /--
  
   mx:ViewStack id=vsMain width=100% height=100%
  
   mx:Canvas id=nutrition_canvas width=100% height=100%
  
   mx:SWFLoader id=vfc_guy source= height=400 width=400
  autoLoad=true x=700 y=100 /
  
   mx:HBox width=100% height=100%
  
   mx:VBox width=40% height=100%
  
   nutrition:MealPanel id=pnlBreakfast
  meal={nutritionData.breakfast}
   title=Breakfast : Please select one meal from
  below({maindata.breakfast} Cal Goal)/
  
   mx:HBox horizontalCenter=right
   mx:Button label=Create 

[flexcoders] Accessing image layers from photoshop psd inside flex

2009-07-05 Thread Jo Morano
Hi everyone!
It's been a good break, but I'm back on flex! I am building an application
for which the designers have given me photoshop files (.psd). Is there a way
to use the images directly from psd in flex like we do with swc? When I
extract the images through open source apps, I end up with some quality loss
and also the relative x and y position of the pictures is lost from within
the original psd.
In general, what's the standard process to follow to go from psd to flex?
Have a good'n


[flexcoders] Best APIs, libraries for image editing - scaling, erasing etc

2009-07-05 Thread Jo Morano
Hello there,
What are the preferred approaches to doing image editing like flipping,
erasing etc? I have done this in OpenGL in C in the past. Do I need to
implement the same algorithms on the image bitmap or is some of this already
done in a way that I can use?
Regards


Re: [flexcoders] Problem With debugging

2009-07-05 Thread vamsi krishna
Hi John,
Iam using flex builder 3.0 and flash player 9.0.
I got this problem from 2 weeks ago.
I follwed the same procedure what you did previously,
When I do this mine says Adobe Flash Player Helper 9.0 159
 
So can you please help me out.
Thanks for your support

--- On Sun, 5/7/09, John McCormack j...@easypeasy.co.uk wrote:


From: John McCormack j...@easypeasy.co.uk
Subject: Re: [flexcoders] Problem With debugging
To: flexcoders@yahoogroups.com
Date: Sunday, 5 July, 2009, 8:44 PM








Hi Vamsi,

I don't know if I can help but I can give it a try.
First, which versions of Flex Builder and FlashPlayer do you use?
Can you debug any other SWF - one from some time ago?

I just tried this:
I right clicked the taskbar and ran Task Manager.
On the Processes tab I clicked the Image Name to put them in order.
I then ran an actionscript project from within Flex Builder.
In the processes list I had FlashUtil10. exe appear - having them in 
order helps see it come and go.

I right-clicked FlashUtil10. exe for its properties which showed that it 
was stored in C:\Windows\SysWOW64 \Macromed\ Flash
Do you get any such program appear when you run your SWF?
If so, what are its properties?
Are you running the version you expect?
Find its place in filing system, go to ti with Windows Explorer and look 
at its properties.
When I do this mine says Adobe Flash Player Helper 10.0 r2

John

vamsi krishna wrote:


 Hi John,
 Thank you for your help. But my problem is not resolved. Can you 
 suggest me any other way.

 --- On *Sat, 4/7/09, John McCormack /j...@easypeasy. co.uk/* wrote:


 From: John McCormack j...@easypeasy. co.uk
 Subject: Re: [flexcoders] Problem With debugging
 To: flexcod...@yahoogro ups.com
 Date: Saturday, 4 July, 2009, 11:10 PM

 Hi,

 You may have other versions of the FlashPlayer - I found lots of
 versions when I had trouble - Firefox an IE use different programs.
 The uninstaller should be used, not the control panel:
 http://kb2.adobe. com/cps/141/ tn_14157. html
 http://kb2.adobe. com/cps/141/ tn_14157. html
 This may not be the latest version.

 Anggie Bratadinata over at Flash_tiger@ yahoogroups. com
 http://in.mc77. mail.yahoo. com/mc/compose? to=Flash_ tiger%40yahoogro 
 ups.com
 posted about this
 uninstaller, you might try that.
 http://www.revounin staller.com/ http://www.revounin staller.com/

 Also, change between IE, Firefox, or standalone (html off) to see if
 another debugger helps.
 Try searching the registry for flashplayer to see if any others exist
 and consider renaming them.

 Perhaps it's an issue to do with the local connection.
 Presumably you are hitting F11 to debug.

 John

 vamsi_vitla999 wrote:
  Hi
 
  I have strucked up with an debugger issue. Please help me out in
 resolving in this issue.
  when i tried to debug an application. it gives me an Pop up
 window stating that
  Failed to connect : session timed out Ensure that
  1.You compiled your flash application with debugging on
  2.You are running the debugger version of flash player.
 
  I tried to install flash player. and reinstalled flex builder
 but no use.
  Please help me out
 
  Thank you In Advance
 
  Vamsi
 
 
 
   - - --
 
  --
  Flexcoders Mailing List
  FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
 sFAQ.txt
 http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
  Alternative FAQ location: https://share. acrobat.com/
 adc/document. do?docid= 942dbdc8- e469-446f- b4cf-1e62079f684 7
 https://share. acrobat.com/ adc/document. do?docid= 942dbdc8- e469-446f- 
 b4cf-1e62079f684 7
  Search Archives: http://www.mail- archive.com/ flexcoders%
 40yahoogroups. comYahoo
 http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo!
 Groups Links
 
 
 
 
 
 


  - - - - - -
 Love Cricket? Check out live scores, photos, video highlights and 
 more. Click here 
 http://in.rd. yahoo.com/ tagline_cricket_ 2/*http:/ /cricket. yahoo.com..

 

















  Yahoo! recommends that you upgrade to the new and safer Internet Explorer 
8. http://downloads.yahoo.com/in/internetexplorer/

Re: [flexcoders] Problem With debugging

2009-07-05 Thread Jo Morano
What does about:plugins in address bar of the browser show?

On Sun, Jul 5, 2009 at 8:50 AM, vamsi krishna vamsi_vitla...@yahoo.co.inwrote:



 Hi John,
 Iam using flex builder 3.0 and flash player 9.0.
 I got this problem from 2 weeks ago.
 I follwed the same procedure what you did previously,
 When I do this mine says Adobe Flash Player Helper 9.0 159

 So can you please help me out.
 Thanks for your support

 --- On *Sun, 5/7/09, John McCormack j...@easypeasy.co.uk* wrote:


 From: John McCormack j...@easypeasy.co.uk
 Subject: Re: [flexcoders] Problem With debugging
 To: flexcoders@yahoogroups.com
 Date: Sunday, 5 July, 2009, 8:44 PM

  Hi Vamsi,

 I don't know if I can help but I can give it a try.
 First, which versions of Flex Builder and FlashPlayer do you use?
 Can you debug any other SWF - one from some time ago?

 I just tried this:
 I right clicked the taskbar and ran Task Manager.
 On the Processes tab I clicked the Image Name to put them in order.
 I then ran an actionscript project from within Flex Builder.
 In the processes list I had FlashUtil10. exe appear - having them in
 order helps see it come and go.

 I right-clicked FlashUtil10. exe for its properties which showed that it
 was stored in C:\Windows\SysWOW64 \Macromed\ Flash
 Do you get any such program appear when you run your SWF?
 If so, what are its properties?
 Are you running the version you expect?
 Find its place in filing system, go to ti with Windows Explorer and look
 at its properties.
 When I do this mine says Adobe Flash Player Helper 10.0 r2

 John

 vamsi krishna wrote:
 
 
  Hi John,
  Thank you for your help. But my problem is not resolved. Can you
  suggest me any other way.
 
  --- On *Sat, 4/7/09, John McCormack /j...@easypeasy. 
  co.ukhttp://in.mc77.mail.yahoo.com/mc/compose?to=john%40easypeasy.co.uk/*
 wrote:
 
 
  From: John McCormack j...@easypeasy. 
  co.ukhttp://in.mc77.mail.yahoo.com/mc/compose?to=john%40easypeasy.co.uk
 
  Subject: Re: [flexcoders] Problem With debugging
  To: flexcod...@yahoogro 
  ups.comhttp://in.mc77.mail.yahoo.com/mc/compose?to=flexcoders%40yahoogroups.com
  Date: Saturday, 4 July, 2009, 11:10 PM
 
  Hi,
 
  You may have other versions of the FlashPlayer - I found lots of
  versions when I had trouble - Firefox an IE use different programs.
  The uninstaller should be used, not the control panel:
  http://kb2.adobe. com/cps/141/ tn_14157. html
  http://kb2.adobe. com/cps/141/ tn_14157. 
  htmlhttp://kb2.adobe.com/cps/141/tn_14157.html
 
  This may not be the latest version.
 
  Anggie Bratadinata over at Flash_tiger@ yahoogroups. com
  http://in.mc77. mail.yahoo. com/mc/compose? to=Flash_ tiger%40yahoogro
 ups.comhttp://in.mc77.mail.yahoo.com/mc/compose?to=Flash_tiger%40yahoogroups.com
 
  posted about this
  uninstaller, you might try that.
  http://www.revounin staller.com/ http://www.revounin 
  staller.com/http://www.revouninstaller.com/
 
 
  Also, change between IE, Firefox, or standalone (html off) to see if
  another debugger helps.
  Try searching the registry for flashplayer to see if any others exist
  and consider renaming them.
 
  Perhaps it's an issue to do with the local connection.
  Presumably you are hitting F11 to debug.
 
  John
 
  vamsi_vitla999 wrote:
   Hi
  
   I have strucked up with an debugger issue. Please help me out in
  resolving in this issue.
   when i tried to debug an application. it gives me an Pop up
  window stating that
   Failed to connect : session timed out Ensure that
   1.You compiled your flash application with debugging on
   2.You are running the debugger version of flash player.
  
   I tried to install flash player. and reinstalled flex builder
  but no use.
   Please help me out
  
   Thank you In Advance
  
   Vamsi
  
  
  
    - - --
  
   --
   Flexcoders Mailing List
   FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
  sFAQ.txt
  http://groups. yahoo.com/ group/flexcoders /files/flexcoder 
  sFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
   Alternative FAQ location: https://share. acrobat.com/
  adc/document. do?docid= 942dbdc8- e469-446f- b4cf-1e62079f684 7
  https://share. acrobat..com/ adc/document. do?docid= 942dbdc8-
 e469-446f- b4cf-1e62079f684 
 7https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 
   Search Archives: http://www.mail- archive.com/ flexcoders%
  40yahoogroups. comYahoo
  http://www.mail- archive.com/ flexcoders% 40yahoogroups. 
  comYahoohttp://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 !
  Groups Links
  
  
  
  
  
  
 
 
   - - - - - -
  Love Cricket? Check out live scores, photos, video highlights and
  more. Click here
  http://in.rd. yahoo.com/ tagline_cricket_ 2/*http:/ /cricket. 
  yahoo.comhttp://in.rd.yahoo.com/tagline_cricket_2/*http://cricket.yahoo.com
 .
 
 


 --
 See the Web's breaking 

[flexcoders] Re: Best APIs, libraries for image editing - scaling, erasing etc

2009-07-05 Thread kaspar.luethi
good question :)

check this:
http://www.adobe.com/devnet/flash/articles/matrix_transformations_print.html
for scaling, flipping etc.

and this
http://blog.joa-ebert.com/imageprocessing-library/

and this:
http://labs.adobe.com/wiki/index.php/Pixel_Bender_Toolkit
filters...! you'll like it, if you are a low level guy

hope this helps. also check out aviary.com when you haven't already.

k.


--- In flexcoders@yahoogroups.com, Jo Morano jo.moran...@... wrote:

 Hello there,
 What are the preferred approaches to doing image editing like flipping,
 erasing etc? I have done this in OpenGL in C in the past. Do I need to
 implement the same algorithms on the image bitmap or is some of this already
 done in a way that I can use?
 Regards



[flexcoders] Flex OpenSocial

2009-07-05 Thread aphexyuri
I was hoping someone on the group could point me in the right direction for 
some resources etc. for building Flex apps for MySpace / hi5 etc using 
OpenSocial?

Any help appreciated.

Thanks



[flexcoders] My itemrenderer is mercurial!!

2009-07-05 Thread j2me_soul
The itemrenderer is a HBox. There is a check and a label in the HBox.
When I selected any of the checkbox and scrolled the scrollbar of the List 
which used the itemrenderer, the stange thing happened, the selected checkbox 
is no longer the same checkbox !! Maybe the last one, maybe the second one ~~~  
How can I fix this ?



Re:Re: [flexcoders] Bring forward something in flex

2009-07-05 Thread j2me_soul
It very useful to me. Thanks Jeffry!



在2009-07-03,Jeffry Houser j...@farcryfly.com 写道:






  The initial layout is related tot he order you declare things in MXML, but 
that doesn't help him move children around by clicking on something in the 
background.

 Take a look at SwapChildren and/or SwampChildrenAt:  
http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObjectContainer.html#swapChildren()
http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObjectContainer.html#swapChildrenAt()

claudiu ursica wrote: 

It is related to the order that you declare component in your mxml ... The 
latter the better. 

C



From: j2me_soul j2me_s...@163.com
To: flexcoders flexcoders@yahoogroups.com
Sent: Friday, July 3, 2009 11:36:20 AM
Subject: [flexcoders] Bring forward something in flex


I have a lot titlewindow in the application. But the main panel which wrote by 
mxml is always covered by some titlewindow. How can I bring the main panel 
forward when I clicked it ?





200 万种商品,最低价格,疯狂诱惑你




-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: 
http://tinyurl.com/684b5hhttp://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.comhttp://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust


[flexcoders] Re: dynamic image gallery

2009-07-05 Thread stinasius
someone please help point out what am doing wrong in the code. would really 
appreciate it.



Re: [flexcoders] Re: dynamic image gallery

2009-07-05 Thread Sam Lai
Add a Label to thumbnail.mxml and show the image path to see that it
is getting that. Then hard-code an image path in thumbnail.mxml. This
will help you isolate the problem.

2009/7/6 stinasius stinas...@yahoo.com:
 someone please help point out what am doing wrong in the code. would really 
 appreciate it.



 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links






[flexcoders] Re: dynamic image gallery

2009-07-05 Thread stinasius
i have tried to do as you asked, added a label to the thumbnail.mxml and the 
labels show up as expected. still haven't seen why those images cant show in 
the Horizontal list.



Re: [flexcoders] Re: dynamic image gallery

2009-07-05 Thread Sam Lai
Does an image appear if you hardcode the image source in thumbnail.mxml?

2009/7/6 stinasius stinas...@yahoo.com:
 i have tried to do as you asked, added a label to the thumbnail.mxml and the 
 labels show up as expected. still haven't seen why those images cant show in 
 the Horizontal list.



 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links