Sure, we do something similar with our applications.

Create a piece of MXML to act as your desktop which defines all the
content areas you want to use (your header, menu bar, etc).

Define constants for each of these locations, and then write code which
will add the passed content to each of your content areas.

i.e.

desktop.addContent( DefaultContent.HEADER, new myHeader() );

This equates to the developer creating an instance of the mxml they want
to add to the header section of the layout.

 

You can then do more and varied things with your layouts passed this
stage, for example, hiding or showing content areas depending on the
application need.

 

It's quite simple once the idea is grasped initially.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:       01382 564343

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

Registered Number: 1788577

Registered in the UK

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

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

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thinkloop
Sent: 21 March 2008 20:58
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Share layout, not just skins

 

Hi,

Is there a smart way to share layout and not just skins with other
applications. What I am trying to do is build an application template
for our applications, that looks and acts IDENTICALLY for all of them.
So there would be a carefully positioned header, menu bar, 2 column
layout and footer and the application developers would only be
responsible for populating the contents of each of these containers.

Can I somehow package all this up, along with the skin, in such a way
that the developers cannot modify individual pieces?

Cheers,
Baz

 

Reply via email to