[flexcoders] Where to search!!!!!

2008-03-25 Thread hworke


   Hi,

   I am looking for a flex developer's job in Canada.
   Where do I search?

   Regards



RE: [flexcoders] Re: Singletone class in Application and Modules !?

2008-03-25 Thread Rick Winscot
Er. bah?!? 

 

Any var foo:DataManager = new DataManager() - - > will fail. As a properly
constructed singleton it won't compile! The constructor takes an argument
that is restricted to the package! The implementation that I provide you
will require all treatment to follow DataManager.getInstance() in order to
access the class. which will give you ---only one instance of the class---
globally in your application. If you had dropped my code in place of yours -
any 'new' declarations would prevent your application from compiling. This
isn't to prevent 'funny guys' from futzing with you code. it will  - through
an established pattern enforce everyone to utilize your DataManager in
exactly the same way. Before hitting the reply button - drop the code in
that I sent and hit the compile button and see what it does. Remember to put
your data manager into its own package - to prevent anyone from having
access to the SingletonEnforcer.

 

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lytvynyuk
Sent: Wednesday, March 26, 2008 1:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Singletone class in Application and Modules !?

 

This will not change anything, still will be many times instantiated
"singleton" as in my example. Scope control is just to prevent funny
guys doing something like var Vasya = new DataManager();

--- In flexcoders@yahoogroups.com  ,
"Rick Winscot" <[EMAIL PROTECTED]>
wrote:
>
> I just looked at your source. You forgot to control the scope! Your
> implementation should be:
> 
> package
> {
> public class DataManager
> {
> private static var singleton_:DataManager = new
> DataManager();
> 
> public function DataManager( enforcer:SingletonEnforcer ) {
> }
> 
> public static function getInstance():DataManager {
> 
> if ( singleton_ == null )
> singleton_ = new DataManager( new SingletonEnforcer );
> 
> return singleton_;
> } 
> }
> }
> 
> class SingletonEnforcer{}
> 
> 
> If you do this... it doesn't/won't matter where you instantiate it.
There
> can be only one - MUWUAHAHAHAA.
> 
> 
> Rick Winscot

 

<><>

Re: [flexcoders] Developer Exam

2008-03-25 Thread li wenzhi
you means the Flex2, not Flex3 exam?

Does Adobe do anything toward Flex3 exam?



- Original Message 
From: "Merrill, Jason" <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, March 26, 2008 3:11:52 AM
Subject: RE: [flexcoders] Developer Exam

Congrats!
 
Jason Merrill 
Bank of America 
GT&O and Risk L&LD Solutions Design & Development 
eTools & Multimedia 
Bank of America Flash Platform Developer Community 


Are you a Bank of America associate interested in innovative learning ideas and 
technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 




 




From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of VELO
Sent: Tuesday, March 25, 2008 2:34 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Developer Exam


Hi Folks...

I wanna to share my happiness...

I Pass o Adobe Flex 2 Developer Exam.

Thanks to all who help me, specially who helps me off list.

VELO

 


  

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 print in Flex?

2008-03-25 Thread Alex Harui
FlexPrintJob

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of coolz22in
Sent: Tuesday, March 25, 2008 10:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I print in Flex?

 

Hi,
I want to print some data obtained from data grid & text input from
flex. How can I print data which i wanted in flex? What are the API's
available for printing?

Thanks.

~ Sundar ~

 



[flexcoders] Re: Singletone class in Application and Modules !?

2008-03-25 Thread lytvynyuk
This will not change anything, still will be many times instantiated
"singleton" as in my example. Scope control is just to prevent funny
guys doing something like var Vasya = new DataManager();

--- In flexcoders@yahoogroups.com, "Rick Winscot" <[EMAIL PROTECTED]>
wrote:
>
> I just looked at your source. You forgot to control the scope! Your
> implementation should be:
> 
> package
> {
>   public class DataManager
>   {
>   private static var singleton_:DataManager = new
> DataManager();
> 
>   public function DataManager( enforcer:SingletonEnforcer ) {
> }
>   
>   public static function getInstance():DataManager {
> 
>   if ( singleton_ == null )
>   singleton_ = new DataManager( new SingletonEnforcer );
> 
>   return singleton_;
>   }   
>   }
> }
> 
> class SingletonEnforcer{}
> 
> 
> If you do this... it doesn't/won't matter where you instantiate it.
There
> can be only one - MUWUAHAHAHAA.
> 
> 
> Rick Winscot



Re: [flexcoders] Re: Perl with Flex - with proper question

2008-03-25 Thread chandra shekar
HI,
 my question was, how can i call a perl script running on a server. whether 
i should use http service or is there any other way.
   
  Thanks,
  Chandra

Andrew Strader <[EMAIL PROTECTED]> wrote:
  --- In flexcoders@yahoogroups.com, "moonrchand" <[EMAIL PROTECTED]> 
wrote:
>
> Hi,
> how can i integrate perl script with flex. simple example is 
> appreciated.
> 
> Thanks in Advance,
> Chandra
>

It is not clear what you mean by "integrate"? You can host a Perl
script on a web server, run it as CGI or mod_perl, and use its output
for the result of a Flex remote service. From a Flex point of view, it
doesn't matter whether the server is running Perl, PHP, JSP, ASP, etc.
So which are you having trouble with: getting Perl to run on your web
server, or getting the service to work in Flex? If it's the former,
please post to a different list. If it's the latter, then what is your
specific question?



   

   
-
 Save all your chat conversations. Find them online.

[flexcoders] Re: how to operate *.bat ?

2008-03-25 Thread h253498088
mvn is  maven2 , i use maven2 to compile flex project.




--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Is "mvn" a .bat file? If so, you want:
> 
> call mvn package
> 
> instead of
> 
> mvn package
> 
> -J
> 
> On Wed, Mar 26, 2008 at 12:42 PM, h253498088 <[EMAIL PROTECTED]>
> wrote:
> 
> >   hi All,i write a run.bat file,
> > CD C:\test
> > mvn package
> > copy /y C:\test.war E:\deploy
> > pause
> >
> > but the command "mvn" need 2 minutes to complete. when "mvn" 
completed,
> >
> > the command "copy" do not go on .
> > i hope to get help, thanks!
> >
> >  
> >
> 
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls, It tolls for 
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




[flexcoders] How do I print in Flex?

2008-03-25 Thread coolz22in
Hi,
I want to print some data obtained from data grid & text input from
flex. How can I print data which i wanted in flex? What are the API's
available for printing?

Thanks.

~ Sundar ~



[flexcoders] Support for HP-UX?

2008-03-25 Thread wayne_badu_johnson

Hi

I'm wondering if anyone has deployed (or knows if it's possible) a
Flex application under JBOSS app server on HP-UX OS(assuming it's the
latest version of HP-UX)? 

Or does a wrapper/projector exist that could be deployed under HP-UX
to run standalone flex app (like AIR)? 

I have found flash player plugin support for Firefox/Mozilla on HP-UX
but haven't been able to confirm what version of flash player this is.
The preference would be a standalone app  but on HP-UX. It could even
run through a non-browser flash player and talk to JBOSS services.

I've been looking around without getting the definitive answers. 

Any ideas?

Thanks
Wayne




RE: [flexcoders] Re: Singletone class in Application and Modules !?

2008-03-25 Thread Rick Winscot
I just looked at your source. You forgot to control the scope! Your
implementation should be:

package
{
public class DataManager
{
private static var singleton_:DataManager = new
DataManager();

public function DataManager( enforcer:SingletonEnforcer ) {
}

public static function getInstance():DataManager {

if ( singleton_ == null )
singleton_ = new DataManager( new SingletonEnforcer );

return singleton_;
}   
}
}

class SingletonEnforcer{}


If you do this... it doesn't/won't matter where you instantiate it. There
can be only one - MUWUAHAHAHAA.


Rick Winscot



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lytvynyuk
Sent: Wednesday, March 26, 2008 1:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Singletone class in Application and Modules !?

I figured out the case. I, actually, made first instance in another module
not in main App. 
Conclusion is: if you make instance in your main app - everything works
fine. 
If you did it in one of modules, this and all others will get new instances.
Very easy to see when put trace("BLAH") in the constructor. PS. do not
include your class, which suppose to be singleton in you main application,
and then it will fail.

test included  >> testSingleton.zip 

>
> I beg to differ.  I had setup my app thinking this to be true.  When I
> did this the module would get it's own, and very different, instance
> of my singleton.  I had to change the way I did things so what I do
> now is upon loading my module, the main app then sets the singleton
> into the module.  I don't have my example code anymore, but it was
> quite easy to produce the results.
> 
> Maybe it has to do with the way I compiled my module  I compiled
> my application with "-link-report=c:\app\encoreNG.link.report.xml" and
> my module with "-load-externs=c:\app\encoreNG.link.report.xml".  Not
> sure if that has anything to do with it.  Also, when I had this coded
> I was on Flex 3, Beta 3 and have not retested with Flex 3 GA.
> 
> Dale
 




[flexcoders] Re: Singletone class in Application and Modules !?

2008-03-25 Thread lytvynyuk
I figured out the case. I, actually, made first instance in another
module not in main App.
Conclusion is: if you make instance in your main app - everything works
fine.
If you did it in one of modules, this and all others will get new
instances. Very easy to see when put trace("BLAH") in the constructor.
PS. do not include your class, which suppose to be singleton in you main
application, and then it will fail.

test included  >> testSingleton.zip


>
> I beg to differ.  I had setup my app thinking this to be true.  When I
> did this the module would get it's own, and very different, instance
> of my singleton.  I had to change the way I did things so what I do
> now is upon loading my module, the main app then sets the singleton
> into the module.  I don't have my example code anymore, but it was
> quite easy to produce the results.
>
> Maybe it has to do with the way I compiled my module  I compiled
> my application with "-link-report=c:\app\encoreNG.link.report.xml" and
> my module with "-load-externs=c:\app\encoreNG.link.report.xml".  Not
> sure if that has anything to do with it.  Also, when I had this coded
> I was on Flex 3, Beta 3 and have not retested with Flex 3 GA.
>
> Dale



RE: [flexcoders] Re: Get the Domain the Flex app is running in

2008-03-25 Thread Rick Winscot
Alex – I mentioned that the url would be to the .swf file in my post. Rather
than futz around with external interface... just append #root to your URL
(for your app)... and take a look at it with BrowserManager again. To help
along - I just posted a blog entry on using Deep Linking in flex. This will
solve your problem without having to code around JavaScript.

http://www.quilix.com/node/2 


Rick Winscot



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Wednesday, March 26, 2008 12:08 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Get the Domain the Flex app is running in

Application.url is the url of the Flex SWF.  If you’re web page came from
some other place, you’ll need BrowserManager or its equivalent, which is to
bake in a method in your html-wrapper that you can call via
ExternalInterface.
 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Winscot
Sent: Tuesday, March 25, 2008 8:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Get the Domain the Flex app is running in
 
Then you should probably stick to the mx.core.Application implementation and
use mx.utils.URLUtil to extract the bits as follows:

Var fullURL:String = Application.application.url;
Var baseURL:String = fullURL.substring( 0, fullURL.indexOf( "/",
fullURL.indexOf( URLUtil.getServerName( fullURL ) ) ) );
Var protocol:String = URLUtil.getProtocol( fullURL );
Var port:uint = URLUtil.getPort( fullURL );
Var serverName:String = URLUtil.getServerName( fullURL );
Var isSecure:Boolean = URLUtil.isHttpsURL( fullURL );

This is from memory - so... I'm not sure if this will copy/paste. Just
remember that the Application.application.url is going to report the URL to
the application .swf file - and not the path to the _page_ that loads/hosts
your .swf. As long as you aren't getting creative with where your .swf files
live you shouldn't have any problems with this approach.

