RE: [Flashcoders] RE: weather web service

2006-08-21 Thread Bjorn Schultheiss
I'm sure there are more.
In firefox I use the accuweather extension that must be pulling its data
from a feed also.
What about those weather widgets on MAC, they'd be using another feed I
guess. 


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin Burrer
Sent: Monday, 21 August 2006 3:27 PM
To: Flashcoders mailing list
Subject: [Flashcoders] RE: weather web service


Thanks Bjorn,

This one seems to be a bit better than the Yahoo feed. What I like about the
yahoo feed though is that it returns you a weather code for each weather
condition (e.g. 29 for cloudy). This is really handy if you want visualize
the current weather condition.
Well I guess you can't have it all...

Cheers

Robin


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn
Schultheiss
Sent: Monday, 21 August 2006 2:53 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] htacess and loaded SWFs

Hey Robin,

Try http://www.webservicex.net/WS/WSDetails.aspx?CATID=12WSID=56
I used ServiceCapture on Eric Dolecki's blog www.ericd.net and found it in
the traffic logs


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin Burrer
Sent: Monday, 21 August 2006 2:37 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] htacess and loaded SWFs

Hi there,

Does anybody know if there is free weather forecast web-service?
I went to the yahoo website but all I could find is an RSS feed, which seems
to be a bit buggy. Plus it only gives you the forecast the next day. 

Thanks

Robin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Haikal Saadh
Sent: Monday, 21 August 2006 1:51 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] htacess and loaded SWFs

This would be why: 
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b06f1712

 Currently the SWF format does not include HTTP referrer information 
 when sending http requests. Macromedia is aware of this issue and is 
 considering possible future solutions.


Jay Bibby wrote:
 Hi folks,

 I've spent all evening trying to find an answer to this question, and 
 I've just recently subscribed to this list, so I apologize in advance 
 if this has already been covered.

 I have set up a directory to serve up SWFs from with an htaccess file 
 that prevents direct access to the SWFs or from domains other than my 
 own. This is working fine... when an HTML or PHP file on my domain is 
 the file that is loading the SWF.

 However, when the same HTML or PHP file loads a SWF that then tries to

 load another SWF from the same directory, htaccess prevents it. I am 
 using a MovieClipLoader to load the external SWF.

 How is loading a SWF from within a SWF different to Apache than 
 loading the same SWF from an HTML or PHP file?

 I'm pulling my hair out here. Thanks in advance.

 Jay
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com

--
Haikal Saadh
Applications Programmer
ICT Resources, TALSS
QUT Kelvin Grove

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com ___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com ___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com ___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:

Re: [Flashcoders] htacess and loaded SWFs

2006-08-21 Thread Jay Bibby

Cheers, Haikal!

That's just the information I was looking for. Let's hope they change that soon.

regards,

Jay


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Haikal Saadh
Sent: Monday, 21 August 2006 1:51 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] htacess and loaded SWFs

This would be why:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b06f1712


Currently the SWF format does not include HTTP referrer information
when sending http requests. Macromedia is aware of this issue and is
considering possible future solutions.



Jay Bibby wrote:

Hi folks,

I've spent all evening trying to find an answer to this question, and
I've just recently subscribed to this list, so I apologize in advance
if this has already been covered.

I have set up a directory to serve up SWFs from with an htaccess file
that prevents direct access to the SWFs or from domains other than my
own. This is working fine... when an HTML or PHP file on my domain is
the file that is loading the SWF.

However, when the same HTML or PHP file loads a SWF that then tries to
load another SWF from the same directory, htaccess prevents it. I am
using a MovieClipLoader to load the external SWF.

How is loading a SWF from within a SWF different to Apache than
loading the same SWF from an HTML or PHP file?

I'm pulling my hair out here. Thanks in advance.

Jay
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com http://training.figleaf.com


--
Haikal Saadh
Applications Programmer
ICT Resources, TALSS
QUT Kelvin Grove
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] RE: weather web service

2006-08-21 Thread Robin Burrer
Yes there definitely must be more. Even the yahoo weather widget shows
the forecast for the next four days.  So it must be using a different
feed too (the yahoo feed just gives you the forecast for the next day).

Robin



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn
Schultheiss
Sent: Monday, 21 August 2006 3:59 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] RE: weather web service

I'm sure there are more.
In firefox I use the accuweather extension that must be pulling its data
from a feed also.
What about those weather widgets on MAC, they'd be using another feed I
guess. 


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Monday, 21 August 2006 3:27 PM
To: Flashcoders mailing list
Subject: [Flashcoders] RE: weather web service


Thanks Bjorn,

This one seems to be a bit better than the Yahoo feed. What I like about
the
yahoo feed though is that it returns you a weather code for each
weather
condition (e.g. 29 for cloudy). This is really handy if you want
visualize
the current weather condition.
Well I guess you can't have it all...

Cheers

Robin


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn
Schultheiss
Sent: Monday, 21 August 2006 2:53 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] htacess and loaded SWFs

Hey Robin,

Try http://www.webservicex.net/WS/WSDetails.aspx?CATID=12WSID=56
I used ServiceCapture on Eric Dolecki's blog www.ericd.net and found it
in
the traffic logs


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Monday, 21 August 2006 2:37 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] htacess and loaded SWFs

Hi there,

Does anybody know if there is free weather forecast web-service?
I went to the yahoo website but all I could find is an RSS feed, which
seems
to be a bit buggy. Plus it only gives you the forecast the next day. 

Thanks

Robin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Haikal
Saadh
Sent: Monday, 21 August 2006 1:51 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] htacess and loaded SWFs

This would be why: 
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b06f1712

 Currently the SWF format does not include HTTP referrer information 
 when sending http requests. Macromedia is aware of this issue and is 
 considering possible future solutions.


Jay Bibby wrote:
 Hi folks,

 I've spent all evening trying to find an answer to this question, and 
 I've just recently subscribed to this list, so I apologize in advance 
 if this has already been covered.

 I have set up a directory to serve up SWFs from with an htaccess file 
 that prevents direct access to the SWFs or from domains other than my 
 own. This is working fine... when an HTML or PHP file on my domain is 
 the file that is loading the SWF.

 However, when the same HTML or PHP file loads a SWF that then tries to

 load another SWF from the same directory, htaccess prevents it. I am 
 using a MovieClipLoader to load the external SWF.

 How is loading a SWF from within a SWF different to Apache than 
 loading the same SWF from an HTML or PHP file?

 I'm pulling my hair out here. Thanks in advance.

 Jay
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com

--
Haikal Saadh
Applications Programmer
ICT Resources, TALSS
QUT Kelvin Grove

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___

[Flashcoders] Classes, Components and a Greyed out box ...

2006-08-21 Thread Stephen Ford
I have a preloader class for my app that doesn't appear until more than half 
way through the loading of my entire application.
 
This is because I have a flash v2 combo box further along in my application.
 
I should know this, but how do I get my preloader (which is a class of it's 
own) up and running (it's about 2kb) so that it can actually show the loading 
of the entire application.
 
If I go Edit  Preferences  (Category) Actionscript  Actionscript 2.0 
settings, the 'Export frame for classes' box is greyed out and not editable 
(don't know if that would help anyway).
 
Can anyone assist please.
 
Thanks,
Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Classes, Components and a Greyed out box ...

2006-08-21 Thread Darren Bowers
Hi Stephen,

Check the linkage properties of the component in the library and uncheck
export in first frame.

HTH

-Original Message-
From: Stephen Ford [mailto:[EMAIL PROTECTED] 
Sent: Monday, 21 August 2006 3:15 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Classes, Components and a Greyed out box ...

I have a preloader class for my app that doesn't appear until more than half
way through the loading of my entire application.
 
This is because I have a flash v2 combo box further along in my application.
 
I should know this, but how do I get my preloader (which is a class of it's
own) up and running (it's about 2kb) so that it can actually show the
loading of the entire application.
 
If I go Edit  Preferences  (Category) Actionscript  Actionscript 2.0
settings, the 'Export frame for classes' box is greyed out and not editable
(don't know if that would help anyway).
 
Can anyone assist please.
 
Thanks,
Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

CAUTION  DISCLAIMER: The information contained in this e-mail message
and/or any accompanying data or documents contain information that is 
confidential and subject to legal privilege. The information is intended
only for the recipient named in this message. The sender is excluded from
any liability arising from any further use, dissemination, distribution,
transmission or copying of this information and /or accompanying data by
the recipient. If you are not the intended recipient, you must immediately
erase the information along with all copies of this message and accompanying
data and notify the sender. Views expressed in this message are those of the
original sender, and are not necessarily the views of WestOne Services.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-21 Thread Meinte van't Kruis

Very cool idea Haikal! Certainly seems the best option for text printing,
I'm going to try it one day.

thanks,
-Meinte

On 8/21/06, Haikal Saadh [EMAIL PROTECTED] wrote:


My approach to printing oodles of multiline text is to let the browser
do it:

* When the print button is pressed, save the contents of the text
  field to a Local Shared Object
* Open up an empty HTML page, which has as invisible flash movie
  which can then:
  o Read that shared object.
  o Pass the data that needs to be printed to a JS function
which...
  o ...uses DOM to inject that data onto the page.

Simple, and quite elegant, if I say so my self. I've done this before
for arrays of objects, and it has worked a treat. The Flash/Javascript
bridge comes in handy here as well.



Peter O'Brien wrote:
 I have the same problem as the original poster.

 I don't suppose anyone can provide more info as a solution than Hans, or
 Hans if you're there I would love to see some code.

 What are flash mc dimensions to match an A4 page?  Doesn't it vary
 according
 to screen resolution?

 How can you efficiently fill a textfield to the point in which you
 know it
 is completely full?

 Cheers,
 Pete



--
Haikal Saadh
Applications Programmer
ICT Resources, TALSS
QUT Kelvin Grove
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ClassFactory and Reflection in Actionscript

2006-08-21 Thread Miguel Serrano

The problem is not passing the arguments, but how many arguments pass.

I can't use a text file, there I could only store basic types, but not
complex properties nor objects. I think about a dirty solution:

public class ClassFactory{

   public static function createInstance(className:String, args:Array):Object
switch(args.length){
case 0:
var clazz:Class = getDefinitionByName(className) as Class;
return new clazz()
break;
case 1:
var clazz:Class = getDefinitionByName(className) as Class;
return new clazz(args[0])
break;
case 2:
var clazz:Class = getDefinitionByName(className) as Class;
return new clazz(args[0],args[1])
break;
 
case N:
var clazz:Class = getDefinitionByName(className) as Class;
return new clazz(args[0],args[1],..., args[N])
break;
default 0:
throw new Error(Too many args. Max is N)
break;
   }

   }
}





Could you send the parameters/arguments into a text file and retrieve them
from there using loadVars?
John


- Original Message -
From: Miguel Serrano [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Sunday, August 20, 2006 6:45 PM
Subject: Re: [Flashcoders] ClassFactory and Reflection in Actionscript



Oh, it's very sad. I developed a script language that can be loaded
and run at runtime in a flash movie.

At this moment I can create instances with no arguments, it's very
impressive, but if I can not pass arguments  I can't continue the
project.



  I'm coding an introspection framework for as3, but i have a problem by
  creating instance at runtime without using new operator.

  I have no problem to create instances of classes with no operators at
  its construction function. The code is this one:

  public class ClassFactory{

 public static function createInstance(className:String):Object
   var clazz:Class = getDefinitionByName(className) as

Class;

   return new clazz()
 }
  }

  I need a factory to create instance with an array of arguments, of

this kind:


  public static function createInstance(name:String, args:Array):Object

  any idea??

 Unfortunately this can't be done in AS3. I asked this before and the
 workaround suggested by an Adobe engineer was to use a well known
 initialization method in your classes and call them after invoking
 the constructor. But this is obviously not feasible if you need to
 work with existing classes and/or want to create a generic framework
 with such capabilities. This is one of the areas where you have more
 limitations in AS3 than you used to have in AS2. I really hope AS4
 will introduce something like: Class.newInstance(args:Array)


 Jens
 www.oregano-server.org


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] RE: Best way to learn OO Analysis and Design with ActionScript

2006-08-21 Thread james



I battled furiously to get my head around Object-Oriented 
Programming with Actionscript

http://www.amazon.com/gp/product/0735711836/sr=8-2/qid=1156121055/ref=sr_1_2/103-4690969-4407040?ie=UTF8
only to find that looking back a lot of the explanations largely 
added to my confusion.


IMHO your recommendation wasn't hard to follow but it did lack depth.



To be honest since recommending it I found out there are errors in 
some code examples, and the site specially made to download 
corrections:

http://www.oopas2.com

is not available.at least not on my internet :-)

I agree with your statement that any in-depth treatment of the 
subject of OOA/OOD/OOP will not be written for ActionScript.


As I understand it, in a similar way to the motivation for making 
PHP5 much more Java like (in terms of OOP features) ActionScript 2.0 
was made Java like in order that serious development tools such as 
UML and design patterns could be applied to the language, and so 
Java/C++/C# developers could easily migrate to using Flash.


It makes sense that Flash developers travel that line in the other 
direction and use some of the resources that Java/C++ coders have, 
such as design patterns and UML.


James
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ClassFactory and Reflection in Actionscript

2006-08-21 Thread Meinte van't Kruis

in the last case an eval might take some work out of your hands.

-Meinte

On 8/21/06, Miguel Serrano [EMAIL PROTECTED] wrote:


The problem is not passing the arguments, but how many arguments pass.

I can't use a text file, there I could only store basic types, but not
complex properties nor objects. I think about a dirty solution:

public class ClassFactory{

public static function createInstance(className:String,
args:Array):Object
 switch(args.length){
 case 0:
 var clazz:Class = getDefinitionByName(className) as
Class;
 return new clazz()
 break;
 case 1:
 var clazz:Class = getDefinitionByName(className) as
Class;
 return new clazz(args[0])
 break;
 case 2:
 var clazz:Class = getDefinitionByName(className) as
Class;
 return new clazz(args[0],args[1])
 break;
  
 case N:
 var clazz:Class = getDefinitionByName(className) as
Class;
 return new clazz(args[0],args[1],..., args[N])
 break;
 default 0:
 throw new Error(Too many args. Max is N)
 break;
}

}
}




 Could you send the parameters/arguments into a text file and retrieve
them
 from there using loadVars?
 John

- Original Message -
From: Miguel Serrano [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Sunday, August 20, 2006 6:45 PM
Subject: Re: [Flashcoders] ClassFactory and Reflection in Actionscript


 Oh, it's very sad. I developed a script language that can be loaded
 and run at runtime in a flash movie.

 At this moment I can create instances with no arguments, it's very
 impressive, but if I can not pass arguments  I can't continue the
 project.


 
   I'm coding an introspection framework for as3, but i have a problem
by
   creating instance at runtime without using new operator.
 
   I have no problem to create instances of classes with no operators
at
   its construction function. The code is this one:
 
   public class ClassFactory{
 
  public static function createInstance(className:String):Object
var clazz:Class = getDefinitionByName(className) as
Class;
return new clazz()
  }
   }
 
   I need a factory to create instance with an array of arguments, of
this kind:
 
   public static function createInstance(name:String,
args:Array):Object
 
   any idea??
 
  Unfortunately this can't be done in AS3. I asked this before and the
  workaround suggested by an Adobe engineer was to use a well known
  initialization method in your classes and call them after invoking
  the constructor. But this is obviously not feasible if you need to
  work with existing classes and/or want to create a generic framework
  with such capabilities. This is one of the areas where you have more
  limitations in AS3 than you used to have in AS2. I really hope AS4
  will introduce something like: Class.newInstance(args:Array)
 
 
  Jens
  www.oregano-server.org
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] RE: Best way to learn OO Analysis and Designwith ActionScript

