RE: [flexcoders] popup a module

2007-05-22 Thread Alex Harui
Hmm, hadn't noticed that.  That's because the module is the popup and parents 
the title window.

I guess I'd copy the dragging logic from Panel.as into the module.

Write back if you have troubles doing that.

-Alex

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luis 
Eduardo
Sent: Monday, May 21, 2007 9:53 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] popup a module


Alex, i tried your samples and they work almost perfect.  But yet i 
could not make the poped-up window move around the screen with the user 
interaction.
It seems that the new window just come and go but cant be dragged away.
I tried too the sample that have ShareCode and put the 2 managers 
(dragManager and popupManager) and yet didnt work.

Can you explain how to make the new poped-up window be free to move 
with user mouse interaction?

many thanks!

Luís Eduardo.


Luis Eduardo escreveu:

Cool! i was able to find just the .ppt presentation before.
Now that you give the link to your blog i found the sample codes. Will 
try again with a better start.

thank you very much Alex!

btw, the presentation was amazing. Very clarificate about the under 
hood :)


Alex Harui escreveu:

  

There's an example on my blog blogs.adobe.com/aharui



*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Luis Eduardo
*Sent:* Monday, May 21, 2007 6:10 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] popup a module


Hello, i am trying to do a mx:Module being Popuped but i am finding
this very dificult.
My classes are like this: MyWindow - MyTitleWindow - mx:TitleWindow
The code works very fine if i run it all together (without
modules). But when i split the swf i cannot popup MyWindow class.

here is the sample that works, but without modules. This is the
behaviour i seek. Is it possible with modules?

?xml version=1.0 encoding=utf-8?
!-- MainApp.mxml --
mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml 
http://www.adobe.com/2006/mxml
mx:Button label=show click=showTheWindow()/
mx:Script
![CDATA[
import mx.managers.PopUpManagerChildList;
import mx.managers.PopUpManager;

public function showTheWindow():void {
PopUpManager.centerPopUp(
PopUpManager.createPopUp(DisplayObject(Application.application),
MyWindow, false, PopUpManagerChildList.APPLICATION) );
}
]]
/mx:Script
/mx:Application
---
?xml version=1.0 encoding=utf-8?
!-- MyWindow.mxml --
local:MyTitleWindow
xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
xmlns:local=*
width=400 height=300 showCloseButton=true
close=PopUpManager.removePopUp(this)
mx:Label text=HERE IS THE WINDOW !!!/
mx:Script
![CDATA[
import mx.managers.PopUpManager;
]]
/mx:Script
/local:MyTitleWindow

?xml version=1.0 encoding=utf-8?
!-- MyTitleWindow.mxml --
mx:TitleWindow
xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
width=400 height=300
/mx:TitleWindow
---

i found a PowerPoint from Alex Harui but it don't compile. I made some
adjust to compile the example but not work ok.
here is the link:
blogs.adobe.com/aharui/360*Flex*2007/*Module*s.ppt/*Module*s.ppt

can someone give any help?

- Luís Eduardo.

 






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




  




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





Re: [flexcoders] Re: doPrint and ViewStack

2007-05-22 Thread Tom Chiverton
On Monday 21 May 2007, tkacyndra wrote:
 hi :)
 Thanks for the Reply, here is my code:
 Please help.

You could try creating a separate print layout - see the livedocs example.

-- 
Tom Chiverton
Helping to proactively syndicate innovative IPOs
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


Re: [flexcoders] How to keep TextArea from losing focus?

2007-05-22 Thread Tom Chiverton
On Monday 21 May 2007, Mark Ingram wrote:
 handleKeyFocusChange(event:FocusEvent):void
   {
   event.preventDefault();
   }

Maybe you could (callLater) call textAreaId.setFocus() instead.


-- 
Tom Chiverton
Helping to centrally pursue professional appliances
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


Re: [flexcoders] Re: tree event using cairngorm

2007-05-22 Thread Tom Chiverton
On Monday 21 May 2007, achegedus wrote:
 var token:Object = facility.folderService.send(parameters);
 token.expandIDs = expandIDs;
 token.parent = list[0];
 token.eventType = (expandIDs.length  1) ? init : change;

 where I'm setting some items asyncronously ( i think! )

I'm not sure what you mean here.
What's this 'token' variable for ?

 var parameters:Object = {folderID:[EMAIL PROTECTED];
 var event:GetTreeXMLEvent = new GetTreeXMLEvent(model.user.token, _Tree);

 I don't know how to pass items like parent, etc.  Any suggestions?  I
 really appreciate the help.

Pass to where ? From what ?

-- 
Tom Chiverton
Helping to elementarily strategize professional e-markets
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


Re: [flexcoders] Working with Session....

2007-05-22 Thread Flexing...

If you are using FDS, have a look at flex.messaging.FlexContext

On May 22, 2007, at 11:27 AM, sanjaypmg wrote:


Hi All,

Am using flex with an existing java application here I need to use
some session variables so can anyone let me know the followings:

1. How to get the session variables in flex 2.0.
2. How to set the session variables in flex 2.0.
3. How to destroy the session using flex 2.0.

Request you all to let me know how can I do the mentioned task.. It
would be a great help...

thanks in advance
SS







[flexcoders] Is it possible to use load-externs with Flex library?

2007-05-22 Thread pmotzfeldt
Hi

I am building a Flex Library that make use of some swc files that I do
not have permission to include in the library. The Applications that
uses my Library includes these swc files.

My library will not compile if I do not include the swc files.

I am aware that there is a way to to this with Modules. With
-link-report and then -load-externs. I have tried to do this with my
Flex library. Then I do not get any error messages, but the swc file
is not created.

Is this even possible with a Flex library, what can I do?

Thanks

Peter



RE: [flexcoders] Adobe flex2 Web service

2007-05-22 Thread Tuli, Nikhil
To what I have mostly seen is Flex changes the response structure even when 
converting response from a webservice to Flex object and vice versa, as there 
is an internal conversion of object to xml to send over the wire.
 
recommended would be to use a structure like
 
NAME PRD_EQ /NAME
STATUS P /STATUS
DETAILS 
DETAIL 
MPID E /MPID
Date 05/20/2007 /DATE
/DETAIL
DETAIL 
MPID OD /MPID
Date 04/20/2007 /DATE
/DETAIL
/DETAILS 

 which would be quite easy to create an object and fill in values to pass to 
the webservice, which would automatically serialize it,
and u can have a class having properties for the following
 
var Name:String
var Status:String
var Details:ArrayCollection // of type Detail
 
class Detail --
var MPID:String
var Date: String or whatever
 
 
Best Regards, 

Nikhil 

il n'y a rien tel que noir ou blanc, toutes sont différentes dégradés de gris 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Parthasarathy, Balavinayakam
Sent: Tuesday, May 22, 2007 12:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adobe flex2 Web service



I would to like if any one have used a array kind of tags or a Sequence
in sending the request from Adobe Flex2 to a Web service.

Example : 

In the request Tag.
NAME PRD_EQ /NAME
STATUS P /STATUS
DETAIL 
MPID E /MPID
Date 05/20/2007 /DATE
/DETAIL
DETAIL 
MPID OD /MPID
Date 04/20/2007 /DATE
/DETAIL

Regards,

Bala



 



[flexcoders] WebService request serialization : XML attributes

2007-05-22 Thread ecpmaz
Hi, 

I have a soap method described like that :

===
s:complexType base=s0:Credential
 s:sequence/
 s:attribute name=Login type=s:string use=required/
 s:attribute name=Password type=s:string use=optional/
 ...
/s:complexType

s:element name=login
 s:complexType
  s:sequence
   s:element name=credential type=s0:Credential/
  /s:sequence
 /s:complexType
/s:element

message name=loginSoapIn
 part element=s0:login name=parameters/
/message

operation name=login
 input message=s0:loginSoapIn/
 ...
/operation
===

Here you see that credential has Login and Password as *xml
attributes*, not nested xml elements... So how should I call this method ?

It seems that whatever I do, the request is serialized like that :
|| credential
||  Login.../Login
||  Password.../Password
|| /credential

Instead of :
|| credential Login=... Password=... /


Any help ? :s

{Maz}



[flexcoders] can't remove space around label

2007-05-22 Thread Lincoln Mitchell
I need to get a Label (or Text) as close as possible to an image sitting
below it.
Padding-bottom and height attributes only do part of the job.
It's like there is a margin around the label.

Any ideas?

Linc




RE: [flexcoders] How to keep TextArea from losing focus?

2007-05-22 Thread Mark Ingram
The only problem with that is I will lose focus from the other child
control - I want the TextArea to look like it has focus, but really the
focus be with another control.

It is possible to do this with windows controls - the settings is called
something like Always Show Selection. Which is essentially just what I
want to do.

Thanks,


Mark
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: 22 May 2007 09:18
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to keep TextArea from losing focus?

On Monday 21 May 2007, Mark Ingram wrote:
 handleKeyFocusChange(event:FocusEvent):void
   {
   event.preventDefault();
   }

Maybe you could (callLater) call textAreaId.setFocus() instead.


-- 
Tom Chiverton
Helping to centrally pursue professional appliances
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
8008.

For more information about Halliwells LLP visit www.halliwells.com.



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





RE: {Disarmed} RE: [flexcoders] Re: Am I using the right technology?

2007-05-22 Thread Mark Ingram
Thanks for that explanation Jurgen - that's very helpful to see it in
developer terms :-)

 

I presume you are just using Flex Remoting then?

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jurgen Beck
Sent: 21 May 2007 17:39
To: flexcoders@yahoogroups.com
Subject: Re: {Disarmed} RE: [flexcoders] Re: Am I using the right
technology?

 

I'll let Mark Piller chime in on the data management aspect. They've
implemented a FDS equivalent that is very nifty.

On the workflow:

To pull data from a data store, the flow goes like this:

Flex - WebORB - .NET Library - Data Store - .NET Library - WebORB
- Flex

WebORB serializes the data/object and maps the remote class so that by
the time the data arrives in Flex you have immediate access to the
object elements. For example, if I want to return the contents of a data
table that I pulled in my .NET class, I return it as a List Of object.
WebORB serializes the data/objects in the list so that I can build an
ArrayCollection with the results in Flex.

Here is what it looks like practically:

I have a service manager class in Flex that has a public method:

public function getShippingRateTable():void {
serviceStore.source =
Services.dao.ShippingRate.ShippingRateDAO;
serviceStore.addEventListener(FaultEvent.FAULT,
faultHandler);
 
serviceStore.GetShippingRates.addEventListener(ResultEvent.RESULT,
getShippingRatesHandler);
serviceStore.GetShippingRates();
}

serviceStore is defined as a remote object:

private var serviceStore:RemoteObject = new
RemoteObject(GenericDestination);

The result handler looks as follows:

private function getShippingRatesHandler(event:ResultEvent):void
{
if (event.result.length  0) {
shippingRateTable = new ArrayCollection(event.result as
Array);
}
} 

My service manager class is defined as a singleton so that my returned
data is immediately available throughout the application.

The mapped Flex class for the ArrayCollection items is:

import mx.collections.ArrayCollection;

[Bindable]
[RemoteClass(alias=Services.dao.ShippingRate.ShippingRate)]
public class ShippingRateVO
{

static private var _instance:ShippingRateVO;
public var ID:int;
public var pounds:Number;
public var rate:Number;

public function ShippingRateVO() {};

}

On the server side, my .NET class ShippingRateDAO has a public method:

Public Function GetShippingRates() As List(Of ShippingRate)
...
Return rates

End Function

In it I am connecting to my data store, pull the data from a data table
and compile my list of objects into a List(Of ShippingRate), which I
then return.

That's all there is to it! WebORB does the rest.

About the examples:

I just checked on them and they were working fine. You may want to get
with Mark Piller if you continue to run into issues. 

Mark also has a Yahoo newsgroup for WebORB that you can post questions
to.

Jurgen


Mark Ingram wrote: 

What do you mean by full data management?

 

I can't seem to get any of the service examples to work, I just
get a dialog saying access denied and a load of other text.

 

So does your setup look something similar to:

 

Flex - WebOrb - .NET Library

 

?

 

Thanks,

Mark

 

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jurgen Beck
Sent: 21 May 2007 16:42
To: flexcoders@yahoogroups.com
Subject: Re: {Disarmed} RE: [flexcoders] Re: Am I using the
right technology?

 

I'm doing this right now with the Standard version of WebORB.
I've written my class library (wrapped in a DLL) that connects to the
database. 

If you need full data management, you need to be looking at the
Professional version at minimum.

Check out the examples on the WebORB site. Go to:

http://www.themidnightcoders.net/flexexamples/weborbconsole.html
http://www.themidnightcoders.net/flexexamples/weborbconsole.html 

This is the management console you get with WebORB. Select the
Services tab and look at the WebOrb Examples. Those are the services
that have been wrapped into class libraries. You can test drive them and
see the code you would need to implement them in Flex.

Jurgen

Mark Ingram wrote: 

I should also state that the reason I want to use
ASP.NET Web Services or .NET Components is because I want to access a
database (the result of all collaborative work will be stored there).

 

Thanks,

 


RE: [flexcoders] TextArea: Halo skin draws over top of child controls!

2007-05-22 Thread Mark Ingram
Ah right - that explains it!

Yes I meant the blue focus rectangle. I presume if I report a new size,
the blue floating rectangle will be drawn around the popup child
control? It sounds like the best way forward is to create the toolbar as
a popup control.

 

Thanks!

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 21 May 2007 19:01
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] TextArea: Halo skin draws over top of child
controls!

 

So by halo skin do you mean the blue focus rectangle or just the border
of the TextArea?  The blue focus rectangle is floated over the component
and is parented by the component's parent.  I assume your floating
toolbar is outside the bounds of the TextArea?  You either have to have
the TextArea report a new measured size that encompasses the toolbar or
just float the toolbar.

 

If I were you, I'd use PopUpManager to float the toolbar over
everything, otherwise it can get obscured by neighboring components.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Monday, May 21, 2007 2:17 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] TextArea: Halo skin draws over top of child
controls!

 

Here is my current code:

 

protected override function childrenCreated():void

{

super.childrenCreated();



for (var i:Number = 0; i 
this.numChildren; ++i)

{

var
displayObject:DisplayObject = this.getChildAt(i);

displayObject =
displayObject;

}



// Let's add the floating toolbar to
the text area!

this.floatingToolBar.visible =
false;

this.addChild(this.floatingToolBar);



for (var i:Number = 0; i 
this.numChildren; ++i)

{

var
displayObject:DisplayObject = this.getChildAt(i);

displayObject =
displayObject;

}

}

 

I checked the indexes after I add the tool bar, and the tool bar is
definitely after the halo border (the halo border is the first child in
the list).

 

Would it be better to re-design the class so that TextArea and the tool
bar both belong to a parent container?

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 18 May 2007 19:30
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] TextArea: Halo skin draws over top of child
controls!

 

TextArea doesn't really expect children other than its border and
scrollbars.  If you add another child, you have to figure out when and
how to set the z-order by using setChildIndex or getting the index right
on addChildAt, and correctly report the measured width/height including
the child.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Friday, May 18, 2007 8:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TextArea: Halo skin draws over top of child
controls!

 

Hi, I have a Text Area with a child control embedded in it. Even though
the child control was added last, the halo skin still gets drawn on top
of everything. Which looks odd! Is there any way I can stop this?

 

Thanks,

 

Mark

 

 

 

 



RE: [flexcoders] Re: How to keep TextArea from losing focus?

2007-05-22 Thread Mark Ingram
No, what I want is for the selection to always show up in a TextArea,
even when the selection has moved onto another control.

Specifically, I have another control, which can popup in certain
situations, to allow the user to configure the selected text. However,
when the popup appears, it gains the focus, removes it from the initial
TextArea, and the user can no longer see what text they had selected.

 

Thanks,

 

Mark

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dfortenberry
Sent: 21 May 2007 15:54
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to keep TextArea from losing focus?

 

Mark,
Just to clarify when you say 'focus', do you mean that you want the 
users cursor to always be in a specific form item?
Are you looking for a Flex equivalent of the following javascript?:

onblur=this.focus() so that the cursor stays in the specific form 
input?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Mark Ingram [EMAIL PROTECTED] wrote:

 Hi, how can I stop a text area from losing focus? I always want it 
to
 show the selection, no matter if the user is in another control.
 
 
 
 Any clues?
 
 
 
 Mark


 



[flexcoders] Live update value in sql when editing datagrid

2007-05-22 Thread pioplacz
Hi! 

First of all i'm using PHP as backend to my flex app. At this moment i have a 
datagrid that 
populates values that are loaded throw a httpservice. What i want to do is that 
when i've 
edited a value in datagrid i want it to automatically get updated in mysql. How 
can i do that? 
any samples? 



Re: [flexcoders] can't remove space around label

2007-05-22 Thread Roman Protsiuk

As far as I remember there are some internal margins in the Label. One of my
suggestions would be to override measure()/updateDisplayList() and to
measure/draw content (UITextField) manually using your rules.
Though it's just a guess. ;)

R.

On 5/22/07, Lincoln Mitchell [EMAIL PROTECTED] wrote:


  I need to get a Label (or Text) as close as possible to an image sitting
below it.
Padding-bottom and height attributes only do part of the job.
It's like there is a margin around the label.

Any ideas?

Linc

 



RE: [flexcoders] can't remove space around label

2007-05-22 Thread Lincoln Mitchell
Sorted! It had nothing to do with label or text but a layout issue related
to the whole app.

To fix I added the attribute verticalGap=0 to the ApolloApplication node.

 

Linc

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lincoln Mitchell
Sent: Tuesday, 22 May 2007 4:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] can't remove space around label

 

I need to get a Label (or Text) as close as possible to an image sitting
below it.
Padding-bottom and height attributes only do part of the job.
It's like there is a margin around the label.

Any ideas?

Linc

 



Re: [flexcoders] How to keep TextArea from losing focus?

2007-05-22 Thread Tom Chiverton
On Tuesday 22 May 2007, Mark Ingram wrote:
 The only problem with that is I will lose focus from the other child
 control - I want the TextArea to look like it has focus, but really the
 focus be with another control.

*Ahh*.
call drawFocus() when it loses focus ?

-- 
Tom Chiverton
Helping to biannually network network users
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


Re: [flexcoders] Live update value in sql when editing datagrid

2007-05-22 Thread Tom Chiverton
On Tuesday 22 May 2007, pioplacz wrote:
 i want to do is that when i've edited a value in datagrid i want it to
 automatically get updated in mysql. How can i do that? any samples?

You'll need to make a web service or remote object call to your backend PHP.

-- 
Tom Chiverton
Helping to enthusiastically strategize customized clusters
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


RE: [flexcoders] How to keep TextArea from losing focus?

2007-05-22 Thread Mark Ingram
Hmm, that half works! It draws the blue selection rectangle around the
outside - but the text is still not showing the selection! 

Thanks,

Mark

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: 22 May 2007 10:11
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to keep TextArea from losing focus?

On Tuesday 22 May 2007, Mark Ingram wrote:
 The only problem with that is I will lose focus from the other child
 control - I want the TextArea to look like it has focus, but really
the
 focus be with another control.

*Ahh*.
call drawFocus() when it loses focus ?

-- 
Tom Chiverton
Helping to biannually network network users
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
8008.

For more information about Halliwells LLP visit www.halliwells.com.



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





[flexcoders] HTML Text in LinkBar

2007-05-22 Thread Giles Roadnight
We have a Link Bar that has text in it pulled from an XML file. We're
using a font defined by the client that doesn't have all the
characters we need for all of the language versions.

What we want to do is use a different font for some languages - i.e.
use Verdana for Spanish so we get the cidillas ect. In Flash I have
successfully done this by using a font tag in the xml to specify which
font to use for languages with special characters.

I have tried this in Flex but it doesn't work. The link bar (with a
simple object as the data provider) doesn't appear to use html text.

Is there any other solution to this.

Thanks



[flexcoders] DateChooser X and Y?

2007-05-22 Thread Lincoln Mitchell
There appears to be no x and y attributes for this component but is it still
possible to define exactly where the DateChooser will appear?

Linc




[flexcoders] Re: doPrint and ViewStack

2007-05-22 Thread bhaq1972
this is just a variation to Tom's suggestion. but needs a little 
more work.

try this

var p:FlexPrintJob = new FlexPrintJob; 

if (p.start() != true)
{
 return;
}

var text_area:TextArea = new TextArea();
text_area.text = tTest2.text;
text_area.width = tTest2.width;

// textHeight is too big..this why this needs a little more work
text_area.height = tTest2.textHeight;

this.addChild(text_area);
p.addObject(text_area, FlexPrintJobScaleType.SHOW_ALL);
this.removeChild(text_area);
p.send();


--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Monday 21 May 2007, tkacyndra wrote:
  hi :)
  Thanks for the Reply, here is my code:
  Please help.
 
 You could try creating a separate print layout - see the livedocs 
example.
 
 -- 
 Tom Chiverton
 Helping to proactively syndicate innovative IPOs
 on: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the 
registered office. Any reference to a partner in relation to 
Halliwells LLP means a member of Halliwells LLP. Regulated by the 
Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





Re: [flexcoders] Forms advantages

2007-05-22 Thread Tom Chiverton
On Monday 21 May 2007, borekbe wrote:
 I like the required=true functionality 

The defaultButton is nice too.
You may want to look at flexlib's AdvancedForm too.

-- 
Tom Chiverton
Helping to advantageously seize strategic features
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


Re: [flexcoders] Few Questions

2007-05-22 Thread Tom Chiverton
On Monday 21 May 2007, learner wrote:
 * When we create a application in flex builder to use fsd we get these two
 options , what is the differance :
 1) Compile application locally in Flex Builder

Your application is turned into a SWF file now, on your local machine.

 2) Compile application on the server when the page is viewed.

Your application source code is copied to your web server, and compiled into a 
SWF on demand.

 *What is the default channel in  remoting-congif.xml file and
 what exactly  following thing mean :

There isn't a default, as far as I know, and the names you list can be 
anything.

  -services-config.xml

That's for RemoteObject destinations.

-- 
Tom Chiverton
Helping to ambassadorially administrate bricks-and-clicks systems
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


Re: [flexcoders] Zoom effect added from code...how?

2007-05-22 Thread Tom Chiverton
On Monday 21 May 2007, flashcrow2000 wrote:
 believe it will help as well) when the object loaded by the module
 dissappears (I have a close button which basicall does module.visible
 = false) but I have no clue on how to add it.

You're doing an AS module, so it should be easy enough for you to import the 
effects' class, create an instance, setup the properties and then call it's 
play() method.
The livedocs are invaluable here.

-- 
Tom Chiverton
Helping to globally disseminate leading-edge segments
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


[flexcoders] Re: Is it possible to use load-externs with Flex library?

2007-05-22 Thread pmotzfeldt
In case someone else is wondering I will answer my own question, since
I were able to do what I wanted to do.

What wanted to do was to create a library file that uses other library
files. A Flex application will include these library files. 

The simple step one needs to do to include a library file's
functionality but not the actual library file is to add it as a swc to
the project and edit the link type to external. This makes the Flex
application that uses this library to include the other library files.

That is it

--- In flexcoders@yahoogroups.com, pmotzfeldt [EMAIL PROTECTED] wrote:

 Hi
 
 I am building a Flex Library that make use of some swc files that I do
 not have permission to include in the library. The Applications that
 uses my Library includes these swc files.
 
 My library will not compile if I do not include the swc files.
 
 I am aware that there is a way to to this with Modules. With
 -link-report and then -load-externs. I have tried to do this with my
 Flex library. Then I do not get any error messages, but the swc file
 is not created.
 
 Is this even possible with a Flex library, what can I do?
 
 Thanks
 
 Peter





[flexcoders] Re: Datagrid auto sorting. Has anyone done this?

2007-05-22 Thread polestar11
Hi there

I tried exactly that in various different ways, but wasnt able to get
it to work. 

I have an array, which I convert to an array collection, on which I
sort and refresh, after which I set as a dataProvider for my DataGrid.

Still no sort arrow is shown.

I then tried extending the DataGrid class, but that opened up another
can of worms

Help, anyone??
Tracy


--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:

 On 4/28/07, Mark Piller [EMAIL PROTECTED] wrote:
  Do you know how to configure a datagrid to automatically sort in a
  particular column before the data is rendered?
 
 Basically you just set the sort on the collection, and the DataGrid
 will appropriately display a sort arrow on the header. So it's the
 collection you need to sort.
 
 You can see an example of how to sort a collection here:
 
 http://www.adobe.com/livedocs/flex/2/langref/mx/collections/Sort.html





RE: [flexcoders] Re: XML, does it have to be RSS?

2007-05-22 Thread Tracy Spratt
No, I advise resultFormat=e4x.

 

xml is the old fashioned AS2 xml object.  E4x is MUCH better.  Trust
me.

 

But yes, debug the result.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Anthony DeBonis
Sent: Monday, May 21, 2007 5:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML, does it have to be RSS?

 

On your httpService set resultFormat=xml 
Then use debugger to see what you get back in result event to then 
see how to pick out what your looking for. Should work with out a 
problem.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Jason [EMAIL PROTECTED] wrote:

 Does the XML data HAVE to be an RSS? If I change 
 
 rss version=2.0
 xmlns:content=http://purl.org/rss/1.0/modules/content/
http://purl.org/rss/1.0/modules/content/ 
 xmlns:wfw=http://wellformedweb.org/CommentAPI/
http://wellformedweb.org/CommentAPI/ 
 xmlns:dc=http://purl.org/dc/elements/1.1/
http://purl.org/dc/elements/1.1/ 
 
 To
 
 ?xml version=1.0 encoding=UTF-8 ?
 
 The load fails. I haven't worked to much with XML so a lot of this 
is
 new to me.
 
 ***
 
 I am using the following syntax:
 
 private function onFeedResult(event:ResultEvent):void {
 var xml:XML = new XML(event.message.body);
 xml.ignoreWhitespace = true;
 feedItems = new XMLListCollection(xml.foo.item);
 panelTitle = xml.foo.title;
 }
 
 
 
 mx:HTTPService 
 id=dataRequest
 url=data/data.xml
 result=onFeedResult(event);
 useProxy=false/
 
 
 Any suggestions? I'm somewhat new to Flex having worked mostly with
 older versions of Flash.
 
 
 - Jason


 



Re: [flexcoders] TileList itemRenderer resize

2007-05-22 Thread Daniel Grace

Not rowHeight or columnWidth explicitly. There may be some implicit calls to
it, however -- I am setting rowCount and columnCount. Here is the complete
file (it's really short) -- I previously only posted the attempted fix
written based off of your description. Some of these MXML properties may be
redundant, I haven't cleaned up failed attempts to get this to work...

?xml version=1.0 encoding=utf-8?
mx:TileList xmlns:mx=http://www.adobe.com/2006/mxml; rowCount={Math.ceil(
dataProvider.length/10)} columnCount=10 itemRenderer=SimpleMXMLRenderer
   borderThickness=0 focusThickness=0 paddingBottom=0
paddingTop=0 width=100%
   mx:Script
   ![CDATA[
   import mx.controls.Alert;

   public override function set dataProvider(o: Object): void {
   if (this.dataProvider) {
   this.dataProvider.removeEventListener(collectionChange,
this.cc);
   }

   super.dataProvider = o;
   this.dataProvider.addEventListener(collectionChange,
this.cc);
   this.callLater(this.cc);
   }

   private function cc(event: Event = null): void {
   this.itemsNeedMeasurement = true;
   this.invalidateProperties();
   }
   ]]
   /mx:Script
/mx:TileList

TIA,
Daniel

On 5/18/07, Alex Harui [EMAIL PROTECTED] wrote:


 Is it possible you set explicit rowHeight and columnWidth?
commitProperties() should get called followed by makeRowsAndColumn.



-Alex


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Daniel Grace
*Sent:* Friday, May 18, 2007 2:22 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] TileList itemRenderer resize



I added the following code to the TileList:

public override function set dataProvider(o: Object): void {
if (this.dataProvider) {
this.dataProvider.removeEventListener(collectionChange,
this.cc);
}

super.dataProvider = o;
this.dataProvider.addEventListener(collectionChange,
this.cc);
this.callLater(this.cc);
}

private function cc(event: Event = null): void {
this.itemsNeedMeasurement = true;
this.invalidateProperties ();
}

I have added (and since removed, since it was noisy) an alert to my cc
function, so I know that it's getting called when my underlying data gets
changed... but the individual tiles still aren't resizing. I can see the
very top part of the unhidden data in the tiles, but it doesn't expand to
see the rest.

Am I handling this in the wrong place?

TIA,
Daniel

On 5/18/07, *Alex Harui* [EMAIL PROTECTED] wrote:

Try setting itemsNeedMeasurement=true and calling invalidateProperties().


 --

*From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *On
Behalf Of *Daniel Grace
*Sent:* Friday, May 18, 2007 12:26 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] TileList itemRenderer resize



I am using a mostly default (some options, no subclassing) TileList
with a custom itemRenderer. I have been using the same itemRenderer
for a while with no problems. I made a change to where one of the UI
elements inside of this itemRenderer sets its visible and
includeInLayout to false depending on the underlying data. When this
happens the height of the itemRenderer should change, but the TileList
doesn't seem to realize this.

I am assuming that the TileList does a height/width calculation early
on and doesn't notice that things are different. I am fine with
subclassing, but at this point I don't know where to look for the
right functions/events to latch on to to make this work as I expect.

BTW, I know that the measurements are based off of the first data
element, but because of the way this actual application works all of
its itemRenderers will be the same size -- they just need to change
sizes at runtime sometimes.

TIA,
Daniel







RE: [flexcoders] Change hardcoded XML for dynamic XML source

2007-05-22 Thread Tracy Spratt
Use an instance variable to hold your data. 

 

But your hard coded data is not xml.  Start by hardcoding your sample
xml into the app and putting it in an instance variable.

 

When you have everything working that way, make the httpservice.send()
call.

 

Use a result handler function to receive the data, and then assign it to
the instance variable.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of portuguesedanny
Sent: Sunday, May 20, 2007 2:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Change hardcoded XML for dynamic XML source

 

Hi All,

Can anyone help? It is probably something very simple :-s
The following code works ok, but I need to change the source of the
XML data...

### CODE #
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=vertical creationComplete=initData()
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var dataList:ArrayCollection ;

private function initData():void{
dataList= new ArrayCollection([
{name:school A, city:Paris},
{name:school B, city:Pomona },
{name:School C, city:Phillipsburg},
{name:School D, city:Liverpool},
{name:School E, city:Madrid},
])
}

private function filterDemo():void{
dataList.filterFunction = searchDemo;
dataList.refresh();
}

private function searchDemo(item:Object):Boolean{
var isMatch:Boolean = false

if(item.name.toLowerCase().search(search.text.toLowerCase()) != -1){
isMatch = true
} 
return isMatch; 
}

private function clearSearch():void{
dataList.filterFunction = null;
dataList.refresh();
search.text = '';
}
]]
/mx:Script
mx:Form
mx:FormItem label=Search Name direction=horizontal
mx:TextInput id=search change=filterDemo() /
mx:Button label=Clear Search click=clearSearch() /
/mx:FormItem
/mx:Form
mx:DataGrid dataProvider={dataList} width=400 height=400
mx:columns
mx:DataGridColumn headerText=Name dataField=name /
mx:DataGridColumn headerText=City dataField=city /
/mx:columns
/mx:DataGrid

/mx:Application
### /CODE #

As the XML data source in the above example is hardcoded, I want to
modify the code to get the data from a URL, but am having trouble..!

The following code is what I am having trouble with setting the XML
source...
Can anyone help, suggest how I might change 

 CHANGE THIS 
private function initData():void{
dataList= new ArrayCollection([
{name:school A, city:Paris},
{name:school B, city:Pomona },
{name:School C, city:Phillipsburg},
{name:School D, city:Liverpool},
{name:School E, city:Madrid},
])
}
 /CHANGE THIS 

 TO THIS #
private function initData():void{
dataList= new ArrayCollection(
mx:HTTPService id=getStaffList
url=http://192.168.0.84/amfphp/stafflist.php
http://192.168.0.84/amfphp/stafflist.php  /
)
}
 /TO THIS 

This should be the final code that works, but doesnt :-(

### CODE #
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=vertical creationComplete=getStaffList.send();
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var dataList:ArrayCollection ;

private function getStaffList():void{
dataList= new ArrayCollection;
}

private function filterDemo():void{
dataList.filterFunction = searchDemo;
dataList.refresh();
}

private function searchDemo(item:Object):Boolean{
var isMatch:Boolean = false

if(item.name.toLowerCase().search(search.text.toLowerCase()) != -1){
isMatch = true
} 
return isMatch; 
}

private function clearSearch():void{
dataList.filterFunction = null;
dataList.refresh();
search.text = '';
}
]]
/mx:Script

mx:HTTPService id=getStaffList
url=http://192.168.0.84/amfphp/stafflist.php
http://192.168.0.84/amfphp/stafflist.php  /

mx:Form
mx:FormItem label=Search direction=horizontal
mx:TextInput id=search change=filterDemo() /
mx:Button label=Clear Search click=clearSearch() /
/mx:FormItem
/mx:Form
mx:DataGrid dataProvider={dataList} width=400 height=400
mx:columns
mx:DataGridColumn headerText=Staff Code
dataField=staffcode /
mx:DataGridColumn headerText=Department
dataField=department /
/mx:columns
/mx:DataGrid

/mx:Application
### /CODE #

The above code should be getting it's XML data provided by:
mx:HTTPService id=getStaffList
url=http://192.168.0.84/amfphp/stafflist.php
http://192.168.0.84/amfphp/stafflist.php  /

If I brouwse to the stafflist.php file from a browser I get XML in a
valid format :-) 
How do I get the data into my flex app???

### XML #
stafflist

staffmember
staffid30/staffid
firstnamesarina/firstname
surnameredmond/surname

RE: [flexcoders] How to keep TextArea from losing focus?

2007-05-22 Thread Alex Harui
I think you want subclass, get to the inner TextField and set
alwaysShowSelection on it.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Monday, May 21, 2007 4:35 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to keep TextArea from losing focus?

 

I've tried using systemManager.stage.focus and the various setFocus and
MOUSE_FOCUS_CHANGE / KEY_FOCUS_CHANGE (with preventDefault) being
called. But the focus is still lost from the Text Area. This is what I'm
doing currently:


this.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE,
handleMouseFocusChange);

this.addEventListener(FocusEvent.KEY_FOCUS_CHANGE,
handleKeyFocusChange); 

this.textField.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE,
handleMouseFocusChange);

this.textField.addEventListener(FocusEvent.KEY_FOCUS_CHANGE,
handleKeyFocusChange);

private function handleMouseFocusChange(event:FocusEvent):void
{
event.preventDefault();
}

private function
handleKeyFocusChange(event:FocusEvent):void
{
event.preventDefault();
}

I hoped that would stop the focus from moving away from the text area -
but it doesn't.

Thanks,

Mark 

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
Behalf Of Tom Chiverton
Sent: 21 May 2007 12:29
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Subject: Re: [flexcoders] How to keep TextArea from losing focus?

On Monday 21 May 2007, Mark Ingram wrote:
 Hi, how can I stop a text area from losing focus? I always want it to
 show the selection, no matter if the user is in another control.

Have you tried the various focus related methods listed in the LiveDoc ?

-- 
Tom Chiverton
Helping to enthusiastically build industry-wide applications
on: http://thefalken.livejournal.com http://thefalken.livejournal.com 



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF. A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged. If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents. If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
8008.

For more information about Halliwells LLP visit www.halliwells.com.

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

 



Re: [flexcoders] TileList itemRenderer resize

2007-05-22 Thread Daniel Grace

A few Alert.show()'s later and I can verify that the functions are being
called in the order that you say:

I set itemsNeedMeasurement = true, then call invalidateProperties(), then
Flex calls commitProperties() and makeRowsAndColumns. But it still doesn't
seem to size the rows any differently than the first time it was rendered.

Daniel

On 5/18/07, Alex Harui [EMAIL PROTECTED] wrote:


 Is it possible you set explicit rowHeight and columnWidth?
commitProperties() should get called followed by makeRowsAndColumn.



-Alex


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Daniel Grace
*Sent:* Friday, May 18, 2007 2:22 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] TileList itemRenderer resize



I added the following code to the TileList:

public override function set dataProvider(o: Object): void {
if (this.dataProvider) {
this.dataProvider.removeEventListener(collectionChange,
this.cc);
}

super.dataProvider = o;
this.dataProvider.addEventListener(collectionChange,
this.cc);
this.callLater(this.cc);
}

private function cc(event: Event = null): void {
this.itemsNeedMeasurement = true;
this.invalidateProperties ();
}

I have added (and since removed, since it was noisy) an alert to my cc
function, so I know that it's getting called when my underlying data gets
changed... but the individual tiles still aren't resizing. I can see the
very top part of the unhidden data in the tiles, but it doesn't expand to
see the rest.

Am I handling this in the wrong place?

TIA,
Daniel

On 5/18/07, *Alex Harui* [EMAIL PROTECTED] wrote:

Try setting itemsNeedMeasurement=true and calling invalidateProperties().


 --

*From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *On
Behalf Of *Daniel Grace
*Sent:* Friday, May 18, 2007 12:26 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] TileList itemRenderer resize



I am using a mostly default (some options, no subclassing) TileList
with a custom itemRenderer. I have been using the same itemRenderer
for a while with no problems. I made a change to where one of the UI
elements inside of this itemRenderer sets its visible and
includeInLayout to false depending on the underlying data. When this
happens the height of the itemRenderer should change, but the TileList
doesn't seem to realize this.

I am assuming that the TileList does a height/width calculation early
on and doesn't notice that things are different. I am fine with
subclassing, but at this point I don't know where to look for the
right functions/events to latch on to to make this work as I expect.

BTW, I know that the measurements are based off of the first data
element, but because of the way this actual application works all of
its itemRenderers will be the same size -- they just need to change
sizes at runtime sometimes.

TIA,
Daniel







Re: [flexcoders] XML, does it have to be RSS?

2007-05-22 Thread Paul J DeCoursey
What does the rest of your xml look like? The example you provided was 
the root element and it had namespace declarations. removing those and 
keeping the same xml following that would be the problem.

Jason wrote:
 Does the XML data HAVE to be an RSS?  If I change 

 rss version=2.0
 xmlns:content=http://purl.org/rss/1.0/modules/content/;
 xmlns:wfw=http://wellformedweb.org/CommentAPI/;
 xmlns:dc=http://purl.org/dc/elements/1.1/;

 To

 ?xml version=1.0 encoding=UTF-8 ?

 The load fails.  I haven't worked to much with XML so a lot of this is
 new to me.

 ***

 I am using the following syntax:

 private function onFeedResult(event:ResultEvent):void {
   var xml:XML = new XML(event.message.body);
   xml.ignoreWhitespace = true;
   feedItems = new XMLListCollection(xml.foo.item);
   panelTitle = xml.foo.title;
   }



 mx:HTTPService 
id=dataRequest
url=data/data.xml
result=onFeedResult(event);
useProxy=false/


 Any suggestions? I'm somewhat new to Flex having worked mostly with
 older versions of Flash.


 - Jason


   



RE: [flexcoders] XML, does it have to be RSS?

2007-05-22 Thread Tracy Spratt
No, and the ?xml.. declaration is not even necessary.

 

How is it failing?  Is the result handler being called?  Can you
trace(xml.toXMLString());?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason
Sent: Monday, May 21, 2007 2:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML, does it have to be RSS?

 

Does the XML data HAVE to be an RSS? If I change 

rss version=2.0
xmlns:content=http://purl.org/rss/1.0/modules/content/
http://purl.org/rss/1.0/modules/content/ 
xmlns:wfw=http://wellformedweb.org/CommentAPI/
http://wellformedweb.org/CommentAPI/ 
xmlns:dc=http://purl.org/dc/elements/1.1/
http://purl.org/dc/elements/1.1/ 

To

?xml version=1.0 encoding=UTF-8 ?

The load fails. I haven't worked to much with XML so a lot of this is
new to me.

***

I am using the following syntax:

private function onFeedResult(event:ResultEvent):void {
var xml:XML = new XML(event.message.body);
xml.ignoreWhitespace = true;
feedItems = new XMLListCollection(xml.foo.item);
panelTitle = xml.foo.title;
}

mx:HTTPService 
id=dataRequest
url=data/data.xml
result=onFeedResult(event);
useProxy=false/

Any suggestions? I'm somewhat new to Flex having worked mostly with
older versions of Flash.

- Jason

 



[flexcoders] Highlight the selected main menu and sub menu options.

2007-05-22 Thread chaudhari_planet


Hi Friends
 I want to Highlight the selected main menu and sub menu options.
For example if user selected any menu item then that menu item 
should be highlighted and when again i ll click on that menu then 
that menu item should show selected (selected color).

 For example if the user selected ADMINISTRATION/Client Profile 
then show them selected.

so if any one have any idea that how i can do this then pls tell me 
or u can contact me on 
[EMAIL PROTECTED] 
 or 
[EMAIL PROTECTED] 

 
Thanks in advance.
 
Best Regards
Rahul Chaudhari 




RE: [flexcoders] Change hardcoded XML for dynamic XML source

2007-05-22 Thread Tracy Spratt
You need to use a result handler function.  Here is some sample code:

 

Sample code using HTTPService, e4x, handler function to populate a list
item

 

The DataGrid tag:

mx:DataGrid id=dg dataProvider={_xlcMyListData} .../

 

 

The HTTPService tag:

mx:HTTPService id=service resultFormat=e4x result=onResult(event)
fault=/

 

Script block declaration:

import mx.rpc.Events.ResultEvent;

[Bindable]private var _xlcMyListData:XMLListCollection;

 

var oRequest:Object = new Object();

oRequest.Arg1 = value1;

service.send(oRequest);

 

Result Handler function:

private function onResult(oEvent:ResultEvent):void  {

  var xmlResult:XML = XML(event.result);//converts
result Object to XML. can also use as operator

  var xlMyListData:XMLList = xmlResult.myListData;  //depends on xml
format, is row data

  _xlcMyListData = new XMLListCollection(xlMyListData); //wrap the
XMLList in a collection

  trace(_xlcMyListData.toXMLString());  //so you can see
exactly how to specify dataField or build labelFunction

}//onResult

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of portuguesedanny
Sent: Sunday, May 20, 2007 2:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Change hardcoded XML for dynamic XML source

 

Hi All,

Can anyone help? It is probably something very simple :-s
The following code works ok, but I need to change the source of the
XML data...

### CODE #
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=vertical creationComplete=initData()
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var dataList:ArrayCollection ;

private function initData():void{
dataList= new ArrayCollection([
{name:school A, city:Paris},
{name:school B, city:Pomona },
{name:School C, city:Phillipsburg},
{name:School D, city:Liverpool},
{name:School E, city:Madrid},
])
}

private function filterDemo():void{
dataList.filterFunction = searchDemo;
dataList.refresh();
}

private function searchDemo(item:Object):Boolean{
var isMatch:Boolean = false

if(item.name.toLowerCase().search(search.text.toLowerCase()) != -1){
isMatch = true
} 
return isMatch; 
}

private function clearSearch():void{
dataList.filterFunction = null;
dataList.refresh();
search.text = '';
}
]]
/mx:Script
mx:Form
mx:FormItem label=Search Name direction=horizontal
mx:TextInput id=search change=filterDemo() /
mx:Button label=Clear Search click=clearSearch() /
/mx:FormItem
/mx:Form
mx:DataGrid dataProvider={dataList} width=400 height=400
mx:columns
mx:DataGridColumn headerText=Name dataField=name /
mx:DataGridColumn headerText=City dataField=city /
/mx:columns
/mx:DataGrid

/mx:Application
### /CODE #

As the XML data source in the above example is hardcoded, I want to
modify the code to get the data from a URL, but am having trouble..!

The following code is what I am having trouble with setting the XML
source...
Can anyone help, suggest how I might change 

 CHANGE THIS 
private function initData():void{
dataList= new ArrayCollection([
{name:school A, city:Paris},
{name:school B, city:Pomona },
{name:School C, city:Phillipsburg},
{name:School D, city:Liverpool},
{name:School E, city:Madrid},
])
}
 /CHANGE THIS 

 TO THIS #
private function initData():void{
dataList= new ArrayCollection(
mx:HTTPService id=getStaffList
url=http://192.168.0.84/amfphp/stafflist.php
http://192.168.0.84/amfphp/stafflist.php  /
)
}
 /TO THIS 

This should be the final code that works, but doesnt :-(

### CODE #
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=vertical creationComplete=getStaffList.send();
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var dataList:ArrayCollection ;

private function getStaffList():void{
dataList= new ArrayCollection;
}

private function filterDemo():void{
dataList.filterFunction = searchDemo;
dataList.refresh();
}

private function searchDemo(item:Object):Boolean{
var isMatch:Boolean = false

if(item.name.toLowerCase().search(search.text.toLowerCase()) != -1){
isMatch = true
} 
return isMatch; 
}

private function clearSearch():void{
dataList.filterFunction = null;
dataList.refresh();
search.text = '';
}
]]
/mx:Script

mx:HTTPService id=getStaffList
url=http://192.168.0.84/amfphp/stafflist.php
http://192.168.0.84/amfphp/stafflist.php  /

mx:Form
mx:FormItem label=Search direction=horizontal
mx:TextInput id=search change=filterDemo() /
mx:Button label=Clear Search click=clearSearch() /
/mx:FormItem
/mx:Form
mx:DataGrid dataProvider={dataList} 

[flexcoders] Re: DateTimeAxis problem: aligning dates with their year value

2007-05-22 Thread sacrantoinfo
thanks for tips



[flexcoders] A Problem about DateTimeAxis

2007-05-22 Thread sacrantoinfo
I follow the example in the user guide about linechart with DateTimeAxis.
the code is below

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable] 
public var stockDataAC:ArrayCollection = new
ArrayCollection( [
{date: 2005, 7, 27, close: 41.71},
{date: 2005, 7, 28, close: 42.21},
{date: 2005, 7, 29, close: 42.11},
{date: 2005, 8, 1, close: 42.71},
{date: 2005, 8, 2, close: 42.99},
{date: 2005, 8, 3, close: 44} ]);
public function myParseFunction(s:String):Date { 
var a:Array = s.split(,);
var newDate:Date = new Date(a[0],a[1],a[2]);
return newDate;
}
]]
/mx:Script
mx:Panel title=DateTimeAxis Example height=100% width=100%
mx:LineChart id=mychart height=100% width=100%
paddingRight=5 paddingLeft=5 
showDataTips=true dataProvider={stockDataAC} 
mx:horizontalAxis
mx:DateTimeAxis dataUnits=days
parseFunction=myParseFunction labelUnits=days /
/mx:horizontalAxis
mx:verticalAxis
mx:LinearAxis baseAtZero=false /
/mx:verticalAxis
mx:series
mx:LineSeries yField=close xField=date
displayName=AAPL/
/mx:series
/mx:LineChart
/mx:Panel

but the label in DateTimeAxis is not in the data provider.
the lable in DateTimeAxis is
8/27/05
8/28/05
8/29/05
8/30/05
8/31/05
9/1/05
9/2/05

How to solve this problem



[flexcoders] Cairngorm event question.

2007-05-22 Thread Tero Pikala
Hi 

 

I’m designing my first Cairngorm application and would like to have opinions
about events to create. 

 

I will definitely have LoginEvent which takes place after user has entered
credentials and clicked “Login” button. 

 

Should I also create events like LoginSuccessfulEvent, LoginFailedEvent and
PasswordExpiredEvent which would happen in result to a server response? 

 

I think I should but this being my first project I’m not sure about it and
would like to have some feedback from the experts. 

 

Thanks 

 

 

 

Tero 


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007
07:54



No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007
07:54
 


[flexcoders] Is there still no solution for the proble m ?(ExternalInterface's SecurityError: Er ror #2060)

2007-05-22 Thread slimsymphony
hi,all
 
  I have checked the maillist for some while, only  found several same 
questions as mine. Is there really no solution for this problem except 
executing the swf file in an IE control and then invoke the FONT 
size=2DisableLocalSecurity method?  Any hint will be helpful, thanks a lot .
 
ps:Please excuse my poor english...
 
 
allan slim
 
 
 


劲爆150万同时在线,众人追捧梦幻西游  

[flexcoders] datefield in flex builder

2007-05-22 Thread seemaherein
Hi,
How do i change the calender popup position. is it just automatic?



[flexcoders] Question about inline ItemRenderers

2007-05-22 Thread mssairam
Hi,

I am trying to populate a datagrid column with a radio button. I 
have code like the following which works -- but I am not able to 
center the radiobutton on the column. Here is a snippet indicating 
what I am trying to do.

mx:DataGrid id=resultGrid dataProvider={results}
  mx:columns
mx:DataGridColumn dataField=itemType width=12
  mx:itemRenderer
mx:Component
  mx:RadioButton groupName=sameGroup
  value={data.service} selected=true/
/mx:Component
  /mx:itemRenderer
mx:DataGridColumn
  /mx:columns
/mx:DataGrid


I am able to get the centering done by wrapping the radiobutton 
above in a HBox -- kind of like this ...

mx:itemRenderer
  mx:Component
mx:HBox paddingLeft=5 paddingRight=5 verticalAlign=middle
  mx:RadioButton groupName=sameGroup value={data.service} 
  selected=true/
/mx:HBox
  /mx:Component
/mx:itemRenderer



However, when i do that, the radio buttons behave 
like they belong to different groups -- so selecting one doesn't 
unselect the previous selected one.

Thanks for your help!





[flexcoders] Re: doPrint and ViewStack

2007-05-22 Thread tkacyndra
hey :)
that almost worked, thanks!
but, because i have multiple text areas, and they display in 
accordance witht he list. how would i be able to specify which one 
to print, instead of writing tTest2...?
something along the lines of selectedItem... but as i understand, 
selectedItem points to the Canvas, right? how do i point to the 
TextArea?

Thanks!




--- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote:

 this is just a variation to Tom's suggestion. but needs a little 
 more work.
 
 try this
 
 var p:FlexPrintJob = new FlexPrintJob; 
 
 if (p.start() != true)
 {
  return;
 }
 
 var text_area:TextArea = new TextArea();
 text_area.text = tTest2.text;
 text_area.width = tTest2.width;
 
 // textHeight is too big..this why this needs a little more 
work
 text_area.height = tTest2.textHeight;
 
 this.addChild(text_area);
 p.addObject(text_area, FlexPrintJobScaleType.SHOW_ALL);
 this.removeChild(text_area);
 p.send();
 
 
 --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ 
 wrote:
 
  On Monday 21 May 2007, tkacyndra wrote:
   hi :)
   Thanks for the Reply, here is my code:
   Please help.
  
  You could try creating a separate print layout - see the 
livedocs 
 example.
  
  -- 
  Tom Chiverton
  Helping to proactively syndicate innovative IPOs
  on: http://thefalken.livejournal.com
  
  
  
  This email is sent for and on behalf of Halliwells LLP.
  
  Halliwells LLP is a limited liability partnership registered in 
 England and Wales under registered number OC307980 whose 
registered 
 office address is at St James's Court Brown Street Manchester M2 
 2JF.  A list of members is available for inspection at the 
 registered office. Any reference to a partner in relation to 
 Halliwells LLP means a member of Halliwells LLP. Regulated by the 
 Law Society.
  
  CONFIDENTIALITY
  
  This email is intended only for the use of the addressee named 
 above and may be confidential or legally privileged.  If you are 
not 
 the addressee you must not read it and must not use any 
information 
 contained in nor copy it nor inform any person other than 
Halliwells 
 LLP or the addressee of its existence or contents.  If you have 
 received this email in error please delete it and notify 
Halliwells 
 LLP IT Department on 0870 365 8008.
  
  For more information about Halliwells LLP visit 
www.halliwells.com.
 





[flexcoders] Re: Cairngorm event question.

2007-05-22 Thread mssairam
Hi,

Really you just need to have a LoginEvent, I think. 

Here is a sequence of the scenario -- 

1) User enters username and password and clicks submit
2) A Cairngorm event named LoginEvent is broadcast probably with 
data elements containing username and password as entered by user
3) The Cairngorm controller has a mapping for LoginEvent. The 
controller uses this mapping and figures out the class that handles 
this event -- lets say a class called LoginCommand
4) LoginCommand class should have a method declared -- 
public function execute( event : CairngormEvent ): void
The event is passed to this method and this method effectively makes 
a call to the server. Typically this is done through a Delegate 
class. This is an asynchronous call so the execute method doesnt 
really wait for the response.
5) The same LoginCommand class should have a method that looks like 
this ...
public function onResult( event : * = null ) : void
When the server comes back with results after processing, this 
method receives the response back and processes it.
6) However if some error occurs, the handling is done by another 
method --
public function onError( event : * = null ) : void
7) In the onResult and onError methods, the information from the 
server is used to update the display. Typically this is done by 
updating the Model with the newly acquired information and the 
view updates itself by a previously specified databinding mechanism.

I am not an expert on Cairngorm -- hope this helps.

thanks


--- In flexcoders@yahoogroups.com, Tero Pikala [EMAIL PROTECTED] wrote:

 Hi 
 
  
 
 I'm designing my first Cairngorm application and would like to 
have opinions
 about events to create. 
 
  
 
 I will definitely have LoginEvent which takes place after user has 
entered
 credentials and clicked Login button. 
 
  
 
 Should I also create events like LoginSuccessfulEvent, 
LoginFailedEvent and
 PasswordExpiredEvent which would happen in result to a server 
response? 
 
  
 
 I think I should but this being my first project I'm not sure 
about it and
 would like to have some feedback from the experts. 
 
  
 
 Thanks 
 
  
 
  
 
  
 
 Tero 
 
 
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 
20/05/2007
 07:54
 
 
 
 No virus found in this outgoing message.
 Checked by AVG Free Edition. 
 Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 
20/05/2007
 07:54





[flexcoders] Re: doPrint and ViewStack

2007-05-22 Thread bhaq1972
According to your example, something like this should work

var myCanvas:Canvas = myViewStack.selectedItem as Canvas;
var myTextArea:TextArea = myCanvas.getChildAt(0) as TextArea;


have you figured out what the minimum height for your textareas 
should be?

-Bod


--- In flexcoders@yahoogroups.com, tkacyndra [EMAIL PROTECTED] wrote:

 hey :)
 that almost worked, thanks!
 but, because i have multiple text areas, and they display in 
 accordance witht he list. how would i be able to specify which one 
 to print, instead of writing tTest2...?
 something along the lines of selectedItem... but as i understand, 
 selectedItem points to the Canvas, right? how do i point to the 
 TextArea?
 
 Thanks!
 
 
 
 
 --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
 
  this is just a variation to Tom's suggestion. but needs a little 
  more work.
  
  try this
  
  var p:FlexPrintJob = new FlexPrintJob; 
  
  if (p.start() != true)
  {
   return;
  }
  
  var text_area:TextArea = new TextArea();
  text_area.text = tTest2.text;
  text_area.width = tTest2.width;
  
  // textHeight is too big..this why this needs a little more 
 work
  text_area.height = tTest2.textHeight;
  
  this.addChild(text_area);
  p.addObject(text_area, FlexPrintJobScaleType.SHOW_ALL);
  this.removeChild(text_area);
  p.send();
  
  
  --- In flexcoders@yahoogroups.com, Tom Chiverton 
tom.chiverton@ 
  wrote:
  
   On Monday 21 May 2007, tkacyndra wrote:
hi :)
Thanks for the Reply, here is my code:
Please help.
   
   You could try creating a separate print layout - see the 
 livedocs 
  example.
   
   -- 
   Tom Chiverton
   Helping to proactively syndicate innovative IPOs
   on: http://thefalken.livejournal.com
   
   
   
   This email is sent for and on behalf of Halliwells LLP.
   
   Halliwells LLP is a limited liability partnership registered 
in 
  England and Wales under registered number OC307980 whose 
 registered 
  office address is at St James's Court Brown Street Manchester M2 
  2JF.  A list of members is available for inspection at the 
  registered office. Any reference to a partner in relation to 
  Halliwells LLP means a member of Halliwells LLP. Regulated by 
the 
  Law Society.
   
   CONFIDENTIALITY
   
   This email is intended only for the use of the addressee named 
  above and may be confidential or legally privileged.  If you are 
 not 
  the addressee you must not read it and must not use any 
 information 
  contained in nor copy it nor inform any person other than 
 Halliwells 
  LLP or the addressee of its existence or contents.  If you have 
  received this email in error please delete it and notify 
 Halliwells 
  LLP IT Department on 0870 365 8008.
   
   For more information about Halliwells LLP visit 
 www.halliwells.com.
  
 





[flexcoders] Audio Capture in Flex2

2007-05-22 Thread BB
Hi All,

Is it possible to record an audio or a video through Flex 2 application? (Of 
course with the use of Flash Media Server or equivalant)

Best Regards

Bora ÜNAL


   
Take
 the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 
http://mobile.yahoo.com/go?refer=1GNXIC

[flexcoders] Re: WebService request serialization : XML attributes

2007-05-22 Thread ecpmaz
Nobody has any webservice with attributes required in the request ???
:(

{Maz}

--- In flexcoders@yahoogroups.com, ecpmaz [EMAIL PROTECTED] wrote:

 Hi, 
 
 I have a soap method described like that :
 
 ===
 s:complexType base=s0:Credential
  s:sequence/
  s:attribute name=Login type=s:string use=required/
  s:attribute name=Password type=s:string use=optional/
  ...
 /s:complexType
 
 s:element name=login
  s:complexType
   s:sequence
s:element name=credential type=s0:Credential/
   /s:sequence
  /s:complexType
 /s:element
 
 message name=loginSoapIn
  part element=s0:login name=parameters/
 /message
 
 operation name=login
  input message=s0:loginSoapIn/
  ...
 /operation
 ===
 
 Here you see that credential has Login and Password as *xml
 attributes*, not nested xml elements... So how should I call this
method ?
 
 It seems that whatever I do, the request is serialized like that :
 || credential
 ||  Login.../Login
 ||  Password.../Password
 || /credential
 
 Instead of :
 || credential Login=... Password=... /
 
 
 Any help ? :s
 
 {Maz}





[flexcoders] Conditional formatting of tree node labels

2007-05-22 Thread ivo
I want to apply different formatting to the labels of different types of nodes 
in a Tree.

I have extended TreeItemRenderer and overrode updateDisplayList() so that I 
could call setStyle() on each node based on specific properties, something like 
what I copied below, but I dont see it happening even tho the code is hit. What 
am I missing?


override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
if(super.data!=null) {
var treeListData:TreeListData = TreeListData(super.listData);
if(treeListData.isDirty){
this.label.setStyle('fontStyle', 'italic');
}
}
}


Thank you for any pointers,

Ivo




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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


RE: [flexcoders] Re: WebService request serialization : XML attributes

2007-05-22 Thread Peter Farland
Flex SDK 2.0.1 Hotfix 2 contains a new WebService implementation that
should handle attributes in addition to elements... this hotfix should
be out very soon.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ecpmaz
Sent: Tuesday, May 22, 2007 10:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: WebService request serialization : XML
attributes



Nobody has any webservice with attributes required in the request ???
:(

{Maz}

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, ecpmaz [EMAIL PROTECTED] wrote:

 Hi, 
 
 I have a soap method described like that :
 
 ===
 s:complexType base=s0:Credential
 s:sequence/
 s:attribute name=Login type=s:string use=required/
 s:attribute name=Password type=s:string use=optional/
 ...
 /s:complexType
 
 s:element name=login
 s:complexType
 s:sequence
 s:element name=credential type=s0:Credential/
 /s:sequence
 /s:complexType
 /s:element
 
 message name=loginSoapIn
 part element=s0:login name=parameters/
 /message
 
 operation name=login
 input message=s0:loginSoapIn/
 ...
 /operation
 ===
 
 Here you see that credential has Login and Password as *xml
 attributes*, not nested xml elements... So how should I call this
method ?
 
 It seems that whatever I do, the request is serialized like that :
 || credential
 || Login.../Login
 || Password.../Password
 || /credential
 
 Instead of :
 || credential Login=... Password=... /
 
 
 Any help ? :s
 
 {Maz}




 


RE: [flexcoders] Audio Capture in Flex2

2007-05-22 Thread Petro Bochan
Hi,

 

For audio stuff, this might get you started.

 

http://www.flashcomguru.com/apps/flex/flexaudiochat/

 

Cheers,

Petro

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of BB
Sent: Tuesday, May 22, 2007 5:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Audio Capture in Flex2

 

Hi All,

 

Is it possible to record an audio or a video through Flex 2 application? (Of 
course with the use of Flash Media Server or equivalant)

 

Best Regards

 

Bora ÜNAL

 



Pinpoint customers 
http://us.rd.yahoo.com/evt=48250/*http:/searchmarketing.yahoo.com/arp/sponsoredsearch_v9.php?o=US2226cmp=Yahooctv=AprNIs=Ys2=EMb=50
 who are looking for what you sell. 

 



Re: [flexcoders] A Problem about DateTimeAxis

2007-05-22 Thread Flexing...

The month in ActionScript start from 0(january) ... 11 (december)
So in your code
change
var newDate:Date = new Date(a[0],a[1],a[2]);
to
var newDate:Date = new Date(a[0],(a[1] as int)-1,a[2]);



On May 22, 2007, at 5:56 PM, sacrantoinfo wrote:

I follow the example in the user guide about linechart with  
DateTimeAxis.

the code is below

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var stockDataAC:ArrayCollection = new
ArrayCollection( [
{date: 2005, 7, 27, close: 41.71},
{date: 2005, 7, 28, close: 42.21},
{date: 2005, 7, 29, close: 42.11},
{date: 2005, 8, 1, close: 42.71},
{date: 2005, 8, 2, close: 42.99},
{date: 2005, 8, 3, close: 44} ]);
public function myParseFunction(s:String):Date {
var a:Array = s.split(,);
var newDate:Date = new Date(a[0],a[1],a[2]);
return newDate;
}
]]
/mx:Script
mx:Panel title=DateTimeAxis Example height=100% width=100%
mx:LineChart id=mychart height=100% width=100%
paddingRight=5 paddingLeft=5
showDataTips=true dataProvider={stockDataAC}
mx:horizontalAxis
mx:DateTimeAxis dataUnits=days
parseFunction=myParseFunction labelUnits=days /
/mx:horizontalAxis
mx:verticalAxis
mx:LinearAxis baseAtZero=false /
/mx:verticalAxis
mx:series
mx:LineSeries yField=close xField=date
displayName=AAPL/
/mx:series
/mx:LineChart
/mx:Panel

but the label in DateTimeAxis is not in the data provider.
the lable in DateTimeAxis is
8/27/05
8/28/05
8/29/05
8/30/05
8/31/05
9/1/05
9/2/05

How to solve this problem







Re: [flexcoders] Question about inline ItemRenderers

2007-05-22 Thread Flexing...

It is not to do with defining RadioButton inside HBox.
Where have you defined your RadioButtonGroup ?
Inside the mx:HBox tag or outside.

I think you need to define it inside mx:HBox. Try the following.


mx:itemRenderer
mx:Component
mx:HBox paddingLeft=5 paddingRight=5 verticalAlign=middle
mx:RadioButtonGroup id=sameGroup/   
mx:RadioButton groupName=sameGroup value={data.service}
selected=true/
mx:RadioButton groupName=sameGroup value={data.service}
/
/mx:HBox
/mx:Component
/mx:itemRenderer



On May 22, 2007, at 7:11 PM, mssairam wrote:


Hi,

I am trying to populate a datagrid column with a radio button. I
have code like the following which works -- but I am not able to
center the radiobutton on the column. Here is a snippet indicating
what I am trying to do.

mx:DataGrid id=resultGrid dataProvider={results}
mx:columns
mx:DataGridColumn dataField=itemType width=12
mx:itemRenderer
mx:Component
mx:RadioButton groupName=sameGroup
value={data.service} selected=true/
/mx:Component
/mx:itemRenderer
mx:DataGridColumn
/mx:columns
/mx:DataGrid

I am able to get the centering done by wrapping the radiobutton
above in a HBox -- kind of like this ...

mx:itemRenderer
mx:Component
mx:HBox paddingLeft=5 paddingRight=5 verticalAlign=middle
mx:RadioButton groupName=sameGroup value={data.service}
selected=true/
/mx:HBox
/mx:Component
/mx:itemRenderer

However, when i do that, the radio buttons behave
like they belong to different groups -- so selecting one doesn't
unselect the previous selected one.

Thanks for your help!







Re: [flexcoders] Audio Capture in Flex2

2007-05-22 Thread greg h

Hi Bora,

For the video side, Renaun's article on Video Conference with Flex  FMS
might be helpful.  Though the article does not focus on record it does
cover getting Flex 2/AMF3 working with FMS.  Article is here:
http://mxdj.sys-con.com/read/295379.htm

This blog entry has links for Source Code and Live Demo:
http://renaun.com/blog/2006/10/28/139/

hth,

g

On 5/22/07, BB [EMAIL PROTECTED] wrote:


Hi All,

Is it possible to record an audio or a video through Flex 2 application?
(Of course with the use of Flash Media Server or equivalant)

Best Regards

Bora ÜNAL



[flexcoders] Highlighting

2007-05-22 Thread André Rodrigues Pena
Hi all,
does someone know about any highlight-ready text component? I'm
looking for something to help me build a rich text area for code
entrance.

Any tips will be appreciated

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


RE: [flexcoders] Getting datagrid current data

2007-05-22 Thread Tracy Spratt
With all Flex data-driven controls, you must work with the dataProvider.
You can not use the control, because the row item renderers are re-used
when the list is scrolled or the data changes.

 

Loop over the dataProvider. If you are using xml, then the dataProvider
is either an XMLList or an XMLListCollection.  Both allow for iterating.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michel Scoz
Sent: Sunday, May 20, 2007 3:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Getting datagrid current data

 

Hi all...

 

I have a datagrid that is populated with a XML... this datagrid has a
drag and drop feature and it works fine. But I need to pass through all
the datagrid items, get their respective IDs and save this order on a
database.

 

I just dont know how to pass through all the datagrid items to get their
current order and get those IDs... can anyone give me a little help on
how to do this? I've been trying for 2 hours without a clue =(

 

Thank you very much!

 

Michel.

 



RE: [flexcoders] how to acces columns in a ArrayCollection

2007-05-22 Thread Tracy Spratt
That is the correct way with an ArrayList.  XML provides some other
options.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jolugarciado
Sent: Monday, May 21, 2007 11:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to acces columns in a ArrayCollection

 

I want to access all the cells in a especific column.
It is a way to make it?
Right now Im accessing the cells usin getItemAt and a cycle

Example: 

for(var:uint = 0;i=ElArrayCollection.length; i++) 
{ 
ElArrayCollection.getItemAt(i).ClvUsuario; 
}

Somebody knows another way to access all cells in a especific column?

thank you.

 



Re: [flexcoders] more OT: separating dev't, testing prod machines...Flex/CF/PHP/MySQL/Apache

2007-05-22 Thread Tom Chiverton
On Tuesday 22 May 2007, shawn.gibson wrote:
 guess the question, at heart, is: should I be connecting my
 development machine to the server's database, or somehow 'mimicing'
 the databases? 

You should, ideally, have separate databases for production, stage and live. 
Imagine if you had to make an incompatible change to the schema for a new 
feature.

mysqldump will take all the tables in a schema and produce XML you can use to 
recreate that schema on a new MySQL server.

-- 
Tom Chiverton
Helping to dynamically e-enable attention-grabbing convergence
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


Re: [flexcoders] Re: Datagrid auto sorting. Has anyone done this?

2007-05-22 Thread Ian M. Jones
As a total newbie, having just seen this in the docs, I may be totally
wrong, but have you looked at the DataGrid's placeSortArrow() method?

I'm not sure how you use it, but it looks promising.

Regards,
-- 
Ian M. Jones

IMiJ Software
http://www.imijsoft.com
http://www.ianmjones.net (blog)

On Tue, May 22, 2007 14:06, polestar11 wrote:
 Hi there

 I tried exactly that in various different ways, but wasnt able to get
 it to work.

 I have an array, which I convert to an array collection, on which I
 sort and refresh, after which I set as a dataProvider for my DataGrid.

 Still no sort arrow is shown.

 I then tried extending the DataGrid class, but that opened up another
 can of worms

 Help, anyone??
 Tracy


 --- In flexcoders@yahoogroups.com, Manish Jethani
 [EMAIL PROTECTED] wrote:

 On 4/28/07, Mark Piller [EMAIL PROTECTED] wrote:
  Do you know how to configure a datagrid to automatically sort in a
  particular column before the data is rendered?

 Basically you just set the sort on the collection, and the DataGrid
 will appropriately display a sort arrow on the header. So it's the
 collection you need to sort.

 You can see an example of how to sort a collection here:

 http://www.adobe.com/livedocs/flex/2/langref/mx/collections/Sort.html





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









[flexcoders] Saving text with RichTextEditor . . . how?

2007-05-22 Thread crumpelfungus
OK, so I've tried out a few things with Flex's RichTextEditor, and I can
get it to work quite well for my purposes.

However, does anyone know whether it's possible to save text straight to
the web server (say, into a specific client directory) as RTF or any
other format (such as DOC) that would maintain the formatting?

My server-side back-end is a SQL Server database, but I don't really
want to save the text in the database for this purpose. We use C#.Net
(and some Classic ASP), and I'm just not sure if (or how) I could use
Flex to handle all this.

Does anyone have any RichTextEditor samples that do any kind of Save?
Something that might steer me into the right direction?


Any help would be greatly appreciated!



[flexcoders] Hit Detection in border skin

2007-05-22 Thread Mark Ingram
Hi, I want to skin a TextArea so that it shows a simple dotted line
around it, but I would also like to be able to hit test in the skin so
that I can resize the text area on the fly.

 

i.e. I want the user to be able to resize a text box with the mouse. 

 

How is the best way of achieving this?

 

Do I create a child control and overlay it on top of the TextArea?

Do I hit test in the border skin?

Do I host the TextArea in a container which handles all the resizing for
me?

 

Any ideas on this subject gratefully received.

 

Thanks,

 

Mark

 

 

 



[flexcoders] Memory leak in VideoDisplay?

2007-05-22 Thread beecee1977
Hi, 

I've been having memory problems with my application when it's left 
running overnight in IE7, which often results in IE crashing and a 
flash9.ocx error popup.

Anyway, I'm struggling to pin down where the problem is coming from. 
I know about the seemingly whimsical nature of when garbage 
collection is done, but even still this behaviour seems strange to 
me: 

(See the sample project below) With just a VideoDisplay object 
playing video (or paused!) the memory will keep going up for a couple 
of Mb at least. At some stage the garbage collection will kick in and 
it will recycle, but is this normal/expected behaviour. It looks 
funny for my application, which is very video reliant, to have the 
memory constantly fluctuating even when the user is doing nothing. It 
also makes debugging for my memory leak very tricky. 

Does anyone have any advice for tracking down my problem? Would it be 
making a difference that I have the debug version of flash?

Here's the sample app (not very neat) that demonstrates the problem. 
Just click Load followed by Play/Pause and watch the memory go. 
Sometimes if I click about on the slider or pause and play or even 
just leave it for a while the problem becomes more pronounced. (Also 
using the add/remove buttons to add extra components doesn't seem to 
cause the garbage collection to occur)

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
verticalScrollPolicy=off layout=absolute 
creationComplete=initTimer() bottom=0  height=648
mx:Script![CDATA[
import flash.utils.Timer;
import flash.events.TimerEvent;

[Bindable]
public var time:Number = 0;
[Bindable]
public var totmem:Number = 0;
[Bindable]
public var maxmem:Number = 0;
[Bindable]
public var initmem:Number = 0;


private var mCount:int = 0;

public function initTimer():void {
// The first parameter is the interval (in milliseconds). 
The 
// second parameter is number of times to run (0 means 
infinity).
var myTimer:Timer = new Timer(1000, 0);
myTimer.addEventListener(timer, timerHandler);
myTimer.start();
initmem = flash.system.System.totalMemory;

}

public function timerHandler(event:TimerEvent):void {
time = getTimer()
totmem = flash.system.System.totalMemory;
maxmem = Math.max(maxmem, totmem);
}
private function add():void
{
var theLabel:Label = new Label();   
theLabel.condenseWhite=false;   

theLabel.text= testing;
theLabel.name = id+ mCount;
mCount++;
theLabel.truncateToFit=true;
this.box.addChild(theLabel);
}
private function remove():void
{
mCount--;
var theLab:Label = Label(this.box.getChildByName(id 
+ mCount))
this.box.removeChild(theLab)
}
private function gc():void
{
try 
{
var lc1:LocalConnection = new 
LocalConnection();
var lc2:LocalConnection = new 
LocalConnection();

lc1.connect('name');
lc2.connect('name');
}
catch (e:Error) {}
}

private function slider_change():void
{
vid.playheadTime = slider.value
}

private function loadVid():void
{

vid.source='http://www.youtube.com/get_video.php?
video_id=GTXinF8ZVCot=OEgsToPDskJ4R8PZpQMwNWLj_IyZOhvr'
}
private function playPause():void
{
vid.volume=0;
if (vid.playing != true)
vid.play();
else
vid.pause();
}
]]/mx:Script
mx:Form id=frm
mx:FormItem label=Time:
mx:Label text={time} ms/
/mx:FormItem
mx:FormItem label=Total Memory:
mx:Label text={totmem} bytes/
/mx:FormItem
mx:FormItem label=Max Memory:
mx:Label text={maxmem} bytes/
/mx:FormItem
mx:FormItem label=Init Memory:
mx:Label text={initmem} bytes/
/mx:FormItem
mx:Button label=Do garbage collection click=gc() /

/mx:Form

mx:VBox top=10 bottom=219 borderThickness=3 
verticalScrollPolicy=auto horizontalScrollPolicy=off  x=245

[flexcoders] java.lang.ClassCastException

2007-05-22 Thread manuelgrau
Hi. I have an hibernate mapping defined with some properties and a
relationship:

set name=items table=... lazy=false
key column=.../
one-to-many class=.../
/set

in the java bean associated with this map:

private Collection items;

On the Flex side, I'm receiving this relationship as an
ArrayCollection. The serialization from java.util.Collection to Flex
ArrayCollection works fine but, when I try to save the changes made on
the client side ( what, on the server side, gets translated into
getHibernateTemplate().update ( .. ) ), it just fails throwing this error:

java.lang.ClassCastException : flex.messaging.io.ArrayCollection
cannot be cast to java.util.Set

Does anybody knows what is happening??



[flexcoders] Re: Saving text with RichTextEditor . . . how?

2007-05-22 Thread bobignacio
Take a look at the following thread:

 Message #66109

Hope this helps,

Bob I.

--- In flexcoders@yahoogroups.com, crumpelfungus [EMAIL PROTECTED]
wrote:

 OK, so I've tried out a few things with Flex's RichTextEditor, and I can
 get it to work quite well for my purposes.
 
 However, does anyone know whether it's possible to save text straight to
 the web server (say, into a specific client directory) as RTF or any
 other format (such as DOC) that would maintain the formatting?
 
 My server-side back-end is a SQL Server database, but I don't really
 want to save the text in the database for this purpose. We use C#.Net
 (and some Classic ASP), and I'm just not sure if (or how) I could use
 Flex to handle all this.
 
 Does anyone have any RichTextEditor samples that do any kind of Save?
 Something that might steer me into the right direction?
 
 
 Any help would be greatly appreciated!





[flexcoders] Stopping blue focus rect being drawn

2007-05-22 Thread Mark Ingram
Hi, how can I stop the blue focus rectangle from being drawn? I've tried
the following code in my main application file:

 

private function onCreationComplete(event:Event):void

{

 
//this.stage.stageFocusRect = false;

 
systemManager.stage.stageFocusRect = false;

}

 

But neither line works!

 

Thanks,

 

Mark

 

 

 



RE: [flexcoders] DateChooser X and Y?

2007-05-22 Thread Gordon Smith
In what sense do these appear to be missing? I see them in the Language
Reference as inherited properties.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lincoln Mitchell
Sent: Tuesday, May 22, 2007 4:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DateChooser X and Y?



There appears to be no x and y attributes for this component but is it
still
possible to define exactly where the DateChooser will appear?

Linc



 


RE: [flexcoders] Stopping blue focus rect being drawn

2007-05-22 Thread Alex Harui
It is drawn by the focus manager and not the stage.  It isn't the
player's default focus look.

 

focusManager.showFocusIndicator = false;

 

showFocusIndicator is set back to true by TextInput and TextArea so you
may need to catch that and set it back to false.  Subclassing and
overriding focusInHandler might be one way

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Tuesday, May 22, 2007 9:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Stopping blue focus rect being drawn

 

Hi, how can I stop the blue focus rectangle from being drawn? I've tried
the following code in my main application file:

 

private function onCreationComplete(event:Event):void

{

 
//this.stage.stageFocusRect = false;

 
systemManager.stage.stageFocusRect = false;

}

 

But neither line works!

 

Thanks,

 

Mark

 

 

 

 



RE: [flexcoders] HTML Text in LinkBar

2007-05-22 Thread Alex Harui
You'll probably have to subclass to do that

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: Tuesday, May 22, 2007 3:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTML Text in LinkBar

 

We have a Link Bar that has text in it pulled from an XML file. We're
using a font defined by the client that doesn't have all the
characters we need for all of the language versions.

What we want to do is use a different font for some languages - i.e.
use Verdana for Spanish so we get the cidillas ect. In Flash I have
successfully done this by using a font tag in the xml to specify which
font to use for languages with special characters.

I have tried this in Flex but it doesn't work. The link bar (with a
simple object as the data provider) doesn't appear to use html text.

Is there any other solution to this.

Thanks

 



RE: [flexcoders] Re: Datagrid auto sorting. Has anyone done this?

2007-05-22 Thread Alex Harui
In theory, the sortArrow will show if the dataProvider has a valid sort
property with a single sortField that describes the sorted column.  If
you did a more complex sort, you might be better off drawing custom
header renderers that better depicts the complex sort.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of polestar11
Sent: Tuesday, May 22, 2007 6:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Datagrid auto sorting. Has anyone done this?

 

Hi there

I tried exactly that in various different ways, but wasnt able to get
it to work. 

I have an array, which I convert to an array collection, on which I
sort and refresh, after which I set as a dataProvider for my DataGrid.

Still no sort arrow is shown.

I then tried extending the DataGrid class, but that opened up another
can of worms

Help, anyone??
Tracy

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Manish Jethani
[EMAIL PROTECTED] wrote:

 On 4/28/07, Mark Piller [EMAIL PROTECTED] wrote:
  Do you know how to configure a datagrid to automatically sort in a
  particular column before the data is rendered?
 
 Basically you just set the sort on the collection, and the DataGrid
 will appropriately display a sort arrow on the header. So it's the
 collection you need to sort.
 
 You can see an example of how to sort a collection here:
 
 http://www.adobe.com/livedocs/flex/2/langref/mx/collections/Sort.html
http://www.adobe.com/livedocs/flex/2/langref/mx/collections/Sort.html 


 



[flexcoders] Re: RemoteObject handling exceptions onFault

2007-05-22 Thread truongdav
I think i found my stupid mistake just need to wrap in a 
MessageException.

--- In flexcoders@yahoogroups.com, truongdav [EMAIL PROTECTED] wrote:

 Anyone know the answer for this?
 
 
 --- In flexcoders@yahoogroups.com, truongdav truongdav@ wrote:
 
  Hi,
  
  I am having problems I want to throw some exception on a remote 
 call 
  and then display the Exception on the client side.  But this 
always 
  returns an onResult instead of an onFault.  Anything I am doing 
 wrong?
  
  Thanks.
  
  
  --- POJO ---
  public void test() throws Exception
  {
throw new exception(blah);
  }
  
  --- services.mxml --
  
  mx:RemoteObject id=someServiceId 
   destination=someService 
   showBusyCursor=true 
   result=event.token.resultHandler( event )
   fault=event.token.faultHandler( event )
  /mx:RemoteObject
  
  -
  
  public function execute( event : CairngormEvent ):void
  {
var delegate : SomeDelegate = new SomeDelegate( this );
var someEvent : SomeEvent = SomeEvent( event );
delegate.test();
  }
  
  public function onResult( event : * = null ) : void
  {   
Alert.show(success);
  }
  
  public function onFault( event : * = null) : void
  {
Alert.show(event.fault.message, Error);
  }
  
  
public class SomeDelegate
{
  public function SomeDelegate( responder : Responder )
  {
this.service = ServiceLocator.getInstance().getService 
  ( someServiceId );
this.responder = responder;
  }
  
  public function test(): void
  { 
var call : Object = service.test(); 
   
call.resultHandler = responder.onResult;
call.faultHandler = responder.onFault;
  }
  
  //
  -
  
  private var responder:Responder;
  private var service:Object;
 





RE: [flexcoders] Re: How to keep TextArea from losing focus?

2007-05-22 Thread Alex Harui
To do that, you sublcass TextArea and set alwaysShowSelection=true on
the underlying textfield.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Tuesday, May 22, 2007 1:54 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: How to keep TextArea from losing focus?

 

No, what I want is for the selection to always show up in a TextArea,
even when the selection has moved onto another control.

Specifically, I have another control, which can popup in certain
situations, to allow the user to configure the selected text. However,
when the popup appears, it gains the focus, removes it from the initial
TextArea, and the user can no longer see what text they had selected.

 

Thanks,

 

Mark

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dfortenberry
Sent: 21 May 2007 15:54
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to keep TextArea from losing focus?

 

Mark,
Just to clarify when you say 'focus', do you mean that you want the 
users cursor to always be in a specific form item?
Are you looking for a Flex equivalent of the following javascript?:

onblur=this.focus() so that the cursor stays in the specific form 
input?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Mark Ingram [EMAIL PROTECTED] wrote:

 Hi, how can I stop a text area from losing focus? I always want it 
to
 show the selection, no matter if the user is in another control.
 
 
 
 Any clues?
 
 
 
 Mark


 



[flexcoders] MouseEvent.CLICK - TextField bugs - not receiving events - general bugs

2007-05-22 Thread patricklemiuex
I am a little beside myself because I have sprites and there are some
bugs in Flashplayer that I've noticed about click events not being
received with TextFields  TextFormatter Objects added to sprites.   I
have a button and 2 out of 10 clicks, i don't receive a click event! 
It's like there's almost a dead spot where no clicking can be received?
I even added a transparent layer to try to see if it is a depth issue.  
Has anyone come across this type of unexpected behavior?   I know that
I can't be the only programmer who has issues with this sort of thing?  

The only work around is to get a mouseDown and get an X Y point and
determine mouse position?  Any ideas?


Questions:

1.  Invisible parts of sprites should not stop click events from
sprite underneath, correct?

2.  Why does a TextField Object have an automatic 100 pixel tall
height when none is specified.  Why Does this ghost height invalidate
clicks beneath?  This is a bug, correct?









[flexcoders] Solutions FREE for Remote SharedObject

2007-05-22 Thread Carlos Humberto
Hi All,

Firstly excuse my terrible English. I'm Brazilian !
I like indications of solutions FREE for Remote SharedObject.

What do intend to do? Something relatively simple as that:
(Remote SharedObject example) Ball control - 
http://www.themidnightcoders.com/weborb/dotnet/examples.shtm

Anybody know how to tell me if the version Open Source of WebORB PHP 
goes supports Remote SharedObject?

1) I like indications of solutions FREE for Remote SharedObject.
2) Are there many requirements for installation/configuration in 
Hosting? Is the hosting necessary to make available or do i just can 
unzip in a folder in Hosting?

It would only like that empurranzinho in search of the road of the 
stones! rs... =D

Excuse English's mistakes !

Obs: I work with PHP.


[]'s
Carlos H.





RE: [flexcoders] Solutions FREE for Remote SharedObject

2007-05-22 Thread Anthony Sherritt
Hi Carlos,
 
I set up WebOrb for PHP on my machine.  Took me 10 minutes to get the
examples working and 2 hours to get me first custom application working,
and that's cause I don't know PHP hardly at all.
 
It's very simple and very easy to deploy.  The Getting Started
instructions are clear.  Just follow each step.
It is free for Remote Objects.  There will be a paid version that will
do everything Data Services can, but that isn't available yet and will
cost $10,000.
 
-Peace 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Carlos Humberto
Sent: Tuesday, May 22, 2007 10:11 AM
To: Lista - Flexcoders
Subject: [flexcoders] Solutions FREE for Remote SharedObject
 
Hi All,

Firstly excuse my terrible English. I'm Brazilian !
I like indications of solutions FREE for Remote SharedObject.

What do intend to do? Something relatively simple as that:
(Remote SharedObject example) Ball control - 
http://www.themidni
http://www.themidnightcoders.com/weborb/dotnet/examples.shtm
ghtcoders.com/weborb/dotnet/examples.shtm

Anybody know how to tell me if the version Open Source of WebORB PHP 
goes supports Remote SharedObject?

1) I like indications of solutions FREE for Remote SharedObject.
2) Are there many requirements for installation/configuration in 
Hosting? Is the hosting necessary to make available or do i just can 
unzip in a folder in Hosting?

It would only like that empurranzinho in search of the road of the 
stones! rs... =D

Excuse English's mistakes !

Obs: I work with PHP.

[]'s
Carlos H.
 


Re: [flexcoders] Solutions FREE for Remote SharedObject

2007-05-22 Thread Carlos Humberto
Thank you Antony 

Anthony Sherritt escreveu:

 Hi Carlos,

 I set up WebOrb for PHP on my machine. Took me 10 minutes to get the 
 examples working and 2 hours to get me first custom application 
 working, and that’s cause I don’t know PHP hardly at all.

 It’s very simple and very easy to deploy. The Getting Started 
 instructions are clear. Just follow each step.

 It is free for Remote Objects. There will be a paid version that will 
 do everything Data Services can, but that isn’t available yet and will 
 cost $10,000.

 -Peace

 -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Carlos Humberto
 *Sent:* Tuesday, May 22, 2007 10:11 AM
 *To:* Lista - Flexcoders
 *Subject:* [flexcoders] Solutions FREE for Remote SharedObject

 Hi All,

 Firstly excuse my terrible English. I'm Brazilian !
 I like indications of solutions FREE for Remote SharedObject.

 What do intend to do? Something relatively simple as that:
 (Remote SharedObject example) Ball control -
 http://www.themidnightcoders.com/weborb/dotnet/examples.shtm 
 http://www.themidnightcoders.com/weborb/dotnet/examples.shtm

 Anybody know how to tell me if the version Open Source of WebORB PHP
 goes supports Remote SharedObject?

 1) I like indications of solutions FREE for Remote SharedObject.
 2) Are there many requirements for installation/configuration in
 Hosting? Is the hosting necessary to make available or do i just can
 unzip in a folder in Hosting?

 It would only like that empurranzinho in search of the road of the
 stones! rs... =D

 Excuse English's mistakes !

 Obs: I work with PHP.

 []'s
 Carlos H.

  



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


[flexcoders] TileListItemRenderer help

2007-05-22 Thread Jon Bradley
I've asked around .. and thanks to Alex Harui I've gotten some  
places, but now I'm a bit confused how to integrate a custom renderer  
with the proper controls that I need ... into an mxml renderer with  
the updateDisplayList overridden.


I've got a TileList itemRenderer that mxml with some AS code in it to  
swap out the background style (which doesn't work). I'd sure be happy  
to extend TilelistItemRenderer and do my bidding, but since I'm  
generally new to all this, that would mean I'll have to create all  
the sub-components dynamically, when all i want to do is swap out the  
darn background image on rollover or selection state (can it really  
be so difficult?!).


I'd prefer to create a TileListItemRenderer and do it all by code -  
but I cannot find a single example of a TileListItemRenderer  
anywhere. Yea, Flex docs give you a good overview of classes, but  
when it comes to AS3 itemRenderers, it's severely lacking in any  
concrete examples.



I have three styles defined in my CSS doc:

.assetGridNormalBg
{
	backgroundImage: Embed(source=defaultSkin.swf,  
symbol=assetGridNormal_bg);

}

.assetGridRolloverBg
{
	backgroundImage: Embed(source=defaultSkin.swf,  
symbol=assetGridRollover_bg);

}

.assetGridSelectedBg
{
	backgroundImage: Embed(source=defaultSkin.swf,  
symbol=assetGridSelected_bg);

}

I have the following itemRenderer set for the TileList that I'm using:


?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns:filters=flash.filters.*
width=157 height=173 

mx:Script
![CDATA[

import mx.styles.StyleManager;
import mx.styles.CSSStyleDeclaration;

		var bgNormalStyle:CSSStyleDeclaration =  
StyleManager.getStyleDeclaration(assetGridNormalBg);
		var bgRolloverStyle:CSSStyleDeclaration =  
StyleManager.getStyleDeclaration(assetGridNormalBg);
		var bgSelectedStyle:CSSStyleDeclaration =  
StyleManager.getStyleDeclaration(assetGridNormalBg);


		override protected function updateDisplayList 
( unscaledWidth:Number, unscaledHeight:Number ) : void

{
super.updateDisplayList( unscaledWidth, unscaledHeight 
);
setStyle(backgroundImage, bgSelectedStyle );
}

]]
/mx:Script

!--
mx:HBox width=100% height=20
mx:Label text={data.name} left=0/
mx:Spacer width=100% height=100%/   
mx:Label text={data.id} right=0/
/mx:HBox
	mx:Image source={data.thumbnail} width=142 height=106  
id=image scaleContent=true/

--
/mx:Canvas

Here's what I gather - the above code does nothing because the  
updateDisplayList function I'm using is actually overriding the  
Canvas updateDisplayList, which has it's CSS properties demolished by  
any List-based class. Frick.


Does anybody have a simple example of a TileListItemRenderer - either  
in pure AS3 form or in a composite form with the display list  
overridden?


It seems ridiculous to have to jump through so many hoops just to set  
the background of a TileList item to a specific symbol based on it's  
state. I can't even get the states in the itemRenderer without  
actually writing a separate AS class.


Thanks much for any insight. This thing is driving me nuts. I'm ready  
to give up and use a repeater with a button skin, which I know works  
right.


thanks,

jon

[flexcoders] Populating a form

2007-05-22 Thread cbs1918
I have a form that users will use to edit data.  The form contains
several drop downs that are being populated from the server using
RemoteObject.  I am also using RemoteObject to get the data to
populate the form for the user to edit.  Is there a 'Best Practice' or
a proper way to wait to populate the form until all of the drop downs
have been populated?  How will I know when all of the drop downs have
been populated and the form is ready to be populated with the rest of
the data?



RE: [flexcoders] MouseEvent.CLICK - TextField bugs - not receiving events - general bugs

2007-05-22 Thread Alex Harui
Does something have doubleClickEnabled = true?  That'll eat regular
clicks.

 

1)   invisible (not drawn) passes through, but drawn with alpha=0
blocks

2)   Haven't seen the 100 pixel high thing before.  Do you see it
for any TextField?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of patricklemiuex
Sent: Tuesday, May 22, 2007 10:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] MouseEvent.CLICK - TextField bugs - not receiving
events - general bugs

 

I am a little beside myself because I have sprites and there are some
bugs in Flashplayer that I've noticed about click events not being
received with TextFields  TextFormatter Objects added to sprites. I
have a button and 2 out of 10 clicks, i don't receive a click event! 
It's like there's almost a dead spot where no clicking can be received?
I even added a transparent layer to try to see if it is a depth issue. 
Has anyone come across this type of unexpected behavior? I know that
I can't be the only programmer who has issues with this sort of thing? 

The only work around is to get a mouseDown and get an X Y point and
determine mouse position? Any ideas?

Questions:

1. Invisible parts of sprites should not stop click events from
sprite underneath, correct?

2. Why does a TextField Object have an automatic 100 pixel tall
height when none is specified. Why Does this ghost height invalidate
clicks beneath? This is a bug, correct?

 



[flexcoders] SOLVED: MouseEvent.CLICK - TextField bugs - not receiving events - general bugs

2007-05-22 Thread patricklemiuex
This is all do to TextField boxes that are overlapping my button
sprites.  Personally, if a textfield is blank, I think the sprite
underneath should allow MouseEvents from underneath, because in a
sense an invisible area of a TextField should be like an invisible
part of a sprite.

Any one else have any input on this?

Thanks,
Patrick







--- In flexcoders@yahoogroups.com, patricklemiuex [EMAIL PROTECTED]
wrote:

 I am a little beside myself because I have sprites and there are some
 bugs in Flashplayer that I've noticed about click events not being
 received with TextFields  TextFormatter Objects added to sprites.   I
 have a button and 2 out of 10 clicks, i don't receive a click event! 
 It's like there's almost a dead spot where no clicking can be received?
 I even added a transparent layer to try to see if it is a depth issue.  
 Has anyone come across this type of unexpected behavior?   I know that
 I can't be the only programmer who has issues with this sort of thing?  
 
 The only work around is to get a mouseDown and get an X Y point and
 determine mouse position?  Any ideas?
 
 
 Questions:
 
 1.  Invisible parts of sprites should not stop click events from
 sprite underneath, correct?
 
 2.  Why does a TextField Object have an automatic 100 pixel tall
 height when none is specified.  Why Does this ghost height invalidate
 clicks beneath?  This is a bug, correct?





[flexcoders] TileList skinning .. again

2007-05-22 Thread Jon Bradley
Nice... so there's a great tutorial on skinning the Flash CS3  
TileList, but ... go figure that none of these (obvious) properties  
are implemented in Flex 2.

Am I missing something on this? The TileList has, from the tutorial:

http://www.adobe.com/devnet/flash/quickstart/tilelist_component_as3/ 
#CustomCellRenderer

upSkin
downSkin
overSkin
selectedUpSkin
selectedDownSkin
selectedOverSkin

Seems like the skinning shortcomings of the TileList in Flex are  
a.ok. in Flash. The cell renderer also makes much more sense.

. seriously.

- jon



[flexcoders] Re: Solutions FREE for Remote SharedObject

2007-05-22 Thread Mark Piller
Anthony and Carlos,

I'd like to make a minor correction with regards to the price. The 10K
price point will not be applicable to the PHP/Ruby editions of the
product. We're keen on keeping it open source. At this point, we're
leaning towards free product offering for PHP and Ruby and charging
for docs/examples/support. This is very similar to the model JBoss had
(or still has - not sure there).

Hope this helps.

Cheers,
Mark

--- In flexcoders@yahoogroups.com, Anthony Sherritt [EMAIL PROTECTED] wrote:

 Hi Carlos,
  
 I set up WebOrb for PHP on my machine.  Took me 10 minutes to get the
 examples working and 2 hours to get me first custom application working,
 and that's cause I don't know PHP hardly at all.
  
 It's very simple and very easy to deploy.  The Getting Started
 instructions are clear.  Just follow each step.
 It is free for Remote Objects.  There will be a paid version that will
 do everything Data Services can, but that isn't available yet and will
 cost $10,000.
  
 -Peace 
  
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Carlos Humberto
 Sent: Tuesday, May 22, 2007 10:11 AM
 To: Lista - Flexcoders
 Subject: [flexcoders] Solutions FREE for Remote SharedObject
  
 Hi All,
 
 Firstly excuse my terrible English. I'm Brazilian !
 I like indications of solutions FREE for Remote SharedObject.
 
 What do intend to do? Something relatively simple as that:
 (Remote SharedObject example) Ball control - 
 http://www.themidni
 http://www.themidnightcoders.com/weborb/dotnet/examples.shtm
 ghtcoders.com/weborb/dotnet/examples.shtm
 
 Anybody know how to tell me if the version Open Source of WebORB PHP 
 goes supports Remote SharedObject?
 
 1) I like indications of solutions FREE for Remote SharedObject.
 2) Are there many requirements for installation/configuration in 
 Hosting? Is the hosting necessary to make available or do i just can 
 unzip in a folder in Hosting?
 
 It would only like that empurranzinho in search of the road of the 
 stones! rs... =D
 
 Excuse English's mistakes !
 
 Obs: I work with PHP.
 
 []'s
 Carlos H.





[flexcoders] Re: Question about inline ItemRenderers

2007-05-22 Thread mssairam
Maybe I am not making it clear -- let me try again.

The itemRenderer renders one radiobutton. For each line of the
datagrid, there is one radiobutton. All these radiobuttons need to be
in one group. The following works fine except that the radiobuttons
are not centered in the DataGrid cell. All I am trying to do is
getting it centered. Putting it in a HBox isn't cutting it.

Here is the code that works but the radiobuttons are squished to the left.
mx:DataGrid id=resultGrid dataProvider={results}
  mx:columns
mx:DataGridColumn dataField=itemType width=12
  mx:itemRenderer
mx:Component
   mx:RadioButton groupName=sameGroup
   value={data.service} selected=true/
/mx:Component
  /mx:itemRenderer
mx:DataGridColumn
  /mx:columns
/mx:DataGrid

thanks


--- In flexcoders@yahoogroups.com, Flexing... [EMAIL PROTECTED] wrote:

 It is not to do with defining RadioButton inside HBox.
 Where have you defined your RadioButtonGroup ?
 Inside the mx:HBox tag or outside.
 
 I think you need to define it inside mx:HBox. Try the following.
 
  mx:itemRenderer
  mx:Component
  mx:HBox paddingLeft=5 paddingRight=5 verticalAlign=middle
  mx:RadioButtonGroup id=sameGroup/   
  mx:RadioButton groupName=sameGroup value={data.service}
  selected=true/
  mx:RadioButton groupName=sameGroup value={data.service}
  /
  /mx:HBox
  /mx:Component
  /mx:itemRenderer
 
 
 On May 22, 2007, at 7:11 PM, mssairam wrote:
 
  Hi,
 
  I am trying to populate a datagrid column with a radio button. I
  have code like the following which works -- but I am not able to
  center the radiobutton on the column. Here is a snippet indicating
  what I am trying to do.
 
  mx:DataGrid id=resultGrid dataProvider={results}
  mx:columns
  mx:DataGridColumn dataField=itemType width=12
  mx:itemRenderer
  mx:Component
  mx:RadioButton groupName=sameGroup
  value={data.service} selected=true/
  /mx:Component
  /mx:itemRenderer
  mx:DataGridColumn
  /mx:columns
  /mx:DataGrid
 
  I am able to get the centering done by wrapping the radiobutton
  above in a HBox -- kind of like this ...
 
  mx:itemRenderer
  mx:Component
  mx:HBox paddingLeft=5 paddingRight=5 verticalAlign=middle
  mx:RadioButton groupName=sameGroup value={data.service}
  selected=true/
  /mx:HBox
  /mx:Component
  /mx:itemRenderer
 
  However, when i do that, the radio buttons behave
  like they belong to different groups -- so selecting one doesn't
  unselect the previous selected one.
 
  Thanks for your help!
 
 
 





Re: [flexcoders] Re: Solutions FREE for Remote SharedObject

2007-05-22 Thread Carlos Humberto
Thank you Mark.
It is possible then to use Remote SharedObject  in the version FREE of 
WebOrb for PHP ?
[]'s


Mark Piller escreveu:

 Anthony and Carlos,

 I'd like to make a minor correction with regards to the price. The 10K
 price point will not be applicable to the PHP/Ruby editions of the
 product. We're keen on keeping it open source. At this point, we're
 leaning towards free product offering for PHP and Ruby and charging
 for docs/examples/support. This is very similar to the model JBoss had
 (or still has - not sure there).

 Hope this helps.

 Cheers,
 Mark

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, Anthony Sherritt 
 [EMAIL PROTECTED] wrote:
 
  Hi Carlos,
 
  I set up WebOrb for PHP on my machine. Took me 10 minutes to get the
  examples working and 2 hours to get me first custom application working,
  and that's cause I don't know PHP hardly at all.
 
  It's very simple and very easy to deploy. The Getting Started
  instructions are clear. Just follow each step.
  It is free for Remote Objects. There will be a paid version that will
  do everything Data Services can, but that isn't available yet and will
  cost $10,000.
 
  -Peace
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com] On
  Behalf Of Carlos Humberto
  Sent: Tuesday, May 22, 2007 10:11 AM
  To: Lista - Flexcoders
  Subject: [flexcoders] Solutions FREE for Remote SharedObject
 
  Hi All,
 
  Firstly excuse my terrible English. I'm Brazilian !
  I like indications of solutions FREE for Remote SharedObject.
 
  What do intend to do? Something relatively simple as that:
  (Remote SharedObject example) Ball control -
  http://www.themidni
  http://www.themidnightcoders.com/weborb/dotnet/examples.shtm 
 http://www.themidnightcoders.com/weborb/dotnet/examples.shtm
  ghtcoders.com/weborb/dotnet/examples.shtm
 
  Anybody know how to tell me if the version Open Source of WebORB PHP
  goes supports Remote SharedObject?
 
  1) I like indications of solutions FREE for Remote SharedObject.
  2) Are there many requirements for installation/configuration in
  Hosting? Is the hosting necessary to make available or do i just can
  unzip in a folder in Hosting?
 
  It would only like that empurranzinho in search of the road of the
  stones! rs... =D
 
  Excuse English's mistakes !
 
  Obs: I work with PHP.
 
  []'s
  Carlos H.
 

  



[SOLVED] Re: [flexcoders] TileListItemRenderer help

2007-05-22 Thread Jon Bradley
This is in response to both of my posts (unfortunately, I posted  
twice in two separate threads - sorry about that everyone!!).


With the help of Alex H., I got it all figured out.

For future reference, if anyone wants to simply swap out the  
background of the TileList component and you've got styles defined,  
the following in your custom itemRenderer will work a.ok.


I found I didn't need to embed the assets twice - just using proper  
style tags got it going alright.


cheers,

jon


mx:Script
![CDATA[

import mx.controls.TileList;

	var bgNormalStyle:CSSStyleDeclaration =  
StyleManager.getStyleDeclaration(.assetGridNormalBg);
	var bgRolloverStyle:CSSStyleDeclaration =  
StyleManager.getStyleDeclaration(.assetGridRolloverBg);
	var bgSelectedStyle:CSSStyleDeclaration =  
StyleManager.getStyleDeclaration(.assetGridSelectedBg);


			override protected function updateDisplayList 
( unscaledWidth:Number, unscaledHeight:Number ) : void

{
super.updateDisplayList( unscaledWidth, 
unscaledHeight );

var tl:TileList = owner as TileList;
if (tl.isItemSelected(data)) {
	setStyle(backgroundImage, bgSelectedStyle.getStyle 
(backgroundImage) );

} else if ( tl.isItemHighlighted(data) ) {
	setStyle(backgroundImage, bgRolloverStyle.getStyle 
(backgroundImage) );

} else {
	setStyle(backgroundImage, bgNormalStyle.getStyle 
(backgroundImage) );

}
}

]]
/mx:Script




[flexcoders] Menubar selected

2007-05-22 Thread nxzone
I want hightlight a menuitem if i'm in his section or child section...
I created a MenuBarActive skin and added these attributes to my MenuBar:
itemUpSkin=com.timeline.skin.MenuBarActiveSkin
itemDownSkin=com.timeline.skin.MenuBarActiveSkin
itemOverSkin=com.timeline.skin.MenuBarActiveSkin

If the item is selected or mouse over, i want draw the hightlight. When
the user change section, selectedMenu change and I invalidateDisplayList
in MenuBar but the updateDisplayList in each menubarItem are not call,
why?

#In my MenuBarTiveSkin
override protected function updateDisplayList(w:Number, h:Number):void
{
   var isActive:Boolean=false
   if(name==itemUpSkin){
  
if((this.parent).data==UIComponent(this.parent).parentApplication.select\
edMenu){
 isActive=true;
   }
   }else{
 isActive=true
   }
   super.updateDisplayList(w,h)
   if(isActive){
 drawHightLightRect();
   }
}



[flexcoders] Re: Solutions FREE for Remote SharedObject

2007-05-22 Thread Mark Piller
It is not available yet. We're looking into possible ways to implement it.

Thanks,
Mark

--- In flexcoders@yahoogroups.com, Carlos Humberto
[EMAIL PROTECTED] wrote:

 Thank you Mark.
 It is possible then to use Remote SharedObject  in the version FREE of 
 WebOrb for PHP ?
 []'s
 
 
 Mark Piller escreveu:
 
  Anthony and Carlos,
 
  I'd like to make a minor correction with regards to the price. The 10K
  price point will not be applicable to the PHP/Ruby editions of the
  product. We're keen on keeping it open source. At this point, we're
  leaning towards free product offering for PHP and Ruby and charging
  for docs/examples/support. This is very similar to the model JBoss had
  (or still has - not sure there).
 
  Hope this helps.
 
  Cheers,
  Mark
 
  --- In flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com, Anthony Sherritt 
  anthony@ wrote:
  
   Hi Carlos,
  
   I set up WebOrb for PHP on my machine. Took me 10 minutes to get the
   examples working and 2 hours to get me first custom application
working,
   and that's cause I don't know PHP hardly at all.
  
   It's very simple and very easy to deploy. The Getting Started
   instructions are clear. Just follow each step.
   It is free for Remote Objects. There will be a paid version that
will
   do everything Data Services can, but that isn't available yet
and will
   cost $10,000.
  
   -Peace
  
   -Original Message-
   From: flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com] On
   Behalf Of Carlos Humberto
   Sent: Tuesday, May 22, 2007 10:11 AM
   To: Lista - Flexcoders
   Subject: [flexcoders] Solutions FREE for Remote SharedObject
  
   Hi All,
  
   Firstly excuse my terrible English. I'm Brazilian !
   I like indications of solutions FREE for Remote SharedObject.
  
   What do intend to do? Something relatively simple as that:
   (Remote SharedObject example) Ball control -
   http://www.themidni
   http://www.themidnightcoders.com/weborb/dotnet/examples.shtm 
  http://www.themidnightcoders.com/weborb/dotnet/examples.shtm
   ghtcoders.com/weborb/dotnet/examples.shtm
  
   Anybody know how to tell me if the version Open Source of
WebORB PHP
   goes supports Remote SharedObject?
  
   1) I like indications of solutions FREE for Remote SharedObject.
   2) Are there many requirements for installation/configuration in
   Hosting? Is the hosting necessary to make available or do i just can
   unzip in a folder in Hosting?
  
   It would only like that empurranzinho in search of the road of the
   stones! rs... =D
  
   Excuse English's mistakes !
  
   Obs: I work with PHP.
  
   []'s
   Carlos H.
  
 
 





[flexcoders] How to have a default CSS applied to a custom component while in the IDE???

2007-05-22 Thread tjcox1969
Is there a way to tell the Flex IDE (Eclipse) to use a different
default stylesheet?

I am editing some custom components which do not explicitly import a
stylesheet - it uses the global CSS from the main application file. 
So things look fine at runtime in the browser, but when I am editing a
custom component, it has NO style...well...it has the default
green/gray style that Flex uses by default.  I would like to be able
to see what my custom components look like while I am editing them. 
This is a huge issue when you use CSS to position your form
fieldsif your custom component cannot find the CSS at edit time,
the Design mode is unintelligible...all controls are munged in the
upper lefthand corner of the the designer.  It looks good at runtime
when the global CSS is applied...but not in the IDE.  What I have bee
doing now, is manually inserting a CSS declaration at edit time and
then commenting it out when I run it.  Very cumbersome.

Thanks for any info...





[flexcoders] Unable to resolve a class for ResourceBundle

2007-05-22 Thread Praveen Saxena

  Hi,
 I am getting Unable to resolve a class for ResourceBundle
  Error while reading from property file.
  Is there any solution.
  -Regards
  Praveen



RE: [flexcoders] Re: Question about inline ItemRenderers

2007-05-22 Thread Tracy Spratt
The HBox should center the radio button if you have its width=100% and
horizontalAlign=center.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mssairam
Sent: Tuesday, May 22, 2007 2:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question about inline ItemRenderers

 

Maybe I am not making it clear -- let me try again.

The itemRenderer renders one radiobutton. For each line of the
datagrid, there is one radiobutton. All these radiobuttons need to be
in one group. The following works fine except that the radiobuttons
are not centered in the DataGrid cell. All I am trying to do is
getting it centered. Putting it in a HBox isn't cutting it.

Here is the code that works but the radiobuttons are squished to the
left.
mx:DataGrid id=resultGrid dataProvider={results}
mx:columns
mx:DataGridColumn dataField=itemType width=12
mx:itemRenderer
mx:Component
mx:RadioButton groupName=sameGroup
value={data.service} selected=true/
/mx:Component
/mx:itemRenderer
mx:DataGridColumn
/mx:columns
/mx:DataGrid

thanks

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Flexing... [EMAIL PROTECTED] wrote:

 It is not to do with defining RadioButton inside HBox.
 Where have you defined your RadioButtonGroup ?
 Inside the mx:HBox tag or outside.
 
 I think you need to define it inside mx:HBox. Try the following.
 
  mx:itemRenderer
  mx:Component
  mx:HBox paddingLeft=5 paddingRight=5 verticalAlign=middle
  mx:RadioButtonGroup id=sameGroup/ 
  mx:RadioButton groupName=sameGroup value={data.service}
  selected=true/
  mx:RadioButton groupName=sameGroup value={data.service}
  /
  /mx:HBox
  /mx:Component
  /mx:itemRenderer
 
 
 On May 22, 2007, at 7:11 PM, mssairam wrote:
 
  Hi,
 
  I am trying to populate a datagrid column with a radio button. I
  have code like the following which works -- but I am not able to
  center the radiobutton on the column. Here is a snippet indicating
  what I am trying to do.
 
  mx:DataGrid id=resultGrid dataProvider={results}
  mx:columns
  mx:DataGridColumn dataField=itemType width=12
  mx:itemRenderer
  mx:Component
  mx:RadioButton groupName=sameGroup
  value={data.service} selected=true/
  /mx:Component
  /mx:itemRenderer
  mx:DataGridColumn
  /mx:columns
  /mx:DataGrid
 
  I am able to get the centering done by wrapping the radiobutton
  above in a HBox -- kind of like this ...
 
  mx:itemRenderer
  mx:Component
  mx:HBox paddingLeft=5 paddingRight=5 verticalAlign=middle
  mx:RadioButton groupName=sameGroup value={data.service}
  selected=true/
  /mx:HBox
  /mx:Component
  /mx:itemRenderer
 
  However, when i do that, the radio buttons behave
  like they belong to different groups -- so selecting one doesn't
  unselect the previous selected one.
 
  Thanks for your help!
 
 
 


 



[flexcoders] Web Service only sending one item inside an ArrayCollection

2007-05-22 Thread hawkfan.sixty
When I send an ArrayCollection through a Web Service it only sends the
first item inside that collection.

I am using Cairngorm for my project so I check the value of the object
right before I send it and the attributes that are ArrayCollections
have the multiple values but when I catch the request that is
submitted to my server it only has one item inside of the collections.

So this is what my call looks like inside my Cairngorm Delegate
var call : Object = service.runCalc( person);

And person is a Person object that has an attribute of dependents
which is an ArrayCollection of Dependent objects.

A quick response would be great, greatly appreciated.

Thanks



[flexcoders] Embedding Verdana font may shadow error

2007-05-22 Thread Douglas McCarroll
Hi All,

I'm trying to embed Verdana. I'm doing this because it seems to be the 
default font for UIComponents and I'd like to be able to rotate some 
components without their text disappearing.

When I add this to my CSS style sheet...:

@font-face {
src: local( Verdana );
fontFamily: Verdana;
}   

...it works, at least on some components, but I get a warning that says:

the embedded font 'Verdana' may shadow a device font of the same name.  
Use fontName to alias the font to a different name

It seems that the compiler is concerned that I'll be colliding with the 
device font version of Verdana that will be in many (all?) of my users' 
computers.

I'd like my app to ignore the device font and use the embedded font.

I've searched the net fairly thoroughly but have found no guidance on 
how to follow the rather cryptic suggestion in the second sentence of 
the warning.

Any ideas?

Thanks in advance!


Douglas


-

Douglas McCarroll
Flex Developer
http://www.brightworks.com
617.459.3840

-





[flexcoders] Re: How to special characters in resource bundle .properties file

2007-05-22 Thread Brian Morearty

I learned the answer elsewhere so I thought I would post it for
posterity and the goodwill of humankind.

You have to escape the backslash itself. To escape a backslash, use two
backslashes: \\

Examples:

label=this is in \\quotes\\
label=this is on a \\nnew line

- Brian Morearty
   Intuit


--- In flexcoders@yahoogroups.com, Brian Morearty [EMAIL PROTECTED]
wrote:


 Hi,

 Does anyone know how to put special characters such as a line feed or
 double quotation mark in a resource bundle .properties file?

 I've tried various methods of escaping the special characters. Nothing
 works.

 The following all result in compile-time errors in the generated code:

 label=this is in quotes
 label=this is in \u0022quotes\u0022
 label=this is in \quotes\
 label=this is on a \nnew line
 label=this is on a \u000anew line

 The following don't result in a compiler error, but the text is shown
 literally in the UI (no special character translation if I set the UI
 element's text property instead of its htmlText property):

 label=this is in quot;quotesquot;
 label=this is on a #13;new line

 Any ideas?

 - Brian Morearty
 Intuit





RE: [flexcoders] DateChooser X and Y?

2007-05-22 Thread Lincoln Mitchell
You are right - I missed the Show Inherited Public Properties .

Can this be determined if accessed via the DateField?

I have been looking at dateChooserStyleName as below but this didn't work:

 

?xml version=1.0 encoding=utf-8?

mx:ApolloApplication layout=absolute
xmlns:mx=http://www.adobe.com/2006/mxml;

. mx:Style

.myDateChooser{x:200;y:200}

  /mx:Style

   mx:DateField dateChooserStyleName=myDateChooser/

/mx:ApolloApplication

 

Linc

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Wednesday, 23 May 2007 12:35 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DateChooser X and Y?

 

In what sense do these appear to be missing? I see them in the Language
Reference as inherited properties.

 

- Gordon

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lincoln Mitchell
Sent: Tuesday, May 22, 2007 4:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DateChooser X and Y?

There appears to be no x and y attributes for this component but is it still
possible to define exactly where the DateChooser will appear?

Linc

 



[flexcoders] Re: Question about inline ItemRenderers

2007-05-22 Thread mssairam
Thanks. I tried that as well -- while it centers the radio buttons, 
the buttons dont function as a group.

I tried some variations using parentApplication, parent and so on -- 
but cannot get it to work. I think i will just reduce the width of 
the column and bank on no-one noticing that the radiobutton is not 
centered :)

thanks

--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] 
wrote:

 The HBox should center the radio button if you have its 
width=100% and
 horizontalAlign=center.
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of mssairam
 Sent: Tuesday, May 22, 2007 2:28 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Question about inline ItemRenderers
 
  
 
 Maybe I am not making it clear -- let me try again.
 
 The itemRenderer renders one radiobutton. For each line of the
 datagrid, there is one radiobutton. All these radiobuttons need to 
be
 in one group. The following works fine except that the radiobuttons
 are not centered in the DataGrid cell. All I am trying to do is
 getting it centered. Putting it in a HBox isn't cutting it.
 
 Here is the code that works but the radiobuttons are squished to 
the
 left.
 mx:DataGrid id=resultGrid dataProvider={results}
 mx:columns
 mx:DataGridColumn dataField=itemType width=12
 mx:itemRenderer
 mx:Component
 mx:RadioButton groupName=sameGroup
 value={data.service} selected=true/
 /mx:Component
 /mx:itemRenderer
 mx:DataGridColumn
 /mx:columns
 /mx:DataGrid
 
 thanks
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Flexing... eaiesb@ wrote:
 
  It is not to do with defining RadioButton inside HBox.
  Where have you defined your RadioButtonGroup ?
  Inside the mx:HBox tag or outside.
  
  I think you need to define it inside mx:HBox. Try the following.
  
   mx:itemRenderer
   mx:Component
   mx:HBox paddingLeft=5 paddingRight=5 
verticalAlign=middle
   mx:RadioButtonGroup id=sameGroup/ 
   mx:RadioButton groupName=sameGroup value={data.service}
   selected=true/
   mx:RadioButton groupName=sameGroup value={data.service}
   /
   /mx:HBox
   /mx:Component
   /mx:itemRenderer
  
  
  On May 22, 2007, at 7:11 PM, mssairam wrote:
  
   Hi,
  
   I am trying to populate a datagrid column with a radio button. 
I
   have code like the following which works -- but I am not able 
to
   center the radiobutton on the column. Here is a snippet 
indicating
   what I am trying to do.
  
   mx:DataGrid id=resultGrid dataProvider={results}
   mx:columns
   mx:DataGridColumn dataField=itemType width=12
   mx:itemRenderer
   mx:Component
   mx:RadioButton groupName=sameGroup
   value={data.service} selected=true/
   /mx:Component
   /mx:itemRenderer
   mx:DataGridColumn
   /mx:columns
   /mx:DataGrid
  
   I am able to get the centering done by wrapping the radiobutton
   above in a HBox -- kind of like this ...
  
   mx:itemRenderer
   mx:Component
   mx:HBox paddingLeft=5 paddingRight=5 
verticalAlign=middle
   mx:RadioButton groupName=sameGroup value={data.service}
   selected=true/
   /mx:HBox
   /mx:Component
   /mx:itemRenderer
  
   However, when i do that, the radio buttons behave
   like they belong to different groups -- so selecting one 
doesn't
   unselect the previous selected one.
  
   Thanks for your help!
  
  
  
 





Re: [flexcoders] Embedding Verdana font may shadow error

2007-05-22 Thread Jon Bradley

First thought is to rename your 'family' to something else:

@font-face {
src: local(Verdana) ;
fontFamily: VerdanaEmbed;
unicodeRange:
   U+0041-U+005A, /* Upper-Case [A..Z] */
   U+0061-U+007A, /* Lower-Case a-z */
   U+0030-U+0039, /* Numbers [0..9] */
   U+002E-U+002E; /* Period [.] */
}