Just an fyi - the BrowserManager is primarily used with deep linking and
exposes fragments for internal application navigation. Give that example one
more go - launch it... then in the address bar type in a #foo (exclude the #
if one is already there) at the very end of the url (i.e.
http://www.bar.com/myapp.html#foo).

AND PREPARE TO WET YOUR PANTS!

Rick Winscot

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of shivkxr
Sent: Tuesday, March 25, 2008 8:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Get the Domain the Flex app is running in

--- In flexcoders@yahoogroups.com, "Rick Winscot" <[EMAIL PROTECTED]> 
wrote:
>
> You might want to give BrowserManager a go… or mx.utils.URLUtil.
> 
> URLUtil includes functions like
> 
> * getFullURL():String
> * getPort():uint
> * WhosYourDaddy():Daddy
> * getServerName():String

Rick,

I've already tried BrowserManager. It doesn't do the job, in fact I 
can't image how or where one could use it, because it seems the url has 
to change while the FLASH/Flex app is still alive and I've not been 
able to create such a case. I even tried the sample in the docs and it 
doesn't work. I mean it runs ok, but the properties are all null.


 




RE: [flexcoders] Re: Singletone class in Application and Modules !?

2008-03-25 Thread Rick Winscot
Alex – the effect he is describing is due to the lack of a protected/locally
visible SingletonEnforcer passed to the constructor of the singleton and
proper management/return of the local static class instance. A pattern for
the ActionScript singleton should be...

public class MySingletonClass
{

  private static var _mySingletonClass:MySingletonClass;

  public function MySingletonClass( enforcer:SingletonEnforcer ) { }

  public static function getInstance():MySingletonClass
  {
if ( _mySingletonClass == null )
_mySingletonClass = new MySingletonClass( new SingletonEnforcer );

return _mySingletonClass;
  }

}

class SingletonEnforcer{}

If this pattern is used - the MySingletonClass.getInstance() and var
foo:MySingletonClass = new MySingletonClass() will resolve to the same
object... although they may appear (in name) as two separate objects. You
can verify this by launching into debug mode and looking at the @093240
(memory address) of both objects. If you've done it right - they will be the
same.


Rick Winscot
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Wednesday, March 26, 2008 12:14 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Singletone class in Application and Modules !?

You’ll have to send me a test case.  They should be the same.
 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Tuesday, March 25, 2008 6:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Singletone class in Application and Modules !?
 
I beg to differ. I had setup my app thinking this to be true. When I
did this the module would get it's own, and very different, instance
of my singleton. I had to change the way I did things so what I do
now is upon loading my module, the main app then sets the singleton
into the module. I don't have my example code anymore, but it was
quite easy to produce the results.

Maybe it has to do with the way I compiled my module I compiled
my application with "-link-report=c:\app\encoreNG.link.report.xml" and
my module with "-load-externs=c:\app\encoreNG.link.report.xml". Not
sure if that has anything to do with it. Also, when I had this coded
I was on Flex 3, Beta 3 and have not retested with Flex 3 GA.

Dale

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> They would be the same.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of lytvynyuk
> Sent: Tuesday, March 25, 2008 12:21 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Singletone class in Application and Modules !?
> 
> 
> 
> Is it true if I have singleton class instantiated in main application
> and in module, instances will be different?
> 
> public class DataManager
> {
> private static const singleton_:DataManager = new DataManager();
> 
> public static function get instance():DataManager {
> return singleton_;
> }
> 
> public function DataManager() {
> if (singleton_ != null) {
> throw new Error("Cannot instantiate singleton
> DataManager");
> ! }
> }
> }
> 
> in main application:
> 
> private function init():void {
> this.dataManager = DataManager.instance;
> }
> 
> in module 
> 
> private function init():void {
> this.dataManager = DataManager.instance;
> }
>
 




[flexcoders] getting authenticating error

2008-03-25 Thread Parag Metha
Hi All, 

I have written multiple login testcases using dpunit and using sequence as
per sample example. In this sequence whether we do login or logout server
trip is made and required processing is done on server. 

The testcase structure is as follows: 

TestCase1.as   |

setup() | 
tescase1() {login is called on server}  ==>| 
teradown() {logout called on server}  | 
| 
TestCase2.as  | 
setup()  | 
tescase2() {login is called on server}  ==>| TestSuite =>
TestRunner
teradown() {logout called on server}  | 
| 
TestCase3.as  | 
setup()  | 
tescase3() {login is called on server}  ==>| 
teradown() {logout called on server}  | 

As per my knowledge after completion of teardown() of testcase1 then it
should go for 2nd test setup() and this works fine. But what is happening
that UIComponent maintains list of function to be called. 
UIComponent is not calling individual functions. So login is called
perfectly but logout is not being called. So 1st testcase it is working but
for 2nd testcase it's giving error. This error is due to logout has not
happen on 1st testcase and 2nd testcase is trying to login on server. 

The error is as follows: 

Error: Credentials cannot be set while authenticating or logging out.

  at
mx.messaging::Channel/setCredentials()[C:\dev\depot\flex\branches\flex_201_b
orneo\sdk\frameworks\mx\messaging\Channel.as:841]

  at
mx.messaging::ChannelSet/setCredentials()[C:\dev\depot\flex\branches\flex_20
1_borneo\sdk\frameworks\mx\messaging\ChannelSet.as:960]

  at
mx.messaging::MessageAgent/setCredentials()[C:\dev\depot\flex\branches\flex_
201_borneo\sdk\frameworks\mx\messaging\MessageAgent.as:840]

  at
mx.rpc::AbstractService/setCredentials()[C:\dev\depot\flex\branches\flex_201
_borneo\sdk\frameworks\mx\rpc\AbstractService.as:379]

  at
com.adobe.cairngorm.business::SecureDestinationLocator/setCredentialsOnServi
ce()[E:\PerforceClient\dev\www\src\com\adobe\cairngorm\business\SecureDestin
ationLocator.as:263]

  at
com.adobe.cairngorm.business::SecureDestinationLocator/setServiceCredentials
()[E:\PerforceClient\dev\www\src\com\adobe\cairngorm\business\SecureDestinat
ionLocator.as:104]

  at
com.adobe.cairngorm.business::SecureDestinationLocator/setCredentials()[E:\P
erforceClient\dev\www\src\com\adobe\cairngorm\business\SecureDestinationLoca
tor.as:71]

  at
com.cognos.obi.ria.authentication.business::LoginBusinessDelegate/login()[E:
\PerforceClient\dev\www\src\com\cognos\obi\ria\authentication\business\Login
BusinessDelegate.as:35]

  at
com.cognos.obi.ria.authentication.commands::LoginCommand/execute()[E:\Perfor
ceClient\dev\www\src\com\cognos\obi\ria\authentication\commands\LoginCommand
.as:28]

  at
com.adobe.cairngorm.control::FrontController/executeCommand()[C:\dev\swat\pr
ojects\ac_emea\Cairngorm\com\adobe\cairngorm\control\FrontController.as:212]

  at flash.events::EventDispatcher/dispatchEventFunction()

  at flash.events::EventDispatcher/dispatchEvent()

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

  at
com.cognos.obi.ria.authentication.view::LoginForm/login()[E:\PerforceClient\
dev\www\src\com\cognos\obi\ria\authentication\view\LoginForm.mxml:60]

  at
com.cognos.obi.ria.authentication.view::LoginForm/__b_submit_click()[E:\Perf
orceClient\dev\www\src\com\cognos\obi\ria\authentication\view\LoginForm.mxml
:88]

  at flash.events::EventDispatcher/dispatchEventFunction()

  at flash.events::EventDispatcher/dispatchEvent()

  at
mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta3\sdk\frameworks\proj
ects\framework\src\mx\core\UIComponent.as:9041]

  at
net.digitalprimates.flex2.uint.sequence::SequenceEventDispatcher/execute()[C
:\Documents and
Settings\mlabriola\Workspaces\net\digitalprimates\dpUInt\net\digitalprimates
\flex2\uint\sequence\SequenceEventDispatcher.as:67]

  at
net.digitalprimates.flex2.uint.sequence::SequenceRunner/applyActions()[C:\Do
cuments and
Settings\mlabriola\Workspaces\net\digitalprimates\dpUInt\net\digitalprimates
\flex2\uint\sequence\SequenceRunner.as:110]

  at
net.digitalprimates.flex2.uint.sequence::SequenceRunner/continueSequence()[C
:\Documents and
Settings\mlabriola\Workspaces\net\digital

RE: [flexcoders] Re: Get the Domain the Flex app is running in

2008-03-25 Thread Alex Harui
You have to have the right html-template, specifically, the ones with
browser integration in it.  Then you need to call init() on the
BrowserManager.getInstance().  It will fill out the values for you.

 

Underneath the covers it does this:

 

_url = ExternalInterface.call("BrowserHistory.getURL");

 

Which you should be able to just use in the app and skip BrowserManager.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of shivkxr
Sent: Tuesday, March 25, 2008 3:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Get the Domain the Flex app is running in

 

--- In flexcoders@yahoogroups.com 
, "shivkxr" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com
 , "Alex Harui"  wrote:
> >
> > Try BrowserManager.url
> > 
> 
> Alex,
> 
> Yes, I think it should work barring any security issues I might 
> encounter. I'll post my findings here.
> 
> Thanks.
>

Well, so the outcome is that it doesn't work. Actually BrowserManager 
doesn't work at all. I can't imagine under what conditions it would 
work since the url needs to change somehow but I can't see that ever 
happening.

I instantiate an instance of it in the initialize event of the 
application. All it's properties are null. Well, that's that since I 
need to know at that time where (which domain) I'm in. I even tried 
via our server application rather than via the IDE. But no luck there 
either.

Shiv

 



RE: [flexcoders] Re: Singletone class in Application and Modules !?

2008-03-25 Thread Alex Harui
You'll have to send me a test case.  They should be the same.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Tuesday, March 25, 2008 6:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Singletone class in Application and Modules !?

 

I beg to differ. I had setup my app thinking this to be true. When I
did this the module would get it's own, and very different, instance
of my singleton. I had to change the way I did things so what I do
now is upon loading my module, the main app then sets the singleton
into the module. I don't have my example code anymore, but it was
quite easy to produce the results.

Maybe it has to do with the way I compiled my module I compiled
my application with "-link-report=c:\app\encoreNG.link.report.xml" and
my module with "-load-externs=c:\app\encoreNG.link.report.xml". Not
sure if that has anything to do with it. Also, when I had this coded
I was on Flex 3, Beta 3 and have not retested with Flex 3 GA.

Dale

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> They would be the same.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of lytvynyuk
> Sent: Tuesday, March 25, 2008 12:21 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Singletone class in Application and Modules !?
> 
> 
> 
> Is it true if I have singleton class instantiated in main application
> and in module, instances will be different?
> 
> public class DataManager
> {
> private static const singleton_:DataManager = new DataManager();
> 
> public static function get instance():DataManager {
> return singleton_;
> }
> 
> public function DataManager() {
> if (singleton_ != null) {
> throw new Error("Cannot instantiate singleton
> DataManager");
> ! }
> }
> }
> 
> in main application:
> 
> private function init():void {
> this.dataManager = DataManager.instance;
> }
> 
> in module 
> 
> private function init():void {
> this.dataManager = DataManager.instance;
> }
>

 



RE: [flexcoders] Re: Get the Domain the Flex app is running in

2008-03-25 Thread Alex Harui
Application.url is the url of the Flex SWF.  If you're web page came
from some other place, you'll need BrowserManager or its equivalent,
which is to bake in a method in your html-wrapper that you can call via
ExternalInterface.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Winscot
Sent: Tuesday, March 25, 2008 8:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Get the Domain the Flex app is running in

 

Then you should probably stick to the mx.core.Application implementation
and
use mx.utils.URLUtil to extract the bits as follows:

Var fullURL:String = Application.application.url;
Var baseURL:String = fullURL.substring( 0, fullURL.indexOf( "/",
fullURL.indexOf( URLUtil.getServerName( fullURL ) ) ) );
Var protocol:String = URLUtil.getProtocol( fullURL );
Var port:uint = URLUtil.getPort( fullURL );
Var serverName:String = URLUtil.getServerName( fullURL );
Var isSecure:Boolean = URLUtil.isHttpsURL( fullURL );

This is from memory - so... I'm not sure if this will copy/paste. Just
remember that the Application.application.url is going to report the URL
to
the application .swf file - and not the path to the _page_ that
loads/hosts
your .swf. As long as you aren't getting creative with where your .swf
files
live you shouldn't have any problems with this approach.

Just an fyi - the BrowserManager is primarily used with deep linking and
exposes fragments for internal application navigation. Give that example
one
more go - launch it... then in the address bar type in a #foo (exclude
the #
if one is already there) at the very end of the url (i.e.
http://www.bar.com/myapp.html#foo  ).

AND PREPARE TO WET YOUR PANTS!

Rick Winscot

From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
Behalf Of shivkxr
Sent: Tuesday, March 25, 2008 8:31 PM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] Re: Get the Domain the Flex app is running in

--- In flexcoders@yahoogroups.com 
, "Rick Winscot" <[EMAIL PROTECTED]> 
wrote:
>
> You might want to give BrowserManager a go... or mx.utils.URLUtil.
> 
> URLUtil includes functions like
> 
> * getFullURL():String
> * getPort():uint
> * WhosYourDaddy():Daddy
> * getServerName():String

Rick,

I've already tried BrowserManager. It doesn't do the job, in fact I 
can't image how or where one could use it, because it seems the url has 
to change while the FLASH/Flex app is still alive and I've not been 
able to create such a case. I even tried the sample in the docs and it 
doesn't work. I mean it runs ok, but the properties are all null.



 



RE: [flexcoders] Re: Get the Domain the Flex app is running in

2008-03-25 Thread Rick Winscot
Then you should probably stick to the mx.core.Application implementation and
use mx.utils.URLUtil to extract the bits as follows:

Var fullURL:String = Application.application.url;
Var baseURL:String = fullURL.substring( 0, fullURL.indexOf( "/",
fullURL.indexOf( URLUtil.getServerName( fullURL ) ) ) );
Var protocol:String = URLUtil.getProtocol( fullURL );
Var port:uint = URLUtil.getPort( fullURL );
Var serverName:String = URLUtil.getServerName( fullURL );
Var isSecure:Boolean = URLUtil.isHttpsURL( fullURL );

This is from memory - so... I'm not sure if this will copy/paste. Just
remember that the Application.application.url is going to report the URL to
the application .swf file - and not the path to the _page_ that loads/hosts
your .swf. As long as you aren't getting creative with where your .swf files
live you shouldn't have any problems with this approach.

Just an fyi - the BrowserManager is primarily used with deep linking and
exposes fragments for internal application navigation. Give that example one
more go - launch it... then in the address bar type in a #foo (exclude the #
if one is already there) at the very end of the url (i.e.
http://www.bar.com/myapp.html#foo).

AND PREPARE TO WET YOUR PANTS!

Rick Winscot



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of shivkxr
Sent: Tuesday, March 25, 2008 8:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Get the Domain the Flex app is running in

--- In flexcoders@yahoogroups.com, "Rick Winscot" <[EMAIL PROTECTED]> 
wrote:
>
> You might want to give BrowserManager a go… or mx.utils.URLUtil.
> 
> URLUtil includes functions like
> 
> * getFullURL():String
> * getPort():uint
> * WhosYourDaddy():Daddy
> * getServerName():String

Rick,

I've already tried BrowserManager. It doesn't do the job, in fact I 
can't image how or where one could use it, because it seems the url has 
to change while the FLASH/Flex app is still alive and I've not been 
able to create such a case. I even tried the sample in the docs and it 
doesn't work. I mean it runs ok, but the properties are all null.
 




Re: [flexcoders] how to operate *.bat ?

2008-03-25 Thread Josh McDonald
Is "mvn" a .bat file? If so, you want:

call mvn package

instead of

mvn package

-J

On Wed, Mar 26, 2008 at 12:42 PM, h253498088 <[EMAIL PROTECTED]>
wrote:

>   hi All,i write a run.bat file,
> CD C:\test
> mvn package
> copy /y C:\test.war E:\deploy
> pause
>
> but the command "mvn" need 2 minutes to complete. when "mvn" completed,
>
> the command "copy" do not go on .
> i hope to get help, thanks!
>
>  
>



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

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


[flexcoders] Re: How apply custom scrollbar to a container?

2008-03-25 Thread knift1128
you can not do that per say since you would need to extend the panel, 
override the createChildren then remove the one that the Flex team has 
as a standard and then create your own.


If like this,What use does verticalScrollBar prototype have? 



Re: [flexcoders] How apply custom scrollbar to a container?

2008-03-25 Thread Sherif Abdou
you can not do that per say since you would need to extend the panel, override 
the createChildren then remove the one that the Flex team has as a standard and 
then create your own.

- Original Message 
From: knift1128 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 25, 2008 9:42:20 PM
Subject: [flexcoders] How apply custom scrollbar to a container?

for example:(custom scrollbar)
package
{
import flash.events. MouseEvent;

import mx.controls. *;
import mx.controls. scrollClasses. ScrollBar;

public class MyVScrollBar extends VScrollBar
{
private var mBtn:Button;
public function MyVScrollBar( )
{
super();
}
override protected function createChildren( ):void
{
super.createChildre n();
if(!mBtn)
{
mBtn = new Button;
mBtn.label = "II";
this.addChild( mBtn);
}
}
override protected function updateDisplayList
(unscaledWidth: Number, unscaledHeight: Number):void
{
super.updateDisplay List
(unscaledWidth, unscaledHeight) ;
mBtn.setActualSize
(unscaledWidth, unscaledHeight) ;
mBtn.move(0, 0);
}
}
}




this is error.
Initializer for 'verticalScrollBar' : values of type 
mx.controls. scrollClasses. ScrollBar cannot be represented in text.

in this way:
private var vsb:MyVScrollBar;
private function init():void{
vsb = new MyVScrollBar;
Alert.show(( vsb is ScrollBar).toString ());
myPanel.verticalScr ollBar = vsb;

}
Without the error,but custom scroll can't apply container...

How apply custom scrollbar to a container?thanks















  

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

[flexcoders] Re: HashMaps in Flex?

2008-03-25 Thread cdf.procontent
--- In flexcoders@yahoogroups.com, "Anchal Dwivedi"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Is there anything like HashMap in Flex. I am trying to use
Dictionary, but
> there is very less document available in livedocs.
> 
> Also, Is there a way to take out unique elements from three different
> ArrayCollection?
> 
> Thanks!
>
--
Use an associative array of objects.  

See
http://livedocs.adobe.com/flex/3/html/help.html?content=10_Lists_of_data_4.html



[flexcoders] how to operate *.bat ?

2008-03-25 Thread h253498088
hi All,i write a run.bat file, 
CD C:\test
mvn package
copy /y C:\test.war E:\deploy 
pause

but the command "mvn" need 2 minutes to complete. when "mvn" completed,

the command "copy" do not go on .
i hope to get help, thanks!







[flexcoders] How apply custom scrollbar to a container?

2008-03-25 Thread knift1128
for example:(custom scrollbar)
package
{
import flash.events.MouseEvent;

import mx.controls.*;
import mx.controls.scrollClasses.ScrollBar;

public class MyVScrollBar extends VScrollBar
{
private var mBtn:Button;
public function MyVScrollBar()
{
super();
}
override protected function createChildren():void
{
super.createChildren();
if(!mBtn)
{
mBtn = new Button;
mBtn.label = "II";
this.addChild(mBtn);
}
}
override protected function updateDisplayList
(unscaledWidth:Number, unscaledHeight:Number):void
{
super.updateDisplayList
(unscaledWidth,unscaledHeight);
mBtn.setActualSize
(unscaledWidth,unscaledHeight);
mBtn.move(0,0);
}
}
}






this is error.
Initializer for 'verticalScrollBar': values of type 
mx.controls.scrollClasses.ScrollBar cannot be represented in text.

in this way:
private var vsb:MyVScrollBar;
private function init():void{
vsb = new MyVScrollBar;
Alert.show((vsb is ScrollBar).toString());
myPanel.verticalScrollBar = vsb;

}
Without the error,but custom scroll can't apply container...


How apply custom scrollbar to a container?thanks





[flexcoders] Sorting datagrid rows by dragging columns to correct order??

2008-03-25 Thread ozflex
Hi all,

I have a normal dg which is pulling data from MySQL db and i'm trying
to figure out the best way to allow users to drag the rows to re-order
as per however they may want it.. 

This is what I thought buy some feedback would be great!

1. Add 'order' column to sql db
2. Set inital order for each row
3. sort by order desc when pulling db into dg
4. Create function to:
 a. when a user drops a row into desired position make each rows
order = each rows index
 b. update mysql db when all changes are complete

I also thought, maybe remember oldOrder val, + 1 to each order value
from point of insertion until order = oldOrder??

Obviously this method has issues when the # of rows grows.. so thats
why I would love some help with this! there must be a better way :)

Thanks in advance!

Matt (OzFlex Adobe User Group - Melbourne)



[flexcoders] Re: HashMaps in Flex?

2008-03-25 Thread andrewwestberg
There is a HashMap component in AS3 data structures for game
developers.  It's a really good and robust library.  MIT licensed.

http://lab.polygonal.de/ds/

-Andrew



[flexcoders] Need an OO design to stop video...

2008-03-25 Thread cdf.procontent
Okay good people, 

I have a component I created with a list and a video player.  I use a
vstack in the application to switch between my view components like so
(for shortness I have deleted all the attributes) :

 









webView has the player component and on my last foray into this type
of design, I had to rely on the stack to call a method that checked if
the last view selected was the one that contained the video component,
and if it was, it called the .stop() method. That was not a very OO
type design, but it worked. I could attach a listener and do the same
thing, but still not the cleanest...

The best OO concept would be to register an event that will fire from
either the canvas that contains the component, or from the component
itself (which is an HBox) and invoke the method to stop the player
when the view stack moves away from the component or the component's
parent.  This would be the correct OO way of doing things.  Let the
component or the composite container dictate the behavior.

Before all you helpful folks starts suggesting events I can use, here
are the events listed below associated with the Canvas and HBox that I
have tried.  However, when I switch the viewstack, the video keeps on
playing (I did verify that click events worked, so the registration is
working fine).

1. deactivate - A longshot, I knew it was the meant for application
level events.

2. exitState - this looked like the money event, but NOT!

3. removedFromStage - I knew this wouldn't work.

4. resize - I have a wipedown effect that i thought might trigger
this.  Oh well...

5. hide - I didn't think so, and I was right.

I guess the other alternative is to use the ViewStack to dispatch an
event and then register that event with the component and then look at
the passed event to figure out what to do next.  I can live with that,
but it seems like the long way around the block.

Thanks,

Curtis Fisher



Re: [flexcoders] HashMaps in Flex?

2008-03-25 Thread Sherif Abdou
you mean like this?

var dictionary:Dictionary = new Dictionary();
dictionary["flexCoders"] = new Array();
dictionary[hbox] = new ArrayCollection();

and for your second question you can just use an IViewCursor and just put all 
the unique elements into a 4th.Explain more what you want to do.

- Original Message 
From: Anchal Dwivedi <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 25, 2008 9:05:28 PM
Subject: [flexcoders] HashMaps in Flex?


Hi,
 
Is there anything like HashMap in Flex. I am trying to use Dictionary, but 
there is very less document available in livedocs. 
 
Also, Is there a way to take out unique elements from three different 
ArrayCollection?
 
Thanks!
 













  

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

[flexcoders] HashMaps in Flex?

2008-03-25 Thread Anchal Dwivedi
Hi,

Is there anything like HashMap in Flex. I am trying to use Dictionary, but
there is very less document available in livedocs.

Also, Is there a way to take out unique elements from three different
ArrayCollection?

Thanks!


[flexcoders] Re: Web Services - which class?

2008-03-25 Thread carljmosca
I have turned off "Enable strict type checking" in the Flex compiler
options and I can now compile using the web service class which is not
preceded with "Base" in the name.

However when the code is called which adds the result listener, I get
a run-time TypeError Error #2007: Parameter type must be non-null.



[flexcoders] Re: FDS:one-to-many with lazy evaluation

2008-03-25 Thread zdenekmikan
Unfortunately there is no Flexcab sample in LCDS 2.5. Is it still
possible to get it from somewhere? (Or some other one-to-many sample
with Java assembler?)

Zdenek M

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> I believe the FlexCab sample has an example of this.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Dmitry Miller
> Sent: Monday, August 14, 2006 5:29 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] FDS:one-to-many with lazy evaluation
> 
>  
> 
> Hello, everyone
> 
> Does anyone have a sample on managed lazy one-to-many FDS association?
> I could not find one on Adobe site nor on google. Thanks
>