2006-08-21 Thread jcarlos
I´ve made several attempts to reduce my OO blindness but I only could find a 
very sound help with


Head First  Design Patterns 
http://www.amazon.com/gp/product/0596007124/104-4304575-8058314?v=glancen=283155


it is Java based, but it doesn´t matter,

the style, the examples, it makes you laugh while you learn and even so, it 
is dense for beginners.





- Original Message - 
From: james [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, August 21, 2006 5:41 AM
Subject: Re: [Flashcoders] RE: Best way to learn OO Analysis and Designwith 
ActionScript







I battled furiously to get my head around Object-Oriented Programming with 
Actionscript

http://www.amazon.com/gp/product/0735711836/sr=8-2/qid=1156121055/ref=sr_1_2/103-4690969-4407040?ie=UTF8
only to find that looking back a lot of the explanations largely added to 
my confusion.


IMHO your recommendation wasn't hard to follow but it did lack depth.



To be honest since recommending it I found out there are errors in some 
code examples, and the site specially made to download corrections:

http://www.oopas2.com

is not available.at least not on my internet :-)

I agree with your statement that any in-depth treatment of the subject of 
OOA/OOD/OOP will not be written for ActionScript.


As I understand it, in a similar way to the motivation for making PHP5 
much more Java like (in terms of OOP features) ActionScript 2.0 was made 
Java like in order that serious development tools such as UML and design 
patterns could be applied to the language, and so Java/C++/C# developers 
could easily migrate to using Flash.


It makes sense that Flash developers travel that line in the other 
direction and use some of the resources that Java/C++ coders have, such as 
design patterns and UML.


James
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Capped MovieClip._rotation, what can be done?

2006-08-21 Thread Bart Wttewaall

Hi Flashcoders,

I've been busy recreating the famous PageFlip application and I've
noticed something weird. It seems that movieclips have a limitation to
their rotation. When I turn over a page in the application, there are
visible errors in the shadows and masks that make this page up. They
flicker left and right when dragging the page, due to their capped
_rotation property.

Wanna see for yourself? Paste this on your root, then create a rather
wide movieclip (name = mc) and set the fps to 99 for a visible
demonstration:

var rot = 0;
onEnterFrame = function() {
rot += 0.01;
mc._rotation = rot;
}

You'll notice that the movieclip won't rotate smoothly, but rather
tick like a clock, skipping angles.

I've already accepted that there's nothing that can be done about
this, but just to be sure I'd like to ask if anyone has had trouble
with this in their application and what you did about it, either to
mask it up or actually solve this problem.

With regards,
Bart Wttewaall
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Capped MovieClip._rotation, what can be done?

2006-08-21 Thread Mike Cobb

-

As I understand it, flash is limited to rotating objects in steps of 0.1 
degrees.


Mike

Bart Wttewaall wrote:

Hi Flashcoders,

I've been busy recreating the famous PageFlip application and I've
noticed something weird. It seems that movieclips have a limitation to
their rotation. When I turn over a page in the application, there are
visible errors in the shadows and masks that make this page up. They
flicker left and right when dragging the page, due to their capped
_rotation property.

Wanna see for yourself? Paste this on your root, then create a rather
wide movieclip (name = mc) and set the fps to 99 for a visible
demonstration:

var rot = 0;
onEnterFrame = function() {
rot += 0.01;
mc._rotation = rot;
}

You'll notice that the movieclip won't rotate smoothly, but rather
tick like a clock, skipping angles.

I've already accepted that there's nothing that can be done about
this, but just to be sure I'd like to ask if anyone has had trouble
with this in their application and what you did about it, either to
mask it up or actually solve this problem.

With regards,
Bart Wttewaall
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
-
Mike Cobb
Creative Director
HMC Interactive
-
Tel: + 44 (0)845 20 11 462
Mob: + 44 (0)785 52 54 743
Web: http://www.hmcinteractive.co.uk
-
Grosvenor House, Belgrave Lane,
Plymouth, PL4 7DA, UK.
-

I've got a new e-mail address: [EMAIL PROTECTED]
Please update your address book. Thanks.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Capped MovieClip._rotation, what can be done?

2006-08-21 Thread Bart Wttewaall

Just as I thought.. Whoever thought that up should have a good
spanking! It might be sufficient for small movieclips, but it's quite
noticable with large movieclips such as a page in my application that
measures almost half of the Stage.

Makes me wonder though; how about a line being drawn at such an angle?
Will that line be capped as well? -probably not- I'm reluctant to
change my application so that each page, shadow and mask will be drawn
each frame instead of attaching once and rotate them each frame since
this will be a enormous extra strain on the CPU.

I'd like everyones creative input on this subject!

Thanks,
Bart Wttewaall

2006/8/21, Mike Cobb [EMAIL PROTECTED]:

-

As I understand it, flash is limited to rotating objects in steps of 0.1
degrees.

Mike

Bart Wttewaall wrote:
 Hi Flashcoders,

 I've been busy recreating the famous PageFlip application and I've
 noticed something weird. It seems that movieclips have a limitation to
 their rotation. When I turn over a page in the application, there are
 visible errors in the shadows and masks that make this page up. They
 flicker left and right when dragging the page, due to their capped
 _rotation property.

 Wanna see for yourself? Paste this on your root, then create a rather
 wide movieclip (name = mc) and set the fps to 99 for a visible
 demonstration:

 var rot = 0;
 onEnterFrame = function() {
 rot += 0.01;
 mc._rotation = rot;
 }

 You'll notice that the movieclip won't rotate smoothly, but rather
 tick like a clock, skipping angles.

 I've already accepted that there's nothing that can be done about
 this, but just to be sure I'd like to ask if anyone has had trouble
 with this in their application and what you did about it, either to
 mask it up or actually solve this problem.

 With regards,
 Bart Wttewaall
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
-
Mike Cobb
Creative Director
HMC Interactive
-
Tel: + 44 (0)845 20 11 462
Mob: + 44 (0)785 52 54 743
Web: http://www.hmcinteractive.co.uk
-
Grosvenor House, Belgrave Lane,
Plymouth, PL4 7DA, UK.
-

I've got a new e-mail address: [EMAIL PROTECTED]
Please update your address book. Thanks.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] working with dynamic images using mysql database

2006-08-21 Thread bhasker u

HI, all

I was trying to incorporate a small interface in my flash site where I would
like to load 9 thumbnails(images) in 3*3 grid, when ever the mouse moves on
to thumbnails should able to show the enlarged view in given space defined
beside the thumbs, loading the images from a folder is quite simple but here
iam interested to *load images from databse* using mysql.

can any one of u plz help me on this.

--
Bhasker.U
Web Designer,
9848486884.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] PHP sessions in AS2

2006-08-21 Thread james

At 17:04 19/08/2006, Jamie P wrote:

Cookies are automatically passed by the browser along with your http request
to the server so sessions will work as normal in Flash (when using Flash
embedded in a web page or even when viewing a swf in the browser??).


Sessions seem to work normally (i.e. cookie with session id automatically 
appended to post data in sendandload)


with test movie on firefox on my PC.

http://safetycat.co.uk/test/dpi4/test/AccessControl/logintest.html

in this movie, you press 'reload page' and if you are not logged in you get 
a message telling you 'you are not logged in',

if you log-in user:'hjones', pass: 'easy'
then you press the 'reload page' button you will get a message saying you 
are logger in, until you click 'log out'


thing is this movie sometimes the movie doesn't work... I mean not just the 
sessions but the whole loadVars doesn't seem to work, it worked for a while 
on MSIE on windows (flash player 8), but then it stopped working (???) it 
always works under firefox (flash payer 8)  but never ever worked on Safari 
on Mac OS X.


it uses a simple load or sendAndLoad with a onload event handler as 
described in every flash book I have. The file is calls is at

http://www.safetycat.co.uk/test/dpi4/test/AccessControl/flashtest.php

anyone know what could be the problem with those browsers??

James

p.s. now it has stopped working on firefox mac os X. anyone any 
suggestions?





On 8/19/06, James Marsden [EMAIL PROTECTED] wrote:


Hey,

You request and write the session variables to and from a PHP script via
LoadVars.

There's no inbuilt/prescribed method for managing and interacting with
sessions using Flash (as far as I know), so you just need to have some
basic class/function templates to talk between Flash and PHP.

HTH,

James



james wrote:
 Hi

 I have searched everywhere for a general tutorial on how to handle PHP
 sessions with Flash.

 I have built lots of web applications that use HTML/PHP using
 sessions, in that situation session_id is automatically sent with the
 POST data.

 How is it done in flash. I have googled 'session_id actionscript as2'
 but can't find a general explanation of how sessions are handled in
 as2/flash.

 In my application I just want to build a layer of actionscript objects
 which automatically handles sessions which I can reuse in other flash
 applications so I just need a general explanation.

 can anyone provide a link, or just a few sentences that say something
 like 'when using sessions do getURL(checkout.php, , POST,
 SESSION);' come on guys/girls!!! it must be quite easy otherwise
 there would be tutorials all over the web!!! What am I missing!!!

 Please help!

 James  ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
My home page http://jamiep.org
Phone no : +44 20 7558 8136 or +91 93 18 636 991

Skype Name : jamiepratt
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Best way to learn OO Analysis and Design with ActionScript

2006-08-21 Thread Merrill, Jason
I also
recommend downloading an Enterprise Architect trial
http://www.sparxsystems.com/ or Poseidon

Hmmm, I think however that software like Enterprise Architect is far too
complex and requires at least minimal UML knowledge for someone just
trying to wrap their head around OOP.  It's a great tool, but very
overwhelming to someone just trying to get the basics of OOP down.  I
would at least get the basics of UML down first before downloading that
tool.

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] vars with $

2006-08-21 Thread Merrill, Jason
Curious, what does, mechanically generated code mean? Space robots?

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] working with dynamic images using mysql database

2006-08-21 Thread julien castelain

hi,

you should have a look at amfphp (www.amfphp.org)
it's really cool :)

On 8/21/06, bhasker u [EMAIL PROTECTED] wrote:


HI, all

I was trying to incorporate a small interface in my flash site where I
would
like to load 9 thumbnails(images) in 3*3 grid, when ever the mouse moves
on
to thumbnails should able to show the enlarged view in given space defined
beside the thumbs, loading the images from a folder is quite simple but
here
iam interested to *load images from databse* using mysql.

