Re: [Flashcoders] UML tool for AS2

2006-02-17 Thread Janis Radins
Tnx Scott!

Looks very mutch like what I've been looking for.


2006/2/17, Scott Mathieson [EMAIL PROTECTED]:

 enterprise architect  http://www.sparxsystems.com.au/products/ea.html

 actionscript support straight of the box

 On Friday 17 February 2006 06:54, Janis Radins wrote:
  Hye ppl!
 
  I've been searching for decent AS2 UML tool but had no luck.
  Could anyone share theyr good expieriences of some UML tools well suited
  for AS2 ?
 
  PS
  Yes I've seen Grant Skinner Gmodeler, idea is good but it's still way
 too
  raw.
  ___
  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] UML tool for AS2

2006-02-17 Thread Jim Tann
While we are on the UML topic, can anyone recommend a good book on the
subject?

Jim


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Janis
Radins
Sent: 17 February 2006 08:26
To: Flashcoders mailing list
Subject: Re: [Flashcoders] UML tool for AS2

Tnx Scott!

Looks very mutch like what I've been looking for.


2006/2/17, Scott Mathieson [EMAIL PROTECTED]:

 enterprise architect  http://www.sparxsystems.com.au/products/ea.html

 actionscript support straight of the box

 On Friday 17 February 2006 06:54, Janis Radins wrote:
  Hye ppl!
 
  I've been searching for decent AS2 UML tool but had no luck.
  Could anyone share theyr good expieriences of some UML tools well
suited
  for AS2 ?
 
  PS
  Yes I've seen Grant Skinner Gmodeler, idea is good but it's still
way
 too
  raw.
  ___
  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] XML Form Collection Names

2006-02-17 Thread Yotam Laufer
Hello List,

I am trying to sendAndLoad XML data to a web service that requires
that I set the name of the data in the Form Collection. My server-side
people insist that this is how it should be done, although I never
needed to set anyhing and sendAndLoad would always just work in the
past.

This is the trace from the server script, note on the bottom the Form
Collection part. It is now formatted in the way that they would like
it to be.

Headers Collection
NameValue
Pragma no-cache
Content-Length  140
Content-Type application/x-www-form-urlencoded
Host xxx.xxx.xxx.xxx:90
Referer 
http://xxx.xxx.xxx.xxx:90/flashfolio.service.asmx/AssetList
User-AgentShockwave Flash
x-flash-version8,0,22,0


Form Collection
NameValue
RequestXML  flash_folioxml data goes here/flash_folio

I've managed to make this work by using a LoadVars object like this:

var lv:LoadVars = new LoadVars ();
lv.RequestXML = new XML (flash_folioxml data goes here/flash_folio);

But the XML string which is returned is escaped in a manner that I
can't unescape it using unescape (str).

Is there a way to set the name for the XML string using the XML object?

Any ideas? Has Anyone come across this before? I'm pretty puzzled here.

Thanks, Yotam.




--
Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype: ubermutt
___
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] UML tool for AS2

2006-02-17 Thread Jim Kremens
actionscript support straight of the box

Can it do reverse engineering with Actionscript?

Jim Kremens
___
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] UML tool for AS2

2006-02-17 Thread Janis Radins
it claims that it can.
tho i didnt found how :)

2006/2/17, Jim Kremens [EMAIL PROTECTED]:

 actionscript support straight of the box

 Can it do reverse engineering with Actionscript?

 Jim Kremens
 ___
 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] Guy Watson's FileSystem Extension

2006-02-17 Thread eric dolecki
Okay - nice work - but after installing Guy Watson's extension, and then
disabling it, I get a native error for this line of code:

 var classLocation = fl.configURI+/Classes/;

The error: Exception thrown in native function.

Any clue whats going on? Before installing the extension, that line worked
perfectly. Do I need to snag a base copy of that .dll and replace the one I
now have?

- edolecki



On 2/16/06, Johannes Nel [EMAIL PROTECTED] wrote:

 as a side note. on usage :)

 lets say i want to import the xfactor xpath classes, just point it to the
 com directory and the whole com thinga'mabob gets copied over.

 On 2/16/06, Johannes Nel [EMAIL PROTECTED] wrote:
 
  nothing a bit of plagarism and a slight rewrite couldn't sort out. go
  through my added comments in the code i see some pitfalls, but could not
  realise them.
 
 
 
  var folderURI = fl.browseForFolderURL(Please select your package.);
  var folderContents = FLfile.listFolder( folderURI, directories );
  var classesLocation = fl.configURI+/Classes/;
  var bInstall = confirm(Install the package:  + folderURI + ?);
 
  if( bInstall == true ){
  //create the folder we are copying to if it does not exist
  var target = classesLocation + getTopDirectoryFromOrigen(folderURI)
 +
  /;
  createFolder(target)
  copyFolder(folderURI +/,target,true);
  } else {
 fl.trace( Installation cancelled. );
  }
  function getTopDirectoryFromOrigen(uri)
  {
  var arr = uri.split(/);
  return arr[ arr.length-1];
  }
  function createFolder(uri)
  {
  if(!FLfile.exists(uri))
  {
  FLfile.createFolder(uri);
  }
  }
  /**
  * the rest of these functions were written for dreamweaver
  * by Danilo Celic with the odd modification by me
  * http://www.communitymx.com/blog/index.cfm?newsid=237
  */
 
  function copyFolder(start, end, overwrite){//1.0_DC
  // Copy the folders
  var theFolders = getAllFolders(start);
  var theFiles = getAllFiles(start);
  for(var i=0;itheFolders.length;i++){
 
  theFolders[i] = theFolders[i].substring(start.length);
  //jpn modification for recursivness
  var zeFolder = theFolders[i];
 
  theFolders[i] = end + theFolders[i];
  if(!FLfile.exists(theFolders[i])){
  FLfile.createFolder(theFolders[i]);
  }
  //jpn modification to the orinial script to make zis sucker
  recursive
  //NOTE this comparision.
  //i do not believe that this is perfect and can see problems
 with
  it, but its fly for now
  if((start +  zeFolder)!= start)
  {
  copyFolder(start + / +   zeFolder,end + / +
  zeFolder,overwrite);
  }
  }
  for (i=0; i  theFiles.length; i++){
  var folderPath = theFiles[i].substring(start.length);
  if(overwrite){
  if(FLfile.exists(end + folderPath)){
  FLfile.remove(end + folderPath);
  theResult = FLfile.copy(theFiles[i], end + folderPath);
  if (!theResult)
  {
  fl.trace('error on copy 0' + end + folderPath);
   }
  }
  else//jpn modification: added this else section this should
 be
  refactored as there is repetition!!!
  {
  theResult = FLfile.copy(theFiles[i], end + folderPath);
  if (!theResult)
  {
  fl.trace('error on copy 1' + end + folderPath);
  }
  }
  }
  else
  {
  if(!FLfile.exists(end + folderPath)){
  theResult = FLfile.copy(theFiles[i], end + folderPath);
  if (!theResult) fl.trace('error on copy 2'+ end +
  folderPath);
  }
  }
  }
  }
 
  //Traverse the folder passed in and return an array of all the folders
  within it
  //Design Notes files are already filtered
  function getAllFolders(theFolderURL){//1.1_DC
  var dirArray = new Array();
  dirArray[0] = theFolderURL;
  for(var x=0 ; x  dirArray.length ;x++){
  //Put together an array of directories
  theDirs = FLfile.listFolder(dirArray[x], 'directories');
  for(var i=0;itheDirs.length ;i++)
  {
  //Filter out the Design Notes folder
  if(theDirs[i] != '_notes'){
  dirArray.push(dirArray[x]+theDirs[i]+'/');
  }
  }
  }
  return dirArray;
  }
 
  //Traverse the folder passed in and return an array of all the files
  within it
  function getAllFiles(theFolderURL){ //1.1_DC
  var returnFileArray = new Array();
  var theDirs = getAllFolders(theFolderURL);
  var theFiles = new Array();
  for(var i= 0;itheDirs.length ;i++){
  theFiles = FLfile.listFolder(theDirs[i] + '/*' ,'files');
  for(var k=0;ktheFiles.length ;k++){
  returnFileArray.push(theDirs[i]+ theFiles[k]);
 

Re: [Flashcoders] gotoandlearn()

2006-02-17 Thread Bas Quentin / Byontik
Did you try removing the player with the macromedia uninstaller?
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_15511#remove

I just read about a similar problem on the FlashObject List..

i've only seen detection problems arise when you don't use the official
macromedia uninstaller/installer to remove or upgrade flash players.

so if you removed a flash player without using the uninstaller, try
running the uninstaller and then reinstalling the player and try again.

After doing that the problem was solved..


--

Gr

_Bas


On 2/17/06, Chris Kennon [EMAIL PROTECTED]  wrote:

 Hi,

 After completing a clean install of Flash Player 8.5, the situation
 continues with the following error returned to the activity window:



 http://fpdownload.macromedia.com/pub/flashplayer/update/current/
 install/version.xml plugin-canceled


 Respectfully,
 Chris



 On Feb 16, 2006, at 3:09 PM, Sander wrote:

  gotoAndLearn has MM's default detectionkit. But I had trouble with
  it as well: I think an orphaned player7 file was still in my
  plugins folder next to the player 8 files (I switch a lot).
  Deleting all and reinstalling got me past the error.
 
 
  On 16 Feb 2006, at 23:41, Chris Kennon wrote:
 
  Hi,
 
  Player 8.x
  On Feb 16, 2006, at 11:54 AM, JesterXL wrote:
 
  What Flash player is installed in both browsers?
 
  - Original Message -
  From: Chris Kennon [EMAIL PROTECTED]
  To: Flashcoders mailing list  flashcoders@chattyfig.figleaf.com
  Sent: Thursday, February 16, 2006 2:41 PM
  Subject: [Flashcoders] gotoandlearn()
 
 
  Hi,
 
  I've contacted lee directly, but thought this might prove
  additionally helpful.
 
  I'm working with OS 10.4.5, both Safari and FireFox cannot load
  gotoandlearn() tutorials, and both are unable to download the
  material. I'm at a loss why this happening?
 
 
 
 
 
  Return True,
 
 
 
 
  Christopher Kennon
  Principal/Designer/Programmer -Bushidodeep
  www.bushidodeep.com
  ___
  An ideal is merely the projection, on an enormously enlarged scale,
  of some aspect of personality.
-- Aldus Huxley
 
 
  ___
  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


___
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] Guy Watson's FileSystem Extension

2006-02-17 Thread eric dolecki
nm - didn't have a document open, just the IDE - sorry for the noise ;)

On 2/17/06, eric dolecki [EMAIL PROTECTED] wrote:

 Okay - nice work - but after installing Guy Watson's extension, and then
 disabling it, I get a native error for this line of code:

  var classLocation = fl.configURI+/Classes/;

 The error: Exception thrown in native function.

 Any clue whats going on? Before installing the extension, that line worked
 perfectly. Do I need to snag a base copy of that .dll and replace the one I
 now have?

 - edolecki



 On 2/16/06, Johannes Nel [EMAIL PROTECTED] wrote:
 
  as a side note. on usage :)
 
  lets say i want to import the xfactor xpath classes, just point it to
  the
  com directory and the whole com thinga'mabob gets copied over.
 
  On 2/16/06, Johannes Nel  [EMAIL PROTECTED] wrote:
  
   nothing a bit of plagarism and a slight rewrite couldn't sort out. go
   through my added comments in the code i see some pitfalls, but could
  not
   realise them.
  
  
  
   var folderURI = fl.browseForFolderURL(Please select your package.);
   var folderContents = FLfile.listFolder( folderURI, directories );
   var classesLocation = fl.configURI+/Classes/;
   var bInstall = confirm(Install the package:  + folderURI + ?);
  
   if( bInstall == true ){
   //create the folder we are copying to if it does not exist
   var target = classesLocation +
  getTopDirectoryFromOrigen(folderURI) +
   /;
   createFolder(target)
   copyFolder(folderURI +/,target,true);
   } else {
  fl.trace( Installation cancelled. );
   }
   function getTopDirectoryFromOrigen(uri)
   {
   var arr = uri.split(/);
   return arr[ arr.length-1];
   }
   function createFolder(uri)
   {
   if(!FLfile.exists(uri))
   {
   FLfile.createFolder(uri);
   }
   }
   /**
   * the rest of these functions were written for dreamweaver
   * by Danilo Celic with the odd modification by me
   * http://www.communitymx.com/blog/index.cfm?newsid=237
   */
  
   function copyFolder(start, end, overwrite){//1.0_DC
   // Copy the folders
   var theFolders = getAllFolders(start);
   var theFiles = getAllFiles(start);
   for(var i=0;itheFolders.length;i++){
  
   theFolders[i] = theFolders[i].substring( start.length);
   //jpn modification for recursivness
   var zeFolder = theFolders[i];
  
   theFolders[i] = end + theFolders[i];
   if(!FLfile.exists(theFolders[i])){
   FLfile.createFolder(theFolders[i]);
   }
   //jpn modification to the orinial script to make zis sucker
   recursive
   //NOTE this comparision.
   //i do not believe that this is perfect and can see problems
  with
   it, but its fly for now
   if((start +  zeFolder)!= start)
   {
   copyFolder(start + / +   zeFolder,end + / +
   zeFolder,overwrite);
   }
   }
   for (i=0; i  theFiles.length; i++){
   var folderPath = theFiles[i].substring( start.length);
   if(overwrite){
   if(FLfile.exists(end + folderPath)){
   FLfile.remove(end + folderPath);
   theResult = FLfile.copy(theFiles[i], end +
  folderPath);
   if (!theResult)
   {
   fl.trace('error on copy 0' + end + folderPath);
}
   }
   else//jpn modification: added this else section this
  should be
   refactored as there is repetition!!!
   {
   theResult = FLfile.copy(theFiles[i], end +
  folderPath);
   if (!theResult)
   {
   fl.trace('error on copy 1' + end + folderPath);
   }
   }
   }
   else
   {
   if(!FLfile.exists(end + folderPath)){
   theResult = FLfile.copy(theFiles[i], end +
  folderPath);
   if (!theResult) fl.trace('error on copy 2'+ end +
   folderPath);
   }
   }
   }
   }
  
   //Traverse the folder passed in and return an array of all the folders
 
   within it
   //Design Notes files are already filtered
   function getAllFolders(theFolderURL){//1.1_DC
   var dirArray = new Array();
   dirArray[0] = theFolderURL;
   for(var x=0 ; x  dirArray.length ;x++){
   //Put together an array of directories
   theDirs = FLfile.listFolder(dirArray[x], 'directories');
   for(var i=0;itheDirs.length ;i++)
   {
   //Filter out the Design Notes folder
   if(theDirs[i] != '_notes'){
   dirArray.push(dirArray[x]+theDirs[i]+'/');
   }
   }
   }
   return dirArray;
   }
  
   //Traverse the folder passed in and return an array of all the files
   within it
   function getAllFiles(theFolderURL){ //1.1_DC
   var returnFileArray = new Array();
   var theDirs = 

[Flashcoders] Flash Player bug?

2006-02-17 Thread Tuomas Glad
Hello everybody,

I was wondering how this is possible?

var test:Number = undefined;
trace(test = 0); // true
trace(test == 0); // false
trace(test  0); // undefined

- tuomas

Tuomas Glad
Goodmood Productions Oy 
user interface designer
PL 132, Ruukinkatu 4 C
20101 Turku Finland

Tel. +359 - (0)20 1200 100
Mobile +358 - (0)40 539 7935
Fax. +358 - (0)20 1200 150
___
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 Player bug?

2006-02-17 Thread Morten Barklund TBWA\\Play

Tuomas Glad wrote:

var test:Number = undefined;
trace(test = 0); // true


a=b is defined as !(ab) - and undefined0 is undefined.

This undefined = 0 is true - for quite annoying reasons.

:)

--
Morten Barklund - Information Architect - TBWA\Play
Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark
Phone: +45 7027 2227 - Fax: +45 3369 1174
___
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] coding the main stage as if it were a class