[flexcoders] Re: Singletone class in Application and Modules !?

2008-03-25 Thread dbronk
I beg to differ.  I had setup my app thinking this to be true.  When I
did this the module would get it's own, and very different, instance
of my singleton.  I had to change the way I did things so what I do
now is upon loading my module, the main app then sets the singleton
into the module.  I don't have my example code anymore, but it was
quite easy to produce the results.

Maybe it has to do with the way I compiled my module  I compiled
my application with "-link-report=c:\app\encoreNG.link.report.xml" and
my module with "-load-externs=c:\app\encoreNG.link.report.xml".  Not
sure if that has anything to do with it.  Also, when I had this coded
I was on Flex 3, Beta 3 and have not retested with Flex 3 GA.

Dale

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> They would be the same.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of lytvynyuk
> Sent: Tuesday, March 25, 2008 12:21 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Singletone class in Application and Modules !?
> 
>  
> 
> Is it true if I have singleton class instantiated in main application
> and in module, instances will be different?
> 
> public class DataManager
> {
> private static const singleton_:DataManager = new DataManager();
> 
> public static function get instance():DataManager {
> return singleton_;
> }
> 
> public function DataManager() {
> if (singleton_ != null) {
> throw new Error("Cannot instantiate singleton
> DataManager");
>   !  }
> }
> }
> 
> in main application:
> 
>   private function init():void {
>   this.dataManager = DataManager.instance;
>   }
> 
> in module 
> 
>   private function init():void {
>   this.dataManager = DataManager.instance;
>   }
>




[flexcoders] Web Services - which class?

2008-03-25 Thread carljmosca
I have generated a web service client using a WSDL from an Axis 1.4
web service using the demo version of FB3 on OS X.

I end up with two classes and I am wondering which one should be used
to call the web service.

One class name is preceded with "Base".  If I use this class, I can
call the web service and using the debugger I can tell the web service
is called and the result is returned as expected.  However the
listener is not called (and at this point I do not know why).

If I use the class which is named as expected (i.e. not named with the
"Base" prefix), I cannot call the web service because there are
compilation errors in the generated code:

Severity and DescriptionPathResourceLocation
Creation Time   Id
1067: Implicit coercion of a value of type
dcn.circ4:GetCCTransactionsResultEvent to an unrelated type
flash.events:Event. JFinSysUF/src/dcn/circ4
CMECF_WS_CommonReportsServiceService.as line 1471206493836945   121838
1119: Access of possibly undefined property GetCCTransactions_RESULT
through a reference with static type Class. JFinSysUF/src/dcn/circ4
CMECF_WS_CommonReportsServiceService.as line 1351206493836942   121834
1119: Access of possibly undefined property headers through a
reference with static type dcn.circ4:GetCCTransactionsResultEvent.
JFinSysUF/src/dcn/circ4 CMECF_WS_CommonReportsServiceService.as
line 1451206493836943   121836
1119: Access of possibly undefined property result through a reference
with static type dcn.circ4:GetCCTransactionsResultEvent.
JFinSysUF/src/dcn/circ4 CMECF_WS_CommonReportsServiceService.as
line 1441206493836942   121835
1119: Access of possibly undefined property result through a reference
with static type dcn.circ4:GetCCTransactionsResultEvent.
JFinSysUF/src/dcn/circ4 CMECF_WS_CommonReportsServiceService.as
line 1461206493836944   121837
 
My questions are what is the difference in the two classes and what's
causing the 1067 and 1119 errors?

TIA,
Carl



[flexcoders] Flex, BlazeDS, and Spring - mapping objects

2008-03-25 Thread joanne_pons

I want to map a Spring AOP proxy to an Actionscript object in Flex.
The mapping works when I use a POJO as the RemoteClass, but when I
substitute the class for an interface, I get an error when Flex tries
to map the object. Is there another step that I am missing in order to
map my Spring proxy.

Thanks,
Joanne



[flexcoders] Re: Adding Children to Canvases

2008-03-25 Thread kenny14390
Thank you, Gordon! That did the trick. Here is the clone() method I wrote:

public function clone():ScheduleElement{
var clone:ScheduleElement = new ScheduleElement();
clone.setLabels(this.crsDeptLbl,this.crsNumLbl);
clone.x = this.x;
clone.width = this.width;
return clone;
}

One thing to note is that I didn't have to specify "override" for this
function.

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> A child DisplayObject can only have one parent, so you can't add 'item'
> to more than one Canvas. When you add it to the second one it gets
> removed from the first, etc.
> 
>  
> 
> You need to implement a clone() method to make copies of your items.
> 
>  
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
>  
> 



[flexcoders] Flex module support multi processor ?

2008-03-25 Thread Yohanes Iwan Sugiarto
Hi,

My company is about to invest a new server for development (Apache + Flex
Compiler module in Windows server environment)
Will Flex compiler module take advantage from the multiprocessor box?
i.e Quad Core Xeon vs Dual Core Xeon, will extra money we put for the quad
core worth the effort?

Thanks.
-- 
/ i w a n


Re: [flexcoders] How do I remove an effect?

2008-03-25 Thread Josh McDonald
I was beginning to think that might be the only way to go about it. Lame :(

But cheers :)

-J

On Wed, Mar 26, 2008 at 9:53 AM, Rick Winscot <[EMAIL PROTECTED]>
wrote:

>A MATEY.
>
>
>
> Foo.filters = [];
>
>
>
> Where Foo be your object with the filter.
>
>
>
>
>
> Rick Winscot
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Christian
> *Sent:* Tuesday, March 25, 2008 6:17 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] How do I remove an effect?
>
>
>
> I'm not sure if this is possible, but I know that in the past, I've set
> effects using setStyle('effectName', EffectClassInstance). Would it be
> possible to just use that and set it to null perhaps?
>
> On Tue, Mar 25, 2008 at 3:09 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>
> Hey guys,
>
> How do I remove an effect? stop() and end() both just stop the effect,
> rather than getting rid of it. Do I have to go and remove the filter by hand
> (it's a glow Effect)?
>
> -J
>
> --
> "Therefore, send not to know For whom the bell tolls, It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>
>
>
>
> --
>
> "Every child has many wishes. Some include a wallet, two chicks and a
> cigar, but that's another story."
>
>   
>



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

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


RE: [flexcoders] Re: Adding Children to Canvases

2008-03-25 Thread Gordon Smith
A child DisplayObject can only have one parent, so you can't add 'item'
to more than one Canvas. When you add it to the second one it gets
removed from the first, etc.

 

You need to implement a clone() method to make copies of your items.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kenny14390
Sent: Tuesday, March 25, 2008 6:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Adding Children to Canvases

 

I tried using "for" loops to iterate through the days string, but that
will not even display any of the days or none will display correctly.

Interestingly, if I reverse the order of the "if" statements, like this:

if (days.search("U")!=-1){
sun.addChild(item);
}
if (days.search("S")!=-1){
sat.addChild(item);
}
if (days.search("F")!=-1){
fri.addChild(item);
}
if (days.search("R")!=-1){
thurs.addChild(item);
}
if (days.search("W")!=-1){
wed.addChild(item);
}
if (days.search("T")!=-1){
tues.addChild(item);
}
if (days.search("M")!=-1){
mon.addChild(item);
}

then I get the opposite problem and only the first day in the string
is displayed and the last ones are ignored. If there is only one day
in the string, then it displays fine. Help!

 



[flexcoders] Re: Adding Children to Canvases

2008-03-25 Thread kenny14390
I tried using "for" loops to iterate through the days string, but that
will not even display any of the days or none will display correctly.

Interestingly, if I reverse the order of the "if" statements, like this:

if (days.search("U")!=-1){
sun.addChild(item);
}
if (days.search("S")!=-1){
sat.addChild(item);
}
if (days.search("F")!=-1){
fri.addChild(item);
}
if (days.search("R")!=-1){
thurs.addChild(item);
}
if (days.search("W")!=-1){
wed.addChild(item);
}
if (days.search("T")!=-1){
tues.addChild(item);
}
if (days.search("M")!=-1){
mon.addChild(item);
}

then I get the opposite problem and only the first day in the string
is displayed and the last ones are ignored. If there is only one day
in the string, then it displays fine. Help!



[flexcoders] Adding Children to Canvases

2008-03-25 Thread kenny14390
I have 7 Canvases, one for each day of the week. When the user wants
to add something to the weekly schedule, it could have multiple days
(Monday and Wednesday, for example). The days to add are in a string
like this: "UMTWRFS", where each letter represents a corresponding day
of the week. If the days are just Monday, Wednesday, and Friday, the
string would look like this: "MWF".

Here's my problem, I wrote ActionScript to check if a day is in the
string and if so, add it to its corresponding canvas via addChild().
Here is my code:

if (days.search("M")!=-1){
mon.addChild(item);
}
if (days.search("T")!=-1){
tues.addChild(item);
}
if (days.search("W")!=-1){
wed.addChild(item);
}
if (days.search("R")!=-1){
thurs.addChild(item);
}
if (days.search("F")!=-1){
fri.addChild(item);
}
if (days.search("S")!=-1){
sat.addChild(item);
}
if (days.search("U")!=-1){
sun.addChild(item);
}

My problem is that if "days" is multiple days, only the last day is
added to its canvas. This is very strange since I am using 7
independent "if" statements. I debugged and I saw the code execute
correctly for all of the days in the string, but only the last one
showed up visually in the canvas. Am I doing something wrong? Any help
is appreciated.



Re: [flexcoders] AMFPHP with NetConnection or RemoteObject ?

2008-03-25 Thread Mario Falomir
Thanks for the info Aaron :)

On Tue, Mar 25, 2008 at 4:07 PM, Aaron Miller <
[EMAIL PROTECTED]> wrote:

>   The page on the AMFPHP 1.9 beta release recommends using RemoteObject.
> When using NetConnection, for some reason AMFPHP uses AMF0 instead of AMF3.
> Someone else on this list ran into a problem with this when returning a
> record set from their service. AS3 no longer supports the RecordSet class,
> but if you used RemoteObject instead it would send it back as an
> ArrayCollection over AMF3.
>
> I've been tinkering around with NetConnection seeing if I can get a work
> around for this, but have been unsuccessful so far.
>
> Hope this helps,
>
> ~Aaron
>
>
> On Tue, Mar 25, 2008 at 3:17 PM, Mario Falomir <[EMAIL PROTECTED]>
> wrote:
>
> >   Hi, which approach it is better for AMFPHP Flash Remoting, to use
> > flash.net.NetConnection or the Flex Framework RemoteObject component?
> > Are there any advantages/disadvatages from one over the other?
> >
> > Regards,
> > Mario
> >
>
>
>
> --
> Aaron Miller
> Chief Technology Officer
> Open Base Interactive, LLC.
> [EMAIL PROTECTED]
> http://www.openbaseinteractive.com
> 
>


[flexcoders] Re: Get the Domain the Flex app is running in

2008-03-25 Thread shivkxr
--- In flexcoders@yahoogroups.com, "Rick Winscot" <[EMAIL PROTECTED]> 
wrote:
>
> You might want to give BrowserManager a go… or mx.utils.URLUtil.
> 
> URLUtil includes functions like
> 
> * getFullURL():String
> * getPort():uint
> * WhosYourDaddy():Daddy
> * getServerName():String

Rick,

I've already tried BrowserManager. It doesn't do the job, in fact I 
can't image how or where one could use it, because it seems the url has 
to change while the FLASH/Flex app is still alive and I've not been 
able to create such a case. I even tried the sample in the docs and it 
doesn't work. I mean it runs ok, but the properties are all null.




[flexcoders] Panel Skinned With Flash Has Content Area Too Big

2008-03-25 Thread henry_navarro
I have instances of the Panel component that was skinned using the
Flex Skin Component Kit for Flash. The problem is that the content
areas of these panels occupy the entire panel area. An unskinned panel
has a content area that is within the panel's edges and header. For my
skinned panels, the content area extends to all four edges of the
panel (top, bottom, left, right). Any components placed inside the
panel goes beyond the usual white content area and crosses into the
header. In Flash file, I only touched the panel base layer and left
the content area and shadow layers as in the original distribution.

How can I fix this content area size problem? Please help. Thanks.



Re: [flexcoders] AMFPHP with NetConnection or RemoteObject ?

2008-03-25 Thread Aaron Miller
The page on the AMFPHP 1.9 beta release recommends using RemoteObject. When
using NetConnection, for some reason AMFPHP uses AMF0 instead of AMF3.
Someone else on this list ran into a problem with this when returning a
record set from their service. AS3 no longer supports the RecordSet class,
but if you used RemoteObject instead it would send it back as an
ArrayCollection over AMF3.

I've been tinkering around with NetConnection seeing if I can get a work
around for this, but have been unsuccessful so far.

Hope this helps,

~Aaron

On Tue, Mar 25, 2008 at 3:17 PM, Mario Falomir <[EMAIL PROTECTED]> wrote:

>   Hi, which approach it is better for AMFPHP Flash Remoting, to use
> flash.net.NetConnection or the Flex Framework RemoteObject component? Are
> there any advantages/disadvatages from one over the other?
>
> Regards,
> Mario
>  
>



-- 
Aaron Miller
Chief Technology Officer
Open Base Interactive, LLC.
[EMAIL PROTECTED]
http://www.openbaseinteractive.com


RE: [flexcoders] Re: Get the Domain the Flex app is running in

2008-03-25 Thread Rick Winscot
You might want to give BrowserManager a go… or mx.utils.URLUtil.

URLUtil includes functions like

* getFullURL():String
* getPort():uint
* WhosYourDaddy():Daddy
* getServerName():String

Search the Flex docs or online for BrowserManager or URLUtil - I'm sure you
will find what you are looking for.

Rick Winscot



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of shivkxr
Sent: Tuesday, March 25, 2008 2:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Get the Domain the Flex app is running in

> The Flash Player does give the domain it is running from. As 
others 
> have stated, Application.application.url will give it to you. You 
don't 
> want to get get the domain it is running off of, you want to get the 
> domain of the web page that embeds it.

That is correct. I need the domain the web page is in. However, 
Application.application.url gives me the domain of the .swf file and 
that is my domain, not the domain of the web page hosting the swf.
 




RE: [flexcoders] Flex component swf file

2008-03-25 Thread Rick Winscot
>From your description - it sounds like the rogue component is.



1. In another project - you will need to move that project to your other
machine as well.
2. A .swc sitting on your computer somewhere outside your project folder -
copy it to a directory (i.e. swc) in your project folder and change the
reference in the properties - > Flex Build Path - > Library Path (tab) to
that .swc.

 

Another way to get a project from one machine to another cleanly - is to
right click on the project (in the navigator) and select export. From the
export dialog select Flex Builder - > Flex Project Archive. Then on the
other machine right click in the navigator and select import. Then from the
import dialog - > General - > Project Archive.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Tuesday, March 25, 2008 3:01 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex component swf file

 

Are you trying to move the source code or the application?

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Remya
Sent: Tuesday, March 25, 2008 2:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex component swf file

 

Hi 
I have an application which uses a pop up window containing a flex
component. I need to port the application to a different machine. I am
able to transfer my main application file and pop up window's swf file
but I am not able to do the same thing with the component. This
component is used by pop up window in the item renderer property of a
tilelist. Please help.

 

<><>

[flexcoders] Flash Player 9 Security Update

2008-03-25 Thread Rick Winscot
I just wanted to throw this out there... for anyone who has spent blood and
tears putting together a Flex app. If you maintain crossdomain files, use
sockets, communicate across Flash apps and etc. You probably want to give
this bulletin a good read before the end of the week (if you haven't
already).

http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_upda
te.html

Rick Winscot




RE: [flexcoders] How do I remove an effect?

2008-03-25 Thread Rick Winscot
A MATEY.

 

Foo.filters = [];

 

Where Foo be your object with the filter.

 

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Christian
Sent: Tuesday, March 25, 2008 6:17 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How do I remove an effect?

 

I'm not sure if this is possible, but I know that in the past, I've set
effects using setStyle('effectName', EffectClassInstance). Would it be
possible to just use that and set it to null perhaps?

On Tue, Mar 25, 2008 at 3:09 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

Hey guys,