can any one of u plz help me on this.

--
Bhasker.U
Web Designer,
9848486884.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] vars with $

2006-08-21 Thread Alias

I disagree. We use them to denote class members, and I've found it
very effective.

Alias

On 8/18/06, Greg Burch [EMAIL PROTECTED] wrote:

Using $ in flash is just wierd :). There is no special meaning - I
don't think it should even be valid.

On 8/18/06, Tom Lee [EMAIL PROTECTED] wrote:
 I've used it to indicate arguments in a function to clarify the origin of
 the variable, like this:

 function myFunc($arg1,$arg2){
 trace($arg1+ : +$arg2);
 }

 I don't know where I picked that up, but for me it makes the code easier to
 read since you know immediately they are arguments.  I've seen people use
 the underscore for the same purpose, but that can confuse things since
 ActionScript uses that for some native properties (_x,_y).

 Does anyone else do this, or am I just in my own little universe?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
 Jason
 Sent: Friday, August 18, 2006 4:27 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] vars with $

 In addition, some programmers also use $ to indicate a string.

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions






 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Paul Venton
 Sent: Friday, August 18, 2006 2:49 PM
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] vars with $
 
 I know PHP uses it and TorqueScript use $ and % to differentiate
 between
 global ($) and local (%) variables but it has no special meaning in
 Flash.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 [EMAIL PROTECTED]
 Sent: 18 August 2006 19:27
 To: Flashcoders mailing list
 Subject: [Flashcoders] vars with $
 
 Hi,
 Can anyone tell me what special meaning vars with $ have...
 thanks
 
 b
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] RE: weather web service

2006-08-21 Thread Robert Chyko
Guess actually sending the link might help

http://www.nws.noaa.gov/forecasts/xml/


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Chyko
Sent: Monday, August 21, 2006 10:05 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] RE: weather web service


Haven't used it, but I remembered seeing this before.

I'm assuming it is US only though... So may not be of any help.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Monday, August 21, 2006 2:27 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] RE: weather web service


Yes there definitely must be more. Even the yahoo weather widget shows
the forecast for the next four days.  So it must be using a different
feed too (the yahoo feed just gives you the forecast for the next day).

Robin



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn
Schultheiss
Sent: Monday, 21 August 2006 3:59 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] RE: weather web service

I'm sure there are more.
In firefox I use the accuweather extension that must be pulling its data
from a feed also.
What about those weather widgets on MAC, they'd be using another feed I
guess. 


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Monday, 21 August 2006 3:27 PM
To: Flashcoders mailing list
Subject: [Flashcoders] RE: weather web service


Thanks Bjorn,

This one seems to be a bit better than the Yahoo feed. What I like about
the
yahoo feed though is that it returns you a weather code for each
weather
condition (e.g. 29 for cloudy). This is really handy if you want
visualize
the current weather condition.
Well I guess you can't have it all...

Cheers

Robin


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn
Schultheiss
Sent: Monday, 21 August 2006 2:53 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] htacess and loaded SWFs

Hey Robin,

Try http://www.webservicex.net/WS/WSDetails.aspx?CATID=12WSID=56
I used ServiceCapture on Eric Dolecki's blog www.ericd.net and found it
in
the traffic logs


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Monday, 21 August 2006 2:37 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] htacess and loaded SWFs

Hi there,

Does anybody know if there is free weather forecast web-service?
I went to the yahoo website but all I could find is an RSS feed, which
seems
to be a bit buggy. Plus it only gives you the forecast the next day. 

Thanks

Robin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Haikal
Saadh
Sent: Monday, 21 August 2006 1:51 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] htacess and loaded SWFs

This would be why: 
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b06f1712

 Currently the SWF format does not include HTTP referrer information 
 when sending http requests. Macromedia is aware of this issue and is 
 considering possible future solutions.


Jay Bibby wrote:
 Hi folks,

 I've spent all evening trying to find an answer to this question, and 
 I've just recently subscribed to this list, so I apologize in advance 
 if this has already been covered.

 I have set up a directory to serve up SWFs from with an htaccess file 
 that prevents direct access to the SWFs or from domains other than my 
 own. This is working fine... when an HTML or PHP file on my domain is 
 the file that is loading the SWF.

 However, when the same HTML or PHP file loads a SWF that then tries to

 load another SWF from the same directory, htaccess prevents it. I am 
 using a MovieClipLoader to load the external SWF.

 How is loading a SWF from within a SWF different to Apache than 
 loading the same SWF from an HTML or PHP file?

 I'm pulling my hair out here. Thanks in advance.

 Jay
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com

--
Haikal Saadh
Applications Programmer
ICT Resources, TALSS
QUT Kelvin Grove

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___

[Flashcoders] Re: Flashcoders Digest, Vol 19, Issue 63

2006-08-21 Thread wouter
Geachte heer/mevrouw,

Ik ben t/m 25 augustus afwezig. Ik zal uw mail daarna zo snel mogelijk in 
behandeling nemen. Voor dringende zaken met betrekking tot WEBclusive kunt u 
ons kantoor bellen op het volgende nummer: 070-3699 817

Met vriendelijke groet,

Wouter van Vliet
WEBclusive
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] RE: weather web service

2006-08-21 Thread Robert Chyko
Haven't used it, but I remembered seeing this before.

I'm assuming it is US only though... So may not be of any help.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Monday, August 21, 2006 2:27 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] RE: weather web service


Yes there definitely must be more. Even the yahoo weather widget shows
the forecast for the next four days.  So it must be using a different
feed too (the yahoo feed just gives you the forecast for the next day).

Robin



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn
Schultheiss
Sent: Monday, 21 August 2006 3:59 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] RE: weather web service

I'm sure there are more.
In firefox I use the accuweather extension that must be pulling its data
from a feed also.
What about those weather widgets on MAC, they'd be using another feed I
guess. 


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Monday, 21 August 2006 3:27 PM
To: Flashcoders mailing list
Subject: [Flashcoders] RE: weather web service


Thanks Bjorn,

This one seems to be a bit better than the Yahoo feed. What I like about
the
yahoo feed though is that it returns you a weather code for each
weather
condition (e.g. 29 for cloudy). This is really handy if you want
visualize
the current weather condition.
Well I guess you can't have it all...

Cheers

Robin


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn
Schultheiss
Sent: Monday, 21 August 2006 2:53 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] htacess and loaded SWFs

Hey Robin,

Try http://www.webservicex.net/WS/WSDetails.aspx?CATID=12WSID=56
I used ServiceCapture on Eric Dolecki's blog www.ericd.net and found it
in
the traffic logs


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Monday, 21 August 2006 2:37 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] htacess and loaded SWFs

Hi there,

Does anybody know if there is free weather forecast web-service?
I went to the yahoo website but all I could find is an RSS feed, which
seems
to be a bit buggy. Plus it only gives you the forecast the next day. 

Thanks

Robin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Haikal
Saadh
Sent: Monday, 21 August 2006 1:51 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] htacess and loaded SWFs

This would be why: 
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b06f1712

 Currently the SWF format does not include HTTP referrer information 
 when sending http requests. Macromedia is aware of this issue and is 
 considering possible future solutions.


Jay Bibby wrote:
 Hi folks,

 I've spent all evening trying to find an answer to this question, and 
 I've just recently subscribed to this list, so I apologize in advance 
 if this has already been covered.

 I have set up a directory to serve up SWFs from with an htaccess file 
 that prevents direct access to the SWFs or from domains other than my 
 own. This is working fine... when an HTML or PHP file on my domain is 
 the file that is loading the SWF.

 However, when the same HTML or PHP file loads a SWF that then tries to

 load another SWF from the same directory, htaccess prevents it. I am 
 using a MovieClipLoader to load the external SWF.

 How is loading a SWF from within a SWF different to Apache than 
 loading the same SWF from an HTML or PHP file?

 I'm pulling my hair out here. Thanks in advance.

 Jay
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com

--
Haikal Saadh
Applications Programmer
ICT Resources, TALSS
QUT Kelvin Grove

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___

[Flashcoders] Using assets from external SWF

2006-08-21 Thread Samúel Jónasson

Hi everyone,

I am trying to find out how to use external SWF as a library of assets 
that I can instantiate in my as3 projects. I have gone through several 
articles that almost explain this.  One in particular is Loading Flex 
Skins at Runtime at http://blogs.adobe.com/kiwi/2006/07/


Basically I want to have my assets (skins, icons etc) in this external 
swf (assets.swf ) that I create in Flash 9.  Then load that file with 
the Loader class at runtime in an as3 project and instantiate the 
classes of the assets to add them to the stage, once or more.


Does anyone have a working sample of this?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Using assets from external SWF

2006-08-21 Thread Matthew Ganz

hi.

i don't have the answer to your question but i did see this post on keith 
peters' blog this morning that may help you out:


http://www.bit-101.com/blog/?p=853
- Original Message - 
From: Samúel Jónasson [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Monday, August 21, 2006 10:31 AM
Subject: [Flashcoders] Using assets from external SWF



Hi everyone,

I am trying to find out how to use external SWF as a library of assets 
that I can instantiate in my as3 projects. I have gone through several 
articles that almost explain this.  One in particular is Loading Flex 
Skins at Runtime at http://blogs.adobe.com/kiwi/2006/07/


Basically I want to have my assets (skins, icons etc) in this external swf 
(assets.swf ) that I create in Flash 9.  Then load that file with the 
Loader class at runtime in an as3 project and instantiate the classes of 
the assets to add them to the stage, once or more.


Does anyone have a working sample of this?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] How does registerClass() / registerClassAlias() work internally?

2006-08-21 Thread Marcelo de Moraes Serpa

It always intrigued me how this method worked internally. First, when I
register this (AS2):

Object.registerClass('mylinkageid_or_myobjectname',myclass);

1)How does flash knows that each time I create a new instance of the
object/movieclip symbol it should attach it to the class specified? Is it
internal to the Flash Player OR is it implemented in pure ActionScript? Does
Flash keep a kind of a dictionary list or hash table to keep all these
values?

2)What also defies me is how does flash automatically instantiates the
correct Value Object class when you use a application server such as AMFPHP
1.2... does AMFPPHP send a class namepsace metadata together with the object
and the flash remoting engine reads that and then applies the correct class
depending on the class that has been registered with registerClass() /
registerClassAlias() (Flex 2)?

Thanks,

Marcelo.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Using assets from external SWF

2006-08-21 Thread Samúel Jónasson

His.

thank you for your response.

I had read this article as well but didn't find the solution to my 
problem.  It is really important for me not to have to compile my app 
when the skin changes - so they need to load at runtime.  So if I have 
two files:


- assets.swf
- app.swf

...the symbols in assets.swf have a auto generated classes.  So a 
Star symbol would have a Star class generated on export.
Then app.swf loads the assets.swf at runtime of with some magic ( as 
explained in some of the articles ) has access to the classes in 
assets.swf and can instantiate them.


So if i need a star:

var myStar:Star = new Star();
addChild(myStar);

...and I get the symbol created in assets.swf.


Matthew Ganz wrote:

hi.

i don't have the answer to your question but i did see this post on 
keith peters' blog this morning that may help you out:


http://www.bit-101.com/blog/?p=853
- Original Message - From: Samúel Jónasson 
[EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Monday, August 21, 2006 10:31 AM
Subject: [Flashcoders] Using assets from external SWF



Hi everyone,

I am trying to find out how to use external SWF as a library of 
assets that I can instantiate in my as3 projects. I have gone through 
several articles that almost explain this.  One in particular is 
Loading Flex Skins at Runtime at http://blogs.adobe.com/kiwi/2006/07/


Basically I want to have my assets (skins, icons etc) in this 
external swf (assets.swf ) that I create in Flash 9.  Then load that 
file with the Loader class at runtime in an as3 project and 
instantiate the classes of the assets to add them to the stage, 
once or more.


Does anyone have a working sample of this?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] JOB: Full time and contract work at ID Society in New York

2006-08-21 Thread Mike Brittain
ID Society (New York, NY) is currently looking for a full-time, on-site
ActionScript developer who has some experience with standards-compliant
XHTML and CSS development.  Please see our recent job posting:

http://jobs.37signals.com/jobs/361

I would also like to hear from any contractors (preferably New
York-based) who are expert-level ActionScripters and would be interested
in working with us.  

Please respond with all inquiries about these positions to
[EMAIL PROTECTED]

Thank you,
Mike

-- 
 
MIKE BRITTAIN
Director of Technology

ID Society, Inc.
138 West 25th Street, 9th Floor
New York, NY 10001
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How does registerClass() / registerClassAlias() work internally?

2006-08-21 Thread Martin Wood



Marcelo de Moraes Serpa wrote:

It always intrigued me how this method worked internally. First, when I
register this (AS2):

Object.registerClass('mylinkageid_or_myobjectname',myclass);

1)How does flash knows that each time I create a new instance of the
object/movieclip symbol it should attach it to the class specified? Is it
internal to the Flash Player OR is it implemented in pure ActionScript? 
Does

Flash keep a kind of a dictionary list or hash table to keep all these
values?


