Ah.. ok.
Thanks Henrik.
Best,
Karl
On Feb 15, 2012, at 4:32 PM, Henrik Andersson wrote:
Karl DeSaulniers skriver:
Is there no reference in AS3 like AS2 where you can look with _level0
for the top level MC?
The equivalent to levels would be the display list of the stage
itself.
___
I am an MVC purist, I always proceed as follows:
Models should ONLY store information, particularly the state of the application
and any data retrieved from disk or the network.
Views hold a reference to a model, watch it for updates, and respond to those
updates by rendering the model in its c
Karl DeSaulniers skriver:
> Is there no reference in AS3 like AS2 where you can look with _level0
> for the top level MC?
>
The equivalent to levels would be the display list of the stage itself.
___
Flashcoders mailing list
Flashcoders@chattyfig.figle
Is there no reference in AS3 like AS2 where you can look with _level0
for the top level MC?
Best,
Karl
On Feb 15, 2012, at 4:13 PM, Gerry Beauregard wrote:
I think that if a SWF is loaded by another SWF (e.g. using
SWFLoader), 'stage' will be null.
-Gerry
On 2012-02-16 , at 04:07 , g..
I think that if a SWF is loaded by another SWF (e.g. using SWFLoader), 'stage'
will be null.
-Gerry
On 2012-02-16 , at 04:07 , g...@engineeredarts.co.uk wrote:
> Hi, Can you check if the parent exists, and is there a way to determine if
> this is the document/main class?
> Glen
>
> Sent fro
Ktu skriver:
> sorry now, what if the loader is already in a display list when it runs
> that first frame?
> is it still not aware of the stage?
>
If a movie is loaded by a Loader that is on the display tree of the
stage the loaded movie DOES NOT have access to the stage.
___
sorry now, what if the loader is already in a display list when it runs
that first frame?
is it still not aware of the stage?
On Wed, Feb 15, 2012 at 3:33 PM, Ktu wrote:
> so I could do something like this:
>
>
> public function Main():void {
> if (stage) {
> stage.scaleMode = Stage
so I could do something like this:
public function Main():void {
if (stage) {
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
init();
} else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):voi
Ktu skriver:
> Hey List,
>
> I'm building a swf, and i want to set the stage.scaleMode and align ONLY IF
> my swf is the top level swf, and was not loaded by another swf.
>
> anyone know how to find out if a swf was loaded by another swf?
>
> need more info?
>
> thanks
>
You can't know in the
Hi, Can you check if the parent exists, and is there a way to determine if this
is the document/main class?
Glen
Sent from my HTC
- Reply message -
From: "Ktu"
To: "Flash Coders"
Subject: [Flashcoders] am i loaded by another swf?
Date: Wed, Feb 15, 2012 19:55
Hey List,
I'm building
Hey List,
I'm building a swf, and i want to set the stage.scaleMode and align ONLY IF
my swf is the top level swf, and was not loaded by another swf.
anyone know how to find out if a swf was loaded by another swf?
need more info?
thanks
--
Ktu;
The information contained in this message may o
Mattheis, Erik (MIN-WSW) skriver:
> If I have to do this without looking at functional examples, how would one
> transmit a terminator byte or byte size while using Socket.writeObject()?
Write the object to a ByteArray, measure the size of that and send the
size of that before the contents of the
I've been unsuccessful at finding an example of a functional AS app which uses
one of the second two approaches, I can only find broad descriptions of what
needs to happen.
It appears that Socket.bytesAvailable functions differently depending on the
version of AIR, either representing the numbe
I've not considered it may be a server issue. The server is also an AIR app -
looking at the documentation there doesn't seem to be any events related to
sending data over sockets - is it possible to tell if data was successfully
written to the socket?
On 2/15/12 11:29 AM, "Glen Pike" wrote:
Calculations would not be in the controller, they would be in the Model.
Sometimes you can justify them being in the view if it's related to the view.
Calculations are also in a Service class if they are part of a service in some
way.
Jason Merrill
Instructional Technology Architect II
Ba
Hello list,
If I am making an application with MVC pattern and calculations are needed
to be performed on the data when the user interacts with the application,
would you:
do the calculations in the Model?
create a separate class that handles the calculations and puts the results
in the model?
Basic TCP rules says that you are sending an octet stream.
All socket APIs are optimized for bulk access to avoid silly performance
issues due to lots of function calls (and possible mode switches).
This means that you MAY get more than one object in one go and that you
MAY get only a part of the
Hi,
Are you sure that this is not something server-side?
I have had similar problems which were compounded when using Wireless
connections - we traced the fault back to the server code giving up
filling the socket buffer when it got a "buffer full" event?
Apart from that you could use some s
In a the client of a client/server AIR app I have:
function onSocketData(event:ProgressEvent) : void {
var result = _socket.readObject();
// do something with result
}
How can I be sure the whole object is available before I try to use it?
Things work as expected most of the time, but with l
19 matches
Mail list logo