How do I remove an effect? stop() and end() both just stop the effect,
rather than getting rid of it. Do I have to go and remove the filter by hand
(it's a glow Effect)?

-J

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

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




-- 

"Every child has many wishes. Some include a wallet, two chicks and a cigar,
but that's another story."

 

<><>

Re: [flexcoders] Re: How do I set width to 100% in actionscript?

2008-03-25 Thread Robert Stehwien
Yep, with "percentHeight"

On Tue, Mar 25, 2008 at 4:51 PM, arieljake <[EMAIL PROTECTED]> wrote:

> Along these lines, can a resize effect with property "heightTo" be
> given a percent height?
>
> --- In flexcoders@yahoogroups.com, "westlandc" <[EMAIL PROTECTED]> wrote:
> >
> > --- In flexcoders@yahoogroups.com, "luvfotography"  wrote:
> > >
> > > How do I set the width to 100% using actionscript??
> > > It only allows a number - not a string!?!
> > >
> > >
> > > var newcanvas:Canvas = new Canvas();
> > >
> > > newcanvas.width = "100%";
> > >
> > >
> > > 1067: Implicit coercion of a value of type String to an unrelated type
> > > Number.
> > >
> >
> > Use percentWidth
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


Re: [flexcoders] Re: How do I set width to 100% in actionscript?

2008-03-25 Thread Sherif Abdou
you could always do something like Application.application.Width * .5 if say 
you want 50% but no i  heightTo can not be %

- Original Message 
From: arieljake <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 25, 2008 5:51:12 PM
Subject: [flexcoders] Re: How do I set width to 100% in actionscript?

Along these lines, can a resize effect with property "heightTo" 
be
given a percent height?

--- In [EMAIL PROTECTED] ups.com, "westlandc" <[EMAIL PROTECTED] > wrote:
>
> --- In [EMAIL PROTECTED] ups.com, "luvfotography"  wrote:
> >
> > How do I set the width to 100% using actionscript? ?
> > It only allows a number - not a string!?!
> > 
> > 
> > var newcanvas:Canvas = new Canvas();
> >  
> > newcanvas.width = "100%";
> > 
> > 
> > 1067: Implicit coercion of a value of type String to an unrelated type
> > Number.
> >
> 
> Use percentWidth
>















  

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

[flexcoders] Re: How do I set width to 100% in actionscript?

2008-03-25 Thread arieljake
Along these lines, can a resize effect with property "heightTo" be
given a percent height?

--- In flexcoders@yahoogroups.com, "westlandc" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "luvfotography"  wrote:
> >
> > How do I set the width to 100% using actionscript??
> > It only allows a number - not a string!?!
> > 
> > 
> > var newcanvas:Canvas = new Canvas();
> >  
> > newcanvas.width = "100%";
> > 
> > 
> > 1067: Implicit coercion of a value of type String to an unrelated type
> > Number.
> >
> 
> Use percentWidth
>




Re: [flexcoders] Re: flex builder 3 on os x very very slow in debug mode

2008-03-25 Thread Josh McDonald
If it happens in both FF and Safari, the bug is most likely in OS X or Flash
/ Flex (or all three), so I don't see Opera helping. IE5 might though, as it
runs in Rosetta. Can you get the latest player on PowerPC?

-J

On Wed, Mar 26, 2008 at 3:14 AM, Willy Ci <[EMAIL PROTECTED]> wrote:

>   or  you can try Opera,
> if that still give you problem I think IE 5 is your lost hope.
>
> Willy
>
>
>
> On Mon, Mar 24, 2008 at 7:07 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>
> >   There's definitely some problems with the debug flash player on OS X.
> > I get hard lockups (nothing but the mouse working, not a kpanic) several
> > times a week, in Safari and Firefox.
> >
> > -J
> >
> >  On Mon, Mar 24, 2008 at 11:43 PM, Willy Ci <[EMAIL PROTECTED]> wrote:
> >
> > >   thank, just tried with Safari, much faster now.
> > > I am using FireFox 2.0.0.12 and FP 9,0,115,0
> > >
> > > Willy
> > >
> > >
> > >
> > > On Sun, Mar 23, 2008 at 10:36 PM, Mike Morearty <
> > > [EMAIL PROTECTED]> wrote:
> > >
> > > >   I am have not seen this problem. What browser are you debugging
> > > > with? Try a different
> > > > one -- e.g. if you are debugging with a different one -- e.g. if you
> > > > are using Safari, try
> > > > debugging with Firefox, or vice versa. Let me know if that helps.
> > > >
> > > > - Mike Morearty, Adobe Flex Builder team
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com ,
> > > > "Willy Ci" <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > hi ,
> > > > >
> > > > > does anyone else having this problem?
> > > > > I just install flex builder 3 on my mac book pro, (use to have
> > > > flex builder
> > > > > 2, works fine)
> > > > > everything works fine, but if I try go into debug,
> > > > > the flex builder just went very very slow, a lot of times I have
> > > > to do the
> > > > > hard reboot
> > > > >
> > > > > is there anyway I can fix this? like change the memory in plist?
> > > > >
> > > > > thanks
> > > > >
> > > > > --
> > > > > Willy
> > > >
> > > >
> > >
> > >
> > > --
> > > Willy
> > > 617-606-3437
> > >
> > > --
> > > maybe today is a good day to write some code,
> > > hold on, late me take a nap first ... Zzzz
> > >
> > > Q: How do you spell "google"?
> > > A: Why don't you google it?
> > > --
> > >
> > >
> >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls, It tolls for
> > thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
>
>
> --
> Willy
> 617-606-3437
>
> --
> maybe today is a good day to write some code,
> hold on, late me take a nap first  ... Zzzz
>
> Q: How do you spell "google"?
> A: Why don't you google it?
> --
>  
>



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

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


[flexcoders] AMFPHP with NetConnection or RemoteObject ?

2008-03-25 Thread Mario Falomir
Hi, which approach it is better for AMFPHP Flash Remoting, to use
flash.net.NetConnection or the Flex Framework RemoteObject component? Are
there any advantages/disadvatages from one over the other?

Regards,
Mario


Re: [flexcoders] drawing in Flex

2008-03-25 Thread VELO
May be this is what you are looking for:
http://www.degrafa.com/


VELO

On Tue, Mar 25, 2008 at 6:51 PM, Douglas Knudsen
<[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Andrew Trice just posted a nifty example of using the drawing API in Flex
> here
> http://www.insideria.com/2008/03/try-out-the-drawing-api-withou.html
>
> The source is there and is a good example of what can be done.
>
> DK
>
>
> On Tue, Mar 25, 2008 at 5:43 PM, Willy Ci <[EMAIL PROTECTED]> wrote:
>
> >
> >
> >
> >
> >
> >
> > hi ,
> >
> > Does anyone know if there is a tutorial on drawing, just basic function,
> using mouse draw line,
> > circle, resize shape, free hand drawing?
> > or just how can I do it in Flex or AIR?
> >
> > I can't find the FlexDraw anywhere, looks like I have to rewrite it.
> > www.boomslide.com/flexDraw
> >
> > thanks
> > --
> > Willy
> >
> >
>
>
>
> --
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it? 


[flexcoders] Re: How to pass Flex ArrayCollection to Coldfusion CFC?

2008-03-25 Thread Don Kerr
Oh, so is it a ColdFusion-side question? I pass whatever data there is
on the flex side (text,object,array, selectedItems, etc.) back to the
CFC via a single Object.

The CFC argument must be of type Struct.

In this example below, gridData might be myGrid.selectedItems, or
myGrid.dataProvider passed in the mydata object. Then I just loop
through the Array and do the insert or update.







INSERT INTO CRreleased
(WeekEnding,planned,plannedReleased,unplannedReleased,externalReleased)
VALUES
(#mydata.gridData[i].WeekEnding#,#mydata.gridData[i].planned#,#mydata.gridData[i].plannedReleased#,#mydata.gridData[i].unplannedReleased#,#mydata.gridData[i].externalReleased#)






Don


--- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]>
wrote:
>
> Hi Don,
> 
> I have read the code in your demo. but this one is show us how to read
> data from coldfusion cfc and save to flex Arraycollection.
> 
> My question is how to update database with cfc after I pass updated
> ArrayCOllection from Flex.
> 
> Thanks a lot
> 
> Mark
> 
> --- In flexcoders@yahoogroups.com, "Don Kerr"  wrote:
> >
> > I put this demo together for my Space City AUG meeting to show the
> > basics of ColdFusion-Flex. I think these two examples will get you
> > what you need
> > http://www.fusionpage.com/flex/demos/bin/demos.html
> > 
> > Don Kerr
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "markflex2007" 
> > wrote:
> > >
> > > A documentation said Flex ArrayCollection maps to Coldfusion query,
> > > 
> > > Do you have a sample to do this so I can understand it.
> > > 
> > > Thnaks
> > > 
> > > Mark
> > > 
> > > --- In flexcoders@yahoogroups.com, Jeffry Houser  wrote:
> > > >
> > > > 
> > > >   ArrayCollection maps to an Array
> > > > 
> > > >   I'm sure this is documented somewhere; did you look?
> > > > 
> > > > markflex2007 wrote:
> > > > > 
> > > > > 
> > > > > How to pass Flex ArrayCollection to Coldfusion CFC?
> > > > > 
> > > > > Which data type in coldfusion can accept Flex ArrayCollection?
> > > > > 
> > > > > Thanks
> > > > > 
> > > > > Mark
> > > > > 
> > > > > 
> > > > 
> > > > -- 
> > > > Jeffry Houser
> > > > Flex, ColdFusion, AIR
> > > > AIM: Reboog711  | Phone: 1-203-379-0773
> > > > --
> > > > Adobe Community Expert 
> > > >

> > > > My Company: 
> > > > My Podcast: 
> > > > My Blog: 
> > > >
> > >
> >
>




[flexcoders] RemoteObject and Arguments Order

2008-03-25 Thread Franca Daniel
 HI all,

  Iam using remoteObject (WebOrb) in my flex
application and i got a problem with arguments order,
argumentNames doen´t working. Thats only work when i
fill argumentNames with same Server side declaration
order, Whys that ? why we need argumentNames array ? 

 Anyone have a idead ?

 Thank you and sorry for bad engilsh!

 Daniel
 


  Abra sua conta no Yahoo! Mail, o único sem limite de espaço para 
armazenamento!
http://br.mail.yahoo.com/


[flexcoders] Re: Get the Domain the Flex app is running in

2008-03-25 Thread shivkxr
--- In flexcoders@yahoogroups.com, "shivkxr" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > Try BrowserManager.url
> > 
> 
> Alex,
> 
> Yes, I think it should work barring any security issues I might 
> encounter. I'll post my findings here.
> 
> Thanks.
>

Well, so the outcome is that it doesn't work. Actually BrowserManager 
doesn't work at all. I can't imagine under what conditions it would 
work since the url needs to change somehow but I can't see that ever 
happening.

I instantiate an instance of it in the initialize event of the 
application. All it's properties are null. Well, that's that since I 
need to know at that time where (which domain) I'm in. I even tried 
via our server application rather than via the IDE. But no luck there 
either.

Shiv



[flexcoders] Re: Flex 3, generated webservice classes, Namespace error.

2008-03-25 Thread handitan
Bump this thread up since I have the same issue as well.



--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Addl info: 
> 
> That is a run-time error, and I am implementing the webservice 
using AS,
> not mxml.
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Tracy Spratt
> Sent: Tuesday, February 12, 2008 2:37 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex 3, generated webservice classes, 
Namespace
> error.
> 
>  
> 
> Using the very latest Flex Builder, I have used the "Import Web 
Service"
> functionality to generate a set of webservice classes from my own 
simple
> web service(.net asmx).
> 
> When I try to call one of my operations, my web service is hit, and 
the
> data is returned and visible in the Flex debugger, but I get an 
error in
> the result handling code:
> 
> Cannot find definition for type
> 'http://www.Lariatinc.com/Coalesce/::getItemsResult_type0'
>  
> 
> That is the namespace I have assigned in my webservice, and that is 
the
> generated type class.
> 
> But how do I tell the generated WS code to use that namespace?  And 
it
> is just on the result end, the other classes work fine.
> 
> Generated code is great, but when there is a problem, it is hard to 
know
> where to look for a solution.
> 
> Tracy
>




[flexcoders] Re: Need to determine allowScriptAccess/allowNetworkAccess at run time

2008-03-25 Thread shivkxr
--- In flexcoders@yahoogroups.com, Jon Bradley <[EMAIL PROTECTED]> wrote:
> Ah. I misread your request then. Sorry about that!
> 
> - jb

No problem.




Re: [flexcoders] drawing in Flex

2008-03-25 Thread Douglas Knudsen
Andrew Trice just posted a nifty example of using the drawing API in Flex
here
http://www.insideria.com/2008/03/try-out-the-drawing-api-withou.html

The source is there and is a good example of what can be done.

DK

On Tue, Mar 25, 2008 at 5:43 PM, Willy Ci <[EMAIL PROTECTED]> wrote:

>   hi ,
>
> Does anyone know if there is a tutorial on drawing, just basic function,
> using mouse draw line,
> circle, resize shape, free hand drawing?
> or just how can I do it in Flex or AIR?
>
> I can't find the FlexDraw anywhere, looks like I have to rewrite it.
> www.boomslide.com/flexDraw
>
> thanks
> --
> Willy
>
>  
>



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


[flexcoders] drawing in Flex

2008-03-25 Thread Willy Ci
hi ,

Does anyone know if there is a tutorial on drawing, just basic function,
using mouse draw line,
circle, resize shape, free hand drawing?
or just how can I do it in Flex or AIR?

I can't find the FlexDraw anywhere, looks like I have to rewrite it.
www.boomslide.com/flexDraw

thanks
-- 
Willy


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

2008-03-25 Thread toofah_gm
Thanks venkat.

Where do I set ANT_OPTS?  Can I set it within FlexBuilder? or in my
ant build.xml file anywhere?

Gary


--- In flexcoders@yahoogroups.com, "rueter007" <[EMAIL PROTECTED]> wrote:
>
> set the following environment variable before the build depending on
> your platform.
> 
> set ANT_OPTS=-Xmx500M 
>   or
> set ANT_OPTS=-Xmx500M ; export ANT_OPTS
> 
> - venkat
> 
> --- In flexcoders@yahoogroups.com, ivo  wrote:
> >
> > 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.OutOfMemoryError: 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
> >
>




Re: [flexcoders] compc java.lang.OutOfMemoryError: Java heap space

2008-03-25 Thread ivo
I hit this same thing some time ago & the solutions was to increase the heap 
space for ant

http://tech.groups.yahoo.com/group/flexcoders/message/102140

- Ivo

- Original Message 
From: toofah_gm <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 25, 2008 2:06:03 PM
Subject: [flexcoders] compc java.lang.OutOfMemoryError: Java heap space

I am now trying to build using Ant and keep getting the 
following error:

[compc] Loading configuration file C:\Program Files\Adobe\ Flex
Builder 3\sdks\3.0.0\ frameworks\ flex-config. xml
[compc] Error: Java heap space
[compc] java.lang.OutOfMemo ryError: Java heap space

Does anyone know how to fix it?  I've tried increasing the java memory
vm parameters.  I've also added fork="true" to the compc task.  I
can't find a solution.

Thanks,

Gary














RE: [flexcoders] Flex 3 ComboBox and Editable property

2008-03-25 Thread Alex Harui
The following worked for me.  If your dataProvider is assigned later
that might make a difference.

 

var foo:ComboBox = new
ComboBox();

addChild(foo);

foo.y = 100;

foo.editable = true;

foo.dataProvider =
['Gordon', 'Alex'];

foo.selectedIndex = -1;

foo.text = "nuts";

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike_Robinson_98
Sent: Tuesday, March 25, 2008 12:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 3 ComboBox and Editable property

 

Hi,

I'm attempting to migrate from Flex2 to 3. One issue I'm have is with
the ComboBox. In particular, with the Editable property set true.

Previously, if I wanted to set an editable combobox to display a value
OTHER than one of the values in the dataProvider (an ArrayCollection
of Strings), I just set the 'text' property to some string. In Flex3,
this does not seem to have any effect. I even added setting the
selectedIndex to -1, first but still no change. The desired text value
does not show up, just the 1st element of the dataProvider.

cb_freight.selectedIndex = -1;
cb_freight.text = "This is a test";

Anyone else found this the case?

 



[flexcoders] compc java.lang.OutOfMemoryError: Java heap space

2008-03-25 Thread toofah_gm
I am now trying to build using Ant and keep getting the following error:

[compc] Loading configuration file C:\Program Files\Adobe\Flex
Builder 3\sdks\3.0.0\frameworks\flex-config.xml
[compc] Error: Java heap space
[compc] java.lang.OutOfMemoryError: Java heap space


Does anyone know how to fix it?  I've tried increasing the java memory
vm parameters.  I've also added fork="true" to the compc task.  I
can't find a solution.

Thanks,

Gary



RE: [flexcoders] Flex ContextMenu in a DataGrid

2008-03-25 Thread Alex Harui
You should be able to get the ContextMenu's events and modify the menu
before it goes up.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mr_j_harris
Sent: Tuesday, March 25, 2008 12:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex ContextMenu in a DataGrid

 


Again, do I suck or does Flex suck? Answer: BOTH!



#1. I would like to have a specific contect menu per column. Perhaps I
could do that in itemRenderer, introducing another level of bogosity.

#2a. The context menu renders when the DataGrid is 'instantiated'
.. I need it to render at the instant it is called up by the user's
mouse click or context-menu-button press)... great: digression: The
context menu button triggers a browser-level (Firefox at this instant)
ho hum...

anyway:
#2b: I need the context menu rendered at the instant it is called up
by the user, in order to be able to determine those items that should
be included, and as an opportunity to gray-out (i.e. disable) items
based on the context of the item that was clicked: in particular, my
DataGrid cell-level content. That's the context!

Any advice? It could involve roll-out events, whatever it takes!

-- John Harris

 



RE: [flexcoders] Flex component swf file

2008-03-25 Thread Alex Harui
If you are moving a compiled application, the component for each tile in
the tilelist is baked into the SWF and should move with it.  Someone
might have put it in a different SWF, but then it should be "near" the
other swfs and move with it.

 

More likely, the url it is using for webservices is no longer correct
and needs updating.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Remya Subramanyam
Sent: Tuesday, March 25, 2008 12:14 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex component swf file

 

 

Hi,

I have a test Environment having access to web services, into which I am
porting the swf files and checking if the service calls are working. I
could port the main application mxml and title window mxml files' swf
files. But I guess the tilelist in the pop up window is not populating,
since the flex component responsible for each tile in the tilelist is
not found. 

Please help me.

Thanks
Remya

 

 

- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, 25 March, 2008 12:01:18 PM
Subject: RE: [flexcoders] Flex component swf file

Are you trying to move the source code or the application?

 



From: [EMAIL PROTECTED] ups..com [mailto:flexcoders@ yahoogroups. com]
On Behalf Of Remya
Sent: Tuesday, March 25, 2008 2:12 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Flex component swf file

 

Hi 
I have an application which uses a pop up window containing a flex
component. I need to port the application to a different machine. I am
able to transfer my main application file and pop up window's swf file
but I am not able to do the same thing with the component. This
component is used by pop up window in the item renderer property of a
tilelist. Please help.

 







Save all your chat conversations. Find them online..
 

 



RE: [flexcoders] Singletone class in Application and Modules !?

2008-03-25 Thread Alex Harui
They would be the same.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lytvynyuk
Sent: Tuesday, March 25, 2008 12:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Singletone class in Application and Modules !?

 

Is it true if I have singleton class instantiated in main application
and in module, instances will be different?

public class DataManager
{
private static const singleton_:DataManager = new DataManager();

public static function get instance():DataManager {
return singleton_;
}

public function DataManager() {
if (singleton_ != null) {
throw new Error("Cannot instantiate singleton
DataManager");
  !  }
}
}

in main application:

  private function init():void {
  this.dataManager = DataManager.instance;
  }

in module 

  private function init():void {
  this.dataManager = DataManager.instance;
  }

 



RE: [flexcoders] Can a Listener return a value

2008-03-25 Thread Alex Harui
Sorry, read the code incorrectly.  Thought he was modifying the event
properties.  Modifying a property on the object is "ok" until you have
two listeners both trying to set that property.

 

Events are really for notification, and notifications aren't really
supposed to answer any other question than "that's (not) ok with me".
The cancelable/preventDefault() mechanism is used for that, and
propagation control is used to block notification.

 

That's not to say I'm one of the strict-minded folks.  I've definitely
found scenarios where I would want to  modify the payload of an event.
Even though it disturbs our more strict-minded developers, passing a
reference to a mutable object is sort of a token-passing behavior where
listeners get to modify it as it goes around, but in the order of
propagation.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Andrews
Sent: Tuesday, March 25, 2008 12:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Can a Listener return a value

 

- Original Message - 

From: Alex Harui   

To: flexcoders@yahoogroups.com
  

Sent: Tuesday, March 25, 2008 6:49 PM

Subject: RE: [flexcoders] Can a Listener return a value

 

That works, but is considered a "hack" in the strictest sense.
The W3C Events spec indicates that event properties are read-only.
Flash allows writing to them to make setup easier (constructor args are
easy to mix up).

 

Hmm. In this sense, surely event.target is a reference to an object, so
really this has nothing to do with event properties at all? (it's just
using the object reference to set a public attribute). Or are you
referring to the lack of a cast -
SomeClass(event.target).publicParameter ?

 

Of course the listener could also call a callback method -
SomeClass(event.target).aCallbackFn() .

 

Paul

 





From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED]
On Behalf Of Mike Krotscheck
Sent: Tuesday, March 25, 2008 11:34 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Can a Listener return a value

 

foo.addEventListener( Event.SomeEvent, responderEventHandler );

 

private function responderEventHandler(event:Event):void

{

event.target.publicParameter = "bar";

}

 

Michael Krotscheck

Senior Developer




RESOURCE INTERACTIVE

 www.resource.com
 

[EMAIL PROTECTED]  



___

We support privacy and confidentiality. Please delete this email
if it was received in error.


What's new ::

Capitalize on the social web | The Open Brand, a new book by
Kelly Mooney and Dr. Nita Rollins, available March 2008 |
www.theopenbrand.com





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000
Sent: Tuesday, March 25, 2008 1:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can a Listener return a value

 

Can a Listener program return a value back to a program that set
this 
listener up?

Thanks

 



[flexcoders] Re: ComboBoxes + Label in ItemRenderer

2008-03-25 Thread quantum_ohm
Thx Doug,

but it doesn't work yet.
actually the 'resultGravite' var for instance becomes "0" at the
second loop of the datachange event... ? so 'criticite.text' gets
initialized each time


--- In flexcoders@yahoogroups.com, "dougco2000" <[EMAIL PROTECTED]> wrote:
>
> You need to move your code that sets the label:
> 
> criticite.text = ( resultGravite * resultProbabilite ).toString();
> 
> into the doShow() routine since that is where the objects get (re)set
> everytime the grid changes.
> 
> -doug
> 
> --- In flexcoders@yahoogroups.com, "quantum_ohm" 
> wrote:
> >
> > Hello,
> > 
> > How could I reference a label with a kind of 'selectedIndex' ?
> > It might sound dummy, but I'd like to follow the idea
> > (http://blog.dougco.com/category/coding/flex/) used with the
> > CBs to apply it to a label...
> > The problem is that the result in the label doesn't stay in its right
> > place when I scroll the DG.
> > 
> > Thx
> > 
> > Here is the code below :
> > 
> > http://www.adobe.com/2006/mxml";
> > horizontalScrollPolicy="off"  dataChange="gridScrolled()">
> > 
> > 
> > 
> > 
> >  > change="resultat()"/>
> > 
> >  > dataProvider="{probabiliteArray}" change="resultat()"/>
> > 
> > 
> > 
> > 
> >
>




Re: [flexcoders] Re: Can a Listener return a value

2008-03-25 Thread Paul Andrews
- Original Message - 
  From: Mike Krotscheck 
  To: flexcoders@yahoogroups.com 
  Sent: Tuesday, March 25, 2008 8:24 PM
  Subject: RE: [flexcoders] Re: Can a Listener return a value


  That's probably because it's pseudocode, rather than real code.

   

  Every event listener is passed an event object, and on that event object a 
property called "target" exists that is a back reference to the object that 
dispatched the event. You can use that back reference to send a parameter back 
to the dispatching object.

   

  Personally, I wouldn't be caught dead using this, because the event 
dispatcher should be able to set said parameter itself (Plus it's a recipe for 
an infinite dispatch loop), but it certainly answers your question.



Why would the solution (good or bad) be a recipe for an infinite dispatch loop?



Perhaps you consider that there is a binding on the value that might cause the 
event to be redispatched - in which case it might happen easily  in some code 
called elsewhere from the event listener. 



I would agree that such a tight coupling is probably unwise.



paul

   

  Michael Krotscheck

  Senior Developer


  

  RESOURCE INTERACTIVE

  www.resource.com

  [EMAIL PROTECTED]

  
___

  We support privacy and confidentiality. Please delete this email if it was 
received in error.


  What's new ::

  Capitalize on the social web | The Open Brand, a new book by Kelly Mooney and 
Dr. Nita Rollins, available March 2008 | www.theopenbrand.com


--

  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
lytvynyuk
  Sent: Tuesday, March 25, 2008 4:09 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Can a Listener return a value

   

  The following code cannot be even compiled, not work What do u meant
  there?

  > I thought about something like this too.
  > So, let's say we have the followig code:
  > public function aFunction():XML
  > {
  > public var publicParameter:XML = new XML;
  > addEventListener( Event.SomeEvent, responderEventHandler );
  > private function responderEventHandler(event:Event):void
  > {
  > event.target.publicParameter = someXml;
  > }
  > return publicParameter;
  > }

   

Re: [flexcoders] Binding WebService Data to ArrayCollection

2008-03-25 Thread Peter Connolly
First off, that's not a WSDL.  That looks more like a response message.

In your 

If your WSDL defines CalendarType as a , you should be able to assign that to an
ArrayCollection directly, e.g.:

 var results:ArrayCollection = event.result.CalendarType;

But it's hard to tell with those small snippets of code.  Can you
share your WSDL?


Re: [flexcoders] Re: Need to determine allowScriptAccess/allowNetworkAccess at run time

2008-03-25 Thread Jon Bradley


On Mar 25, 2008, at 2:45 PM, shivkxr wrote:


That's not what I meant. What I meant was there should be a
method/property available that provides this information


Ah. I misread your request then. Sorry about that!

- jb

RE: [flexcoders] Re: Can a Listener return a value

2008-03-25 Thread Mike Krotscheck
That's probably because it's pseudocode, rather than real code.

 

Every event listener is passed an event object, and on that event object
a property called "target" exists that is a back reference to the object
that dispatched the event. You can use that back reference to send a
parameter back to the dispatching object.

 

Personally, I wouldn't be caught dead using this, because the event
dispatcher should be able to set said parameter itself (Plus it's a
recipe for an infinite dispatch loop), but it certainly answers your
question.

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

 www.resource.com  

[EMAIL PROTECTED]  


___

We support privacy and confidentiality. Please delete this email if it
was received in error.


What's new ::

Capitalize on the social web | The Open Brand, a new book by Kelly
Mooney and Dr. Nita Rollins, available March 2008 | www.theopenbrand.com



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lytvynyuk
Sent: Tuesday, March 25, 2008 4:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Can a Listener return a value

 

The following code cannot be even compiled, not work What do u meant
there?

> I thought about something like this too.
> So, let's say we have the followig code:
> public function aFunction():XML
> {
> public var publicParameter:XML = new XML;
> addEventListener( Event.SomeEvent, responderEventHandler );
> private function responderEventHandler(event:Event):void
> {
> event.target.publicParameter = someXml;
> }
> return publicParameter;
> }

 



RE: [flexcoders] Re: ArrayCollection of String as single-column DataGrid provider

2008-03-25 Thread Alex Harui
Yeah, but if you only have one column and don't have draggable columns
or resizable column, you might as well just stick a button at the top of
the List to show the header and call sort.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Melby
Sent: Tuesday, March 25, 2008 1:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: ArrayCollection of String as single-column
DataGrid provider

 

true, true... guess I assumed the OP had some reason for wanting to use 
DG. Column headers etc.

Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com  
http://blog.fastlanesw.com  

Alex Harui wrote:
> Or just use List.
>
> 
>
> 
>
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Scott Melby
> Sent: Tuesday, March 25, 2008 4:21 AM
> To: flexcoders@yahoogroups.com  
> Subject: Re: [flexcoders] Re: ArrayCollection of String as
single-column
> DataGrid provider
>
> 
>
> You have a couple of choices... you could translate the strings to
> objects with a single property (loop over them), then feed that array
to
> a standard DataGrid. Or, if you plan to be doing a lot of this, you
> could create a custom component that does the job internally. It is a
> pretty trivial exercise to build a custom data grid that does what you
> want. Try the code below to get you started. NOTE: code created in
> this editor and may not even compile... but, it'll get you close :)
>
> This code does not create your column for you etc. Instead it counts
on
> you to create it in your MXML where you create your StringGrid. Note
> however, that you could do that in this class as well... maybe have a
> public property for the headerText of the single column, then create
the
> column internally giving it the headerText from the property and the
> dataField of "label"
>
> public class StringGrid extends DataGrid
> { 
> public override function set dataProvider(value:Object):void
> {
> var myDP:ArrayCollection = new ArrayCollection();
> if(value is Array)
> {
> var strArray:Array = Array(value);
> for each(var str:String in strArray)
> {
> var obj:Object = new Object();
> //need to use label in your datagrid column
> obj.label = str;
> myDP.add(obj);
> }
> super.dataProvider = myDP
> }
> else
> {
> super.dataProvider = value;
> }
> }
> }
>
> hth
> Scott
>
> Scott Melby
> Founder, Fast Lane Software LLC
> http://www.fastlanesw.com 
 > 
> http://blog.fastlanesw.com 
 > 
>
>
>
> mario.blataric wrote: 
>
> Ok, how do I display and edit ArrayCollection that contains only
> String types in it if I can't use DG? 
> 
> --- In flexcoders@yahoogroups.com


> ,
> "Alex Harui" <[EMAIL PROTECTED]>  wrote:
> 
>
> You cannot use simple types (String, Number) in a DG. You have
> to use
> objects like:
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
>
> 
>
>
> 

 



[flexcoders] Re: Can a Listener return a value

2008-03-25 Thread lytvynyuk
The following code cannot be even compiled, not work What do u meant
there?

> I thought about something like this too.
> So, let's say we have the followig code:
> public function aFunction():XML
> {
>   public var publicParameter:XML = new XML;
>   addEventListener( Event.SomeEvent, responderEventHandler );
>   private function responderEventHandler(event:Event):void
>   {
>   event.target.publicParameter = someXml;
>   }
>   return publicParameter;
> }




Re: [flexcoders] Re: ArrayCollection of String as single-column DataGrid provider

2008-03-25 Thread Scott Melby
true, true... guess I assumed the OP had some reason for wanting to use 
DG.  Column headers etc.

Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com
http://blog.fastlanesw.com



Alex Harui wrote:
> Or just use List.
>
>  
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Scott Melby
> Sent: Tuesday, March 25, 2008 4:21 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: ArrayCollection of String as single-column
> DataGrid provider
>
>  
>
> You have a couple of choices... you could translate the strings to
> objects with a single property (loop over them), then feed that array to
> a standard DataGrid.  Or, if you plan to be doing a lot of this, you
> could create a custom component that does the job internally.  It is a
> pretty trivial exercise to build a custom data grid that does what you
> want.  Try the code below to get you started.  NOTE: code created in
> this editor and may not even compile... but, it'll get you close :)
>
> This code does not create your column for you etc.  Instead it counts on
> you to create it in your MXML where you create your StringGrid.  Note
> however, that you could do that in this class as well... maybe have a
> public property for the headerText of the single column, then create the
> column internally giving it the headerText from the property and the
> dataField of "label"
>
>public class StringGrid extends DataGrid
>{   
>   public override function set dataProvider(value:Object):void
>   {
>   var myDP:ArrayCollection = new ArrayCollection();
>   if(value is Array)
>   {
>   var strArray:Array = Array(value);
>   for each(var str:String in strArray)
>   {
>   var obj:Object = new Object();
>   //need to use label in  your datagrid column
>   obj.label = str;
>   myDP.add(obj);
>   }
>   super.dataProvider = myDP
>   }
>   else
>   {
>  super.dataProvider = value;
>   }
>   }
>}
>
> hth
> Scott
>
> Scott Melby
> Founder, Fast Lane Software LLC
> http://www.fastlanesw.com  
> http://blog.fastlanesw.com  
>
>
>
> mario.blataric wrote: 
>
> Ok, how do I display and edit ArrayCollection that contains only
> String types in it if I can't use DG? 
>  
> --- In flexcoders@yahoogroups.com  ,
> "Alex Harui" <[EMAIL PROTECTED]>   wrote:
>   
>
>   You cannot use simple types (String, Number) in a DG.  You have
> to use
>   objects like:
>
>
>
>   
>
>   
>
>  
>  
>   
>
>  
>
>
>   



[flexcoders] Re: Need help passing data to a title window

2008-03-25 Thread valdhor
I'm still a newbie but it looks as though you are trying to add a
datagrid to a TitleWindow container.

You need to create the datagrid, set its dataProvider, then add it as
a child to the TitleWindow container.

Something like (Untested code follows):

var myExcelDG:DataGrid = new DataGrid();
myExcelDG.dataProvider = projCatHolder.allProjectsView.myDG.dataProvider;
dgExcel.addChild(myExcelDG);

--- In flexcoders@yahoogroups.com, "Mark" <[EMAIL PROTECTED]> wrote:
>
> from the code below can any tell me why I get this error?  1119: 
> Access of possibly undefined property myExcelDG through a reference 
> with static type mx.containers:TitleWindow
> 
> I'm trying to pass data from one dataGrid to a dataGrid on the 
> titleWindow.  Any ideas?
> 
> public var dgExcel:TitleWindow;
> private var windowWidth:Number;
> //
> private function showWindow():void {
> trace("WIDTH " + this.width);
> windowWidth = this.width;
> dgExcel = excelPopUp(PopUpManager.createPopUp( this, 
> excelPopUp , true)); 
> dgExcel.x=50;
> dgExcel.y=50;
> dgExcel.width = windowWidth - 100;
> // Pass a reference to the TitleWindow container
> dgExcel.myExcelDG.dataProvider = 
> projCatHolder.allProjectsView.myDG.dataProvider;
> }
> private function onAppResize (oEvt:Event):void {
> var windowWidth:Number = this.width;
> if (dgExcel) {
>   dgExcel.width = windowWidth - 100;
> }
> }
>




Re: [flexcoders] Can a Listener return a value

2008-03-25 Thread Paul Andrews
- Original Message - 
  From: Alex Harui 
  To: flexcoders@yahoogroups.com 
  Sent: Tuesday, March 25, 2008 6:49 PM
  Subject: RE: [flexcoders] Can a Listener return a value


  That works, but is considered a "hack" in the strictest sense.  The W3C 
Events spec indicates that event properties are read-only.  Flash allows 
writing to them to make setup easier (constructor args are easy to mix up).



Hmm. In this sense, surely event.target is a reference to an object, so really 
this has nothing to do with event properties at all? (it's just using the 
object reference to set a public attribute). Or are you referring to the lack 
of a cast - SomeClass(event.target).publicParameter ?



Of course the listener could also call a callback method - 
SomeClass(event.target).aCallbackFn() .



Paul

   


--

  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike 
Krotscheck
  Sent: Tuesday, March 25, 2008 11:34 AM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Can a Listener return a value

   

  foo.addEventListener( Event.SomeEvent, responderEventHandler );

   

  private function responderEventHandler(event:Event):void

  {

  event.target.publicParameter = "bar";

  }

   

  Michael Krotscheck

  Senior Developer


  

  RESOURCE INTERACTIVE

  www.resource.com

  [EMAIL PROTECTED]

  
___

  We support privacy and confidentiality. Please delete this email if it was 
received in error.


  What's new ::

  Capitalize on the social web | The Open Brand, a new book by Kelly Mooney and 
Dr. Nita Rollins, available March 2008 | www.theopenbrand.com


--

  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
markgoldin_2000
  Sent: Tuesday, March 25, 2008 1:31 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Can a Listener return a value

   

  Can a Listener program return a value back to a program that set this 
  listener up?

  Thanks

   

[flexcoders] Re: Installing Ant Plugin for FB3 StandAlone

2008-03-25 Thread toofah_gm
I was able to get the Ant Plugins by installing the JDT from the
updates tool.

--- In flexcoders@yahoogroups.com, "toofah_gm" <[EMAIL PROTECTED]> wrote:
>
> How do you install the regular eclipse ant plugins into FB3 StandAlone
> product?
>




[flexcoders] Singletone class in Application and Modules !?

2008-03-25 Thread lytvynyuk
Is it true if I have singleton class instantiated in main application
and in module, instances will be different?

 public class DataManager
 {
 private static const singleton_:DataManager = new DataManager();

 public static function get instance():DataManager {
 return singleton_;
 }

 public function DataManager() {
 if (singleton_ != null) {
 throw new Error("Cannot instantiate singleton
DataManager");
 }
 }
 }

in main application:

   private function init():void {
   this.dataManager = DataManager.instance;
   }

in module

   private function init():void {
   this.dataManager = DataManager.instance;
   }



Re: [flexcoders] Flex component swf file

2008-03-25 Thread Remya Subramanyam

Hi,

I have a test Environment having access to web services, into which I am 
porting the swf files and checking if the service calls are working. I could 
port the main application mxml and title window mxml files' swf files. But I 
guess the tilelist in the pop up window is not populating, since the flex 
component responsible for each tile in the tilelist is not found. 

Please help me.

Thanks
Remya

 






- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, 25 March, 2008 12:01:18 PM
Subject: RE: [flexcoders] Flex component swf file








Are you trying to move the source code or
the application?
   
 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Remya
Sent: Tuesday, March 25, 2008 2:12AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Flexcomponent swf file
 
  
 Hi 
I have an application which uses a pop up window containing a flex
component. I need to port the application to a different machine. I am
able to transfer my main application file and pop up window's swf file
but I am not able to do the same thing with the component. This
component is used by pop up window in the item renderer property of a
tilelist. Please help.
 

















  Why delete messages? Unlimited storage is just a click away. Go to 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

[flexcoders] Need help passing data to a title window

2008-03-25 Thread Mark
from the code below can any tell me why I get this error?  1119: 
Access of possibly undefined property myExcelDG through a reference 
with static type mx.containers:TitleWindow

I'm trying to pass data from one dataGrid to a dataGrid on the 
titleWindow.  Any ideas?

public var dgExcel:TitleWindow;
private var windowWidth:Number;
//
private function showWindow():void {
trace("WIDTH " + this.width);
windowWidth = this.width;
dgExcel = excelPopUp(PopUpManager.createPopUp( this, 
excelPopUp , true)); 
dgExcel.x=50;
dgExcel.y=50;
dgExcel.width = windowWidth - 100;
// Pass a reference to the TitleWindow container
dgExcel.myExcelDG.dataProvider = 
projCatHolder.allProjectsView.myDG.dataProvider;
}
private function onAppResize (oEvt:Event):void {
var windowWidth:Number = this.width;
if (dgExcel) {
dgExcel.width = windowWidth - 100;
}
}



[flexcoders] Flex ContextMenu in a DataGrid

2008-03-25 Thread mr_j_harris

Again, do I suck or does Flex suck?  Answer: BOTH!



#1. I would like to have a specific contect menu per column. Perhaps I
could do that in itemRenderer, introducing another level of bogosity.

#2a.  The context menu renders when  the DataGrid is 'instantiated'
.. I need it to render at the instant it is called up by the user's
mouse click or context-menu-button press)... great: digression: The
context menu button triggers a browser-level (Firefox at this instant)
ho hum...

anyway:
#2b: I need the context menu rendered at the instant it is called up
by the user, in order to be able to determine those items that should
be included, and as an opportunity to gray-out (i.e. disable) items
based on the context of the item that was clicked: in particular, my
DataGrid cell-level content.  That's the context!


Any advice?  It could involve roll-out events, whatever it takes!

-- John Harris











RE: [flexcoders] Developer Exam

2008-03-25 Thread Merrill, Jason
Congrats!
 

Jason Merrill 
Bank of America 
GT&O and Risk L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 


Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog
  &
subscribe
 . 




 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of VELO
Sent: Tuesday, March 25, 2008 2:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Developer Exam



Hi Folks...

I wanna to share my happiness...

I Pass o Adobe Flex 2 Developer Exam.

Thanks to all who help me, specially who helps me off list.

VELO


 



Re: [flexcoders] General Wondering :)

2008-03-25 Thread Mario Falomir
I will take a look at it :) Thanks

