[flexcoders] Upload image to an image gallery

2009-03-08 Thread christophe_jacquelin
Hello,

I want to upload image, and then to put this image in a galley. 

Do you have any ideas or examples ? 

Thank you,
Christophe,




[flexcoders] move component over text

2009-03-08 Thread stinasius
hi guys how do i move a box component over a text when i rollover the text?



[flexcoders] possibility of opening a web page in a flex application

2009-03-08 Thread stinasius
is it possible to open web page for 
example(http://www.mtv.com/news/articles/1606473/20090306/rihanna.jhtml) in a 
flex application let's say inside a flex canvas component?



Re: [flexcoders] possibility of opening a web page in a flex application

2009-03-08 Thread Brendan Meutzner
Do some searches in the list here for iFrame use within Flex... it's
possible via ExternalInterface javascript by telling the browser to place an
iFrame instance at the same coordinates as the canvas position.  It's not
pretty, but it works (mostly...) :-)

Brendan



On Sun, Mar 8, 2009 at 5:30 AM, stinasius stinas...@yahoo.com wrote:

   is it possible to open web page for example(
 http://www.mtv.com/news/articles/1606473/20090306/rihanna.jhtml) in a flex
 application let's say inside a flex canvas component?

  




-- 
Brendan Meutzner
http://www.meutzner.com/blog/
http://www.riajobs.com


Re: [flexcoders] move component over text

2009-03-08 Thread Brendan Meutzner
toolTip=blah


On Sun, Mar 8, 2009 at 3:44 AM, stinasius stinas...@yahoo.com wrote:

   hi guys how do i move a box component over a text when i rollover the
 text?

  




-- 
Brendan Meutzner
http://www.meutzner.com/blog/
http://www.riajobs.com


Re: [flexcoders] Upload image to an image gallery

2009-03-08 Thread Brendan Meutzner
Didn't this question just get posted a few days ago?



On Sun, Mar 8, 2009 at 3:02 AM, christophe_jacquelin 
christophe_jacque...@yahoo.fr wrote:

   Hello,

 I want to upload image, and then to put this image in a galley.

 Do you have any ideas or examples ?

 Thank you,
 Christophe,

  




-- 
Brendan Meutzner
http://www.meutzner.com/blog/
http://www.riajobs.com


[flexcoders] Re: Lazy loading in AdvancedDataGrid using RemoteObject

2009-03-08 Thread Amy
--- In flexcoders@yahoogroups.com, yossi.baram yossi.ba...@... wrote:

 Thanks Amy for your help,
 I'm going your way:), only one question if i may,
 Is it possible to activate ItemRenderer on my columns after fetching 
 childrens from my RemoteObject? How do I do that based on your example?
 I need to manipulate the data (override set data()) based on the various 
 columns, the childrens data is not always plain value.

Implement IDropInListItemRenderer, and that information will be available to 
your renderer in listData.



[flexcoders] Datagrid : mouse over item

2009-03-08 Thread secrit.service
Hi everyone,

I have a datagrid. If I mouseclick on a row, I can retrieve this record by 
using selectedItem. However, when I move my mouse over the datagrid (without 
clicking) the rows also change color. Is there any way to retrieve the record 
where my mouse is pointing at.
Meaning is to show a preview of the records as soon my mouse is passing over.

Thanks in advance



[flexcoders] importing and dynamically creating objects

2009-03-08 Thread Wally Kolcz
I am trying to create a quizzer when the questions are in components. I want to 
import the component and add it to the stage based on the question that next 
and the quiz they are taking. If they load test 1 i need it to:

import com.ipexpert.test.1.question1;
var currentQuestion:question1 = new question1;
questionArea.addChild(currentQuestion);

I have the varible for the test loaded: testID
and the current question: questionNum

I am trying to build it on the fly with something like:

import com.ipexpert.tests. + testID + . + question + questionNum;
var currentQuestion:question + questionNum = new question + questionNum;
questionArea.addChild(currentQuestion);

Needless to say it is wrong and I am getting an errors:

1084: Syntax error: expecting identifier before plus. for the first line (imprt 
com.ipexperts...)
and
1086: Syntax error: expecting semicolon before plus. for the second line (var 
currentQuestion...)

Any better ideas or how can I write this right?



[flexcoders] Debugging Event Bubbling

2009-03-08 Thread valkyrie77
Hi Folks,

I'm currently working on a twitter AIR client using the twitterscript AS3 
library and having some issues with bubbling custom events that are created by 
nested classses back to the main application.

I've architected so that the main application (A) spawns a new timeline window 
(B) for every twitter account a user may have.  I have a Comm class (C) i use 
as a DAO layer to decouple the twitterscript custom events from my framework 
(in case i switch to a different as3 API library)

My custom event class looks like this 

package com.kubeworks.events
{
import flash.events.Event;

public class TweetCommEvent extends Event
{
public static const TIMELINE_BACK:String = timelineBack;
public static const STATUS_BACK:String = statusBack;
public static const USER_INFO_BACK:String = userInfoBack;
public static const RATE_LIMIT_STATUS:String = rateLimitBack;
public var data : Object = new Object ();

public function TweetCommEvent(type:String, 
bubbles:Boolean=true, cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
}

override public function clone():Event {
return new PreferencePaneEvent(type, bubbles, 
cancelable);
}

}
}

My Comm Class goes something like
package com.kubeworks.data
{
// Twitter API calls
import com.kubeworks.events.TweetCommEvent;

import flash.events.Event;
import flash.events.EventDispatcher;
import flash.utils.*;

import mx.utils.ObjectUtil;

import twitter.api.Twitter;
import twitter.api.events.TwitterEvent;

public class TweetComm extends EventDispatcher
{

private var username:String;
private var password:String;

private var _twitterClient:Twitter;

// Constructor
public function TweetComm(usern:String, pass:String)
{
// Initialize Twitter Event Listeners
_twitterClient = new Twitter();
_twitterClient.addEventListener(Event.ACTIVATE, 
twitterClientActivateHandler);
_twitterClient.addEventListener(Event.DEACTIVATE, 
twitterClientDeactivate);

_twitterClient.addEventListener(TwitterEvent.ON_FRIENDS_TIMELINE_RESULT, 
twitterTimelineBack);

_twitterClient.addEventListener(TwitterEvent.ON_SET_STATUS, twitterStatusBack);

_twitterClient.addEventListener(TwitterEvent.ON_SHOW_INFO, twitterUserBack);

_twitterClient.addEventListener(TwitterEvent.ON_RATE_LIMIT_STATUS, 
twitterRateLimitBackHandler);


// Do stuff
setLogin(usern, pass);
setAuth();
}

and within that class i'm re-dispatching like:

private function twitterRateLimitBackHandler(event:TwitterEvent):void {
var eventObj:TweetCommEvent = new 
TweetCommEvent(TweetCommEvent.RATE_LIMIT_STATUS, true);
eventObj.data = event.data;
dispatchEvent(eventObj);
trace(twitterRateLimitBackHandler);
trace(ObjectUtil.toString(event));
trace(twitterRateLimitBackHandler);
trace(ObjectUtil.toString(eventObj));
}

I've set the bubbling to true.  However in my main application this 
EventListener never fires

systemManager.addEventListener(TweetCommEvent.RATE_LIMIT_STATUS, 
onRateLimitHandler);

Any help would be greatly appreciated as i am out ideas and have exausted 
google and my flex friends.

Thanks,
Sean



RE: [flexcoders] Debugging Event Bubbling

2009-03-08 Thread Tracy Spratt
Bubbling works generally.  Simplify until it does, then re-add your
complexity til it breaks.

 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valkyrie77
Sent: Sunday, March 08, 2009 1:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Debugging Event Bubbling

 

Hi Folks,

I'm currently working on a twitter AIR client using the twitterscript AS3
library and having some issues with bubbling custom events that are created
by nested classses back to the main application.

I've architected so that the main application (A) spawns a new timeline
window (B) for every twitter account a user may have. I have a Comm class
(C) i use as a DAO layer to decouple the twitterscript custom events from my
framework (in case i switch to a different as3 API library)

My custom event class looks like this 

package com.kubeworks.events
{
import flash.events.Event;

public class TweetCommEvent extends Event
{
public static const TIMELINE_BACK:String = timelineBack;
public static const STATUS_BACK:String = statusBack;
public static const USER_INFO_BACK:String = userInfoBack;
public static const RATE_LIMIT_STATUS:String = rateLimitBack;
public var data : Object = new Object ();

public function TweetCommEvent(type:String, bubbles:Boolean=true,
cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
}

override public function clone():Event {
return new PreferencePaneEvent(type, bubbles, cancelable);
}

}
}

My Comm Class goes something like
package com.kubeworks.data
{
// Twitter API calls
import com.kubeworks.events.TweetCommEvent;

import flash.events.Event;
import flash.events.EventDispatcher;
import flash.utils.*;

import mx.utils.ObjectUtil;

import twitter.api.Twitter;
import twitter.api.events.TwitterEvent;

public class TweetComm extends EventDispatcher
{

private var username:String;
private var password:String;

private var _twitterClient:Twitter;

// Constructor
public function TweetComm(usern:String, pass:String)
{
// Initialize Twitter Event Listeners
_twitterClient = new Twitter();
_twitterClient.addEventListener(Event.ACTIVATE,
twitterClientActivateHandler);
_twitterClient.addEventListener(Event.DEACTIVATE, twitterClientDeactivate);
_twitterClient.addEventListener(TwitterEvent.ON_FRIENDS_TIMELINE_RESULT,
twitterTimelineBack);
_twitterClient.addEventListener(TwitterEvent.ON_SET_STATUS,
twitterStatusBack);
_twitterClient.addEventListener(TwitterEvent.ON_SHOW_INFO, twitterUserBack);
_twitterClient.addEventListener(TwitterEvent.ON_RATE_LIMIT_STATUS,
twitterRateLimitBackHandler);


// Do stuff
setLogin(usern, pass);
setAuth();
}

and within that class i'm re-dispatching like:

private function twitterRateLimitBackHandler(event:TwitterEvent):void {
var eventObj:TweetCommEvent = new
TweetCommEvent(TweetCommEvent.RATE_LIMIT_STATUS, true);
eventObj.data = event.data;
dispatchEvent(eventObj);
trace(twitterRateLimitBackHandler);
trace(ObjectUtil.toString(event));
trace(twitterRateLimitBackHandler);
trace(ObjectUtil.toString(eventObj));
}

I've set the bubbling to true. However in my main application this
EventListener never fires

systemManager.addEventListener(TweetCommEvent.RATE_LIMIT_STATUS,
onRateLimitHandler);

Any help would be greatly appreciated as i am out ideas and have exausted
google and my flex friends.

Thanks,
Sean





RE: [flexcoders] importing and dynamically creating objects

2009-03-08 Thread Tracy Spratt
Do I understand that you have a different class for every question?  That
sounds like a bad idea.  I am sure import is a compile time only action, and
you can't do it at run-time, so you need to find a different approach.

 

Tracy

 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Sunday, March 08, 2009 1:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] importing and dynamically creating objects

 

I am trying to create a quizzer when the questions are in components. I want
to import the component and add it to the stage based on the question that
next and the quiz they are taking. If they load test 1 i need it to:

import com.ipexpert.test.1.question1;
var currentQuestion:question1 = new question1;
questionArea.addChild(currentQuestion);

I have the varible for the test loaded: testID
and the current question: questionNum

I am trying to build it on the fly with something like:

import com.ipexpert.tests. + testID + . + question + questionNum;
var currentQuestion:question + questionNum = new question + questionNum;
questionArea.addChild(currentQuestion);

Needless to say it is wrong and I am getting an errors:

1084: Syntax error: expecting identifier before plus. for the first line
(imprt com.ipexperts...)
and
1086: Syntax error: expecting semicolon before plus. for the second line
(var currentQuestion...)



Any better ideas or how can I write this right?





[flexcoders] Re: Lazy loading in AdvancedDataGrid using RemoteObject

2009-03-08 Thread yossi.baram
Thanks Amy :))
--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote:

 --- In flexcoders@yahoogroups.com, yossi.baram yossi.baram@ wrote:
 
  Thanks Amy for your help,
  I'm going your way:), only one question if i may,
  Is it possible to activate ItemRenderer on my columns after fetching 
  childrens from my RemoteObject? How do I do that based on your example?
  I need to manipulate the data (override set data()) based on the various 
  columns, the childrens data is not always plain value.
 
 Implement IDropInListItemRenderer, and that information will be available to 
 your renderer in listData.





[flexcoders] Re: Is there a way to detect mouse button state without tracking events?

2009-03-08 Thread sunild999999
Hi,

You can use Event.MOUSE_LEAVE to detect when mouse has left the stage.

You can listen for MouseEvent.MOUSE_MOVE if you need to know when the mouse is 
back.

Can you listen for MOUSE_LEAVE and dispatch your own MOUSE_UP event to stop the 
list from scrolling?

Sunil


--- In flexcoders@yahoogroups.com, Dave Kong davek...@... wrote:

 This is a very urgent issue for us. =( Any help is deeply appreciated!
 
 On Thu, Mar 5, 2009 at 5:14 PM, Dave Kong davek...@... wrote:
 
I need to find out at this particular moment, if the mouse button is up
  or down.
 
  Trying to work around the issue with wmode=transparent in FF. If I scroll a
  list, and drags cursor outside of the player and then releases the button.
  That mouseUp event is never captured by Flash Player, so when I move mouse
  cursor back, buttonDown is always true for all mouse events. So I need a
  workaround on moues re-entry to detect if button is truly down, if not, call
  the scrollThumb's releaseButton function so it won't keep on scrolling.
 
  Thanks!
 
   
 





[flexcoders] Re: dataGrid not receiving user input (intermitently) in bottom right - itemRenderer problem..

2009-03-08 Thread tom s
Problem solved. But is was bizarre, so I'll explain. Also, I still have one
or two questions, but mainly for education now...

First, I set the visible property of the dataGrid to false. I then check the
redraw region and never saw the area that was causing trouble before. So I
figured it was probably something in the dataGrid. The item renderers being
prime suspect, as I wrote them..

I put it back to visible = true, and played some more. I discovered that the
problem didnt manifest itself at first, only after a fair amount of mouse
activity over the dataGrid. Maybe a memory leak in my item renderer?

Then I looked at Alex Harui's blog, and saw that I could/ should be
extending DataGridItemRenderer. I did that, and all seems fine now. The
speed at which the dataGrid appearance keeps up with the mouse movements
over it is 10x faster than before.

My questions:

1. Are there any known issues with extending Label for item renderers?
1b. What's wrong with example 2 - extending Label - (below)?
2. Assuming that the item renderer only needs to manipulate the text of the
renderer, is example 1  - extending DataItemGrid - (below) a good way to do
it? (I've never written one before, so I'm just checking)
3. Is there anything else wrong with the example 1 below / a better way?


thanks

tom

*** example 1 

package com.***
{
import mx.controls.dataGridClasses.DataGridItemRenderer;

public class LengthRenderer extends DataGridItemRenderer
{
 override public function set data(value:Object):void
 {
super.data = value;
if(value!= null  value.length != null) {
this.invalidateProperties();
}
}

override public function validateProperties():void
{
super.validateProperties();
 var mins:int = Math.floor(data.length/60)
var secs:String = (data.length - mins).toString()
 if (secs.length == 1){secs = 0 + secs}
this.text = mins.toString()+:+secs
}
}
}

*** example 2 ***

package com.***
{


import mx.controls.Label;

public class LengthRenderer extends Label
{
 override public function set data(value:Object):void
 {
super.data = value;
if(value!= null  value.length != null) {
this.invalidateDisplayList();
}
}

override protected function
updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void
{
 var mins:int = Math.floor(data.length/60)
var secs:String = (data.length - mins).toString()
if (secs.length == 1){secs = 0 + secs}
  this.text = mins.toString()+:+secs





}
}
}

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


 Has to be another object on top of the DataGrid.  The redraw region is
 the clue.  Look at the other objects in the same class as the DataGrid.

 -TH

 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  If you are pretty sure there is not something invisible covering that
 area,
  try cleaning the project.
 
  Tracy
 
 
 
  _
 
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 On
  Behalf Of tom s
  Sent: Saturday, March 07, 2009 6:31 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] dataGrid not receiving user input
 (intermitently) in
  bottom right
 
 
 
  I have a datagrid that works ~50% of the time.
 
  The other 50% of the time the dataGrid wont accept user interaction in
 the
  bottom right area (the bottom 3 (of 6) rows, right 2 (of 4) columns).
 
  i.e. that part of the grid does not react to mouse over events, not
 mouse
  click events.
 
  Sometimes is reacts to click events as if they are occurring in the
 row in
  which a mouse_over interaction was last observed.
 
 
 
  Looking at the redraw regions, I see that a redraw region occasionally
  appears in the bottom right of the grid - exactly where he grid is not
  receiving user input.
 
  So that is probably related.
 
  But I don't know what it is a redraw region for. I've checked my other
  component and they aren't near.
 
 
 
  I have the following custom item renderers:
 
  column 2: extends Canvas
 
  column 3: extends Label
 
  column 4: extends Label.
 
 
 
  Anyone know what might be causing this?
 
  Or how to fix it / diagnose it further?
 
 
 
  thanks
 
 
 
  tom
 



RE: [flexcoders] Debugging Event Bubbling

2009-03-08 Thread Jim Hayes
Your TweetCommEvent's clone method returns a PreferencePaneEvent rather than 
the TweetCommEvent I'd expect, at least in the code you wrote below.
It's not that, is it? 

public class TweetCommEvent extends Event
{


override public function clone():Event {
  return new PreferencePaneEvent(type, bubbles, cancelable);
 }
..

}

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of valkyrie77
Sent: 08 March 2009 17:52
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Debugging Event Bubbling

Hi Folks,

I'm currently working on a twitter AIR client using the twitterscript AS3 
library and having some issues with bubbling custom events that are created by 
nested classses back to the main application.

I've architected so that the main application (A) spawns a new timeline window 
(B) for every twitter account a user may have. I have a Comm class (C) i use as 
a DAO layer to decouple the twitterscript custom events from my framework (in 
case i switch to a different as3 API library)

My custom event class looks like this 

package com.kubeworks.events
{
import flash.events.Event;

public class TweetCommEvent extends Event
{
public static const TIMELINE_BACK:String = timelineBack;
public static const STATUS_BACK:String = statusBack;
public static const USER_INFO_BACK:String = userInfoBack;
public static const RATE_LIMIT_STATUS:String = rateLimitBack;
public var data : Object = new Object ();

public function TweetCommEvent(type:String, bubbles:Boolean=true, 
cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
}

override public function clone():Event {
return new PreferencePaneEvent(type, bubbles, cancelable);
}

}
}

My Comm Class goes something like
package com.kubeworks.data
{
// Twitter API calls
import com.kubeworks.events.TweetCommEvent;

import flash.events.Event;
import flash.events.EventDispatcher;
import flash.utils.*;

import mx.utils.ObjectUtil;

import twitter.api.Twitter;
import twitter.api.events.TwitterEvent;

public class TweetComm extends EventDispatcher
{

private var username:String;
private var password:String;

private var _twitterClient:Twitter;

// Constructor
public function TweetComm(usern:String, pass:String)
{
// Initialize Twitter Event Listeners
_twitterClient = new Twitter();
_twitterClient.addEventListener(Event.ACTIVATE, twitterClientActivateHandler);
_twitterClient.addEventListener(Event.DEACTIVATE, twitterClientDeactivate);
_twitterClient.addEventListener(TwitterEvent.ON_FRIENDS_TIMELINE_RESULT, 
twitterTimelineBack);
_twitterClient.addEventListener(TwitterEvent.ON_SET_STATUS, twitterStatusBack);
_twitterClient.addEventListener(TwitterEvent.ON_SHOW_INFO, twitterUserBack);
_twitterClient.addEventListener(TwitterEvent.ON_RATE_LIMIT_STATUS, 
twitterRateLimitBackHandler);


// Do stuff
setLogin(usern, pass);
setAuth();
}

and within that class i'm re-dispatching like:

private function twitterRateLimitBackHandler(event:TwitterEvent):void {
var eventObj:TweetCommEvent = new 
TweetCommEvent(TweetCommEvent.RATE_LIMIT_STATUS, true);
eventObj.data = event.data;
dispatchEvent(eventObj);
trace(twitterRateLimitBackHandler);
trace(ObjectUtil.toString(event));
trace(twitterRateLimitBackHandler);
trace(ObjectUtil.toString(eventObj));
}

I've set the bubbling to true. However in my main application this 
EventListener never fires

systemManager.addEventListener(TweetCommEvent.RATE_LIMIT_STATUS, 
onRateLimitHandler);

Any help would be greatly appreciated as i am out ideas and have exausted 
google and my flex friends.

Thanks,
Sean


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


[flexcoders] Bindable Singleton is not propogating the changes of its proprties.

2009-03-08 Thread alex
I have a Bindable Singleton class were I access from diffrent components. The 
class has several properties ArrayCollection,Boolean... etc .
I assumed that any change in then properties will propogate to all the 
components that use the Singleton class , but from what I see it is not the 
case. 
Why so ? Should I use ChangeWatcher then ?

Thank you.




[flexcoders] ASDoc and .as includes?

2009-03-08 Thread aaron smith
Hey all,

How can I get asdoc to play nice with includes? By includes, I don't
mean the asdoc -includes command flag. that's for including swcs. I
mean the preprocessor includes like:

include some_as_file.as

I have some classes that use the same logic, so I've put it in
includes. But it breaks asdoc.

any ideas?

Thanks
-Aaron


[flexcoders] Re: how to call dynamic servlet

2009-03-08 Thread anitha2324
Hi Thanks alot for your reply,

I have removed the binding variables, replaced xml by e4x , and setted the url 
before the service.send but am still unable to get the successful result 

here is my modified code

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
creationComplete=init()
mx:Script
![CDATA[
import flash.net.sendToURL;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.xml.SimpleXMLDecoder;
import mx.controls.Button;
import mx.controls.Label;
import mx.collections.ArrayCollection;

[Bindable]
public var expenses:ArrayCollection;


public var userId:int;

public var servletURL:String;





private function init():void{
userId = 12;
servletURL=http://localhost:8080/Application/topSenderServlet?TYPE=4amp;USER_ID=+userId;
Alert.show(servletURL);
topSenders.url=servletURL;
topSenders.send();
}
private function serv_result(evt:ResultEvent):void {
/* Convert XMLNode to XMLDocument. */
var xmlStr:String = evt.result.toString();
var xmlDoc:XMLDocument = new XMLDocument(xmlStr);
var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);
var resultObj:Object = decoder.decodeXML(xmlDoc);
/* Assign the values... */

expenses = new ArrayCollection();
for(var i:int=0;iresultObj.top.sender.length;i++){
Alert.show(resultObj.top.sender[i].phone);

}
}


]]
/mx:Script


!--mx:HTTPService id=topSenders useProxy=false resultFormat=xml 
method=POST 
url=http://localhost:8080/Application/topSenderServlet?TYPE=4amp;USER_ID=12;
result=serv_result(event);/--

mx:HTTPService id=topSenders useProxy=false resultFormat=e4x 
method=POST 
result=serv_result(event);/

/mx:Application




thanking you in Advance




[flexcoders] DropDown selectedIndex problem

2009-03-08 Thread moevydot...@ymail.com
Hello @ all,
I want to select a specific part with selectedIndex. But it dont works :( It 
selects all the time the first one in the list.

Can someone give me a help? There its the code... 

Thanks Michael

Code:
mx:Script
![CDATA[
import mx.controls.Alert;
import mx.collections.ArrayCollection;

[Bindable]
public var initSubjectableList:ArrayCollection = new ArrayCollection();
public var licenceID:String;

private function getSubjectDataList(evt:ResultEvent):void {
var count:Number = 0;
var _data:Array;
var _data2:Array;

for( count = 0; count  evt.result.id.length; count++)
{
//create array for drop down
_data = [{ID: evt.result.id[count], label: 
evt.result.name[count]}];
_data2 = _data.concat(_data2);
initSubjectableList = new 
ArrayCollection(_data2);

if(evt.result.id[count] == licenceID) {
editLicence.selectedIndex = count;

mx.controls.Alert.show(ID);

mx.controls.Alert.show(evt.result.id[count]);   
}
}
}

   ]]
/mx:Script



[flexcoders] Re: Datagrid : mouse over item

2009-03-08 Thread bartman279
Dispatch the DataGrid's itemRollOver event.
That event contains a rowIndex of the rolled over item.

Your listener could then be something like:

private function PreviewRow( e: ListEvent ) : void {
var evt:ListEvent = e as ListEvent;
preview.text = dg.dataProvider[evt.rowIndex].label;
}

Hope this helps

~ Bart

--- In flexcoders@yahoogroups.com, secrit.service secrit-serv...@... wrote:

 Hi everyone,
 
 I have a datagrid. If I mouseclick on a row, I can retrieve this record by 
 using selectedItem. However, when I move my mouse over the datagrid (without 
 clicking) the rows also change color. Is there any way to retrieve the record 
 where my mouse is pointing at.
 Meaning is to show a preview of the records as soon my mouse is passing over.
 
 Thanks in advance





[flexcoders] Grails Flex Scaffold()

2009-03-08 Thread gonzalo clavell
If you are interested in a Grails Plugin for scaffolding your groovy domain
... try this

http://cubikalabs.wordpress.com/

Try it, we need your comment to improve it.

-- 
Gonzalo Clavell


[flexcoders] Re: mxmlc rsl

2009-03-08 Thread djd2tq
I installed Flex Builder 3 and tried creating both a Flex and Actionscript 
project.  I looks like RSLs are only supported in Flex projects. 

I guess that makes sense since the functionally could be simulated in an AS 
project with Loaders and External swc linkage.  I wish that was made more 
apparent in the docs on RSLs.

-Don Q.

--- In flexcoders@yahoogroups.com, djd2tq djd...@... wrote:

 Hi,
 
 I'm trying to compile a flex app using the flex 4 sdk's mxmlc.  I'm using a 
 custom swc as an rsl.
 
 While I can get everything to compile just fine, running the swf gives me a 
 VerifyError 1014 Class ... not found.
 
 Here's what I'm using on the command line:
 
 mxmlc 
 -load-config=../../../flash/flex_sdk_4.0.0.5201/frameworks/flex-config.xml 
 -rslp=flare.swc,flare.swf -static-rsls=false -- SwcTest.as
 
 And this is the error I get from the debug player running locally:
 
 VerifyError: Error #1014: Class flare.animate::Tween could not be found.
   at SwcTest()
 
 
 Can anyone give me advice on what could be wrong?  I'm at a loss.
 
 I've also tried the runtime-shared-library-path tag in a config file without 
 any difference.
 
 If it helps I'm also running on the mac.
 
 Thanks.
 -Don Q.





[flexcoders] Flex Interview Questions

2009-03-08 Thread Shyam Prasad

Hi,

Can anyone provide any website for the Interview Questions  for Flex ?

Thanks

Prasad


  



RE: [flexcoders] Re: dataGrid not receiving user input (intermitently) in bottom right

2009-03-08 Thread Alex Harui
In times like this, I set a breakpoint on SystemManager.as:mouseDownHandler, 
click someplace and introspect the event.target and its properties.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tim Hoff
Sent: Saturday, March 07, 2009 5:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: dataGrid not receiving user input (intermitently) in 
bottom right


Has to be another object on top of the DataGrid. The redraw region is
the clue. Look at the other objects in the same class as the DataGrid.

-TH

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Tracy 
Spratt tspr...@... wrote:

 If you are pretty sure there is not something invisible covering that
area,
 try cleaning the project.

 Tracy



 _

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
On
 Behalf Of tom s
 Sent: Saturday, March 07, 2009 6:31 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] dataGrid not receiving user input
(intermitently) in
 bottom right



 I have a datagrid that works ~50% of the time.

 The other 50% of the time the dataGrid wont accept user interaction in
the
 bottom right area (the bottom 3 (of 6) rows, right 2 (of 4) columns).

 i.e. that part of the grid does not react to mouse over events, not
mouse
 click events.

 Sometimes is reacts to click events as if they are occurring in the
row in
 which a mouse_over interaction was last observed.



 Looking at the redraw regions, I see that a redraw region occasionally
 appears in the bottom right of the grid - exactly where he grid is not
 receiving user input.

 So that is probably related.

 But I don't know what it is a redraw region for. I've checked my other
 component and they aren't near.



 I have the following custom item renderers:

 column 2: extends Canvas

 column 3: extends Label

 column 4: extends Label.



 Anyone know what might be causing this?

 Or how to fix it / diagnose it further?



 thanks



 tom




RE: [flexcoders] mxmlc rsl

2009-03-08 Thread Alex Harui
Rsl loading is built into mx:Application/SystemManager.  A simple AS test will 
not load rsls and probably give you that error.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of djd2tq
Sent: Saturday, March 07, 2009 12:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mxmlc rsl


Hi,

I'm trying to compile a flex app using the flex 4 sdk's mxmlc. I'm using a 
custom swc as an rsl.

While I can get everything to compile just fine, running the swf gives me a 
VerifyError 1014 Class ... not found.

Here's what I'm using on the command line:

mxmlc 
-load-config=../../../flash/flex_sdk_4.0.0.5201/frameworks/flex-config.xml 
-rslp=flare.swc,flare.swf -static-rsls=false -- SwcTest.as

And this is the error I get from the debug player running locally:

VerifyError: Error #1014: Class flare.animate::Tween could not be found.
at SwcTest()

Can anyone give me advice on what could be wrong? I'm at a loss.

I've also tried the runtime-shared-library-path tag in a config file without 
any difference.

If it helps I'm also running on the mac.

Thanks.
-Don Q.



[flexcoders] Re: dataGrid not receiving user input (intermitently) in bottom right

2009-03-08 Thread Tim Hoff

Nice, thanks for the tip Alex.
-TH

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 In times like this, I set a breakpoint on
SystemManager.as:mouseDownHandler, click someplace and introspect the
event.target and its properties.

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of Tim Hoff
 Sent: Saturday, March 07, 2009 5:59 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: dataGrid not receiving user input
(intermitently) in bottom right


 Has to be another object on top of the DataGrid. The redraw region is
 the clue. Look at the other objects in the same class as the DataGrid.

 -TH

 --- In
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Tracy
Spratt tspratt@ wrote:
 
  If you are pretty sure there is not something invisible covering
that
 area,
  try cleaning the project.
 
  Tracy
 
 
 
  _
 
  From:
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
 On
  Behalf Of tom s
  Sent: Saturday, March 07, 2009 6:31 PM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] dataGrid not receiving user input
 (intermitently) in
  bottom right
 
 
 
  I have a datagrid that works ~50% of the time.
 
  The other 50% of the time the dataGrid wont accept user interaction
in
 the
  bottom right area (the bottom 3 (of 6) rows, right 2 (of 4)
columns).
 
  i.e. that part of the grid does not react to mouse over events, not
 mouse
  click events.
 
  Sometimes is reacts to click events as if they are occurring in the
 row in
  which a mouse_over interaction was last observed.
 
 
 
  Looking at the redraw regions, I see that a redraw region
occasionally
  appears in the bottom right of the grid - exactly where he grid is
not
  receiving user input.
 
  So that is probably related.
 
  But I don't know what it is a redraw region for. I've checked my
other
  component and they aren't near.
 
 
 
  I have the following custom item renderers:
 
  column 2: extends Canvas
 
  column 3: extends Label
 
  column 4: extends Label.
 
 
 
  Anyone know what might be causing this?
 
  Or how to fix it / diagnose it further?
 
 
 
  thanks
 
 
 
  tom