Re: [flexcoders] XML, PHP and Flex

2005-07-03 Thread Manu Juyal
hi
Thanks a lot..
its working perfect now...

--Manu

On 7/2/05, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi,
 
 You are calling popCustomer(..) function just after invoke
 HTTPService.send(). This wouldn't work.
 
 HTTPService calls are asynchronous, that means you won't get result
 immediately. Request is sent to server, server processes data and
 returns back to client. This entire process takes some time. To be very
 safe, populate the UI in result handler of HTTPService, result handler
 would be called as soon as data is received in client.
 
 See the modified code below:
 
 mx:Script
 ![CDATA[
 
 var customerData = new Object;
 
 function queryCustomer(){
 if(radsession.selected == true){
 queryBySession();
 
 }
 
 function queryBySession(){
   poster_srv.send({query_type:'querysession', sid:
 txtsession.text});
 }
 
 function popCustomer(customerData){ 
   posteradminstack.selectedChild = posterpanel;
   custlname.text = customerData.customer.customerfname;
  
   custlname.text = customerData.customer.customerlname;
   orderdate.text = customerData.customer.orderdate;
 }
 
 function faultHandler(faultstring, code){
 var ecode = faultstring+: +code
 mx.controls.Alert.show(ecode, fault);
 }
 ]]
 /mx:Script 
 
 mx:HTTPService id=poster_srv 
 url=http://localhost:8080/islab/poster.php; 
 fault=faultHandler(event.fault.faultstring, event.fault.faultcode)
 result=popCustomer(poster_srv.result)
 method=POST showBusyCursor=true useProxy=false /
 
 
 Hope that helps
 
 
 BTW! Please don't start a new thread, you could have continued
 discussion in same old thread. That's how we can avoid duplicate
 threads...
 
 -abdul
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of juyalmanu
 Sent: Saturday, July 02, 2005 5:31 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] XML, PHP and Flex
 
 Hi all,
 I am still stuck up with this. I am not sure if problem is with 
 Httpservices or viewstacks.
 
 I never worked with httpservices before. However after the 
 suggestions in response to my previous posting. I created this..
 
 mx:HTTPService id=poster_srv
 url=http://localhost:8080/islab/poster.php; 
   fault=faultHandler(event.fault.faultstring, 
 event.fault.faultcode)
   result=customerData=poster_srv.result
   method=POST showBusyCursor=true useProxy=false /
 
 
 after the data is retrieved it was to supposed to be displayed in 
 another view,(posteradminstack is the name of my ViewStack for the 
 application). Then the textinput boxes are populated in the 
 posterpanel. Following is the code for that
 
 function popCustomer(){ 
 posteradminstack.selectedChild = posterpanel;
 custlname.text = customerData.customer.customerfname;
 custlname.text = customerData.customer.customerlname;
 orderdate.text = customerData.customer.orderdate;}
 
 It is not populating the boxes. Everything on php side is fine.
 given below is code snippet
 
 mx:Script
 ![CDATA[
 
 var customerData = new Object;
 
 function queryCustomer(){
 if(radsession.selected == true){
 queryBySession();
 popCustomer();}
 }
 
 function queryBySession(){
 poster_srv.send({query_type:'querysession', sid:
 txtsession.text});
 }
 
 function popCustomer(){ 
 posteradminstack.selectedChild = posterpanel;
 custlname.text = customerData.customer.customerfname;
 custlname.text = customerData.customer.customerlname;
 orderdate.text = customerData.customer.orderdate;
 }
 
 function faultHandler(faultstring, code){
 var ecode = faultstring+: +code
 mx.controls.Alert.show(ecode, fault);
 }
 ]]
 /mx:Script 
 
 mx:HTTPService id=poster_srv 
 url=http://localhost:8080/islab/poster.php; 
 fault=faultHandler(event.fault.faultstring, event.fault.faultcode)
 result=customerData=poster_srv.result
 method=POST showBusyCursor=true useProxy=false /
 
 
 
 
 
 --
 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 
 
  Visit your group flexcoders on the web.
   
  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
   
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
   
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
 