I believe it is internal to the flash player. The same mechanism is used for 
local shared objects. I dont know how its stored or how it works and i've not 
noticed anything relating to it in the remoting source code that they provide.



2)What also defies me is how does flash automatically instantiates the
correct Value Object class when you use a application server such as AMFPHP
1.2... does AMFPPHP send a class namepsace metadata together with the 
object

and the flash remoting engine reads that and then applies the correct class
depending on the class that has been registered with registerClass() /
registerClassAlias() (Flex 2)?


exactly.

if you look at the AMFPHP source (or some AMF specs...i just have the source to 
hand) you'll see that the classname is written into the AMF packet by the 
serializer :


$this-writeUTF($classname); // write the class name

(in AMFSerializer.php)

the player then reads the AMF packet, decodes the class name and instantiates 
that type for you.


thanks.

Martin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] oop question kind of...

2006-08-21 Thread [b) a d i
Hi,
i've noticed that just because you call delete on a movie clip or even an
object doesn't mean that it totally goes away.  Does anyone know how to
destroy and object and really have it go away since there are no destructors
in as2?

thanks

b

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Alias

AS2 uses reference counted garbage collection, so to completely delete
an object, you must delete all other objects that refer to it. Calling
delete on a movie clip only removes the reference to the movieclip
object on the stage.

HTH,
Alias



On 8/21/06, [b) a d i [EMAIL PROTECTED] wrote:

Hi,
i've noticed that just because you call delete on a movie clip or even an
object doesn't mean that it totally goes away.  Does anyone know how to
destroy and object and really have it go away since there are no destructors
in as2?

thanks

b

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Ramon Miguel M. Tayag

Have you tried mc.removeMovieClip() ?

On 8/21/06, [b) a d i [EMAIL PROTECTED] wrote:

Hi,
i've noticed that just because you call delete on a movie clip or even an
object doesn't mean that it totally goes away.  Does anyone know how to
destroy and object and really have it go away since there are no destructors
in as2?

thanks

b


--
Ramon Miguel M. Tayag
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] RE: weather web service

2006-08-21 Thread Wade Arnold
You must register and create an account.  Then you will get email
instructions for access to the sdk.

https://registration.weather.com/ursa/xmloap/step1?




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Chyko
Sent: Monday, August 21, 2006 9:07 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] RE: weather web service

Guess actually sending the link might help

http://www.nws.noaa.gov/forecasts/xml/


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Chyko
Sent: Monday, August 21, 2006 10:05 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] RE: weather web service


Haven't used it, but I remembered seeing this before.

I'm assuming it is US only though... So may not be of any help.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Monday, August 21, 2006 2:27 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] RE: weather web service


Yes there definitely must be more. Even the yahoo weather widget shows
the forecast for the next four days.  So it must be using a different
feed too (the yahoo feed just gives you the forecast for the next day).

Robin



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn
Schultheiss
Sent: Monday, 21 August 2006 3:59 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] RE: weather web service

I'm sure there are more.
In firefox I use the accuweather extension that must be pulling its data
from a feed also.
What about those weather widgets on MAC, they'd be using another feed I
guess. 


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Monday, 21 August 2006 3:27 PM
To: Flashcoders mailing list
Subject: [Flashcoders] RE: weather web service


Thanks Bjorn,

This one seems to be a bit better than the Yahoo feed. What I like about
the
yahoo feed though is that it returns you a weather code for each
weather
condition (e.g. 29 for cloudy). This is really handy if you want
visualize
the current weather condition.
Well I guess you can't have it all...

Cheers

Robin


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn
Schultheiss
Sent: Monday, 21 August 2006 2:53 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] htacess and loaded SWFs

Hey Robin,

Try http://www.webservicex.net/WS/WSDetails.aspx?CATID=12WSID=56
I used ServiceCapture on Eric Dolecki's blog www.ericd.net and found it
in
the traffic logs


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Monday, 21 August 2006 2:37 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] htacess and loaded SWFs

Hi there,

Does anybody know if there is free weather forecast web-service?
I went to the yahoo website but all I could find is an RSS feed, which
seems
to be a bit buggy. Plus it only gives you the forecast the next day. 

Thanks

Robin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Haikal
Saadh
Sent: Monday, 21 August 2006 1:51 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] htacess and loaded SWFs

This would be why: 
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b06f1712

 Currently the SWF format does not include HTTP referrer information 
 when sending http requests. Macromedia is aware of this issue and is 
 considering possible future solutions.


Jay Bibby wrote:
 Hi folks,

 I've spent all evening trying to find an answer to this question, and 
 I've just recently subscribed to this list, so I apologize in advance 
 if this has already been covered.

 I have set up a directory to serve up SWFs from with an htaccess file 
 that prevents direct access to the SWFs or from domains other than my 
 own. This is working fine... when an HTML or PHP file on my domain is 
 the file that is loading the SWF.

 However, when the same HTML or PHP file loads a SWF that then tries to

 load another SWF from the same directory, htaccess prevents it. I am 
 using a MovieClipLoader to load the external SWF.

 How is loading a SWF from within a SWF different to Apache than 
 loading the same SWF from an HTML or PHP file?

 I'm pulling my hair out here. Thanks in advance.

 Jay
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com

--
Haikal Saadh
Applications Programmer
ICT Resources, TALSS
QUT Kelvin Grove


Re: [Flashcoders] Using assets from external SWF

2006-08-21 Thread Samúel Jónasson

Solved it.

Actually I was complicating things when trying to use the samples in 
other articles.  Do this if you are interested in checking:


- Create a skin.swf
- Create one symbol and export it as Button_up
- Publish to build the swf.
- Use the following to include the skin at runtime.

package {
  
   import flash.display.*;

   import flash.errors.*;
   import flash.events.*;
   import flash.system.*;
   import flash.net.*;


   public class SkinTest extends Sprite{
  
   private var theSkin:Loader;
  
   public function SkinTest(){   
   loadSkin();   
   }   
  
   private function loadSkin():void{
  
   theSkin = new Loader();
   theSkin.contentLoaderInfo.addEventListener(Event.COMPLETE, 
skinLoadedHandler);

   theSkin.load(new URLRequest(skin.swf));

   }   
  
   private function skinLoadedHandler(event:Event):void{


   // try to use symbol from skin.swf
   var asset:Sprite = getSkinAsset(Button_up);
   addChild(asset);
  
   }   
  
   private function getSkinAsset(skinAsset:String){
  
   var assetClass:Class = 
theSkin.contentLoaderInfo.applicationDomain.getDefinition(skinAsset) as 
Class;

   var asset:Object = new assetClass();
  
   return asset;
  
   }
  
   }
  
}



I hope this helps someone.

Sammi


Samúel Jónasson wrote:

His.

thank you for your response.

I had read this article as well but didn't find the solution to my 
problem.  It is really important for me not to have to compile my app 
when the skin changes - so they need to load at runtime.  So if I have 
two files:


- assets.swf
- app.swf

...the symbols in assets.swf have a auto generated classes.  So a 
Star symbol would have a Star class generated on export.
Then app.swf loads the assets.swf at runtime of with some magic ( as 
explained in some of the articles ) has access to the classes in 
assets.swf and can instantiate them.


So if i need a star:

var myStar:Star = new Star();
addChild(myStar);

...and I get the symbol created in assets.swf.


Matthew Ganz wrote:

hi.

i don't have the answer to your question but i did see this post on 
keith peters' blog this morning that may help you out:


http://www.bit-101.com/blog/?p=853
- Original Message - From: Samúel Jónasson 
[EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Monday, August 21, 2006 10:31 AM
Subject: [Flashcoders] Using assets from external SWF



Hi everyone,

I am trying to find out how to use external SWF as a library of 
assets that I can instantiate in my as3 projects. I have gone 
through several articles that almost explain this.  One in 
particular is Loading Flex Skins at Runtime at 
http://blogs.adobe.com/kiwi/2006/07/


Basically I want to have my assets (skins, icons etc) in this 
external swf (assets.swf ) that I create in Flash 9.  Then load that 
file with the Loader class at runtime in an as3 project and 
instantiate the classes of the assets to add them to the stage, 
once or more.


Does anyone have a working sample of this?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: Flashcoders Digest, Vol 19, Issue 63

2006-08-21 Thread Bart Wttewaall

Wouter, wil je flashcoders uit je auto-respond lijst halen?
2000+ mensen zitten daar niet op te wachten ;)

Groeten, Bart

2006/8/21, [EMAIL PROTECTED] [EMAIL PROTECTED]:

Geachte heer/mevrouw,

Ik ben t/m 25 augustus afwezig. Ik zal uw mail daarna zo snel mogelijk in 
behandeling nemen. Voor dringende zaken met betrekking tot WEBclusive kunt u 
ons kantoor bellen op het volgende nummer: 070-3699 817

Met vriendelijke groet,

Wouter van Vliet
WEBclusive
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Multiple html formattings in a TextField

2006-08-21 Thread Rui Duarte Silva
Hi,

Suppose I have a Dynamic TextField on the stage and I want to:

1. Insert html formatting such as font face=”Arial”This normal
ArialbrbThis is Arial Bold/bbriThis Arial Italic/i/font
2. Embed the font (in order to allow it to be masked and to keep
anti-aliasing)
3. Use it under a mask

Is this possible?

Rui Duarte Silva
Senior Flash Developer / Senior Product Manager
 
MNI - Médicos Na Internet, Saúde na Internet, SA
Alert Life Sciences Computing
 
www.alert-online.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Word processor in Flash

2006-08-21 Thread Catalin Negrila
I've been looking for a while for a word processor component that would 
extend the functionality of the basic rich text editor from Flash but I 
couldn't find any. We are in the planning stages for a new project and 
one of the key things that we would need is a text editor able to handle 
at least pictures and tables if not more.


The first question would be, is there such a component already written 
by somebody else? I don't think the Flex Framework has anything like 
this but even a third party thing that we could license would do.


I'm somewhat familiar with ActionScript with a strong background in C++ 
so I could undertake writing such a component. However the run time 
speed tests that I've made to try to manually compute the layout and 
then cache everything in a bitmap didn't prove too encouraging. Once 
everything is cached in a bitmap you can scroll it just fine but the 
speed at which the layout gets rendered to that bitmap - when the user 
presses a key and causes a word wrap, let's say - is not at all 
interactive.


Any thoughts on this? Is FP9 fast enough but just my approach is wrong? 
Is it possible to develop such a component?


I'd gladly appreciate any suggestions in this matter since our choice of 
Flash kind of hangs on this issue right now...


Thank you in advance!

Catalin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Links disappearing, sometimes

2006-08-21 Thread Chris Clinton
Why do my links appear on come computers and not on others? I have four
areas that contain links in my swf and some computers don't show them. They
show the animation and images, just not the items I have linked. Upon closer
examination it appears as though the person needs to download the latest
version of JAVA to make them work. However, there are some computers where
the viewer has not personally downloaded Java and the links appear.
Any ideas? 
Any way to generate links in Flash that don't need Java support?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Accessing DB files from a Flash Projector ?

2006-08-21 Thread Guy McLoughlin


Hi All,

   I would like to be able to access compact database files ( using 
a DB format with built-in compression )
from a Flash projector without requiring the user to have a DB app 
installed. This should be a stand-alone

runtime solution.

Right now I am thinking of using Zinc with DB DLL libraries, but 
don't know where to start ?


Thanks.


- Guy


--
Guy McLoughlin
New Media Developer
Toronto Ontario Canada
E: [EMAIL PROTECTED]
--- 



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Word processor in Flash

2006-08-21 Thread Merrill, Jason
I recently went through this  - and am still building one now for a
project.  You can use the TextFormat class - works nicely for the text.
However, it doesn't handle img tags - so it's very difficult to insert
an IMG tag and then manually delete it later because in so doing, it
screws up Flash's internal reference table for the TextFormat tags.
What I ended up doing  instead was keep text separate for images -
putting images on their own movieclip and then letting the user position
that.  I put handles on the text areas and movie clips to move them,
move them to the front (depth management) and delete, and also resize
for the text.

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Catalin Negrila
Sent: Monday, August 21, 2006 12:12 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Word processor in Flash

I've been looking for a while for a word processor component that
would
extend the functionality of the basic rich text editor from Flash but
I
couldn't find any. We are in the planning stages for a new project and
one of the key things that we would need is a text editor able to
handle
at least pictures and tables if not more.

The first question would be, is there such a component already written
by somebody else? I don't think the Flex Framework has anything like
this but even a third party thing that we could license would do.

I'm somewhat familiar with ActionScript with a strong background in
C++
so I could undertake writing such a component. However the run time
speed tests that I've made to try to manually compute the layout and
then cache everything in a bitmap didn't prove too encouraging. Once
everything is cached in a bitmap you can scroll it just fine but the
speed at which the layout gets rendered to that bitmap - when the user
presses a key and causes a word wrap, let's say - is not at all
interactive.

Any thoughts on this? Is FP9 fast enough but just my approach is
wrong?
Is it possible to develop such a component?

I'd gladly appreciate any suggestions in this matter since our choice
of
Flash kind of hangs on this issue right now...