2006-02-17 Thread Manuel Saint-Victor
I've seen this done in a few tutorial where the code placed in the main time
line is written as if it were in a class file.  By this I mean things like
writing addEventListener(this); and having the functions sitting in the main
timeline that handles the event.  I think this is a convenient approach- and
I know the response by siome will be--well just make the main timeline a
class- etc and sometimes I do that but others I'm not fully comfortable
doing that but have found this to be a good halfway point.  Can anyone who
uses this approach tell me the their thoughts on this.  I wish I could think
of some more examples of this but am coming up blank right now.

Thanks,

Mani
___
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] Sending Bitmap Object with Flash Remoting

2006-02-17 Thread Dave Campos
Is it possible to send the Bitmap Object in Flash 8 with Flash
Remoting. When I attempt to send it I nothing happens.
___
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] UML tool for AS2

2006-02-17 Thread Josh Buhler

enterprise architect


That looks pretty good, but I didn't see a Mac version. Anybody know  
of a good tool for OSX?


- Josh

On Feb 17, 2006, at 12:22 AM, Scott Mathieson wrote:


enterprise architect  http://www.sparxsystems.com.au/products/ea.html

actionscript support straight of the box

On Friday 17 February 2006 06:54, Janis Radins wrote:

Hye ppl!

I've been searching for decent AS2 UML tool but had no luck.
Could anyone share theyr good expieriences of some UML tools well  
suited

for AS2 ?

PS
Yes I've seen Grant Skinner Gmodeler, idea is good but it's still  
way too

raw.
___
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] Dynamic drop shadow

2006-02-17 Thread Andreas Rønning

Philip Smith wrote:

Hi there,

   I'm looking for an AS2 class that will provide a drop shadow for a window 
pane that is continually resizing. I would prefer a class with an easy 
interface, that allows a movie clip to be registered as the clip to be 
shadowed, with a constant loop running inside of it to keep the shadow 
proportional.

  Any classes that do this would be greatly appreciated.

Thanks,

Philip
___
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
  
Hahahah. Dude. Write your own classes. That class would take me less 
than a minute to write, and i'm not a particularly clever guy.

I'd still get PAID for that minute though at work.

Open flash, hit F1. Learn. You'll love yourself for it.

- Andreas
___
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] Dynamic drop shadow

2006-02-17 Thread eric dolecki
You don't even need a class to do that really... apply a dropShadow filter
to it and you're done.

- edolecki

On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:

 Hi there,

I'm looking for an AS2 class that will provide a drop shadow for a
 window pane that is continually resizing. I would prefer a class with an
 easy interface, that allows a movie clip to be registered as the clip to be
 shadowed, with a constant loop running inside of it to keep the shadow
 proportional.

   Any classes that do this would be greatly appreciated.

 Thanks,

 Philip
 ___
 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] WindowSWF buggy ?

2006-02-17 Thread Manuel Saint-Victor
I've been having quite a bit of trouble with installing WindowSWF custom
panels- Many come up with different content than the intended swf file even
when I install mxp files from third parties.  Is this a known issue or is it
just my installation and does anyone know of any workarounds for this?


Mani
___
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] stellar FLV preloader?

2006-02-17 Thread code
Hi there,

Has anyone come across a solid method for preloading FLVs?

I've been using a slight variation on the plain vanilla one
from Flash
docs(http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htmcontext=LiveDocs_Partsfile=1573.html)
but am finding it unreliable. Shorter FLVs seem to preload fine, 
but anything over, say 6mb, will often go through the motions of
preloading, but then plays back as if it was streaming without
being cached i.e. it staggers through the first playback and plays
smoothly after it's reloaded.

What really gets me about this, is that smaller files with same
data rates preload and playback fine...

Thanks!
- Igor

___
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] Dynamic drop shadow

2006-02-17 Thread Charles Parcell
I wouldn't have such a class loop to keep checking the dropshadow. There
really is no need. The dropshadow is always rendered from the visible part
of a MC. So if the MC is resized then it too resizes.

Charles P.


On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:

 Hi there,

I'm looking for an AS2 class that will provide a drop shadow for a
 window pane that is continually resizing. I would prefer a class with an
 easy interface, that allows a movie clip to be registered as the clip to be
 shadowed, with a constant loop running inside of it to keep the shadow
 proportional.

   Any classes that do this would be greatly appreciated.

 Thanks,

 Philip
 ___
 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] Dynamic drop shadow

2006-02-17 Thread Mike Mountain
We're assuming you're using Flash 8 If not then a drop shadow class
is a perfectly reasonable thing to try and tackle in mx04

M


 
 On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:
 
  Hi there,
 
 I'm looking for an AS2 class that will provide a drop 
 shadow for a 
  window pane that is continually resizing. I would prefer a 
 class with 
  an easy interface, that allows a movie clip to be registered as the 
  clip to be shadowed, with a constant loop running inside of 
 it to keep 
  the shadow proportional.
 
Any classes that do this would be greatly appreciated.
 
  Thanks,
 
  Philip
  ___
  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] coding the main stage as if it were a class

2006-02-17 Thread JesterXL
What aren't you comfortable with?  Some don't like extending the timeline, 
and do something like:

class MyController
{
private var view:MovieClip;

function MyController ( mc:MovieClip )
{
view = mc;
}
}

And then on _root;

controller = new MyController(this);

or:

class MyController
{

private var view:MovieClip;

public static function init ( mc:MovieClip )
{
view = mc;
}
}

and then on _root:

MyController.init(this);

there are a few other variations.  I like making _root a class, though!
- Original Message - 
From: Manuel Saint-Victor [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 9:19 AM
Subject: [Flashcoders] coding the main stage as if it were a class


I've seen this done in a few tutorial where the code placed in the main time
line is written as if it were in a class file.  By this I mean things like
writing addEventListener(this); and having the functions sitting in the main
timeline that handles the event.  I think this is a convenient approach- and
I know the response by siome will be--well just make the main timeline a
class- etc and sometimes I do that but others I'm not fully comfortable
doing that but have found this to be a good halfway point.  Can anyone who
uses this approach tell me the their thoughts on this.  I wish I could think
of some more examples of this but am coming up blank right now.

Thanks,

Mani
___
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] Dynamic drop shadow

2006-02-17 Thread eric dolecki
http://www.quasimondo.com/archives/000202.php

Quasi is mondo :) Not a class - but check it out.

On 2/17/06, Mike Mountain [EMAIL PROTECTED] wrote:

 We're assuming you're using Flash 8 If not then a drop shadow class
 is a perfectly reasonable thing to try and tackle in mx04

 M


 
  On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:
  
   Hi there,
  
  I'm looking for an AS2 class that will provide a drop
  shadow for a
   window pane that is continually resizing. I would prefer a
  class with
   an easy interface, that allows a movie clip to be registered as the
   clip to be shadowed, with a constant loop running inside of
  it to keep
   the shadow proportional.
  
 Any classes that do this would be greatly appreciated.
  
   Thanks,
  
   Philip
   ___
   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] Set import for runtime sharing at runtime

