Re:valdhor [flexcoders] Re: domain problem in remoteobject application

2009-06-24 Thread Vikram Singh
hello valdhor

in my amfphp directory there is only one globals.php file and it contains these 


http://opensource.org/licenses/gpl-license.php GNU Public License
 * @copyright (c) 2003 amfphp.org
 * @package flashservices
 * @subpackage app
 */

global $amfphp;

$amfphp = array();
$amfphp['errorLevel'] = E_ALL ^ E_NOTICE;
$amfphp['instanceName'] = NULL;
$amfphp['classPath'] = 'services/';
$amfphp['customMappingsPath'] = 'services/';
$amfphp['adapterMappings'] = array();
$amfphp['incomingClassMappings'] = array();
$amfphp['outgoingClassMappings'] = array();
$amfphp['webServiceMethod'] = 'php5';
$amfphp['disableDescribeService'] = false;
$amfphp['disableTrace'] = false;
$amfphp['disableDebug'] = false;
$amfphp['lastMethodCall'] = '/1';
$amfphp['isFlashComm'] = false;
$amfphp['classInstances'] = array();
$amfphp['regenerateMethodTable'] = false;
$amfphp['amf3RecordSetFormat'] = "Array";
$amfphp['encoding'] = "amf0";

?>

so what should i do? I am confused.





From: valdhor 
To: flexcoders@yahoogroups.com
Sent: Tuesday, 23 June, 2009 7:19:43 PM
Subject: [flexcoders] Re: domain problem in remoteobject application





Inside your amfphp directory you will find a file globals.php.

Change the $servicesPath variable to the full path to your services directory.

HTH

Steve

--- In flexcod...@yahoogro ups.com, Vikram Singh  wrote:
>
> I am not getting excetly what you are trying to say me.
> Can you please tell me in some detail which/how configure in amfphp?
> I am little bit freshers for this stuff.
> 
> 
> Thanks.
> 
> 
>  _ _ __
> From: Pedro Sena 
> To: flexcod...@yahoogro ups.com
> Sent: Monday, 22 June, 2009 5:55:51 PM
> Subject: Re: [flexcoders] domain problem in remoteobject application
> 
> 
> 
> 
> 
> You can configure in amfphp where your 'services' would be.
> 
> Take a look at documentation, I think that your idea is to have just one 
> amfphp directory for every project, if so, You can reference external 
> directories in a way that amfphp would search for them.
> 
> HTH
> 
> 
> On Mon, Jun 22, 2009 at 9:07 AM, Vikram Singh  wrote:
> 
> 
> 
> 
> Hello friends,
> I have a query regarding domain problem.
> My database is at primarydomain (www..primarydomain . com)
> I also have subdomain and place all at subdomain directory. like this..
> 
> scenario 1:
> Current file arrangement is:
> 
> Exported release build flex project at :www.subdomain. com/flexApplicat ion/
> amfphp code placed at :www.subdomain. com/flexApplicat ion/amfphpcode/
> 
> this is perfectly working.
> but now... 
> 
> scenario 2:
> need to arrange like this
> 
> Exported release build flex project at :www.subdomain. com/flexApplicat ion/
> amfphp code placed at :www.subdomain. com/amfphpcode/
> 
> amfphpcode is placed outside of flex application directory.
> 
> to run perfectly flex application in scenario-2, what changes I have to make 
> with flex application code OR any other.
> OR any other possible idea to implement it in scenario-2.
> Please help me...
> 
> Regards,
> Vikram. 
> 
>  _ _ __
>  ICC World Twenty20 England '09 exclusively on YAHOO! CRICKET 
> 
> 
> -- 
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer 
> * Sun Certified Web Component Developer
> */
> 
> 
> 
> 
>   ICC World Twenty20 England '09 exclusively on YAHOO! CRICKET 
> http://cricket. yahoo.com
>


   


  Cricket on your mind? Visit the ultimate cricket website. Enter 
http://cricket.yahoo.com

[flexcoders] Embed AIR app to MS Word

2009-06-24 Thread lehaianh1986
Hi all, I know some function of Adobe Reader is embed to MS Word. I wonder that 
can AIR app have ability to embed to MS Word? And how to do it? 



Re: [flexcoders] PDF - Text Display

2009-06-24 Thread Avinash
Larson,
Please take a look at my blog, and you will know how to load PDF in Flex
(well in html through iFrame like Gordon Smith suggested)

http://flexpdfair.blogspot.com/

Avinash

On Wed, Jun 24, 2009 at 2:22 PM, lrlarsonny  wrote:

>
>
> Hello --
>
> Am I correct is gleaning from my google searches that there is no way to
> display a pdf in Flex? (Not Air). And that flashpaper is no more?
>
> Given that, how do developers show formatted text?
>
> We are building an app that will show documents within the published flex
> swf, and I just assumed that there was a way to do this.
> Thanks
>
> lrlarson
> nyc
>
>  
>


Re: [flexcoders] wmode=opaque/transparent and linux

2009-06-24 Thread hank williams
Thanks James.

On Wed, Jun 24, 2009 at 6:05 PM, James Ward wrote:
>
>
> This should work fine with a newer version of Firefox (minimum 3.1 I think)
> and Flash Player 10.
>
> I have Firefox 3.5 RC and FP 10 and it works fine.
>
> -James
>
> 
> From: flexcoders@yahoogroups.com
> To: flexcoders@yahoogroups.com
> Sent: Wed Jun 24 13:03:40 2009
> Subject: [flexcoders] wmode=opaque/transparent and linux
>
> Does this work? One of my developers is telling me that flash on linux
> doesnt allow divs to overlap flash material. Is this true or is there
> something wrong with his setup.
>
> Thanks
> Hank
>
> --
> blog: whydoeseverythingsuck.com
>
> 



-- 
blog: whydoeseverythingsuck.com


[flexcoders] Re: tilelist rowCount not working...

2009-06-24 Thread Tim Hoff

>From the docs:

rowCount
Number of rows to be displayed. If the height of the component has been
explicitly set, this property might not have any effect.

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
>
> Assuming that the direction="horizontal", the rowCount should work;
> unless you are setting an explicit width and the number of items will
> spill into an additional row. They have to go somewhere, right? What
> happens if you remove the width property?
>
> -TH
>
> --- In flexcoders@yahoogroups.com, grimmwerks grimm@ wrote:
> >
> > Argh. No one's had this issue of setting a rowCount and it not being
> > honored?
> >
> >
> > On Jun 24, 2009, at 2:14 PM, grimmwerks wrote:
> >
> > > I'm using FB3 and setting a tileList's rowCount=2 in the mxml -
but
> > > then once adding data it's definately 3 rows I see.
> > >
> > > I've even tried adding tilelist.rowCount=2 on the dataChange but
> it's
> > > just not doing a THING.
> > >
> > > Only other option is to set the data it loads in to only 2
> rows-amount
> > > and 'paging' through but that just seems stupid...
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Alternative FAQ location:
>
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
\
> 1e62079f6847
> > > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
> > > ! Groups Links
> > >
> > >
> > >
> >
>




Re: [flexcoders] wmode=opaque/transparent and linux

2009-06-24 Thread James Ward
This should work fine with a newer version of Firefox (minimum 3.1 I think) and 
Flash Player 10.

I have Firefox 3.5 RC and FP 10 and it works fine.

-James



From: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Sent: Wed Jun 24 13:03:40 2009
Subject: [flexcoders] wmode=opaque/transparent and linux



Does this work? One of my developers is telling me that flash on linux
doesnt allow divs to overlap flash material. Is this true or is there
something wrong with his setup.

Thanks
Hank

--
blog: whydoeseverythingsuck.com




RE: [flexcoders] how do I set the default value for an array in a function definition?

2009-06-24 Thread Keith Reinfeld
myArray:Array = null

 

Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 
 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of luvfotography
Sent: Wednesday, June 24, 2009 3:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how do I set the default value for an array in a
function definition?

 






How do I make the array parameter optional??

private function howdoI(mycount:int,mystring:String, myArray:Array =
[]):void {
trace('hellow');
}

I get 
1047: Parameter initializer unknown or is not a compile-time constant. 

How do I make the Array parameter optional? :
myArray:Array = []

thanks,





Re: [flexcoders] Re: tilelist rowCount not working...

2009-06-24 Thread grimmwerks
Ugh. It appears it's something inherent with Flex 3, was abandoned and  
fixed in F4.

http://bugs.adobe.com/jira/browse/SDK-15335

On Jun 24, 2009, at 5:06 PM, grimmwerks wrote:

> Direction is horz., and it's at 100% within another view; but why
> would it have to spill into another row? Meaning it becomes a vertical
> scroll; if I'm not setting columnCount why would it not spill to the
> right and have a horizontal scroll?
> On Jun 24, 2009, at 4:53 PM, Tim Hoff wrote:
>
>>
>> Assuming that the direction="horizontal", the rowCount should work;
>> unless you are setting an explicit width and the number of items will
>> spill into an additional row.  They have to go somewhere, right?   
>> What
>> happens if you remove the width property?
>>
>> -TH
>>
>> --- In flexcoders@yahoogroups.com, grimmwerks  wrote:
>>>
>>> Argh. No one's had this issue of setting a rowCount and it not being
>>> honored?
>>>
>>>
>>> On Jun 24, 2009, at 2:14 PM, grimmwerks wrote:
>>>
 I'm using FB3 and setting a tileList's rowCount=2 in the mxml - but
 then once adding data it's definately 3 rows I see.

 I've even tried adding tilelist.rowCount=2 on the dataChange but