Thank you in advance!

Catalin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread [b) a d i
 Have you tried mc.removeMovieClip() ?

yes...i should have mentioned it...

a little background...

this is a question i've had for a long time, but didn't have anyone to ask
it to :)...i've been on the macromedia forums, but most of the time i don't
get the answer i need or i get some wise-aker who feels the need to
over-compensate...i say that to express gratitude at having found
flashcoders...populated by real flash coders :)


the problem i have is after calling removeMovieClip or delete is that when i
need to re-instantiate the object...it's either corrupt or not created
properly...i was a little upset to find so many dangling pointers after i
went thru so much trouble to clean up after myself...


thanks

b

- Original Message -
From: Ramon Miguel M. Tayag [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, August 21, 2006 8:50 AM
Subject: Re: [Flashcoders] oop question kind of...


 Have you tried mc.removeMovieClip() ?

 On 8/21/06, [b) a d i [EMAIL PROTECTED] wrote:
  Hi,
  i've noticed that just because you call delete on a movie clip or even
an
  object doesn't mean that it totally goes away.  Does anyone know how to
  destroy and object and really have it go away since there are no
destructors
  in as2?
 
  thanks
 
  b

 --
 Ramon Miguel M. Tayag
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Ian Thomas

On 8/21/06, [b) a d i [EMAIL PROTECTED] wrote:


the problem i have is after calling removeMovieClip or delete is that when i
need to re-instantiate the object...it's either corrupt or not created
properly...i was a little upset to find so many dangling pointers after i
went thru so much trouble to clean up after myself...



I can't think of a circumstance where this could happen - could you
give us an example?

(Assuming AS2...)

In short, for 'normal' Flash objects (i.e. those created with new
SomeObject()) you're quite
correct, there's no destructor; as with many similar languages,
there's garbage collection system. When nothing is referencing an
object, it gets stuck on the garbage collection list, and will be
properly deleted and the memory freed up when the Flash Player gets
around to it (you can't guarantee exactly when)

For MovieClips created with attachMovie or createEmptyMovieClip,
they're removed from the display list and destroyed using
removeMovieClip(); any dangling references you have to the clip will
become invalid.

HTH,
 Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Alias

Hi there,

For what it's worth...

Previous to flash 8, the flash player uses both reference counting and
mark/sweep garbage collection, which kicks in every 60 seconds or so,
or when the number of allocated objects is increased by 20%. So the
reference counting takes care of the objects without circular
references, and the garbage collection takes care of the rest.

removeMovieClip is problematic in that it's likely to leave lots of
hanging references, and there's not a great deal you can do about that
- it sounds like you have class dependancies outside of the movieclip
object itself. Have you tried using some kind of factory type approach
to manage your deletion/creation?

Can you give more information about how your objects are being corrupted?

Alias


On 8/21/06, [b) a d i [EMAIL PROTECTED] wrote:

 Have you tried mc.removeMovieClip() ?

yes...i should have mentioned it...

a little background...

this is a question i've had for a long time, but didn't have anyone to ask
it to :)...i've been on the macromedia forums, but most of the time i don't
get the answer i need or i get some wise-aker who feels the need to
over-compensate...i say that to express gratitude at having found
flashcoders...populated by real flash coders :)


the problem i have is after calling removeMovieClip or delete is that when i
need to re-instantiate the object...it's either corrupt or not created
properly...i was a little upset to find so many dangling pointers after i
went thru so much trouble to clean up after myself...


thanks

b

- Original Message -
From: Ramon Miguel M. Tayag [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, August 21, 2006 8:50 AM
Subject: Re: [Flashcoders] oop question kind of...


 Have you tried mc.removeMovieClip() ?

 On 8/21/06, [b) a d i [EMAIL PROTECTED] wrote:
  Hi,
  i've noticed that just because you call delete on a movie clip or even
an
  object doesn't mean that it totally goes away.  Does anyone know how to
  destroy and object and really have it go away since there are no
destructors
  in as2?
 
  thanks
 
  b

 --
 Ramon Miguel M. Tayag
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Using assets from external SWF

2006-08-21 Thread Marcelo de Moraes Serpa

Hmmm... it seems that AVM2 has solved the classic problem we had with Flash
that forced us to use RSL to do this kind of thing? I mean, we couldn´t just
load a swf and use it´s assets on the parent context and vice-versa... is it
possible with flex 2?

Marcelo.

On 8/21/06, Samúel Jónasson [EMAIL PROTECTED] wrote:


Solved it.

Actually I was complicating things when trying to use the samples in
other articles.  Do this if you are interested in checking:

- Create a skin.swf
- Create one symbol and export it as Button_up
- Publish to build the swf.
- Use the following to include the skin at runtime.

package {

import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.system.*;
import flash.net.*;


public class SkinTest extends Sprite{

private var theSkin:Loader;

public function SkinTest(){
loadSkin();
}

private function loadSkin():void{

theSkin = new Loader();
theSkin.contentLoaderInfo.addEventListener(Event.COMPLETE,
skinLoadedHandler);
theSkin.load(new URLRequest(skin.swf));

}

private function skinLoadedHandler(event:Event):void{

// try to use symbol from skin.swf
var asset:Sprite = getSkinAsset(Button_up);
addChild(asset);

}

private function getSkinAsset(skinAsset:String){

var assetClass:Class =
theSkin.contentLoaderInfo.applicationDomain.getDefinition(skinAsset) as
Class;
var asset:Object = new assetClass();

return asset;

}

}

}


I hope this helps someone.

Sammi


Samúel Jónasson wrote:
 His.

 thank you for your response.

 I had read this article as well but didn't find the solution to my
 problem.  It is really important for me not to have to compile my app
 when the skin changes - so they need to load at runtime.  So if I have
 two files:

 - assets.swf
 - app.swf

 ...the symbols in assets.swf have a auto generated classes.  So a
 Star symbol would have a Star class generated on export.
 Then app.swf loads the assets.swf at runtime of with some magic ( as
 explained in some of the articles ) has access to the classes in
 assets.swf and can instantiate them.

 So if i need a star:

 var myStar:Star = new Star();
 addChild(myStar);

 ...and I get the symbol created in assets.swf.


 Matthew Ganz wrote:
 hi.

 i don't have the answer to your question but i did see this post on
 keith peters' blog this morning that may help you out:

 http://www.bit-101.com/blog/?p=853
 - Original Message - From: Samúel Jónasson
 [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Monday, August 21, 2006 10:31 AM
 Subject: [Flashcoders] Using assets from external SWF


 Hi everyone,

 I am trying to find out how to use external SWF as a library of
 assets that I can instantiate in my as3 projects. I have gone
 through several articles that almost explain this.  One in
 particular is Loading Flex Skins at Runtime at
 http://blogs.adobe.com/kiwi/2006/07/

 Basically I want to have my assets (skins, icons etc) in this
 external swf (assets.swf ) that I create in Flash 9.  Then load that
 file with the Loader class at runtime in an as3 project and
 instantiate the classes of the assets to add them to the stage,
 once or more.

 Does anyone have a working sample of this?


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf 

Re: [Flashcoders] Actionscript 3.0 compiler Qs

2006-08-21 Thread Kevin Newman

Sweet! Thanks for the info.

Kevin N.


Nicolas Cannasse wrote:
Here are some things I've been wondering about Actionscript 3.0s 
compiler and runtime engines:


I'm assuming AS 3.0 compiles to a bytecode. What kind of bytecode 
does it compile to? Is it more like Java/.NET CLR, or more like 
Mozilla's Spidermonkey compiler?


I don't know about SpiderMonkey, but AS3 bytecode is similar to Java 
one. It's actually more complicated since there is several way to 
access the properties (using prototype, traits or slots).


Does the compiled code get recompiled during runtime to machine code 
(like a JIT compiler) or does it get interpreted?


Some Adobe presentation on the subjet was saying that all the code get 
JIT'ed, except the $iinit and $cinit functions which are the one 
defining the classes and initializing their static variables.


Also, how does the compiler deal with typing? Statically typed, 
compiled languages usually have the type set in stone at compile time 
whereas dynamically typed, interpreted languages like javascript and 
php can do type coercion at runtime on the fly. Which one does the 
Actionscript 3.0 runtime do? Does it do both depending on whether the 
type is static or dynamic?


The complete class structure with type is stored into the Flash9 SWF. 
Then local (per-function) type-inference is performed to check the 
types coherency. There is some bytecode options that perform 
type-casting. For instance everytime a value is stored into an untyped 
variable, the opcode 0x82 is forgetting about the original value type.


This makes things actually pretty difficult for other languages with 
different type system to be compiled to Flash9 bytecode, but I could 
succeed in doing it for haXe (http://haxe.org).


I started documenting the Flash9 file format on 
http://osflash.org/flash9, you can start reading there, but only the 
haXe swf library sources are containing the complete specification :


http://cvs.motion-twin.com/horde/chora/browse.php?rt=ocamlf=swflib

Nicolas



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread badimalik
Have you tried using some kind of factory type approach 
 to manage your deletion/creation? 
yes, i use adts quite often...in fact i use the mvc pattern for quite a few 
apps i create.  So i have views that instantiate whatever movieclips it needs 
and deletes them when it doesn't need them.  the problem begins when a view 
needs to go away either because it is being replaced by another view or 
refreshed.  i noticed that the clips that were supposed to be deleted weren't 
really...futhermore, when being reinstantiated, they won't accept values...they 
exist, but they're undefined somehow...

b

-- Original message -- 
From: Alias [EMAIL PROTECTED] 

 Hi there, 
 
 For what it's worth... 
 
 Previous to flash 8, the flash player uses both reference counting and 
 mark/sweep garbage collection, which kicks in every 60 seconds or so, 
 or when the number of allocated objects is increased by 20%. So the 
 reference counting takes care of the objects without circular 
 references, and the garbage collection takes care of the rest. 
 
 removeMovieClip is problematic in that it's likely to leave lots of 
 hanging references, and there's not a great deal you can do about that 
 - it sounds like you have class dependancies outside of the movieclip 
 object itself. Have you tried using some kind of factory type approach 
 to manage your deletion/creation? 
 
 Can you give more information about how your objects are being corrupted? 
 
 Alias 
 
 
 On 8/21/06, [b) a d i wrote: 
   Have you tried mc.removeMovieClip() ? 
  
  yes...i should have mentioned it... 
  
  a little background... 
  
  this is a question i've had for a long time, but didn't have anyone to ask 
  it to :)...i've been on the macromedia forums, but most of the time i don't 
  get the answer i need or i get some wise-aker who feels the need to 
  over-compensate...i say that to express gratitude at having found 
  flashcoders...populated by real flash coders :) 
  
  
  the problem i have is after calling removeMovieClip or delete is that when 
  i 
  need to re-instantiate the object...it's either corrupt or not created 
  properly...i was a little upset to find so many dangling pointers after i 
  went thru so much trouble to clean up after myself... 
  
  
  thanks 
  
  b 
  
  - Original Message - 
  From: Ramon Miguel M. Tayag 
  To: Flashcoders mailing list 
  Sent: Monday, August 21, 2006 8:50 AM 
  Subject: Re: [Flashcoders] oop question kind of... 
  
  
   Have you tried mc.removeMovieClip() ? 
   
   On 8/21/06, [b) a d i wrote: 
Hi, 
i've noticed that just because you call delete on a movie clip or even 
  an 
object doesn't mean that it totally goes away. Does anyone know how to 
destroy and object and really have it go away since there are no 
  destructors 
in as2? 

thanks 

b 
   
   -- 
   Ramon Miguel M. Tayag 
   ___ 
   Flashcoders@chattyfig.figleaf.com 
   To change your subscription options or search the archive: 
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
   
   Brought to you by Fig Leaf Software 
   Premier Authorized Adobe Consulting and Training 
   http://www.figleaf.com 
   http://training.figleaf.com 
  
  ___ 
  Flashcoders@chattyfig.figleaf.com 
  To change your subscription options or search the archive: 
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
  
  Brought to you by Fig Leaf Software 
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com 
  http://training.figleaf.com 
  
 ___ 
 Flashcoders@chattyfig.figleaf.com 
 To change your subscription options or search the archive: 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
 
 Brought to you by Fig Leaf Software 
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com 
 http://training.figleaf.com 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Johannes Nel

it sounds to me that you are using the same depth or instance name for a new
clip before removing the old one.

On 8/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Have you tried using some kind of factory type approach
 to manage your deletion/creation?
yes, i use adts quite often...in fact i use the mvc pattern for quite a
few apps i create.  So i have views that instantiate whatever movieclips it
needs and deletes them when it doesn't need them.  the problem begins when a
view needs to go away either because it is being replaced by another view or
refreshed.  i noticed that the clips that were supposed to be deleted
weren't really...futhermore, when being reinstantiated, they won't accept
values...they exist, but they're undefined somehow...

b

-- Original message --
From: Alias [EMAIL PROTECTED]

 Hi there,

 For what it's worth...

 Previous to flash 8, the flash player uses both reference counting and
 mark/sweep garbage collection, which kicks in every 60 seconds or so,
 or when the number of allocated objects is increased by 20%. So the
 reference counting takes care of the objects without circular
 references, and the garbage collection takes care of the rest.

 removeMovieClip is problematic in that it's likely to leave lots of
 hanging references, and there's not a great deal you can do about that
 - it sounds like you have class dependancies outside of the movieclip
 object itself. Have you tried using some kind of factory type approach
 to manage your deletion/creation?

 Can you give more information about how your objects are being
corrupted?

 Alias


 On 8/21/06, [b) a d i wrote:
   Have you tried mc.removeMovieClip() ?
 
  yes...i should have mentioned it...
 
  a little background...
 
  this is a question i've had for a long time, but didn't have anyone to
ask
  it to :)...i've been on the macromedia forums, but most of the time i
