Re: [flexcoders] TabNavigator weirdness

2008-03-06 Thread Sherif Abdou
this works, dispatch a fake event and change it, what happens is the 
TabNavigator either loses focus or the children are not garbage collected until 
there is a click or some form of interaction with it
?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical xmlns:lib=com.lib.*
mx:Script
![CDATA[
import mx.events.IndexChangedEvent;
import mx.events.ChildExistenceChangedEvent;
import mx.containers.VBox;

private function rest():void{
myTab.removeAllChildren();
for(var i:int=0;i5;i++)
{
var v:VBox = new VBox();
v.label=Tab +String(i);
myTab.addChild(v);
}
myTab.dispatchEvent(new IndexChangedEvent(IndexChangedEvent.CHANGE));
myTab.selectedIndex=0;
}
]]
/mx:Script

mx:TabNavigator id=myTab width=400 height=500
mx:VBox label=Tab1/
mx:VBox label=Tab21/
mx:VBox label=Tab3/
mx:VBox label=Tab4/
/mx:TabNavigator
mx:Button label=Reset click=rest()/
/mx:WindowedApplication



- Original Message 
From: dbronk [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, March 6, 2008 10:32:24 PM
Subject: [flexcoders] TabNavigator weirdness

I have a TabNavigator component that I completely reset the tabs
dynamically with the following code:

tabNav.removeAllChi ldren();
for each (var container:Container in myList )
{
tabNav.addChild( container)
}
tabNav.selectedInde x = 0;

So this successfully removes the existing tabs, then loops though my
ArrayCollection and adds a new set of tabs. It also shows the
contents of tabNav[0], but the tab that displays as selected is
whatever was currently selected. So if I originally displayed the
tabnav and clicked the 3rd tab, then clicked the button completely
outside of the tabnav that causes it to redisplay, it will correct
show the contents of tabnav[0], but visually it looks like the 3rd tab
is still selected.

I also tried tabNav.validateNow( ) and it doesn't work. To test I
added a button completely outside of the tabnav with
click=tabnav. selectedIndex= 0, works great.

So what am I not doing?

Thanks,
Dale


 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Re: E4x mystery

2008-03-06 Thread Sherif Abdou
I will look at it tom



- Original Message 
From: Amy [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, March 6, 2008 9:32:28 PM
Subject: [flexcoders] Re: E4x mystery

--- In [EMAIL PROTECTED] ups.com, Sherif Abdou [EMAIL PROTECTED] .. wrote:

 try wrapping your xml in an XMLListCollection and see if that 
works. I am not really following maybe upload the MXML file and i'll 
look at it, its kinda hard to follow the code on here.

It is already wrapped like that.

MyApplication. mxml:

?xml version=1.0 encoding=utf- 8?
mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml 
layout=absolute 
xmlns:cmc=com. magnoliamultimed ia.components. * 
creationComplete= isStarted( )
horizontalScrollPol icy=off verticalScrollPolic y=off 
mx:Script
![CDATA[
import mx.collections. XMLListCollectio n;
import com.magnoliamultime dia.components. *
import mx.controls. Alert;
[Bindable]
private var qXMLList:XMLListCol lection;
private var qXML:XML;
[Bindable]
private var useHighlight: Boolean;
[Bindable]
private var editing:Boolean;
[Bindable]
private var bubbleRow:ClassFact ory;
private function getXML():void{
useHighlight = true;
//hard coded XML for testing
qXML = 
questions
question id=1
selected1 /selected
selected5 /selected
/question
question id=2
selected1 /selected
selected5 /selected
/question
question id=3
selected1 /selected
selected5 /selected
/question
question id=4
selected1 /selected
selected5 /selected
/question
question id=5
selected1 /selected
selected5 /selected
/question
question id=6
selected1 /selected
selected5 /selected
/question
question id=7
selected1 /selected
selected5 /selected
/question
question id=8
selected1 /selected
selected5 /selected
/question
question id=9
selected1 /selected
selected5 /selected
/question
question id=10
selected1 /selected
selected5 /selected
/question
question id=11
selected1 /selected
selected5 /selected
/question
question id=12
selected1 /selected
selected5 /selected
/question
question id=13
selected1 /selected
selected5 /selected
/question
question id=14
selected1 /selected
selected5 /selected
/question
question id=15
selected1 /selected
selected5 /selected
/question
question id=16
/question
question id=17
selected1 /selected
selected5 /selected
/question
question id=18
selected1 /selected
selected5 /selected
/question
question id=19
selected1 /selected
selected5 /selected
/question
question id=20
selected1 /selected
selected5 /selected
/question
question id=21
selected1 /selected
selected5 /selected
/question
question id=22
selected1 /selected
selected5 /selected
/question
question id=23
selected3 /selected
selected4 /selected
/question
question id=24
selected1 /selected
selected5 /selected
/question
question id=25
selected3 /selected
selected5 /selected
/question
question id=26
selected1 /selected
selected3 /selected
/question
question id=27
selected1 /selected
selected5 /selected
/question
question id=28
selected1 /selected
selected5 /selected
/question
/questions
useHighlight = false;
editing = false;
bubbleRow = new ClassFactory
(AnswerRow);
bubbleRow.propertie s = 
{isEditing:editing} ;
showBubbles( qXML); 
setCurrentQuestion( 1);
}
//convert regular xml to xmlList
private function showBubbles( questionsXML: XML):void{
qXMLList= new XMLListCollection
(questionsXML. question) ;
scoreSheet.visible = true;
}
//pass back info about what happened
private function userAnswerHandler( e:Event): void {
if (!useHighlight) {
trace('index = ' + 
(e.target.parent. data.childIndex( ) + 1) + ', info = ' + 
qXMLList.getItemAt( e.target. parent.data. childIndex( )).toString( ));
ExternalInterface. call
('bubbleMarked' , e.target.parent. data.childIndex( )+1, 
e.target.parent. data.toString( ));
}
}
//set up to be ready to talk to container
public function isStarted(): void{
if (ExternalInterface. available) {
ExternalInterface. call(started , 1);
ExternalInterface. addCallback
(setSource , setXML);
ExternalInterface. addCallback
(setCurrentQuestio n, setCurrentQuestion) ;
} else {
getXML();
}
getXML(); 

setCurrentQuestion( 1);
}
public function setXML(theContent: String, 
highlightOn: Boolean=false, isContentEditor: Boolean=false) :void {
theContent=theConte nt.substring
(theContent. indexOf( \n)+1, theContent.lastInde xOf(\n) );
qXML = XML(theContent) ;
showBubbles( qXML);
scoreSheet.visible = true;
//Alert.show( highlightOn. toString( ));
useHighlight = highlightOn;
editing = isContentEditor;
setCurrentQuestion( 1);
bubbleRow = new ClassFactory( AnswerRow) ;
bubbleRow.propertie s = {isEditing:editing} ;
}
public function setCurrentQuestion( qNum:Number) :void{
//Alert.show( qNum.toString( ));
if (useHighlight) {
scoreSheet.styleNam e 
= 'tileReviewMode' ;
scoreSheet.selected Index = qNum - 1;

} else {
scoreSheet.styleNam e = '';
}
}
]]
/mx:Script
mx:Style
Application{
backgroundColor: #FF;
}
Button{
cornerRadius : 40;
paddingLeft: 0;
paddingRight: 0;
paddingTop: 0;
paddingBottom: 0;
fontSize: 8;
}
.selectedBtn {
fillColors: #00, #00

Re: [flexcoders] TabNavigator weirdness

2008-03-06 Thread Sherif Abdou
just let me clarify me statment is an opinion but i really dont know why it 
doesnt get set at the beginning but this works



- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, March 6, 2008 11:03:05 PM
Subject: Re: [flexcoders] TabNavigator weirdness

this works, dispatch a fake event and change it, what happens is the 
TabNavigator either loses focus or the children are not garbage collected until 
there is a click or some form of interaction with it
?xml version=1.0 encoding=utf- 8?
mx:WindowedApplicat ion xmlns:mx=http://www.adobe. com/2006/ mxml 
layout=vertical xmlns:lib=com.lib.*
mx:Script
![CDATA[
import mx.events.IndexChan gedEvent;
import mx.events.ChildExis tenceChangedEven t;
import mx.containers. VBox;
 
private function rest():void{
myTab.removeAllChil dren();
for(var i:int=0;i5;i++)
{
var v:VBox = new VBox();
v.label=Tab +String(i);
myTab.addChild(v);
}
myTab.dispatchEvent (new IndexChangedEvent( IndexChangedEven t.CHANGE) );
myTab.selectedIndex =0;
}
]]
/mx:Script
 
mx:TabNavigator id=myTab width=400 height=500
mx:VBox label=Tab1/
mx:VBox label=Tab21/
mx:VBox label=Tab3/
mx:VBox label=Tab4/
/mx:TabNavigator
mx:Button label=Reset click=rest( )/
/mx:WindowedApplica tion



- Original Message 
From: dbronk [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Thursday, March 6, 2008 10:32:24 PM
Subject: [flexcoders] TabNavigator weirdness


I have a TabNavigator component that I completely reset the tabs
dynamically with the following code:

tabNav.removeAllChi ldren();
for each (var container:Container in myList )
{
tabNav.addChild( container)
}
tabNav.selectedInde x = 0;

So this successfully removes the existing tabs, then loops though my
ArrayCollection and adds a new set of tabs. It also shows the
contents of tabNav[0], but the tab that displays as selected is
whatever was currently selected. So if I originally displayed the
tabnav and clicked the 3rd tab, then clicked the button completely
outside of the tabnav that causes it to redisplay, it will correct
show the contents of tabnav[0], but visually it looks like the 3rd tab
is still selected.

I also tried tabNav.validateNow( ) and it doesn't work. To test I
added a button completely outside of the tabnav with
click=tabnav. selectedIndex= 0, works great.

So what am I not doing?

Thanks,
Dale







Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. 
 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] how to have a component change the state

2008-03-05 Thread Sherif Abdou
well i am guessing that the main is in App so i think it should be currentState 
= Application.application.main
or you can just use a titleWindow and just remove it which would be a bit 
easier.


- Original Message 
From: Chad Gray [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Wednesday, March 5, 2008 1:10:05 PM
Subject: [flexcoders] how to have a component change the state

Say I have a component file that is called Login. It asks for login and 
password and if they succeed I want the currentState of the main MXML file to 
change to one called main.

When I had all of the code on the one main mxml I used this code to change the 
state:

private function letUserIn(): void{
if (roServalent. authUser. lastResult == true) {
this.currentState = 'main';
}
}

When I run this code in the component file I get an error ArgumentError: 
Undefined state 'main'.

I know the scope this.currentState is what is causing the error.

How do I scope currentState so it can find the main state in the main MXML 
file?

I guessed super.currentState but that did not seem to work.


 


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


[flexcoders] is there a way to watch variables live

2008-03-05 Thread Sherif Abdou
Instead of doing breakpoints and what not, is there a way to see the whole 
debug variable page live and see all the changes happening during the 
application cycle or not.  I am entering text in a Textinput and i would like 
to see the text change as i am doing that. 


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] how to do this

2008-03-05 Thread Sherif Abdou
why access parentApplication??
just do 
this.parent.selectedIndex=whatever



- Original Message 
From: YOGESH JADHAV [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; flexcoders@yahoogroups.com
Sent: Wednesday, March 5, 2008 11:06:58 PM
Subject: [flexcoders] how to do this

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute 
xmlns:ns1=*
mx:ViewStack x=10 y=10 id=viewstack1 width=100% height=100%

ns1:FirstView id=two/

ns1:SecondView id=one/

/mx:ViewStack

/mx:Application

?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml width=100% 
height=100%
mx:Button x=167 y=186 label=GoToFirst click=go();/
mx:Script
![CDATA[

public function go():void
{
//viewstack1.selected Child = second;
//this.parentApplicat ion.viewstack1. selectedChild = 
this.parentApplicat ion.second;
}
]]
/mx:Script
/mx:Canvas


?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml width=100% 
height=100%
mx:Button x=167 y=186 label=GotoSecond/

/mx:Canvas


Is there any simple solution ( other than firing custom event )? Sorry for 
reposting, but this may be more clear than earlier one.
-- 


Regards,
Yogesh 
 


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Re: Flex Encryption and Flex Application check

2008-03-04 Thread Sherif Abdou
yes it can and it doesnt give mxml per say but the ones that are MXML usually 
start with _mxml so you can just browse them though. I have decomplied about 3 
applications and they are did decomplie and showed all the code.



- Original Message 
From: andrewwestberg [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 4, 2008 12:45:44 PM
Subject: [flexcoders] Re: Flex Encryption and Flex Application check

Apparently, the Sothink decompiler can handle a flex app. It probably
won't give you back any mxml, but will probably grab the generated AS3
code.

http://blog. everythingflex. com/2008/ 02/29/check- you-as3-code/

Check out nitrolm.com if you want to do swf encryption.

-Andrew


 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Global keyboard capture?

2008-03-04 Thread Sherif Abdou
For Flex, use systemManager instead of stage from what i was told and the 
capture. no idea on combo sorry

- Original Message 
From: thirtyfivemph [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 4, 2008 1:32:58 PM
Subject: [flexcoders] Global keyboard capture?

I'm wanting to globally capture the keyboard in my Flex app. I want to
be notified of every keyboard event that happens as long as the Flash
Player has the focus... regardless of whether the event happens when a
UIComponent has keyboard focus or not.

Here's what I'm doing:

stage.addEventListe ner(KeyboardEven t.KEY_DOWN, handleKeyboard, false,
int.MAX_VALUE) ;
stage.addEventListe ner(KeyboardEven t.KEY_UP, handleKeyboard, false,
int.MAX_VALUE) ;
stage.addEventListe ner(KeyboardEven t.KEY_DOWN, handleKeyboard, true,
int.MAX_VALUE) ;
stage.addEventListe ner(KeyboardEven t.KEY_UP, handleKeyboard, true,
int.MAX_VALUE) ;

Since the stage is at the top of the display list, and since I'm
listening for events in both the capture and bubble phase, and since I
have the highest possible event priority, should I see all keyboard
events?

The problem is that I'm not... I've got a situation in my app where I
start seeing only keyDown events with no matching keyUp events. It
happens after I click on a ComboBox drop-down in a popup, then the
popup is closed. At that point, I only get keyDown events until I
click on another UI component.

Any ideas what could be happening here?

In general, is there a way I can guarantee that I can direct *all*
keyboard events to a given function?

Thanks,

Troy.


 


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] can flex do auto-fill for input text fields??

2008-03-04 Thread Sherif Abdou
AutoComplete on Adobe Beta Exchange



- Original Message 
From: coder3 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 4, 2008 4:29:58 PM
Subject: [flexcoders] can flex do auto-fill for input text fields??


Hi,

is there a way to do autofill in flex like google suggest?

is there a sample somewhere?

thanks!!!

c.
-- 
View this message in context: http://www.nabble. com/can-flex- do-auto-fill- 
for-input- text-fields- --tp15838672p158 38672.html
Sent from the FlexCoders mailing list archive at Nabble.com.


 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Re: Praise for the Flex 3 Documentation

2008-03-03 Thread Sherif Abdou
1000 pages in one day? What is your secret



- Original Message 
From: Dmitri Girski [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, March 3, 2008 10:54:57 AM
Subject: [flexcoders] Re: Praise for the Flex 3 Documentation

And now everyone will also print out 1000 pages of documentation. .. :)

Besides waste of paper, what's the point of loosing context search?

Cheers!

--- In [EMAIL PROTECTED] ups.com, Glenn Williams [EMAIL PROTECTED] wrote:

 Just wanted to say this.
 
 Having bought and read many Flex  actionScript books over the years,
 I hadn't really given Adobes documentation much of a look (apart from
 the liveDocs that is, which I couldn't live without.). Well, I had a
 free afternoon today, so I thought I'd have a read through the new
 Flex Builder 3 PDFs.
 
 So, 1000s of pages and a whole day later I've come to the conclusion
 that they're amazing. Easily the best 'book' on Flex I've read. So
 much so, I'm going to order a printed copy of the documentation set in
 the morning.
 
 It's easy to overlook this source of information, and think it's
 essential to look at 3rd party books to teach you this product. I'd
 just like to say to both new and seasoned users, that Adobes Flex PDF
 collection is something not to be ignored.
 
 I often see post's asking 'which is the best book on Flex, I now think
 that you can't do better than Adobes own documentation.
 
 Here's a link.
 
 http://www.adobe. com/support/ documentation/ en/flex/



 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] File Download Not Working

2008-03-03 Thread Sherif Abdou
There is an error which is
Error: Error #2037: Functions called in incorrect sequence, or earlier call was 
unsuccessful.
I think maybe security box or something


- Original Message 
From: Dale Fraser [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, March 3, 2008 11:32:36 PM
Subject: [flexcoders] File Download Not Working

Why doesn’t this work
 
The app runs, get a download prompt, click save. No error. But no file. And the 
completeHandler never fires, never see the trace.
 
Must be missing something obvious.
 
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute
  mx:Script
![CDATA[
import flash.net.FileRefer ence;

  private function doIt():void {
var request:URLRequest = new 
URLRequest(http://learncf. com/img/btnTutor ial.png);
var fileRef:FileReferen ce = new FileReference( );
fileRef.addEventLis tener(Event. COMPLETE, 
completeHandler) ;
fileRef.download( request);
  }
  
  private function completeHandler( ):void {
trace('complete');
  }
]]
  /mx:Script
  
  mx:Button x=10 y=10 label=Button click=doIt(); width=166 
height=126/
  
/mx:Application
 
Regards
Dale Fraser
http://learncf. com
 
 


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Re: Tree Bug?

2008-03-03 Thread Sherif Abdou
well i think it is a bug but the way to get over it is to add a deactivate and 
an activate listener on the tree or the App itself and in deactivate just do 
editable=false, activate editable=true or just remove the focus from the tree 
by setting it on the App it self from focus manager one there is a deactivate 
which means that user minimzed, swtiched tab whatever.



- Original Message 
From: Rafael Faria [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, March 3, 2008 9:51:08 PM
Subject: [flexcoders] Re: Tree Bug?

Hi sherif... Please check this

http://www.enilsson .com/assets/ examples/ menuTree. html

Select some items, and than change tabs, than come back to the menu...
you will see that it automatically start editing an item. And it
doesnt listen to the listeners. Just start editing from nowhere.

I tried Alex suggestion 

addEventListener( FocusEvent. FOCUS_IN, handleItemFocusIn) ;

and on handleItemFocusIn function i put

editedItemPosition = null;

i have a listening to the begginingedit too

private function handleItemEditBegin ning(event: ListEvent) :void
{
event.preventDefaul t(); 
}

but it doesnt seems to work either.

but it didnt change anything on FF but it throws an error on Safari.

Also note that if you start editing (to start editing it works like
mac, click once, and than click again) and you double click at the
textinput it will jump to the native editor...

those 2 issues are making me lost some nights of work... doesnt matter
what i do, it just don't fix it.

This is what my listeners handle...

addEventListener( ListEvent. ITEM_EDIT_ BEGINNING, handleItemEditBe ginning);
addEventListener( ListEvent. ITEM_EDIT_ END,handleItemEd itEnd);
addEventListener( ListEvent. ITEM_CLICK, handleItemEdit) ;

/**
* Action taken when you start editing the item
**/
private function handleItemEditBegin ning(event: ListEvent) :void
{
event.preventDefaul t(); 
}


/**
* Action taken when you finish editing the item
**/
private function handleItemEditEnd( event:ListEvent) :void
{
_tmpSelectedItem = null;

}

/**
* Action taken when you edit a item
**/
private var _tmpSelectedItem: Object;
private var editTimer:Timer = new Timer(1500,1) ;
private function handleItemEdit( event:ListEvent) :void
{

if ((_tmpSelectedItem == selectedItem)  (editable)) {
// Edit
editedItemPosition = event;

} else {
// not edit
event.preventDefaul t(); 
}

editTimer.removeEve ntListener( TimerEvent. TIMER_COMPLETE,
clearSelectedItem) ;

editTimer.addEventL istener(TimerEve nt.TIMER_ COMPLETE, clearSelectedIte m);
editTimer.start( );

_tmpSelectedItem = selectedItem;

}

private function clearSelectedItem( event:TimerEvent ):void
{
_tmpSelectedItem = null;
editTimer.removeEve ntListener( TimerEvent. TIMER_COMPLETE,
clearSelectedItem) ; 
}

--- In [EMAIL PROTECTED] ups.com, Sherif Abdou [EMAIL PROTECTED] .. wrote:

 u have a link or a bit of source code? try removing focus on the
editing by listeneing to the stage leave
 
 
 
 - Original Message 
 From: Rafael Faria rafaelfaria. [EMAIL PROTECTED] .
 To: [EMAIL PROTECTED] ups.com
 Sent: Sunday, March 2, 2008 10:12:00 PM
 Subject: [flexcoders] Re: Tree Bug?
 
 anyone?
 
 --- In [EMAIL PROTECTED] ups.com, Rafael Faria
 rafaelfaria. grupos@ . wrote:
 
  I'm almost finished with my Tree custom component. 
  
  Just 2 things are bugging me a lot.
  
  Firstly, when i select a node (not editing), change tab on my firefox,
  and come back, it enters to editing mode without touching anything.
  
  Secondly, when i'm in the editing a node, and double click inside the
  custom texteditor i created, it just jump back to the native editor.
  
  Anyone knows how to prevent both of those things to happen?
  
  thanks
  raf
 
 
 
 
 
 
 
 _ _ _ _ _ _
 Looking for last minute shopping deals? 
 Find them fast with Yahoo! Search. 
http://tools. search.yahoo. com/newsearch/ category. php?category= shopping



 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Re: Tree Bug?

2008-03-02 Thread Sherif Abdou
u have a link or a bit of source code? try removing focus on the editing by 
listeneing to the stage leave



- Original Message 
From: Rafael Faria [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, March 2, 2008 10:12:00 PM
Subject: [flexcoders] Re: Tree Bug?

anyone?

--- In [EMAIL PROTECTED] ups.com, Rafael Faria
rafaelfaria. [EMAIL PROTECTED] . wrote:

 I'm almost finished with my Tree custom component. 
 
 Just 2 things are bugging me a lot.
 
 Firstly, when i select a node (not editing), change tab on my firefox,
 and come back, it enters to editing mode without touching anything.
 
 Secondly, when i'm in the editing a node, and double click inside the
 custom texteditor i created, it just jump back to the native editor.
 
 Anyone knows how to prevent both of those things to happen?
 
 thanks
 raf



 


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

[flexcoders] object and keys

2008-03-01 Thread Sherif Abdou
can you do something like this
var myInt:int =5;
var myObject:Object = {};
myObject[someRandomKey].myInt = somethinghere
myInt--;
//then we loop again so 5 becomes 4 etc... 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Re: How can I add Sprite / MovieClip to stage without error of not UIComponent

2008-03-01 Thread Sherif Abdou
try adding it to a FlexSprite then to a UIComponenet or any of those 
FlexDisplayObject classes



- Original Message 
From: Brian [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, March 1, 2008 5:32:13 PM
Subject: [flexcoders] Re: How can I add Sprite / MovieClip to stage without 
error of not UIComponent

I'm echoing the request for an example here because I'm having the
exact same problem. How would you 'add everything meaningfull stuff as
child of that UIComponent' , when UIComponent. addChild( ) has the same
restrictions as the original component I tried adding the MovieClip to?

I also tried adding a MovieClip to a TitleWindow for a popUp instead
of the stage and had the same error.

--- In [EMAIL PROTECTED] ups.com, helihobby [EMAIL PROTECTED] .. wrote:

 Can you post an example please ?
 
 --- In [EMAIL PROTECTED] ups.com, Jonathan Lee jlee_lee740304@ 
 wrote:
 
  What I did is just add a UIComponent under the container as a child.
 The add everything meaningful stuff as child of that UIComponent.
  
  
  
  helihobby helihobby@ wrote: This
 is the exact error I get:
  
  Main Thread (Suspended: TypeError: Error #1034: Type Coercion failed:
  cannot convert flash.display: :MovieClip@ 479b1f1 to
 mx.core.IUIComponen t.) 
  

mx.core::Container/http://www.adobe. com/2006/ flex/mx/internal ::addingChild
  
  mx.core::Container/ addChildAt 
  mx.core::Container/ addChild 
  TestAS12344/ setFire 
  TestAS12344/ onClick 
  TestAS12344/ __bb_click 
  
  --- In [EMAIL PROTECTED] ups.com, helihobby helihobby@ wrote:
  
   
   How can I add Sprite / MovieClip to stage without error of not
   UIComponent ?
   
   Everytine I add a Sprite or MC I get the error ... even if I try to
   cast to a DisplayObject ...
   
   Any help is greatly appreciated ...
   
   Sean.
  
  
  
  
  
  
  
   - - ---
  Looking for last minute shopping deals? Find them fast with Yahoo!
 Search.
 



 


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Newbie Question - Random position in an array

2008-03-01 Thread Sherif Abdou
something like this should work
var randomNumber:int = Math.Random * myArray.length;
then do something like myArray[randomNumber] whatever



- Original Message 
From: Sean Scott [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, March 1, 2008 9:39:39 PM
Subject: [flexcoders] Newbie Question - Random position in an array

Hi folks, wondering if someone has a function that returns a random position 
from an array.

Thanks from a newbie,

 


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-01 Thread Sherif Abdou
and then there is always the education version too



- Original Message 
From: ben.clinkinbeard [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, March 1, 2008 10:56:45 PM
Subject: [flexcoders] Re: Flex Builder 3.0 Serial No. Need

U. There is a 60 day trial available from the Adobe site. Install
it and start saving your money so you can buy it in 2 months.

--- In [EMAIL PROTECTED] ups.com, devang solanki devang.flex@ ...
wrote:

 Dear Friends
 
 if any one have flex builder 3.0 serial no or crack, then please
forward to
 me, i need it
 
 Regards
 Devang



 


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Re: Flex Builder 3.0 Serial No. Need

2008-03-01 Thread Sherif Abdou
http://www.flexregistration.com/
they take like 1 or 2 days to send hyou a key


- Original Message 
From: devang solanki [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, March 1, 2008 11:35:08 PM
Subject: Re: [flexcoders] Re: Flex Builder 3.0 Serial No. Need

Thank you so much for your comments
 
i all ready have flex builder 2.0 serial no, but its not working with flex 
builder 3.0, regarding that if any one guide me. 
 
how to go for education version ?
 
Regards
Devang


On Sun, Mar 2, 2008 at 10:37 AM, Doug McCune [EMAIL PROTECTED] com wrote:

Oooh, that's right, the dude is the owner of Magic Legs Martial Arts Academy. 
You think that academy qualifies for the education discount? 
http://www.linkedin .com/in/dangeoru skicker 




On 3/1/08, Sherif Abdou [EMAIL PROTECTED] com wrote: 
and then there is always the education version too 



- Original Message 
From: ben.clinkinbeard ben.clinkinbeard@ gmail.com
To: [EMAIL PROTECTED] ups.com
Sent: Saturday, March 1, 2008 10:56:45 PM
Subject: [flexcoders] Re: Flex Builder 3.0 Serial No. Need


U. There is a 60 day trial available from the Adobe site. Install
it and start saving your money so you can buy it in 2 months.

--- In [EMAIL PROTECTED] ups.com, devang solanki devang.flex@ ...
wrote:

 Dear Friends
 
 if any one have flex builder 3.0 serial no or crack, then please
forward to
 me, i need it
 
 Regards
 Devang








Looking for last minute shopping deals? Find them fast with Yahoo! Search. 




 


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Dynamic attribute on MXML code

2008-02-29 Thread Sherif Abdou
where are you getting mx:Job/ from? it is not an Adobe Class so use whatever 
job is under


- Original Message 
From: VELO [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 29, 2008 6:29:20 PM
Subject: [flexcoders] Dynamic attribute on MXML code

I'm trying to do something like this:
mx:Object id=obj name=velo age=44
mx:job area=IT worktime=10 /
/mx:Object

And always got:
Could not resolve mx:job to a component implementation.

I saw RemoteObject doing something like this:
mx:RemoteObject id=cargoService fault=onFault( event)
destination= cargoService 
mx:method name=asdasd /
/mx:RemoteObject

But i cant understand why RemoteObject can do and Object cant do.
I had try to implement my own object, who extends Proxy and override
callProperty, getProperty and setProperty.
But no success.

Any can help me on this?

VELO

 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] turn off autotab in datagrid

2008-02-29 Thread Sherif Abdou
add an event Listener for that event and just do event.preventDefault()



- Original Message 
From: [p e r c e p t i c o n] [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 29, 2008 12:37:07 PM
Subject: Re: [flexcoders] turn off autotab in datagrid

i'm unclear on the concept...can you explain further?

thanks


On Fri, Feb 29, 2008 at 10:33 AM, Alex Harui [EMAIL PROTECTED] com wrote:

Call preventDefault on the next ITEM_EDIT_BEGINNING
 



From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of 
[p e r c e p t i c o n]
Sent: Friday, February 29, 2008 10:06 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] turn off autotab in datagrid
 
Hi all,
how does one turn off the autotab in the datagrid...after i complete one field 
i don't want it to skip to the next field...

thanks

p


 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Scrolling Bouncing List Control . . . how?

2008-02-29 Thread Sherif Abdou
bouncing stuff is done with sin and cosine so you could try that. 



- Original Message 
From: crumpelfungus [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 29, 2008 12:14:53 PM
Subject: [flexcoders] Scrolling  Bouncing List Control . . . how?

Just wondering if anyone has been able to animate a List control with
the sliding  bouncing effect?

For example, if somebody narrows down the desired List entry (by way
of a text input box or some other selection through another control),
I would like the List control to slide to the matching entry and
bounce up and down just a little bit, before coming to a halt.

(Yes, I know, it's eye candy (but my boss wants it) and never mind
that getting the data from a database and editing  updating it should
be the focus . . . but the person who signs my paycheck wants it that
way.)

Any ideas how I would go about doing something like that?

Thanks for any helpful links or coding tips!


 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Combo Box Does not refresh

2008-02-29 Thread Sherif Abdou
so are you updating the dataProvider and if so just try 
comboBoxName.dataProvider.refresh() or just try comboBoxName.validateNow()
--Come to think of it what kind of data is coming in? ArrayCollection?


- Original Message 
From: ghus32 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 29, 2008 10:51:45 AM
Subject: [flexcoders] Combo Box Does not refresh

Hello everyone,

I have a combox which the dataprovider is an http service linked with 
php and mysql. When I hit a button which triggers the service the 
combox does not refresh with the new inputted results. I have to start 
the application over again and the new fields will appear.

any suggestions?

Thanks


 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Flexlib SuperTabNavigator Errors

2008-02-29 Thread Sherif Abdou
how are you working this out? some code would help?



- Original Message 
From: valdhor [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 29, 2008 12:04:13 PM
Subject: [flexcoders] Flexlib SuperTabNavigator Errors

Hi

I'm a bit of a flex noob and am trying to run the SuperTabNavigator
example from the Flexlib library in FB3 (I just downloaded the latest
version of Flexlib - V2.3.2). Unfortunately, I keep getting the error
Implicit coercion of a value of type
flexlib.containers: SuperTabNavigato r to an unrelated type
SuperTabNavigator. 

Anyone have any ideas on how to fix this?


 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

[flexcoders] Flex Builder 3 Education?

2008-02-25 Thread Sherif Abdou
might as well get it for free before i graduate this semester, will there be a 
Flex 3 Builder for Education or not cause it is no where on the site.


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


Re: [flexcoders] New version of FB3 won't let my AIR app run

2008-02-25 Thread Sherif Abdou
when i had a similiar error it turns out that i did not have the debugger 
version installed/NOD32 blocks the debugger from working/Windows Vista Firewall 
was blocking the port and/or forgot to click run as admin. 


- Original Message 
From: justletmejoinalready [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 25, 2008 2:37:24 PM
Subject: [flexcoders] New version of FB3 won't let my AIR app run

Here's my steps:

1) I uninstalled the beta
2) installed the final release
3) Installed SVN
4) Imported my existing project from the repo.

Click run app and nothing happens. No errors, but also no app.
I click debug and get this error:

--
Process terminated without establishing connection to debugger.

Command:

C:\Program Files\Adobe\ Flex Builder 3\sdks\3.0.0\ bin\adl.exe
C:\Program Files\Apache Group\Apache2\ htdocs\FlexProje cts\Faces\ bin-
debug\Faces- app.xml
C:\Program Files\Apache Group\Apache2\ htdocs\FlexProje cts\Faces\ bin-
debug 

Output from command:

invalid application descriptor: descriptor version does not match 
runtime version
--

Anyone have any ideas?





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] New version of FB3 won't let my AIR app run

2008-02-25 Thread Sherif Abdou
or you can always try Project--Clean and make sure the compilter is Flex 3


- Original Message 
From: justletmejoinalready [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 25, 2008 2:37:24 PM
Subject: [flexcoders] New version of FB3 won't let my AIR app run

Here's my steps:

1) I uninstalled the beta
2) installed the final release
3) Installed SVN
4) Imported my existing project from the repo.

Click run app and nothing happens. No errors, but also no app.
I click debug and get this error:

--
Process terminated without establishing connection to debugger.

Command:

C:\Program Files\Adobe\ Flex Builder 3\sdks\3.0.0\ bin\adl.exe
C:\Program Files\Apache Group\Apache2\ htdocs\FlexProje cts\Faces\ bin-
debug\Faces- app.xml
C:\Program Files\Apache Group\Apache2\ htdocs\FlexProje cts\Faces\ bin-
debug 

Output from command:

invalid application descriptor: descriptor version does not match 
runtime version
--

Anyone have any ideas?





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Auto ScrollableList similar to flexlib ScrollablePopUpMenuButton

2008-02-25 Thread Sherif Abdou
look at ScrollableCanvas and just extend a list instead


- Original Message 
From: Jerry DuVal [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 25, 2008 3:27:09 PM
Subject: [flexcoders] Auto ScrollableList similar to flexlib 
ScrollablePopUpMenuButton

Anyone know of a list component that auto scrolls based on mouse position 
instead of using the vertical scroll bars.  I want something exactly like this 
example except with a List.
 
http://flexlib. googlecode. com/svn/trunk/ examples/ ScrollableMenus/ 
ScrollableMenu_ Sample.swf
 
 
Jerry DuVal
Pace Systems Group, Inc.
800.624.5999
www.Pace2020. com
 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


[flexcoders] does anyone know if ILOG Elixir

2008-02-25 Thread Sherif Abdou
will also sell an education version for a discounted price,$799 is crazy money 
and yes i am trying to milk this whole education thing.


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Flex Open Source

2008-02-24 Thread Sherif Abdou
you can't do that, SWF file for Flex/AIR will not be decompiled.


- Original Message 
From: Paul Andrews [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, February 24, 2008 11:00:39 AM
Subject: Re: [flexcoders] Flex Open Source

- Original Message - 
From: moelshimy [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Sunday, February 24, 2008 4:12 PM
Subject: [flexcoders] Flex Open Source

 Hi,I want to decompil SWF File to Flex Files
 what can i do 

What has that to do with Open Source?

Is there ever a legitimate reason for doing that?




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] array.length

2008-02-24 Thread Sherif Abdou
if you want to do that then t should be something like this
var objectA:Object = new Object();
objectA.A = A;
myMap.push(objectA);



- Original Message 
From: Paul Andrews [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, February 24, 2008 10:56:28 AM
Subject: Re: [flexcoders] array.length

Try

myMap.push(a) ;
myMap.push(b) ;
myMap.push(c) ;

I'm not sure if you really mean:

myMap.push( A);
myMap.push( B);
myMap.push( C);

Don't be afraid to use the flex help!

Paul

- Original Message - 
From: annouss79 anass.oasis@ gmail.com
To: [EMAIL PROTECTED] ups.com
Sent: Saturday, February 23, 2008 10:06 PM
Subject: [flexcoders] array.length

i need help with array in flex , anyone can help me ?

 var myMap:Array = new Array();
 myMap[A] = a;
 myMap[B] = b;
 myMap[C] = c;
 Alert.show(myMap. length.toString( ),length info)

 i got 0 as length , what's wrong ?



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



 





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Datagrid in Pages

2008-02-24 Thread Sherif Abdou
http://gurufaction.blogspot.com/2007/02/flex-datagrid-paging-example-with.html


- Original Message 
From: Omar Fouad [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, February 24, 2008 11:11:04 AM
Subject: [flexcoders] Datagrid in Pages

Hi List,

I've got an application which fetches from a database table lots of rows down 
in a DataGrid Components, and since the rows are too much, I wanted to divide 
the Datagrid Rows in many pages. How can I achieve that?

Thanks in advance.

-- 
Omar M. Fouad - Digital Emotions 
http://www.omarfoua d.net

This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you. 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] problem with XMLListCollection addItem()

2008-02-24 Thread Sherif Abdou
var xmlListColl:XMLListCollection = new XMLListCollection();
var x:XMLList = p1/p/;
xmlListColl.addItem(x);
this works and i get no internal thing which is the same as yours, are you 
using flex 2?


- Original Message 
From: Peeyush Tuli [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, February 24, 2008 11:53:36 AM
Subject: Re: [flexcoders] problem with XMLListCollection addItem()

Can you post some sample code coz the code below does 
not behave as you mentioned.

private function oncomplete() :void{
var xmlListColl: XMLListCollectio n = new XMLListCollection;
var x:XMLList =  p1/p/;
xmlListColl. addItem(x) ;
}



On Sat, Feb 23, 2008 at 7:00 PM, xmwang1982 [EMAIL PROTECTED] com wrote:

Hi experts,

that's strange if you append a XMLList object into a XMLListCollection
object using addItem() method. It automatically add the following XML
into the XMLList object:

mx_internal_ uid xmlns:xsi=http://www.w3. org/2001/ XMLSchema- instance
B93F361A-9266- CE11-76D1- 467B259373F8
/mx_internal_ uid

It causes some mistakes. For example, if you are using this
XMLListCollection object as data provider of a tree, there would be a
new node for this mx_internal_ uid.

Any idea to avoid this problem? Thanks a lot.







  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Spacing below header in datagrid

2008-02-23 Thread Sherif Abdou
um you could try extending the DataGridHeaderSeperator or any of the 
DataGridHeader skins and override the measureHeight and return your own number. 
I haven't tried it but i guess it would work


- Original Message 
From: DreamCode [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, February 23, 2008 3:49:45 PM
Subject: [flexcoders] Spacing below header in datagrid

I'm trying to add some space between the header and the first row in a 
FileSystemDataGrid, but for whatever reason it refuses to do it.
 
Can anyone tell me how and/or if it can be done?
 
Thanks
 
Allan



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Re: textAlign attribute not accessible from TextInput extended class.

2008-02-23 Thread Sherif Abdou
you can just exclude textAlgin from that class, then do  a setter/getter of the 
same name textAlign and in it
just do setStyle('textAlight',value); 

here is something you can do
?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical creationComplete=initApp()
mx:Script
![CDATA[
import mx.core.WindowedApplication.commitProperties;
[Exclude(name=textAlign,kind=style)]
private function initApp():void{
}
private var _textAlign:String;
private var _textAlignSetinMXML:Boolean;
[Inspectable(enumeration=left,right)]
public function set textAlign(value:String):void{
_textAlign=value;
_textAlignSetinMXML=true;
invalidateProperties();
}
override protected function commitProperties():void{
super.commitProperties();
if(_textAlignSetinMXMl){
//do
}else{
}
}
]]
/mx:Script
/mx:WindowedApplication




- Original Message 
From: aceoohay [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, February 23, 2008 9:05:53 PM
Subject: [flexcoders] Re: textAlign attribute not accessible from TextInput 
extended class.

Jason:

Absolutely true.

However you can put the textAlign=left in the mxml. 

If the developer does that I want to leave it alone, otherwise I may 
want to override it in certain cases.

Paul
--- In [EMAIL PROTECTED] ups.com, jmfillman [EMAIL PROTECTED] .. wrote:

 Paul,
 
 The textAlign property has a default that is always set to left, 
 unless you specifically set it to something else.
 
 Jason
 
 --- In [EMAIL PROTECTED] ups.com, aceoohay pauls@ wrote:
 
  Jason:
  
  I don't think that would get me what I need. 
  
  Unfortunately the thing I want to do is determine if the 
textAlign 
  property was explicitly set in the mxml. If it is set in the 
mxml, 
 I 
  will leave it be, otherwise, I may change it.
  
  Thanks for the input though.
  
  Paul
  
  --- In [EMAIL PROTECTED] ups.com, jmfillman jmfillman@ wrote:
  
   Paul,
   
   Off the top of my head, I can't think of any way to 
inheritantly 
   determine whether or not the default has been changed.
   
   What I would suggest is setting a boolean variable, and then 
  whenever 
   in your code you modify the textAlign property, change the 
 variable 
   so you can check against it going forward.
   
   Jason
   
   --- In [EMAIL PROTECTED] ups.com, aceoohay pauls@ wrote:
   
Jason:

That works great. Thanks for the info.

That still leaves one question, 

Is there a way of telling if the textAlign attribute is at 
its 
default (left) state or was it set in the mxml (or 
   programmatically) 
to left?

What I am trying to do is override default behavior in my 
  extended 
TextInput, but if someone actually specifies textAlign=left 
I 
don't want to override that.

Paul

--- In [EMAIL PROTECTED] ups.com, jmfillman jmfillman@ 
 wrote:

 Paul,
 
 I believe that the answer to your original question is that 
 you 
need 
 to use setStyle().
 
 For example:
 
 mx:TextInput id=myTextInput /
 
 private function textAlign(): void{
 myTextInput. setStyle( textAlign , center);
 }
 
 Jason
 --- In [EMAIL PROTECTED] ups.com, aceoohay pauls@ 
wrote:
 
  Well I found the answer, but I have another question or 
two.
  
  The answer is this.nonInheritingS tyles.textAlign.
  
  One new question is how can I tell whether this value is 
 the 
 default 
  value, or a value set by the mxml?
  
  If I change the value during run time, it doesn't seem to 
  honor 
the 
  new value. How can I go about making this happen?
  
  Paul
  
  --- In [EMAIL PROTECTED] ups.com, aceoohay pauls@ 
 wrote:
  
   I am trying to extend the TextInput class and one thing 
I 
would 
  like 
   to do is check the current value of the textAlign 
  attribute, 
and 
   change it if needed.
   
   I access the other attributes that I need using the 
 syntax 
   this.attributeName such as this.maxChars, I cannot, 
 however 
 access 
   this.textAlign. The compiler barfs with error 1119 
Access 
  of 
  possibly 
   undefined property...
   
   It also doesn't appear in the intellisense for 
the this 
keyword 
  in 
   my extended class. It does appear in the intellisense 
for 
  the 
   mx:TextInput tag.
   
   Any ideas?
   
   Paul
  
 

   
  
 






  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Where did the value go?

2008-02-22 Thread Sherif Abdou
maybe try event.currentTarget.
and how are you calling selectSlide if it is private or is that a mistake?

- Original Message 
From: justSteve [EMAIL PROTECTED]
To: flexcoders flexcoders@yahoogroups.com
Sent: Friday, February 22, 2008 4:05:30 PM
Subject: [flexcoders] Where did the value go?

I have a datagrid that should send it's selectItem value to a detail form.

mx:DataGrid
selectedItem= {selectedSlide} 
change=selectSlide (event.target. selectedItem as Slide)
dataProvider= {slides}  

Placing a breakpoint on the change property and observing the
event.target. selectedItem value shows the event is carrying the
expected info. But when execution reaches the handler:

public var selectedSlide: Slide;
private function selectSlide( pSlide:Slide) :void
{
selectedSlide = pSlide ; // pSlide is now null.
dispatchEvent( new Event(SELECT, true));
}

the param is null. How do I go about figuring out where my error is? I
reason that if there's something wrong with how I've typed 'Slide' I'd
get a compile-time error.

many thankx
--steve...




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] application exit event?

2008-02-22 Thread Sherif Abdou
you would probably need to use some javascript, and detect it from there


- Original Message 
From: Maciek Sakrejda [EMAIL PROTECTED]
To: flexcoders flexcoders@yahoogroups.com
Sent: Friday, February 22, 2008 6:22:42 PM
Subject: [flexcoders] application exit event?

I need to perform some cleanup when the user exits the application
(i.e., closes the page in which the application is embedded). Is there
an event I can listen for? I've tried Event.REMOVED, FlexEvent.REMOVE,
and Event.REMOVED_ FROM_STAGE, but none of those seem to fire targetting
the actual application object. Any ideas?
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso. com





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] what is the best way to refresh datagrid ?

2008-02-22 Thread Sherif Abdou
validateList(), call it from dataGrid or just try doing a refresh on the 
dataProvier


- Original Message 
From: annouss79 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 22, 2008 5:53:42 PM
Subject: [flexcoders] what is the best way to refresh datagrid ?

i'm using Flex,hibernate and FDS.

1) i get an object 'user' from database:
userHibernateServic e.fill(usersList , flex:hql, from Users u where
u.userId = ?,paramMap) ;

2) then i'm filling datagrid by user's offers :
usertest = usersList.getItemAt (0) as Users;
offersList = usertest.offres;
mx:DataGrid id=dgOffers dataProvider= {offersList} 

when i add a new offer i want find the best way to refresh the
datagrid in order to show to new record too.

thx for help.





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] embedded background image not loading

2008-02-21 Thread Sherif Abdou
try overriding the measureHeight and measuredWidth and return some number and 
see if that works


- Original Message 
From: Fidel Viegas [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 21, 2008 11:32:06 AM
Subject: Re: [flexcoders] embedded background image not loading

On 2/21/08, Dsd Sds [EMAIL PROTECTED] com wrote:

 that didn't work either:
 var img:imgcls= new imgcls() ;
 setStyle(backgroun dImage,img) ;

This is what I meant:

package {
import flash.display. Bitmap;

import mx.containers. HBox;

public class Hbox1 extends HBox{

[Embed(source= SkyBackground. jpg)]
[Bindable]
public var imgcls:Class;

public function Hbox1():void {
setStyle(backgroun dImage,imgcls) ;
}
}

All the best,

Fidel.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] How to retrieve out data from first Components into second Components?

2008-02-21 Thread Sherif Abdou
you can do mx:Binding source=com01.whateverNAMEofTexTfield.text 
destination=same/
if the textField is protected then just create a getter

- Original Message 
From: flexawesome [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 21, 2008 10:59:34 AM
Subject: [flexcoders] How to retrieve out data from first Components into 
second Components?


Hey there,

I was working on this and can't figure out how to read out the data
from com01 and pass it into com02

com01 and com02 contents a text field for each, how can I get the
string in com01 from com02?

You could see the sample code here:

http://ted.adobe. privatepaste. com/b17ftMBAXd

Thanks for your comments

Have a nice day





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Cancelling Accordion change

2008-02-21 Thread Sherif Abdou
u need to do stopImmedatePropagation


- Original Message 
From: guitarguy555 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 21, 2008 2:42:46 PM
Subject: [flexcoders] Cancelling Accordion change

I have an accordion control and I want to cancel moving to the next 
accordion pane if my controls on the currently selected pane are in an 
invalid state. 

The Accordion container uses the IndexChangedEvent which does not have 
it's cancelable property set to true, so I cannot call .preventDefault 
to stop this.

Has anybody else out there attempted something like this?

Thanks





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Circle Canvas

2008-02-21 Thread Sherif Abdou
I Think you need to try the mask property, read up on it. 


- Original Message 
From: Swamy Nathan [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 21, 2008 10:24:00 PM
Subject: Re: [flexcoders] Circle Canvas

i want to create the circle shaped canvas. to drag and drop the images to 
this

in that canvas, when i drag an image suddenly open a properties panel of image. 
i.e color changes and some other properties.

i mean the circle shaped canvas is my workspace. to drag and drop the images to 
it...




On Thu, Feb 21, 2008 at 12:49 PM, Gordon Smith [EMAIL PROTECTED] com wrote:

Can you explain more what you mean by the Circle Shape Canvas?
 
- Gordon




From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of 
Swamy Nathan
Sent: Wednesday, February 20, 2008 11:01 PM
To: [EMAIL PROTECTED] oups.com; [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Circle Canvas


Hi Folks,

I am swaminathan, and am new to flex env...

i want to create the Circle Shape Canvas. How can i ?

Please help me...

-- 
Thanks  Regards
Swaminathan. M 



-- 
Thanks  Regards
Swaminathan. M 



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Drag n Drop Tile List to Canvas

2008-02-21 Thread Sherif Abdou
there is an example of that in flex Documentation


- Original Message 
From: Swamy Nathan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; flexcoders@yahoogroups.com
Sent: Thursday, February 21, 2008 10:34:03 PM
Subject: [flexcoders] Drag n Drop Tile List to Canvas

Hi Folks, 

Can any one please help me to drag and drop of tile list images to Canvas



-- 
Thanks  Regards
Swaminathan. M 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] do you need CS Degree to get a job?

2008-02-20 Thread Sherif Abdou
wow lots of opinions in here. Thanks it gives me a better idea. 


- Original Message 
From: Daniel Freiman [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 20, 2008 10:53:06 AM
Subject: Re: [flexcoders] do you need CS Degree to get a job?

Well I said it, so I don't think you have to apologize to Matt if I have his 
job description wrong.

- Dan


On Wed, Feb 20, 2008 at 11:47 AM, Jeffry Houser [EMAIL PROTECTED] com wrote:


With all due respects to Matt and Dan...
I have no idea how to judge Matt as an authoritative sort on the 
process of getting a job or hiring people. Does a project manager's 
responsibility at Adobe involve hiring people?

I would have guessed that Adobe was so big, product managers would 
only deal with programming managers on high level issues, not the 
actual programmers.

I could be wrong.


Daniel Freiman wrote:
 
 3. Matt Chotin is a project manager at Adobe and he posted his response 
 very quickly. There's no more authoritative source (although there are 
 some equally as authoritative sources) to answer the question as it was 
 originally posed.
 
 - Dan Freiman


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







  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] why is measureHeight in ApplicationBackground 8?

2008-02-19 Thread Sherif Abdou
anyone?


- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 19, 2008 12:00:26 AM
Subject: [flexcoders] why is measureHeight in ApplicationBackground 8?

 


in 
import mx.skins.halo. ApplicationBackg round;
 
/**
* @private
*/ 
override public function get measuredHeight( ):Number
{
return 8;
}
 
why 8? or where did that number come from. Thanks



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. 



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] The width change works in Flash CS3 but not in Flex

2008-02-19 Thread Sherif Abdou
way too early to be setting that stuff in the consturctor, u need to override 
the updateDisplayList and do it there


- Original Message 
From: dsds99 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 19, 2008 7:08:37 AM
Subject: [flexcoders] The width change works in Flash CS3 but not in Flex

// ActionScript file
package{

import mx.core.UIComponent ;

public class Tint extends UIComponent{
public function Tint():void{
graphics.beginFill( 0x9fe9c9, 1);
graphics.drawRect( 0,0,100,100) ;
width=300;

}

}
}





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Cannot embed Flash9 symbols

2008-02-19 Thread Sherif Abdou
file wont open and it saves as a word document


- Original Message 
From: Paul Decoursey [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 19, 2008 11:58:52 AM
Subject: [flexcoders] Cannot embed Flash9 symbols

Ok, I'm loosing my mind here.  I think that there might be a problem with my 
Flash app, but I need confirmation. ..  I've exhausted every other avenue.




I have this fla(http://client. devilsworkbook. com/assets2. fla) generating 
this swf (http://client. devilsworkbook. com/assets2. swf) and I'm trying to 
embed this symbol (BestBuyCar).


[Embed(source=../assets/assets2. swf, symbol=BestBuyCar)]




The error I get is that it cannot find the symbol.  I've tried numerous 
methods, I've tried the Flex Component Kit, I've tried cursing at the 
computer... I have not tried reinstalling Flash yet(the DVDs are not with me).  
Can anyone either tell me what is wrong with my code or verify that my swf is 
muxed???


Thanks,


Paul





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Re: Alternate row color of DataGridColumn

2008-02-19 Thread Sherif Abdou
i will look at it over the weekend, but my guess is you have to switch our the 
stuff in the drawRowBackground, drawColumnBackground
and drawRowGraphics to make it work.


- Original Message 
From: danish909 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 19, 2008 1:00:20 AM
Subject: [flexcoders] Re: Alternate row color of DataGridColumn

Alex

Thanks for your response. You can find the image at the following url.

http://i266. photobucket. com/albums/ ii270/m_javed/ example.jpg

Danish

--- In [EMAIL PROTECTED] ups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Do you have a picture of what you want?
 
 
 
  _ _ __
 
 From: [EMAIL PROTECTED] ups.com 
[mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Danish Tehseen
 Sent: Monday, February 18, 2008 6:51 AM
 To: [EMAIL PROTECTED] ups.com
 Subject: [flexcoders] Alternate row color of DataGridColumn
 
 
 
 DataGrid alternate item's color can be set by datagrid's
 alternatingItemColo rs property, but is there a way to change 
alternating
 item color of DataGridColumn? There is a case where i have to set
 different alternate row colors to different DataGridColumn. If not
 possible in DataGrid, is it possible in AdvanceDataGrid control.
 
 Thanks  Regards,
 
 Danish
 
  _ _ _ _ _ _
 Looking for last minute shopping deals? 
 Find them fast with Yahoo! Search.
 http://tools. search.yahoo. com/newsearch/ category. php?
category=shopping
 http://tools. search.yahoo. com/newsearch/ category. php?
category=shopping






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Cannot embed Flash9 symbols

2008-02-19 Thread Sherif Abdou
All right so i hope i understood what your saying, what you need to do is bring 
the Car and the Sign to the Stage, Hit F8 and convert both of them to 
Symbols/Graphics and then export them and they should work. I tried that and i 
am able to embed it in flex App.


- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 19, 2008 12:14:44 PM
Subject: Re: [flexcoders] Cannot embed Flash9 symbols

file wont open and it saves as a word document


- Original Message 
From: Paul Decoursey [EMAIL PROTECTED] net
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 19, 2008 11:58:52 AM
Subject: [flexcoders] Cannot embed Flash9 symbols


Ok, I'm loosing my mind here.  I think that there might be a problem with my 
Flash app, but I need confirmation. ..  I've exhausted every other avenue. 




I have this fla(http://client. devilsworkbook. com/assets2. fla) generating 
this swf (http://client. devilsworkbook. com/assets2. swf) and I'm trying to 
embed this symbol (BestBuyCar).


[Embed(source=../assets/assets2. swf, symbol=BestBuyCar)]




The error I get is that it cannot find the symbol.  I've tried numerous 
methods, I've tried the Flex Component Kit, I've tried cursing at the 
computer... I have not tried reinstalling Flash yet(the DVDs are not with me).  
Can anyone either tell me what is wrong with my code or verify that my swf is 
muxed???


Thanks,


Paul







Never miss a thing. Make Yahoo your homepage. 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Cannot embed Flash9 symbols

2008-02-19 Thread Sherif Abdou
they were not symbols when i opened the file, i am not familiar with flash 
but they were movieClips and not Graphics which is what you need.


- Original Message 
From: Paul Decoursey [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 19, 2008 1:26:33 PM
Subject: Re: [flexcoders] Cannot embed Flash9 symbols

They are symbols already are they not?  Anyway I think that my Flash is messed 
up.  I'm having trouble with other timeline based swfs as well, where nothing 
appears when loaded.


Paul


On Feb 19, 2008, at 12:37 PM, Sherif Abdou wrote:


All right so i hope i understood what your saying, what you need to do is bring 
the Car and the Sign to the Stage, Hit F8 and convert both of them to 
Symbols/Graphics and then export them and they should work. I tried that and i 
am able to embed it in flex App.


- Original Message 
From: Sherif Abdou [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 19, 2008 12:14:44 PM
Subject: Re: [flexcoders] Cannot embed Flash9 symbols




file wont open and it saves as a word document


- Original Message 
From: Paul Decoursey [EMAIL PROTECTED] net
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 19, 2008 11:58:52 AM
Subject: [flexcoders] Cannot embed Flash9 symbols


Ok, I'm loosing my mind here.  I think that there might be a problem with my 
Flash app, but I need confirmation. ..  I've exhausted every other avenue.




I have this fla(http://client. devilsworkbook. com/assets2. fla) generating 
this swf (http://client. devilsworkbook. com/assets2. swf) and I'm trying to 
embed this symbol (BestBuyCar).


[Embed(source=../assets/assets2. swf, symbol=BestBuyCar)]




The error I get is that it cannot find the symbol.  I've tried numerous 
methods, I've tried the Flex Component Kit, I've tried cursing at the 
computer... I have not tried reinstalling Flash yet(the DVDs are not with me).  
Can anyone either tell me what is wrong with my code or verify that my swf is 
muxed???


Thanks,


Paul







Never miss a thing. Make Yahoo your homepage.





Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. 





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] why is measureHeight in ApplicationBackground 8?

2008-02-19 Thread Sherif Abdou
so does that get changed later? Since the backgroundImage seems to get fully 
expanded no matter what number is the measureWidth or height is. 


- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 19, 2008 12:38:53 PM
Subject: RE: [flexcoders] why is measureHeight in ApplicationBackground 8?

It could be any non-zero number.  I guess somebody liked 8.
 



From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of Sherif Abdou
Sent: Tuesday, February 19, 2008 8:54 AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] why is measureHeight in ApplicationBackgrou nd 8?
 
anyone?
- Original Message 
From: Sherif Abdou [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 19, 2008 12:00:26 AM
Subject: [flexcoders] why is measureHeight in ApplicationBackgrou nd 8?


in 
import mx.skins.halo. ApplicationBackg round;
 
/**
* @private
*/ 
override public function get measuredHeight( ):Number
{
return 8;
}
 
why 8? or where did that number come from. Thanks
 



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. 
 
 



Never miss a thing. Make Yahoo your homepage. 



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Cannot embed Flash9 symbols

2008-02-19 Thread Sherif Abdou
?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical 
creationComplete=initApp()
mx:Script
![CDATA[
import mx.core.UIComponent;
import mx.events.CalendarLayoutChangeEvent;
import mx.controls.Image;
[Bindable]
[Embed(source=assets2.swf,symbol=BestBuyCar)]
public var myLogo:Class;
public function initApp():void{
}
]]
/mx:Script
mx:Button skin={myLogo}/
/mx:WindowedApplication
assets2 is in root so ya u could add it in a forder but this works and i tried 
it


- Original Message 
From: Paul Decoursey [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 19, 2008 3:18:42 PM
Subject: Re: [flexcoders] Cannot embed Flash9 symbols

What is bothering me more is this... I have reinstalled Flash CS3, reinstalled 
Flex 2 and all the hotfixes, reinstalled the Flex Component Kit and followed 
the directions for it 10 times now and it does not work.  I cannot load any of 
the components that Flash is outputting. I'm getting very frustrated and I have 
no other ideas of what might be happening.  I've also tried it in Flex 3 to no 
avail, which is leading me to believe that the issue is int he swfs and swcs 
that Flash is generating.


Does anyone have any clue? I've wasted a day on this, and I can't in good 
conscious bill my client for this time.



Paul




On Feb 19, 2008, at 3:11 PM, Paul Decoursey wrote:


How do you access in Flex then?  This still doesn't work for me either.


Paul


On Feb 19, 2008, at 2:39 PM, Sherif Abdou wrote:


BestBuyLogo
BestBuyCar


- Original Message 
From: Paul Decoursey [EMAIL PROTECTED] net
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 19, 2008 2:21:51 PM
Subject: Re: [flexcoders] Cannot embed Flash9 symbols


Now I'm totally lost.  You can't export a Graphic for actionscript.


Can you send me the file you altered and got to work?




When I open the file I posted the assets I'm looking at are Symbols, they are 
MovieClips and they are setup to be exported in the SWF.  If I roll back to 
target AS2 everything works, but I need AS3 for some of the other assets I will 
be exporting that are not in the file I posted.


Paul






On Feb 19, 2008, at 1:38 PM, Sherif Abdou wrote:


they were not symbols when i opened the file, i am not familiar with flash 
but they were movieClips and not Graphics which is what you need.


- Original Message 
From: Paul Decoursey [EMAIL PROTECTED] net
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 19, 2008 1:26:33 PM
Subject: Re: [flexcoders] Cannot embed Flash9 symbols


They are symbols already are they not?  Anyway I think that my Flash is messed 
up.  I'm having trouble with other timeline based swfs as well, where nothing 
appears when loaded.


Paul


On Feb 19, 2008, at 12:37 PM, Sherif Abdou wrote:


All right so i hope i understood what your saying, what you need to do is bring 
the Car and the Sign to the Stage, Hit F8 and convert both of them to 
Symbols/Graphics and then export them and they should work. I tried that and i 
am able to embed it in flex App.


- Original Message 
From: Sherif Abdou [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 19, 2008 12:14:44 PM
Subject: Re: [flexcoders] Cannot embed Flash9 symbols




file wont open and it saves as a word document


- Original Message 
From: Paul Decoursey [EMAIL PROTECTED] net
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 19, 2008 11:58:52 AM
Subject: [flexcoders] Cannot embed Flash9 symbols


Ok, I'm loosing my mind here.  I think that there might be a problem with my 
Flash app, but I need confirmation. ..  I've exhausted every other avenue.




I have this fla(http://client. devilsworkbook. com/assets2. fla) generating 
this swf (http://client. devilsworkbook. com/assets2. swf) and I'm trying to 
embed this symbol (BestBuyCar).


[Embed(source=../assets/assets2. swf, symbol=BestBuyCar)]




The error I get is that it cannot find the symbol.  I've tried numerous 
methods, I've tried the Flex Component Kit, I've tried cursing at the 
computer... I have not tried reinstalling Flash yet(the DVDs are not with me).  
Can anyone either tell me what is wrong with my code or verify that my swf is 
muxed???


Thanks,


Paul







Never miss a thing. Make Yahoo your homepage.





Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. 







Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. 







Never miss a thing. Make Yahoo your homepage.  assets2.swfassets2.fla







  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

[flexcoders] do you need CS Degree to get a job?

2008-02-19 Thread Sherif Abdou
A bit off-topic but I was just wondering since i have no reminescense of this 
and their seems to be a lot of programmers on here  I thought I would ask this 
question. Do you actually need some sort of CS degree or Computer Related 
degree to get a job say in programming Web Applications or getting a Job at 
Adobe or MSFT or Google. I have a degree in Molecular Biology with a Chem 
Minor. I am Self-Taught so let me here some stories. Thanks.


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Re: Extending DateField...

2008-02-18 Thread Sherif Abdou
i would just use getters/setters i think that is the only way

public function set myProperty(value:Object):void{
textInput.someProperty=value;
}


- Original Message 
From: aceoohay [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 18, 2008 5:18:42 PM
Subject: [flexcoders] Re: Extending DateField...

Sherif:

Thanks, this gets me part way there.

What I created was;

override protected function createChildren( ):void
{
super.createChildre n();
removeChild( textInput) ;

if(textInput)
{
textInput = new ValidatedTextInput( );
addChild(textInput) ;
}
}

This actually calls my component ValidateTextInput( ) and does 
validation.

The reason I say part way, is that I have added a number of 
properties to my component ValidateTextInput that I would like to 
become visible in my new DateField's mxml definition. 

Any Idea on how to do this?

Paul
--- In [EMAIL PROTECTED] ups.com, Sherif Abdou [EMAIL PROTECTED] .. 
wrote:

 try doing this, extend the DataField, override the textInput in 
the createChildren
 override protected function createChildren( ):void{
 super.createChildre n();
 removeChild( textInput) ;
 if(textInput) {
 textInput = new TextInput();
 textInput.width= 100;
 textInput.height= 100;
 addChild(textInput) ;
 }
 }
 
 
 
 - Original Message 
 From: aceoohay [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] ups.com
 Sent: Monday, February 18, 2008 11:21:13 AM
 Subject: [flexcoders] Re: Extending DateField...
 
 I thought I would restate this question if for no other reason 
than to 
 pop it to the top of the list.
 
 Is there a way of changing the TextInput component that the 
DateField 
 component uses to my own TextInput type component?
 
 Paul
 
 --- In [EMAIL PROTECTED] ups.com, aceoohay pauls@ wrote:
 
  I have extended the TextInput class. Some of the features I have 
 added 
  include data validation, of which date validation is one.
  
  In some cases I would like to use the DateField to get dates. I 
 always 
  make the date field editable, I would like to reuse my extended 
  TextInput component by having the DatefField call that instead 
of 
 the 
  standard TextInput component.
  
  Any ideas on how to do this?
  
  Paul
 
 
 
 
 
 
 
 _ _ _ _ _ _
 ___
 Looking for last minute shopping deals? 
 Find them fast with Yahoo! Search. 
http://tools. search.yahoo. com/newsearch/ category. php?
category=shopping






  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Re: Extending Tree component

2008-02-18 Thread Sherif Abdou
off the flex documentation
* pBecause of the way data to a Tree control is structured, 
* the Tree control handles drag and drop differently from the other list-based 
controls. 
* For the Tree control, the event handler for the codedragDrop/code event 
* only performs an action when you move or copy data in the same Tree control, 
* or copy data to another Tree control. 
* If you drag data from one Tree control and drop it onto another Tree control 
* to move the data, the event handler for the codedragComplete/code event 
* actually performs the work to add the data to the destination Tree control, 
* rather than the event handler for the dragDrop event, 
* and also removes the data from the source Tree control. 
* This is necessary because to reparent the data being moved, 
* Flex must remove it first from the source Tree control./p

Is this what you were sort of asking?



- Original Message 
From: Rafael Faria [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 18, 2008 5:20:03 PM
Subject: [flexcoders] Re: Extending Tree component

you mean showDropFeedback?

Another problem im having is, whenever you try to drop from one tree
to another, the event DRAG_COMPLETE or DRAG_EXIT does not works. Any
explanation?

Alex?

--- In [EMAIL PROTECTED] ups.com, Sherif Abdou [EMAIL PROTECTED] .. wrote:

 yes just use a style on it to hide it or just remove it
 dropIndicatorSkin= {mx.skins. ProgrammaticSkin }
 or call showFeedBack( ) and hideFeedback( )
 
 
 
 - Original Message 
 From: Rafael Faria rafaelfaria. [EMAIL PROTECTED] .
 To: [EMAIL PROTECTED] ups.com
 Sent: Monday, February 18, 2008 4:37:17 PM
 Subject: [flexcoders] Re: Extending Tree component
 
 Nobody?
 
 --- In [EMAIL PROTECTED] ups.com, Rafael Faria
 rafaelfaria. grupos@ . wrote:
 
  I'm extending the Tree component and i have had some great progress
  with it.
  
  Somethings still bug me like the place you will drop the item.
  Whenever you drag an item, a thick black line show marking where will
  be drop it. The thing is, sometimes i'm positioning the element over
  the element i want to drop and the line is still on the item above
it. 
  
  The line i'm mentioning is this one: http://www.rafaelfa
ria.net/tree. png
  
  Is there any way to controle this line? I mean, is there any way to
  choose exactly the item i want to drop it?
  
  Thanks
 
 
 
 
 
 
 
 _ _ _ _ _ _
 Never miss a thing. Make Yahoo your home page. 
 http://www.yahoo. com/r/hs






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] on validateNow() and previous values

2008-02-18 Thread Sherif Abdou
why are we calling validate now? and if you dont want scroll in the canvas just 
turn them off and the panel should handle them

- Original Message 
From: callistachan [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 18, 2008 11:03:20 PM
Subject: [flexcoders] on validateNow() and previous values

hi, since the last post i made on my previous thread was not answered,
i'll post the last issue i got :)

given roughly (in my mxml file):

hdividedbox dividerRelease= some_function( )
panel id=panel1 width=65% height=100% 
canvas id=canvas1 
panel id=child_1 /
...
panel id=child_n /
/canvas
/panel

panel id=panel2 width=15% height=100% 
/panel
/hdividedbox

when i drag hdividedbox, i enter some_function( ) and i am supposed to
make sure that panel1 resizes after that drag... BUT when i call
validateNow( ) for canvas1 (because the scrollbars appear here and not
in the panel), the dimensions i get are the previous dimensions
instead of the current. then if i drag again, i still get the
previous. am i missing something?

any help would be seriously appreciated. .. been dealing with this
problem for over a week now :(





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] on validateNow() and previous values (w/ image links)

2008-02-18 Thread Sherif Abdou
where is the link?


- Original Message 
From: Lee [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 18, 2008 11:54:17 PM
Subject: Re: [flexcoders] on validateNow() and previous values (w/ image links)

i've uploaded some images (which i will have to take down later on...) to 
demonstrate what i mean... really hoping for help... thanks!

image1 (please click here)
-- this is the initial state

image2 (please click here)
-- first drag. you will notice that the panel inside has not resized...

image1 (please click here)
-- next drag. you will notice that the panel inside has resized BUT the size 
it resized to is the dimensions in image 2 after the first drag...

that shouldn't happen. in image 2, the panel should resize and go all the way 
to the divider as should image 3. hoping for help again, thanks!!

 
May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16. livejournal. com
Multiply: http://callie16. multiply. com



- Original Message 
From: Lee callistachan@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 19, 2008 1:36:02 PM
Subject: Re: [flexcoders] on validateNow( ) and previous values


it's not that... when the hdividedbox' s divider gets dragged, the child 
component should follow and resize but since i'm not using percentage for width 
and height in the child component (due to computation needs), it doesn't follow 
suit and i have to force the component's dimension to refresh manually.

at the moment, the child component sees the previous dimension instead of the 
current even when i use validateNow. i do it on the canvas because the canvas 
contains one or several child components (draggable panels). if the panels are 
dragged and the canvas does not resize to the current dimensions and these 
panels reach the edge of the canvas, a scrollbar appears on both x- and y- 
axes. that's why i need to see the current dimensions once the divider is 
dragged...

 

May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16. livejournal. com
Multiply: http://callie16. multiply. com



- Original Message 
From: Sherif Abdou [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 19, 2008 1:14:18 PM
Subject: Re: [flexcoders] on validateNow( ) and previous values



why are we calling validate now? and if you dont want scroll in the canvas just 
turn them off and the panel should handle them

- Original Message 
From: callistachan callistachan@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Monday, February 18, 2008 11:03:20 PM
Subject: [flexcoders] on validateNow( ) and previous values


hi, since the last post i made on my previous thread was not answered,
i'll post the last issue i got :)

given roughly (in my mxml file):

hdividedbox dividerRelease= some_function( )
panel id=panel1 width=65% height=100% 
canvas id=canvas1 
panel id=child_1 /
...
panel id=child_n /
/canvas
/panel

panel id=panel2 width=15% height=100% 
/panel
/hdividedbox

when i drag hdividedbox, i enter some_function( ) and i am supposed to
make sure that panel1 resizes after that drag... BUT when i call
validateNow( ) for canvas1 (because the scrollbars appear here and not
in the panel), the dimensions i get are the previous dimensions
instead of the current. then if i drag again, i still get the
previous. am i missing something?

any help would be seriously appreciated. .. been dealing with this
problem for over a week now :(







Never miss a thing. Make Yahoo your homepage. 





Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. 





Never miss a thing. Make Yahoo your homepage. 



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

[flexcoders] why is measureHeight in ApplicationBackground 8?

2008-02-18 Thread Sherif Abdou
 

in 
import mx.skins.halo.ApplicationBackground;

/**
* @private
*/ 
override public function get measuredHeight():Number
{
return 8;
}

why 8? or where did that number come from. Thanks


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] How do i get rid of the white box?

2008-02-17 Thread Sherif Abdou
well it is a protected variable so you need to extend whatever componenet your 
working on, you can just remove it in validateDisplayList or just remove it 
totally
override public function validateDisplayList():void{
super.validateDisplayList();
//we really dont need to be running this everytime we invalidate so we do it 
only once
//we hide all the scrolls and the boxes, reason we cant exclude them is we need 
information
//about the positions and what not
if(firstTime){

whiteBox.visible=false;
firstTime=false;
}
}



- Original Message 
From: Vivian Richard [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, February 17, 2008 1:21:39 AM
Subject: Re: [flexcoders] How do i get rid of the white box?



   So!!! How did you remove it. Please let me know!!!
   Thanks..





On Feb 16, 2008 3:03 PM, Sherif Abdou [EMAIL PROTECTED] com wrote:

never mind, i guess it is called whiteBox who woulda thought it would be that 
easy.



- Original Message 
From: Sherif Abdou [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Saturday, February 16, 2008 4:55:49 PM
Subject: [flexcoders] How do i get rid of the white box?


Picture is attatched, i have no idea what it is or how to get rid of it. Thanks



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. 





Looking for last minute shopping deals? Find them fast with Yahoo! Search. 





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] override not overriding????

2008-02-17 Thread Sherif Abdou
try overriding the getter too


- Original Message 
From: dbronk [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, February 17, 2008 9:59:56 AM
Subject: [flexcoders] override not overriding

I have a class hierarchy of classes as follows:

MyBaseTextInput extends TextInput
{
override public function set text(value:String) :void
{
// my base code here
}
}

MySpecialTextInput extends MyBaseTextInput
{
override public function set text(value:String) :void
{
// my special code here
}
}

Okay, in MySpecialTextInput I am overriding the set text function and
NOT calling super.text = value; So, why when I have
MySpecialTextInput on an mxml view does the set text in
MyBaseTextInput get called? This is causing me to copy/paste the code
from MyBaseInputText into MySpecialTextInput, modifying as needed, and
then have MySpecialTextInput extend TextInput instead of
MyBaseTextInput. I REALLY HATE COPY/PASTE PROGRAMMING!

Can someone please shed some light on why the super class function is
being called even when I'm not calling super?

Thanks,
Dale





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

[flexcoders] Best Practice to override Styles?

2008-02-17 Thread Sherif Abdou
I am extending a comboBox and i need to set my own styles in it like 
arrowButtonWidth to 0, where is the best place to do that? Constructor?


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Re: resizing children of hdividedbox

2008-02-17 Thread Sherif Abdou
try FlexEvent.UPDATE_COMPLETE


- Original Message 
From: callistachan [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, February 17, 2008 9:09:38 PM
Subject: [flexcoders] Re: resizing children of hdividedbox

hi, anyone? :( it would help to know that if i have to listen to an
event, which one and where... or something... anything... again,
thanks... 

--- In [EMAIL PROTECTED] ups.com, Lee callistachan@ ... wrote:

 hi, i couldn't do that because the added component had computations
and if i used percent width/height, i was having problems finding the
dimensions needed for those computations. .. so the width and height
were set instead of the percent values... i know it would be better if
i used percentage values but... that's what happened... i can't do a
recode right now because there are just so many child components
(they're different views) so i have to find a solution (even a
temporary one) until i have time to do just that :) Any further help
will be appreciated :) Thanks!!!
 
 May God bless! 
 Lee 
 --
 Y!M : callistachan
 Blog: http://callie16. livejournal. com
 Multiply: http://callie16. multiply. com
 
 - Original Message 
 From: Tom Chiverton tom.chiverton@ ...
 To: [EMAIL PROTECTED] ups.com
 Sent: Wednesday, February 13, 2008 12:44:58 AM
 Subject: Re: [flexcoders] resizing children of hdividedbox
 
 
 On 
 Tuesday 
 12 
 Feb 
 2008, 
 callistachan 
 wrote:
  
 anyway, 
 when 
 i 
 do 
 drag 
 the 
 divider, 
 and 
 i 
 resize 
 the 
 component 
 i 
 added
  
 dynamically 
 to 
 panel1, 
 it 
 still 
 sees 
 the 
 original 
 dimensions 
 of
 
 Did 
 you 
 set 
 a 
 percentWidth 
 on 
 this 
 added 
 component 
 ?
 
 -- 
 Tom 
 Chiverton
 Helping 
 to 
 authoritatively 
 utilize 
 open-source 
 experiences
 on: 
 http://thefalken. livejournal. com
 
  * * * * 
 
 This 
 email 
 is 
 sent 
 for 
 and 
 on 
 behalf 
 of 
 Halliwells 
 LLP.
 
 Halliwells 
 LLP 
 is 
 a 
 limited 
 liability 
 partnership 
 registered 
 in 
 England 
 and 
 Wales 
 under 
 registered 
 number 
 OC307980 
 whose 
 registered 
 office 
 address 
 is 
 at 
 Halliwells 
 LLP, 
 3 
 Hardman 
 Square, 
 Spinningfields, 
 Manchester, 
 M3 
 3EB. 
 A 
 list 
 of 
 members 
 is 
 available 
 for 
 inspection 
 at 
 the 
 registered 
 office. 
 Any 
 reference 
 to 
 a 
 partner 
 in 
 relation 
 to 
 Halliwells 
 LLP 
 means 
 a 
 member 
 of 
 Halliwells 
 LLP. 
 Regulated 
 by 
 The 
 Solicitors 
 Regulation 
 Authority.
 
 CONFIDENTIALITY
 
 This 
 email 
 is 
 intended 
 only 
 for 
 the 
 use 
 of 
 the 
 addressee 
 named 
 above 
 and 
 may 
 be 
 confidential 
 or 
 legally 
 privileged. 
 If 
 you 
 are 
 not 
 the 
 addressee 
 you 
 must 
 not 
 read 
 it 
 and 
 must 
 not 
 use 
 any 
 information 
 contained 
 in 
 nor 
 copy 
 it 
 nor 
 inform 
 any 
 person 
 other 
 than 
 Halliwells 
 LLP 
 or 
 the 
 addressee 
 of 
 its 
 existence 
 or 
 contents. 
 If 
 you 
 have 
 received 
 this 
 email 
 in 
 error 
 please 
 delete 
 it 
 and 
 notify 
 Halliwells 
 LLP 
 IT 
 Department 
 on 
 0870 
 365 
 2500.
 
 For 
 more 
 information 
 about 
 Halliwells 
 LLP 
 visit 
 www.halliwells. com.
 
 
 --
 Flexcoders 
 Mailing 
 List
 FAQ: 
 http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
 Search 
 Archives: 
 http://www.mail- archive.com/ flexcoders% 40yahoogroups. com 
 Yahoo! 
 Groups 
 Links
 
 your 
 group 
 on 
 the 
 web, 
 go 
 to:
 
 
 http://groups. yahoo.com/ group/flexcoders /
 
 settings:
 
 
 Individual 
 Email 
 | 
 Traditional
 
 settings 
 online 
 go 
 to:
 
 
 http://groups. yahoo.com/ group/flexcoders /join
 
 
 (Yahoo! 
 ID 
 required)
 
 settings 
 via 
 email:
 
 
 mailto:flexcoders-digest@ yahoogroups. com 
 
 
 mailto:flexcoders-fullfeat [EMAIL PROTECTED] .com
 
 from 
 this 
 group, 
 send 
 an 
 email 
 to:
 
 
 flexcoders-unsubscr [EMAIL PROTECTED] com
 
 of 
 Yahoo! 
 Groups 
 is 
 subject 
 to:
 
 
 http://docs. yahoo.com/ info/terms/
 
 
 
 
 
 
 
 
 _ _ _ _ _ _
 Be a better friend, newshound, and 
 know-it-all with Yahoo! Mobile. Try it now. 
http://mobile. yahoo.com/ ;_ylt=Ahu06i62sR 8HDtDypao8Wcj9tA cJ






  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Re: resizing children of hdividedbox

2008-02-17 Thread Sherif Abdou
call the validationMethods when that happens, and you shouldnt use width and 
height if we keep assigning just use setActualSize


- Original Message 
From: Lee [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, February 17, 2008 9:23:50 PM
Subject: Re: [flexcoders] Re: resizing children of hdividedbox

hi, i remember that i tried using that but i can't seem to get the children 
(the components, that is) to get the dimensions of the parent... more like, i 
do get to reassign the width and height of the parent but the UI doesn't 
refresh to show the new dimensions.. . reminds me of caching for some reason...

 
May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16. livejournal. com
Multiply: http://callie16. multiply. com



- Original Message 
From: Sherif Abdou [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Monday, February 18, 2008 11:18:37 AM
Subject: Re: [flexcoders] Re: resizing children of hdividedbox


try FlexEvent.UPDATE_ COMPLETE


- Original Message 
From: callistachan callistachan@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Sunday, February 17, 2008 9:09:38 PM
Subject: [flexcoders] Re: resizing children of hdividedbox


hi, anyone? :( it would help to know that if i have to listen to an
event, which one and where... or something... anything... again,
thanks... 

--- In [EMAIL PROTECTED] ups.com, Lee callistachan@ ... wrote:

 hi, i couldn't do that because the added component had computations
and if i used percent width/height, i was having problems finding the
dimensions needed for those computations. .. so the width and height
were set instead of the percent values... i know it would be better if
i used percentage values but... that's what happened... i can't do a
recode right now because there are just so many child components
(they're different views) so i have to find a solution (even a
temporary one) until i have time to do just that :) Any further help
will be appreciated :) Thanks!!!
 
 May God bless! 
 Lee 
 --
 Y!M : callistachan
 Blog: http://callie16. livejournal. com
 Multiply: http://callie16. multiply. com
 
 - Original Message 
 From: Tom Chiverton tom.chiverton@ ...
 To: [EMAIL PROTECTED] ups.com
 Sent: Wednesday, February 13, 2008 12:44:58 AM
 Subject: Re: [flexcoders] resizing children of hdividedbox
 
 
 On 
 Tuesday 
 12 
 Feb 
 2008, 
 callistachan 
 wrote:
  
 anyway, 
 when 
 i 
 do 
 drag 
 the 
 divider, 
 and 
 i 
 resize 
 the 
 component 
 i 
 added
  
 dynamically 
 to 
 panel1, 
 it 
 still 
 sees 
 the 
 original 
 dimensions 
 of
 
 Did 
 you 
 set 
 a 
 percentWidth 
 on 
 this 
 added 
 component 
 ?
 
 -- 
 Tom 
 Chiverton
 Helping 
 to 
 authoritatively 
 utilize 
 open-source 
 experiences
 on: 
 http://thefalken. livejournal. com
 
  * * * * 
 
 This 
 email 
 is 
 sent 
 for 
 and 
 on 
 behalf 
 of 
 Halliwells 
 LLP.
 
 Halliwells 
 LLP 
 is 
 a 
 limited 
 liability 
 partnership 
 registered 
 in 
 England 
 and 
 Wales 
 under 
 registered 
 number 
 OC307980 
 whose 
 registered 
 office 
 address 
 is 
 at 
 Halliwells 
 LLP, 
 3 
 Hardman 
 Square, 
 Spinningfields, 
 Manchester, 
 M3 
 3EB. 
 A 
 list 
 of 
 members 
 is 
 available 
 for 
 inspection 
 at 
 the 
 registered 
 office. 
 Any 
 reference 
 to 
 a 
 partner 
 in 
 relation 
 to 
 Halliwells 
 LLP 
 means 
 a 
 member 
 of 
 Halliwells 
 LLP. 
 Regulated 
 by 
 The 
 Solicitors 
 Regulation 
 Authority.
 
 CONFIDENTIALITY
 
 This 
 email 
 is 
 intended 
 only 
 for 
 the 
 use 
 of 
 the 
 addressee 
 named 
 above 
 and 
 may 
 be 
 confidential 
 or 
 legally 
 privileged. 
 If 
 you 
 are 
 not 
 the 
 addressee 
 you 
 must 
 not 
 read 
 it 
 and 
 must 
 not 
 use 
 any 
 information 
 contained 
 in 
 nor 
 copy 
 it 
 nor 
 inform 
 any 
 person 
 other 
 than 
 Halliwells 
 LLP 
 or 
 the 
 addressee 
 of 
 its 
 existence 
 or 
 contents. 
 If 
 you 
 have 
 received 
 this 
 email 
 in 
 error 
 please 
 delete 
 it 
 and 
 notify 
 Halliwells 
 LLP 
 IT 
 Department 
 on 
 0870 
 365 
 2500.
 
 For 
 more 
 information 
 about 
 Halliwells 
 LLP 
 visit 
 www.halliwells. com.
 
 
 --
 Flexcoders 
 Mailing 
 List
 FAQ: 
 http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
 Search 
 Archives: 
 http://www.mail- archive.com/ flexcoders% 40yahoogroups. com 
 Yahoo! 
 Groups 
 Links
 
 your 
 group 
 on 
 the 
 web, 
 go 
 to:
 
 
 http://groups. yahoo.com/ group/flexcoders /
 
 settings:
 
 
 Individual 
 Email 
 | 
 Traditional
 
 settings 
 online 
 go 
 to:
 
 
 http://groups. yahoo.com/ group/flexcoders /join
 
 
 (Yahoo! 
 ID 
 required)
 
 settings 
 via 
 email:
 
 
 mailto:flexcoders-digest@ yahoogroups. com 
 
 
 mailto:flexcoders-fullfeat [EMAIL PROTECTED] .com
 
 from 
 this 
 group, 
 send 
 an 
 email 
 to:
 
 
 flexcoders-unsubscr [EMAIL PROTECTED] com
 
 of 
 Yahoo! 
 Groups 
 is 
 subject

Re: [flexcoders] List ItemRenderer woes

2008-02-16 Thread Sherif Abdou
don't forget to rap it in an xmlCollection
mx:XMLList id=optionValues 
root
node label=A/
node label=B/
/root
/mx:XMLList
mx:PopUpMenuButton id=selectedOption
dataProvider= {optionValues} 
labelField=@label showRoot=false /

OR
mx:XMLList id=optionValues 
node label=A/
node label=B/
/mx:XMLList
mx:PopUpMenuButton id=selectedOption
dataProvider= {optionValues} 
labelField=@label showRoot=false /


- Original Message 
From: Paul Andrews [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, February 16, 2008 5:41:15 AM
Subject: [flexcoders] List ItemRenderer woes

I am prepared for a Doh moment. Can anyone explain why uncommenting the 
creation complete handler stops the menu from working?

Paul

?xml version=1.0 encoding=utf- 8?
mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute 
mx:XMLList id=optionValues 
node label=A/
node label=B/
/mx:XMLList

mx:PopUpMenuButton id=selectedOption
dataProvider= {optionValues} 
labelField= @label /
!--creationComplet e=selectedOptio n.label=' B' /--
/mx:Application





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

[flexcoders] Stop Imports from disappearing

2008-02-16 Thread Sherif Abdou
How do i stop flex from organizing my imports. I have an include file and it 
uses CSSStyleDecleration and StyleManager and everytime I compile the main file 
just removes the imports for these two even though they are needed. THanks


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Prohibiting Old Chart from Displaying while new Chart renders

2008-02-16 Thread Sherif Abdou
can you do some sort of mockup file, you can always try to call any of the 
validation methods and see if that works


- Original Message 
From: Brad Bueche [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, February 16, 2008 3:12:13 PM
Subject: [flexcoders] Prohibiting Old Chart from Displaying while new Chart 
renders

I have a chart that, at year level, allows users to drill down into individual 
months.
 
The problem is that if the user drills down into march, then comes back up to 
the year level (via viewstack bread-crumb trail button), and then drills down 
into October, for a spilt second the march data will still be on the screen.  I 
have been knocking my head against the wall all day (on a weekend!) trying to 
prohibit the old data from continuing to show until the new data is rendered 
but I cant get anything to work.
 
Any ideas?
 
brad



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] How do i get rid of the white box?

2008-02-16 Thread Sherif Abdou
never mind, i guess it is called whiteBox who woulda thought it would be that 
easy.


- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, February 16, 2008 4:55:49 PM
Subject: [flexcoders] How do i get rid of the white box?

Picture is attatched, i have no idea what it is or how to get rid of it. Thanks



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders]Flex Charting - Export to PDF and Images

2008-02-16 Thread Sherif Abdou
try the ImageSnapshot class


- Original Message 
From: Eduardo Dias [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, February 16, 2008 9:40:34 PM
Subject: [flexcoders]Flex Charting - Export to PDF and Images

Is there any way with Flex Charting (or some 3rd party tool integrated with 
Flex) to output a FlexChart as a PDF or an image for inclusion in a report? 



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] OnClick event on tabnavigator

2008-02-15 Thread Sherif Abdou
you need to listen for a change Event which is the same


- Original Message 
From: Manish Sharma [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 15, 2008 4:47:39 AM
Subject: [flexcoders] OnClick event on tabnavigator

Hi
 
Please let me know if I can create any onclick event for the tab navigator.
 
Here is what I m looking for:
 
I have an application with three tabs. Whenever the user clicks on any tab say 
on tab 2 then I want to display a confirmation msg that he need to save the 
changes made in the tab 1 or they will be lost. If the user selects yes then he 
can move onto the next tab if no then he should stay on the first tab.
 
Thanks in advance for the help
 
Regards
Manish



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] I got the the value when using trace, but failed when make a comparison

2008-02-15 Thread Sherif Abdou
do e.toString()
private function initApp():void{
myString('OK');
}
private function myString(e:String):void{
if('OK' == e.toString()){
trace('here');
}
}



- Original Message 
From: Jati Putra [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 15, 2008 4:07:30 AM
Subject: [flexcoders] I got the the value when using trace, but failed when 
make a comparison

Dear All,
Please check this code, what is the problem?

AS3 :
public function validateLogin( e:String) :void{
trace(e);
if('OK' == e){
mx.controls. Alert.show( OK);
//navigateToURL( tujuan,'_ self');
}else{
mx.controls. Alert.show( FALSE);
//po.text=Username or Password WRONG;
}
}


MXML: 

mx:HTTPService id=login_srv url=http:// localhost/ flex/session. php 
method=POST result=validateLog in(String( event.result) )
mx:request
username{username_checked}/username
password{password_checked}/password
/mx:request
/mx:HTTPService


The trace value is OK but in the if statement the app always show alert in 
False.

Thanks



Looking for last minute shopping deals? Find them fast with Yahoo! Search.



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Re: Example of Object.isPrototypeOf ()

2008-02-15 Thread Sherif Abdou
you should not be using Prototypes in AS3, from what i understood the way it 
gets used is you can add properties on methods

private function mymethod():void{
//you can do something like thi
mymethod.yahooGroup=Flex Coders;

}

- Original Message 
From: Roscoe P Coltrane [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 15, 2008 12:03:49 PM
Subject: [flexcoders] Re: Example of Object.isPrototypeOf ()










  



What exactly does it mean when the Flex doco says:

This method returns true if the object is in the prototype chain of 

the object specified by the the Class parameter. What 

does prototype chain mean here? Sorry for my ignorance if this is 

a dumb question. And are you saying this is an obsolete method?



--- In [EMAIL PROTECTED] ups.com, Gordon Smith [EMAIL PROTECTED]  

wrote:



 Flex makes almost no use of AS3's old-style prototype-based 

inheritance;

 it uses the new class-based inheritance. If by descendant you 

mean

 instance of, use the 'is' operator:

  

 var b:Button = new Button();

 trace(b is UIComponent) ; // -- true

  

 Gordon Smith

 Adobe Flex SDK Team

 

  _ _ __

 

 From: [EMAIL PROTECTED] ups.com 

[mailto:[EMAIL PROTECTED] ups.com] On

 Behalf Of Roscoe P Coltrane

 Sent: Thursday, February 14, 2008 6:15 AM

 To: [EMAIL PROTECTED] ups.com

 Subject: [flexcoders] Example of Object.isPrototypeO f ()

 

 

 

 Could someone give me a working or semi-working example of 

how/when to 

 use isPrototypeOf( )? I was thinking that I could query an object 

and 

 if it was a descendent of another object, [the argument to 

 isPrototypeOf( )], the method would return true. Not so :) 

Obviously I 

 don't understand the usage of this method.

 

 Thanks,

 Roscoe








  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o{font-size:0;}
.MsoNormal{
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq{margin:4;}
--








  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] How do I procedurally select multiple items in a list control

2008-02-15 Thread Sherif Abdou
myList.selectedIndices=[0,1,2]; 


- Original Message 
From: hoytlee2000 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 15, 2008 10:16:01 PM
Subject: [flexcoders] How do I procedurally select multiple items in a list 
control

How do I procedurally select multiple items in a list control.

I have an xml file generated from a server-side script that I want to
use to preselect items in a list control (such as a simple list or
datagrid) Basically I am storing a user's selections in a database and
when the user returns to this page I want to display back what they
had previously set so they can modify their settings.

I can highlite the correct list item using the findString method but
I'm not sure how to actually select it (use a send event?) and how to
select multiple items (I have allowMultipleSelect ion set to true)

or is there a better way to do this?

I am new to flex, still learning stuff, and have traditionally used
php generated html for the data entry and editing side and flex for
the client side UI. Any help would be appreciated, I thought I'd try
to do this purely in flex.

be well,
Hoyt





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Re: meaning of the this AIR error message

2008-02-14 Thread Sherif Abdou
ya it works, maybe try Project--Clean.


- Original Message 
From: hworke [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 14, 2008 4:31:05 AM
Subject: [flexcoders] Re: meaning of the this AIR error message



Hi Sherif thanks a lot for your reply and also
for trying the code. I see the is a missing bracket.
But I guess I missed this when I copied it and
sent it to you guys. I checked my code and there
was nothing missing... It is possible that my
flex builder some how got corrupted!!! What exact
version are you using? I am using Molestone 4 Beta
3. Please do me another favor. Could you please
run the following code for me and tell me if it runs
fine and whether you can navigate through the view
stack using the two keys...

Regards 

 + + + + + +

?xml version=1.0 encoding=utf- 8?
mx:WindowedApplica tion xmlns:mx=http://www.adobe. com/2006/ mxml
width=100% height=100% 

mx:Script
![CDATA[
[Bindable]
public var st:String = http://www.adobe. com;
]]
/mx:Script

mx:Canvas width=100% height=100% 
mx:HBox width=100% height=100% 

mx:Panel width=18% height=100%  layout=absolute 
mx:Button x=24 y=52 label=index- 0
click=myVS. selectedIndex= 0/
mx:Button x=24 y=95 label=index- 1
click=myVS. selectedIndex= 1/
/mx:Panel
mx:ViewStack y=25 id=myVS height=100%  width=100% 
mx:Canvas width=100% height=100% 
mx:HTML id=myHTML location={st}  height=100% 
width=100% /
/mx:Canvas
mx:Canvas id=ancan height=100%  width=100% 
mx:Panel x=10 y=10 width=320 height=224
layout=absolute 
/mx:Panel
mx:Panel x=338 y=10 width=313 height=224
layout=absolute 
/mx:Panel
mx:Panel x=10 y=242 width=641 height=218
layout=absolute 
/mx:Panel 
/mx:Canvas
/mx:ViewStack
/mx:HBox 
/mx:Canvas

/mx:WindowedApplic ation

 + + + + + +

--- In [EMAIL PROTECTED] ups.com, Sherif Abdou [EMAIL PROTECTED] .. wrote:

 i am not getting any errors, i did notice ur missing a paranteses.
 mx:ViewStack id=myVS height=100%  width=80%
 mx:Canvas width=100% height=100% 
 mx:HTML id=myHTML location={st}  height=100%  width=100% /
 /mx:Canvas
 /mx:ViewStack 
 
 
 
 - Original Message 
 From: hworke [EMAIL PROTECTED] .
 To: [EMAIL PROTECTED] ups.com
 Sent: Tuesday, February 12, 2008 7:18:54 PM
 Subject: [flexcoders] meaning of the this AIR error message
 
 
 Hi,
 
 I was trying mx:HTML inside a viewstack and got this error
 message:
 
  = = = = = 
 
 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.controls: :[EMAIL PROTECTED] to mx.core.Container.
 
 Here is my code:
 
  = = = = = =
 
 mx:ViewStack id=myVS height=100%  width=80%
 mx:Canvas width=100% height=100% 
 mx:HTML id=myHTML location={st}  height=100%  width=100% /
 /mx:Canvas
 /mx:ViewStack 
 
  = = = = = ==
 
 What is the meaning of this error message and does it
 mean that we cannot put a mx:HTML inside a viewstack?
 
 Regards...
 
 
 
 
 
 
 _ _ _ _ _ _
 Looking for last minute shopping deals? 
 Find them fast with Yahoo! Search. 
http://tools. search.yahoo. com/newsearch/ category. php?category= shopping






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] fonts

2008-02-14 Thread Sherif Abdou
this is how you do it 
@font-face
{
src: url(assets/MyriadWebPro-Bold.ttf);
font-family: myriad;
font-style: normal;
font-weight: bold;
}
then in Label you would chos fontFamilty=myriad;


- Original Message 
From: learner [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 14, 2008 5:31:47 AM
Subject: [flexcoders] fonts

hi all ,
I have a very simple question..
to a label in my application i want to set a font other than verdana , arial or 
anything else that comes in flex builder's drop down..
I know its too dumb question.. but i may be too dumb to get its answer.. can 
somebody help me out with this

Regards
Ps




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] changing the rss to a data grid using the http service

2008-02-14 Thread Sherif Abdou
are u reassigning in actionScript or mxml?, i am guessing actionScript so drop 
the {} and use the result instead f lastResult


- Original Message 
From: leonpidgeon [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 14, 2008 10:31:22 AM
Subject: [flexcoders] changing the rss to a data grid using the http service

hi

i have a data grid which i have populated with an rss feed using this:

dataProvider= {E01RSSfeed. lastResult. rss.channel. item}

where E01RSSfeed is an http service and the datagrid is called 
LgeRSSgrid1 with two columns for pubDate and title. then i want to 
change the feed to E11RSSfeed but when i try to assign it as

LgeRSSGrid1. dataProvider = '{E11RSSFeed. lastResult. rss.channel. item}';

the datagrid just displays E11RSSFeed.lastResu lt.rss.channel. item in 
the two fields i have which are pubDate and title.

anyone have any idea what i am doing wrong or what i can change. i 
think it's just the display which is wrong as the clicking on the 
article takes you to one from the new rss feed.

thanks in advance

leon





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Is it possible to display Horizontal Scroll bar at the top

2008-02-14 Thread Sherif Abdou
create a custom one and just put this
override public function validateDisplayList():void{
super.validateDisplayList();
this.horizontalScrollBar.move(0,0);
}



- Original Message 
From: Nadeem Manzoor [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 14, 2008 2:08:58 PM
Subject: [flexcoders] Is it possible to display Horizontal Scroll bar at the top

Hello Guys

By default the horizontal Scroll bar is appeared at the bottom of container. I 
want it to be displayed on the top . Is it possible

Thanks

Nadeem Manzoor 



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Re: Editing TabNavigator children in actionscript

2008-02-14 Thread Sherif Abdou
why can;t you use the getChildren() or getChildAt() etc.. and just update it 
from the dataProvde


- Original Message 
From: danneri21 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 14, 2008 5:20:35 PM
Subject: [flexcoders] Re: Editing TabNavigator children in actionscript

Alright but how exactly would I access the children? Could you give me
an example?

--- In [EMAIL PROTECTED] ups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Keep variables referencing the children you add to the TabNav
 
 
 
  _ _ __
 
 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of danneri21
 Sent: Wednesday, February 13, 2008 2:32 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: [flexcoders] Editing TabNavigator children in actionscript
 
 
 
 Hi guys,
 
 I have a function which dynamically adds custom components (a beefed
 up datagrid basically) to a tabnavigator at runtime.
 
 Somewhere along the line I need to update the dataProvider of a single
 child in the tabnavigator.
 
 How would I go about doing this?






  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] HTTPService - POST problem

2008-02-14 Thread Sherif Abdou
add a fault listener and see if that does anything


- Original Message 
From: Rafael Faria [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 14, 2008 6:41:05 PM
Subject: [flexcoders] HTTPService - POST problem

any idea why the following code wont post any data?

var formValues:Object = {submit: 'submit'};
var submit:HTTPService = new HTTPService( );
submit.url = 'http://myurl. com/service';
submit.resultFormat = object;
submit.method = POST;
submit.addEventList ener(ResultEvent .RESULT,
function(e:ResultEv ent):void {
trace('result' );
});
submit.send( formValues) ;





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] fonts

2008-02-14 Thread Sherif Abdou
yes, they can be in a mx:style tag if u want


- Original Message 
From: learner [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 14, 2008 10:52:55 PM
Subject: Re: [flexcoders] fonts

so they need to be in css ?? 
will they be  embedded in output swf?


On Thu, Feb 14, 2008 at 7:29 PM, Sherif Abdou [EMAIL PROTECTED] com wrote:

this is how you do it 
@font-face
{
src: url(assets/MyriadWebPro -Bold.ttf);
font-family: myriad;
font-style: normal;
font-weight: bold;
}
then in Label you would chos fontFamilty=myriad;


- Original Message 
From: learner [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Thursday, February 14, 2008 5:31:47 AM
Subject: [flexcoders] fonts


hi all ,
I have a very simple question..
to a label in my application i want to set a font other than verdana , arial or 
anything else that comes in flex builder's drop down..
I know its too dumb question.. but i may be too dumb to get its answer.. can 
somebody help me out with this

Regards
Ps






Looking for last minute shopping deals? Find them fast with Yahoo! Search. 





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Re: Popup over a form

2008-02-13 Thread Sherif Abdou
well if i had to guess, your problem would be the parent since the TitleWindow 
wouldn't parent would not be a form since it does not get added to the form, so 
try PopUpManager.createPopUp(name/id of the Form,etc...). Try that


- Original Message 
From: markgoldin_2000 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 13, 2008 10:13:58 AM
Subject: [flexcoders] Re: Popup over a form

Here is my code:
var popupWindow: TitleWindow =
TitleWindow( PopUpManager. createPopUp( parent, className, true));
PopUpManager. centerPopUp( popupWindow) ;

--- In [EMAIL PROTECTED] ups.com, Tom Chiverton tom.chiverton@ ... 
wrote:

 On Tuesday 12 Feb 2008, markgoldin_2000 wrote:
  that form to PopUpManager. But after PopUpManager. centerPopUp the 
popup
  is not centered inside of the form. Can someone help, please? 
Also I
 
 What did you use as the arguments to the two calls to PopUpManager ?
 
 -- 
 Tom Chiverton
 Helping to efficiently utilize efficient bandwidth
 on: http://thefalken. livejournal. com
 
  * * * * 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at Halliwells LLP, 3 Hardman Square, 
Spinningfields, Manchester, M3 3EB. A list of members is available 
for inspection at the registered office. Any reference to a partner 
in relation to Halliwells LLP means a member of Halliwells LLP. 
Regulated by The Solicitors Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged. If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents. If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells. com.






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Disable Auto-Highlighting in FlexBuilder 3?

2008-02-13 Thread Sherif Abdou
Top, --Mark Occurences is that what you are talking bout.


- Original Message 
From: Paul Whitelock [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 13, 2008 11:45:59 AM
Subject: [flexcoders] Disable Auto-Highlighting in FlexBuilder 3?

I just started working with the FlexBuilder 3 beta and found that it
highlights (in an ugly cyan color) all instances of a variable name,
function name, etc. whenever you click in one. Is there any way to
disable this or change the color? Can't seem to find anything in the
Eclipse 3.3.1.1 preferences. ...





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] AreaChart bug when changing 'type' property

2008-02-13 Thread Sherif Abdou
this works, i couldnt try out urs since i dont have the data and the other 
stuff but maybe try data.toString();
/mx:Script
mx:ComboBox change=myChart.type=myCombo.selectedItem.toString() id=myCombo
mx:dataProvider
mx:Stringoverlaid/mx:String
mx:Stringstacked/mx:String
mx:String100%/mx:String
/mx:dataProvider
/mx:ComboBox
mx:Script![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{Month:Jan, Profit:2000, Expenses:1500, Amount:450},
{Month:Feb, Profit:1000, Expenses:200, Amount:600},
{Month:Mar, Profit:1500, Expenses:500, Amount:300}
]);
]]/mx:Script
mx:Panel title=Area Chart
mx:AreaChart id=myChart dataProvider={expenses}
showDataTips=true
mx:horizontalAxis
mx:CategoryAxis
dataProvider={expenses}
categoryField=Month
/
/mx:horizontalAxis
mx:series
mx:AreaSeries
yField=Profit
displayName=Profit
/
mx:AreaSeries
yField=Expenses
displayName=Expenses
/
/mx:series
/mx:AreaChart
mx:Legend dataProvider={myChart}/
/mx:Panel



- Original Message 
From: Guido [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 13, 2008 12:15:57 PM
Subject: [flexcoders] AreaChart bug when changing 'type' property

Hi, fellow coders!
 
I'm having an issue with an AreaChart when changing its type property.
 
There's a ComboBox that lets the user select how it wishes to see the AreaChart 
(either overlaid, stacked or 100%).
 
The method for this is as simple as:
 
areaChart.type = comboBox.selectedIt em.data;
 
(I've debugged it and data holds the proper string required by the type 
property).
 
My code is as follows:
 
mx:AreaChart id=areaChart
  dataTipFunction=chartDataTipRender
  height=100%
  showDataTips=true
  width=100%
  mx:horizontalAxis
mx:CategoryAxis categoryField={dataSet.keyFieldNam e}
  dataProvider={dataSet.dataSet}
  labelFunction={dataSet.labelFuncti on}/
  /mx:horizontalAxis
  mx:verticalAxis
mx:LinearAxis
  minimum={verticalAxisMinimum}
  maximum={verticalAxisMaximum}/
  /mx:verticalAxis
  mx:series
mx:AreaSeries
  alpha=0.8
  dataProvider={dataSet.dataSet}
  displayName={dataSet.dataSource. name}
  form=curve
  showDataEffect=interpolate
  xField={dataSet.keyFieldNam e}
  yField={dataSet.valueFieldN ame}/
  /mx:series
/mx:AreaChart
 
mx:SeriesInterpolat e id=interpolate elementOffset=10/
 
You might wonder why I want to stack or overlay the chart, since it has only 
one series... well, the thing is more series may be added in runtime, and so it 
comes to play the area chart type feature.
 
 
So, whenever I change the AreaChart's type property, I get the following error 
and stack trace:
 
TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
 at mx.charts.chartClas ses::Series/ mx.charts. chartClasses: Series::stripNaN 
s()
 at mx.charts.series: :AreaSeries/ mx.charts. series:AreaSerie s::updateFilter( 
)
 at mx.charts.chartClas ses::Series/ mx.charts. chartClasses: Series::validate 
Transform( )
 at mx.charts.chartClas ses::Series/ getRenderDataFor Transition( )
 at mx.charts.effects. effectClasses: :SeriesInterpola teInstance/ play()
 at mx.effects:: EffectInstance/ startEffect( )
 at mx.effects.effectCl asses::ParallelI nstance/play( )
 at mx.charts.chartClas ses::ChartBase/ ::advanceEffectS tate()
 at mx.charts.chartClas ses::ChartBase/ mx.charts. chartClasses: ChartBase: 
:updateDisplayLi st()
 at mx.charts.chartClas ses::CartesianCh art/mx.charts. chartClasses: 
CartesianChart: :updateDisplayLi st()
 at mx.core::UIComponen t/validateDispla yList()
 at mx.managers: :LayoutManager/ ::validateDispla yList()
 at mx.managers: :LayoutManager/ ::doPhasedInstan tiation()
 at Function/http: //adobe.com/ AS3/2006/ builtin:: apply()
 at mx.core::UIComponen t/::callLaterDis patcher2( )
 at mx.core::UIComponen t/::callLaterDis patcher()
 at flash.utils: :Timer/flash. utils:Timer: :_timerDispatch( )
 at flash.utils: :Timer/flash. utils:Timer: :tick()
 
 
And... I don't understand why, since I'm already seeing the chart as it is when 
I make the change to the type property. I mean, it works perfectly up to the 
moment I try to change this property, then it blows up.
 
BTW, I'm using Flex 2.
 
 
Any help on this one?
 
Thanks in advance!!
 
Guido.



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Busy Cursor not appearing

2008-02-13 Thread Sherif Abdou
is this in one function?
CursorManager. setBusyCursor( );
callLater(expandTre e);
CursorManager. removeBusyCursor ();

if it is then your setting it and removing it so is never going to show


- Original Message 
From: j_lentzz [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 13, 2008 12:01:26 PM
Subject: [flexcoders] Busy Cursor not appearing

I have a large tree that I want to execute an expand all or close all
method on. It takes enough time that I want to show the busy cursor.
However, it never appears. I've tried using the callLater method:
CursorManager. setBusyCursor( );
callLater(expandTre e);
CursorManager. removeBusyCursor ();

However, even though the tree takes a long time to expand, the cursor
never appears. I've also tried to chain a few callLaters together,
but without any success.

Is there an event of somekind that I could use to know when the cursor
is actually displayed?

Thanks,

John





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] AdvancedDataGrid Transparent Header

2008-02-13 Thread Sherif Abdou
see if this does anything, for some reason the drawHeaderBackground function 
doesnt really override anything. it is just stranded out there, the one you 
need to override is the one in the DataGridHeader but i have no clue how you 
would get there
 headerBackgroundSkin=mx.skins.ProgrammaticSkin/



- Original Message 
From: Fumitada Hattori [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 13, 2008 12:28:30 PM
Subject: [flexcoders] AdvancedDataGrid Transparent Header

Hi guys,

I'm having a problem on making AdvancedDataGrid' s header transparent.
I tried eveything what I can think of such as setting the alpha value
of AdvancedDataGrid' s
headerInfo.headerIt em to 0, overriding AdvancedDataGrid' s
drawHeaderBackgroun d function, but no luck...I couldn't make it.

Does anyone out there know how to make AdvancedDataGrid' s header transparent ?

Thanks in advance.

-Wolfgang.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] AdvancedDataGrid Transparent Header

2008-02-13 Thread Sherif Abdou
are u using flex 3 or Flex 2 maybe this will help
http://labs.adobe.com/wiki/index.php/Flex_3:Backwards_Compatibility_Flag

ignore my email.

- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 13, 2008 1:48:34 PM
Subject: Re: [flexcoders] AdvancedDataGrid Transparent Header

see if this does anything, for some reason the drawHeaderBackgroun d function 
doesnt really override anything. it is just stranded out there, the one you 
need to override is the one in the DataGridHeader but i have no clue how you 
would get there
 headerBackgroundSki n=mx.skins.Programmat icSkin/



- Original Message 
From: Fumitada Hattori wolfgang127@ gmail.com
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, February 13, 2008 12:28:30 PM
Subject: [flexcoders] AdvancedDataGrid Transparent Header


Hi guys,

I'm having a problem on making AdvancedDataGrid' s header transparent.
I tried eveything what I can think of such as setting the alpha value
of AdvancedDataGrid' s
headerInfo.headerIt em to 0, overriding AdvancedDataGrid' s
drawHeaderBackgroun d function, but no luck...I couldn't make it.

Does anyone out there know how to make AdvancedDataGrid' s header transparent ?

Thanks in advance.

-Wolfgang.






Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. 



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Flex Cache or History Isssue

2008-02-13 Thread Sherif Abdou
historyManagementEnabled=false
is that what u mean?


- Original Message 
From: ghus32 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 13, 2008 4:41:47 PM
Subject: [flexcoders] Flex Cache or History Isssue

Please help...
I am pulling my hair out.

I am looking at a way to reset states and funcitons in Flex.

When I go to a state that uses a tabbar and lets say go to the third 
tab and use my back to home button. Wheni go back to that state Flex 
remebers what tab I was using. I want it to go back the first tab. and 
I have been researching with no results. anyone have any ideas?

Thanks

Steve





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Flex Cache or History Isssue

2008-02-13 Thread Sherif Abdou
ya that will do just do it on the TabBar or whatever component and it will 
frgoet it


- Original Message 
From: steven pollard [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 13, 2008 7:42:50 PM
Subject: RE: [flexcoders] Flex Cache or History Isssue

will that fix my problem?
 
 
Flex remembers whta I did previously in the state, I need it to forget. 
thanks
 
Steve
 


 



To: [EMAIL PROTECTED] ups.com
From: [EMAIL PROTECTED] com
Date: Wed, 13 Feb 2008 17:01:43 -0800
Subject: Re: [flexcoders] Flex Cache or History Isssue


historyManagementEn abled=false
is that what u mean?


- Original Message 
From: ghus32 [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, February 13, 2008 4:41:47 PM
Subject: [flexcoders] Flex Cache or History Isssue


Please help...
I am pulling my hair out.

I am looking at a way to reset states and funcitons in Flex.

When I go to a state that uses a tabbar and lets say go to the third 
tab and use my back to home button. Wheni go back to that state Flex 
remebers what tab I was using. I want it to go back the first tab. and 
I have been researching with no results. anyone have any ideas?

Thanks

Steve








Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. 








  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] FB word search in files

2008-02-13 Thread Sherif Abdou
do Ctrl+F and u will get that menu and u have these options, then u have to 
focus in on the file


- Original Message 
From: reflexactions [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 13, 2008 9:50:56 PM
Subject: [flexcoders] FB word search in files

How do I do a text search in files in FB that is case insensitive and 
matches whole words only?





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] How to hidden DataGrid Header ?

2008-02-12 Thread Sherif Abdou
just header height there is no width
DataGrid width=500 height=500 headerHeight=0 /



- Original Message 
From: Harry Saputra [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 7:47:40 PM
Subject: [flexcoders] How to hidden DataGrid Header ?

Dear All,

I want to use DataGrid without header :). Can you help me to solve this
problem ?





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] How to hidden DataGrid Header ?

2008-02-12 Thread Sherif Abdou
headerHeight and headerWidth to 0


- Original Message 
From: Harry Saputra [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 7:47:40 PM
Subject: [flexcoders] How to hidden DataGrid Header ?

Dear All,

I want to use DataGrid without header :). Can you help me to solve this
problem ?





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] meaning of the this AIR error message

2008-02-12 Thread Sherif Abdou
i am not getting any errors, i did notice ur missing a paranteses.
mx:ViewStack id=myVS height=100%  width=80%
mx:Canvas width=100% height=100%
mx:HTML id=myHTML location={st} height=100% width=100% /
/mx:Canvas
/mx:ViewStack 



- Original Message 
From: hworke [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 7:18:54 PM
Subject: [flexcoders] meaning of the this AIR error message


Hi,

I was trying mx:HTML inside a viewstack and got this error
message:

 = = = = = 

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.controls: :[EMAIL PROTECTED] to mx.core.Container.

Here is my code:

 = = = = = =

mx:ViewStack id=myVS height=100%  width=80%
mx:Canvas width=100% height=100% 
mx:HTML id=myHTML location={st}  height=100%  width=100% /
/mx:Canvas
/mx:ViewStack 

 = = = = = ==

What is the meaning of this error message and does it
mean that we cannot put a mx:HTML inside a viewstack?

Regards...





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Splitting Array Content , keyword by field content

2008-02-12 Thread Sherif Abdou
you can't use a for loop, maybe try a cursor instead
What you cannot do is iterate through the properties of an object if it is an 
instance of a user-defined class, unless the class is a dynamic class. Even 
with instances of dynamic classes, you will be able to iterate only through 
properties that are added dynamically.-Flex Doc


- Original Message 
From: Harry Saputra [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 10:33:44 PM
Subject: RE: [flexcoders] Splitting Array Content , keyword by field content

Check my code :
 
arrJadwalPribadi = new ArrayCollection(event.result as Array);
arrJadwalPribadi. refresh();

for (var item:Object in arrJadwalPribadi){

if (item.hari=='Senin')
{
senin.push(item);
}

else if (item.hari=='Selasa')
{
selasa.push(item);
}
….
 
I get ArrayCollection as Array from Weborb. When I try to this way,  I get this 
error message :
 
ReferenceError: Error #1069: Property hari not found on String and there is no 
default value.
at siakad/::jadwalPribadiResult Handler()
 
when I use variable arrJadwalPribadi on DataGrid, it’s working. I use property 
hari on labelField too.
 
What’s wrong ?
 
From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Gordon Smith
Sent: Wednesday, February 13, 2008 10:42 AM
To: [EMAIL PROTECTED] ups.com
Subject: RE: [flexcoders] Splitting Array Content , keyword by field content
 
You shouldn't assume that a for-in or for-each-in loop will iterate over the 
items in any particular order. To ensure this, use a plain 'for' loop.
 
Gordon Smith
Adobe Flex SDK Team
 



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Splitting Array Content , keyword by field content

2008-02-12 Thread Sherif Abdou
like this?
?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical 
creationComplete=initApp() xmlns:containers=flexlib.containers.*
mx:Style source=styles.css/
mx:Script
![CDATA[
import mx.collections.IViewCursor;
import mx.collections.ArrayCollection;
[Bindable]
private var myArrayCollection:ArrayCollection = new 
ArrayCollection([{Letter:'A',Name:Andi},
{Letter:'A',Name:Ash}, 
{Letter:'A',Name:Axe}, 
{Letter:'B',Name:Bart}, 
{Letter:'B',Name:Boe}, 
]); 
private function initApp():void{
var arrAData:Array = [];
var arrBData:Array = [];
for each(var item:Object in myArrayCollection){
if(item.Letter==A){
arrAData.push(item);
}else{
arrBData.push(item);
}
} 
}
]]
/mx:Script



- Original Message 
From: Harry Saputra [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 8:37:39 PM
Subject: [flexcoders] Splitting Array Content , keyword by field content

Dear All,
 
I have DataProvider as Array like this :
 
AAndi
AAsh
AAxe
BBart
BBob

 
Called arrMainData. Can I split it into 2 variable Array when I complete 
retrieve all Data ? like this :
 
arrAData
 
AAndi
AAsh
AAxe

 
arrBData
 
BBart
BBob

 
Thanks J



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Re: Disable screen interaction while cursor in busy mode

2008-02-12 Thread Sherif Abdou
cool, but i read somewhere not sure if i actually did or making it up but say 
if you disable the application but there is focus on an object or a texfield 
the user can still alter it from by keyboard so i guess you should add global 
listeners too and prevent anything from truly happening


- Original Message 
From: Alexander Tsoukias [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 5:31:41 PM
Subject: [flexcoders] Re: Disable screen interaction while cursor in busy mode

thats exactly what i was looking for. Did not know such thing existed.
thanks for pointing out!!!

Alex

--- In [EMAIL PROTECTED] ups.com, Sherif Abdou [EMAIL PROTECTED] .. wrote:

 why not just do 
 enabled=false
 on the Application itself
 
 
 - Original Message 
 From: Alexander Tsoukias [EMAIL PROTECTED] ..
 To: [EMAIL PROTECTED] ups.com
 Sent: Tuesday, February 12, 2008 4:47:19 PM
 Subject: [flexcoders] Re: Disable screen interaction while cursor in
busy mode
 
 Sounds good, but what if this occurs in the service call as file in
 cairngorm, there is no parent to add the popup to.
 
 ??
 
 Alex
 
 --- In [EMAIL PROTECTED] ups.com, simonjpalmer simonjpalmer@ ...
 wrote:
 
  pop up a modal dialog with a progress bar and remove it when the
  response returns
  
  --- In [EMAIL PROTECTED] ups.com, Alexander Tsoukias
  alex49080@ wrote:
  
   I would like each time i made a SOAP call and set the Cursor to busy
   for the screen to get disabled while cursor in busy mode.
   
   Any ideas?
  
 
 
 
 
 
 
 
 _ _ _ _ _ _
 Looking for last minute shopping deals? 
 Find them fast with Yahoo! Search. 
http://tools. search.yahoo. com/newsearch/ category. php?category= shopping






  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Re: Disable screen interaction while cursor in busy mode

2008-02-12 Thread Sherif Abdou
why not just do 
enabled=false
 on the Application itself


- Original Message 
From: Alexander Tsoukias [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 4:47:19 PM
Subject: [flexcoders] Re: Disable screen interaction while cursor in busy mode

Sounds good, but what if this occurs in the service call as file in
cairngorm, there is no parent to add the popup to.

??

Alex

--- In [EMAIL PROTECTED] ups.com, simonjpalmer simonjpalmer@ ...
wrote:

 pop up a modal dialog with a progress bar and remove it when the
 response returns
 
 --- In [EMAIL PROTECTED] ups.com, Alexander Tsoukias
 alex49080@ wrote:
 
  I would like each time i made a SOAP call and set the Cursor to busy
  for the screen to get disabled while cursor in busy mode.
  
  Any ideas?
 






  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] How to make a live duplicate of an output window

2008-02-12 Thread Sherif Abdou
you can use the bitmap class draw() method and what not, then scale that image 
and just use States. So on State will show it and off state wont 


- Original Message 
From: mthomas1969 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 1:39:20 PM
Subject: [flexcoders] How to make a live duplicate of an output window


I'm using Flex 3 and AIR, and I am trying to find a way to have all of 
the visuals that appear in a particular window in my app duplicated (in 
real time) in a small canvas in another window (in the same app). Sort 
of like the taskbar in Windows Vista does when you hover the mouse over 
an item that is minimized: you see a tiny view of what's going on in 
the application' s window.

Anyone know how to do this in in Flex/AIR? 





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] XML, HTTPSerivce, Setting dataProvider in Action Script

2008-02-12 Thread Sherif Abdou
you have it set in mxml, chartXML.lasResult
 mx:CategoryAxis id=cat1  dataProvider= {chartXML.lastResult .month[month_ 
number].day} 
   categoryField= {categoryFieldString} title={categoryAxisTitleSt 
ring} / 


- Original Message 
From: Brad Bueche [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 1:29:36 PM
Subject: RE: [flexcoders] XML, HTTPSerivce,  Setting dataProvider in Action 
Script

Thanks!  That worked.
 
I have noticed that I am not setting the dataprovider for my category axis and 
its still getting filled in?  Is that possible? Or am I already fried for the 
day?
 
I put the dataprovider in for it anyway just to be explicit.
 
brad
-Original Message-
From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Sherif Abdou
Sent: Tuesday, February 12, 2008 1:39 PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] XML, HTTPSerivce,  Setting dataProvider in Action 
Script


lastResult doesnt work in Actionscript only MXML, you get null if you use it in 
actionScript it should be just 
private function initApp():void{
chartXML.send();
chartXML.addEventListener( ResultEvent. RESULT,onResult) ;
}
private function onResult(event: ResultEvent) :void{
 //u get event.result
}



- Original Message 
From: Brad Bueche [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 12, 2008 12:30:32 PM
Subject: [flexcoders] XML, HTTPSerivce,  Setting dataProvider in Action Script


I have been trying all morning to figure out how to set the dataprovider for a 
line chart in actionscript.
 
Below is the code.  The dataprovider in MXML works  (and its the exact same 
dataprovider! ).  And if I put the statement back into the MXML for the 
mx:LineChart it will work. Why wont this work in the actionscript?
 
 * *
Dataprovider in ActionScript
 * *
mx:Script 
![CDATA[ 
[...{
switch(lineOfBusine ss) 
 { 
 case ABC: 
chartXML.url= http://hostname/Data/xmlData_ 
ALL_ABC_12Months_All_ Days_2007. php; 
chartXML.send( ); 
[] 
line_Chart.dataProv ider = chartXML.lastResult 
.month[month_ number].day; 
[}
/mx:Script 


mx:HTTPService id=chartXML resultFormat= e4x showBusyCursor= true  / 
mx:LineChart id=line_Chart 
 width=932 height=309 x=23 y=10 showDataTips= true  
mx:horizontalAxis 
   mx:CategoryAxis id=cat1  dataProvider= {chartXML.lastResult 
.month[month_ number].day} 
   categoryField= {categoryFieldString} title={categoryAxisTitleSt 
ring} / 
   /mx:horizontalAxis 
/mx:LineChart





Never miss a thing. Make Yahoo your homepage. 



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] mxmlc running out of heap space...

2008-02-12 Thread Sherif Abdou
ignore what i said, i need to read


- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 12:39:35 PM
Subject: Re: [flexcoders] mxmlc running out of heap space...

did you change the eclipse.ini file?


- Original Message 
From: ivo cervantes_vive@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 12, 2008 12:35:54 PM
Subject: [flexcoders] mxmlc running out of heap space...


I have a machine with 4GB of memory on which I develop an app using Flex 
Builder 3 with no problems. Whenever I try to build the project from the 
command-line thru an Ant task tho I get a:

[mxmlc] Error: Java heap space
[mxmlc] java.lang.OutOfMemo ryError: Java heap space

I edited the file flex3sdk_be_ 121207/bin/ jvm.config so that the heap space is 
increased to 1GB but I still keep getting this error.

Does anyone have any suggestions on how can I address this? I am trying to make 
builds outside of Flex Builder so they can be automated.

Thanks,

- Ivo







Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. 



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] XML, HTTPSerivce, Setting dataProvider in Action Script

2008-02-12 Thread Sherif Abdou
let me rephrase you can do whatever but you need to listen for the 
ResultEvent.RESLUlT in actionScript and do
name.dataProvider = event.result


- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 12:38:43 PM
Subject: Re: [flexcoders] XML, HTTPSerivce,  Setting dataProvider in Action 
Script

lastResult doesnt work in Actionscript only MXML, you get null if you use it in 
actionScript it should be just 
private function initApp():void{
chartXML.send();
chartXML.addEventListener( ResultEvent. RESULT,onResult) ;
}
private function onResult(event: ResultEvent) :void{
 //u get event.result
}



- Original Message 
From: Brad Bueche [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 12, 2008 12:30:32 PM
Subject: [flexcoders] XML, HTTPSerivce,  Setting dataProvider in Action Script


I have been trying all morning to figure out how to set the dataprovider for a 
line chart in actionscript.
 
Below is the code.  The dataprovider in MXML works  (and its the exact same 
dataprovider! ).  And if I put the statement back into the MXML for the 
mx:LineChart it will work. Why wont this work in the actionscript?
 
 * *
Dataprovider in ActionScript
 * *
mx:Script 
![CDATA[ 
[...{
switch(lineOfBusine ss) 
 { 
 case ABC: 
chartXML.url= http://hostname/Data/xmlData_ 
ALL_ABC_12Months_All_ Days_2007. php; 
chartXML.send( ); 
[] 
line_Chart.dataProv ider = chartXML.lastResult 
.month[month_ number].day; 
[}
/mx:Script 


mx:HTTPService id=chartXML resultFormat= e4x showBusyCursor= true  / 
mx:LineChart id=line_Chart 
 width=932 height=309 x=23 y=10 showDataTips= true  
mx:horizontalAxis 
   mx:CategoryAxis id=cat1  dataProvider= {chartXML.lastResult 
.month[month_ number].day} 
   categoryField= {categoryFieldString} title={categoryAxisTitleSt 
ring} / 
   /mx:horizontalAxis 
/mx:LineChart





Never miss a thing. Make Yahoo your homepage. 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] mxmlc running out of heap space...

2008-02-12 Thread Sherif Abdou
did you change the eclipse.ini file?


- Original Message 
From: ivo [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 12:35:54 PM
Subject: [flexcoders] mxmlc running out of heap space...

I have a machine with 4GB of memory on which I develop an app using Flex 
Builder 3 with no problems. Whenever I try to build the project from the 
command-line thru an Ant task tho I get a:

[mxmlc] Error: Java heap space
[mxmlc] java.lang.OutOfMemo ryError: Java heap space

I edited the file flex3sdk_be_ 121207/bin/ jvm.config so that the heap space is 
increased to 1GB but I still keep getting this error.

Does anyone have any suggestions on how can I address this? I am trying to make 
builds outside of Flex Builder so they can be automated.

Thanks,

- Ivo





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] XML, HTTPSerivce, Setting dataProvider in Action Script

2008-02-12 Thread Sherif Abdou
lastResult doesnt work in Actionscript only MXML, you get null if you use it in 
actionScript it should be just 
private function initApp():void{
chartXML.send();
chartXML.addEventListener(ResultEvent.RESULT,onResult);
}
private function onResult(event:ResultEvent):void{
 //u get event.result
}



- Original Message 
From: Brad Bueche [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 12:30:32 PM
Subject: [flexcoders] XML, HTTPSerivce,  Setting dataProvider in Action Script

I have been trying all morning to figure out how to set the dataprovider for a 
line chart in actionscript.
 
Below is the code.  The dataprovider in MXML works  (and its the exact same 
dataprovider! ).  And if I put the statement back into the MXML for the 
mx:LineChart it will work. Why wont this work in the actionscript?
 
 * *
Dataprovider in ActionScript
 * *
mx:Script 
![CDATA[ 
[...{
switch(lineOfBusine ss) 
 { 
 case ABC: 
chartXML.url= http://hostname/Data/xmlData_ 
ALL_ABC_12Months_All_ Days_2007. php; 
chartXML.send( ); 
[] 
line_Chart.dataProv ider = chartXML.lastResult 
.month[month_ number].day; 
[}
/mx:Script 


mx:HTTPService id=chartXML resultFormat= e4x showBusyCursor= true  / 
mx:LineChart id=line_Chart 
 width=932 height=309 x=23 y=10 showDataTips= true  
mx:horizontalAxis 
   mx:CategoryAxis id=cat1  dataProvider= {chartXML.lastResult 
.month[month_ number].day} 
   categoryField= {categoryFieldString} title={categoryAxisTitleSt 
ring} / 
   /mx:horizontalAxis 
/mx:LineChart



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

<    1   2   3   4   5   6   >