RE: [flexcoders] Extending visual custom components

2006-05-10 Thread Chris Reynolds





Chapter 2 of the Creating and Extending Flex Components 
followed by Chapter 7 perhaps?


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of mahuika1Sent: 
Thursday, May 04, 2006 9:57 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Extending visual 
custom components
I would like to create a custom component that displays 
visualcontrols such as labels etc then extend that to display other 
controlsbeneath the previous ones. Does any one know how I can do this 
orshould I just have many small components and reuse them in 
othercomponents? For example..I want to: create a Doc 
component which contains header and footerdetails. Then create DocA 
component which extends Doc to also displaytext between the header and 
footer. Or: create Header and Footer components. Then create DocA which 
usesHeader and Footer and displays text.Silly example but ideally I 
would like to extend the component which Ican't seem to 
do.





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  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] Component inheritance -how to add new children to an already inherited component

2006-03-31 Thread Chris Reynolds





You can do it withAS3 or mxml but maybe start with 
the latter. 

myLogin.mxml:

mx:TitleWindow xmlnsmx=:...
user password stuff here
/mx:TitleWindow

myExtraLogin.mxml:

my:Login xmlns:my="*" 
new stuff here.
/my:Login

As for lack of documentation, you obviously haven't found 
the zillion page pdfs. The forests don't stand a chance!


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of iuliubSent: 
Friday, March 31, 2006 9:12 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Component inheritance 
-how to add new children to an already inherited component
Okay...so the new Flex and AS3.0 are revolutionary.However 
the available documentation is scarce.Does anyone know how to add 
children to an inherited component? Let's say , for example , I have al 
login component, that inherits from a TitleWindow.Furthermore, I 
want a more complex login panel, that have several additional text fields, 
and I want it to inherit from my initial login component.Couldn't do 
it by now.Anyone, I would be grateful!Iuliu





--
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] AutoWidth/AutoHeight?

2005-03-21 Thread Chris Reynolds





Hi scott,

as a matter of course, I have subclassed all the tags. 

That way, when any defaults or behavioursirritate me, 
I have a place to fix them.



From: Scott Barnes 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 1:49 
PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
AutoWidth/AutoHeight?
I've found that i've been constantly typing width="100%" 
height="100%"and so on for containers within containers and what not, and 
havefound it to be tedious task.The thing is though, sometimes i 
want width="100%" but height to bedefault (ie whatever the height of the 
movieclip in question)but most of the time i've wanted 100% for both 
metrics for a typical container.To combat this i put together a buch of 
custom MXML components thatsimply use the MX built-in ones, but on 
initialize they simply setupsome default settings (margins, width/height 
etc)At the same time i have an attribute like autoHeight=false|true 
whichwill set the height to 100% or don't automatically define the 
heightso the code looks like:public var autoHeight:Boolean = 
true;function autoLayout() 
{ if(autoHeight) 
{ height = 
height || "100%"; 
}}then when i want to use an autoLayout container i would do 
this:inco:VBox//... Stuff 
here./inco:VBoxNow, does anyone else do something 
similiar? or have found it arepetitive task? have i overlooked an attribute 
setting somewhere - (Ihad thought of using CSS but thats not as agile as my 
autoLayoutcapabilities)-- Regards,Scott Barneshttp://www.mossyblog.comhttp://www.flexcoder.com (Coming 
Soon)







Yahoo! Groups Sponsor


  ADVERTISEMENT 












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 the Yahoo! Terms of Service.










Defining the startup class in FlexBuilder

2005-03-10 Thread Chris Reynolds



In 
Flexbuilder, when I press F6 or ALT/F6, it compiles and executes the file 
currently being edited.
As 
most of my time seems to be in editing components, is there anyway of specifying 
the executeable application root without switching to it in the edit 
window.


RE: [flexcoders] Flex Bug or Not?

2005-03-07 Thread Chris Reynolds



i've had something similar when using a mx:XML 
tagpointing toan external XML file. Flex seemed to want 
tocreate classes for all the different node types in the external 
file.


From: Igor Costa [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 5:13 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flex Bug or 
Not?
Did you used flex builder?On Mon, 07 Mar 2005 
00:52:30 -, gevgelija50 [EMAIL PROTECTED] wrote: 
  While attempting to run in Debug mode, I received the 
following message:  2 Errors found.  
Error generated version of _watcherSetup:260 Branch between 42711 and 
75485 around line 1157 exceeds 32K span. If possible, please refactor 
this component.  Error Branch between 42711 and 75485 
around line 1157 exceeds 32K span.  Any thoughts? 
 Thanks, Alex   Yahoo! Groups Links 
-- Igor 
Costawww.igorcosta.comwww.macromedia.com/go/team


RE: [flexcoders] datagrid does not display http data

2005-03-03 Thread Chris Reynolds








Not sure how fussy Flex is about validXML
but your fault and result attributes are in single quotes. Also the HTTPService
tag looks unclosed.











From: jivankohinoor
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 03, 2005
4:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] datagrid
does not display http data