On Tue, Mar 25, 2008 at 10:50 AM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Use ResourceManager?
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Mario Falomir
> *Sent:* Tuesday, March 25, 2008 10:51 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] General Wondering :)
>
>
>
> Hi, I have a question, well actually Im looking for some advice,  Im
> developing an application and I have a singleton class called UIManager
> which takes care of some of the visual stuff displayed on the main UI such
> as texts, labels and whatnot, for instance one of the functions of this
> class is to load a xml language config file and then it renders all the text
> labels according to the specific language loaded, but Im not sure if the way
> Im doing some stuff it is the correct or recommended way to go.
>
> I have my on my initialize handler
>
> UIManager.getInstance().addEventListener(UIManager.LANGUAGE_LOADED,
> languageInitHandler );
> UIManager.getInstance().addEventListener(UIManager.LANGUAGE_FAIL,
> languageFailHandler );
> UIManager.getInstance().initializeLanguage();
>
> once the language config file its succesfully loaded I render the labels
> and texts
>
> UIManager.getInstance().renderText( this )
>
> here is my doubt, I pass to the renderText method a reference to my main
> app where all the labels reside so I can access them within  UIManager , I
> dont like to pass a reference of the app every time that I want to access a
> particular property or component of it within an external class, is there a
> more elegant or  correct way to do it ??
>
> Thanks in advanced.
>
> Mario
>
>
>