2006-02-17 Thread Jim Tann
I realize this is a bit of an out there question, but is it possible to
flag a movie clip created at runtime to be imported from a shared
library? I have a shared library with a lot of clips but don't want to
have to have the place holder in the movies importing them.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric
dolecki
Sent: 17 February 2006 15:45
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Dynamic drop shadow

http://www.quasimondo.com/archives/000202.php

Quasi is mondo :) Not a class - but check it out.

On 2/17/06, Mike Mountain [EMAIL PROTECTED] wrote:

 We're assuming you're using Flash 8 If not then a drop shadow
class
 is a perfectly reasonable thing to try and tackle in mx04

 M


 
  On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:
  
   Hi there,
  
  I'm looking for an AS2 class that will provide a drop
  shadow for a
   window pane that is continually resizing. I would prefer a
  class with
   an easy interface, that allows a movie clip to be registered as
the
   clip to be shadowed, with a constant loop running inside of
  it to keep
   the shadow proportional.
  
 Any classes that do this would be greatly appreciated.
  
   Thanks,
  
   Philip
   ___
   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] Dynamic drop shadow

2006-02-17 Thread Philip Smith
Ok smartie, let's see you write your own drop shadow class for the Flash 7 
player in 1minute...


Philip


- Original Message - 
From: Andreas Rønning [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 9:31 AM
Subject: Re: [Flashcoders] Dynamic drop shadow



Philip Smith wrote:

Hi there,

   I'm looking for an AS2 class that will provide a drop shadow for a 
window pane that is continually resizing. I would prefer a class with an 
easy interface, that allows a movie clip to be registered as the clip to 
be shadowed, with a constant loop running inside of it to keep the shadow 
proportional.


  Any classes that do this would be greatly appreciated.

Thanks,

Philip
___
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

Hahahah. Dude. Write your own classes. That class would take me less than 
a minute to write, and i'm not a particularly clever guy.

I'd still get PAID for that minute though at work.

Open flash, hit F1. Learn. You'll love yourself for it.

- Andreas
___
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] dispatching events at creation time?

2006-02-17 Thread azsl1326-email
A little late in the (reply) game, but you could try:

MovieClip.prototype.onConstruct = function()
{
trace(created)
}

This will be called anytime a new clip is created. You could, however, weed out 
the unwanted dispatching of events, by dispatching based upon the name of the 
clip created, i.e.:


 MovieClip.prototype.onConstruct = function()
 {
 if(this._name == myMC){
trace(created)
}
 }

Hope that helps.

---Original Message-
From: flashcoders-bounces at chattyfig.figleaf.com
[mailto:flashcoders-bounces at chattyfig.figleaf.com] On Behalf Of Luca
Candela
Sent: donderdag 16 februari 2006 16:01
To: flashcoders at chattyfig.figleaf.com
Subject: [Flashcoders] dispatching events at creation time?

--
class tryOut {

public var addEventListener:Function;
public var removeEventListener:Function;
private var dispatchEvent:Function;

function tryOut() {
mx.events.EventDispatcher.initialize(this);
trace(I am Here 1);
dispatchEvent({type:created, target:this});

}

public function callMe():Void {
dispatchEvent({type:created, target:this});
}
}
--
when I instantiate this class everything works except the dispatchEvent
in the constructor of the class. Why and how can I do to force an object
to call me back when he is created?

___
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] Dynamic drop shadow

2006-02-17 Thread Philip Smith
Thanks for the responses. Is there an AS 2.0 equivalent AS 2.0 Flash 7 
version of the Quasi file?


  I know the drop shadow can be created with a shape tweening class from 
scratch, but there is not enough time in this project for that. I found the 
Flash 8 DropShadowFilter class which enabled me to create the effect in 
about two minutes, but the client may not want to output for the Flash 8 
player.


Philip

- Original Message - 
From: eric dolecki [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 10:45 AM
Subject: Re: [Flashcoders] Dynamic drop shadow


http://www.quasimondo.com/archives/000202.php

Quasi is mondo :) Not a class - but check it out.

On 2/17/06, Mike Mountain [EMAIL PROTECTED] wrote:


We're assuming you're using Flash 8 If not then a drop shadow class
is a perfectly reasonable thing to try and tackle in mx04

M



 On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:
 
  Hi there,
 
 I'm looking for an AS2 class that will provide a drop
 shadow for a
  window pane that is continually resizing. I would prefer a
 class with
  an easy interface, that allows a movie clip to be registered as the
  clip to be shadowed, with a constant loop running inside of
 it to keep
  the shadow proportional.
 
Any classes that do this would be greatly appreciated.
 
  Thanks,
 
  Philip
  ___
  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] dispatching events at creation time?

2006-02-17 Thread Aaron Smith
if you subclass movieclip then you have access to the onLoad method. 
Just overload that and put your dispatch in there


public function onLoad():Void
{
   dispatchEvent({type:'onload', target:this});
}




[EMAIL PROTECTED] wrote:


A little late in the (reply) game, but you could try:

MovieClip.prototype.onConstruct = function()
{
   trace(created)
}

This will be called anytime a new clip is created. You could, however, weed out 
the unwanted dispatching of events, by dispatching based upon the name of the 
clip created, i.e.:


MovieClip.prototype.onConstruct = function()
{
if(this._name == myMC){
   trace(created)
   }
}

Hope that helps.

---Original Message-
From: flashcoders-bounces at chattyfig.figleaf.com
[mailto:flashcoders-bounces at chattyfig.figleaf.com] On Behalf Of Luca
Candela
Sent: donderdag 16 februari 2006 16:01
To: flashcoders at chattyfig.figleaf.com
Subject: [Flashcoders] dispatching events at creation time?

--
class tryOut {

   public var addEventListener:Function;
   public var removeEventListener:Function;
   private var dispatchEvent:Function;

   function tryOut() {
   mx.events.EventDispatcher.initialize(this);
   trace(I am Here 1);
   dispatchEvent({type:created, target:this});

   }

   public function callMe():Void {
   dispatchEvent({type:created, target:this});
   }
}
--
when I instantiate this class everything works except the dispatchEvent
in the constructor of the class. Why and how can I do to force an object
to call me back when he is created?

___
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] Dynamic drop shadow

2006-02-17 Thread Jim Tann
Can you duplicate the movie you want the shadow on and tint it to be
black set its alpha to 35% and offset it from the original slightly.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Philip
Smith
Sent: 28 February 2006 04:30
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Dynamic drop shadow

Thanks for the responses. Is there an AS 2.0 equivalent AS 2.0 Flash 7 
version of the Quasi file?

   I know the drop shadow can be created with a shape tweening class
from 
scratch, but there is not enough time in this project for that. I found
the 
Flash 8 DropShadowFilter class which enabled me to create the effect in 
about two minutes, but the client may not want to output for the Flash 8

player.

Philip

- Original Message - 
From: eric dolecki [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 10:45 AM
Subject: Re: [Flashcoders] Dynamic drop shadow


http://www.quasimondo.com/archives/000202.php

Quasi is mondo :) Not a class - but check it out.

On 2/17/06, Mike Mountain [EMAIL PROTECTED] wrote:

 We're assuming you're using Flash 8 If not then a drop shadow
class
 is a perfectly reasonable thing to try and tackle in mx04

 M


 
  On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:
  
   Hi there,
  
  I'm looking for an AS2 class that will provide a drop
  shadow for a
   window pane that is continually resizing. I would prefer a
  class with
   an easy interface, that allows a movie clip to be registered as
the
   clip to be shadowed, with a constant loop running inside of
  it to keep
   the shadow proportional.
  
 Any classes that do this would be greatly appreciated.
  
   Thanks,
  
   Philip
   ___
   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] Dynamic drop shadow

2006-02-17 Thread eric dolecki
Right... nesting can do all of this for you hopefully.

Slice-9 would set you free here too without distortions, but alas no F8 for
you ;)

On 2/17/06, Jim Tann [EMAIL PROTECTED] wrote:

 Can you duplicate the movie you want the shadow on and tint it to be
 black set its alpha to 35% and offset it from the original slightly.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Philip
 Smith
 Sent: 28 February 2006 04:30
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Dynamic drop shadow

 Thanks for the responses. Is there an AS 2.0 equivalent AS 2.0 Flash 7
 version of the Quasi file?

I know the drop shadow can be created with a shape tweening class
 from
 scratch, but there is not enough time in this project for that. I found
 the
 Flash 8 DropShadowFilter class which enabled me to create the effect in
 about two minutes, but the client may not want to output for the Flash 8

 player.

 Philip

 - Original Message -
 From: eric dolecki [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, February 17, 2006 10:45 AM
 Subject: Re: [Flashcoders] Dynamic drop shadow


 http://www.quasimondo.com/archives/000202.php

 Quasi is mondo :) Not a class - but check it out.

 On 2/17/06, Mike Mountain [EMAIL PROTECTED] wrote:
 
  We're assuming you're using Flash 8 If not then a drop shadow
 class
  is a perfectly reasonable thing to try and tackle in mx04
 
  M
 
 
  
   On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:
   
Hi there,
   
   I'm looking for an AS2 class that will provide a drop
   shadow for a
window pane that is continually resizing. I would prefer a
   class with
an easy interface, that allows a movie clip to be registered as
 the
clip to be shadowed, with a constant loop running inside of
   it to keep
the shadow proportional.
   
  Any classes that do this would be greatly appreciated.
   
Thanks,
   
Philip
___
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

___
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] Dynamic drop shadow

2006-02-17 Thread Charles Parcell
You should have noted that you needed a Flash 7 class in your original post.

Charles P.


On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:

 Ok smartie, let's see you write your own drop shadow class for the Flash 7
 player in 1minute...

 Philip


 - Original Message -
 From: Andreas Rønning [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, February 17, 2006 9:31 AM
 Subject: Re: [Flashcoders] Dynamic drop shadow


  Philip Smith wrote:
  Hi there,
 
 I'm looking for an AS2 class that will provide a drop shadow for a
  window pane that is continually resizing. I would prefer a class with
 an
  easy interface, that allows a movie clip to be registered as the clip
 to
  be shadowed, with a constant loop running inside of it to keep the
 shadow
  proportional.
 
Any classes that do this would be greatly appreciated.
 
  Thanks,
 
  Philip
  ___
  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
 
  Hahahah. Dude. Write your own classes. That class would take me less
 than
  a minute to write, and i'm not a particularly clever guy.
  I'd still get PAID for that minute though at work.
 
  Open flash, hit F1. Learn. You'll love yourself for it.
 
  - Andreas
  ___
  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] Dynamic drop shadow

2006-02-17 Thread Philip Smith
  The window pane is constantly resizing. I'm working within the framework 
of another developer's project, and an encapsulated Flash 7 class would be 
the solution I would like to implement, one that is also less memory 
intensive than the new DropShadow filter class.


Thanks,

Philip