don't
  get the answer i need or i get some wise-aker who feels the need to
  over-compensate...i say that to express gratitude at having found
  flashcoders...populated by real flash coders :)
 
 
  the problem i have is after calling removeMovieClip or delete is that
when i
  need to re-instantiate the object...it's either corrupt or not created
  properly...i was a little upset to find so many dangling pointers
after i
  went thru so much trouble to clean up after myself...
 
 
  thanks
 
  b
 
  - Original Message -
  From: Ramon Miguel M. Tayag
  To: Flashcoders mailing list
  Sent: Monday, August 21, 2006 8:50 AM
  Subject: Re: [Flashcoders] oop question kind of...
 
 
   Have you tried mc.removeMovieClip() ?
  
   On 8/21/06, [b) a d i wrote:
Hi,
i've noticed that just because you call delete on a movie clip or
even
  an
object doesn't mean that it totally goes away. Does anyone know
how to
destroy and object and really have it go away since there are no
  destructors
in as2?
   
thanks
   
b
  
   --
   Ramon Miguel M. Tayag
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Actionscript 3.0 compiler Qs

2006-08-21 Thread Marcelo de Moraes Serpa

Thanks for the valuable information Nicolas. I strongly think you should
write a book on Flash Player internals! This would be the missing piece for
mastering the flash platform... I really miss this kind of information and a
good dummie introduction to them (There's isn't such a book available...)

Cheers,

Marcelo

On 8/21/06, Kevin Newman [EMAIL PROTECTED] wrote:


Sweet! Thanks for the info.

Kevin N.


Nicolas Cannasse wrote:
 Here are some things I've been wondering about Actionscript 3.0s
 compiler and runtime engines:

 I'm assuming AS 3.0 compiles to a bytecode. What kind of bytecode
 does it compile to? Is it more like Java/.NET CLR, or more like
 Mozilla's Spidermonkey compiler?

 I don't know about SpiderMonkey, but AS3 bytecode is similar to Java
 one. It's actually more complicated since there is several way to
 access the properties (using prototype, traits or slots).

 Does the compiled code get recompiled during runtime to machine code
 (like a JIT compiler) or does it get interpreted?

 Some Adobe presentation on the subjet was saying that all the code get
 JIT'ed, except the $iinit and $cinit functions which are the one
 defining the classes and initializing their static variables.

 Also, how does the compiler deal with typing? Statically typed,
 compiled languages usually have the type set in stone at compile time
 whereas dynamically typed, interpreted languages like javascript and
 php can do type coercion at runtime on the fly. Which one does the
 Actionscript 3.0 runtime do? Does it do both depending on whether the
 type is static or dynamic?

 The complete class structure with type is stored into the Flash9 SWF.
 Then local (per-function) type-inference is performed to check the
 types coherency. There is some bytecode options that perform
 type-casting. For instance everytime a value is stored into an untyped
 variable, the opcode 0x82 is forgetting about the original value type.

 This makes things actually pretty difficult for other languages with
 different type system to be compiled to Flash9 bytecode, but I could
 succeed in doing it for haXe (http://haxe.org).

 I started documenting the Flash9 file format on
 http://osflash.org/flash9, you can start reading there, but only the
 haXe swf library sources are containing the complete specification :

 http://cvs.motion-twin.com/horde/chora/browse.php?rt=ocamlf=swflib

 Nicolas


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Better XML parsin

2006-08-21 Thread Flash Mel

Hello everyone,

There has to be a better way to parse XML.  Using for loops seems
antiquated.  Could I do a while loop and cycle through all the
possible nodes?  What else is out there for parsing XML in a cleaner
fashion?

Cheers!

fM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Actionscript 3.0 compiler Qs

2006-08-21 Thread Martin Wood
Does the compiled code get recompiled during runtime to machine code 
(like a JIT compiler) or does it get interpreted?


Some Adobe presentation on the subjet was saying that all the code get 
JIT'ed, except the $iinit and $cinit functions which are the one 
defining the classes and initializing their static variables.


I just read that the other day and was wondering why?

Personally I cant really think of why constructors and initialization should be 
interpreted and not JIT'ed but im sure someone can think of good reasons.


this is the paper if anyone is interested :

http://www.onflex.org/ACDS/AS3TuningInsideAVM2JIT.pdf


thanks,

Martin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Better XML parsin

2006-08-21 Thread Johannes Nel

xpath

On 8/21/06, Flash Mel [EMAIL PROTECTED] wrote:


Hello everyone,

There has to be a better way to parse XML.  Using for loops seems
antiquated.  Could I do a while loop and cycle through all the
possible nodes?  What else is out there for parsing XML in a cleaner
fashion?

Cheers!

fM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Accessing DB files from a Flash Projector ?

2006-08-21 Thread jim
SWFStudio with the SQLite plugin has worked well for me. 

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Guy
McLoughlin
Sent: 21 August 2006 17:27
To: Flashcoders mailing list
Subject: [Flashcoders] Accessing DB files from a Flash Projector ?


Hi All,

I would like to be able to access compact database files ( using 
a DB format with built-in compression )
from a Flash projector without requiring the user to have a DB app 
installed. This should be a stand-alone
runtime solution.

Right now I am thinking of using Zinc with DB DLL libraries, but 
don't know where to start ?

Thanks.


- Guy


--
Guy McLoughlin
New Media Developer
Toronto Ontario Canada
E: [EMAIL PROTECTED]
--- 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] [Fwd: relay responder method never called]

2006-08-21 Thread Bbt Lists
Can things like whitespace produce this kind of result? How about spaces 
instead of tabs (code formating)?


Just having a hard time tracking this issue down.

Just to recap, and possibly add more info:

I had a remoting project that just stopped working. I put traces in on 
the method that calls the php service, and one in the relay responder 
method. The first trace is fired, but not the second one. I then had my 
PHP class use touch to create a file on the server to see if it is fired 
- it is. but for some reason the relay responder method is never 
fired. I read something about having white space in the PHP class 
outside the php class chokes amfphp (well rather flash) - but - I don't 
have any - so I am wondering if there is any other thing in a php class 
that would cause flash to not know how to handle the results? Are there 
php settings maybe that could effect it? The server host also updated 
our server that day. But my other remoting classes are working. Even 
this class is working in other areas in the movie - it is so perplexing. 
I just need to figure out why the responder never happens (as this is a 
live site). Thanks in advance for any info!


Thanks!





--
dnk
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Using assets from external SWF

2006-08-21 Thread Samúel Jónasson

Yes this is easy in Flex 2.

And it's not just the assets that you can use.  You can use anything in 
the loaded swf as if it was in the main movie.


Sammi


Marcelo de Moraes Serpa wrote:
Hmmm... it seems that AVM2 has solved the classic problem we had with 
Flash
that forced us to use RSL to do this kind of thing? I mean, we 
couldn´t just
load a swf and use it´s assets on the parent context and vice-versa... 
is it

possible with flex 2?

Marcelo.

On 8/21/06, Samúel Jónasson [EMAIL PROTECTED] wrote:


Solved it.

Actually I was complicating things when trying to use the samples in
other articles.  Do this if you are interested in checking:

- Create a skin.swf
- Create one symbol and export it as Button_up
- Publish to build the swf.
- Use the following to include the skin at runtime.

package {

import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.system.*;
import flash.net.*;


public class SkinTest extends Sprite{

private var theSkin:Loader;

public function SkinTest(){
loadSkin();
}

private function loadSkin():void{

theSkin = new Loader();
theSkin.contentLoaderInfo.addEventListener(Event.COMPLETE,
skinLoadedHandler);
theSkin.load(new URLRequest(skin.swf));

}

private function skinLoadedHandler(event:Event):void{

// try to use symbol from skin.swf
var asset:Sprite = getSkinAsset(Button_up);
addChild(asset);

}

private function getSkinAsset(skinAsset:String){

var assetClass:Class =
theSkin.contentLoaderInfo.applicationDomain.getDefinition(skinAsset) as
Class;
var asset:Object = new assetClass();

return asset;

}

}

}


I hope this helps someone.

Sammi


Samúel Jónasson wrote:
 His.

 thank you for your response.

 I had read this article as well but didn't find the solution to my
 problem.  It is really important for me not to have to compile my app
 when the skin changes - so they need to load at runtime.  So if I have
 two files:

 - assets.swf
 - app.swf

 ...the symbols in assets.swf have a auto generated classes.  So a
 Star symbol would have a Star class generated on export.
 Then app.swf loads the assets.swf at runtime of with some magic ( as
 explained in some of the articles ) has access to the classes in
 assets.swf and can instantiate them.

 So if i need a star:

 var myStar:Star = new Star();
 addChild(myStar);

 ...and I get the symbol created in assets.swf.


 Matthew Ganz wrote:
 hi.

 i don't have the answer to your question but i did see this post on
 keith peters' blog this morning that may help you out:

 http://www.bit-101.com/blog/?p=853
 - Original Message - From: Samúel Jónasson
 [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Monday, August 21, 2006 10:31 AM
 Subject: [Flashcoders] Using assets from external SWF


 Hi everyone,

 I am trying to find out how to use external SWF as a library of
 assets that I can instantiate in my as3 projects. I have gone
 through several articles that almost explain this.  One in
 particular is Loading Flex Skins at Runtime at
 http://blogs.adobe.com/kiwi/2006/07/

 Basically I want to have my assets (skins, icons etc) in this
 external swf (assets.swf ) that I create in Flash 9.  Then load that
 file with the Loader class at runtime in an as3 project and
 instantiate the classes of the assets to add them to the stage,
 once or more.

 Does anyone have a working sample of this?


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



Re: [Flashcoders] Multiple html formattings in a TextField

2006-08-21 Thread R.A. Williamson

Rui,

You'll need to embed three versions of Arial (normal, bold, and italic), 
for this to work.


-rw

Date: Mon, 21 Aug 2006 17:06:13 +0100
From: Rui Duarte Silva [EMAIL PROTECTED]
Subject: [Flashcoders] Multiple html formattings in a TextField
To: FlashCoders Mailing List flashcoders@chattyfig.figleaf.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain;   charset=iso-8859-1

Hi,

Suppose I have a Dynamic TextField on the stage and I want to:

1. Insert html formatting such as font face=”Arial”This normal
ArialbrbThis is Arial Bold/bbriThis Arial Italic/i/font
2. Embed the font (in order to allow it to be masked and to keep
anti-aliasing)
3. Use it under a mask

Is this possible?

Rui Duarte Silva
Senior Flash Developer / Senior Product Manager

MNI - Médicos Na Internet, Saúde na Internet, SA
Alert Life Sciences Computing

www.alert-online.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Dan Rogers
I've also found a few quirks with removeMovieClip... however most of  
them seem to be related to depth.  I use this class whenever I remove  
a clip (dynamically attached or otherwise), and it seems to do the  
trick.


/**
The MovieClipRemover class is a static utility class which removes  
timeline movieclips


usage example:
MovieClipRemover.remove(test_mc);
*/

class MovieClipRemover {

// constructor
function MovieClipRemover () {}

// remove a timeline (or any depth) movieclip from the stage
static function remove (mc:MovieClip) {
var parent:MovieClip = mc._parent;
if (parent != null) {
var tempMC:MovieClip = parent.getInstanceAtDepth(0);
mc._visible = false;
mc.swapDepths(0);
mc.removeMovieClip();
if (tempMC != undefined) tempMC.swapDepths(0);
}
}
}

-Danro


On Aug 21, 2006, at 11:34 AM, [EMAIL PROTECTED] wrote:


Have you tried using some kind of factory type approach
to manage your deletion/creation?


yes, i use adts quite often...in fact i use the mvc pattern for  
quite a few apps i create.  So i have views that instantiate  
whatever movieclips it needs and deletes them when it doesn't need  
them.  the problem begins when a view needs to go away either  
because it is being replaced by another view or refreshed.  i  
noticed that the clips that were supposed to be deleted weren't  
really...futhermore, when being reinstantiated, they won't accept  
values...they exist, but they're undefined somehow...


b


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Actionscript 3.0 compiler Qs

2006-08-21 Thread David Rorex

On 8/21/06, Martin Wood [EMAIL PROTECTED] wrote:

 Does the compiled code get recompiled during runtime to machine code
 (like a JIT compiler) or does it get interpreted?

 Some Adobe presentation on the subjet was saying that all the code get
 JIT'ed, except the $iinit and $cinit functions which are the one
 defining the classes and initializing their static variables.

I just read that the other day and was wondering why?

Personally I cant really think of why constructors and initialization should be
interpreted and not JIT'ed but im sure someone can think of good reasons.


Perhaps because they are only run once? From what I understand, JIT is
a small penalty the first time, then each successive use is sped up.
If there are no successive uses, then it will be a net loss to use
JIT.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Better XML parsin

2006-08-21 Thread David Rorex

I kinda like XMLShortcuts:
http://www.shockwave-india.com/blog/?search=XMLShortcuts


On 8/21/06, Johannes Nel [EMAIL PROTECTED] wrote:

xpath

On 8/21/06, Flash Mel [EMAIL PROTECTED] wrote:

 Hello everyone,

 There has to be a better way to parse XML.  Using for loops seems
 antiquated.  Could I do a while loop and cycle through all the
 possible nodes?  What else is out there for parsing XML in a cleaner
 fashion?

 Cheers!

 fM
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] oop question kind of...