[flexcoders] Flex 3 ComboBox and Editable property

2008-03-25 Thread Mike_Robinson_98
Hi,

I'm attempting to migrate from Flex2 to 3. One issue I'm have is with
the ComboBox. In particular, with the Editable property set true.

Previously, if I wanted to set an editable combobox to display a value
OTHER than one of the values in the dataProvider (an ArrayCollection
of Strings), I just set the 'text' property to some string. In Flex3,
this does not seem to have any effect. I even added setting the
selectedIndex to -1, first but still no change. The desired text value
does not show up, just the 1st element of the dataProvider.

cb_freight.selectedIndex = -1;
cb_freight.text = "This is a test";

Anyone else found this the case?



RE: [flexcoders] Flex component swf file

2008-03-25 Thread Alex Harui
Are you trying to move the source code or the application?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Remya
Sent: Tuesday, March 25, 2008 2:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex component swf file

 

Hi 
I have an application which uses a pop up window containing a flex
component. I need to port the application to a different machine. I am
able to transfer my main application file and pop up window's swf file
but I am not able to do the same thing with the component. This
component is used by pop up window in the item renderer property of a
tilelist. Please help.

 



RE: [flexcoders] Re: ArrayCollection of String as single-column DataGrid provider

2008-03-25 Thread Alex Harui
Or just use List.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Melby
Sent: Tuesday, March 25, 2008 4:21 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: ArrayCollection of String as single-column
DataGrid provider

 