- Original Message - 
From: Jim Tann [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 11:29 AM
Subject: RE: [Flashcoders] Dynamic drop shadow


Can you duplicate the movie you want the shadow on and tint it to be
black set its alpha to 35% and offset it from the original slightly.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Philip
Smith
Sent: 28 February 2006 04:30
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Dynamic drop shadow

Thanks for the responses. Is there an AS 2.0 equivalent AS 2.0 Flash 7
version of the Quasi file?

  I know the drop shadow can be created with a shape tweening class
from
scratch, but there is not enough time in this project for that. I found
the
Flash 8 DropShadowFilter class which enabled me to create the effect in
about two minutes, but the client may not want to output for the Flash 8

player.

Philip

- Original Message - 
From: eric dolecki [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 10:45 AM
Subject: Re: [Flashcoders] Dynamic drop shadow


http://www.quasimondo.com/archives/000202.php

Quasi is mondo :) Not a class - but check it out.

On 2/17/06, Mike Mountain [EMAIL PROTECTED] wrote:


We're assuming you're using Flash 8 If not then a drop shadow

class

is a perfectly reasonable thing to try and tackle in mx04

M



 On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:
 
  Hi there,
 
 I'm looking for an AS2 class that will provide a drop
 shadow for a
  window pane that is continually resizing. I would prefer a
 class with
  an easy interface, that allows a movie clip to be registered as

the

  clip to be shadowed, with a constant loop running inside of
 it to keep
  the shadow proportional.
 
Any classes that do this would be greatly appreciated.
 
  Thanks,
 
  Philip
  ___
  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


___
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] Dynamic drop shadow

2006-02-17 Thread Philip Smith
Right, although the client has yet to determine that. I would like to have a 
few options available.


Thanks,

Philip


- Original Message - 
From: Charles Parcell [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 11:40 AM
Subject: Re: [Flashcoders] Dynamic drop shadow


You should have noted that you needed a Flash 7 class in your original 
post.


Charles P.


On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:


Ok smartie, let's see you write your own drop shadow class for the Flash 
7

player in 1minute...

Philip


- Original Message -
From: Andreas Rønning [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 9:31 AM
Subject: Re: [Flashcoders] Dynamic drop shadow


 Philip Smith wrote:
 Hi there,

I'm looking for an AS2 class that will provide a drop shadow for a
 window pane that is continually resizing. I would prefer a class with
an
 easy interface, that allows a movie clip to be registered as the clip
to
 be shadowed, with a constant loop running inside of it to keep the
shadow
 proportional.

   Any classes that do this would be greatly appreciated.

 Thanks,

 Philip
 ___
 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

 Hahahah. Dude. Write your own classes. That class would take me less
than
 a minute to write, and i'm not a particularly clever guy.
 I'd still get PAID for that minute though at work.

 Open flash, hit F1. Learn. You'll love yourself for it.

 - Andreas
 ___
 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] need : flowing sine waves - via drawing api

2006-02-17 Thread artur

no.. something more like this :

http://www.vectorjunkie.co.uk/experiments/sinTool.htm
but instead of balls its a solid line.

the idea is to have 3 lines oscillating so that it looks like they are 
flowing.




Ben Smeets wrote:


http://www.gotoandplay.it/_articles/2005/06/pathClass.php

Something like that? 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of artur
Sent: donderdag 16 februari 2006 17:47
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] need : multiple sine waves animating - via
drawing api

does some have code for this?

i looked everywhere.. no luck.

just want 3 waves ( lines ) to ebb and flow organically.

thanks in advance

-artur
___
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


 




--
*.: artur :.
www.artur.com http://www.artur.com/ :: *industrial strength design
___
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] coding the main stage as if it were a class

2006-02-17 Thread Manuel Saint-Victor
Okay- actually I like that approach.  I had seen you do part of that in a
tutorial before but not with actually setting the class as the view from the
timeline.  It actually makes it a lot clearer now.

I guess it's not as much not being comfortable with it as much as sometimes
during a quick scripting I hesitate to create a class for a really small
app.  But as you know then a request here and there suddenly has the app
doing a lot more and while I'm waiting for the downtime to put it in a class
I regret every new line of code that I'm putting in _root and antiucipating
trying to place in a class file.

I know that if I code it correctly on root to begin with the transition is
not that big a deal but it still makes me cringe.


Thanks again- I'll probably use that as my crutch method at times when I'm
not quite ready to drop something in a class file.

M


On 2/17/06, JesterXL [EMAIL PROTECTED] wrote:

 What aren't you comfortable with?  Some don't like extending the timeline,
 and do something like:

 class MyController
 {
 private var view:MovieClip;

 function MyController ( mc:MovieClip )
 {
 view = mc;
 }
 }

 And then on _root;

 controller = new MyController(this);

 or:

 class MyController
 {

 private var view:MovieClip;

 public static function init ( mc:MovieClip )
 {
 view = mc;
 }
 }

 and then on _root:

 MyController.init(this);

 there are a few other variations.  I like making _root a class, though!
 - Original Message -
 From: Manuel Saint-Victor [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, February 17, 2006 9:19 AM
 Subject: [Flashcoders] coding the main stage as if it were a class


 I've seen this done in a few tutorial where the code placed in the main
 time
 line is written as if it were in a class file.  By this I mean things like
 writing addEventListener(this); and having the functions sitting in the
 main
 timeline that handles the event.  I think this is a convenient approach-
 and
 I know the response by siome will be--well just make the main timeline a
 class- etc and sometimes I do that but others I'm not fully comfortable
 doing that but have found this to be a good halfway point.  Can anyone who
 uses this approach tell me the their thoughts on this.  I wish I could
 think
 of some more examples of this but am coming up blank right now.

 Thanks,

 Mani
 ___
 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] Dynamic drop shadow

2006-02-17 Thread JesterXL
Flex 1.5 has a shadow drawing algo that utilizes the v2 framework to do so 
it supports Flash 7; AS2.