--
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:

[flexcoders] File - flexcodersFAQ.txt

2005-07-03 Thread flexcoders

 Flexcoders Frequently Asked Questions
  Last Updated: 30th May 2005

 Contributors:

Matt Chotin, Steven Webster, Alistair McLeod, Tariq Ahmed, Jeff Tapper,
 Peter Farland, Abdul Qabiz, Tracy Spratt, Jesse Warden, Dan Harfleet,
  Manish Jethani, Dimitrios Gianninas


1. What is Flexcoders?
2. How does Flexcoders relate to the Macromedia Flex Forum on
   www.macromedia.com?
3. Who posts to Flexcoders?
4. Resources to check before asking a question
5. Guidelines for effective question-asking
6. FAQ


1. What is Flexcoders?

Flexcoders is a forum where developers can ask questions about Flex,
FlexBuilder, and Flex-related technologies (like Cairngorm, FlexUnit and
SynergyFLEX).  The community is made up of everyday Flex developers as
well as Macromedia employees. However, this is not an official
Macromedia-sponsored forum, it is actually moderated by the folks at
iteration::two, a consultancy responsible for authoring the book
Developing Rich Internet Applications with Macromedia Flex.


2. How does Flexcoders relate to the Macromedia Flex Forum on
   www.macromedia.com?

Both the Macromedia Flex Forum and Flexcoders provide help on issues
related to Flex, and neither is an official support mechanism.  Some
people monitor both forums, some only one.  It is up to you to decide
where you might have a better experience getting a question answered and
being able to subsequently help others.


3. Who posts to Flexcoders?

Everyone who has a question or an answer.  Many members of the Flex
development team read and respond to Flexcoders as well as other
Macromedia folks who monitor the community.

Some recurring Macromedia folks are:

David Mendels: EVP and GM, highest-level executive in charge of Flex.
Lucian Beebe: Sr. Product Manager, Flex. Matt Chotin, Manish Jethani,
Abdul Qabiz, Gordon Smith, Peter Farland and many more: Engineers on
Flex.

Active community members include:

Steven Webster (Technical Director at iteration::two and co-author of
Developing Rich Clients with Macromedia Flex), Alistair McLeod
(Development Director at iteration::two and co-author of Developing Rich
Clients with Macromedia Flex), Jesse Warden (JesterXL - Flash badass
playing with Flex), Tracy Spratt (long-time member, holder of all
knowledge related to 32K limits), Jeff Steiner (maintainer of
www.flexauthority.com), Tariq Ahmed (maintainer of www.cflex.net), Jimmy
Gianninas (long-time member, developer at Optimal Payments).

And so many more!


4. Resources to check before asking a question

The Flexcoders Mail Archive (better searching than YahooGroups):
http://www.mail-archive.com/flexcoders%40yahoogroups.com

http://www.cflex.net/showfaq.cfm
http://livedocs.macromedia.com/flex/15/asdocs_en/index.html
http://www.macromedia.com/go/flex15_java_livedocs
http://www.macromedia.com/cfusion/knowledgebase/index.cfm
http://www.cflex.net http://www.flexauthority.com
http://www.macromedia.com/devnet/flex http://coenraets.com
http://weblogs.macromedia.com/mxna/ http://www.google.com 

The Book Developing Rich Clients with Macromedia Flex (check your
favorite bookstore)



5. Guidelines to effective question-asking

Include a useful subject; this will help people find their own questions
and answers later.

Explain what you are trying to accomplish.

Explain the error (include compilation errors or a description of the
runtime behavior).

Be prepared to break your problem down into a simpler scenario in case
someone wants to try to debug the code themselves.  Remember, private
web services are inaccessible; you may need to create some dummy data to
emulate problems.

Phrases to avoid:

URGENT (we all have deadlines, no one is intentionally delaying a
response to you)

Please send code (this is very frustrating to read as it implies you
aren't interested in learning anything on your own.  Where code is
appropriate you can expect someone to provide it, but in many cases you
will learn more by doing it on your own with appropriate guidance.  It
may be that you're on a deadline and just want to finish, but many of
those who respond regularly would prefer to teach you to fish so that
you can answer your own questions next time and even help out others).


