Hi,
I have run into a "problem" - possibly more of a workflow issue,
that I would like some input and tips on.
I am building a kiosk style application using CS3, with AS3 classes
linked to my symbols. The symbols consist of hand-rolled components -
sliders, knobs, etc. which I am grouping in containers.
The workflow I have attempted is:
Create a number of MovieClips which subclass my "AppScreen". The
default AppScreen code wires up any components on the stage to default
handlers, (eventually I wanted to give the components instance names and
then use XML to label components and wire up the default handlers to
send specific commands using the instance names, etc.) Code for
specific AppScreen types extends this class.
I also wanted to configure what AppScreens my application has by
using another XML file to configure the Application - this would deal
with creating the navigation, dynamically create instances of my
AppScreens and then add / remove when the corresponding nav button was
pressed.
The problem I have run into is that when I instanciate an AppScreen
symbol from my library - it's not on stage - and add it to the stage I
handle the ADDED_TO_STAGE event for wiring the components up. All my
component instances trace out as null at this point, so I am left
scratching my head wondering when they might be added to the display list...
Do I have to create all my child components programmatically also -
well, I tried that, and the answer seems to be yes.
The only other workaround seems to be having all of the screens
on-stage when the app is launched, then removing them all, re-adding as
required. This sucks because I may want to create and load library
SWF's in the future for variations on the app.
Does anyone know why I can't seem to mix and match programmatic vs
authortime layout here - am I missing something.
My reason for doing this is because I am lazy. I don't want to have
to type out loads more XML for layout, when I can drag and drop stuff on
the stage at will, but unfortunately, I can't seem to do it. How come
Flex can mix and match this process - yeah, it's all compiled down to
AS, erm, so what's the difference between mxmlc output for Flash & mxmlc
output for Flex?
Before you all shout MVC Framework, humour me here by trying to let
me know why it behaves this way - I know I should be using a framework,
or Flex, but I am spiking and I am also looking at workflow over the
whole project rather than building a finished application. I could
always stick to AS2, which seems to work nicely with a few flaws, but I
am trying my damndest to get to grips with AS3 the way it should be...
Hand-rolling my components, because I need simple controls that work
with a touchscreen, which behaves slightly different from a mouse...
(don't get me started on trying to use the Flash Player Settings dialog
with a touchscreen @ 1280 x 1024 - try hitting the Allow button, go on,
I dare you - Alternatively, please tell me how to make the buttons
bigger, or store my settings from a Linux standalone SWF. I have
trawled tons of emails every day about increasing my size, but none of
them help make my buttons bigger :)
Thanks
Glen
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders