Re: [Flashcoders] Undefined property in one fla, but not in the other.

2008-05-10 Thread jonathan howe
Here's my guess:
The classpath in your work fla is incorrect or the linkage is not actually
pointing to the original PilotBase.
Sounds like you copied the symbol, instantiated it, but Flash is using it's
self-created constructor for a symbol in the library. I would go into the
linkage properties for the symbol and verify that the path to the class is
correct (with the little green check). Otherwise, you're just getting the
automatically generated in the SWF upon file export version, which still
extends movie clip (thus otherwise behaves normally), but lacks your new
properties.

-jonathan


On Thu, May 8, 2008 at 11:43 PM, Chris [EMAIL PROTECTED] wrote:

 I have a movie clip symbol 'Pilot', extending a class 'PilotBase'. The
 movie
 clip has three clips inside, gX, gY, gZ. I have a class that extends
 MovieClip. I copy the symbol from the demo fla to the work fla and flash
 complains:

 1120: Access of undefined property gX.�
 ...
 ...

 The clip instance exists. If I copy the symbol into another empty fla, it
 works fine. I cannot understand why it bombs out in the fla that I need to
 copy it to. Any ideas?
 Thanks
 C

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Loosing full-screen when loosing focus

2008-05-10 Thread Bart Goormans

Thanks Rich,

I had a chat last week with a sales representative from ScreenTime 
Media's mProjector. He told me it would be at least  two months for the 
Windows AS3 Update of mProjector. Could even be some considerable more 
time. The mac AS3 version is out in beta as you said. The official 
release would be sooner than the Windows version but ScreenTime couldn't 
give an exact date for neiher.


We will be dealing with the OS, reading and writing and most propably 
some networking too.
I checked out Zinc. My first thoughts were that it ran rather slow. 
Seems to me mProjector is more integrated into the production process.


It will be a long term project. Maybe we'll get back on this. As for 
now, if I would have to select an option, I'd choose to sit and wait for 
the AS3 mProjector. Although sitting and waiting will be something we 
won't be doing here, that's for sure.


Cheers,
Bart



Rich Shupe schreef:


If you are only READING files, you have a bit more options. If you are
writing files, or dealing with the OS extensively in traditional application
ways, you pretty much have to go with a projector enhancer. You can't really
use the browser, and you can't use AIR.

Some may say that their are other options by extending those environments
(server-based saving--to server or locally, Java applets that add
functionality to the browser, etc., but I don't consider them realities for
the average user.

mProjector is AS3-stable on the Mac, but not yet released on Windows, so
that probably isn't a reality for an AS3 project. I've heard good and
terrible things about Zinc, so I can't offer any opinions there. I'm sure
others have used it and may be able to help. Finally, I've never had the
slightest interest in any product that isn't cross-platform, so I can't
speak to any of the Windows-only, or Mac-only (if there are any) options.

Anyone else have any opinions on proj-enhancers?


On 4/29/08 2:31 PM, Bart Goormans wrote:

 


Our app will be a sort of backoffice in which we will be dealing with
the filesystem extensively. It will be managing mediafiles and dig into
its xml metatags. From the start on, this project is completely AS3
based. So I 'd better test the mProjector thoroughly beeing in beta for AS3.

I haven't had too much experience on building full scale apps in flash
but this will be an adventurous challenge. Hope to get the squares out
of the wheels soon and start rollin'  ;-)) Thx!
   



Rich
http://www.LearningActionScript3.com


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Undefined property in one fla, but not in the other.

2008-05-10 Thread Chris
Hi Jon,

Appreciate the response, but I have figured it out. The flas I was using had
'Automatically declare stage instances' checked, while the fla I was needing
to work in did not have it checked. This was a real stumper, and it didn't
help that the checkbox was hidden under Publish Settings
-Flash-Actionscript 3.0 Settings.


Thanks,
Chris Hill

On Sat, May 10, 2008 at 6:09 AM, jonathan howe [EMAIL PROTECTED]
wrote:

 Here's my guess:
 The classpath in your work fla is incorrect or the linkage is not actually
 pointing to the original PilotBase.
 Sounds like you copied the symbol, instantiated it, but Flash is using it's
 self-created constructor for a symbol in the library. I would go into the
 linkage properties for the symbol and verify that the path to the class is
 correct (with the little green check). Otherwise, you're just getting the
 automatically generated in the SWF upon file export version, which still
 extends movie clip (thus otherwise behaves normally), but lacks your new
 properties.

 -jonathan


 On Thu, May 8, 2008 at 11:43 PM, Chris [EMAIL PROTECTED] wrote:

  I have a movie clip symbol 'Pilot', extending a class 'PilotBase'. The
  movie
  clip has three clips inside, gX, gY, gZ. I have a class that extends
  MovieClip. I copy the symbol from the demo fla to the work fla and flash
  complains:
 
  1120: Access of undefined property gX.�
  ...
  ...
 
  The clip instance exists. If I copy the symbol into another empty fla, it
  works fine. I cannot understand why it bombs out in the fla that I need
 to
  copy it to. Any ideas?
  Thanks
  C
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 


 --
 -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Automatically Declare Stage Instances and inheritance.

2008-05-10 Thread Chris
Ok, so I've done a bit of googling and found nothing. And the mailing lists
search features are less than ideal (sorry). Apologies if this has been gone
over before:

I have created an example problem here:
http://ubergeek.tv/inheritance_declare_problem.zip

The inheritanceDemo.fla shows that classes linked to symbols that extend
class with items on the timeline  causes a compiler error:

1152: A conflict exists with inherited definition AlertBase.okButton in
namespace public.�

While if I uncheck the 'Automatically Declare Stage Instances' checkbox and
declare my okButton manually everything works.

This seems like a big deal to me. Since we re-use code as much as possible,
it seems like we either need to assume this box is checked or not and base
our code on this. Additionally we can assume incompatibilities with 3rd
party code based upon whether they checked this box. It would seem that this
checkbox shouldn't exist and that all stage vars should be declared
manually.

I must be doing something wrong. What are the best practices here? Besides
unchecking that box, is there any way to get around these errors?

Thanks
Chris Hill
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Automatically Declare Stage Instances and inheritance.

2008-05-10 Thread Muzak

Disable it.
It's one of the most annoying features added to Flash CS3.

AFAIK, it only needs to be enabled when using the Flex Kit (when creating swc's 
to be used in Flex).

regards,
Muzak

- Original Message - 
From: Chris [EMAIL PROTECTED]

To: Flash Coders List Flashcoders@chattyfig.figleaf.com
Sent: Sunday, May 11, 2008 12:42 AM
Subject: [Flashcoders] Automatically Declare Stage Instances and inheritance.



Ok, so I've done a bit of googling and found nothing. And the mailing lists
search features are less than ideal (sorry). Apologies if this has been gone
over before:

I have created an example problem here:
http://ubergeek.tv/inheritance_declare_problem.zip

The inheritanceDemo.fla shows that classes linked to symbols that extend
class with items on the timeline  causes a compiler error:

1152: A conflict exists with inherited definition AlertBase.okButton in
namespace public.�

While if I uncheck the 'Automatically Declare Stage Instances' checkbox and
declare my okButton manually everything works.

This seems like a big deal to me. Since we re-use code as much as possible,
it seems like we either need to assume this box is checked or not and base
our code on this. Additionally we can assume incompatibilities with 3rd
party code based upon whether they checked this box. It would seem that this
checkbox shouldn't exist and that all stage vars should be declared
manually.

I must be doing something wrong. What are the best practices here? Besides
unchecking that box, is there any way to get around these errors?

Thanks
Chris Hill


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Flashcoders Digest, Vol 8, Issue 11

2008-05-10 Thread Anthony Cintron
 Thanks Jason and Juan,
I tested it out and the splicing works really well. One thing I'm noticing
is when I uncomment and add another index, I get a compile error. I messed
with the splice index number, but received unsuccessful results. Any
thoughts on this?

var workData:Array = new Array();

//workData.push({pm:Bob, resource:Anthony, client:Microsoft,
role:Developer, job:XXX-,  totalHours:40});
workData.push({pm:Dan, resource:Anthony, client:Microsoft,
role:Developer, job:XXX-, totalHours:50});
workData.push({pm:Bob, resource:Anthony, client:Microsoft,
role:Developer, job:XXX-, totalHours:30});
workData.push({pm:Dan, resource:Anthony, client:Microsoft,
role:Developer, job:XXX-, totalHours:50});
trace(workData);
// for each item in the array
for ( var i = workData.length - 1; i = 0; i-- ){
 // compare to all other array elements
 for ( var j = workData.length - 1; j = 0; j-- )
 {
 if ( workData[i].pm ==  workData[j].pm  i != j)
 {
for ( var props in workData[i] )
{
workData[i][props] = workData[j][props];
}
trace(index:  + j
  );
workData.splice(j, 1);
 }
 }
}
trace(workData);


 Message: 5
 Date: Fri, 9 May 2008 18:13:04 -0300
 From: Juan Pablo Califano [EMAIL PROTECTED]
 Subject: Re: [Flashcoders] Data merging problem
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Message-ID:
[EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1

 If you're going to remove elements with a splice, you should loop backwards
 (for var i:Number = array.length - 1;i = 0; i++), because when you loop
 forward and take out one element, the relative position of the next items
 will change.

 Cheers
 Juan Pablo Califano


 2008/5/9, Jason Van Pelt [EMAIL PROTECTED]:
 
  This is untested so it may need a bit of tweaking, but you could do
  something like this:
 
  // for each item in the array
  for(var i = 0; i  workData.length; i++){
 
   // compare to all other array elements
   for(var j = 0; j  workData.length; j++){
 
 // do your comparison(s), making sure not to compare to itself
 if(workData[i].pm == workData[j].pm  i != j){
 
   // overwrite the propeties of the first element with the
  properties of the second
   for(var props in workData[i]){
 workData[i][props] = workData[j][props];
   }
 
   workData.splice(1,j);
 }
   }
  }
 
 
  Things to consider--
  Will all elements in your array have the same properties?
  Do you need more logic involved in figuring out which properties should
 be
  the ones to keep?
 
 
  Jason Van Pelt
  Interactive Developer
  504.210.1232 (p) / 504.581.2731 (f)
  Peter A. Mayer Advertising, Inc.
  www.peteramayer.com
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 


 --

 Message: 6
 Date: Fri, 9 May 2008 18:31:08 -0400 (EDT)
 From: Dave Segal [EMAIL PROTECTED]
 Subject: [Flashcoders] as3 namespace question
 To: flashcoders@chattyfig.figleaf.com
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain;   charset=us-ascii

 I posted about this before and didn't receive and answer but it is still
 causing me issues so I am trying again. I need to load an swf from one
 server that is a member of some class. For example:



 http://server1.mydomain.com/load_me.swf that uses the Document class
 com.mydomain.componet.LoadMe.as.



 I want to be able to load this swf from a different server, say
 http://server2.mydomain.com/load_stuff.swf, and cast it to a LoadMe when
 it is done loading. Should this work? I keep getting errors when trying to
 cast in the init handler.





 import com.mydomain.componet.LoadMe;



 var _req:URLRequest = new
 URLRequest(http://server1.mydomain.com/load_me.swf;);

 var _ldr:Loader = new Loader();

 var _context:LoaderContext = new LoaderContext();

 _context.securityDomain = SecurityDomain.currentDomain;

 _context.applicationDomain = ApplicationDomain.currentDomain;

 _ldr.contentLoaderInfo.addEventListener(Event.INIT, initHandler, false, 0,
 true);

 _ldr.load(_req, _context);





 private function initHandler($event:Event) () {

var _lm:LoadMe = LoadMe(_ldr.content);

 }





 --

 Message: 7
 Date: Fri, 9 May 2008 20:19:51 -0300
 From: Juan Pablo Califano [EMAIL PROTECTED]
 Subject: Re: [Flashcoders] as3 namespace question
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Message-ID:
[EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1

 I have not tryed this, but check this:

 http://livedocs.adobe.com/flex/201/langref/flash/display/LoaderInfo.html


 Because the instance of the main class of the SWF file has no Loader