>> it's
 just not doing a THING.

 Only other option is to set the data it loads in to only 2
>> rows-amount
 and 'paging' through but that just seems stupid...


 

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



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



[flexcoders] reg expression for Password

2009-06-24 Thread vin.flex
can anybody help me with regexp for password with following specifications

1) It should contain atleast 8 characters
2) It should atleast has one uppercase letter and one digit
3) No special characters

thank s

vin



RE: [flexcoders] PDF - Text Display

2009-06-24 Thread Gordon Smith
> Am I correct is gleaning from my google searches that there is no way to 
> display a pdf in Flex? (Not Air).

Flex is not the opposite of AIR. Flex is a technology for developing RIAs as 
SWFs that run either in browsers with Flash Player add-ons or in AIR. But 
you're correct that Flash Player add-ons can't display PDFs; this is because 
these players are very small and PDF-rendering code would make them too large. 
I think developers sometimes use browser iframes to display a PDF, floating 
above the SWF but looking like it is part of it.

Other possibilities

1. Use HTML in an iframe.

2. Use htmlText in Halo components. (Halo components are the ones familiar from 
Flex 3 in the mx.* package.)

3. Use TLF by itself, or TLF-based Spark components. Both are in beta. TLF is 
the Text Layout Framework, an ActionScript library written on top of Player 
10's new Flash Text Engine (FTE). Spark components are new in Flex 4 and live 
in the spark.* package.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of lrlarsonny
Sent: Wednesday, June 24, 2009 11:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PDF - Text Display





Hello --

Am I correct is gleaning from my google searches that there is no way to 
display a pdf in Flex? (Not Air). And that flashpaper is no more?

Given that, how do developers show formatted text?

We are building an app that will show documents within the published flex swf, 
and I just assumed that there was a way to do this.
Thanks

lrlarson
nyc



[flexcoders] reg exp for Password

2009-06-24 Thread vin.flex
Can any body help me with the regexp for password with following
specifications.

1)It should contain atleast contain 8 characters
2)Atleast it should have atleast one uppercase letter and one number
3) No special characters


thanks
vin



Re: [flexcoders] Re: tilelist rowCount not working...

2009-06-24 Thread grimmwerks
Direction is horz., and it's at 100% within another view; but why  
would it have to spill into another row? Meaning it becomes a vertical  
scroll; if I'm not setting columnCount why would it not spill to the  
right and have a horizontal scroll?
On Jun 24, 2009, at 4:53 PM, Tim Hoff wrote:

>
> Assuming that the direction="horizontal", the rowCount should work;
> unless you are setting an explicit width and the number of items will
> spill into an additional row.  They have to go somewhere, right?  What
> happens if you remove the width property?
>
> -TH
>
> --- In flexcoders@yahoogroups.com, grimmwerks  wrote:
>>
>> Argh. No one's had this issue of setting a rowCount and it not being
>> honored?
>>
>>
>> On Jun 24, 2009, at 2:14 PM, grimmwerks wrote:
>>
>>> I'm using FB3 and setting a tileList's rowCount=2 in the mxml - but
>>> then once adding data it's definately 3 rows I see.
>>>
>>> I've even tried adding tilelist.rowCount=2 on the dataChange but
> it's
>>> just not doing a THING.
>>>
>>> Only other option is to set the data it loads in to only 2
> rows-amount
>>> and 'paging' through but that just seems stupid...
>>>
>>>
>>> 
>>>
>>> --
>>> Flexcoders Mailing List
>>> FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>>> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 
> \
> 1e62079f6847
>>> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
>>> ! Groups Links
>>>
>>>
>>>
>>
>
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 
> ! Groups Links
>
>
>



[flexcoders] Re: tilelist rowCount not working...

2009-06-24 Thread Tim Hoff

Assuming that the direction="horizontal", the rowCount should work;
unless you are setting an explicit width and the number of items will
spill into an additional row.  They have to go somewhere, right?  What
happens if you remove the width property?

-TH

--- In flexcoders@yahoogroups.com, grimmwerks  wrote:
>
> Argh. No one's had this issue of setting a rowCount and it not being
> honored?
>
>
> On Jun 24, 2009, at 2:14 PM, grimmwerks wrote:
>
> > I'm using FB3 and setting a tileList's rowCount=2 in the mxml - but
> > then once adding data it's definately 3 rows I see.
> >
> > I've even tried adding tilelist.rowCount=2 on the dataChange but
it's
> > just not doing a THING.
> >
> > Only other option is to set the data it loads in to only 2
rows-amount
> > and 'paging' through but that just seems stupid...
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
1e62079f6847
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
> > ! Groups Links
> >
> >
> >
>





RE: [flexcoders] HBox/VBox width=100% gets wider than the parent's width if children are wider

2009-06-24 Thread Alex Harui
Set minWidth=0 on the HBox.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of giladozer
Sent: Wednesday, June 24, 2009 6:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HBox/VBox width=100% gets wider than the parent's width 
if children are wider





I'm want to use HBox to contain several list components.
I also want the HBox to have its width based on its parent's width ( 100%).
Should the sum of the HBox Children's width be wider than the HBox's parent's 
width - the HBox's width is then expanded to more than its parent's width.
I would like the HBox to have a vertical/horizontal scroller in that case.
What solutions are in hand ?

Thanks ...
Gilad



RE: [flexcoders] Displaying HTML page

2009-06-24 Thread Alex Harui
Those are the two most popular ways.  See the "HTML and Flex" post on  my blog 
for other options.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of vin.flex
Sent: Tuesday, June 23, 2009 5:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Displaying HTML page





Hi

I have a html page(user agreement) which needs to be displayed in
a popup as modal window. I am getting that html text as CLOB. I have
binded the string to a text area component. It is not able to recognize
all the html tags.

I have tried using IFRAME, but somehow my page is not visible.

any suggestions...

thanks in advance

vin.



RE: [flexcoders] Flex corrupting certain UTF-8 characters

2009-06-24 Thread Alex Harui
Hard to say how any console output handles some of these chars.  Getting the 
string and the charCodes in them is probably best way to verify.  I don't think 
HTML entities work in UTF-8.  Make sure you're using valid encoding syntax.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of tessthyer
Sent: Tuesday, June 23, 2009 3:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex corrupting certain UTF-8 characters





I am using an HTTPService to send XML to a java server. Most of what I send to 
the server arrives as expected, but certain characters are corrupted somewhere 
along the way, such as degree sign and the Euro currency symbol.  What we are 
seeing is that those sort of symbols have an  (A + circumflex) inserted before 
them.  When I create the XML on the client side, these corrupted characters do 
not appear anywhere in the debugging process -- at least, not in the Debug 
window or printed to the Console.  However, I do see the corrupted characters 
if I look at the XML that is created using Flash Tracer.

In addition to trying to send the character itself, I have also tried sending 
decimal and hexadecimal HTML entities, but these are treated the same way -- 
they all have the  (A + circumflex) added before the character.

The following is a test case to demonstrate the problem.  My project uses Flex 
SDK 3.3.  Has anyone seen this problem before?


http://www.adobe.com/2006/mxml"; layout="absolute"
creationComplete="creationCompleteHandler(event)">










Re: [flexcoders] tilelist rowCount not working...

2009-06-24 Thread grimmwerks
Argh.  No one's had this issue of setting a rowCount and it not being  
honored?


On Jun 24, 2009, at 2:14 PM, grimmwerks wrote:

> I'm using FB3 and setting a tileList's rowCount=2 in the mxml - but
> then once adding data it's definately 3 rows I see.
>
> I've even tried adding tilelist.rowCount=2 on the dataChange but it's
> just not doing a THING.
>
> Only other option is to set the data it loads in to only 2 rows-amount
> and 'paging' through but that just seems stupid...
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 
> ! Groups Links
>
>
>



[flexcoders] how do I set the default value for an array in a function definition?

2009-06-24 Thread luvfotography
How do I make the array parameter optional??

private function howdoI(mycount:int,mystring:String, myArray:Array = []):void {
trace('hellow');
}

I get 
1047: Parameter initializer unknown or is not a compile-time constant.   


How do I make the Array parameter optional? :
myArray:Array = []

thanks,




RE: [flexcoders] Re: Modular application

2009-06-24 Thread Alex Harui
I'm not the person to answer that question.  Hopefully someone will answer the 
other thread you started.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of sandrea83
Sent: Tuesday, June 23, 2009 10:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Modular application





Thanks. Its helpful in terms of getting me to know about flex modules.
When it comes to structuring flex modular application, how should i structure 
thing like data services-Granite ? Language translater?

--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> See modules presentation on my blog
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of sandrea83
> Sent: Tuesday, June 23, 2009 3:04 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Modular application
>
>
>
>
>
> Im involved in a framework development project, we use flex 3 ,action 
> scripts, spring pure MVC pattern(mediator,proxy command) for our front end, 
> GraniteDS as data services, and ejb3 as server classes. As part of effort to 
> optimize the performance of application, we're taking into consideration 
> about using dynamic module loader of flex 3. I have researched through the 
> internet for more practical examples, and am currently looking into this 
> example : http://dluminosity.com/demos/modules/srcview/index.html .Please 
> suggest if you know of other related examples/forum threads which could help. 
> At the same time,im trying to make myself clear about RSL and ModuleManager.
>



[flexcoders] Getting started with Fluint

2009-06-24 Thread Charlie Hubbard
I'm trying to setup my project to use Fluint for unit testing, and I've read
the documentation.  I'm doing an AIR app so I've trying to test my sqlite db
layer, and model objects using Fluint.  However, the details of how get a
simple test running are very vague.  There's a whole discussion around
defining your testsuites in a module that the Air runner then loads in order
to execute your tests.  Sounds good, but how do I get that running in
FlexBuilder 3?  I've defined my module and I see in bin-debug my module's
swf.  So how do I run my tests?  Can I easily setup some run/debug
configuration to fire off my unit tests?  Is there something in the fluint
swc that I configure as another Application?

Thanks
Charlie


[flexcoders] wmode=opaque/transparent and linux

2009-06-24 Thread hank williams
Does this work? One of my developers is telling me that flash on linux
doesnt allow divs to overlap flash material. Is this true or is there
something wrong with his setup.

Thanks
Hank

-- 
blog: whydoeseverythingsuck.com


Re: [flexcoders] Re: Mate CacheSetter

2009-06-24 Thread Richard Rodseth
Thanks Tim. No, that does not compile. I'll try again on the forums, though
I have a workaround in the meantime.

On Wed, Jun 24, 2009 at 9:57 AM, Tim Hoff  wrote:

>
>
> Just a stab Richard, but do the binding brackets make any difference?
>
>  targetKey="foo" source="{ legacyModel }" sourceKey="foo"/>
>
> -TH
>
>
> --- In flexcoders@yahoogroups.com, Richard Rodseth  wrote:
> >
> > Any Mate users here? The forums are down again.
> >
> > I'm trying to use the newish CacheSetter tag, as follows:
> >
> >  instance="{this.model}"/>
> >
> > Elsewhere:
> >
> > 
> >
> > This gives the error: "1069 Property foo not found on String"
> >
> > If I use the class name instead it complains because the class in
> > question has constructor arguments.
> >
> > What's the correct approach here? Thanks.
> >
>  
>


[flexcoders] Re: How to enable ardware acceleation for AIR Player ?

2009-06-24 Thread helihobby
That sucks the big one...
We need it BIG time, look why:

http://www.MediaSignage.com

Regards,

Sean - MediaSignage.com


--- In flexcoders@yahoogroups.com, "arno.manders"  wrote:
>
> No it doesn't support hardware acceleration. I don't know why you need it for 
> but Unity3D is a good alternative if you are planning to do something with 3D.
> 
> --- In flexcoders@yahoogroups.com, "helihobby"  wrote:
> >
> > Hello,
> > I am trying to find out how can I enable ardware acceleation for AIR 
> > Player. It does not have the HTML wrapper so the wmode won't help.
> > 
> > And, is there a list of compatible hardware ?
> > 
> > Any information or links will help and I do appreciate it.
> > 
> > Googling does reveal much which leads me to believe AIR Player may not 
> > support it, which would suck.
> > 
> > Thanks,
> > 
> > Sean.
> >
>




[flexcoders] PDF - Text Display

2009-06-24 Thread lrlarsonny
Hello --

Am I correct is gleaning from my google searches that there is no way to 
display a pdf in Flex? (Not Air). And that flashpaper is no more?

Given that, how do developers show formatted text? 

We are building an app that will show documents within the published flex swf, 
and I just assumed that there was a way to do this.
Thanks

lrlarson
nyc



[flexcoders] Re: I can't understand pureMVC

2009-06-24 Thread Teoti Graphix, LLC
> Yeh I heard about Flex wrapping results from certain remote requests
> using the ObjectProxy class, cant remember why this happens but try
> this and see what happens:
If I remember correctly, it's due to the fact there is no typed class 
when the data comes in. The remote call returns a generic array or std 
class.

Mike


[flexcoders] tilelist rowCount not working...

2009-06-24 Thread grimmwerks
I'm using FB3 and setting a tileList's rowCount=2 in the mxml - but  
then once adding data it's definately 3 rows I see.

I've even tried adding tilelist.rowCount=2 on the dataChange but it's  
just not doing a THING.

Only other option is to set the data it loads in to only 2 rows-amount  
and 'paging' through but that just seems stupid...


re: [flexcoders] Re: Extending Custom Panel with RadioButtons - Help

2009-06-24 Thread Wally Kolcz
Thanks that worked like a charm. I had a feeling I wanted to do a dispatched 
event, I just forgot that I then get it in the panel MXML attributes! You're 
the best!


From: "Tim Hoff" 
Sent: Wednesday, June 24, 2009 9:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Extending Custom Panel with RadioButtons - Help 

Ok, so take maps out of the RadioButtonPanel AS component and make the 
startLocation  RadioButtonGroup public.  Next create a Event in the component, 
that will be dispatched when the radio buttons are clicked:

After the import statements add:
[ Event(name= "changeMap",type= "flash.events.Event")] 

Then in changeStartType(), replace the if statement with:
var event:Event =  new Event(  "changeMap" );
dispatchEvent( event );   

   Now you can listen for the event:
  

The event handler would then perform the changes, from outside of the component:

private function handleChangeMap( event:Event ): void
{
  if (event.currentTarget.startLocation.selectedValue ==  "address"
){
   start_txt.text =  "Enter Starting Address";
  } else{
   start_txt.text =  "Choose Your Airport";
  }
}

It makes sense to do it this way because the content of the panel could change 
and you might want to re-use your component..

-TH