- Original Message - 
From: Philip Smith [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, February 27, 2006 11:47 PM
Subject: Re: [Flashcoders] Dynamic drop shadow


Right, although the client has yet to determine that. I would like to have a
few options available.

Thanks,

Philip


- Original Message - 
From: Charles Parcell [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 11:40 AM
Subject: Re: [Flashcoders] Dynamic drop shadow


 You should have noted that you needed a Flash 7 class in your original
 post.

 Charles P.


 On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:

 Ok smartie, let's see you write your own drop shadow class for the Flash
 7
 player in 1minute...

 Philip


 - Original Message -
 From: Andreas Rønning [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, February 17, 2006 9:31 AM
 Subject: Re: [Flashcoders] Dynamic drop shadow


  Philip Smith wrote:
  Hi there,
 
 I'm looking for an AS2 class that will provide a drop shadow for a
  window pane that is continually resizing. I would prefer a class with
 an
  easy interface, that allows a movie clip to be registered as the clip
 to
  be shadowed, with a constant loop running inside of it to keep the
 shadow
  proportional.
 
Any classes that do this would be greatly appreciated.
 
  Thanks,
 
  Philip
  ___
  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
 
  Hahahah. Dude. Write your own classes. That class would take me less
 than
  a minute to write, and i'm not a particularly clever guy.
  I'd still get PAID for that minute though at work.
 
  Open flash, hit F1. Learn. You'll love yourself for it.
 
  - Andreas
  ___
  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] Dynamic drop shadow

2006-02-17 Thread Merrill, Jason
Flex 1.5 has a shadow drawing algo that utilizes the v2 framework to do so
it supports Flash 7; AS2.

... and Flex 1.5 will also cost you $15,000.00 USD.  Rather expensive for a 
drop shadow IMO.  :)

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com









-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Friday, February 17, 2006 12:21 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Dynamic drop shadow

Flex 1.5 has a shadow drawing algo that utilizes the v2 framework to do so
it supports Flash 7; AS2.

- Original Message -
From: Philip Smith [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, February 27, 2006 11:47 PM
Subject: Re: [Flashcoders] Dynamic drop shadow


Right, although the client has yet to determine that. I would like to have a
few options available.

Thanks,

Philip


- Original Message -
From: Charles Parcell [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 11:40 AM
Subject: Re: [Flashcoders] Dynamic drop shadow


 You should have noted that you needed a Flash 7 class in your original
 post.

 Charles P.


 On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:

 Ok smartie, let's see you write your own drop shadow class for the Flash
 7
 player in 1minute...

 Philip


 - Original Message -
 From: Andreas Rønning [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, February 17, 2006 9:31 AM
 Subject: Re: [Flashcoders] Dynamic drop shadow


  Philip Smith wrote:
  Hi there,
 
 I'm looking for an AS2 class that will provide a drop shadow for a
  window pane that is continually resizing. I would prefer a class with
 an
  easy interface, that allows a movie clip to be registered as the clip
 to
  be shadowed, with a constant loop running inside of it to keep the
 shadow
  proportional.
 
Any classes that do this would be greatly appreciated.
 
  Thanks,
 
  Philip
  ___
  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
 
  Hahahah. Dude. Write your own classes. That class would take me less
 than
  a minute to write, and i'm not a particularly clever guy.
  I'd still get PAID for that minute though at work.
 
  Open flash, hit F1. Learn. You'll love yourself for it.
 
  - Andreas
  ___
  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
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
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] Dynamic drop shadow

2006-02-17 Thread Andreas Rønning
Nah man. For flash 7 it's not a smart thing to write a dropshadow class 
like the one you describe at all.
You'd put the drop shadow functionality in your window class draw 
method. The big problem with your
approach is you'd have hell to juggle the depths (because without 
overlapping, what's even the point of a dropshadow).
That, guessing you'd want windows to take the highest depth when given 
user focus.


- Andreas

Philip Smith wrote:
Ok smartie, let's see you write your own drop shadow class for the 
Flash 7 player in 1minute...


Philip


- Original Message - From: Andreas Rønning 
[EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 9:31 AM
Subject: Re: [Flashcoders] Dynamic drop shadow



Philip Smith wrote:

Hi there,

   I'm looking for an AS2 class that will provide a drop shadow for 
a window pane that is continually resizing. I would prefer a class 
with an easy interface, that allows a movie clip to be registered as 
the clip to be shadowed, with a constant loop running inside of it 
to keep the shadow proportional.


  Any classes that do this would be greatly appreciated.

Thanks,

Philip
___
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

Hahahah. Dude. Write your own classes. That class would take me less 
than a minute to write, and i'm not a particularly clever guy.

I'd still get PAID for that minute though at work.

Open flash, hit F1. Learn. You'll love yourself for it.

- Andreas
___
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] Dynamic drop shadow

2006-02-17 Thread Philip Smith
As noted, I am working within another developer's framework, and cannot make 
fundamental design changes at this time. The new DropShadowFilter works on 
the principle I described, you register a view and bang, full functionality 
in a couple of lines of code. You could do it in Flash 7, but it would take 
a lot more code than even you could write in one minute.


Philip

- Original Message - 
From: Andreas Rønning [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 1:02 PM
Subject: Re: [Flashcoders] Dynamic drop shadow


Nah man. For flash 7 it's not a smart thing to write a dropshadow class 
like the one you describe at all.
You'd put the drop shadow functionality in your window class draw method. 
The big problem with your
approach is you'd have hell to juggle the depths (because without 
overlapping, what's even the point of a dropshadow).
That, guessing you'd want windows to take the highest depth when given 
user focus.


- Andreas

Philip Smith wrote:
Ok smartie, let's see you write your own drop shadow class for the Flash 
7 player in 1minute...


Philip


- Original Message - From: Andreas Rønning 
[EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 9:31 AM
Subject: Re: [Flashcoders] Dynamic drop shadow



Philip Smith wrote:

Hi there,

   I'm looking for an AS2 class that will provide a drop shadow for a 
window pane that is continually resizing. I would prefer a class with 
an easy interface, that allows a movie clip to be registered as the 
clip to be shadowed, with a constant loop running inside of it to keep 
the shadow proportional.


  Any classes that do this would be greatly appreciated.

Thanks,

Philip
___
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

Hahahah. Dude. Write your own classes. That class would take me less 
than a minute to write, and i'm not a particularly clever guy.

I'd still get PAID for that minute though at work.

Open flash, hit F1. Learn. You'll love yourself for it.

- Andreas
___
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] Dynamic drop shadow

2006-02-17 Thread Johannes Nel
instqead of poling just use object.watch

On 2/28/06, Philip Smith [EMAIL PROTECTED] wrote:

 As noted, I am working within another developer's framework, and cannot
 make
 fundamental design changes at this time. The new DropShadowFilter works on
 the principle I described, you register a view and bang, full
 functionality
 in a couple of lines of code. You could do it in Flash 7, but it would
 take
 a lot more code than even you could write in one minute.

 Philip

 - Original Message -
 From: Andreas Rønning [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, February 17, 2006 1:02 PM
 Subject: Re: [Flashcoders] Dynamic drop shadow


  Nah man. For flash 7 it's not a smart thing to write a dropshadow class
  like the one you describe at all.
  You'd put the drop shadow functionality in your window class draw
 method.
  The big problem with your
  approach is you'd have hell to juggle the depths (because without
  overlapping, what's even the point of a dropshadow).
  That, guessing you'd want windows to take the highest depth when given
  user focus.
 
  - Andreas
 
  Philip Smith wrote:
  Ok smartie, let's see you write your own drop shadow class for the
 Flash
  7 player in 1minute...
 
  Philip
 
 
  - Original Message - From: Andreas Rønning
  [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Friday, February 17, 2006 9:31 AM
  Subject: Re: [Flashcoders] Dynamic drop shadow
 
 
  Philip Smith wrote:
  Hi there,
 
 I'm looking for an AS2 class that will provide a drop shadow for a
  window pane that is continually resizing. I would prefer a class with
  an easy interface, that allows a movie clip to be registered as the
  clip to be shadowed, with a constant loop running inside of it to
 keep
  the shadow proportional.
 
Any classes that do this would be greatly appreciated.
 
  Thanks,
 
  Philip
  ___
  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
 
  Hahahah. Dude. Write your own classes. That class would take me less
  than a minute to write, and i'm not a particularly clever guy.
  I'd still get PAID for that minute though at work.
 
  Open flash, hit F1. Learn. You'll love yourself for it.
 
  - Andreas
  ___
  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
___
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] WindowSWF buggy ?

2006-02-17 Thread clark slater
Hi Mani,

I suffered from this for quite some time and it was driving me crazy when
trying to develop extensions. I finally found a way to fix it:

- delete any windowSWF's from the following folder
C:\Flash 8\en\First Run\WindowSWF

- delete panelset.xml and FirstRun.log from the following folder
C:\Documents and Settings\username\Local Settings\Application
Data\Macromedia\Flash 8\en\Configuration

NOTE: This will hose any custom panel layouts you have created, but it will
fix the problem of the wrong windowSWF launching when you choose from 'Other
Panels'.

Clark


On 2/17/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:

 I've been having quite a bit of trouble with installing WindowSWF custom
 panels- Many come up with different content than the intended swf file
 even
 when I install mxp files from third parties.  Is this a known issue or is
 it
 just my installation and does anyone know of any workarounds for this?


 Mani
 ___
 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] seeking :: Oscillating SineWaves via Drawing API

2006-02-17 Thread artur
sorry for the repost but..

im a bit under the gun...and i looked EVERYWHERE!

i need a drawing api function or fla
that can produce multiple flowing sinewaves.
the waves should be random in oscillating and appear to be flowing 
organically.

please help!

thanks

artur
___
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] Dynamic drop shadow

2006-02-17 Thread Andreas Rønning
 As noted, I am working within another developer's framework, and 
cannot make fundamental design changes at this time.
I didn't say it can't be done. I said it wasnt the smart thing to do. If 
you work with someone elses framework but can't subclass or supply your 
own prototypes along the road, you got a pretty shit deal in my opinion.
Funny this comes up now, so soon after we discussed the value of 
properly organizing your depths, spacing them out to make room for 
adjustments and extra content. In my window class, the base clip is 
empty, with the first layer of graphics being drawn on level 10 of that 
clip. This gives me 10 depths to stick whatever frivolous junk i want 
underneath the window.


The new DropShadowFilter works on the principle I described

Not at all really. Any filtered movieclip in Flash 8 is bitmap cached, 
and is thus rendered by the bitmap renderer, which filters a given 
movieClip based on the contents of its filters array. You don't assign a 
clip to a filter, you assign a filter to a clip. Which goes along the 
same lines of what i described. Since you're not actually filtering 
anything in flash 7, the smart thing to do is draw the dropshadow in the 
same process that draws/rescales your windows.


You could do it in Flash 7, but it would take a lot more code than 
even you could write in one minute.


It would take a lot more code than i WOULD write in one minute. Don't 
get all fussy with me. First i assumed you were using flash 8 (in which 
the solution is laughably easy) and merely urged you to find your own 
solution. Then, as i realise you're stuck with flash 7, i urge you to 
pursue a solution that's not a hack, but stable, reliable and smart. If 
my boss asks me to add a dropshadow to a framework that is prohibitive 
against a smart solution, i'll tell him it's a frivolous thing to spend 
so much time on, given the limitations of the project. Choose your 
battles. Complex doesn't mean it's smart.


Your real problem stems from the fact that you can't attach the drop 
shadow clip to the clip you want drop shadowed, mostly because you also 
want the clip to be resizable and drawing the drop shadow would be 
dependant on the clip's width and height. Drawing in a clip alters its 
width and height with every lineTo, which means you need to do something 
like store the clip's real width and height to some temporary variable 
before updating, based on whatever width it originally had. So say you 
do a different thing, and draw all the drop shadows on a completely 
separate clip on a lower depth, so all your dropshadowed clips are being 
drawn together. The problem then is managing their depths in relation 
not only to the clip they're shadowing, but also of other clips, 
shadowed or unshadowed.


The actionscript solution to the problem as you describe it sounds, in 
my book, a lot like skiing on tarmac. And i tend to be mr can-do.


- Andreas

Philip Smith wrote:
As noted, I am working within another developer's framework, and 
cannot make fundamental design changes at this time. The new 
DropShadowFilter works on the principle I described, you register a 
view and bang, full functionality in a couple of lines of code. You 
could do it in Flash 7, but it would take a lot more code than even 
you could write in one minute.


Philip

- Original Message - From: Andreas Rønning 
[EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 1:02 PM
Subject: Re: [Flashcoders] Dynamic drop shadow


Nah man. For flash 7 it's not a smart thing to write a dropshadow 
class like the one you describe at all.
You'd put the drop shadow functionality in your window class draw 
method. The big problem with your
approach is you'd have hell to juggle the depths (because without 
overlapping, what's even the point of a dropshadow).
That, guessing you'd want windows to take the highest depth when 
given user focus.


- Andreas

Philip Smith wrote:
Ok smartie, let's see you write your own drop shadow class for the 
Flash 7 player in 1minute...


Philip


- Original Message - From: Andreas Rønning 
[EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 9:31 AM
Subject: Re: [Flashcoders] Dynamic drop shadow



Philip Smith wrote:

Hi there,

   I'm looking for an AS2 class that will provide a drop shadow 
for a window pane that is continually resizing. I would prefer a 
class with an easy interface, that allows a movie clip to be 
registered as the clip to be shadowed, with a constant loop 
running inside of it to keep the shadow proportional.


  Any classes that do this would be greatly appreciated.

Thanks,

Philip
___
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 

Re: [Flashcoders] seeking :: Oscillating SineWaves via Drawing API

2006-02-17 Thread eric dolecki
Could could just draw a few sinewaves, duplicate them at different yscale,
etc. and then have them loop?

Is it supposed to fake something in particular or just some random
sinewaves? Multiple non-changing but differnet waves? Or is it 1 wave that
needs to change a lot?


On 2/17/06, artur [EMAIL PROTECTED] wrote:

 sorry for the repost but..

 im a bit under the gun...and i looked EVERYWHERE!

 i need a drawing api function or fla
 that can produce multiple flowing sinewaves.
 the waves should be random in oscillating and appear to be flowing
 organically.

 please help!

 thanks

 artur


 ___
 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] Dynamic drop shadow

2006-02-17 Thread Jim Kremens
The samples on the following page all work in Flash 7 using a framework I
*was* developing.  A lot of the shadow and light stuff I was doing became
pointless when Flash 8 came out.  If you're interested in the code, let me
know.

http://jimkremens.com/toolkit/

Jim Kremens


On 2/17/06, Andreas Rønning [EMAIL PROTECTED] wrote:

  As noted, I am working within another developer's framework, and
 cannot make fundamental design changes at this time.
 I didn't say it can't be done. I said it wasnt the smart thing to do. If
 you work with someone elses framework but can't subclass or supply your
 own prototypes along the road, you got a pretty shit deal in my opinion.
 Funny this comes up now, so soon after we discussed the value of
 properly organizing your depths, spacing them out to make room for
 adjustments and extra content. In my window class, the base clip is
 empty, with the first layer of graphics being drawn on level 10 of that
 clip. This gives me 10 depths to stick whatever frivolous junk i want
 underneath the window.

 The new DropShadowFilter works on the principle I described

 Not at all really. Any filtered movieclip in Flash 8 is bitmap cached,
 and is thus rendered by the bitmap renderer, which filters a given
 movieClip based on the contents of its filters array. You don't assign a
 clip to a filter, you assign a filter to a clip. Which goes along the
 same lines of what i described. Since you're not actually filtering
 anything in flash 7, the smart thing to do is draw the dropshadow in the
 same process that draws/rescales your windows.

 You could do it in Flash 7, but it would take a lot more code than
 even you could write in one minute.

 It would take a lot more code than i WOULD write in one minute. Don't
 get all fussy with me. First i assumed you were using flash 8 (in which
 the solution is laughably easy) and merely urged you to find your own
 solution. Then, as i realise you're stuck with flash 7, i urge you to
 pursue a solution that's not a hack, but stable, reliable and smart. If
 my boss asks me to add a dropshadow to a framework that is prohibitive
 against a smart solution, i'll tell him it's a frivolous thing to spend
 so much time on, given the limitations of the project. Choose your
 battles. Complex doesn't mean it's smart.

 Your real problem stems from the fact that you can't attach the drop
 shadow clip to the clip you want drop shadowed, mostly because you also
 want the clip to be resizable and drawing the drop shadow would be
 dependant on the clip's width and height. Drawing in a clip alters its
 width and height with every lineTo, which means you need to do something
 like store the clip's real width and height to some temporary variable
 before updating, based on whatever width it originally had. So say you
 do a different thing, and draw all the drop shadows on a completely
 separate clip on a lower depth, so all your dropshadowed clips are being
 drawn together. The problem then is managing their depths in relation
 not only to the clip they're shadowing, but also of other clips,
 shadowed or unshadowed.

 The actionscript solution to the problem as you describe it sounds, in
 my book, a lot like skiing on tarmac. And i tend to be mr can-do.

 - Andreas

 Philip Smith wrote:
  As noted, I am working within another developer's framework, and
  cannot make fundamental design changes at this time. The new
  DropShadowFilter works on the principle I described, you register a
  view and bang, full functionality in a couple of lines of code. You
  could do it in Flash 7, but it would take a lot more code than even
  you could write in one minute.
 
  Philip
 
  - Original Message - From: Andreas Rønning
  [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Friday, February 17, 2006 1:02 PM
  Subject: Re: [Flashcoders] Dynamic drop shadow
 
 
  Nah man. For flash 7 it's not a smart thing to write a dropshadow
  class like the one you describe at all.
  You'd put the drop shadow functionality in your window class draw
  method. The big problem with your
  approach is you'd have hell to juggle the depths (because without
  overlapping, what's even the point of a dropshadow).
  That, guessing you'd want windows to take the highest depth when
  given user focus.
 
  - Andreas
 
  Philip Smith wrote:
  Ok smartie, let's see you write your own drop shadow class for the
  Flash 7 player in 1minute...
 
  Philip
 
 
  - Original Message - From: Andreas Rønning
  [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Friday, February 17, 2006 9:31 AM
  Subject: Re: [Flashcoders] Dynamic drop shadow
 
 
  Philip Smith wrote:
  Hi there,
 
 I'm looking for an AS2 class that will provide a drop shadow
  for a window pane that is continually resizing. I would prefer a
  class with an easy interface, that allows a movie clip to be
  registered as the clip to be shadowed, with a 

RE: [Flashcoders] UML tool for AS2

2006-02-17 Thread Mark Lapasa
Applying UML and Patterns: An Introduction to Object-Oriented Analysis and
Design and the Unified Process (3rd Edition) (Hardcover) by Craig Larman

The honnest truth is that yes it is 736 pages and weights alot but it's very
well thoughtout and provides a very good context (through Unified Process
methodology) to use UML in a very meaningful way. Often people draw boxes
and lines thinking that if they show it to someone else they will make equal
sense of it. However there is a world of standards out there that developers
tend to gravitate to when they become very well versed in their
implementation language be it ActionScript, Java, C++, etc. This book makes
a very friendly introduction. You can see that it has highly positive
reviews.

Object Design: Roles, Responsibilities, and Collaborations
by Rebecca Wirfs-Brock, Alan McKean

This one is not so much about UML but focuses more on a popular set of
semantics, Responsiblity-Driven Design, in which UML can act as the syntax.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jim Tann
Sent: Friday, February 17, 2006 4:14 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] UML tool for AS2


While we are on the UML topic, can anyone recommend a good book on the
subject?

Jim


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Janis
Radins
Sent: 17 February 2006 08:26
To: Flashcoders mailing list
Subject: Re: [Flashcoders] UML tool for AS2

Tnx Scott!

Looks very mutch like what I've been looking for.


2006/2/17, Scott Mathieson [EMAIL PROTECTED]:

 enterprise architect  http://www.sparxsystems.com.au/products/ea.html

 actionscript support straight of the box

 On Friday 17 February 2006 06:54, Janis Radins wrote:
  Hye ppl!
 
  I've been searching for decent AS2 UML tool but had no luck.
  Could anyone share theyr good expieriences of some UML tools well
suited
  for AS2 ?
 
  PS
  Yes I've seen Grant Skinner Gmodeler, idea is good but it's still
way
 too
  raw.
  ___
  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] seeking :: Oscillating SineWaves via Drawing API

2006-02-17 Thread artur
its 3 waves that need to appear randomly oscillating in height..



Could could just draw a few sinewaves, duplicate them at different 
yscale,
etc. and then have them loop?

Is it supposed to fake something in particular or just some 
random
sinewaves? Multiple non-changing but differnet waves? Or is it 1 
wave that
needs to change a lot?


On 2/17/06, artur [EMAIL PROTECTED] wrote:

sorry for the repost but..

im a bit under the gun...and i looked EVERYWHERE!

i need a drawing api function or fla
that can produce multiple flowing sinewaves.
the waves should be random in oscillating and appear to be 
flowing
organically.

please help!

thanks

artur



___
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] Dynamic drop shadow

2006-02-17 Thread Philip Smith
Hi Jim, I'd like to check the code out, my email is 
[EMAIL PROTECTED]

Thanks.

- Original Message - 
From: Jim Kremens [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 2:45 PM
Subject: Re: [Flashcoders] Dynamic drop shadow


The samples on the following page all work in Flash 7 using a framework I
*was* developing.  A lot of the shadow and light stuff I was doing became
pointless when Flash 8 came out.  If you're interested in the code, let me
know.

http://jimkremens.com/toolkit/

Jim Kremens


On 2/17/06, Andreas Rønning [EMAIL PROTECTED] wrote:


 As noted, I am working within another developer's framework, and
cannot make fundamental design changes at this time.
I didn't say it can't be done. I said it wasnt the smart thing to do. If
you work with someone elses framework but can't subclass or supply your
own prototypes along the road, you got a pretty shit deal in my opinion.
Funny this comes up now, so soon after we discussed the value of
properly organizing your depths, spacing them out to make room for
adjustments and extra content. In my window class, the base clip is
empty, with the first layer of graphics being drawn on level 10 of that
clip. This gives me 10 depths to stick whatever frivolous junk i want
underneath the window.

The new DropShadowFilter works on the principle I described

Not at all really. Any filtered movieclip in Flash 8 is bitmap cached,
and is thus rendered by the bitmap renderer, which filters a given
movieClip based on the contents of its filters array. You don't assign a
clip to a filter, you assign a filter to a clip. Which goes along the
same lines of what i described. Since you're not actually filtering
anything in flash 7, the smart thing to do is draw the dropshadow in the
same process that draws/rescales your windows.

You could do it in Flash 7, but it would take a lot more code than
even you could write in one minute.

It would take a lot more code than i WOULD write in one minute. Don't
get all fussy with me. First i assumed you were using flash 8 (in which
the solution is laughably easy) and merely urged you to find your own
solution. Then, as i realise you're stuck with flash 7, i urge you to
pursue a solution that's not a hack, but stable, reliable and smart. If
my boss asks me to add a dropshadow to a framework that is prohibitive
against a smart solution, i'll tell him it's a frivolous thing to spend
so much time on, given the limitations of the project. Choose your
battles. Complex doesn't mean it's smart.

Your real problem stems from the fact that you can't attach the drop
shadow clip to the clip you want drop shadowed, mostly because you also
want the clip to be resizable and drawing the drop shadow would be
dependant on the clip's width and height. Drawing in a clip alters its
width and height with every lineTo, which means you need to do something
like store the clip's real width and height to some temporary variable
before updating, based on whatever width it originally had. So say you
do a different thing, and draw all the drop shadows on a completely
separate clip on a lower depth, so all your dropshadowed clips are being
drawn together. The problem then is managing their depths in relation
not only to the clip they're shadowing, but also of other clips,
shadowed or unshadowed.

The actionscript solution to the problem as you describe it sounds, in
my book, a lot like skiing on tarmac. And i tend to be mr can-do.

- Andreas

Philip Smith wrote:
 As noted, I am working within another developer's framework, and
 cannot make fundamental design changes at this time. The new
 DropShadowFilter works on the principle I described, you register a
 view and bang, full functionality in a couple of lines of code. You
 could do it in Flash 7, but it would take a lot more code than even
 you could write in one minute.

 Philip

 - Original Message - From: Andreas Rønning
 [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, February 17, 2006 1:02 PM
 Subject: Re: [Flashcoders] Dynamic drop shadow


 Nah man. For flash 7 it's not a smart thing to write a dropshadow
 class like the one you describe at all.
 You'd put the drop shadow functionality in your window class draw
 method. The big problem with your
 approach is you'd have hell to juggle the depths (because without
 overlapping, what's even the point of a dropshadow).
 That, guessing you'd want windows to take the highest depth when
 given user focus.

 - Andreas

 Philip Smith wrote:
 Ok smartie, let's see you write your own drop shadow class for the
 Flash 7 player in 1minute...

 Philip


 - Original Message - From: Andreas Rønning
 [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, February 17, 2006 9:31 AM
 Subject: Re: [Flashcoders] Dynamic drop shadow


 Philip Smith wrote:
 Hi there,

I'm looking for an AS2 class that 

[Flashcoders] Event Dispatcher

2006-02-17 Thread Jamie Alpers
This may be a duh question, but when you use dispatchEvent in a custom
created component, can I use my own event name or do i have to use one of
the built in ones of an object.  For example, I am creating custom quiz
component (the built in ones dont have the flexibility we need) and would
like to add a 'QuestionCompleted' event.  Is this possible?

-Jamie
___
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] Event Dispatcher

2006-02-17 Thread Johannes Nel
yeah. the type property can be whatever, as long as you know what you are
listening for all is good.

On 2/17/06, Jamie Alpers [EMAIL PROTECTED] wrote:

 This may be a duh question, but when you use dispatchEvent in a custom
 created component, can I use my own event name or do i have to use one of
 the built in ones of an object.  For example, I am creating custom quiz
 component (the built in ones dont have the flexibility we need) and would
 like to add a 'QuestionCompleted' event.  Is this possible?

 -Jamie
 ___
 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
___
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] Event Dispatcher

2006-02-17 Thread Scott Fanetti
If you are using Flex2 , create a custom event that extends from the 
event class. and inject the namespace for the custom event into the 
superclass.


___
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] Event Dispatcher

2006-02-17 Thread Jamie Alpers
Thanks.  I relooked at my code and realized i was just making a stupid
mistake by confusing object names. it works now :-)

On 2/17/06, Johannes Nel [EMAIL PROTECTED] wrote:

 yeah. the type property can be whatever, as long as you know what you are
 listening for all is good.

 On 2/17/06, Jamie Alpers [EMAIL PROTECTED] wrote:
 
  This may be a duh question, but when you use dispatchEvent in a custom
  created component, can I use my own event name or do i have to use one
 of
  the built in ones of an object.  For example, I am creating custom quiz
  component (the built in ones dont have the flexibility we need) and
 would
  like to add a 'QuestionCompleted' event.  Is this possible?
 
  -Jamie
  ___
  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
 ___
 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] styleSheets and Links

2006-02-17 Thread Corban Baxter
Does anyone have some good examples of Flash using CSS to stylize links with 
hover properties etc. I can't seem to get my color to work properly.

[code]
//first try at this one
var style_sheet = new TextField.StyleSheet();

style_sheet.setStyle(a, 
 { color: #CC,
 fontFamily: Verdana, sans-serif,
 fontSize: 11px,
 display: inline}
);

//attach movie BG
this.attachMovie(button_mc, link_1, 2);
//add text field to button_mc clip
link_1.createTextField(my_title, 3, 1, 2, 0, 30);
link_1.my_title.autoSize = center;
//apply style
link_1.my_title.styleSheet = style_sheet;

//add link
link_1.my_title.html = true;
link_1.my_title.htmlText=a href='http://www.google.com'hey world!/a;

//find width of text
trace(link_1.my_title._width);

//resize bg for text - 49 is used for the extra pixel width added to the field.
link_1.button_bg._width = link_1.my_title._width + 49;
trace(link_1.button_bg._width);

//center link in BG area...
link_1.my_title._x = 25;

[/code]

Also how do I implement hovers when I do, do it?

Corban Baxter  |  rich media designer  |  www.funimation.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] Event Dispatcher