6. Mini-FAQ



Q: Can I mail Matt, Manish, Abdul, Pete, Gordon, iteration::two, or
anyone else for that matter off-line with my question?

A: Please don't!  If someone is capable of answering your question on-
list please believe that it will be done.  Everyone on the list has
full-time jobs doing their own work and often answer flexcoders on their
own time; mailing them off- list doesn’t endear you to them.  If no one
answers on-list in a reasonable amount of time (24 hours) you can try to
rephrase the question and perhaps include more detail (including a
version of the problem that someone can run without doing any setup on
their own 

[flexcoders] parseDateString bug ???

2005-07-03 Thread Shlomi Cohen
Title: Mercury Email Signature






Hi

i have the 
following code ,

mx:DateFormatter id="df" formatString="MM/DD/" 
/

Dumper.info("PARSING DATE-" + 
df.parseDateString("07/05/2005 11:00 AM"));


the result on 
Dumper screen is [INFO]: PARSING DATE-undefined instead of a 
valid date object.
it seems like 
what ever i do i always get the undefined .

i also sawhttp://livedocs.macromedia.com/flex/1/asdocs/mx/formatters/DateFormatter.htmlis this related ? cause 
i managed to get the format from df 
.


any 
ideashow to solve this?

thanks


Shlomi



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__



--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  










email_signature.gif
Description: GIF image


[flexcoders] Binding to Model in Application

2005-07-03 Thread JesterXL
I'm binding some CheckBox's to a Model in my Application.  The CheckBox' 
reside in a PopUp.  They reference the original model like so:

mx.core.Application.application.myModel.someProperty.

It works great, but I'm getting warnings saying that changes to all of my 
unknown properties won't trigger a change.  Is this the compiler just 
getting confused?

--JesterXL 




--
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/

* 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: Set/Get labelWidth in mx:Form

2005-07-03 Thread r_woess
Hi,

I tried this:

mx:Form id=dataForm
creationComplete=mx.core.Application.alert(dataForm.getStyle('labelWidth'));

But I get a MessageBox without the labelWith.

Reini

--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi,
 
 Use:
 
 formID.getStyle(labelWidth) 
 
 
 -abdul
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of r_woess
 Sent: Friday, July 01, 2005 3:17 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Set/Get labelWidth in mx:Form
 
 Hallo,
 
 I tried to get the labelWidth-Property in a mx:Form. I tried it
 directly with formID.labelWidth and with
 formID.getStyle(label-width). But I don't get any values.
 
 Does anybody know, how I can solve the problem?
 
 Best regards
 Reini
 
 
 
 
 --
 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

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

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

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




Re: [flexcoders] Sort arrows in DataGrid

2005-07-03 Thread Sean McKibben


All these things have been discussed in past. Please search the archiveswith appropriate keywords to find those threads.Maybe these things belong in the documentation? Maybe in the FAQ?Note: a search for "sortArrow" at the site you provided yielded no results (then again if I knew there was a property called sortArrow, I wouldn't have needed to ask the question). A search in my own (unfortunately incomplete) flexcoders archives for "sortArrow" revealed nothing, a search for "sort" revealed too many hits (217), "sort direction" revealed 7 hits, none of which answered my question.I really think you folks did a great job with flex in general, but I am too frequently frustrated by the documentation... or the lack thereof. My project's deadline is coming up way too fast, and the holes in the documentation cost me many hours each week!I'm just hoping things continue to improve... I know it is only version 1.5. Perhaps I'm just used to Microsoft's excellent documentation for .net 1.1. Thank god you guys aren't Microsoft. Can you be more like Microsoft? (I know, I'm never satisfied ;)SeanOn Jul 2, 2005, at 1:09 PM, Abdul Qabiz wrote:  Hi,  You can get the reference of sort arrow using: dataGridInstance.sortArrow  To hide arrow:   dataGridInstance.sortArrow._visible = false;  To show arrow:   dataGridInstance.sortArrow._visible = true;  You can use dataGridInstance.placeSortArrow(..) method to show arrow on column that is the current sortIndex.   To sort a column( or set the sortIndex) you can call:  dataGridInstance.sortItemsBy(fieldName, order) :  VoidTo determine current sorting order,  use dataGridInstance.sortDirection property. It returns either 'DESC' or 'ASC  All these things have been discussed in past. Please search the archives with appropriate keywords to find those threads.  http://www.mail-archive.com/flexcoders%40yahoogroups.com-abdul  -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sean McKibben Sent: Saturday, July 02, 2005 11:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sort arrows in DataGrid  Is there a way to set the sortIndex of a datagrid manually, or to   manually clear the sort arrow? I have a DataGrid which allows things   to be dropped in to it at arbitrary locations, which would change it   to unsorted, but I can't figure out how to remove the sort arrow in   the header to reflect the unsorted state.  Also, is there a way to determine what the current sort order of a   column is? It seems like each column keeps its own sort direction   separately, so I've had luck just keeping my own array for sort order   flags, but there is a chance that the two separate records will get   out of parity, given the above case.  Keep in mind that I'm doing entirely custom sorting of the datagrid's   provider on the headerRelease event. (by setting   sortableColumns="true" on the grid, and sortable="true" and   sortOnHeaderRelease="false" on the columns)  Thanks, Sean -- 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  Visit your group "flexcoders" on the web.    To unsubscribe from this group, send an email to: [EMAIL PROTECTED]    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  








Re: [flexcoders] parseDateString bug ???

2005-07-03 Thread Jeff Tapper
parseDateString is a static method.  Try this instead:
Dumper.info(PARSING DATE- + 
mx.formatters.DateFormatter.parseDateString(07/05/2005 11:00 AM));

At 01:32 PM 7/3/2005, Shlomi Cohen wrote:

Hi

i have the following code ,

mx:DateFormatter id=df formatString=MM/DD/ /

Dumper.info(PARSING DATE- + df.parseDateString(07/05/2005 11:00 AM));


the result on Dumper screen is [INFO]: PARSING DATE-undefined instead of a 
valid date object.
it seems like what ever i do i always get the undefined .

i also saw 
http://livedocs.macromedia.com/flex/1/asdocs/mx/formatters/DateFormatter.htmlhttp://livedocs.macromedia.com/flex/1/asdocs/mx/formatters/DateFormatter.html
 
is this related ?  cause i managed to get the format from df  .


any ideas how to solve this ?

thanks


Shlomi


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__


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


? LSpots keywords ? ? HM ADS ?

--
YAHOO! GROUPS LINKS

*  Visit your group 
 http://groups.yahoo.com/group/flexcodersflexcoders on the web.
*
*  To unsubscribe from this group, send an email to:
* 
 mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 

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


--



--
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/

* 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: Binding to Model in Application

2005-07-03 Thread Andrew Spaulding
Hi Jesse,

Try passing a reference to your application to the popup window, as an
initialization parameter. This should hopefully eliminate the warning.

//code in your popup window
mx:Script
  public var app;
/mx:Script

//your popup window method
import mx.managers.PopIpManager;

function showPopUp():Void
{
   var popup = PopUpManager.createPopUp( _root, myWindow, true,
{app:mx.core.Application.application}, true );
   popup.centerPopUp( MovieClip( mx.core.Application.application ) );
}

nb: I haven't tried this to see if it removes the warning, it is
merely a suggestion ;)

cheers,

Andrew
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:
 I'm binding some CheckBox's to a Model in my Application.  The
CheckBox' 
 reside in a PopUp.  They reference the original model like so:
 
 mx.core.Application.application.myModel.someProperty.
 
 It works great, but I'm getting warnings saying that changes to all
of my 
 unknown properties won't trigger a change.  Is this the compiler just 
 getting confused?
 
 --JesterXL





--
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/

* 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] Loader + swf doesn't scaleContent

2005-07-03 Thread Clint Modien



I'm creating a Loader like so:

var initObj = {x:0, height:22, scaleContent:true}
createClassObject(Loader, iconLoader, 301, initObj);

then i set the source of iconLoader like so:

iconLoader.source = http://the source of the attached swf

i need the height to be 22 px

when it loads... it's 4x that... 

help?





--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









castor.swf
Description: application/shockwave-flash


Re: [flexcoders] Binding to Model in Application

2005-07-03 Thread Clint Modien



I'm pretty sure the bindings don't get created for anything past 2nd level nested properties... 

obj.var --- binding to this would work

obj.var.nestedVar  binding to this wouldn't work

as a workaround.. 

try creating a variable in your popup window and set your bindings to that 

then set the var in the initialization object for your popup window (or at any other point for that matter because it's bound)


On 7/3/05, JesterXL [EMAIL PROTECTED] wrote:
I'm binding some CheckBox's to a Model in my Application.The CheckBox'reside in a PopUp.They reference the original model like so:mx.core.Application.application.myModel.someProperty.It works great, but I'm getting warnings saying that changes to all of my
unknown properties won't trigger a change.Is this the compiler justgetting confused?--JesterXL--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/




--
Flexcoders 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Loader + swf doesn't scaleContent

2005-07-03 Thread Andrew Spaulding
In the swf you are loading try placing the following in a script block
and see if it makes a difference.

function getPreferredHeight() : Number
{
   return 22;
}

Refer to this post for more information on sizing swf's in the loader
control.

http://www.flexdaddy.info/2005/02/21/sizing-apps-within-the-loader-control/

Andrew
www.flexdaddy.info


--- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote:
 I'm creating a Loader like so:
 
 var initObj = {x:0, height:22, scaleContent:true}
 createClassObject(Loader, iconLoader, 301, initObj);
 
 then i set the source of iconLoader like so:
 
 iconLoader.source = http://the source of the attached swf
 
 i need the height to be 22 px
 
 when it loads... it's 4x that... 
 
 help?




--
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/

* 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: Loader + swf doesn't scaleContent

2005-07-03 Thread Clint Modien




ok... i tried setting up the newly loaded swf (after it loads) with the function and it didn't work

loader.content.getPreferredHeight = function()
{
 trace(getting called); // this never gets called
 return 22;
}

i also tried...

loader.content.preferredHeight = 22;

when i trace out the loader.content var i do actually get a variable... something something .contentHolder

so i'm assuming contentHolder is the ref to my newly loaded swf...

i'm just not sure how to set the prefferedHeight on it dynamically...

any ideas?

On 7/3/05, Andrew Spaulding [EMAIL PROTECTED] wrote:
In the swf you are loading try placing the following in a script blockand see if it makes a difference.function getPreferredHeight() : Number{ return 22;}Refer to this post for more information on sizing swf's in the loader
control.http://www.flexdaddy.info/2005/02/21/sizing-apps-within-the-loader-control/Andrew
www.flexdaddy.info--- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote: I'm creating a Loader like so: var initObj = {x:0, height:22, scaleContent:true}
 createClassObject(Loader, iconLoader, 301, initObj); then i set the source of iconLoader like so: iconLoader.source = http://the source of the attached swf
 i need the height to be 22 px when it loads... it's 4x that... help?--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/




--
Flexcoders 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Re: Loader + swf doesn't scaleContent

2005-07-03 Thread Clint Modien



I should add that i don't have access to the swf that i load.

So i can't go into the .fla and change things.
On 7/3/05, Clint Modien [EMAIL PROTECTED] wrote:

ok... i tried setting up the newly loaded swf (after it loads) with the function and it didn't work

loader.content.getPreferredHeight = function()
{
 trace(getting called); // this never gets called
 return 22;
}

i also tried...

loader.content.preferredHeight = 22;

when i trace out the loader.content var i do actually get a variable... something something .contentHolder

so i'm assuming contentHolder is the ref to my newly loaded swf...

i'm just not sure how to set the prefferedHeight on it dynamically...

any ideas?

On 7/3/05, Andrew Spaulding [EMAIL PROTECTED]
 wrote:
In the swf you are loading try placing the following in a script blockand see if it makes a difference.function getPreferredHeight() : Number{ return 22;}Refer to this post for more information on sizing swf's in the loader
control.http://www.flexdaddy.info/2005/02/21/sizing-apps-within-the-loader-control/
Andrew
www.flexdaddy.info--- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote:
 I'm creating a Loader like so: var initObj = {x:0, height:22, scaleContent:true}
 createClassObject(Loader, iconLoader, 301, initObj); then i set the source of iconLoader like so: iconLoader.source = 
http://the source of the attached swf
 i need the height to be 22 px when it loads... it's 4x that... help?--Flexcoders Mailing ListFAQ: 

http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/






--
Flexcoders 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Loader + swf doesn't scaleContent

2005-07-03 Thread Andrew Spaulding
Tough call. Would be nice if it was another flex app you were loading
so that you could jump in and add the appropriate AS code :p

umm well, im really not too sure ... but you'll definately have to
tell the loader to resize the app somehow.

Try taking a look at this FlashPaperLoader (found this in the
flexcoders archives). It may help with sizing the swf.

Best,

Andrew
www.flexdaddy.info


--- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote:
 I should add that i don't have access to the swf that i load.
 
 So i can't go into the .fla and change things.
 
 
 On 7/3/05, Clint Modien [EMAIL PROTECTED] wrote:
  
  
  ok... i tried setting up the newly loaded swf (after it loads)
with the 
  function and it didn't work
  
  loader.content.getPreferredHeight = function()
  {
  trace(getting called); // this never gets called
  return 22;
  }
  
  i also tried...
  
  loader.content.preferredHeight = 22;
  
  when i trace out the loader.content var i do actually get a
variable... 
  something something .contentHolder
  
  so i'm assuming contentHolder is the ref to my newly loaded swf...
  
  i'm just not sure how to set the prefferedHeight on it dynamically...
  
  any ideas?
  
  
  
  On 7/3/05, Andrew Spaulding [EMAIL PROTECTED] wrote:
   
   In the swf you are loading try placing the following in a script
block
   and see if it makes a difference.
   
   function getPreferredHeight() : Number
   {
   return 22;
   }
   
   Refer to this post for more information on sizing swf's in the
loader 
   control.
   
   
  
http://www.flexdaddy.info/2005/02/21/sizing-apps-within-the-loader-control/
   
   Andrew
   www.flexdaddy.info http://www.flexdaddy.info
   
   
   --- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED]
wrote:
I'm creating a Loader like so:
   
var initObj = {x:0, height:22, scaleContent:true} 
createClassObject(Loader, iconLoader, 301, initObj);
   
then i set the source of iconLoader like so:
   
iconLoader.source = http://the source of the attached swf 
   
i need the height to be 22 px
   
when it loads... it's 4x that...
   
help?
   
   
   
   
   --
   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

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

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

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




[flexcoders] Re: Introducing your own Asset in Skins (SWC)

2005-07-03 Thread Scott Barnes
Nevermind, figured out how:

FYI: On how

If you use:

 [Embed(symbol=YourPanelAssets)]  // YourPanelAssets is inside your SWC file
var CustomPanelAssetsSymbol:String;

inside your class {} it will bring in all assets you require. I had
tried this on singular assets in that:

 [Embed(symbol=MBContentBackground)] 
var MBContentBackgroundSymbol:String;

Which kind of worked, but basically it wouldn't associate the CLASS
witht he Symbol (ie registerObjectClass()

But if i put that MovieClip(s) inside a AssetsContainer it then
works? (which makes sense as when you export to SWC it compiles as
expected)

Sorry to spam :)





On 7/4/05, Scott Barnes [EMAIL PROTECTED] wrote:
 I'm trying to figure out how i can add in my own Symbol into the
 skinning process.
 
 I've basically extended the mx:Panel container to suite my own
 specific style, majority of it works if i utilise known symbol
 identifiers (ie TitleBackground) but if I try and attachMovie() a
 custom one inside thine mb:Panel, nothing happens! ie:
 
 mx:Panel
 ---
 function createChildren():Void {
 this.attachMovie(MBContentBackgroundSymbol, background_mc,
 this.getNextHighestDepth());
 super.createChildren();
 }
 
 Now I had assumed that if you package up a SWC (theme) into one file,
 then using the theme attribute it would include all assets which are
 within that SWC - yet it doesn't, it seems as if it goes through a
 list of known assets only, and import those and ignore all others
 inside that SWC? (even though they via IDE have been marked for
 import)
 
 i've checked the linkage properties (Export for ActionScript, Export
 in first frame) and nothing.
 
 The only way I could introduce the assets was to put it on the
 ApplicationBackground asset (figured it gets loaded once per
 application) and do an internal process which basically unloadMovie on
 custom assets
 
 Question is, did i miss some obsecure process in which this can be
 done? is it a known bug? or in fact a bug? working as intended?
 
 eg:
 -- ApplicationBackground Symbol  - frame1 --
 MBContentBackground.unloadMovie();
 OtherCustomComponentContainers.unloadMovie();
 
 
 --
 Regards,
 Scott Barnes
 http://www.mossyblog.com
 http://www.flexcoder.com
 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Waiting for FLEX NCL to arrive)


