Macromedia Flash Server - FCS and mvc

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > April 2005 > FCS and mvc





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author FCS and mvc
[*__*]

2005-04-07, 5:55 pm

I'm working of an pattern based application modelled on the mvd triad. I
have found a few situations I would like to share with the group and a
few unanswered questions

These round of findings are in the Model which holds the business logic
of the application

1) The NetConnection Object though declared as a private property of
the Model class refuses to activate except it is referenced to the root
of the application. I had ab initio tried to initialize it as a property
of an object of the Model with no success at all. Once referenced to the
root or to an object referenced to the root all is fine.

Why does this happen?

2) Shared Objects will not initialise except triggered in a separate
function (Peldi, this was the palaver of yesterday). I tried as many
different scopes as possible, referencing to the root, objects off the
root, objects within the class- no cigar. I then created a private
method which initialized the SO and made the net connection object the
method parameter. All was well?

Any reasons why the SO will not initialize any other way??

3) A shared object was defined as a private property of the Model
class. The onSync method was then defined like so:

this.s_so.onSync = function(list) {

for (var i in this.s_so.data) {
whatever blah();
}
It failed woefully.
However this worked

this.s_so.onSync = function(list) {

for (var i in this.data) {
whatever blah();
}

Why ?

I'd appreciate any answers

a


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com