2006-08-21 Thread John Mark Hawley
Using the same depth is fine -- it completely replaces the original clip at 
that depth, eh?


 
 From: Johannes Nel [EMAIL PROTECTED]
 Date: 2006/08/21 Mon PM 02:05:56 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] oop question kind of...
 
 it sounds to me that you are using the same depth or instance name for a new
 clip before removing the old one.
 
 On 8/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  Have you tried using some kind of factory type approach
   to manage your deletion/creation?
  yes, i use adts quite often...in fact i use the mvc pattern for quite a
  few apps i create.  So i have views that instantiate whatever movieclips it
  needs and deletes them when it doesn't need them.  the problem begins when a
  view needs to go away either because it is being replaced by another view or
  refreshed.  i noticed that the clips that were supposed to be deleted
  weren't really...futhermore, when being reinstantiated, they won't accept
  values...they exist, but they're undefined somehow...
 
  b
 
  -- Original message --
  From: Alias [EMAIL PROTECTED]
 
   Hi there,
  
   For what it's worth...
  
   Previous to flash 8, the flash player uses both reference counting and
   mark/sweep garbage collection, which kicks in every 60 seconds or so,
   or when the number of allocated objects is increased by 20%. So the
   reference counting takes care of the objects without circular
   references, and the garbage collection takes care of the rest.
  
   removeMovieClip is problematic in that it's likely to leave lots of
   hanging references, and there's not a great deal you can do about that
   - it sounds like you have class dependancies outside of the movieclip
   object itself. Have you tried using some kind of factory type approach
   to manage your deletion/creation?
  
   Can you give more information about how your objects are being
  corrupted?
  
   Alias
  
  
   On 8/21/06, [b) a d i wrote:
 Have you tried mc.removeMovieClip() ?
   
yes...i should have mentioned it...
   
a little background...
   
this is a question i've had for a long time, but didn't have anyone to
  ask
it to :)...i've been on the macromedia forums, but most of the time i
  don't
get the answer i need or i get some wise-aker who feels the need to
over-compensate...i say that to express gratitude at having found
flashcoders...populated by real flash coders :)
   
   
the problem i have is after calling removeMovieClip or delete is that
  when i
need to re-instantiate the object...it's either corrupt or not created
properly...i was a little upset to find so many dangling pointers
  after i
went thru so much trouble to clean up after myself...
   
   
thanks
   
b
   
- Original Message -
From: Ramon Miguel M. Tayag
To: Flashcoders mailing list
Sent: Monday, August 21, 2006 8:50 AM
Subject: Re: [Flashcoders] oop question kind of...
   
   
 Have you tried mc.removeMovieClip() ?

 On 8/21/06, [b) a d i wrote:
  Hi,
  i've noticed that just because you call delete on a movie clip or
  even
an
  object doesn't mean that it totally goes away. Does anyone know
  how to
  destroy and object and really have it go away since there are no
destructors
  in as2?
 
  thanks
 
  b

 --
 Ramon Miguel M. Tayag
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
   
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
   
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 
 
 
 -- 
 j:pn
 http://www.lennel.org
 

Re: [Flashcoders] Better XML parsin

2006-08-21 Thread regen

The new xml class in AS3 is really cool too.


David Rorex wrote:

I kinda like XMLShortcuts:
http://www.shockwave-india.com/blog/?search=XMLShortcuts


On 8/21/06, Johannes Nel [EMAIL PROTECTED] wrote:

xpath

On 8/21/06, Flash Mel [EMAIL PROTECTED] wrote:

 Hello everyone,

 There has to be a better way to parse XML.  Using for loops seems
 antiquated.  Could I do a while loop and cycle through all the
 possible nodes?  What else is out there for parsing XML in a cleaner
 fashion?

 Cheers!

 fM
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: Flashcoders Digest, Vol 19, Issue 63

2006-08-21 Thread Count Schemula

Probably what he said...

On 8/21/06, Bart Wttewaall [EMAIL PROTECTED] wrote:

Wouter, wil je flashcoders uit je auto-respond lijst halen?
2000+ mensen zitten daar niet op te wachten ;)

Groeten, Bart

2006/8/21, [EMAIL PROTECTED] [EMAIL PROTECTED]:
 Geachte heer/mevrouw,

 Ik ben t/m 25 augustus afwezig. Ik zal uw mail daarna zo snel mogelijk in 
behandeling nemen. Voor dringende zaken met betrekking tot WEBclusive kunt u ons 
kantoor bellen op het volgende nummer: 070-3699 817

 Met vriendelijke groet,

 Wouter van Vliet
 WEBclusive
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Actionscript 3.0 compiler Qs

2006-08-21 Thread Chafic Kazoun
From what I know (And I am no expert on the Flash Player). The way  
the JIT process works, not everything is actually always JITed.  
Bytecode that is executed once may not tget JITed at all. But code  
that is accessed multiple times or deemed as a performance botleneck  
will get JITed. The main motivation behind this would be to reduce  
application perceived performance by interpreting some code rather  
than Jitting which would alleviate the user from having to wait for  
the JIT process to complete. This is most apparent on application  
startup where if the user had to wait for everything to go through  
the entire JIT process, things would just seem slow. You see this  
with the Java runtime although Sun has improved this over time.


HTH

Chafic

http://www.rewindlife.com

On Aug 21, 2006, at 5:40 PM, David Rorex wrote:


On 8/21/06, Martin Wood [EMAIL PROTECTED] wrote:
 Does the compiled code get recompiled during runtime to machine  
code

 (like a JIT compiler) or does it get interpreted?

 Some Adobe presentation on the subjet was saying that all the  
code get

 JIT'ed, except the $iinit and $cinit functions which are the one
 defining the classes and initializing their static variables.

I just read that the other day and was wondering why?

Personally I cant really think of why constructors and  
initialization should be
interpreted and not JIT'ed but im sure someone can think of good  
reasons.


Perhaps because they are only run once? From what I understand, JIT is
a small penalty the first time, then each successive use is sped up.
If there are no successive uses, then it will be a net loss to use
JIT.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] no0b's plea

2006-08-21 Thread Count Schemula

Just a reminder to you expert types...

Please try to subscribe to Flashnewbie so we no0bs can get good
answers to what are probably easy problems and keep our no0b chocolate
our of your coder peanut butter.

I try to post most of my questions in Flashnewbie and mostly lurk in
Flashcoders, but, it would be nice to know that there was enough
traffic in Flashnewbie to make it useful. It seems like a low traffic
list.

thanks...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] vars with $

2006-08-21 Thread ryanm

Curious, what does, mechanically generated code mean? Space robots?

   ...with the kicking and the biting with the metal teeth and the hurting 
and shoving.


ryanm 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] RE: Better XML parsin

2006-08-21 Thread Jack Doyle
I wrote a class that might be useful to you. Just point it at your XML file
and it'll load it and parse it into Arrays/Objects. See the top of the class
file for some documentation. It can also reverse parse (dump an object back
into XML format).

http://www.greensock.com/ActionScript/XMLParser.zip

This is the first time I'm making it available to the public, so I welcome
comments/suggestions (be kind). It's been working quite well for me for
months.

Jack Doyle

---
Date: Mon, 21 Aug 2006 15:46:24 -0400
From: Flash Mel [EMAIL PROTECTED]
Subject: [Flashcoders] Better XML parsin

Hello everyone,

There has to be a better way to parse XML.  Using for loops seems
antiquated.  Could I do a while loop and cycle through all the
possible nodes?  What else is out there for parsing XML in a cleaner
fashion?

Cheers!

fM



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Alias

In what way were they not deleted? How have you assertained this?

Also, what syntax are you using for removeMovieClip? A common mistake
is to pass a reference to the movie you want to delete as a parameter,
like so:

removeMovieClip(myMc)

Whereas actually, removeMovieClip is a member function of the
MovieClip superclass, so you need to do:

myMc.removeMovieClip()

This is confusing because sometimes the first one works, depending on
the scope you call it from.

HTH
Alias


On 8/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Have you tried using some kind of factory type approach
 to manage your deletion/creation?
yes, i use adts quite often...in fact i use the mvc pattern for quite a few 
apps i create.  So i have views that instantiate whatever movieclips it needs 
and deletes them when it doesn't need them.  the problem begins when a view 
needs to go away either because it is being replaced by another view or 
refreshed.  i noticed that the clips that were supposed to be deleted weren't 
really...futhermore, when being reinstantiated, they won't accept values...they 
exist, but they're undefined somehow...

b

-- Original message --
From: Alias [EMAIL PROTECTED]

 Hi there,

 For what it's worth...

 Previous to flash 8, the flash player uses both reference counting and
 mark/sweep garbage collection, which kicks in every 60 seconds or so,
 or when the number of allocated objects is increased by 20%. So the
 reference counting takes care of the objects without circular
 references, and the garbage collection takes care of the rest.

 removeMovieClip is problematic in that it's likely to leave lots of
 hanging references, and there's not a great deal you can do about that
 - it sounds like you have class dependancies outside of the movieclip
 object itself. Have you tried using some kind of factory type approach
 to manage your deletion/creation?

 Can you give more information about how your objects are being corrupted?

 Alias


 On 8/21/06, [b) a d i wrote:
   Have you tried mc.removeMovieClip() ?
 
  yes...i should have mentioned it...
 
  a little background...
 
  this is a question i've had for a long time, but didn't have anyone to ask
  it to :)...i've been on the macromedia forums, but most of the time i don't
  get the answer i need or i get some wise-aker who feels the need to
  over-compensate...i say that to express gratitude at having found
  flashcoders...populated by real flash coders :)
 
 
  the problem i have is after calling removeMovieClip or delete is that when i
  need to re-instantiate the object...it's either corrupt or not created
  properly...i was a little upset to find so many dangling pointers after i
  went thru so much trouble to clean up after myself...
 
 
  thanks
 
  b
 
  - Original Message -
  From: Ramon Miguel M. Tayag
  To: Flashcoders mailing list
  Sent: Monday, August 21, 2006 8:50 AM
  Subject: Re: [Flashcoders] oop question kind of...
 
 
   Have you tried mc.removeMovieClip() ?
  
   On 8/21/06, [b) a d i wrote:
Hi,
i've noticed that just because you call delete on a movie clip or even
  an
object doesn't mean that it totally goes away. Does anyone know how to
destroy and object and really have it go away since there are no
  destructors
in as2?
   
thanks
   
b
  
   --
   Ramon Miguel M. Tayag
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig 

Re: [Flashcoders] RE: Better XML parsin

2006-08-21 Thread Flash Mel

Jack - Awesome!  I'm off to the store for a while, soon as I get back
I'll give this a test.

David - Thanks for the link.  Looks useful as well.  I'll give these a
try and respond in a few thanks peeps.

Cheers,

fM



On 8/21/06, Jack Doyle [EMAIL PROTECTED] wrote:

I wrote a class that might be useful to you. Just point it at your XML file
and it'll load it and parse it into Arrays/Objects. See the top of the class
file for some documentation. It can also reverse parse (dump an object back
into XML format).

http://www.greensock.com/ActionScript/XMLParser.zip

This is the first time I'm making it available to the public, so I welcome
comments/suggestions (be kind). It's been working quite well for me for
months.

Jack Doyle

---
Date: Mon, 21 Aug 2006 15:46:24 -0400
From: Flash Mel [EMAIL PROTECTED]
Subject: [Flashcoders] Better XML parsin

Hello everyone,

There has to be a better way to parse XML.  Using for loops seems
antiquated.  Could I do a while loop and cycle through all the
possible nodes?  What else is out there for parsing XML in a cleaner
fashion?

Cheers!

fM



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flash/Actionscript Coding conventions

2006-08-21 Thread Haikal Saadh

Hi all

The earliest document I could find about coding conventions for flash 
and actionscript are from flash 5. Has anyone written up a guide for use 
AS2/3?