2006-02-17 Thread Aaron Smith
Just make sure int he constructor you initialize it::  
EventDispatcher.initialize(this)..


also you ned to have these var definititions:

public var addEventListener:Function
public var removeEventListener:Function;
private var dispatchEvent:Function


then to dispatch:

dispatchEvent( { type:'whatever', target:this,  
someOtherProp:'somothervalue' } )


all those props in the dispatchEvent call are just properties in a  
basic Object. you must have type though.



SMITH



On Feb 17, 2006, at 12:44 PM, Jamie Alpers wrote:

This may be a duh question, but when you use dispatchEvent in a  
custom
created component, can I use my own event name or do i have to use  
one of
the built in ones of an object.  For example, I am creating custom  
quiz
component (the built in ones dont have the flexibility we need) and  
would

like to add a 'QuestionCompleted' event.  Is this possible?

-Jamie
___
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] Printing in landscape

2006-02-17 Thread Judah
I'm sure this has asked before but I cannot find anthing in the archives. 

 

Has anyone found a way to set the print orientation to landscape? 

 

Best Regards,

Judah

___
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] coding the main stage as if it were a class

2006-02-17 Thread Judah
There is another method we use. When you start your project create a
movieclip and at it to the stage at 0,0. Open it up and add all your GUI to
that as you would the stage. Then in your library assign your class to the
movieclip. 