--- In flexcoders@yahoogroups.com, "Wally Kolcz"  wrote:
>
> How can I do that? maps is the 'page' that this panel is on. I need to 
> control the elements that are inside the panel: 
> 
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  visible="false"> 
>  
>  
>  
>  
>  
>  city="Flint" state="MI" zipcode="48507"/> 
>  
>  
>  
>  
>  
>  
>  
> 
>  
> From: "Tim Hoff" timh...@... 
> Sent: Wednesday, June 24, 2009 8:56 AM 
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Re: Extending Custom Panel with RadioButtons - Help 
> 
> You need to add maps as a child in createChildren(). 
> 
> -TH 
> 
> --- In flexcoders@yahoogroups.com, "Wally Kolcz" wkolcz@ wrote: 
> 
> > 
> 
> > 
> 
> > Thanks! The labels are now showing perfectly! 
> 
> > 
> 
> > However, I am getting an error when I attempt to check the radio 
> 
> buttons: 
> 
> > TypeError: Error #1009: Cannot access a property or method of a null 
> 
> object reference. 
> 
> > at 
> 
> com.wallykolcz.views.components::RadioButtonPanel/changeStartType()[D:\w\ 
> 
> kolcz\My 
> 
> Documents\Flex3\landingPage\src\com\wallykolcz\views\components\RadioBut\ 
> 
> tonPanel.as:34] 
> 
> > 
> 
> > Line 34 (in this case since I chose Airport to make this error) is 
> 
> part of this: 
> 
> > 
> 
> > public function changeStartType(e:Event):void { 
> 
> > if (startLocation.selectedValue == "address"){ 
> 
> > maps.start_txt.text = "Enter Starting Address"; 
> 
> > maps.frmAirport.includeInLayout = false; 
> 
> > maps.frmAirport.visible = false; 
> 
> > maps.frmAddress.includeInLayout = true; 
> 
> > maps.frmAddress.visible = true; 
> 
> > maps.submit_btn.visible = true; 
> 
> > }else{ 
> 
> > maps.start_txt.text = "Choose Your Airport"; 
> 
> > maps.frmAddress.includeInLayout = false; 
> 
> > maps.frmAddress.visible = false; 
> 
> > maps.frmAirport.includeInLayout = true; 
> 
> > maps.frmAirport.visible = true; 
> 
> > maps.submit_btn.visible = true; 
> 
> > } 
> 
> > 
> 
> > } 
> 
> > 
> 
> > I did import and create a variable for the 'maps' component in which 
> 
> this panel is inside. 
> 
> > 
> 
> > import edu.umich.body.Maps; 
> 
> > private var maps:Maps; 
> 
> > 
> 
> > Is there something I am missing? 
> 
> > 
> 
> > If you need a visual reference you can see the concept site at 
> http://www.med.umich.edu/prmc/landing/helipad 
> 
> > 
> 
> >  
> 
> > 
> 
> > From: "Tim Hoff" TimHoff@ 
> 
> > Sent: Wednesday, June 24, 2009 8:04 AM 
> 
> > To: flexcoders@yahoogroups.com 
> 
> > Subject: [flexcoders] Re: Extending Custom Panel with RadioButtons - 
> 
> Help 
> 
> > 
> 
> > Hi Wally, 
> 
> > 
> 
> > Pretty close, just a few minor tweaks needed: 
> 
> > 
> 
> > // add the event parameter 
> 
> > 
> 
> > public 
> 
> > 
> 
> > function 
> 
> > 
> 
> > changeStartType( event:Event ): 
> 
> > 
> 
> > void 
> 
> > 
> 
> > // change to group 
> 
> > 
> 
> > addressRB.group = startLocation ; 
> 
> > airportRB.group = startLocation ; 
> 
> > 
> 
> > protected 
> 
> > 
> 
> > override 
> 
> > 
> 
> > function 
> 
> > 
> 
> > updateDisplayList(unscaledWidth:Number, unscaledHeight:Number): 
> 
> > 
> 
> > void 
> 
> > 
> 
> > { 
> 
> > 
> 
> > super 
> 
> > 
> 
> > .updateDisplayList(unscaledWidth, unscaledHeight); 
> 
> > 
> 
> > // gap between label and edges of button 
> 
> > 
> 
> > var 
> 
> > 
> 
> > margin:int = 4; 
> 
> > 
> 
> > // set the sizes 
> 
> > addressRB.setActualSize(addressRB.getExplicitOrMeasuredWidth(), 
> 
> addressRB.getExplicitOrMeasuredHeight()); 
> 
> > airportRB.setActualSiz

[flexcoders] Re: Mate CacheSetter

2009-06-24 Thread Tim Hoff

Just a stab Richard, but do the binding brackets make any difference?



-TH

--- In flexcoders@yahoogroups.com, Richard Rodseth  wrote:
>
> Any Mate users here? The forums are down again.
>
> I'm trying to use the newish CacheSetter tag, as follows:
>
> 
>
> Elsewhere:
>
> 
>
> This gives the error: "1069 Property foo not found on String"
>
> If I use the class name instead it complains because the class in
> question has constructor arguments.
>
> What's the correct approach here? Thanks.
>




[flexcoders] Re: Extending Custom Panel with RadioButtons - Help

2009-06-24 Thread Tim Hoff

Ok, so take maps out of the RadioButtonPanel AS component and make the
startLocation RadioButtonGroup public.  Next create a Event in the
component, that will be dispatched when the radio buttons are clicked:

After the import statements add:
[Event(name="changeMap",type="flash.events.Event")]

Then in changeStartType(), replace the if statement with:
var event:Event = new Event( "changeMap" );
dispatchEvent( event );

Now you can listen for the event:


The event handler would then perform the changes, from outside of the
component:

private function handleChangeMap( event:Event ):void
{
  if (event.currentTarget.startLocation.selectedValue == "address"){
   start_txt.text = "Enter Starting Address";
  }else{
   start_txt.text = "Choose Your Airport";
  }
}

It makes sense to do it this way because the content of the panel could
change and you might want to re-use your component..

-TH

--- In flexcoders@yahoogroups.com, "Wally Kolcz"  wrote:
>
> How can I do that? maps is the 'page' that this panel is on. I need to
control the elements that are inside the panel:
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> From: "Tim Hoff" timh...@...
> Sent: Wednesday, June 24, 2009 8:56 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Extending Custom Panel with RadioButtons -
Help
>
> You need to add maps as a child in createChildren().
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "Wally Kolcz" wkolcz@ wrote:
>
> >
>
> >
>
> > Thanks! The labels are now showing perfectly!
>
> >
>
> > However, I am getting an error when I attempt to check the radio
>
> buttons:
>
> > TypeError: Error #1009: Cannot access a property or method of a null
>
> object reference.
>
> > at
>
>
com.wallykolcz.views.components::RadioButtonPanel/changeStartType()[D:\w\
\
>
> kolcz\My
>
>
Documents\Flex3\landingPage\src\com\wallykolcz\views\components\RadioBut\
\
>
> tonPanel.as:34]
>
> >
>
> > Line 34 (in this case since I chose Airport to make this error) is
>
> part of this:
>
> >
>
> > public function changeStartType(e:Event):void {
>
> > if (startLocation.selectedValue == "address"){
>
> > maps.start_txt.text = "Enter Starting Address";
>
> > maps.frmAirport.includeInLayout = false;
>
> > maps.frmAirport.visible = false;
>
> > maps.frmAddress.includeInLayout = true;
>
> > maps.frmAddress.visible = true;
>
> > maps.submit_btn.visible = true;
>
> > }else{
>
> > maps.start_txt.text = "Choose Your Airport";
>
> > maps.frmAddress.includeInLayout = false;
>
> > maps.frmAddress.visible = false;
>
> > maps.frmAirport.includeInLayout = true;
>
> > maps.frmAirport.visible = true;
>
> > maps.submit_btn.visible = true;
>
> > }
>
> >
>
> > }
>
> >
>
> > I did import and create a variable for the 'maps' component in which
>
> this panel is inside.
>
> >
>
> > import edu.umich.body.Maps;
>
> > private var maps:Maps;
>
> >
>
> > Is there something I am missing?
>
> >
>
> > If you need a visual reference you can see the concept site at
> http://www.med.umich.edu/prmc/landing/helipad
>
> >
>
> > 
>
> >
>
> > From: "Tim Hoff" TimHoff@
>
> > Sent: Wednesday, June 24, 2009 8:04 AM
>
> > To: flexcoders@yahoogroups.com
>
> > Subject: [flexcoders] Re: Extending Custom Panel with RadioButtons -
>
> Help
>
> >
>
> > Hi Wally,
>
> >
>
> > Pretty close, just a few minor tweaks needed:
>
> >
>
> > // add the event parameter
>
> >
>
> > public
>
> >
>
> > function
>
> >
>
> > changeStartType( event:Event ):
>
> >
>
> > void
>
> >
>
> > // change to group
>
> >
>
> > addressRB.group = startLocation ;
>
> > airportRB.group = startLocation ;
>
> >
>
> > protected
>
> >
>
> > override
>
> >
>
> > function
>
> >
>
> > updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):
>
> >
>
> > void
>
> >
>
> > {
>
> >
>
> > super
>
> >
>
> > .updateDisplayList(unscaledWidth, unscaledHeight);
>
> >
>
> > // gap between label and edges of button
>
> >
>
> > var
>
> >
>
> > margin:int = 4;
>
> >
>
> > // set the sizes
>
> > addressRB.setActualSize(addressRB.getExplicitOrMeasuredWidth(),
>
> addressRB.getExplicitOrMeasuredHeight());
>
> > airportRB.setActualSize(airportRB.getExplicitOrMeasuredWidth(),
>
> airportRB.getExplicitOrMeasuredHeight());
>
> >
>
> > // position the buttons in the panel
>
> >
>
> > addressRB.move(145,5 );
>
> > airportRB.move(255,5 );
>
> > }
>
> >
>
> > -TH
>
> >
>
> > --- In flexcoders@yahoogroups.com, "Wally Kolcz" wkolcz@ wrote:
>
> > >
>
> > >
>
> > >
>
> > > Using an example from the web I am trying to create a custom Panel
>
> component that had radio buttons in the panel header for a specific
>
> piece of a web site. The panel works and I am getting 2 radio buttons
>
> but no labels for either button and the radioGroup's
>
> > > changeStartType() is not being called
>
> > > . What am I doing wrong? Here is the AS:
>
> > >
>
> > > package com.wallykolcz.views.components

re: [flexcoders] Re: Extending Custom Panel with RadioButtons - Help

2009-06-24 Thread Wally Kolcz
How can I do that? maps is the 'page' that this panel is on. I need to control 
the elements that are inside the panel:


























  
  







From: "Tim Hoff" 
Sent: Wednesday, June 24, 2009 8:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Extending Custom Panel with RadioButtons - Help 

You need to add maps as a child in createChildren().

-TH

--- In flexcoders@yahoogroups.com, "Wally Kolcz"  wrote:

>

>

> Thanks! The labels are now showing perfectly!

>

> However, I am getting an error when I attempt to check the radio

buttons:

> TypeError: Error #1009: Cannot access a property or method of a null

object reference.

> at

com.wallykolcz.views.components::RadioButtonPanel/changeStartType()[D:\w\

kolcz\My

Documents\Flex3\landingPage\src\com\wallykolcz\views\components\RadioBut\

tonPanel.as:34]

>

> Line 34 (in this case since I chose Airport to make this error) is

part of this:

>

> public function changeStartType(e:Event):void {

> if (startLocation.selectedValue == "address"){

> maps.start_txt.text = "Enter Starting Address";

> maps.frmAirport.includeInLayout = false;

> maps.frmAirport.visible = false;

> maps.frmAddress.includeInLayout = true;

> maps.frmAddress.visible = true;

> maps.submit_btn.visible = true;

> }else{

> maps.start_txt.text = "Choose Your Airport";

> maps.frmAddress.includeInLayout = false;

> maps.frmAddress.visible = false;

> maps.frmAirport.includeInLayout = true;

> maps.frmAirport.visible = true;

> maps.submit_btn.visible = true;

> }

>

> }