You have a couple of choices... you could translate the strings to
objects with a single property (loop over them), then feed that array to
a standard DataGrid.  Or, if you plan to be doing a lot of this, you
could create a custom component that does the job internally.  It is a
pretty trivial exercise to build a custom data grid that does what you
want.  Try the code below to get you started.  NOTE: code created in
this editor and may not even compile... but, it'll get you close :)

This code does not create your column for you etc.  Instead it counts on
you to create it in your MXML where you create your StringGrid.  Note
however, that you could do that in this class as well... maybe have a
public property for the headerText of the single column, then create the
column internally giving it the headerText from the property and the
dataField of "label"

   public class StringGrid extends DataGrid
   {   
  public override function set dataProvider(value:Object):void
  {
  var myDP:ArrayCollection = new ArrayCollection();
  if(value is Array)
  {
  var strArray:Array = Array(value);
  for each(var str:String in strArray)
  {
  var obj:Object = new Object();
  //need to use label in  your datagrid column
  obj.label = str;
  myDP.add(obj);
  }
  super.dataProvider = myDP
  }
  else
  {
 super.dataProvider = value;
  }
  }
   }

hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com  
http://blog.fastlanesw.com  



mario.blataric wrote: 

Ok, how do I display and edit ArrayCollection that contains only
String types in it if I can't use DG? 
 
--- In flexcoders@yahoogroups.com  ,
"Alex Harui" <[EMAIL PROTECTED]>   wrote:
  

You cannot use simple types (String, Number) in a DG.  You have
to use
objects like:
 
 
 

 


 
 
  

 



[flexcoders] Re: How to pass Flex ArrayCollection to Coldfusion CFC?

2008-03-25 Thread David Henry




If I remember correctly Coldfusion reads array collections  as an Array
of arrays (2d array).  CFDump should enlighten us a bit.

Try this as your cfc code and read the returned string as
html/_javascript_.


    
        
        
        
            
        
        
    




  David Henry 
http://ColdFusionPowered.com/





markflex2007 wrote:

  
  Hi,
  
I try to pass flex ArrayCollection to coldfusion cfc like following
  
8"?>
http://www.adobe.com/2006/mxml"
layout="vertical">



  

id="cfdata" showBusyCursor="true" 
destination="ColdFusion"
source="debug.cfc.test">

result="send_Result(event)"
fault="send_Fault(event)" />

  

dataProvider="{myAC}" editable="true" > 


editable="false"/>
 
  
 
 

  

  
This is the cfc:
  
"TestProcess" output="false" >
  

returntype="true">
 
  


 

  
I get following error message
  
The argument pass to function is not the type query.
  
Please let me know which data type I can use in cfc for the Flex
ArrayCollection
  
Thanks
  
Mark
  
  
  
 





[flexcoders] Re: Can a Listener return a value

2008-03-25 Thread markgoldin_2000
I thought about something like this too.
So, let's say we have the followig code:
public function aFunction():XML
{
  public var publicParameter:XML = new XML;
  addEventListener( Event.SomeEvent, responderEventHandler );
  private function responderEventHandler(event:Event):void
  {
  event.target.publicParameter = someXml;
  }
  return publicParameter;
}

If we are talking about getting XML from the Server then:
return publicParameter is most likely executed before:
event.target.publicParameter = someXml;
Am I wrong here?

--- In flexcoders@yahoogroups.com, "Mike Krotscheck" 
<[EMAIL PROTECTED]> wrote:
>
> foo.addEventListener( Event.SomeEvent, responderEventHandler );
> 
>  
> 
> private function responderEventHandler(event:Event):void
> 
> {
> 
> event.target.publicParameter = "bar";
> 
> }
> 
>  
> 
> Michael Krotscheck
> 
> Senior Developer
> 
>  
> RESOURCE INTERACTIVE
> 
>  www.resource.com 
 
> 
> [EMAIL PROTECTED]  
> 
> 
__
__
> ___
> 
> We support privacy and confidentiality. Please delete this email if 
it
> was received in error.
> 
> 
> What's new ::
> 
> Capitalize on the social web | The Open Brand, a new book by Kelly
> Mooney and Dr. Nita Rollins, available March 2008 | 
www.theopenbrand.com
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, March 25, 2008 1:31 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Can a Listener return a value
> 
>  
> 
> Can a Listener program return a value back to a program that set 
this 
> listener up?
> 
> Thanks
>




RE: [flexcoders] Re: applying effect/transition to module whilst loading.

2008-03-25 Thread Alex Harui
So listen for the READY event from the moduleLoader and start a
TweenEffect on the moduleLoader

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of aceoohay
Sent: Tuesday, March 25, 2008 6:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: applying effect/transition to module whilst
loading.

 

Alex:

The system I am working on is comprised of many panels, each panel 
is a module. I use moduleLoader to load the modules. As the panel is 
displayed on the stage what I would like is to apply an 
effect/transition so that it doesn't just popup, but does something 
neat while rendering such as wipe up/down, fade in, etc.

Paul

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I don't have any examples, but I'm also not sure what you want.
> 
> 
> 
> While a module is loading, it cannot display anything. Once it is
> loaded, you'll get a READY event and can muck with it. It should 
be
> same as doing so for any non-module display object.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of aceoohay
> Sent: Monday, March 24, 2008 10:43 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: applying effect/transition to module 
whilst
> loading.
> 
> 
> 
> Any ideas?
> 
> Paul
> 
> --- In flexcoders@yahoogroups.com
  
> , "aceoohay"  wrote:
> >
> > I have created a generic module loader routine in my app, and it 
> woeks 
> > great. I am feeling a little adventurous and would like to apply 
> an 
> > effect/transition to all my modules so that while they are 
loading 
> they 
> > would expand from nothing, or wipe up or down, basically 
something 
> cool 
> > that doesn't take a long time. 
> > 
> > Where can I find examples of this?
> > 
> > Paul
> >
>

 



[flexcoders] Re: How do I set width to 100% in actionscript?

2008-03-25 Thread westlandc
--- In flexcoders@yahoogroups.com, "luvfotography" <[EMAIL PROTECTED]> wrote:
>
> How do I set the width to 100% using actionscript??
> It only allows a number - not a string!?!
> 
> 
>   var newcanvas:Canvas = new Canvas();
>
>   newcanvas.width = "100%";
> 
> 
> 1067: Implicit coercion of a value of type String to an unrelated type
> Number.
>

Use percentWidth





[flexcoders] Re: Get the Domain the Flex app is running in

2008-03-25 Thread shivkxr
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Try BrowserManager.url
> 

Alex,

Yes, I think it should work barring any security issues I might 
encounter. I'll post my findings here.

Thanks.



RE: [flexcoders] localized context menu

2008-03-25 Thread Alex Harui
I think that's a known player bug.  It still uses double-byte for
ContextMenus on Windows.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of M.Javed
Sent: Tuesday, March 25, 2008 7:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] localized context menu

 

Hi,

There is a little problem I am facing in my localized application that
when I try to show some localized text in context menu it doesnt display
the localzed text, instead it displays questions marks. The rest of
application is working absolutely fine with localzed strings.

is there any limitation of flex that context menu cant be localized or I
am doing some mistake. Thanks in advance for any ideas in this regard,

 

Regards,

-Jay

  



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

 



[flexcoders] Re: Need to determine allowScriptAccess/allowNetworkAccess at run time

2008-03-25 Thread shivkxr
Jason,

No ExternalInterface.available on tell you if the browser supports it. 
It returns true irrespective of security settings.



RE: [flexcoders] Re: creating MXML components with new-operator in ActionScript

2008-03-25 Thread Alex Harui
For performance reasons, children are not created until the container is
attached to the parent.

 

In general, this problem is a warning flag.  It says that your central
code is pushing information downward which means that it has knowledge
of the visuals.  Modern architectures prefer that visuals pull
information from a central data model, and then you won't have this
problem.

 

I would discourage pre-filling a cache at startup time too.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vdeprojects
Sent: Tuesday, March 25, 2008 9:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: creating MXML components with new-operator in
ActionScript

 

--- In flexcoders@yahoogroups.com 
, "mavdzee" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I have noticed that when I create an MXML component in ActionScript,
> that the children of the MXML component are not created until I add it
> as a child of another component. Is there any way to force creation of
> children before it is added? I tried playing with creationPolicy and
> createComponentsFromDescriptors() but none of this helps.
> 
> I want to fill a cache of MXML-components when the application
> initializes. At this point the cached MXML components have no parent
> yet, but I need to do some initialization on it's children too. 
> 
> Cheers,
> Andrej
>

I'm having exactly the same problem. Any help would be greatly 
appreciated!!!

thx in advance,
Tom

 



RE: [flexcoders] General Wondering :)

2008-03-25 Thread Alex Harui
Use ResourceManager?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mario Falomir
Sent: Tuesday, March 25, 2008 10:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] General Wondering :)

 

Hi, I have a question, well actually Im looking for some advice,  Im
developing an application and I have a singleton class called UIManager
which takes care of some of the visual stuff displayed on the main UI
such as texts, labels and whatnot, for instance one of the functions of
this class is to load a xml language config file and then it renders all
the text labels according to the specific language loaded, but Im not
sure if the way Im doing some stuff it is the correct or recommended way
to go.

I have my on my initialize handler

UIManager.getInstance().addEventListener(UIManager.LANGUAGE_LOADED,
languageInitHandler );
UIManager.getInstance().addEventListener(UIManager.LANGUAGE_FAIL,
languageFailHandler );
UIManager.getInstance().initializeLanguage();

once the language config file its succesfully loaded I render the labels
and texts

UIManager.getInstance().renderText( this )

here is my doubt, I pass to the renderText method a reference to my main
app where all the labels reside so I can access them within  UIManager ,
I dont like to pass a reference of the app every time that I want to
access a particular property or component of it within an external
class, is there a more elegant or  correct way to do it ??

Thanks in advanced.

Mario



 



RE: [flexcoders] Can a Listener return a value

2008-03-25 Thread Alex Harui
That works, but is considered a "hack" in the strictest sense.  The W3C
Events spec indicates that event properties are read-only.  Flash allows
writing to them to make setup easier (constructor args are easy to mix
up).

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Krotscheck
Sent: Tuesday, March 25, 2008 11:34 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Can a Listener return a value

 

foo.addEventListener( Event.SomeEvent, responderEventHandler );

 

private function responderEventHandler(event:Event):void

{

event.target.publicParameter = "bar";

}

 

Michael Krotscheck

Senior Developer

 


RESOURCE INTERACTIVE

 www.resource.com  

[EMAIL PROTECTED]  


___

We support privacy and confidentiality. Please delete this email if it
was received in error.


What's new ::

Capitalize on the social web | The Open Brand, a new book by Kelly
Mooney and Dr. Nita Rollins, available March 2008 | www.theopenbrand.com



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, March 25, 2008 1:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can a Listener return a value

 

Can a Listener program return a value back to a program that set this 
listener up?

Thanks

 



Re: [flexcoders] How do I set width to 100% in actionscript?

2008-03-25 Thread Dennis Falling
Someone's probably beaten me to this but, use percentWidth instead.

On Tue, Mar 25, 2008 at 1:43 PM, luvfotography <
[EMAIL PROTECTED]> wrote:

>   How do I set the width to 100% using actionscript??
> It only allows a number - not a string!?!
>
> var newcanvas:Canvas = new Canvas();
>
> newcanvas.width = "100%";
>
> 1067: Implicit coercion of a value of type String to an unrelated type
> Number.
>
>  
>


  1   2   >