I prefer to use my java/javascript conventions as a base, but that still 
excludes things like:


   * Naming symbols/linkages
   * Naming frames (not that I've had a need to, but in case...)
   * Use of __ and _ in front of variable names. (_ is straight-forward
 enough, and the v2 comp. architecture seems to use __ for private
 vars that have corresponding get/set methods.

Any other conventions you guys use?

--
Haikal Saadh
Applications Programmer
ICT Resources, TALSS
QUT Kelvin Grove

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash/Actionscript Coding conventions

2006-08-21 Thread Bjorn Schultheiss
The best place to find conventions is in the component framework,
specifically the new flex framework uses upto date best practices.
Otherwise there are AS2 best pratices docs on the adobe site, I think they
were written by jen deHann 


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Haikal Saadh
Sent: Tuesday, 22 August 2006 10:08 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Flash/Actionscript Coding conventions

Hi all

The earliest document I could find about coding conventions for flash and
actionscript are from flash 5. Has anyone written up a guide for use AS2/3?

I prefer to use my java/javascript conventions as a base, but that still
excludes things like:

* Naming symbols/linkages
* Naming frames (not that I've had a need to, but in case...)
* Use of __ and _ in front of variable names. (_ is straight-forward
  enough, and the v2 comp. architecture seems to use __ for private
  vars that have corresponding get/set methods.

Any other conventions you guys use?

--
Haikal Saadh
Applications Programmer
ICT Resources, TALSS
QUT Kelvin Grove

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] RE: Better XML parsin

2006-08-21 Thread R.A. Williamson
I've found XFactor Studio's XPath library to be invaluable: 
http://www.xfactorstudio.com/


In a similar vein, does anyone here use a solid alternative to XML 
config files, perhaps with server-side object serialization or some such?


-rw

Flash Mel wrote:

Jack - Awesome!  I'm off to the store for a while, soon as I get back
I'll give this a test.

David - Thanks for the link.  Looks useful as well.  I'll give these a
try and respond in a few thanks peeps.

Cheers,

fM



On 8/21/06, Jack Doyle [EMAIL PROTECTED] wrote:
I wrote a class that might be useful to you. Just point it at your XML 
file
and it'll load it and parse it into Arrays/Objects. See the top of the 
class
file for some documentation. It can also reverse parse (dump an object 
back

into XML format).

http://www.greensock.com/ActionScript/XMLParser.zip

This is the first time I'm making it available to the public, so I 
welcome

comments/suggestions (be kind). It's been working quite well for me for
months.

Jack Doyle

---
Date: Mon, 21 Aug 2006 15:46:24 -0400
From: Flash Mel [EMAIL PROTECTED]
Subject: [Flashcoders] Better XML parsin

Hello everyone,

There has to be a better way to parse XML.  Using for loops seems
antiquated.  Could I do a while loop and cycle through all the
possible nodes?  What else is out there for parsing XML in a cleaner
fashion?

Cheers!

fM



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Strange flashing bug

2006-08-21 Thread Tyson Tune
I wonder if what you all are seeing is a stack issue.  Sometimes you  
can make what seem like nonesense changes that affect the way clips  
load.  As I understand it, this has to do with memory allocation and  
event-listeners.  So the idea is that adding something like a comment  
increases the size of the stack and gives flash time to do what it  
needs.  Take a look at your loading process and make sure no  
attachMovies or the like are happening before the app is ready.


Tyson
On Aug 20, 2006, at 6:16 AM, Paul Steven wrote:

I had a similar problem with graphics not appearing, mine being  
jpgs from
the library that I had placed on the stage. Originally I just  
placed the jpg
(bitmap) directly on the stage and when published they were not  
appearing.
However when I made the jpg a group (CTRL - G), this seemed to  
solve the

problem. No idea why though Btw this was on a PC.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of  
Shane Korin

Sent: 20 August 2006 11:44
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Strange flashing bug

Ack! I've had almost the same problem before, but I was never  
publishing on

a Mac, always from a PC :/

Although my clips weren't flashing, they were just not appearing...

Still haven't figured out why it's happening :(


On 8/20/06, Nick Kuh [EMAIL PROTECTED] wrote:


Further to this post I managed to resolve the bug. The bug is on  
Flash 8

pro
Mac version. By publishing the same files on PC the bug was resolved.
Annoying for me as I prefer to work on Mac.




From: Nick Kuh [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list  
flashcoders@chattyfig.figleaf.com

Date: Sun, 20 Aug 2006 11:25:22 +0200
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Strange flashing bug

Hi

I have come up against a very strange bug that I can't work out the

cause...


I've built a game that used to work just fine. Recently some of the

graphics
in the game were updated and resent to me from the designer. I  
copied

them

in. Now the bug occurs:

In certain parts of the game a few of my mcs start flashing -  
like the
visibility is repeatedly turning on and off. I trace the  
visibility on a

frame interval on the mcs and it always returns true.

To solve this all I have to do is to go into one of the affected  
mcs and
simply make a change like locking and unlocking all of it's  
layers, no

graphics or code changes required. I republish and the flashing

stops.  I
then go into one of the other affected mcs and do the same weird  
fix.

This

fixes the second mc flashing bug but the first one appears again!

Any ideas? I'm completely stumped.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] RE: Better XML parsin

2006-08-21 Thread David Rorex

I've used JSON (http://json.org/) before, not for config files, but
for exchanging data between flash, java, and php. It's quite easy to
use for someone with actionscript/javascript experience, and there are
parsing libraries for most other languages as well.

On 8/21/06, R.A. Williamson [EMAIL PROTECTED] wrote:

I've found XFactor Studio's XPath library to be invaluable:
http://www.xfactorstudio.com/

In a similar vein, does anyone here use a solid alternative to XML
config files, perhaps with server-side object serialization or some such?

-rw

Flash Mel wrote:
 Jack - Awesome!  I'm off to the store for a while, soon as I get back
 I'll give this a test.

 David - Thanks for the link.  Looks useful as well.  I'll give these a
 try and respond in a few thanks peeps.

 Cheers,

 fM



 On 8/21/06, Jack Doyle [EMAIL PROTECTED] wrote:
 I wrote a class that might be useful to you. Just point it at your XML
 file
 and it'll load it and parse it into Arrays/Objects. See the top of the
 class
 file for some documentation. It can also reverse parse (dump an object
 back
 into XML format).

 http://www.greensock.com/ActionScript/XMLParser.zip

 This is the first time I'm making it available to the public, so I
 welcome
 comments/suggestions (be kind). It's been working quite well for me for
 months.

 Jack Doyle

 ---
 Date: Mon, 21 Aug 2006 15:46:24 -0400
 From: Flash Mel [EMAIL PROTECTED]
 Subject: [Flashcoders] Better XML parsin

 Hello everyone,

 There has to be a better way to parse XML.  Using for loops seems
 antiquated.  Could I do a while loop and cycle through all the
 possible nodes?  What else is out there for parsing XML in a cleaner
 fashion?

 Cheers!

 fM



 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] FLV, attachMovie, and missing controls

2006-08-21 Thread Tyson Tune
You need to include the skin swf to have the controls present in your  
new swf.

On Aug 20, 2006, at 3:37 PM, Jeff Jonez wrote:

I have a 4 megabyte flv file that loads via attachMovie into my swf  
file.
When I run from my computer everything works fine. Once I post the  
swf on
the net, the controls (play, pause, volume) disappear when I load  
the movie.

Any tips?

Thanks,
Jeff
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Day before duplication audio problem

2006-08-21 Thread Paul Steven
Banging my head trying to get to the bottom of a bug on a CDROM that should
be going for duplication tomorrow.

It is Flash 8 CDROM (PC Only) with a main container movie and various games
loaded into it. The flash movie is loaded into a Director shell though I
have tried it using Zinc and had the same problems.

The problem is that the audio is quite often just cutting off midway through
the audio file and resulting in the game hanging. It is not happening at any
particular point in the CDROM. I tried reducing the audio (external mp3) to
22 Khz from 44 but seems to have no affect.

I am thinking it could possibly be a performance problem as its quite a
resource hungry product. The cursor is flashing like crazy at all times - is
this something that indicates a problem?

The problem happens when run from the CDROM and when run from the hard drive
but possibly worse from the CDROM. It is so random it is hard to say.

Are there any memory leaks in Flash 8 - and if so are there any solutions or
updates?

Any help much appreciated as missing this deadline won't make me a very
popular person.

Thanks in advance.

Paul



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Day before duplication audio problem

2006-08-21 Thread Marc Hoffman
Can you test it outside of Director, to start isolating whether it's 
a Flash, Director, or the combination of the two? Also, are you 
testing on multiple machines, in order to isolate a potential 
hardware or driver problem?


- Marc

At 04:52 PM 8/21/2006, you wrote:

Banging my head trying to get to the bottom of a bug on a CDROM that should
be going for duplication tomorrow.

It is Flash 8 CDROM (PC Only) with a main container movie and various games
loaded into it. The flash movie is loaded into a Director shell though I
have tried it using Zinc and had the same problems.

The problem is that the audio is quite often just cutting off midway through
the audio file and resulting in the game hanging. It is not happening at any
particular point in the CDROM. I tried reducing the audio (external mp3) to
22 Khz from 44 but seems to have no affect.

I am thinking it could possibly be a performance problem as its quite a
resource hungry product. The cursor is flashing like crazy at all times - is
this something that indicates a problem?

The problem happens when run from the CDROM and when run from the hard drive
but possibly worse from the CDROM. It is so random it is hard to say.

Are there any memory leaks in Flash 8 - and if so are there any solutions or
updates?

Any help much appreciated as missing this deadline won't make me a very
popular person.

Thanks in advance.

Paul



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Day before duplication audio problem

2006-08-21 Thread ben farrell
Well, I'll tell ya about a problem I had in a project of mine that 
sounded kinda similar.  It was similar because we were loading mini 
resource intensive games into a main container movie - which in turn was 
in Zinc.


Anyway I did end up having memory leaks, but it wasn't Flash's fault.  I 
made a class that listened for collisions and was running in 2 of my 10 
games.  There was a bug in it, and my collision list wasn't clearing all 
the way.  So my collision hitTests kept growing and growing.  But of 
course when I just played one of the games for 5 minutes it was fine 
because the leak wasn't so big to notice.  It wasn't until I played the 
games one after another that it started crashing.


So, take a gander at any classes or code that's running and you're not 
clearing properly.  That could very well be the source of your 
performance issues.


The audio issues could maybe be performance related (I haven't 
experienced audio problems from performance issues).  They could also be 
code that's running in the background that you don't even know is 
running in the background because you failed to properly clean it up 
which is stopping your audio.


One thing I didn't know about flash until recently was that if you 
create a Sound Object like so: var mySound = new Sound(); it creates the 
sound in the global space.  So.even when you make 2 sound variables 
they still relate to the same global space - so even though mySound1 and 
mySound2 might be different variables.  Telling mySound1.stop() will 
also make mySound2 stop in my experience.  If you pass in different 
movie clips to play through - confusion related to using this global 
space to stop one sound and start others would be eliminated (ie var 
mySound = new Sound(mymovieclip); )


So hey, anyway, is something happening where stuff from another game 
(including stop sound actions) are interfering with play from a current 
game?  It could, in the end, not only cause performance issues, cause 
weird halting, but even stop sounds if the conditions are right.  Try 
tracing variables that you don't think are there anymore.Got an 
enterframe method? put a trace in it, it could be happening when you 
least expect it.


Hope this helps!
ben

Paul Steven wrote:

Banging my head trying to get to the bottom of a bug on a CDROM that should
be going for duplication tomorrow.

It is Flash 8 CDROM (PC Only) with a main container movie and various games
loaded into it. The flash movie is loaded into a Director shell though I
have tried it using Zinc and had the same problems.

The problem is that the audio is quite often just cutting off midway through
the audio file and resulting in the game hanging. It is not happening at any
particular point in the CDROM. I tried reducing the audio (external mp3) to
22 Khz from 44 but seems to have no affect.

I am thinking it could possibly be a performance problem as its quite a
resource hungry product. The cursor is flashing like crazy at all times - is
this something that indicates a problem?

The problem happens when run from the CDROM and when run from the hard drive
but possibly worse from the CDROM. It is so random it is hard to say.

Are there any memory leaks in Flash 8 - and if so are there any solutions or
updates?

Any help much appreciated as missing this deadline won't make me a very
popular person.

Thanks in advance.

Paul



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Tab, tab, tab ...

2006-08-21 Thread Stephen Ford
I have a number of movieclips in my flash application. Within these movieclips 
is one textfield. The movieclips all have an AS2.0 class definition.
 
The problem I am having is tabbing between the textfields within these 
movieclips and I don't know what the problem is.
 
If I copy a few of the movieclips and paste them into a blank flash movie, save 
it in the same place as my application (so it can access all the class files), 
then tabbing between the fields works fine ???
 
So does anyone have any idea why I can't tab between these text fields in my 
main application.
 
Also, if I strip absolutely everything out of my application, and leave just 
the two or three textfield clips (that I copied over to the blank flash movie), 
they still dont' work.
 
Can anyone please advise on this - I'm pulling my hair out. It's been hours and 
I'm getting nowhere.
 
Thanks.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com