Re: [flexcoders] resetting an object to a default color

2005-05-21 Thread Manish Jethani
On 5/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  I know you can change the color with the setStyle method what I want to
 know is how do you revert it back to its default color whenever I try to
 change it all I get is either a black button or some other color? 

Use setStyle() again to set it to the original colour.  For that you'd
have to save the original colour value somewhere.


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Grid Creation from XML

2005-05-21 Thread Manish Jethani
On 5/21/05, Jae Hess [EMAIL PROTECTED] wrote:

 I have a Grid that i am using RowSpan and Colspan with the GridItem's.
 I am curious if there is  any way to Create this Grid dynamically from
 XML data?

Try using a Repeater and putting GridItem's inside that.


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] TabNavigator - Hiding Tabs

2005-05-21 Thread Manish Jethani
On 5/21/05, gevgelija50 [EMAIL PROTECTED] wrote:

 How can I hide the tab button itself?

tabnav.tabBar[0].visible = false;


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Trouble with mx:Image or mx:Loader

2005-05-21 Thread Manish Jethani
On 5/20/05, cazzaran [EMAIL PROTECTED] wrote:
 I have a flash banner that displays its content in the vertical
 middle. I have an application that is 800px wide, but the banner is,
 by default, only around 600px wide. My tag looks like:
 
 mx:Image contentPath=autumn.swf scaleX=100 scaleContent=true
 width=800 /
 
 If I specify the width attribute of the Image tag, the flash movie
 doesn't scale with it.

See if this helps:
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg06839.html


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] TabNavigator - Hiding Tabs

2005-05-21 Thread Alistair McLeod
Hi Alex,

Try this - I've made the tab visible and also set its width to 0, to force
subsequent tabs to move along to consume the space. tabBar is a private
property of TabNavigator, so I've had to trick the compiler into letting us
access it.


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;

mx:Script
![CDATA[

private function hideSecondTab() : Void
{
var secondTab = tn[tabBar].getChildAt( 1 );

secondTab.visible = false;
secondTab.width = 0;
}
]]
/mx:Script
mx:TabNavigator id=tn width=100% height=100% 
mx:HBox label=Tab 1 width=100% height=100% /
mx:HBox label=Tab 2 width=100% height=100% /
mx:HBox label=Tab 3 width=100% height=100% /
/mx:TabNavigator

mx:Button label=Hide Second Tab click=hideSecondTab(); /

/mx:Application 


--
Alistair McLeod
Development Director
iteration::two
[EMAIL PROTECTED]
 
Office:  +44 (0)131 338 6108
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gevgelija50
Sent: 20 May 2005 20:16
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator - Hiding Tabs

I am trying to hide certain tabs from a Tab Navigator based on some
criteria. If I follow this approach: tabnav[0].visible = false; the actual
Tab is still visible but the children within that tab are invisible. 

How can I hide the tab button itself? 

Thanks,
Alex




 
Yahoo! Groups Links



 



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] multiple threads?

2005-05-21 Thread Abdul Qabiz
I wrote a Thread class  IRunnable interface in AS2 a while back, it has
APIs like Java Thread class. So I can either extend Thread or implement
IRunnable interface. But code is not at good stage, it just works well..

But you can do something similar using setInterval(..). I found something
similar on proto.layer51.com

http://proto.layer51.com/d.aspx?f=1327

Hope that helps...

-abdul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of JesterXL
Sent: Saturday, May 21, 2005 12:59 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] multiple threads?

You can spawn an interval to pick away at your task as well.

http://www.jessewarden.com/archives/2005/05/flex_flash_refr.html

- Original Message - 
From: sanjayd [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, May 20, 2005 2:19 PM
Subject: [flexcoders] multiple threads?


Hi all.

Is there a way to create multiple threads in ActionScript, I have a
timeconsuming client-side task that I'd like to get done in a
secondary thread ..any ideas ?

Thanks in advance. Sanjay





 
Yahoo! Groups Links



 



 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] simple webService question

2005-05-21 Thread sanjayd
I have this code in MyWebService.mxml :

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Script
![CDATA[
function runWebServices(caller:Object)
{
var call = ws4ComboBox.updateRepoRates.send();
call.marker = caller;
mx.controls.Alert.show(websvcs. request sent, 
websvcs.);
}

//faultHandler when webservice call fails
function faultHandler(faultstring)
{
mx.controls.Alert.show(faultstring, Web 
Service Fault);
}

function resultHandler(event)
{
mx.controls.Alert.show(websvcs. response 
recvd, websvcs.);
var myCaller = event.call.marker;

myCaller.asyncFillComboBoxDataProvider();
}
   ]]
/mx:Script

mx:WebService id=ws4ComboBox
wsdl=http://sanjaylaptophp:9080/PositionsRepoRatesService.wsdl;
fault=faultHandler(event.fault.faultstring)
concurrency=multiple useProxy=true showBusyCursor=true
mx:operation name=updateRepoRates
result=resultHandler(event)
mx:request
newRatedummy/newRate
/mx:request
/mx:operation
/mx:WebService
/mx:Application


when I attempt to call the webService like this (from a separate .as
file):

var myWebSvc = new MyWebService();
myWebSvc.runWebServices(this);

I see the alert popUp saying that the request was sent, but the
'resultHandler' is never invoked..in fact, my soap-server trace tells
me that the 'updateRepoRates' method was never called.
Any idea why ?

Thanks in advance. Sanjay




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/