>

> I did import and create a variable for the 'maps' component in which

this panel is inside.

>

> import edu.umich.body.Maps;

> private var maps:Maps;

>

> Is there something I am missing?

>

> If you need a visual reference you can see the concept site at
http://www.med.umich.edu/prmc/landing/helipad

>

> 

>

> From: "Tim Hoff" timh...@...

> Sent: Wednesday, June 24, 2009 8:04 AM

> To: flexcoders@yahoogroups.com

> Subject: [flexcoders] Re: Extending Custom Panel with RadioButtons -

Help

>

> Hi Wally,

>

> Pretty close, just a few minor tweaks needed:

>

> // add the event parameter

>

> public

>

> function

>

> changeStartType( event:Event ):

>

> void

>

> // change to group

>

> addressRB.group = startLocation ;

> airportRB.group = startLocation ;

>

> protected

>

> override

>

> function

>

> updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):

>

> void

>

> {

>

> super

>

> .updateDisplayList(unscaledWidth, unscaledHeight);

>

> // gap between label and edges of button

>

> var

>

> margin:int = 4;

>

> // set the sizes

> addressRB.setActualSize(addressRB.getExplicitOrMeasuredWidth(),

addressRB.getExplicitOrMeasuredHeight());

> airportRB.setActualSize(airportRB.getExplicitOrMeasuredWidth(),

airportRB.getExplicitOrMeasuredHeight());

>

> // position the buttons in the panel

>

> addressRB.move(145,5 );

> airportRB.move(255,5 );

> }

>

> -TH

>

> --- In flexcoders@yahoogroups.com, "Wally Kolcz" wkolcz@ wrote:

> >

> >

> >

> > Using an example from the web I am trying to create a custom Panel

component that had radio buttons in the panel header for a specific

piece of a web site. The panel works and I am getting 2 radio buttons

but no labels for either button and the radioGroup's

> > changeStartType() is not being called

> > . What am I doing wrong? Here is the AS:

> >

> > package com.wallykolcz.views.components