Judah

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manuel
Saint-Victor
Sent: Friday, February 17, 2006 11:13 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] coding the main stage as if it were a class

Okay- actually I like that approach.  I had seen you do part of that in a
tutorial before but not with actually setting the class as the view from the
timeline.  It actually makes it a lot clearer now.

I guess it's not as much not being comfortable with it as much as sometimes
during a quick scripting I hesitate to create a class for a really small
app.  But as you know then a request here and there suddenly has the app
doing a lot more and while I'm waiting for the downtime to put it in a class
I regret every new line of code that I'm putting in _root and antiucipating
trying to place in a class file.

I know that if I code it correctly on root to begin with the transition is
not that big a deal but it still makes me cringe.


Thanks again- I'll probably use that as my crutch method at times when I'm
not quite ready to drop something in a class file.

M


On 2/17/06, JesterXL [EMAIL PROTECTED] wrote:

 What aren't you comfortable with?  Some don't like extending the timeline,
 and do something like:

 class MyController
 {
 private var view:MovieClip;

 function MyController ( mc:MovieClip )
 {
 view = mc;
 }
 }

 And then on _root;

 controller = new MyController(this);

 or:

 class MyController
 {

 private var view:MovieClip;

 public static function init ( mc:MovieClip )
 {
 view = mc;
 }
 }

 and then on _root:

 MyController.init(this);

 there are a few other variations.  I like making _root a class, though!
 - Original Message -
 From: Manuel Saint-Victor [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, February 17, 2006 9:19 AM
 Subject: [Flashcoders] coding the main stage as if it were a class


 I've seen this done in a few tutorial where the code placed in the main
 time
 line is written as if it were in a class file.  By this I mean things like
 writing addEventListener(this); and having the functions sitting in the
 main
 timeline that handles the event.  I think this is a convenient approach-
 and
 I know the response by siome will be--well just make the main timeline a
 class- etc and sometimes I do that but others I'm not fully comfortable
 doing that but have found this to be a good halfway point.  Can anyone who
 uses this approach tell me the their thoughts on this.  I wish I could
 think
 of some more examples of this but am coming up blank right now.

 Thanks,

 Mani
 ___
 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] coding the main stage as if it were a class

2006-02-17 Thread Manuel Saint-Victor
I've seen that technique used and wondered how well it would work.  So then
you would have that class extend MovieClip-right?  Is there any weirdness
that comes up that I would want to look out for in this case?  Would you
have the constructor in the class file just call init(); and do the setup in
there?
___
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] Printing in landscape

2006-02-17 Thread Dave Wood

Has anyone found a way to set the print orientation to landscape?


I don't think you can. Are you able to alert the user to the need for  
landscape before initiating the PrintJob?
You can then test for whether they have chosen it with  
Printjob.orientation.


David
___
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] Event Dispatcher

2006-02-17 Thread John Grden
Must resist...the crack...habbit...

 and if you want to point that dispatched to a custom method not named
the same as the event:

obj.addEventListener(onWhatever, Delegate.create(this, myCustomMethod));

private function myCustomMethod(evtObj:Object):Void
{
   // code
}

Also, you don't need to include target in your dispatch, EventDispatcher
includes that for you.

On 2/17/06, Aaron Smith [EMAIL PROTECTED] wrote:

 Just make sure int he constructor you initialize it::
 EventDispatcher.initialize(this)..

 also you ned to have these var definititions:

 public var addEventListener:Function
 public var removeEventListener:Function;
 private var dispatchEvent:Function


 then to dispatch:

 dispatchEvent( { type:'whatever', target:this,
 someOtherProp:'somothervalue' } )

 all those props in the dispatchEvent call are just properties in a
 basic Object. you must have type though.


 SMITH



 On Feb 17, 2006, at 12:44 PM, Jamie Alpers wrote:

  This may be a duh question, but when you use dispatchEvent in a
  custom
  created component, can I use my own event name or do i have to use
  one of
  the built in ones of an object.  For example, I am creating custom
  quiz
  component (the built in ones dont have the flexibility we need) and
  would
  like to add a 'QuestionCompleted' event.  Is this possible?
 
  -Jamie
  ___
  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




--
John Grden - Blitz
___
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] WindowSWF buggy ?

2006-02-17 Thread Manuel Saint-Victor
Clark,
Thank you!!! That worked great! It was driving me crazy and I couldn't
figure out what was causing it-

So when you distribute extensions will they come across that problem also?
I hope not.

Mani
___
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] seeking :: Oscillating SineWaves via Drawing API

2006-02-17 Thread Martin Wood

its quick and its dirty but it should give you something to work with :



for(var n=0;n3;n++)
{
var sinewave:MovieClip = _root.createEmptyMovieClip(sinewave + n,n+1);

sinewave._y = 100;

sinewave.phase = n * 10;
sinewave.frequency = ((n + 1) * 5) / 50;
sinewave.amplitude = 60 - (n * 10);
sinewave.speed = (n + 1) / 5;
sinewave.heightDeviation = Math.random() * 30;

sinewave.onEnterFrame = function()
{
this.phase+=this.speed;
		_root.drawSineWave(this,this.phase,this.amplitude + (Math.sin(this.phase) * 
this.heightDeviation),this.frequency);

}
}

function drawSineWave(mc:MovieClip, phase:Number, amplitude:Number, 
frequency:Number)

{
var numPoints:Number = 80;
var width = 550;

mc.clear();
mc.lineStyle(2,0,100);  

var y:Number = Math.sin(phase * frequency) * amplitude;

mc.moveTo(0,y);

var dx:Number = width / numPoints;

for(var x=0;xnumPoints;x++)
{
y = Math.sin((phase + x) * frequency) * amplitude;
mc.lineTo(x * dx,y);
}
}

you can just stick this into the first frame of an .fla

let me know if you need some explanations.

thanks,

Martin

artur wrote:

its 3 waves that need to appear randomly oscillating in height..

___
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] styleSheets and Links

2006-02-17 Thread Karina Steffens
Hi Corban,

Here's an excerpt from one of my classes:

code
var newStyle = new TextField.StyleSheet();
newStyle.setStyle(a, {color: '#66',  fontWeight:'bold'})
newStyle.setStyle(a:hover, {textDecoration: 'underline'}) 
title_txt.styleSheet = newStyle;
/code

Worked for me, hope this helps.

Karina



 -Original Message-
 From: Corban Baxter [mailto:[EMAIL PROTECTED] 
 Sent: 17 February 2006 20:53
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] styleSheets and Links
 
 Does anyone have some good examples of Flash using CSS to 
 stylize links with hover properties etc. I can't seem to get 
 my color to work properly.
 
 [code]
 //first try at this one
 var style_sheet = new TextField.StyleSheet();
 
 style_sheet.setStyle(a, 
{ color: #CC,
fontFamily: Verdana, 
 sans-serif,
fontSize: 11px,
display: inline}
 );
 
 //attach movie BG
 this.attachMovie(button_mc, link_1, 2); //add text field 
 to button_mc clip link_1.createTextField(my_title, 3, 1, 2, 
 0, 30); link_1.my_title.autoSize = center; //apply style 
 link_1.my_title.styleSheet = style_sheet;
 
 //add link
 link_1.my_title.html = true;
 link_1.my_title.htmlText=a href='http://www.google.com'hey 
 world!/a;
 
 //find width of text
 trace(link_1.my_title._width);
 
 //resize bg for text - 49 is used for the extra pixel width 
 added to the field.
 link_1.button_bg._width = link_1.my_title._width + 49; 
 trace(link_1.button_bg._width);
 
 //center link in BG area...
 link_1.my_title._x = 25;
 
 [/code]
 
 Also how do I implement hovers when I do, do it?
 
 Corban Baxter  |  rich media designer  |  
www.funimation.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] Dynamic drop shadow

2006-02-17 Thread Martin Wood
btw, have you fixed your clock or is this a cynical attempt to stay at the top 
of my list of flashcoders emails? ;)



martin.

Philip Smith wrote:
Hi Jim, I'd like to check the code out, my email is 
[EMAIL PROTECTED]

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] WindowSWF buggy ?

2006-02-17 Thread John Grden
the one thing I've realized is that I simply have to restart Flash to get
the correct swf version in the panel.  I've seen weird version issues and
the that's the only solution that fixes it.  So, probably  making them
restart the IDE is about the safest move u can make.

On 2/17/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:

 Clark,
 Thank you!!! That worked great! It was driving me crazy and I couldn't
 figure out what was causing it-

 So when you distribute extensions will they come across that problem also?
 I hope not.

 Mani
 ___
 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




--
John Grden - Blitz
___
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] TextArea component Special Chars?

2006-02-17 Thread Aaron Smith
Has anyone had issues with flash remoting (amfph) and sending text  
from the textArea component. It seems there are some weird extra  
characters that are being added to the data thats sent. Then php is  
having issues parsing it.


Specifically when I copy text into the textArea component then send  
through amfphp. I am trying to parse some text using Textile for a  
weekly mailer.


Pressing return in the textArea seems like it's sending weird chars  
or something.. php is having a really hard time parsing it..


can anyone help,, or does anyone have a reference to special chars  
that are in the textArea


SMITH



___
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] (no subject)

2006-02-17 Thread Mike Boutin
We have a project.that is created in flash 8 but exported to flash 
player 6, AS1.  When I test the file in flash player 6 standalone 
locally, the file runs fine as well as publishing directly out of 
flash.  When I embed the swf file into html and post it on the web, it 
is only viewable through IE.  In firefox and opera all the preloaders 
stop working.  The wierd thing is when I test the same html file in 
Firefox/Opera locally, they all display like they should.   Has anyone 
has this issue before? Am I missing something? any help would be 
extremely appreciated!


EMBED CODE:

object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 
codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0; 
width=780 height=700 id=interface align=middle

param name=allowScriptAccess value=sameDomain /
param name=movie value=interface.swf /param name=quality 
value=high /param name=bgcolor value=#00 /embed 
src=interface.swf quality=high bgcolor=#00 width=780 
height=700 name=interface align=middle 
allowScriptAccess=sameDomain type=application/x-shockwave-flash 
pluginspage=http://www.macromedia.com/go/getflashplayer; /

/object

Cheers!

Mike




___
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] seeking :: Oscillating SineWaves via Drawing API

2006-02-17 Thread artur


woohoo! this is perfect!
u da man!

thanks Martin!

a
___
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] WindowSWF buggy ?

2006-02-17 Thread clark slater
Unfortunately yes, it seems so - but not always. I have had it happen
to certain team members here when I create some tool for them, but not to
others when installing the same extension. So far have been unable to figure
out a pattern or reason.