Is that what you mean? The fontName part is when you embed a font  
through SWF font embedding:


[Embed(source=verdana.swf, fontName=VerdanaEmbed)]
public static var VerdanaNormal:Class;

Least, that's all i can think of. Hope that helps out somewhat.

best,

jon


On May 22, 2007, at 4:26 PM, Douglas McCarroll wrote:

the embedded font 'Verdana' may shadow a device font of the same  
name.

Use fontName to alias the font to a different name

It seems that the compiler is concerned that I'll be colliding with  
the
device font version of Verdana that will be in many (all?) of my  
users'

computers.

I'd like my app to ignore the device font and use the embedded font.

I've searched the net fairly thoroughly but have found no guidance on
how to follow the rather cryptic suggestion in the second sentence of
the warning.






Re: [flexcoders] Embedding Verdana font may shadow error

2007-05-22 Thread Daniel Freiman

I got this warning a long time ago.  Basically, it does want you to pick an
alias for the fontFamily property so it doesn't get confused.  (livedocs:
http://livedocs.adobe.com/flex/201/html/fonts_070_04.html)

There's a reason this is a warning and not an error.  Your program will
work, but it may start to cause problems if you do some advanced things such
as call methods of the Font class. Additionally, there may be some
components that automatically chose whether or not to use embeded fonts and
you may have to manually set these components to use embeded fonts (usually
there's a style and in TextFields there is a property).  So this is one of
those, proceed at your own risk times.  Just know that it is a bad and
unsafe practice.

Dan Freiman
nondocs http://nondocs.blogspot.com


On 5/22/07, Douglas McCarroll [EMAIL PROTECTED]
wrote:


  Hi All,

I'm trying to embed Verdana. I'm doing this because it seems to be the
default font for UIComponents and I'd like to be able to rotate some
components without their text disappearing.

When I add this to my CSS style sheet...:

@font-face {
src: local( Verdana );
fontFamily: Verdana;
}

...it works, at least on some components, but I get a warning that says:

the embedded font 'Verdana' may shadow a device font of the same name.
Use fontName to alias the font to a different name

It seems that the compiler is concerned that I'll be colliding with the
device font version of Verdana that will be in many (all?) of my users'
computers.

I'd like my app to ignore the device font and use the embedded font.

I've searched the net fairly thoroughly but have found no guidance on
how to follow the rather cryptic suggestion in the second sentence of
the warning.

Any ideas?

Thanks in advance!

Douglas

-

Douglas McCarroll
Flex Developer
http://www.brightworks.com
617.459.3840

-

 



[flexcoders] 100% wide VBox causing space on left to appear

2007-05-22 Thread Lincoln Mitchell
In the following example unwanted space appears on the left of the screen
which then causes the horizontal scroll bar to appear. It seems to be caused
by having width=100% on the VBox. Is this a bug?

Example:
?xml version=1.0 encoding=utf-8?
mx:ApolloApplication xmlns:mx=http://www.adobe.com/2006/mxml;
  backgroundColor=green paddingLeft=0 paddingTop=0 paddingRight=0
  paddingBottom=0
  mx:VBox width=100% backgroundColor=red
mx:TextInput width=100 height=600/
  /mx:VBox
/mx:ApolloApplication

Any help appreciated.

Linc




Re: [flexcoders] Embedding Verdana font may shadow error

2007-05-22 Thread Douglas McCarroll
Jon and Dan,

Thanks much. Very helpful.

So when the warning says fontName it really means fontFamily, at 
least in this case. (Snort!)

So I changed my fontFamily in the CSS to VerdanaEmbed, as Jon suggested, 
and set my components fontFamily to VerdanaEmbed, and it works, except 
for one more minor detail. One of the components I'm rotating is a Panel 
and it seems to want a bold font. So I need to embed both normal and 
bold weights. My CSS now looks like this:

@font-face {
src: local( Verdana );
fontFamily: VerdanaEmbed;
}   

@font-face {
src: local( Verdana );
fontWeight: bold;
fontFamily: VerdanaEmbed;
}

And it works.  :)  Thanks!