> > {

> >

> > import edu.umich.body.Maps;

> > import flash.events.Event;

> > import mx.containers.Panel;

> > import mx.controls.Button;

> > import mx.controls.RadioButton;

> > import mx.controls.RadioButtonGroup;

> >

> > public class RadioButtonPanel extends Panel

> > {

> >

> > //Create Radio Button Group and Buttons

> > private var startLocation:RadioButtonGroup = new RadioButtonGroup();

> > private var addressRB:RadioButton = new RadioButton();

> > private var airportRB:RadioButton = new RadioButton();

> > private var maps:Maps;

> >

> > //constructor

> > public function RadioButtonPanel()

> > {

> > super();

> > }

> >

> > public function changeStartType():void {

> > if (startLocation.selectedValue == "address"){

> > maps.start_txt.text = "Enter Starting Address";

> > maps.frmAirport.includeInLayout = false;

> > maps.frmAirport.visible = false;

> > maps.frmAddress.includeInLayout = true;

> > maps.frmAddress.visible = true;

> > maps.submit_btn.visible = true;

> > }else{

> > maps.start_txt.text =

[flexcoders] Mate CacheSetter

2009-06-24 Thread Richard Rodseth
Any Mate users here? The forums are down again.

I'm trying to use the newish CacheSetter tag, as follows:



Elsewhere:



This gives the error: "1069 Property foo not found on String"

If I use the class name instead it complains because the class in
question has constructor arguments.

What's the correct approach here? Thanks.


[flexcoders] Re: Extending Custom Panel with RadioButtons - Help

2009-06-24 Thread Tim Hoff

You need to add maps as a child in createChildren().

-TH

--- In flexcoders@yahoogroups.com, "Wally Kolcz"  wrote:
>
>
> Thanks! The labels are now showing perfectly!
>
> However, I am getting an error when I attempt to check the radio
buttons:
> TypeError: Error #1009: Cannot access a property or method of a null
object reference.
> at
com.wallykolcz.views.components::RadioButtonPanel/changeStartType()[D:\w\
kolcz\My
Documents\Flex3\landingPage\src\com\wallykolcz\views\components\RadioBut\
tonPanel.as:34]
>
> Line 34 (in this case since I chose Airport to make this error) is
part of this:
>
> public function changeStartType(e:Event):void {
> if (startLocation.selectedValue == "address"){
> maps.start_txt.text = "Enter Starting Address";
> maps.frmAirport.includeInLayout = false;
> maps.frmAirport.visible = false;
> maps.frmAddress.includeInLayout = true;
> maps.frmAddress.visible = true;
> maps.submit_btn.visible = true;
> }else{
> maps.start_txt.text = "Choose Your Airport";
> maps.frmAddress.includeInLayout = false;
> maps.frmAddress.visible = false;
> maps.frmAirport.includeInLayout = true;
> maps.frmAirport.visible = true;
> maps.submit_btn.visible = true;
> }
>
> }
>
> I did import and create a variable for the 'maps' component in which
this panel is inside.
>
> import edu.umich.body.Maps;
> private var maps:Maps;
>
> Is there something I am missing?
>
> If you need a visual reference you can see the concept site at
http://www.med.umich.edu/prmc/landing/helipad
>
> 
>
> From: "Tim Hoff" timh...@...
> Sent: Wednesday, June 24, 2009 8:04 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Extending Custom Panel with RadioButtons -
Help
>
> Hi Wally,
>
> Pretty close, just a few minor tweaks needed:
>
> // add the event parameter
>
> public
>
> function
>
> changeStartType( event:Event ):
>
> void
>
> // change to group
>
> addressRB.group = startLocation ;
> airportRB.group = startLocation ;
>
> protected
>
> override
>
> function
>
> updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):
>
> void
>
> {
>
> super
>
> .updateDisplayList(unscaledWidth, unscaledHeight);
>
> // gap between label and edges of button
>
> var
>
> margin:int = 4;
>
> // set the sizes
> addressRB.setActualSize(addressRB.getExplicitOrMeasuredWidth(),
addressRB.getExplicitOrMeasuredHeight());
> airportRB.setActualSize(airportRB.getExplicitOrMeasuredWidth(),
airportRB.getExplicitOrMeasuredHeight());
>
> // position the buttons in the panel
>
> addressRB.move(145,5 );
> airportRB.move(255,5 );
> }
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "Wally Kolcz" wkolcz@ wrote:
> >
> >
> >
> > Using an example from the web I am trying to create a custom Panel
component that had radio buttons in the panel header for a specific
piece of a web site. The panel works and I am getting 2 radio buttons
but no labels for either button and the radioGroup's
> > changeStartType() is not being called
> > . What am I doing wrong? Here is the AS:
> >
> > package com.wallykolcz.views.components
> > {
> >
> > import edu.umich.body.Maps;
> > import flash.events.Event;
> > import mx.containers.Panel;
> > import mx.controls.Button;
> > import mx.controls.RadioButton;
> > import mx.controls.RadioButtonGroup;
> >
> > public class RadioButtonPanel extends Panel
> > {
> >
> > //Create Radio Button Group and Buttons
> > private var startLocation:RadioButtonGroup = new RadioButtonGroup();
> > private var addressRB:RadioButton = new RadioButton();
> > private var airportRB:RadioButton = new RadioButton();
> > private var maps:Maps;
> >
> > //constructor
> > public function RadioButtonPanel()
> > {
> > super();
> > }
> >
> > public function changeStartType():void {
> > if (startLocation.selectedValue == "address"){
> > maps.start_txt.text = "Enter Starting Address";
> > maps.frmAirport.includeInLayout = false;
> > maps.frmAirport.visible = false;
> > maps.frmAddress.includeInLayout = true;
> > maps.frmAddress.visible = true;
> > maps.submit_btn.visible = true;
> > }else{
> > maps.start_txt.text = "Choose Your Airport";
> > maps.frmAddress.includeInLayout = false;
> > maps.frmAddress.visible = false;
> > maps.frmAirport.includeInLayout = true;
> > maps.frmAirport.visible = true;
> > maps.submit_btn.visible = true;
> > }
> > }
> >
> > protected override function createChildren():void{
> > super.createChildren();
> > //instantiate new radiobuttons and assign properties
> > addressRB.value="address";
> > addressRB.label="My Address";
> > addressRB.groupName = "startLocation";
> >
> > airportRB.value="airport";
> > airportRB.label="Airport";
> > airportRB.groupName="startLocation"
> >
> > //add event listener for change event and call method
> > startLocation.addEventListener(Event.CHANGE, changeStartType);
> >
> > //add the buttons to rawChildren
> > rawChildren.addChild(addressRB);
> > rawChildren.addChild(airportRB);
> > }
> >
> > protected override function updateDisplayList(unscaledWidth:Number,
unscale

re: [flexcoders] Re: Extending Custom Panel with RadioButtons - Help

2009-06-24 Thread Wally Kolcz

Thanks! The labels are now showing perfectly! 

However, I am getting an error when I attempt to check the radio buttons:
TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at 
com.wallykolcz.views.components::RadioButtonPanel/changeStartType()[D:\wkolcz\My
 
Documents\Flex3\landingPage\src\com\wallykolcz\views\components\RadioButtonPanel.as:34]

Line 34 (in this case since I chose Airport to make this error) is part of this:

public function changeStartType(e:Event):void {
if (startLocation.selectedValue == "address"){
maps.start_txt.text = "Enter Starting Address";
maps.frmAirport.includeInLayout = false;
maps.frmAirport.visible = false;
maps.frmAddress.includeInLayout = true;
maps.frmAddress.visible = true;
maps.submit_btn.visible = true;
}else{
maps.start_txt.text = "Choose Your Airport";
maps.frmAddress.includeInLayout = false;
maps.frmAddress.visible = false;
maps.frmAirport.includeInLayout = true;
maps.frmAirport.visible = true;
maps.submit_btn.visible = true;
}

}

I did import and create a variable for the 'maps' component in which this panel 
is inside. 

import edu.umich.body.Maps;
private var maps:Maps;

Is there something I am missing? 

If you need a visual reference you can see the concept site at 
http://www.med.umich.edu/prmc/landing/helipad



From: "Tim Hoff" 
Sent: Wednesday, June 24, 2009 8:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Extending Custom Panel with RadioButtons - Help 

Hi Wally,

Pretty close, just a few minor tweaks needed:  


// add the 
event parameter 


public 


function 


 changeStartType( event:Event  ): 


void 


// change to 
group 


addressRB.group = startLocation ; 
airportRB.group = startLocation ; 


protected 


override 


function 


 updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number): 


void


{


 super 


.updateDisplayList(unscaledWidth, unscaledHeight);


// gap between label and edges 
of button


  var 


 margin:int = 4;

  // set the sizes
   addressRB.setActualSize(addressRB.getExplicitOrMeasuredWidth(), 
addressRB.getExplicitOrMeasuredHeight());
 airportRB.setActualSize(airportRB.getExplicitOrMeasuredWidth(), 
airportRB.getExplicitOrMeasuredHeight()); 


// position the buttons in the 
panel


addressRB.move(145,5 );
  airportRB.move(255,5 );
} 


[flexcoders] Re: Extending Custom Panel with RadioButtons - Help

2009-06-24 Thread arno.manders
Try 
addressRB.setActualSize(addressRB.measuredWidth,addressRB.measuredHeight)
airportRB.setActualSize(addressRB.measuredWidth, addressRB.measuredHeight);

in the updateDisplayList() function

--- In flexcoders@yahoogroups.com, "Wally Kolcz"  wrote:
>
> 
> 
>   Using an example from the web I am trying to 
> create a custom Panel component that had radio buttons in the panel header 
> for a specific piece of a web site. The panel works and I am getting 2 radio 
> buttons but no labels for either button and the radioGroup's 
>   changeStartType() is not being called
>   . What am I doing wrong? Here is the AS:
> 
> package com.wallykolcz.views.components
> {
> 
> import edu.umich.body.Maps;
> import flash.events.Event;
> import mx.containers.Panel;
> import mx.controls.Button;
> import mx.controls.RadioButton;
> import mx.controls.RadioButtonGroup;
> 
> public class RadioButtonPanel extends Panel
> {
> 
> //Create Radio Button Group and Buttons
> private var startLocation:RadioButtonGroup = new RadioButtonGroup();
> private var addressRB:RadioButton = new RadioButton();
> private var airportRB:RadioButton = new RadioButton();
> private var maps:Maps;
> 
> //constructor
> public function RadioButtonPanel()
> {
> super();
> }
> 
> public function changeStartType():void {
> if (startLocation.selectedValue == "address"){
> maps.start_txt.text = "Enter Starting Address";
> maps.frmAirport.includeInLayout = false;
> maps.frmAirport.visible = false;
> maps.frmAddress.includeInLayout = true;
> maps.frmAddress.visible = true;
> maps.submit_btn.visible = true;
> }else{
> maps.start_txt.text = "Choose Your Airport";
> maps.frmAddress.includeInLayout = false;
> maps.frmAddress.visible = false;
> maps.frmAirport.includeInLayout = true;
> maps.frmAirport.visible = true;
> maps.submit_btn.visible = true;
> }
> }
> 
> protected override function createChildren():void{
> super.createChildren();
> //instantiate new radiobuttons and assign properties
> addressRB.value="address";
> addressRB.label="My Address";
> addressRB.groupName = "startLocation"; 
> 
> airportRB.value="airport";
> airportRB.label="Airport";
> airportRB.groupName="startLocation"
> 
> //add event listener for change event and call method
> startLocation.addEventListener(Event.CHANGE, changeStartType);
> 
> //add the buttons to rawChildren
> rawChildren.addChild(addressRB);
> rawChildren.addChild(airportRB);
> }
> 
> protected override function updateDisplayList(unscaledWidth:Number, 
> unscaledHeight:Number):void{
> super.updateDisplayList(unscaledWidth, unscaledHeight);
> //gap between label and edges of button
> var margin:int = 4;
> 
> //position the buttons in the panel
> addressRB.move(145, 15);
> airportRB.move(255,15)
> }
>




[flexcoders] Re: How to enable ardware acceleation for AIR Player ?

2009-06-24 Thread arno.manders
No it doesn't support hardware acceleration. I don't know why you need it for 
but Unity3D is a good alternative if you are planning to do something with 3D.

--- In flexcoders@yahoogroups.com, "helihobby"  wrote:
>
> Hello,
> I am trying to find out how can I enable ardware acceleation for AIR Player. 
> It does not have the HTML wrapper so the wmode won't help.
> 
> And, is there a list of compatible hardware ?
> 
> Any information or links will help and I do appreciate it.
> 
> Googling does reveal much which leads me to believe AIR Player may not 
> support it, which would suck.
> 
> Thanks,
> 
> Sean.
>




[flexcoders] Re: Sticky Scroll bars

2009-06-24 Thread djhatrick
Too Late. I crafted a  javascript work-around solution, similar to the way to 
get the mouse wheel to work in OSX: http://www.patricklemiuex.com/?p=68

Tho, you know what's weird is that the when Flash misses mouse Up event it is 
caught by the browser.  I should have done your solution with the mouseLeave 
event.

Thanks,
Patrick

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> It shouldn't require javascript.  If you listen for MOUSE_LEAVE and dispatch 
> a fake MOUSE_UP that should suffice.  I think the fix may go into Flex 3.4 as 
> well.
> 
> In general, you cannot mix module versions.  The SWF loading the module and 
> the module must be compiled with the same version of Flex otherwise you risk 
> problems.  See the Marshall Plan presentation on my blog.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of djhatrick
> Sent: Tuesday, June 23, 2009 7:54 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Sticky Scroll bars
> 
> 
> 
> 
> 
> I use Firefox, like most in our office. Is this possible with the the help of 
> a javascript library, similar to the way the mouse scroll wheel library works 
> in javascript? if it's just missing a mouseUp, maybe I can add that event and 
> send it into flex, would that work?
> 
> By the way, Alex, so I've heard that flex 3 modules will run in Flex4. I am 2 
> months into a new application on Flex3, but I really want to use Flex4, 
> though I am a little concerned on the learning curve since I've done very 
> little with flex 4.0 sdk.
> 
> Will Flex4 modules run in flex3, or that does sound like a bad idea..
> (seems like?)
> 
> Thanks,
> Patrick
> 
> --- In flexcoders@yahoogroups.com, Alex 
> Harui  wrote:
> >
> > I hope to fix it in Flex 4. Should work on IE? Some of the other platforms 
> > don't send mouseUp from off the stage...
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com] On 
> > Behalf Of djhatrick
> > Sent: Saturday, June 20, 2009 7:46 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Sticky Scroll bars
> >
> >
> >
> >
> >
> > After a mouse up on my flex app the scroll bar still sticks as I move the 
> > mouse around, until another click. This is a real annoying bug, anybody 
> > know if this is going to be addressed?
> >
> > How did this bug get out in the first place from QA?
> >
>




[flexcoders] Re: Extending Custom Panel with RadioButtons - Help

2009-06-24 Thread Tim Hoff

Hi Wally,

Pretty close, just a few minor tweaks needed:

// add the event parameter
public function changeStartType( event:Event ):void

// change to group
addressRB.group = startLocation;
airportRB.group = startLocation;

protected override function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void
{
  super.updateDisplayList(unscaledWidth, unscaledHeight);

  // gap between label and edges of button
  var margin:int = 4;

   // set the sizes
  addressRB.setActualSize(addressRB.getExplicitOrMeasuredWidth(),
addressRB.getExplicitOrMeasuredHeight());
  airportRB.setActualSize(airportRB.getExplicitOrMeasuredWidth(),
airportRB.getExplicitOrMeasuredHeight());

  // position the buttons in the panel
  addressRB.move(145,5);
  airportRB.move(255,5);
}

-TH

--- In flexcoders@yahoogroups.com, "Wally Kolcz"  wrote:
>
>
>
> Using an example from the web I am trying to create a custom Panel
component that had radio buttons in the panel header for a specific
piece of a web site. The panel works and I am getting 2 radio buttons
but no labels for either button and the radioGroup's
> changeStartType() is not being called
> . What am I doing wrong? Here is the AS:
>
> package com.wallykolcz.views.components
> {
>
> import edu.umich.body.Maps;
> import flash.events.Event;
> import mx.containers.Panel;
> import mx.controls.Button;
> import mx.controls.RadioButton;
> import mx.controls.RadioButtonGroup;
>
> public class RadioButtonPanel extends Panel
> {
>
> //Create Radio Button Group and Buttons
> private var startLocation:RadioButtonGroup = new RadioButtonGroup();
> private var addressRB:RadioButton = new RadioButton();
> private var airportRB:RadioButton = new RadioButton();
> private var maps:Maps;
>
> //constructor
> public function RadioButtonPanel()
> {
> super();
> }
>
> public function changeStartType():void {
> if (startLocation.selectedValue == "address"){
> maps.start_txt.text = "Enter Starting Address";
> maps.frmAirport.includeInLayout = false;
> maps.frmAirport.visible = false;
> maps.frmAddress.includeInLayout = true;
> maps.frmAddress.visible = true;
> maps.submit_btn.visible = true;
> }else{
> maps.start_txt.text = "Choose Your Airport";
> maps.frmAddress.includeInLayout = false;
> maps.frmAddress.visible = false;
> maps.frmAirport.includeInLayout = true;
> maps.frmAirport.visible = true;
> maps.submit_btn.visible = true;
> }
> }
>
> protected override function createChildren():void{
> super.createChildren();
> //instantiate new radiobuttons and assign properties
> addressRB.value="address";
> addressRB.label="My Address";
> addressRB.groupName = "startLocation";
>
> airportRB.value="airport";
> airportRB.label="Airport";
> airportRB.groupName="startLocation"
>
> //add event listener for change event and call method
> startLocation.addEventListener(Event.CHANGE, changeStartType);
>
> //add the buttons to rawChildren
> rawChildren.addChild(addressRB);
> rawChildren.addChild(airportRB);
> }
>
> protected override function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void{
> super.updateDisplayList(unscaledWidth, unscaledHeight);
> //gap between label and edges of button
> var margin:int = 4;
>
> //position the buttons in the panel
> addressRB.move(145, 15);
> airportRB.move(255,15)
> }
>




[flexcoders] How to enable ardware acceleation for AIR Player ?

2009-06-24 Thread helihobby
Hello,
I am trying to find out how can I enable ardware acceleation for AIR Player. It 
does not have the HTML wrapper so the wmode won't help.

And, is there a list of compatible hardware ?

Any information or links will help and I do appreciate it.

Googling does reveal much which leads me to believe AIR Player may not support 
it, which would suck.

Thanks,

Sean.



[flexcoders] HBox/VBox width=100% gets wider than the parent's width if children are wider

2009-06-24 Thread giladozer
I'm want to use HBox to contain several list components.
I also want the HBox to have its width based on its parent's width ( 100%).
Should the sum of the HBox Children's width be wider than the HBox's parent's 
width - the HBox's width is then expanded to more than its parent's width.
I would like the HBox to have a vertical/horizontal scroller in that case.
What solutions are in hand ?

Thanks ...
Gilad





[flexcoders] Extending Custom Panel with RadioButtons - Help

2009-06-24 Thread Wally Kolcz


Using an example from the web I am trying to 
create a custom Panel component that had radio buttons in the panel header for 
a specific piece of a web site. The panel works and I am getting 2 radio 
buttons but no labels for either button and the radioGroup's 
changeStartType() is not being called
. What am I doing wrong? Here is the AS:

package com.wallykolcz.views.components
{

import edu.umich.body.Maps;
import flash.events.Event;
import mx.containers.Panel;
import mx.controls.Button;
import mx.controls.RadioButton;
import mx.controls.RadioButtonGroup;

public class RadioButtonPanel extends Panel
{

//Create Radio Button Group and Buttons
private var startLocation:RadioButtonGroup = new RadioButtonGroup();
private var addressRB:RadioButton = new RadioButton();
private var airportRB:RadioButton = new RadioButton();
private var maps:Maps;

//constructor
public function RadioButtonPanel()
{
super();
}

public function changeStartType():void {
if (startLocation.selectedValue == "address"){
maps.start_txt.text = "Enter Starting Address";
maps.frmAirport.includeInLayout = false;
maps.frmAirport.visible = false;
maps.frmAddress.includeInLayout = true;
maps.frmAddress.visible = true;
maps.submit_btn.visible = true;
}else{
maps.start_txt.text = "Choose Your Airport";
maps.frmAddress.includeInLayout = false;
maps.frmAddress.visible = false;
maps.frmAirport.includeInLayout = true;
maps.frmAirport.visible = true;
maps.submit_btn.visible = true;
}
}

protected override function createChildren():void{
super.createChildren();
//instantiate new radiobuttons and assign properties
addressRB.value="address";
addressRB.label="My Address";
addressRB.groupName = "startLocation"; 

airportRB.value="airport";
airportRB.label="Airport";
airportRB.groupName="startLocation"

//add event listener for change event and call method
startLocation.addEventListener(Event.CHANGE, changeStartType);

//add the buttons to rawChildren
rawChildren.addChild(addressRB);
rawChildren.addChild(airportRB);
}

protected override function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void{
super.updateDisplayList(unscaledWidth, unscaledHeight);
//gap between label and edges of button
var margin:int = 4;

//position the buttons in the panel
addressRB.move(145, 15);
airportRB.move(255,15)
}




Re: [flexcoders] Re: I can't understand pureMVC

2009-06-24 Thread Simon Bailey
Yeh I heard about Flex wrapping results from certain remote requests  
using the ObjectProxy class, cant remember why this happens but try  
this and see what happens:


var user:User = ObjectProxy( event.result ).object_proxy::object;

Cheers,

S

On 24 Jun 2009, at 13:23, vladakg85 wrote:




I am trying whole morning, I try to cast it in everything :( From  
remote service I return object "User", same VO object like in flex  
application.
But is this image below ok, becuse I don't see User object anywhere,  
this is my evt.result.


http://img31.imageshack.us/img31/9747/debug2.jpg

--- In flexcoders@yahoogroups.com, Simon Bailey  wrote:
>
> Something is wrong with your assigning the remote result to the data
> in your Proxy. The 'data' object has not been cast to User() and is
> instead typed as ObjectProxy?
>
> On 23 Jun 2009, at 16:15, vladakg85 wrote:
>
> >
> >
> > http://img37.imageshack.us/i/debug1.jpg/
> >
> > this is debug from mediator.
> > loginUserData is always null :(
> >
> > --- In flexcoders@yahoogroups.com, Simon Bailey  wrote:
> > >
> > > Debug man, check the datatype of the object coming back from  
your

> > > remote request, maybe there is a problem with the cast. Is the
> > Object
> > > from your remote result datatyped?
> > >
> > > Try assigning it to a var first and then debug to see if the  
cast
> > > works. If on debug you cast the result successfully and can  
see the
> > > cast variable in debugger no problem there should be no reason  
why

> > you
> > > cannot then send that variable on a notification.
> > >
> > > What is showing in the debugger in your mediator?
> > >
> > > On 23 Jun 2009, at 15:50, vladakg85 wrote:
> > >
> > > >
> > > >
> > > > I tried this data = evt.result as User; and its not work.
> > > > I also tried to send User data with notification, same again.
> > > >
> > > > LoginCommand
> > > > [code]
> > > > override public function  
execute(notification:INotification):void

> > > > {
> > > > var myUser:User = notification.getBody() as User;
> > > > var loginProxy:LoginProxy;
> > > > loginProxy = facade.retrieveProxy(LoginProxy.NAME) as  
LoginProxy;

> > > > loginProxy.tryLogin(myUser.username, myUser.password);
> > > > }
> > > > [/code]
> > > >
> > > > Mediator
> > > > [code]
> > > > override public function
> > > > handleNotification(notification:INotification):void
> > > > {
> > > > switch (notification.getName())
> > > > {
> > > > case ApplicationFacade.LOGIN_SUCCESFUL:
> > > > var uProxy:LoginProxy;
> > > > uProxy = facade.retrieveProxy(LoginProxy.NAME) as LoginProxy;
> > > > var u:User = notification.getBody() as User;
> > > > Alert.show("welcome: " + u.realName+ ", " + u.City);
> > > > break;
> > > > case ApplicationFacade.LOGIN_FAILED:
> > > > Alert.show("sorry pal, wrong password");
> > > > break;
> > > > }   
> > > > }
> > > > [/code]
> > > > --- In flexcoders@yahoogroups.com, Simon Bailey   
wrote:

> > > > >
> > > > > In your onResult method try assigning the data like:
> > > > >
> > > > > data = evt.result as User; // cast result to a User Object  
and

> > > > assign
> > > > > to data
> > > > >
> > > > > Then you need to either:
> > > > >
> > > > > a) Have you mediator access the loginUserData directly (you
> > may need
> > > > > to set it up as Bindable and dispatch an updated event -  
see http://bit.ly/14Rlqd

> > > > > and look at my HandleLoginProxy).
> > > > > b) Easier to assign the loginUserData as the notification  
body

> > e.g.
> > > > > sendNotification( ApplicationFacade.LOGIN_SUCCESSFUL,
> > > > loginUserData );
> > > > > and in your Mediator register an interest in the
> > LOGIN_SUCCESSFUL
> > > > > notification and simply pull out the loginUserData object  
using

> > > > > note.getBody().
> > > > >
> > > > > I would go for option (b)!
> > > > >
> > > > > On 23 Jun 2009, at 14:59, vladakg85 wrote:
> > > > >
> > > > > >
> > > > > >
> > > > > > Hi, thank you so much, I did something that I was trying  
for

> > whole
> > > > > > month :( ddd :) But now I have one more problem, this  
one is

> > > > small :)
> > > > > >
> > > > > > 1) I make remote call to .NET to login user, everything is
> > fine
> > > > > > retrive data, check if user exists its ok, data from  
service

> > are
> > > > in
> > > > > > proxy, this is my code for this:
> > > > > > [code]
> > > > > > public class LoginProxy extends Proxy implements IProxy
> > > > > > {
> > > > > > public static const NAME:String = "loginProxy";
> > > > > >
> > > > > >
> > > > > > private var loginRemoteService:RemoteObject;
> > > > > >
> > > > > > public function LoginProxy()
> > > > > > {
> > > > > > super(NAME, new User());
> > > > > >
> > > > > > loginRemoteService = new RemoteObject("fluorine");
> > > > > > loginRemoteService.source = "BL.Sample";
> > > > > > loginRemoteService
> > > > >  
> .LoginUserByEnteredData.addEventListener(ResultEvent.RESULT,

> > > > > > onResult);
> > > > > > loginRemoteService.addEventListener(FaultEvent.FAULT,
> > onFault); 
> > > > > 

[flexcoders] get data from other LineSeries dataprovider in the dataTipRenderer

2009-06-24 Thread arno.manders
I have a linechart with this series:


 
 


I have a dataTipRenderer that shows a nice dataTip. In that dataTip I
want to compare the 2 items from the lines. I want to show something
like this:

Incomming this month:
$20,000
Incomming previous month:
$10,000
+100%

This calculation should be in the dataTip so is there a way to know the
data from another LineSeries in the datatip?




[flexcoders] Is it possible to set Keyboard language for a flex App

2009-06-24 Thread Jag
We have a Flex App and have to set the keyboard language to US. Is this 
possible to do from a Flex App, index.html or Javascript.

Any help is appreciated 



[flexcoders] Re: I can't understand pureMVC

2009-06-24 Thread vladakg85
I am trying whole morning, I try to cast it in everything :( From remote 
service I return object "User", same VO object like in flex application.
But is this image below ok, becuse I don't see User object anywhere, this is my 
evt.result.

http://img31.imageshack.us/img31/9747/debug2.jpg


--- In flexcoders@yahoogroups.com, Simon Bailey  wrote:
>
> Something is wrong with your assigning the remote result to the data  
> in your Proxy.  The 'data' object has not been cast to User() and is  
> instead typed as ObjectProxy?
> 
> On 23 Jun 2009, at 16:15, vladakg85 wrote:
> 
> >
> >
> > http://img37.imageshack.us/i/debug1.jpg/
> >
> > this is debug from mediator.
> > loginUserData is always null :(
> >
> > --- In flexcoders@yahoogroups.com, Simon Bailey  wrote:
> > >
> > > Debug man, check the datatype of the object coming back from your
> > > remote request, maybe there is a problem with the cast. Is the  
> > Object
> > > from your remote result datatyped?
> > >
> > > Try assigning it to a var first and then debug to see if the cast
> > > works. If on debug you cast the result successfully and can see the
> > > cast variable in debugger no problem there should be no reason why  
> > you
> > > cannot then send that variable on a notification.
> > >
> > > What is showing in the debugger in your mediator?
> > >
> > > On 23 Jun 2009, at 15:50, vladakg85 wrote:
> > >
> > > >
> > > >
> > > > I tried this data = evt.result as User; and its not work.
> > > > I also tried to send User data with notification, same again.
> > > >
> > > > LoginCommand
> > > > [code]
> > > > override public function execute(notification:INotification):void
> > > > {
> > > > var myUser:User = notification.getBody() as User;
> > > > var loginProxy:LoginProxy;
> > > > loginProxy = facade.retrieveProxy(LoginProxy.NAME) as LoginProxy;
> > > > loginProxy.tryLogin(myUser.username, myUser.password);
> > > > }
> > > > [/code]
> > > >
> > > > Mediator
> > > > [code]
> > > > override public function
> > > > handleNotification(notification:INotification):void
> > > > {
> > > > switch (notification.getName())
> > > > {
> > > > case ApplicationFacade.LOGIN_SUCCESFUL:
> > > > var uProxy:LoginProxy;
> > > > uProxy = facade.retrieveProxy(LoginProxy.NAME) as LoginProxy;
> > > > var u:User = notification.getBody() as User;
> > > > Alert.show("welcome: " + u.realName+ ", " + u.City);
> > > > break;
> > > > case ApplicationFacade.LOGIN_FAILED:
> > > > Alert.show("sorry pal, wrong password");
> > > > break;
> > > > }   
> > > > }
> > > > [/code]
> > > > --- In flexcoders@yahoogroups.com, Simon Bailey  wrote:
> > > > >
> > > > > In your onResult method try assigning the data like:
> > > > >
> > > > > data = evt.result as User; // cast result to a User Object and
> > > > assign
> > > > > to data
> > > > >
> > > > > Then you need to either:
> > > > >
> > > > > a) Have you mediator access the loginUserData directly (you  
> > may need
> > > > > to set it up as Bindable and dispatch an updated event - see 
> > > > > http://bit.ly/14Rlqd
> > > > > and look at my HandleLoginProxy).
> > > > > b) Easier to assign the loginUserData as the notification body  
> > e.g.
> > > > > sendNotification( ApplicationFacade.LOGIN_SUCCESSFUL,
> > > > loginUserData );
> > > > > and in your Mediator register an interest in the  
> > LOGIN_SUCCESSFUL
> > > > > notification and simply pull out the loginUserData object using
> > > > > note.getBody().
> > > > >
> > > > > I would go for option (b)!
> > > > >
> > > > > On 23 Jun 2009, at 14:59, vladakg85 wrote:
> > > > >
> > > > > >
> > > > > >
> > > > > > Hi, thank you so much, I did something that I was trying for  
> > whole
> > > > > > month :( ddd :) But now I have one more problem, this one is
> > > > small :)
> > > > > >
> > > > > > 1) I make remote call to .NET to login user, everything is  
> > fine
> > > > > > retrive data, check if user exists its ok, data from service  
> > are
> > > > in
> > > > > > proxy, this is my code for this:
> > > > > > [code]
> > > > > > public class LoginProxy extends Proxy implements IProxy
> > > > > > {
> > > > > > public static const NAME:String = "loginProxy";
> > > > > >
> > > > > >
> > > > > > private var loginRemoteService:RemoteObject;
> > > > > >
> > > > > > public function LoginProxy()
> > > > > > {
> > > > > > super(NAME, new User());
> > > > > >
> > > > > > loginRemoteService = new RemoteObject("fluorine");
> > > > > > loginRemoteService.source = "BL.Sample";
> > > > > > loginRemoteService
> > > > > > .LoginUserByEnteredData.addEventListener(ResultEvent.RESULT,
> > > > > > onResult);
> > > > > > loginRemoteService.addEventListener(FaultEvent.FAULT,  
> > onFault);   
> > > > > > }
> > > > > >
> > > > > > private function onResult(evt:ResultEvent):void
> > > > > > {
> > > > > > setData(evt.result);
> > > > > > sendNotification(ApplicationFacade.LOGIN_SUCCESFUL);
> > > > > > }
> > > > > >
> > > > > > private function onFault(evt:FaultEvent):void
> > > > > > {
> > > > > > sendNotific

[flexcoders] flash builder 4 license error

2009-06-24 Thread Johannes Nel
Hi All

I managed to install the plugin version of Flash Builder 4 without an issue,
it gave me a license error but continued working, I installed the modeling
plugin and then my actionscript editor stopped working. A lot of the jars
that came with the modeling plugin were already part of my default eclipse
(3.4 modeling edition) so I uninstalled the plugin version and installed the
standalone and then added the modeling plugin again.

Now I get a license error and the standalone player does not even start up,
saying there is a license problem (twice) and I should restart my computer
(done).

any ideas?



-- 
j:pn
\\no comment


RE: [flexcoders] Flex Ant Build Process

2009-06-24 Thread Gregor Kiddie
Search through the archives, I've answered this question a couple of
times. There is a neat Ant trick that will help you.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of pratikshah83
Sent: 23 June 2009 23:38
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Ant Build Process

 






Hi Folks, 

I am trying to automate flex build process using ANT build script. But I
am facing an issue and cannot find any enough documentation.
According to the flex docs





I need to include each and every class and assets files, but I have like
200 different classes and images in my project, do you know any easier
way to include everything ?

Suggestions would be appreciated.

Thanks
Pratik