--
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/

* 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] Binding to Model in Application

2005-07-03 Thread Matt Chotin










The warning is because we dont know
what the type of myModel is (because application is typed as Object). You can
avoid the warning by casting MyApp(mx.core.Application.application).myModel.someProperty
where MyApp is the type of your Application file.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien
Sent: Sunday, July 03, 2005 6:01
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Binding
to Model in Application





I'm pretty sure the
bindings don't get created for anything past 2nd level nested properties... 

obj.var --- binding to this would work

obj.var.nestedVar  binding to this wouldn't work

as a workaround.. 

try creating a variable in your popup window and set your bindings to that 

then set the var in the initialization object for your popup window (or at any
other point for that matter because it's bound)







On 7/3/05, JesterXL
[EMAIL PROTECTED]
wrote:

I'm binding some
CheckBox's to a Model in my Application.The CheckBox'
reside in a PopUp.They reference the original model like so:

mx.core.Application.application.myModel.someProperty.

It works great, but I'm getting warnings saying that changes to all of my 
unknown properties won't trigger a change.Is this the
compiler just
getting confused?

--JesterXL




--
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/

* 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Sort arrows in DataGrid

2005-07-03 Thread Abdul Qabiz
Hi,


 Maybe these things belong in the documentation? Maybe in the FAQ? 
 Note: a search for sortArrow at the site you provided yielded no
results (then again if I knew there was a property called sortArrow,
 I wouldn't have needed to ask the question). A search in my own
(unfortunately  incomplete) flexcoders archives for sortArrow revealed
 nothing, a search for sort revealed too many hits (217), sort
direction revealed 7 hits, none of which answered my question.
 
Please check livedocs
(http://livedocs.macromedia.com/flex/15/asdocs_en/). In DataGrid docs
you will find the sortArrow property. I think, FlexBuilder's
documentation also have Flex 1.5 ASDocs.
 
Sorry, you are having trouble. But most of these things have been
discussed in past, not sure why archives are not showing. But you can
also search yahoo groups archives.
 
We appreciate your feedback on our products and documentation. Please
feel free to send your feedback/suggestions to us through:
 
http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform
 
 
Thanks
 
-abdul
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sean McKibben
Sent: Monday, July 04, 2005 12:35 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Sort arrows in DataGrid




All these things have been discussed in past. Please search the
archives
with appropriate keywords to find those threads.


Maybe these things belong in the documentation? Maybe in the FAQ? 

Note: a search for sortArrow at the site you provided yielded no
results (then again if I knew there was a property called sortArrow, I
wouldn't have needed to ask the question). A search in my own
(unfortunately incomplete) flexcoders archives for sortArrow revealed
nothing, a search for sort revealed too many hits (217), sort
direction revealed 7 hits, none of which answered my question.

I really think you folks did a great job with flex in general, but I am
too frequently frustrated by the documentation... or the lack thereof.
My project's deadline is coming up way too fast, and the holes in the
documentation cost me many hours each week!

I'm just hoping things continue to improve... I know it is only version
1.5. Perhaps I'm just used to Microsoft's excellent documentation for
.net 1.1. Thank god you guys aren't Microsoft. Can you be more like
Microsoft? (I know, I'm never satisfied ;) 

Sean



On Jul 2, 2005, at 1:09 PM, Abdul Qabiz wrote:


Hi,

You can get the reference of sort arrow using:
dataGridInstance.sortArrow

To hide arrow: 

dataGridInstance.sortArrow._visible = false;

To show arrow: 

dataGridInstance.sortArrow._visible = true;

You can use dataGridInstance.placeSortArrow(..) method to show
arrow on
column that is the current sortIndex.


To sort a column( or set the sortIndex) you can call:

dataGridInstance.sortItemsBy(fieldName, order) :  Void 


To determine current sorting order,  use
dataGridInstance.sortDirection
property. It returns either 'DESC' or 'ASC

All these things have been discussed in past. Please search the
archives
with appropriate keywords to find those threads.

http://www.mail-archive.com/flexcoders%40yahoogroups.com 


-abdul





-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of Sean McKibben
Sent: Saturday, July 02, 2005 11:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sort arrows in DataGrid

Is there a way to set the sortIndex of a datagrid manually, or
to  
manually clear the sort arrow? I have a DataGrid which allows
things  
to be dropped in to it at arbitrary locations, which would
change it  
to unsorted, but I can't figure out how to remove the sort arrow
in  
the header to reflect the unsorted state.

Also, is there a way to determine what the current sort order of
a  
column is? It seems like each column keeps its own sort
direction  
separately, so I've had luck just keeping my own array for sort
order  
flags, but there is a chance that the two separate records will
get  
out of parity, given the above case.

Keep in mind that I'm doing entirely custom sorting of the
datagrid's  
provider on the headerRelease event. (by setting  
sortableColumns=true on the grid, and sortable=true and  
sortOnHeaderRelease=false on the columns)

Thanks,
Sean




--
Flexcoders Mailing List
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

RE: [flexcoders] Width of a label when setting font size

2005-07-03 Thread Markus Ansamaa
Title: Message





Thanks. Simple answer for a simple question.

Markus

  
  -Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
  Philippe MaegermanSent: 30. kesäkuuta 2005 10:33To: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Width of a 
  label when setting font size
  I managed to get it working this 
  way:
  mx:Label fontSize="14" htmlText="lt;font 
  size='14'gt;Not so long 
  textfieldlt;/fontgt;"/
  
  If 
  I'm not wrong, text formatting won't apply on htmlText fields, but specifying 
  a font size might help flash toanticipate the necessary 
  space.
  
  
  Philippe Maegerman
  
   
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Markus 
  AnsamaaSent: jeudi 30 juin 2005 9:03To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Width of a label 
  when setting font size
  I have a label, which value is set via htmlText property. 
  If I don't specifyany font size, label field is scaled to show the entire 
  text. However, if Iset font size, the text will be clipped. How do I tell 
  the label to takeinto account the font size when it's calculating its 
  preferred width?Here's a short demonstration of the 
  problem:?xml version="1.0" 
  encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" 
  mx:Label htmlText="Not so long text 
  field"/ mx:Label 
  htmlText="lt;font size='14'gt;Not so long 
  textfieldlt;/fontgt;"//mx:ApplicationMarkus 
  Ansamaa--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  --Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  --**STATEMENT 
  OF CONFIDENTIALITY** 
  This e-mail and any attached files are confidential 
  and intended solely for the use of the individual to whom it is addressed. If 
  you have received this email in error please send it back to the person that 
  sent it to you. Any views or opinions presented are solely those of author and 
  do not necessarily represent those the Emakina Company. Unauthorized 
  publication, use, dissemination, forwarding, printing or copying of this email 
  and its associated attachments is strictly prohibited.
  We also inform you that we have checked that this 
  message does not contain any virus but we decline any responsability in case 
  of any damage caused by an a non detected 
  virus.--


--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.