Douglas




Jon Bradley wrote:
 
  First thought is to rename your 'family' to something else:
  @font-face {
  src: local(Verdana) ;
  fontFamily: VerdanaEmbed;
 
  Is that what you mean? The fontName part is when you embed a font 
through SWF font embedding:
 


Daniel Freiman wrote:
 
  I got this warning a long time ago.  Basically, it does want you to 
pick an alias for the fontFamily property so it doesn't get confused.  
(livedocs: http://livedocs.adobe.com/flex/201/html/fonts_070_04.html) 
 
  There's a reason this is a warning and not an error.  Your program 
will work, but it may start to cause problems if you do some advanced 
things such as call methods of the Font class. Additionally, there may 
be some components that automatically chose whether or not to use 
embeded fonts and you may have to manually set these components to use 
embeded fonts (usually there's a style and in TextFields there is a 
property).  So this is one of those, proceed at your own risk times.  
Just know that it is a bad and unsafe practice.
 
  Dan Freiman
  nondocs







 On May 22, 2007, at 4:26 PM, Douglas McCarroll wrote:

 the embedded font 'Verdana' may shadow a device font of the same name.
 Use fontName to alias the font to a different name

 It seems that the compiler is concerned that I'll be colliding with the
 device font version of Verdana that will be in many (all?) of my users'
 computers.

 I'd like my app to ignore the device font and use the embedded font.

 I've searched the net fairly thoroughly but have found no guidance on
 how to follow the rather cryptic suggestion in the second sentence of
 the warning.



  



RE: [flexcoders] DateChooser X and Y?

2007-05-22 Thread Gordon Smith
x and y are properties, not styles.
 
A DateField pops up its DateChooser in a location relative to the
DateField. Are you trying to make it pop up in some location you
specify?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lincoln Mitchell
Sent: Tuesday, May 22, 2007 1:50 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DateChooser X and Y?



You are right - I missed the Show Inherited Public Properties .

Can this be determined if accessed via the DateField?

I have been looking at dateChooserStyleName as below but this didn't
work:

?xml version=1.0 encoding=utf-8?

mx:ApolloApplication layout=absolute
xmlns:mx=http://www.adobe.com/2006/mxml;

. mx:Style

.myDateChooser{x:200;y:200}

  /mx:Style

   mx:DateField dateChooserStyleName=myDateChooser/

/mx:ApolloApplication

Linc



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Wednesday, 23 May 2007 12:35 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DateChooser X and Y?

In what sense do these appear to be missing? I see them in the Language
Reference as inherited properties.

- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lincoln Mitchell
Sent: Tuesday, May 22, 2007 4:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DateChooser X and Y?

There appears to be no x and y attributes for this component but is it
still
possible to define exactly where the DateChooser will appear?

Linc

 


RE: [flexcoders] DateChooser X and Y?

2007-05-22 Thread Lincoln Mitchell
yes

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Wednesday, 23 May 2007 6:07 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DateChooser X and Y?

 

x and y are properties, not styles.

 

A DateField pops up its DateChooser in a location relative to the DateField.
Are you trying to make it pop up in some location you specify?

 

- Gordon

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lincoln Mitchell
Sent: Tuesday, May 22, 2007 1:50 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DateChooser X and Y?

You are right - I missed the Show Inherited Public Properties .

Can this be determined if accessed via the DateField?

I have been looking at dateChooserStyleName as below but this didn't work:

?xml version=1.0 encoding=utf-8?

mx:ApolloApplication layout=absolute
xmlns:mx=http://www.adobe.com/2006/mxml;

. mx:Style

.myDateChooser{x:200;y:200}

  /mx:Style

   mx:DateField dateChooserStyleName=myDateChooser/

/mx:ApolloApplication

Linc

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Wednesday, 23 May 2007 12:35 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DateChooser X and Y?

In what sense do these appear to be missing? I see them in the Language
Reference as inherited properties.

- Gordon

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lincoln Mitchell
Sent: Tuesday, May 22, 2007 4:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DateChooser X and Y?

There appears to be no x and y attributes for this component but is it still
possible to define exactly where the DateChooser will appear?

Linc

 



[flexcoders] Modules + Tab Navigators = Error

2007-05-22 Thread boy_trike
Everything works FINE until I load a new module.  (Even after I go back to the 
original 
module, I get the error).  Any component with a Tab Container or Accordian 
throws the 
following error when I load the component:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at mx.managers::HistoryManager$/register()
at mx.containers::ViewStack/::addedHandler()
at flash.display::DisplayObjectContainer/addChildAt()
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::
$addChildAt()
at mx.core::Container/addChildAt()
at mx.core::Container/addChild()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at mx.core::UIComponent/initialize()


I have turned off History manager in the compiler page of the project 
properties.  That 
does not help any.

Any suggestions?

Thanks
Bruce



  1   2   >