I try to fill a DataGrid from live XML data over
http, but the grid
desperately stays empty.
The code is :

mx:HTTPService id=catalogContents
contentType=application/xml
method=GET protocol=http
resultFormat=xml 
url=""
href="http://localhost:8080/protocore/getCatalogContents">http://localhost:8080/protocore/getCatalogContents
fault='alert(event.fault.faultstring,,mx.controls.Alert.OK)'
result='alert(Catalog
OK,,mx.controls.Alert.OK)'

mx:DataGrid id=catalogGrid
height=100% width=100%
dataProvider={catalogContents.result.element}


Returned XML is like :
?xml version=1.0
encoding=utf-8?
elements
element Key=Key
Name=Name Dir=Dir lang=lang
nloc=nloc
npar=npar
UNKNOWN1=UNKNOWN1 UNKNOWN2=UNKNOWN2
Status=Status
Anom=Anom label=label0
/
element Key=BAT00
Name=COA034 Dir=A1/PRG lang=Cobol
nloc=944 npar=649
UNKNOWN1=58 UNKNOWN2= Status=CORRECT
Anom=OK label=label1 /
element ...
/elements

I know that the Server part is OK, as I am able to
display raw XML
code in the following TextArea:
mx:TextArea
text={catalogContents.result}/

I tried the same, with XML compiled statically,
and it works :

mx:Model id=catalogContentsModel
ource=D:\\src\\Flex\\Phoenix-proto\\cataloContents.xml
/

mx:DataGrid id=catalogGrid
dataProvider={catalogContentsModel.result.element}

Help would be greatly needed, I tried many
different combinations of
returned XML without success (like returning
mx:Array/mx:Object
tags, specifying the object attributes as XML
attributes or as XML
elements, nothing work)

Am I *really* an idiot as I seem to be the only
one with this problem.













RE: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question

2005-03-02 Thread Chris Reynolds








Presumably the last s in the folder was just
an email typo ;-)

{insall-server-root}/FlexProjects/Flex/WEB-INF/classess













From: Ben Elmore
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005
5:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex +Java
Classes (as RemoteObjects) Config Question





All.

Basically I am trying to configure the my flex
application to work with some
server side java objects (basic pojos) and am
getting a
'flashgateway.adapter.NoSuchServiceException'
error thrown when I attempt to
access it. I have been able to get this working on
several different servers
but am at a loss to why this one particular setup
is causing an issue. I am
running my connectivity test with the both a
helloWorld java object and the
sample java connector that comes with the flex
install.

This is my environment.

Jrun 4.0 (running latest updater) install

I have several Jrun servers running each with a
couple of apps.

For the environment I am trying to set up I have
configured a new server
(called FlexProjects) and extracted the flex.war
file into a directory in
that server called 'flex'. I loaded my test java
classes (also tried the
Cairngorm demo) into the
{insall-server-root}/FlexProjects/Flex/WEB-INF/classess
directory. 

Is there something that I am missing in the config
of Jrun that is not
having the gateway find the classes in that
directory (oh, I can confirm
that the classes work through a jsp running on
that page).

Thanks.

Ben


--

This e-mail and any attachments may contain
information which is
confidential, proprietary, privileged or otherwise
protected by law. The
information is solely intended for the named
addressee (or a person
responsible for delivering it to the addressee).
If you are not the intended
recipient of this message, you are not authorized
to read, print, retain,
copy or disseminate this message or any partof
it. If you have received
this e-mail in error, please notify the sender
immediately by return e-mail
and delete it from your computer.













RE: [flexcoders] ViewStack container

2005-03-01 Thread Chris Reynolds








Use the change event of the ViewStack and
then test the event.newValue for a page number.

The sample below toggles between two
panels incrementing a label each time.



?xml version=1.0
encoding=utf-8?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

 mx:ViewStack
id=myStack change=incrementCount(event) 

 mx:Panel
label=first 


mx:Label text=Label1 mouseUp=myStack.selectedIndex=1;myStack.invalidate/

 /mx:Panel

 mx:Panel
label=second 


mx:Label id=lblCount text=0
mouseUp=myStack.selectedIndex=0;myStack.invalidate/

 /mx:Panel

 /mx:ViewStack

 mx:Script

![CDATA[

 function incrementCount(event) {

 if (event.newValue==1) 


lblCount.text = 1 + Number(lblCount.text);

 }

]]

/mx:Script

/mx:Application









From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]

Sent: Wednesday, March 02, 2005
12:31 AM
To: [EMAIL PROTECTED]
Subject: [flexcoders] ViewStack
container





Hi ,

I have 3
diff. pages in a ViewStack container.
I want to
reset some values when one of the
page in the
viewstack is displayed everytime.

Byusing
which event or any method or way should I achieve this?

--
Regards,

Ketan
Bengali
Multimedia
Programmer