What really gets me is that this got fixed in the 7.2 updater for MX2004 and
then resurfaced in F8. I almost flew out the window and down the block when
I saw the same thing happening in F8. Fortunately my meds were close at
hand.

Clark


On 2/17/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:

 Clark,
 Thank you!!! That worked great! It was driving me crazy and I couldn't
 figure out what was causing it-

 So when you distribute extensions will they come across that problem also?
 I hope not.

 Mani
 ___
 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] removing dynamically set eventlisteners

2006-02-17 Thread Latcho

is it possible to linkfor an eventListener to a var like:
   var 
myEventListener=broadcasterScope.addEventListener(eventName,updateVar)
and afterwards in a certain way removing the eventlistener with 
myEventLink  ?


I'd like to remove events that I set dynamically, do I really have to 
store the scope, the event and the doFunc

to be able to remove it or could the return of the myEventListener be used?

Code involved:
var getInfo;
var removeLater=eventToVar(this,myEvent,E_Info,getInfo)

   function 
eventToVar(broadcasterScope,eventName:Object,eventVar:String,setToVar){

   var theVar=setToVar;
   var updateVar=function(event_obj){
   theVar=event_obj[eventVar]
   }
  
   var 
myEventListener=broadcasterScope.addEventListener(eventName,updateVar)

   return myEventListener
   }


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] UML tool for AS2

2006-02-17 Thread Michael Klishin

Hi,

Enterprise Architect 6 supports AS as a native language and has reverse 
engineering feature for it. Give it a try.


Regards.

--
Michael Antares Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
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] coding the main stage as if it were a class

2006-02-17 Thread JesterXL
Ignoring scope of _root level functions is fine.  Ignoring duplication of 
efforts is not.  You can always wrap your functions in a class in 5 minutes. 
Removing duplication in code, however, takes way longer and may cause 
unforseen problems if not solved early enough.

- Original Message - 
From: Manuel Saint-Victor [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 12:12 PM
Subject: Re: [Flashcoders] coding the main stage as if it were a class


Okay- actually I like that approach.  I had seen you do part of that in a
tutorial before but not with actually setting the class as the view from the
timeline.  It actually makes it a lot clearer now.

I guess it's not as much not being comfortable with it as much as sometimes
during a quick scripting I hesitate to create a class for a really small
app.  But as you know then a request here and there suddenly has the app
doing a lot more and while I'm waiting for the downtime to put it in a class
I regret every new line of code that I'm putting in _root and antiucipating
trying to place in a class file.

I know that if I code it correctly on root to begin with the transition is
not that big a deal but it still makes me cringe.


Thanks again- I'll probably use that as my crutch method at times when I'm
not quite ready to drop something in a class file.

M


On 2/17/06, JesterXL [EMAIL PROTECTED] wrote:

 What aren't you comfortable with?  Some don't like extending the timeline,
 and do something like:

 class MyController
 {
 private var view:MovieClip;

 function MyController ( mc:MovieClip )
 {
 view = mc;
 }
 }

 And then on _root;

 controller = new MyController(this);

 or:

 class MyController
 {

 private var view:MovieClip;

 public static function init ( mc:MovieClip )
 {
 view = mc;
 }
 }

 and then on _root:

 MyController.init(this);

 there are a few other variations.  I like making _root a class, though!
 - Original Message -
 From: Manuel Saint-Victor [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, February 17, 2006 9:19 AM
 Subject: [Flashcoders] coding the main stage as if it were a class


 I've seen this done in a few tutorial where the code placed in the main
 time
 line is written as if it were in a class file.  By this I mean things like
 writing addEventListener(this); and having the functions sitting in the
 main
 timeline that handles the event.  I think this is a convenient approach-
 and
 I know the response by siome will be--well just make the main timeline a
 class- etc and sometimes I do that but others I'm not fully comfortable
 doing that but have found this to be a good halfway point.  Can anyone who
 uses this approach tell me the their thoughts on this.  I wish I could
 think
 of some more examples of this but am coming up blank right now.

 Thanks,

 Mani
 ___
 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] Dynamic drop shadow

2006-02-17 Thread JesterXL
It's free to install locally, and works with like 5 IP's in developer 
edition mode.  Then, you can hit debug, and look at the improved v2 code to 
see how they implemented the dropshadow.

- Original Message - 
From: Merrill, Jason [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 12:39 PM
Subject: RE: [Flashcoders] Dynamic drop shadow


Flex 1.5 has a shadow drawing algo that utilizes the v2 framework to do so
it supports Flash 7; AS2.

... and Flex 1.5 will also cost you $15,000.00 USD.  Rather expensive for a 
drop shadow IMO.  :)

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com









-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Friday, February 17, 2006 12:21 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Dynamic drop shadow

Flex 1.5 has a shadow drawing algo that utilizes the v2 framework to do so
it supports Flash 7; AS2.

- Original Message -
From: Philip Smith [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, February 27, 2006 11:47 PM
Subject: Re: [Flashcoders] Dynamic drop shadow


Right, although the client has yet to determine that. I would like to have 
a
few options available.

Thanks,

Philip


- Original Message -
From: Charles Parcell [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 11:40 AM
Subject: Re: [Flashcoders] Dynamic drop shadow


 You should have noted that you needed a Flash 7 class in your original
 post.

 Charles P.


 On 2/27/06, Philip Smith [EMAIL PROTECTED] wrote:

 Ok smartie, let's see you write your own drop shadow class for the 
 Flash
 7
 player in 1minute...

 Philip


 - Original Message -
 From: Andreas Rønning [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, February 17, 2006 9:31 AM
 Subject: Re: [Flashcoders] Dynamic drop shadow


  Philip Smith wrote:
  Hi there,
 
 I'm looking for an AS2 class that will provide a drop shadow for 
  a
  window pane that is continually resizing. I would prefer a class 
  with
 an
  easy interface, that allows a movie clip to be registered as the 
  clip
 to
  be shadowed, with a constant loop running inside of it to keep the
 shadow
  proportional.
 
Any classes that do this would be greatly appreciated.
 
  Thanks,
 
  Philip
  ___
  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
 
  Hahahah. Dude. Write your own classes. That class would take me less
 than
  a minute to write, and i'm not a particularly clever guy.
  I'd still get PAID for that minute though at work.
 
  Open flash, hit F1. Learn. You'll love yourself for it.
 
  - Andreas
  ___
  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
NOTICE:
This message is for the designated recipient only and 

Re: [Flashcoders] coding the main stage as if it were a class

2006-02-17 Thread JesterXL
I used to do that.  It's great because you avoid _root altogether, and never 
have collisions with other content there.

The downside I ran into is if your SWF is loaded into another one, you need 
to remember to do:

MyLoader.content.someApp.method

vs.

MyLoader.content.method

And since you can't enforce this via interfaces (the name of the movieclip 
app thing), it's just 1 small thing.

- Original Message - 
From: Manuel Saint-Victor [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, February 17, 2006 5:25 PM
Subject: Re: [Flashcoders] coding the main stage as if it were a class


I've seen that technique used and wondered how well it would work.  So then
you would have that class extend MovieClip-right?  Is there any weirdness
that comes up that I would want to look out for in this case?  Would you
have the constructor in the class file just call init(); and do the setup in
there?
___
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] When singletons go bad

2006-02-17 Thread Manuel Saint-Victor
In my app I have a Singleton that's composed of and manages a video
component.  In theory- anyone calling the getInstance should be getting that
same class and therefore subsequent references to its public properties
should be calling the same instanceright?

Problem is my getInstances() were not able to control things such as
Netstream in that class.  Is there some weirdness in having certain aspects
be static properties?  I ended up finally just pinning them to a namespace
on a static class (I'll call the class MJ for now)
like this

MJ.videoManager and MJ.stateObject   it works and I guess it's better than
_global(flame off... I know we've had this discussion already) but feels to
me that I've negated the benefit of the Singleton if I'm pinning my
singleton to the MJ static object and then just going there to find it as
other classes need it.
Don't get me wrong -it's working and we're happy- but a part of me feels
like I took this great pattern used it and then bastardized it.  When i try
to have other parts of the movie use getInstance to create a reference
variable and call methods on it i don't get results.

I can't really post code or give a whole bunch of details at this point so
I'm trying to describe it the best I can.


M
___
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] When singletons go bad

2006-02-17 Thread JesterXL
Gotta go for the virus, buddy, ya' can't band-aid it up.  That guilt you're 
feeling is good.  Use that frustration to fuel your desire to solve the 
problem.  While you should be commended for finding a solution, it's still 
just a cover up for the real issue.

Post your getInstance method if you can't post the whole class, maybe that 
will help.

- Original Message - 
From: Manuel Saint-Victor [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, February 18, 2006 1:16 AM
Subject: [Flashcoders] When singletons go bad


In my app I have a Singleton that's composed of and manages a video
component.  In theory- anyone calling the getInstance should be getting that
same class and therefore subsequent references to its public properties
should be calling the same instanceright?

Problem is my getInstances() were not able to control things such as
Netstream in that class.  Is there some weirdness in having certain aspects
be static properties?  I ended up finally just pinning them to a namespace
on a static class (I'll call the class MJ for now)
like this

MJ.videoManager and MJ.stateObject   it works and I guess it's better than
_global(flame off... I know we've had this discussion already) but feels to
me that I've negated the benefit of the Singleton if I'm pinning my
singleton to the MJ static object and then just going there to find it as
other classes need it.
Don't get me wrong -it's working and we're happy- but a part of me feels
like I took this great pattern used it and then bastardized it.  When i try
to have other parts of the movie use getInstance to create a reference
variable and call methods on it i don't get results.

I can't really post code or give a whole bunch of details at this point so
I'm trying to describe it the best I can.


M
___
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] Event Dispatcher

2006-02-17 Thread Johannes Nel
what john is outlining here is fine in essence, but unless you never want to
remove this event listener this will cause a memory leak. either you create
the delegate function on a class scope or you use arguments.caller in the
handler function to remove the event listener

On 2/17/06, John Grden [EMAIL PROTECTED] wrote:

 Must resist...the crack...habbit...

  and if you want to point that dispatched to a custom method not named
 the same as the event:

 obj.addEventListener(onWhatever, Delegate.create(this, myCustomMethod));

 private function myCustomMethod(evtObj:Object):Void
 {
// code
 }

 Also, you don't need to include target in your dispatch, EventDispatcher
 includes that for you.

 On 2/17/06, Aaron Smith [EMAIL PROTECTED] wrote:
 
  Just make sure int he constructor you initialize it::
  EventDispatcher.initialize(this)..
 
  also you ned to have these var definititions:
 
  public var addEventListener:Function
  public var removeEventListener:Function;
  private var dispatchEvent:Function
 
 
  then to dispatch:
 
  dispatchEvent( { type:'whatever', target:this,
  someOtherProp:'somothervalue' } )
 
  all those props in the dispatchEvent call are just properties in a
  basic Object. you must have type though.
 
 
  SMITH
 
 
 
  On Feb 17, 2006, at 12:44 PM, Jamie Alpers wrote:
 
   This may be a duh question, but when you use dispatchEvent in a
   custom
   created component, can I use my own event name or do i have to use
   one of
   the built in ones of an object.  For example, I am creating custom
   quiz
   component (the built in ones dont have the flexibility we need) and
   would
   like to add a 'QuestionCompleted' event.  Is this possible?
  
   -Jamie
   ___
   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
 



 --
 John Grden - Blitz
 ___
 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
___
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