Re: [Flashcoders] Red5 Flash Server Video Tutorials

2006-06-07 Thread John Grden

Wow, thanks Robert, these are excellent!

JG

On 6/6/06, Robert Taylor [EMAIL PROTECTED] wrote:


The link didn't come out correct. Let's try that again.
http://www.flashextensions.com/index.php?page=free

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Taylor
Sent: Tuesday, June 06, 2006 9:22 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Red5 Flash Server Video Tutorials

I put out some video tutorials on Red5 to help anyone struggling and/or
interested in getting started. There are currently 21 videos available
from
beginning to end on building your first Red5 application. You can view
them
here: http://www.flashextensions.com/index.php?page=free. More are to
come.



Robert Taylor

[EMAIL PROTECTED]

Flash Extensions, LLC

Extend Flash. Extend Skills. Extend Possibilities!





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Red5 Flash Server Video Tutorials

2006-06-07 Thread John Grden

and thanks for updating the wiki with the link ;) I just went out there, and
bam, there it was ;)

On 6/7/06, John Grden [EMAIL PROTECTED] wrote:


Wow, thanks Robert, these are excellent!

JG


On 6/6/06, Robert Taylor [EMAIL PROTECTED] wrote:

 The link didn't come out correct. Let's try that again.
 http://www.flashextensions.com/index.php?page=free

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto: [EMAIL PROTECTED] On Behalf Of Robert
 Taylor
 Sent: Tuesday, June 06, 2006 9:22 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Red5 Flash Server Video Tutorials

 I put out some video tutorials on Red5 to help anyone struggling and/or
 interested in getting started. There are currently 21 videos available
 from
 beginning to end on building your first Red5 application. You can view
 them
 here: http://www.flashextensions.com/index.php?page=free. More are to
 come.



 Robert Taylor

 [EMAIL PROTECTED]

 Flash Extensions, LLC

 Extend Flash. Extend Skills. Extend Possibilities!





 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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





--
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] Event dispatching, to use or not to use?

2006-06-07 Thread Julien Vignali

Hi Mike,
You can easily achieve this with the EventDispatcher  Delegate classes 
like this:




import mx.events.EventDispatcher;
class cMyMenu{

  // let's declare static vars for menu states/options
  public static var OPTION1_EVENT:String = onOption1;
  public static var OPTION2_EVENT:String = onOption2;

  // mix-ins functions of EventDispatcher
  private function dispatchEvent:Function;
  private function removeEventListener:Function;
  public function addEventListener:Function;

  // menu buttons
  private var button1:MovieClip;
  private var button2:MovieClip;

  // constructor
  public function cMyMenu(){
// do the mix-in
EventDispatcher.initialize(this);
init();
  }

  public function onLoad():Void {
// let's wire buttons events with functions and proper scope
button1.onRelease = Delegate.create(this, this.onButton1Click);
button2.onRelease = Delegate.create(this, this.onButton2Click);
  }

  private function onButton1Click():Void {
// do some menu graphic things like disabling button1, etc...
button1.enabled = false;
button2.enabled = true;
dispatchEvent({type:OPTION1_EVENT, target:this});
  }
  private function onButton2Click():Void {
// do some menu graphic things..
button2.enabled = false;
button1.enabled = true;
dispatchEvent({type:OPTION2_EVENT, target:this});
  }
}


import mx.utils.Delegate;
class cMyGame {
  private var menu:cMyMenu;

  public function cMyMenu(){
// let's listen to menu events
menu.addEventListener(cMyMenu.OPTION1_EVENT, this);
menu.addEventListener(cMyMenu.OPTION2_EVENT, this);
  }

  // implements the default event handler called by EventDispatcher
  // but we could have create 2 functions named :
  // onOption1() for button1 menu event...
  // onOption2() for button2 menu event...
  private function handleEvent(event:Object):Void {
var type:String = event.type;
switch(type) {
  case cMyMenu.OPTION1_EVENT:
// do some stuff here (disable or load a movie...)
  break;
  case cMyMenu.OPTION2_EVENT:
// do some other stuff (play sound...)
  break;
}
  }
}

For more options  understandings :
http://www.gskinner.com/blog/archives/23.html
http://www.osflash.org/flashcoders/as2
http://www.person13.com/articles/proxy/Proxy.htm
http://www.adobe.com/devnet/flash/articles/eventproxy.html
http://www.actionscript.org/tutorials/beginner/the_delegate_class/index.shtml


mike cann a écrit :

Hi all,

Im kinda new to the whole event dispatching and listening way of doing
things that the v2 components have introduced me to and would like some
advice on how to go about coding this situation:

Suppose i have a game which is represented by a class cMyGame and within
there i have have my main menu system called cMyMenu. Some code:


class cMyGame
{
   private var myMenu;

   function cMyGame()
   {
   myMenu = new cMyMenu();
   }
}


class cMyMenu
{
   function cMyMenu()
   {
   {
}


Okay now suppose that inside my menu class i have a load of button
componants to represent the different menu options. When a user clicks one
of the menu options i would like the game to then destroy the main menu (or
atleast hide it) and then go to the option that the user clicked on.

What i would like to know if how the menu system should tell the cMyGame
what to do if the user clicked a button. As i see it there are a coupple of
ways, i could pass a reference to the cMyGame into the constructor then 
just

call it like so:

class cMyMenu
{

   private var myParent:cMyGame;

   function cMyMenu(parent:cMyGame)
   {
   myParent = parent;
   {

   function onMenuOption1Released()
   {
   myParent.doSomething();
   }
}

Or the alternative is to use events and listeners so that the game can
listen to events fired by the menu class.

I know this seems like a very basic problem but it is at the core of my
fundemental understanding of how you should scope your project. So if 
anyone

could advise me on the best programming practice i should be using it would
be greatly appreciated, thanks :)

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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] How do real developers do key handling?

2006-06-07 Thread Ian Thomas

You don't need any special hash class for this; since you're using
string keys, you can simply use the Object class, like so:

class ChannelInput {
private handlerMap:Object = null;

function ChannelInput() {
  handlerMap = new Object();
}

public function addKey(key:String, handler:KeyHandler):Void {
  handlerMap[key]=handler;
}

public function processKey(key:String):Void {
  var handler:KeyHandler  = KeyHandler(handlerMap[key]);

  if (handler == undefined) {
trace(ERROR: undefined handler for key \ + key + \);
  } else {
handler.handleKey(key);
  }
}

HTH,
 Ian

On 6/7/06, Bart Wttewaall [EMAIL PROTECTED] wrote:

The open-source Vegas framework at osflash.org makes use of a hashmap.
Since every Object extends of CoreObject, a hashcode is added to every
object. A nice solution, I think.

static private var _initHashCode:Boolean =
HashCode.initialize(CoreObject.prototype) ;

2006/6/7, Kevin Aebig [EMAIL PROTECTED]:
 Well the code that your friend is suggesting is pretty straightforward and
 you could port it over to AS2 if you wanted. Instead of a hashMap, why not
 just use an associative array? I'm pretty sure that I've seen a hash class
 ripping around from either Brandan Hall or Samuel Wan based off of an
 associative array.

 All in all, the code could be ported over with minimal effort... but there
 would be some area's that you would need to be creative with.

 Cheers,

 Kevin

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of black59mga
 Sent: June 6, 2006 4:09 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] How do real developers do key handling?

 I have 10 apps that will controlled with a TV remote control (no mouse).
 There are only 12 keys on the remote, so the app that has focus will will
 have to do very different things with a given key press, depending on
 context.

 A java dev. friend suggested an approach using a hashMap, but we don't have
 hashMap in AS 2.0. And I'm a bit confused by his sample code:

 public class ChannelInputTest {
   public static void main(String argv[]) {

 // Create a new ChannelInput object and add a few keys to its map
 ChannelInput ci1 = new ChannelInput();
 ci1.addKey(1, new SimpleKeyHandler());
 ci1.addKey(2, new AnotherSimpleKeyHandler());

 // Now handle some keys with this puppy
 ci1.processKey(1);
 ci1.processKey(2);

 // Create a SECOND ChannelInput object, and add some different
 keys/handlers
 ChannelInput ci2 = new ChannelInput();
 ci2.addKey(3, new AnotherSimpleKeyHandler());
 ci2.addKey(4, new SimpleKeyHandler());

 ci2.processKey(3);
 ci2.processKey(4);

 // Finally - should get an error if a ChannelInput gets unmapped key
 ci2.processKey(1);
   }
 }

 import java.util.HashMap;

 public class ChannelInput {
   private HashMap handlerMap = null;

   ChannelInput() {
 handlerMap = new HashMap();
   }

   public void addKey(String key, KeyHandler handler) {
 handlerMap.put(key, handler);
   }

   public void processKey(String key) {
 KeyHandler handler = (KeyHandler) handlerMap.get(key);

 if (handler == null) {
   System.out.println(ERROR: null handler for key \ + key + \);
 } else {
   handler.handleKey(key);
 }
   }

 public class SimpleKeyHandler implements KeyHandler {
   public void handleKey(String key) {
 System.out.println(SimpleKeyHandler Key  + key +  was pressed);
 // Action for this key goes here
   }
 }

 interface KeyHandler {
   public void handleKey(String key);
 }

 
 Kevin Aebig [EMAIL PROTECTED] wrote: Perhaps if you told us what you're
 trying to accomplish, we could offer
 suggestions around it, but as far as catching specific keys, I'm pretty sure
 you're doing it the only way possible.

 !k

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of black59mga
 Sent: June 6, 2006 3:01 PM
 To: flash Coders
 Subject: [Flashcoders] How do real developers do key handling?

 How do real actionscript developers do key handling? If you have several
 (like 10) apps that are loaded into MCs in 'Main.swf'... What's a good way
 to code the key handling?  Right now I'm drowning in multiple key.GetCode()
 switch statements that all live in my 'Main.as'. How do smart people do
 this??

 Any suggestions, sample code, links to tutes etc., very greatly appreciated.

 -mga




 -
 Sneak preview the  all-new Yahoo.com. It's not radically different. Just
 radically better.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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 

Re: [Flashcoders] 3GP to flv

2006-06-07 Thread Abdul Qabiz

Hi,

Yeah they have moved to Mplayer's location. You would be able to download
the latest source code instead of getting CVS access. Once you have source
code you can follow Soenk's ffmpeg tutorial to build FFMPEG..

http://soenkerohde.com/tutorials/ffmpeg

-abdul


On 6/7/06, Ian Tilley [EMAIL PROTECTED] wrote:



Thanks Abdul.

I've been trying to get FFMpeg but the files aren't there. Looks like
they've moved the site recently. They're not in sourceforge from what I
can see.

t.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Abdul
Qabiz
Sent: Wednesday, 7 June 2006 2:22 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] 3GP to flv

FFMPEG

http://ffmpeg.mplayerhq.hu/


On 6/7/06, Ian Tilley [EMAIL PROTECTED] wrote:



 Hi Folks



 Has anybody come across a server side solution to convert 3GP videos
to
 FLV?



 Thanks in advance



 Ian





 IAN TILLEY
 SENIOR  FLASH DEVELOPER



 HYRO : CREATIVE BUSINESS SOLUTIONS

 Phone: +61 2 9215 4222

 Direct:  +61 2 9215 4233
 Fax: +61 2 9212 4811

 Website:   www.hyro.com

 SYDNEY | MELBOURNE | BRISBANE | CANBERRA | AUCKLAND | BANGKOK



 CONFIDENTIALITY NOTICE

 Proprietary/Confidential Information belonging to Hyro Limited and
 associated companies may be contained in this message.  If you are not
a
 recipient indicated or intended in this message (or responsible for
 delivery of this message to such person), or you think for any reason
 that this message may have been addressed to you in error, you may not
 use or copy or deliver this message to anyone else. In such case, you
 should destroy this message and kindly notify the sender by reply
email.



 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Custom RectBorder breaks components background color

2006-06-07 Thread 杜邦傑
Hi there,

I made a custom RectBorder class (in fact it does nothing, it uses a 
MovieClip). The borders are drawn as intended but it has a side effect: all 
components backgrounds (except List and Tree!) become white whereas I set them 
to another color.
This is how I set the background color (works when I use the default RectBorder 
but not with mine):
_global.style.setStyle(backgroundColor, 0xFF);
_global.styles.TextInput.setStyle(backgroundColor, 0xFF);
_global.styles.ScrollSelectList.setStyle(backgroundColor, 0xFF); // this 
one always works

And my RectBorder class:

import mx.core.ext.UIObjectExtensions;

class guiTools.skins.RectBorder extends mx.skins.RectBorder
{
 static var symbolName:String = RectBorder;
 static var symbolOwner:Object = RectBorder;
 var className:String = RectBorder;
 // all of these borders have the same size edges, one pixel
 var offset:Number = 1;
 
 function init(Void):Void
 {
  super.init();
 }
 
 function drawBorder(Void):Void
 {
  // the graphics are on the symbols Timeline,
  // so all you need to do here is size the border
  _width = __width;
  _height = __height;
 }
 
 // register ourselves as the RectBorder for all components to use
 static function classConstruct():Boolean
 {
  UIObjectExtensions.Extensions();
  _global.styles.rectBorderClass = RectBorder;
  _global.skinRegistry[RectBorder] = true;
  return true;
 }
 


 static var classConstructed:Boolean = classConstruct();
 static var UIObjectExtensionsDependency = UIObjectExtensions;
}


Did I miss something here ?

Thanks,

Benjamin.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Dynamically loading an SWF into a movie clip

2006-06-07 Thread Dan Efergan

Hi John,

Have you sorted this yet? Someone else here might have a better clue  
of what's going on, but as there's no posts yet...


Your code samples don't include enough to work out the low res  
picture example (have you got an online example of that happening?)  
or do not include the button code (are they applied from the root or  
directly to the buttons?).  But at a guess all of these issues seem  
to be based on timings and when various things are being initiated...  
I'm guessing this because moving the code around/ adding a preloader  
seem to effect the final output.


Why not try, continuing with the external preloader.  Then adding a  
number of traces on the buttons to confirm when they are coming into  
existence using clipEvent or similar.  Then work back from that using  
similar traces to make such functions are available, and movieClips  
needed for those functions etc...


It usually ends up being something simple like a missing stop() at  
the movie beginning, or functions initiating before assets are  
available.


Dan

On 6 Jun 2006, at 22:27, John Conta wrote:

This is my first post.  I'm John.  I've been playing with Flash for  
a few years now, and after getting a gig, I actually have to follow  
through with these ideas for once.  Here's my situation, which  
consists of two problems:


It works very nicely - the percentage goes up, the image fades, and  
all is well...until the main.swf comes in.  None of the buttons  
work, and I'm stuck.


I tried playing with the image_mcl.loadClip depths, but the buttons  
still don't respond!


This is what I mean:

http://www.elizabethjochum.com/preloader.htm

Thanks in advance for any help on this, really...I can't sleep  
until I figure this one out!!!



Dan Efergan
[EMAIL PROTECTED]



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

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


[Flashcoders] UML Modelling for AS2.0 applications ...

2006-06-07 Thread Stephen Ford
Can anyone recommend a good application or website for UML modelling of an 
AS2.0 application.
 
I have taken a look at gmodeler and downloaded an application called Enterprise 
Architect, but can anyone recommend anything else I should look at.
 
Thanks,
Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] callBack for Beginners ?

2006-06-07 Thread jcarlos
Hi All, 

I need help  

I trying to develop some small app that read a Parameters list from a XML file 
and then if succeded, read other XML files as specified by the Parameters file 
and only after these files were read and succeed the app would start, what is 
usually get with something like this 

..
  1.. var myParameters:XML = new XML(); 
  2.. myParametersignoreWhite = true; 
  3.. myParameters.onLoad = function(success) 
  4.. { 
  5.. if ( success) 
  6..{ 
  7..//  get the Paramenters from myParameters 
  8..//  begin reading other  XML files 
  9..// wait for them to succed 
  10..//  start app 
  11..} 
  12.. }; 
  13.. myParameters.load(parameters.xml);


but I´m guessing how to do it in a clean way, because after some files it gets 
messy and hard to read and mantain, 

how could I make each XML loading dispatch some special event after it succed 
to the main app and only after all events of all files occurred it would start 
it ??

Should the main app be implemented as some kind of OBSERVER pattern where it 
stays listening to these events ?

João Carlos
Rio Brazil
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Modelling for AS2.0 applications ...

2006-06-07 Thread Ron Wheeler

ArgoUML . Open Source from tigris.org.


Stephen Ford wrote:

Can anyone recommend a good application or website for UML modelling of an 
AS2.0 application.
 
I have taken a look at gmodeler and downloaded an application called Enterprise Architect, but can anyone recommend anything else I should look at.
 
Thanks,

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

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



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] callBack for Beginners ?

2006-06-07 Thread Nitin Gore

Better way is you can use the recursion, If your XML files follows same tags.

As below:-

 ..
   1.. var myParameters:XML = new XML();
   2.. myParametersignoreWhite = true;
   3.. myParameters.onLoad = function(success)
   4.. {
   5.. if ( success)
   6..{
   7..//  get the Paramenters from myParameters
   8..//  begin reading other  XML files
   9..// wait for them to succed

myParameters.load(Other XML file);

   10..//  start app
   11..}
   12.. };
   13.. myParameters.load(parameters.xml);
 ..
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki
Sent: Wednesday, June 07, 2006 4:54 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] callBack for Beginners ?

you could daisy-chain function calls when xml documents get their onLoad(
success:Boolean)... that would work pretty well.

On 6/7/06, jcarlos [EMAIL PROTECTED] wrote:

 Hi All,

 I need help

 I trying to develop some small app that read a Parameters list from a XML
 file and then if succeded, read other XML files as specified by the
 Parameters file and only after these files were read and succeed the app
 would start, what is usually get with something like this

 ..
   1.. var myParameters:XML = new XML();
   2.. myParametersignoreWhite = true;
   3.. myParameters.onLoad = function(success)
   4.. {
   5.. if ( success)
   6..{
   7..//  get the Paramenters from myParameters
   8..//  begin reading other  XML files
   9..// wait for them to succed
   10..//  start app
   11..}
   12.. };
   13.. myParameters.load(parameters.xml);
 

 but I´m guessing how to do it in a clean way, because after some files it
 gets messy and hard to read and mantain,

 how could I make each XML loading dispatch some special event after it
 succed to the main app and only after all events of all files occurred it
 would start it ??

 Should the main app be implemented as some kind of OBSERVER pattern where
 it stays listening to these events ?

 João Carlos
 Rio Brazil
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] 3GP to flv

2006-06-07 Thread dan
Cant seem to find ffmpeg
Any ideas or a link to it?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] 3GP to flv

2006-06-07 Thread Lee McColl-Sylvester
Look for Satsuki Decoders... Theres an FFMpeg decoder included with his
pack.

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dan
Sent: 07 June 2006 13:08
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] 3GP to flv

Cant seem to find ffmpeg
Any ideas or a link to it?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Decoding xml text w/no CDATA allowed

2006-06-07 Thread Merrill, Jason
Hey thanks Jim - I'll try this out.  Looks like there is a
decode(string) function in Actionscript 3.0, so hopefully this issue
will go away when the 9 player gains wide acceptance.  Thanks for the
link.

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Jim Cheng
Sent: Tuesday, June 06, 2006 6:39 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Decoding xml text w/no CDATA allowed

Merrill, Jason wrote:

 Is there an Actionscript 2.0 or Xpath equivalent to Javascript and
 Actionscript 3.0's

 decode(theStringWithquot;Specialquot;Characters);

Hey Jason,

I've run into the same issue about a month ago with XML documents that
a
client had generated from their database, character entities included.

I couldn't find a built-in solution for converting the character
entities back into Unicode characters, so I went online, found the
specs, wrote a little scraper utility to grab the mappings for me and
then wrote a small utility class to use the data for encoding and
decoding. It's a simple static class with inline JavaDoc-style
documentation.  Hope this works for you.

You can grab it here:

 http://dev.psalterego.com/CharacterEntity.as


Regards,
Jim
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] 3GP to flv

2006-06-07 Thread Abdul Qabiz

If you are on windows, you can install Tortoise SVN and checkout the FFMPEG
code from here:


svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

This is command, which you can execute from command prompt

I just tested and it works. Please let me know, if you face any problems.

-abdul





On 6/7/06, Lee McColl-Sylvester [EMAIL PROTECTED] wrote:


Look for Satsuki Decoders... Theres an FFMpeg decoder included with his
pack.

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dan
Sent: 07 June 2006 13:08
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] 3GP to flv

Cant seem to find ffmpeg
Any ideas or a link to it?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Decoding xml text w/no CDATA allowed

2006-06-07 Thread Merrill, Jason
Jim - I tried out your static class and it works great for my problem -
thanks!

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Jim Cheng
Sent: Tuesday, June 06, 2006 6:39 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Decoding xml text w/no CDATA allowed

Merrill, Jason wrote:

 Is there an Actionscript 2.0 or Xpath equivalent to Javascript and
 Actionscript 3.0's

 decode(theStringWithquot;Specialquot;Characters);

Hey Jason,

I've run into the same issue about a month ago with XML documents that
a
client had generated from their database, character entities included.

I couldn't find a built-in solution for converting the character
entities back into Unicode characters, so I went online, found the
specs, wrote a little scraper utility to grab the mappings for me and
then wrote a small utility class to use the data for encoding and
decoding. It's a simple static class with inline JavaDoc-style
documentation.  Hope this works for you.

You can grab it here:

 http://dev.psalterego.com/CharacterEntity.as


Regards,
Jim
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Movie clip accessibility

2006-06-07 Thread vivek
HI,

 

I am facing a problem with accessibility of my application.

 

I have a movie clip on stage. It's accessibility name is movie Clip 1 and
it has a simple code on press event of it.

This works fine.

 

But when I load an image on it:

 

mc1.loadMovie(cat.jpg);

 

Screen reader reads it as unlabeled button.

 

Can anyone tell me why it's taking it as unlabled?(I am using jaws 7.0)

 

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] callBack for Beginners ?

2006-06-07 Thread jcanistrum

ok .. some of these solutions occurred to me, but are these solution the
best OO design pratices ?

Because depending on how deep this process goes it would be hard to detect
or explict to some one else what your app does,

I was expecting that would be possible, but I don´t know how to build
some event like

onAllXmlSucced  or

onInitializationSuccess

that would be fired after all this XML reading using for example the Andre
suggestion on having an array or queue of events, but how to build my own
callBack function that would be fired after all the files were successfully
read ???

PS: I´d like to use these approach inside an AS 2.0 class with MTASC static
main style.

João Carlos


2006/6/7, Nitin Gore [EMAIL PROTECTED]:



Better way is you can use the recursion, If your XML files follows same
tags.

As below:-


..
   1.. var myParameters:XML = new XML();
   2.. myParametersignoreWhite = true;
   3.. myParameters.onLoad = function(success)
   4.. {
   5.. if ( success)
   6..{
   7..//  get the Paramenters from myParameters
   8..//  begin reading other  XML files
   9..// wait for them to succed

   myParameters.load(Other XML file);

   10..//  start app
   11..}
   12.. };
   13.. myParameters.load(parameters.xml);

..

-Original Message-
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of eric dolecki
Sent: Wednesday, June 07, 2006 4:54 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] callBack for Beginners ?

you could daisy-chain function calls when xml documents get their onLoad(
success:Boolean)... that would work pretty well.

On 6/7/06, jcarlos [EMAIL PROTECTED] wrote:

 Hi All,

 I need help

 I trying to develop some small app that read a Parameters list from a
XML
 file and then if succeded, read other XML files as specified by the
 Parameters file and only after these files were read and succeed the app
 would start, what is usually get with something like this


..
   1.. var myParameters:XML = new XML();
   2.. myParametersignoreWhite = true;
   3.. myParameters.onLoad = function(success)
   4.. {
   5.. if ( success)
   6..{
   7..//  get the Paramenters from myParameters
   8..//  begin reading other  XML files
   9..// wait for them to succed
   10..//  start app
   11..}
   12.. };
   13.. myParameters.load(parameters.xml);
 

 but I´m guessing how to do it in a clean way, because after some files
it
 gets messy and hard to read and mantain,

 how could I make each XML loading dispatch some special event after it
 succed to the main app and only after all events of all files occurred
it
 would start it ??

 Should the main app be implemented as some kind of OBSERVER pattern
where
 it stays listening to these events ?

 João Carlos
 Rio Brazil
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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





--
João Carlos
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] amfphp NetConnection.Connect.Failed

2006-06-07 Thread Sam


Yeah, it is odd. This has been driving me nuts.

Here is example code Im using connecting to a sample service.

var service = new talkback();
service.returnString(This is a sample string);


SERVICE CLASS

import com.LuminicBox.Log.*;
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;

class com.three60.app.talkback
{
	private var gatewayUrl:String = http://www.5etdemi.com/amfphp/ 
gateway.php;

private var service:Service;
private var logger;

function talkback(model)
{
this.logger = new Logger();
this.logger.addPublisher(new ConsolePublisher());
NetDebug.initialize();
this.service = new Service(this.gatewayUrl, null, 
SampleService);
log(SampleService Constructor Called.);
}

function log(msg){
this.logger.log(msg);
NetDebug.trace(msg);
}

function debug(obj){
this.logger.debug(obj);
}

function returnString(msg)
{
var pc:PendingCall = this.service.returnString(msg);
		pc.responder = new RelayResponder(this, handleReturnString,  
handleRemotingError);


log(returnString Called.);
debug(pc);
}

function handleReturnString(re:ResultEvent)
{
log(handleReturnString() Called.);
debug(re);
debug(re.result);
}

function handleRemotingError( fault:FaultEvent ):Void
{
log(handleRemotingError() Called.);
		NetDebug.trace({level:None, message:Error:  +  
fault.fault.faultstring });

}
}


On Jun 6, 2006, at 2:26 PM, Mike Boutin wrote:


Hmm odd.  Can you post an example of your connection script?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] amfphp NetConnection.Connect.Failed

2006-06-07 Thread Abdul Qabiz

Could it be security sandbox thingy?

On 6/7/06, Sam [EMAIL PROTECTED] wrote:



Yeah, it is odd. This has been driving me nuts.

Here is example code Im using connecting to a sample service.

var service = new talkback();
service.returnString(This is a sample string);


SERVICE CLASS

import com.LuminicBox.Log.*;
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;

class com.three60.app.talkback
{
   private var gatewayUrl:String = http://www.5etdemi.com/amfphp/
gateway.php;
   private var service:Service;
   private var logger;

   function talkback(model)
   {
   this.logger = new Logger();
   this.logger.addPublisher(new ConsolePublisher());
   NetDebug.initialize();
   this.service = new Service(this.gatewayUrl, null,
SampleService);
   log(SampleService Constructor Called.);
   }

   function log(msg){
   this.logger.log(msg);
   NetDebug.trace(msg);
   }

   function debug(obj){
   this.logger.debug(obj);
   }

   function returnString(msg)
   {
   var pc:PendingCall = this.service.returnString(msg);
   pc.responder = new RelayResponder(this,
handleReturnString,
handleRemotingError);

   log(returnString Called.);
   debug(pc);
   }

   function handleReturnString(re:ResultEvent)
   {
   log(handleReturnString() Called.);
   debug(re);
   debug(re.result);
   }

   function handleRemotingError( fault:FaultEvent ):Void
   {
   log(handleRemotingError() Called.);
   NetDebug.trace({level:None, message:Error:  +
fault.fault.faultstring });
   }
}


On Jun 6, 2006, at 2:26 PM, Mike Boutin wrote:

 Hmm odd.  Can you post an example of your connection script?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 dispatching, to use or not to use?

2006-06-07 Thread mike cann

Thanks Julien, you confirmed what i thought to be the best programming
practice.

Mike

On 07/06/06, Julien Vignali [EMAIL PROTECTED] wrote:


Hi Mike,
You can easily achieve this with the EventDispatcher  Delegate classes
like this:



import mx.events.EventDispatcher;
class cMyMenu{

   // let's declare static vars for menu states/options
   public static var OPTION1_EVENT:String = onOption1;
   public static var OPTION2_EVENT:String = onOption2;

   // mix-ins functions of EventDispatcher
   private function dispatchEvent:Function;
   private function removeEventListener:Function;
   public function addEventListener:Function;

   // menu buttons
   private var button1:MovieClip;
   private var button2:MovieClip;

   // constructor
   public function cMyMenu(){
 // do the mix-in
 EventDispatcher.initialize(this);
 init();
   }

   public function onLoad():Void {
 // let's wire buttons events with functions and proper scope
 button1.onRelease = Delegate.create(this, this.onButton1Click);
 button2.onRelease = Delegate.create(this, this.onButton2Click);
   }

   private function onButton1Click():Void {
 // do some menu graphic things like disabling button1, etc...
 button1.enabled = false;
 button2.enabled = true;
 dispatchEvent({type:OPTION1_EVENT, target:this});
   }
   private function onButton2Click():Void {
 // do some menu graphic things..
 button2.enabled = false;
 button1.enabled = true;
 dispatchEvent({type:OPTION2_EVENT, target:this});
   }
}


import mx.utils.Delegate;
class cMyGame {
   private var menu:cMyMenu;

   public function cMyMenu(){
 // let's listen to menu events
 menu.addEventListener(cMyMenu.OPTION1_EVENT, this);
 menu.addEventListener(cMyMenu.OPTION2_EVENT, this);
   }

   // implements the default event handler called by EventDispatcher
   // but we could have create 2 functions named :
   // onOption1() for button1 menu event...
   // onOption2() for button2 menu event...
   private function handleEvent(event:Object):Void {
 var type:String = event.type;
 switch(type) {
   case cMyMenu.OPTION1_EVENT:
 // do some stuff here (disable or load a movie...)
   break;
   case cMyMenu.OPTION2_EVENT:
 // do some other stuff (play sound...)
   break;
 }
   }
}

For more options  understandings :
http://www.gskinner.com/blog/archives/23.html
http://www.osflash.org/flashcoders/as2
http://www.person13.com/articles/proxy/Proxy.htm
http://www.adobe.com/devnet/flash/articles/eventproxy.html

http://www.actionscript.org/tutorials/beginner/the_delegate_class/index.shtml


mike cann a écrit :
 Hi all,

 Im kinda new to the whole event dispatching and listening way of doing
 things that the v2 components have introduced me to and would like some
 advice on how to go about coding this situation:

 Suppose i have a game which is represented by a class cMyGame and within
 there i have have my main menu system called cMyMenu. Some code:


 class cMyGame
 {
private var myMenu;

function cMyGame()
{
myMenu = new cMyMenu();
}
 }


 class cMyMenu
 {
function cMyMenu()
{
{
 }


 Okay now suppose that inside my menu class i have a load of button
 componants to represent the different menu options. When a user clicks
one
 of the menu options i would like the game to then destroy the main menu
(or
 atleast hide it) and then go to the option that the user clicked on.

 What i would like to know if how the menu system should tell the cMyGame
 what to do if the user clicked a button. As i see it there are a coupple
of
 ways, i could pass a reference to the cMyGame into the constructor then
 just
 call it like so:

 class cMyMenu
 {

private var myParent:cMyGame;

function cMyMenu(parent:cMyGame)
{
myParent = parent;
{

function onMenuOption1Released()
{
myParent.doSomething();
}
 }

 Or the alternative is to use events and listeners so that the game can
 listen to events fired by the menu class.

 I know this seems like a very basic problem but it is at the core of my
 fundemental understanding of how you should scope your project. So if
 anyone
 could advise me on the best programming practice i should be using it
would
 be greatly appreciated, thanks :)

 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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

Re: [Flashcoders] Movie clip accessibility

2006-06-07 Thread Michael Bedar
When you load an image into a MC with loadmovie, you are effectively  
destroying that MC, so load the image into a subclip



On Jun 7, 2006, at 9:05 AM, vivek wrote:


HI,



I am facing a problem with accessibility of my application.



I have a movie clip on stage. It's accessibility name is movie  
Clip 1 and

it has a simple code on press event of it.

This works fine.



But when I load an image on it:



mc1.loadMovie(cat.jpg);



Screen reader reads it as unlabeled button.



Can anyone tell me why it's taking it as unlabled?(I am using jaws  
7.0)




Thanks...

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

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


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

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


Re: [Flashcoders] amfphp NetConnection.Connect.Failed

2006-06-07 Thread Sam

I don't know what does that mean? Could you elaborate?
I have the same problem when testing the same exact service on  
localhost also



Could it be security sandbox thingy?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Modelling for AS2.0 applications ...

2006-06-07 Thread jcanistrum

http://www.codealloy.com/umlconverter.htm




2006/6/7, Ron Wheeler [EMAIL PROTECTED]:


ArgoUML . Open Source from tigris.org.


Stephen Ford wrote:
 Can anyone recommend a good application or website for UML modelling of
an AS2.0 application.

 I have taken a look at gmodeler and downloaded an application called
Enterprise Architect, but can anyone recommend anything else I should look
at.

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

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




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

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





--
João Carlos
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Modelling for AS2.0 applications ...

2006-06-07 Thread Abdul Qabiz

As far as I know, Gmodeler and EA are cool for AS 2.0. EA even allows you
roundtrip, i.e. if you change your AS2 code, it would update the diagrams...

So, you have been using the right tools, just believe in those and stick
with them :)

-abdul


On 6/7/06, jcanistrum [EMAIL PROTECTED] wrote:


http://www.codealloy.com/umlconverter.htm




2006/6/7, Ron Wheeler [EMAIL PROTECTED]:

 ArgoUML . Open Source from tigris.org.


 Stephen Ford wrote:
  Can anyone recommend a good application or website for UML modelling
of
 an AS2.0 application.
 
  I have taken a look at gmodeler and downloaded an application called
 Enterprise Architect, but can anyone recommend anything else I should
look
 at.
 
  Thanks,
  Stephen.___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




--
João Carlos
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Modelling for AS2.0 applications ...

2006-06-07 Thread Clint Modien

The product abdul Qabiz is referring too when he says EA is Enterprise
Architect by Sparx Systems.
http://www.sparxsystems.com/

We use EA... it's a beautiful tool with support for AS3.

On 6/7/06, Abdul Qabiz [EMAIL PROTECTED] wrote:


As far as I know, Gmodeler and EA are cool for AS 2.0. EA even allows you
roundtrip, i.e. if you change your AS2 code, it would update the
diagrams...

So, you have been using the right tools, just believe in those and stick
with them :)

-abdul


On 6/7/06, jcanistrum [EMAIL PROTECTED] wrote:

 http://www.codealloy.com/umlconverter.htm




 2006/6/7, Ron Wheeler [EMAIL PROTECTED]:
 
  ArgoUML . Open Source from tigris.org.
 
 
  Stephen Ford wrote:
   Can anyone recommend a good application or website for UML modelling
 of
  an AS2.0 application.
  
   I have taken a look at gmodeler and downloaded an application called
  Enterprise Architect, but can anyone recommend anything else I should
 look
  at.
  
   Thanks,
   Stephen.___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
  
  
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



 --
 João Carlos
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] callBack for Beginners ?

2006-06-07 Thread Julien Vignali
I would suggest to keep the loading of the parameter file simple and 
create a ParameterFilesLoader class that would handle a queue of urls to 
load in an array.
The class would eventually dispatch state events that your main class 
would listen to, and show appropriate message to the user and handle the 
state of your app.


Using mx.utils.Delegate and mx.events.EventDispatcher is a good practice 
;) Ask me if you need some help building this stuff.



jcanistrum a écrit :

ok .. some of these solutions occurred to me, but are these solution the
best OO design pratices ?

Because depending on how deep this process goes it would be hard to detect
or explict to some one else what your app does,

I was expecting that would be possible, but I don´t know how to build
some event like

onAllXmlSucced  or

onInitializationSuccess

that would be fired after all this XML reading using for example the Andre
suggestion on having an array or queue of events, but how to build my own
callBack function that would be fired after all the files were successfully
read ???

PS: I´d like to use these approach inside an AS 2.0 class with MTASC static
main style.

João Carlos


2006/6/7, Nitin Gore [EMAIL PROTECTED]:



Better way is you can use the recursion, If your XML files follows same
tags.

As below:-


.. 


   1.. var myParameters:XML = new XML();
   2.. myParametersignoreWhite = true;
   3.. myParameters.onLoad = function(success)
   4.. {
   5.. if ( success)
   6..{
   7..//  get the Paramenters from myParameters
   8..//  begin reading other  XML files
   9..// wait for them to succed

   myParameters.load(Other XML file);

   10..//  start app
   11..}
   12.. };
   13.. myParameters.load(parameters.xml);

.. 



-Original Message-
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of eric dolecki
Sent: Wednesday, June 07, 2006 4:54 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] callBack for Beginners ?

you could daisy-chain function calls when xml documents get their onLoad(
success:Boolean)... that would work pretty well.

On 6/7/06, jcarlos [EMAIL PROTECTED] wrote:

 Hi All,

 I need help

 I trying to develop some small app that read a Parameters list from a
XML
 file and then if succeded, read other XML files as specified by the
 Parameters file and only after these files were read and succeed the 
app

 would start, what is usually get with something like this


.. 


   1.. var myParameters:XML = new XML();
   2.. myParametersignoreWhite = true;
   3.. myParameters.onLoad = function(success)
   4.. {
   5.. if ( success)
   6..{
   7..//  get the Paramenters from myParameters
   8..//  begin reading other  XML files
   9..// wait for them to succed
   10..//  start app
   11..}
   12.. };
   13.. myParameters.load(parameters.xml);
 

 but I´m guessing how to do it in a clean way, because after some files
it
 gets messy and hard to read and mantain,

 how could I make each XML loading dispatch some special event after it
 succed to the main app and only after all events of all files occurred
it
 would start it ??

 Should the main app be implemented as some kind of OBSERVER pattern
where
 it stays listening to these events ?

 João Carlos
 Rio Brazil
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] FlashVars + OOP, Best Practices?

2006-06-07 Thread Tyler Wright

I never really understood how making an anonymous object and it's properties
into a dynamic class suddenly made it object oriented. Singleton especially
seems to be a vice for that type of thing.

The reason you would abstract the FlashVars is to 1) avoid naming conflicts
and 2) to make changes as easy as possible -- all in one place. With the
dynamic Singleton if the naming of the specific FlashVars change you still
have to search through all of your code and update those references. If,
however, your main Application class (specific to your app) should take
those variables and store them by some application-specific name, you now
have a single place for all of your classes to access and one place to make
changes should a backend developer decide mid-project to mix things up.
Singleton or any class are instantly useless as soon as they perform exactly
as an anonymous object (usually involving dynamic and resolve). I agree that
FlashVars should be limited to receiving config information only at which
point an application can gather further information if needed.

It needs to make sense, not just seem more correct. OOP is a tool for change
and reuse of code. It was never meant to be something for blind faith.

The suggestions I have for your current class:
1) create a hash table coded to the specific FlashVar class for your
particular app. It should have the FlashVar name as well as a reserved name
given for application use. These can be the same, but if the FlashVar name
were to change it could be updated here and the application would continue
using the value by the app name.

ex.
var hashVars =
{
   fv_url:baseURL,
   fv_uid:userID
}

2) (what you've got with naming convention is really good, good standard to
have, so this is just an alternative, not a better way) have the class
initiate from a static constructor (so it will happen before frame1 and
before everything really gets going). At this point you can scrub _level0
for each var in your hash table (everything that isn't a MovieClip,
TextField, Button, or the $version property will be a FlashVars). You can
then store them and delete them from _level0 promptly. This will help your
class not be dependant on an arbritrary naming convention.

Tyler


On 6/6/06, Morten Barklund [EMAIL PROTECTED] wrote:


Hi Steve,

 1. Use static methods/properties instead of singleton. Gets rid of
 '.getInstance().' cruft.

Well. In this case I prefer it used as a singleton - don't know why
really, but it just seems more correct to me.

 2. Remove the setVar() method since these properties really should be
 read only. Move this into your settings class if you need it.

But it's private anyways. Is made to be used by subclasses.

 3. Use composition in the SomeSettingsClass class rather than
 inheritance since this isn't an 'is a' relationship.

That would require more code, and the ability to overturn dynamicness
through inheritance makes this seem preferable to me.

And I actually find the relationship as being an is a - as the
settingsclass would be used only for FlashVars-variables. Other settings
(read from XML and more) could of course be read in as well, in which
case composition would be preferable.

But I do follow your concerns on all three matters.

 It's also worth noting that the Flex 2 framework has a nice method of
 abstracting FlashVars via the Application.application.parameters array.

Those will be the days... :)

--
Morten Barklund
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] FlashVars + OOP, Best Practices?

2006-06-07 Thread Tyler Wright

Oops, I didn't read your full article. You solve those problems with
your extend
FlashVars suggestion! Singleton still doesn't make sense in this situation.
If you make the class a static that automatically parses _level0 you'll be
set (FlashVars will never be found anywhere but _level0 and they'll be
available right from the beginning. I know there are some who will want to
argue that this is a dependency but that could be similar to arguing that
the MovieClip is a dependency -- it's a documented and supported feature)

Tyler

On 6/7/06, Tyler Wright [EMAIL PROTECTED] wrote:


I never really understood how making an anonymous object and it's
properties into a dynamic class suddenly made it object oriented. Singleton
especially seems to be a vice for that type of thing.

The reason you would abstract the FlashVars is to 1) avoid naming
conflicts and 2) to make changes as easy as possible -- all in one place.
With the dynamic Singleton if the naming of the specific FlashVars change
you still have to search through all of your code and update those
references. If, however, your main Application class (specific to your app)
should take those variables and store them by some application-specific
name, you now have a single place for all of your classes to access and one
place to make changes should a backend developer decide mid-project to mix
things up. Singleton or any class are instantly useless as soon as they
perform exactly as an anonymous object (usually involving dynamic and
resolve). I agree that FlashVars should be limited to receiving config
information only at which point an application can gather further
information if needed.

It needs to make sense, not just seem more correct. OOP is a tool for
change and reuse of code. It was never meant to be something for blind
faith.

The suggestions I have for your current class:
1) create a hash table coded to the specific FlashVar class for your
particular app. It should have the FlashVar name as well as a reserved name
given for application use. These can be the same, but if the FlashVar name
were to change it could be updated here and the application would continue
using the value by the app name.

ex.
var hashVars =
{
fv_url:baseURL,
fv_uid:userID
}

2) (what you've got with naming convention is really good, good standard
to have, so this is just an alternative, not a better way) have the class
initiate from a static constructor (so it will happen before frame1 and
before everything really gets going). At this point you can scrub _level0
for each var in your hash table (everything that isn't a MovieClip,
TextField, Button, or the $version property will be a FlashVars). You can
then store them and delete them from _level0 promptly. This will help your
class not be dependant on an arbritrary naming convention.

Tyler



On 6/6/06, Morten Barklund [EMAIL PROTECTED] wrote:

 Hi Steve,

  1. Use static methods/properties instead of singleton. Gets rid of
  '.getInstance().' cruft.

 Well. In this case I prefer it used as a singleton - don't know why
 really, but it just seems more correct to me.

  2. Remove the setVar() method since these properties really should be
  read only. Move this into your settings class if you need it.

 But it's private anyways. Is made to be used by subclasses.

  3. Use composition in the SomeSettingsClass class rather than
  inheritance since this isn't an 'is a' relationship.

 That would require more code, and the ability to overturn dynamicness
 through inheritance makes this seem preferable to me.

 And I actually find the relationship as being an is a - as the
 settingsclass would be used only for FlashVars-variables. Other settings
 (read from XML and more) could of course be read in as well, in which
 case composition would be preferable.

 But I do follow your concerns on all three matters.

  It's also worth noting that the Flex 2 framework has a nice method of
  abstracting FlashVars via the Application.application.parametersarray.

 Those will be the days... :)

 --
 Morten Barklund
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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 Modelling for AS2.0 applications ...

2006-06-07 Thread erixtekila

http://www.codealloy.com/umlconverter.htm


Doesn't work anymore.

---
erixtekila
http://blog.v-i-a.net/

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Decoding xml text w/no CDATA allowed

2006-06-07 Thread Ryan Matsikas

Why not let flash do the work for you?

function convertEntities(p_str:String):String {
   var x:XML = new XML(p_str);
   x.parseXML();
   return x.firstChild.firstChild.nodeValue;
}

var xmlStr:String = 'itemThis is the quot;String I want in quotesquot;
please help./item';
trace(convertEntities(xmlStr)); // This is the String I want in quotes
please help.


On 6/7/06, Merrill, Jason [EMAIL PROTECTED] wrote:


Jim - I tried out your static class and it works great for my problem -
thanks!

Jason Merrill
Bank of America
Learning Technology Solutions







-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Jim Cheng
Sent: Tuesday, June 06, 2006 6:39 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Decoding xml text w/no CDATA allowed

Merrill, Jason wrote:

 Is there an Actionscript 2.0 or Xpath equivalent to Javascript and
 Actionscript 3.0's

 decode(theStringWithquot;Specialquot;Characters);

Hey Jason,

I've run into the same issue about a month ago with XML documents that
a
client had generated from their database, character entities included.

I couldn't find a built-in solution for converting the character
entities back into Unicode characters, so I went online, found the
specs, wrote a little scraper utility to grab the mappings for me and
then wrote a small utility class to use the data for encoding and
decoding. It's a simple static class with inline JavaDoc-style
documentation.  Hope this works for you.

You can grab it here:

 http://dev.psalterego.com/CharacterEntity.as


Regards,
Jim
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] How do real developers do key handling?

2006-06-07 Thread black59mga
Ian, 

That does help, (alot actually). I'm still an oo newb so, I really appreicate 
the help and the simple-approach sample code. I wasn't sure how to deal with 
the lack of hashMap.

Thanks everyone for help with this, I greatly appreciate it. I'll take a stab 
at converting the java to AS 2.0... and may be back with more noob questions on 
the conversion.

mga

Ian Thomas [EMAIL PROTECTED] wrote: You don't need any special hash class for 
this; since you're using
string keys, you can simply use the Object class, like so:

class ChannelInput {
 private handlerMap:Object = null;

 function ChannelInput() {
   handlerMap = new Object();
 }

 public function addKey(key:String, handler:KeyHandler):Void {
   handlerMap[key]=handler;
 }

 public function processKey(key:String):Void {
   var handler:KeyHandler  = KeyHandler(handlerMap[key]);

   if (handler == undefined) {
 trace(ERROR: undefined handler for key \ + key + \);
   } else {
 handler.handleKey(key);
   }
 }

HTH,
  Ian

On 6/7/06, Bart Wttewaall  wrote:
 The open-source Vegas framework at osflash.org makes use of a hashmap.
 Since every Object extends of CoreObject, a hashcode is added to every
 object. A nice solution, I think.

 static private var _initHashCode:Boolean =
 HashCode.initialize(CoreObject.prototype) ;

 2006/6/7, Kevin Aebig :
  Well the code that your friend is suggesting is pretty straightforward and
  you could port it over to AS2 if you wanted. Instead of a hashMap, why not
  just use an associative array? I'm pretty sure that I've seen a hash class
  ripping around from either Brandan Hall or Samuel Wan based off of an
  associative array.
 
  All in all, the code could be ported over with minimal effort... but there
  would be some area's that you would need to be creative with.
 
  Cheers,
 
  Kevin
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of black59mga
  Sent: June 6, 2006 4:09 PM
  To: Flashcoders mailing list
  Subject: RE: [Flashcoders] How do real developers do key handling?
 
  I have 10 apps that will controlled with a TV remote control (no mouse).
  There are only 12 keys on the remote, so the app that has focus will will
  have to do very different things with a given key press, depending on
  context.
 
  A java dev. friend suggested an approach using a hashMap, but we don't have
  hashMap in AS 2.0. And I'm a bit confused by his sample code:
 
  public class ChannelInputTest {
public static void main(String argv[]) {
 
  // Create a new ChannelInput object and add a few keys to its map
  ChannelInput ci1 = new ChannelInput();
  ci1.addKey(1, new SimpleKeyHandler());
  ci1.addKey(2, new AnotherSimpleKeyHandler());
 
  // Now handle some keys with this puppy
  ci1.processKey(1);
  ci1.processKey(2);
 
  // Create a SECOND ChannelInput object, and add some different
  keys/handlers
  ChannelInput ci2 = new ChannelInput();
  ci2.addKey(3, new AnotherSimpleKeyHandler());
  ci2.addKey(4, new SimpleKeyHandler());
 
  ci2.processKey(3);
  ci2.processKey(4);
 
  // Finally - should get an error if a ChannelInput gets unmapped key
  ci2.processKey(1);
}
  }
 
  import java.util.HashMap;
 
  public class ChannelInput {
private HashMap handlerMap = null;
 
ChannelInput() {
  handlerMap = new HashMap();
}
 
public void addKey(String key, KeyHandler handler) {
  handlerMap.put(key, handler);
}
 
public void processKey(String key) {
  KeyHandler handler = (KeyHandler) handlerMap.get(key);
 
  if (handler == null) {
System.out.println(ERROR: null handler for key \ + key + \);
  } else {
handler.handleKey(key);
  }
}
 
  public class SimpleKeyHandler implements KeyHandler {
public void handleKey(String key) {
  System.out.println(SimpleKeyHandler Key  + key +  was pressed);
  // Action for this key goes here
}
  }
 
  interface KeyHandler {
public void handleKey(String key);
  }
 
  
  Kevin Aebig  wrote: Perhaps if you told us what you're
  trying to accomplish, we could offer
  suggestions around it, but as far as catching specific keys, I'm pretty sure
  you're doing it the only way possible.
 
  !k
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of black59mga
  Sent: June 6, 2006 3:01 PM
  To: flash Coders
  Subject: [Flashcoders] How do real developers do key handling?
 
  How do real actionscript developers do key handling? If you have several
  (like 10) apps that are loaded into MCs in 'Main.swf'... What's a good way
  to code the key handling?  Right now I'm drowning in multiple key.GetCode()
  switch statements that all live in my 'Main.as'. How do smart people do
  this??
 
  Any suggestions, sample code, links to tutes etc., very greatly appreciated.
 
  -mga



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail 

Re: [Flashcoders] callBack for Beginners ?

2006-06-07 Thread Marlon Harrison

I'd actually love to see some sample code of something like you
describe.  I'm an OOP newb myslef.

On 6/7/06, Julien Vignali [EMAIL PROTECTED] wrote:

I would suggest to keep the loading of the parameter file simple and
create a ParameterFilesLoader class that would handle a queue of urls to
load in an array.
The class would eventually dispatch state events that your main class
would listen to, and show appropriate message to the user and handle the
state of your app.

Using mx.utils.Delegate and mx.events.EventDispatcher is a good practice
;) Ask me if you need some help building this stuff.


jcanistrum a écrit :
 ok .. some of these solutions occurred to me, but are these solution the
 best OO design pratices ?

 Because depending on how deep this process goes it would be hard to detect
 or explict to some one else what your app does,

 I was expecting that would be possible, but I don´t know how to build
 some event like

 onAllXmlSucced  or

 onInitializationSuccess

 that would be fired after all this XML reading using for example the Andre
 suggestion on having an array or queue of events, but how to build my own
 callBack function that would be fired after all the files were successfully
 read ???

 PS: I´d like to use these approach inside an AS 2.0 class with MTASC static
 main style.

 João Carlos


 2006/6/7, Nitin Gore [EMAIL PROTECTED]:


 Better way is you can use the recursion, If your XML files follows same
 tags.

 As below:-

 
 ..

1.. var myParameters:XML = new XML();
2.. myParametersignoreWhite = true;
3.. myParameters.onLoad = function(success)
4.. {
5.. if ( success)
6..{
7..//  get the Paramenters from myParameters
8..//  begin reading other  XML files
9..// wait for them to succed

myParameters.load(Other XML file);

10..//  start app
11..}
12.. };
13.. myParameters.load(parameters.xml);
 
 ..


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of eric dolecki
 Sent: Wednesday, June 07, 2006 4:54 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] callBack for Beginners ?

 you could daisy-chain function calls when xml documents get their onLoad(
 success:Boolean)... that would work pretty well.

 On 6/7/06, jcarlos [EMAIL PROTECTED] wrote:
 
  Hi All,
 
  I need help
 
  I trying to develop some small app that read a Parameters list from a
 XML
  file and then if succeded, read other XML files as specified by the
  Parameters file and only after these files were read and succeed the
 app
  would start, what is usually get with something like this
 
 
 ..

1.. var myParameters:XML = new XML();
2.. myParametersignoreWhite = true;
3.. myParameters.onLoad = function(success)
4.. {
5.. if ( success)
6..{
7..//  get the Paramenters from myParameters
8..//  begin reading other  XML files
9..// wait for them to succed
10..//  start app
11..}
12.. };
13.. myParameters.load(parameters.xml);
  
 
  but I´m guessing how to do it in a clean way, because after some files
 it
  gets messy and hard to read and mantain,
 
  how could I make each XML loading dispatch some special event after it
  succed to the main app and only after all events of all files occurred
 it
  would start it ??
 
  Should the main app be implemented as some kind of OBSERVER pattern
 where
  it stays listening to these events ?
 
  João Carlos
  Rio Brazil
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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 

[Flashcoders] remove haloGreen - haloBlue- haloOrange

2006-06-07 Thread Gresh, Lois
Does anyone know of a quick way to disable (completely remove) the
themeColor of a radio button component?  The selected radio button deposits
a green circle (I believe due to themeColor, such as haloGreen/etc) in
subsequent frames.  I need to get rid of the green circle residues. Help
appreciated - 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] Decoding xml text w/no CDATA allowed

2006-06-07 Thread Merrill, Jason
Thanks Ryan, that's what I was looking for.  So this must be a failing
of XFactorstudio's Xpath classes - and Flash's xml.parseXML() or
nodeValue does the decoding automatically?  Or does anyone know a way to
get Xfactorstudios Xpath classes to decode entities?

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Ryan Matsikas
Sent: Wednesday, June 07, 2006 11:30 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Decoding xml text w/no CDATA allowed

Why not let flash do the work for you?

function convertEntities(p_str:String):String {
var x:XML = new XML(p_str);
x.parseXML();
return x.firstChild.firstChild.nodeValue;
}

var xmlStr:String = 'itemThis is the quot;String I want in
quotesquot;
please help./item';
trace(convertEntities(xmlStr)); // This is the String I want in
quotes
please help.


On 6/7/06, Merrill, Jason [EMAIL PROTECTED] wrote:

 Jim - I tried out your static class and it works great for my
problem -
 thanks!

 Jason Merrill
 Bank of America
 Learning Technology Solutions







 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Jim Cheng
 Sent: Tuesday, June 06, 2006 6:39 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Decoding xml text w/no CDATA allowed
 
 Merrill, Jason wrote:
 
  Is there an Actionscript 2.0 or Xpath equivalent to Javascript
and
  Actionscript 3.0's
 
  decode(theStringWithquot;Specialquot;Characters);
 
 Hey Jason,
 
 I've run into the same issue about a month ago with XML documents
that
 a
 client had generated from their database, character entities
included.
 
 I couldn't find a built-in solution for converting the character
 entities back into Unicode characters, so I went online, found the
 specs, wrote a little scraper utility to grab the mappings for me
and
 then wrote a small utility class to use the data for encoding and
 decoding. It's a simple static class with inline JavaDoc-style
 documentation.  Hope this works for you.
 
 You can grab it here:
 
  http://dev.psalterego.com/CharacterEntity.as
 
 
 Regards,
 Jim
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] callBack for Beginners ?

2006-06-07 Thread jcanistrum

ok ..

I will make a good review on mx.utils.Delegate and mx.events.EventDispatcher,
try to draft a very simple skeleton and post back later on .. thanks


2006/6/7, Julien Vignali [EMAIL PROTECTED]:


I would suggest to keep the loading of the parameter file simple and
create a ParameterFilesLoader class that would handle a queue of urls to
load in an array.
The class would eventually dispatch state events that your main class
would listen to, and show appropriate message to the user and handle the
state of your app.

Using mx.utils.Delegate and mx.events.EventDispatcher is a good practice
;) Ask me if you need some help building this stuff.


jcanistrum a écrit :
 ok .. some of these solutions occurred to me, but are these solution the
 best OO design pratices ?

 Because depending on how deep this process goes it would be hard to
detect
 or explict to some one else what your app does,

 I was expecting that would be possible, but I don´t know how to build
 some event like

 onAllXmlSucced  or

 onInitializationSuccess

 that would be fired after all this XML reading using for example the
Andre
 suggestion on having an array or queue of events, but how to build my
own
 callBack function that would be fired after all the files were
successfully
 read ???

 PS: I´d like to use these approach inside an AS 2.0 class with MTASC
static
 main style.

 João Carlos


 2006/6/7, Nitin Gore [EMAIL PROTECTED]:


 Better way is you can use the recursion, If your XML files follows same
 tags.

 As below:-

 

..

1.. var myParameters:XML = new XML();
2.. myParametersignoreWhite = true;
3.. myParameters.onLoad = function(success)
4.. {
5.. if ( success)
6..{
7..//  get the Paramenters from myParameters
8..//  begin reading other  XML files
9..// wait for them to succed

myParameters.load(Other XML file);

10..//  start app
11..}
12.. };
13.. myParameters.load(parameters.xml);
 

..


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of eric dolecki
 Sent: Wednesday, June 07, 2006 4:54 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] callBack for Beginners ?

 you could daisy-chain function calls when xml documents get their
onLoad(
 success:Boolean)... that would work pretty well.

 On 6/7/06, jcarlos [EMAIL PROTECTED] wrote:
 
  Hi All,
 
  I need help
 
  I trying to develop some small app that read a Parameters list from a
 XML
  file and then if succeded, read other XML files as specified by the
  Parameters file and only after these files were read and succeed the
 app
  would start, what is usually get with something like this
 
 

..

1.. var myParameters:XML = new XML();
2.. myParametersignoreWhite = true;
3.. myParameters.onLoad = function(success)
4.. {
5.. if ( success)
6..{
7..//  get the Paramenters from myParameters
8..//  begin reading other  XML files
9..// wait for them to succed
10..//  start app
11..}
12.. };
13.. myParameters.load(parameters.xml);
  
 
  but I´m guessing how to do it in a clean way, because after some
files
 it
  gets messy and hard to read and mantain,
 
  how could I make each XML loading dispatch some special event after
it
  succed to the main app and only after all events of all files
occurred
 it
  would start it ??
 
  Should the main app be implemented as some kind of OBSERVER pattern
 where
  it stays listening to these events ?
 
  João Carlos
  Rio Brazil
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] reposition MC on release

2006-06-07 Thread Tony Watkins
OK, not sure I can explain this. The following code is inside the MC to be
repositioned. Notice the AS targets the button named contact.

_root.contact.onRelease = function() {
endX = -500;
endY = -200;
};
}

Fine. But what if I want to move the AS out of the actual MC and onto the
button named contact? How would I target the MC to be repositioned after on
(release)?


on (release) {
something here I presume?
endX = -500;
endY = -200;
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] reposition MC on release

2006-06-07 Thread jcanistrum

if I understand it correctly, one way would be to use attachMovie like

var myMC = this.attachMovie( MC, newName, this.getNextHighestDepth()) ;

myMC.onRelease = function()
{
  this.endX = -500;
  this.endY = -200;
}


2006/6/7, Tony Watkins [EMAIL PROTECTED]:


OK, not sure I can explain this. The following code is inside the MC to be
repositioned. Notice the AS targets the button named contact.

   _root.contact.onRelease = function() {
   endX = -500;
   endY = -200;
   };
}

Fine. But what if I want to move the AS out of the actual MC and onto the
button named contact? How would I target the MC to be repositioned after
on
(release)?


on (release) {
   something here I presume?
   endX = -500;
   endY = -200;
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
João Carlos
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Variable trace Problem

2006-06-07 Thread Jorge Antonio Diaz Gutierrez
Hi everyone. I have a Problem with this code and I've been testing it
for hours. I don't know much about Flash Develop. It tells everything's
right, but Macromedia Flash Pro 8 traces it Undeffined. Could anyone
tell me wath's the problem.

Thanks 


Private var contador:Number; 
public function Control (){
  contador=1;
  siguiente_btn.onPress = function (){
   if (this.contador=this.cant)
   {  
trace(siguiente);
trace(this.contador);
//this.cont++;
}

  }
  atras_btn.onPress = function(){
   if (this.contador!=1)
   {
this.cargaImagen(this.contador);
this.cont--;
trace(atras)
}
   }
  } 

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

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


[Flashcoders] How to hide SWF Assets from Internet users

2006-06-07 Thread Mike Anderson
Hello All,

I have an intense situation right now, and I must come up with an answer
ASAP.

I wrote a map viewer application for my client, in which my viewer can
load .swf Vector Maps from a predetermined directory on the server.
From within my viewer, the users can perform drill-down queries, by
selecting contents of multiple dropdown boxes - State, Region, then Lake
Name.  Paid subscribers, have full access to their maps - but it's
imperative that they can ONLY view these maps from within the viewer
app.

Since the Flash Map Viewer, needs to retrieve these maps from the server
using a public URL (unless I am overlooking something), how can I hide
these maps from the world - if the outside users are able to figure out
which path to type into their browser, and snatch up maps?

I know that server-side scripts, can access local resources - like
D:\Documents, etc. - but once the Map Viewer is running from a Remote
Browser, how can I bury these maps under some type of file system that
is not directly accessible by the outside world (but only through the
Map Viewer app)???

Also, once the user views a particular map, how can I prevent the
map.swf file from being Cached on their hard drive?

If any of you could help me out regarding this, I'd be very
appreciative.

Thanks,

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


Re: [Flashcoders] Variable trace Problem

2006-06-07 Thread jcanistrum

When you are using

siguiente_btn.onPress = function (){
 if (  this.contador

this in this context is seguiente_btn and not your app

I think one solution could be to refer to siguiente_btn attaching from the
library, with something like

var contador: Number = 0 ;

var nextBtn = this.attachMovie( myButtonLibrary, siguiente_btn, level) ;

nextBtn.onRelease = function()
{
  trace( contador++ ) ;

}


2006/6/7, Jorge Antonio Diaz Gutierrez [EMAIL PROTECTED]:


Hi everyone. I have a Problem with this code and I've been testing it
for hours. I don't know much about Flash Develop. It tells everything's
right, but Macromedia Flash Pro 8 traces it Undeffined. Could anyone
tell me wath's the problem.

Thanks


Private var contador:Number;
public function Control (){
contador=1;
siguiente_btn.onPress = function (){
  if (this.contador=this.cant)
  {
   trace(siguiente);
   trace(this.contador);
   //this.cont++;
   }

}
atras_btn.onPress = function(){
  if (this.contador!=1)
  {
   this.cargaImagen(this.contador);
   this.cont--;
   trace(atras)
   }
  }
}

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

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





--
João Carlos
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] anyone using mCom?

2006-06-07 Thread Rich Rodecker

anyone out there have any experience with using the mCom component set
from Metalliq?  Just looking for some feedback...performance issues,
comparison with v2, wierdness, extending, etc.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] How to hide SWF Assets from Internet users

2006-06-07 Thread jcanistrum

I think, not sure,  it is not possible to avoid having them cached.

I think you could use some kind of server side app ( asp, php, jsp ) to
retrieve the correct map name with loadvars or better with xml and the load
the map into your loader, so nobody could see the url where it comes from


and you could try to use sandbox security  to manage restrictions from
loading except from the samedomain


2006/6/7, Mike Anderson [EMAIL PROTECTED]:


Hello All,

I have an intense situation right now, and I must come up with an answer
ASAP.

I wrote a map viewer application for my client, in which my viewer can
load .swf Vector Maps from a predetermined directory on the server.
From within my viewer, the users can perform drill-down queries, by
selecting contents of multiple dropdown boxes - State, Region, then Lake
Name.  Paid subscribers, have full access to their maps - but it's
imperative that they can ONLY view these maps from within the viewer
app.

Since the Flash Map Viewer, needs to retrieve these maps from the server
using a public URL (unless I am overlooking something), how can I hide
these maps from the world - if the outside users are able to figure out
which path to type into their browser, and snatch up maps?

I know that server-side scripts, can access local resources - like
D:\Documents, etc. - but once the Map Viewer is running from a Remote
Browser, how can I bury these maps under some type of file system that
is not directly accessible by the outside world (but only through the
Map Viewer app)???

Also, once the user views a particular map, how can I prevent the
map.swf file from being Cached on their hard drive?

If any of you could help me out regarding this, I'd be very
appreciative.

Thanks,

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





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

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


RE: [Flashcoders] How to hide SWF Assets from Internet users

2006-06-07 Thread Geoffrey Holland
As for the caching issue, here is a php script that I used on a recent site
that did the trick:

==
?php

$filename = $_GET['filename'];

header('Content-type: application/x-shockwave-flash');header(Expires: Thu,
01 Jan 1970 00:00:00 GMT, -1 );
header(Cache-Control: no-cache, no-store, must-revalidate);
header(Pragma: no-cache);
$content = file_get_contents($filename);
echo$content;
?
==


Say this is movieloader.php;

So in your flash movie, when loading external assets, use 

myTarget.loadMovie(movieloader.php?filename=NameOfMovie.swf)

Im sure there are similar scripts in other server side languages that
perform the same function, just don't have em on hand.

-Geoff

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Anderson
Sent: Wednesday, June 07, 2006 11:51 AM
To: Flashcoders mailing list
Subject: [Flashcoders] How to hide SWF Assets from Internet users

Hello All,

I have an intense situation right now, and I must come up with an answer
ASAP.

I wrote a map viewer application for my client, in which my viewer can
load .swf Vector Maps from a predetermined directory on the server.
From within my viewer, the users can perform drill-down queries, by
selecting contents of multiple dropdown boxes - State, Region, then Lake
Name.  Paid subscribers, have full access to their maps - but it's
imperative that they can ONLY view these maps from within the viewer
app.

Since the Flash Map Viewer, needs to retrieve these maps from the server
using a public URL (unless I am overlooking something), how can I hide
these maps from the world - if the outside users are able to figure out
which path to type into their browser, and snatch up maps?

I know that server-side scripts, can access local resources - like
D:\Documents, etc. - but once the Map Viewer is running from a Remote
Browser, how can I bury these maps under some type of file system that
is not directly accessible by the outside world (but only through the
Map Viewer app)???

Also, once the user views a particular map, how can I prevent the
map.swf file from being Cached on their hard drive?

If any of you could help me out regarding this, I'd be very
appreciative.

Thanks,

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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] How to hide SWF Assets from Internet users

2006-06-07 Thread Bieniasz, Myles
One way is to use the _url property, which will point to the .swf's
location on the file system, then just have each map check if it's
residing at the proper url.  If it is allow the map to be view and if
not don't display anything.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Anderson
Sent: Wednesday, June 07, 2006 12:51 PM
To: Flashcoders mailing list
Subject: [Flashcoders] How to hide SWF Assets from Internet users

Hello All,

I have an intense situation right now, and I must come up with an answer
ASAP.

I wrote a map viewer application for my client, in which my viewer can
load .swf Vector Maps from a predetermined directory on the server.
From within my viewer, the users can perform drill-down queries, by
selecting contents of multiple dropdown boxes - State, Region, then Lake
Name.  Paid subscribers, have full access to their maps - but it's
imperative that they can ONLY view these maps from within the viewer
app.

Since the Flash Map Viewer, needs to retrieve these maps from the server
using a public URL (unless I am overlooking something), how can I hide
these maps from the world - if the outside users are able to figure out
which path to type into their browser, and snatch up maps?

I know that server-side scripts, can access local resources - like
D:\Documents, etc. - but once the Map Viewer is running from a Remote
Browser, how can I bury these maps under some type of file system that
is not directly accessible by the outside world (but only through the
Map Viewer app)???

Also, once the user views a particular map, how can I prevent the
map.swf file from being Cached on their hard drive?

If any of you could help me out regarding this, I'd be very
appreciative.

Thanks,

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



MLB.com: Where Baseball is Always On


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] anyone using mCom?

2006-06-07 Thread Steve Polk
The components themselves are great. They are lightweight, generally easy to
skin, and the API is very compatible with the v2 components that MM ships.

With that said; the company that acquired the set, Metaliq, does not appear
to be interested in documenting or supporting them. I have sent numerous
emails/tickets trying to get better documentation, but have not received a
reply yet on that issue. At one point, Grant Skinner said his people would
try to get them to update the documentation, but this has not happened yet.

Direct from their website you can see the last update was: September 1st,
2005 Version 1.0.124.

HTH,
Steve

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rich
Rodecker
Sent: Wednesday, June 07, 2006 12:02 PM
To: Flashcoders mailing list
Subject: [Flashcoders] anyone using mCom?

anyone out there have any experience with using the mCom component set
from Metalliq?  Just looking for some feedback...performance issues,
comparison with v2, wierdness, extending, etc.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flash XML: Creating a CDATA text node?

2006-06-07 Thread Peter Hall

escape() is for url encoding, which is not the same as xml encoding. Though
it would work ok, since all the relevent XML special chars would be also
escaped there.

Flash's XML object does not support ![CDATA[]]. When you load XML
containing CDATA, it simply XML-encodes the contents.

If XML-encoding is enough for you, you can do it like this:

var rawText:String = blah blah 1  2  2  1!;
var encodedText:XMLNode = new XMLNode(3, rawText);
myXML.firstChild.appendChild(encodedText);

Peter


On 6/6/06, Marlon Harrison [EMAIL PROTECTED] wrote:


Is using the escape() function out of the question for your application?

On 6/6/06, Ryan Matsikas [EMAIL PROTECTED] wrote:
 The simple answer is: no.

 But you can build an XML string with CDATA and write the file or send it
to
 a server with CDATA tags in tact.

 On 6/6/06, Rifled Cloaca [EMAIL PROTECTED] wrote:
 
  Flashcoders,
 
  I know it's possible to read from a CDATA tag in Flash... but is it
  possible
  to create a CDATA text node via Actionscript?
 
  Thanks in advance,
  -g
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] How to hide SWF Assets from Internet users

2006-06-07 Thread jcanistrum

and I found more in the manual about sandBox

sandboxType (security.sandboxType property)public static

sandboxType : String [read-only]

Indicates the type of security sandbox in which the calling SWF file is
operating.

System.security.sandboxType has one of the following values:

■remote: This SWF file is from an Internet URL, and will operate under
domain-based sandbox rules.

■localWithFile: This SWF file is a local file, and has not been trusted by
the user, and was not published with a networking designation. This SWF file
may read from local data sources, but may not communicate with the Internet.

■localWithNetwork: This SWF file is a local file, and has not been trusted
by the user, and was published with a networking designation. This SWF may
communicate with the Internet, but may not read from local data sources.

■localTrusted: This SWF file is a local file, and has been trusted by the
user, using either the Settings Manager or a FlashPlayerTrust configuration
file. This SWF file may both read from local data sources and communicate
with the Internet.


2006/6/7, Bieniasz, Myles [EMAIL PROTECTED]:


One way is to use the _url property, which will point to the .swf's
location on the file system, then just have each map check if it's
residing at the proper url.  If it is allow the map to be view and if
not don't display anything.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Anderson
Sent: Wednesday, June 07, 2006 12:51 PM
To: Flashcoders mailing list
Subject: [Flashcoders] How to hide SWF Assets from Internet users

Hello All,

I have an intense situation right now, and I must come up with an answer
ASAP.

I wrote a map viewer application for my client, in which my viewer can
load .swf Vector Maps from a predetermined directory on the server.
From within my viewer, the users can perform drill-down queries, by
selecting contents of multiple dropdown boxes - State, Region, then Lake
Name.  Paid subscribers, have full access to their maps - but it's
imperative that they can ONLY view these maps from within the viewer
app.

Since the Flash Map Viewer, needs to retrieve these maps from the server
using a public URL (unless I am overlooking something), how can I hide
these maps from the world - if the outside users are able to figure out
which path to type into their browser, and snatch up maps?

I know that server-side scripts, can access local resources - like
D:\Documents, etc. - but once the Map Viewer is running from a Remote
Browser, how can I bury these maps under some type of file system that
is not directly accessible by the outside world (but only through the
Map Viewer app)???

Also, once the user views a particular map, how can I prevent the
map.swf file from being Cached on their hard drive?

If any of you could help me out regarding this, I'd be very
appreciative.

Thanks,

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



MLB.com: Where Baseball is Always On


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

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





--
João Carlos
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] amfphp NetConnection.Connect.Failed

2006-06-07 Thread Sam

I surely can't be the only one experiencing this, could I?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] How to hide SWF Assets from Internet users

2006-06-07 Thread Scott Hyndman

You could hold the swfs in a database (or in some datastore only
accessible to the server), then serve out the swfs through Java or PHP
(or any other serverside language). Authenticate each map request with
a username / password in the query string. If you wanted to prevent
that username / password from being seen (by people watching the
line), use HTTPS.

On 6/7/06, Bieniasz, Myles [EMAIL PROTECTED] wrote:

One way is to use the _url property, which will point to the .swf's
location on the file system, then just have each map check if it's
residing at the proper url.  If it is allow the map to be view and if
not don't display anything.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Anderson
Sent: Wednesday, June 07, 2006 12:51 PM
To: Flashcoders mailing list
Subject: [Flashcoders] How to hide SWF Assets from Internet users

Hello All,

I have an intense situation right now, and I must come up with an answer
ASAP.

I wrote a map viewer application for my client, in which my viewer can
load .swf Vector Maps from a predetermined directory on the server.
From within my viewer, the users can perform drill-down queries, by
selecting contents of multiple dropdown boxes - State, Region, then Lake
Name.  Paid subscribers, have full access to their maps - but it's
imperative that they can ONLY view these maps from within the viewer
app.

Since the Flash Map Viewer, needs to retrieve these maps from the server
using a public URL (unless I am overlooking something), how can I hide
these maps from the world - if the outside users are able to figure out
which path to type into their browser, and snatch up maps?

I know that server-side scripts, can access local resources - like
D:\Documents, etc. - but once the Map Viewer is running from a Remote
Browser, how can I bury these maps under some type of file system that
is not directly accessible by the outside world (but only through the
Map Viewer app)???

Also, once the user views a particular map, how can I prevent the
map.swf file from being Cached on their hard drive?

If any of you could help me out regarding this, I'd be very
appreciative.

Thanks,

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



MLB.com: Where Baseball is Always On


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] anyone using mCom?

2006-06-07 Thread Rich Rodecker

yeah, theri sample app on the homepage has a note on the bottom that
says the app was built with eariler versions of the components, and
the set was being updated, but i didnt see anything on the site
regarding updates.



On 6/7/06, Steve Polk [EMAIL PROTECTED] wrote:

The components themselves are great. They are lightweight, generally easy to
skin, and the API is very compatible with the v2 components that MM ships.

With that said; the company that acquired the set, Metaliq, does not appear
to be interested in documenting or supporting them. I have sent numerous
emails/tickets trying to get better documentation, but have not received a
reply yet on that issue. At one point, Grant Skinner said his people would
try to get them to update the documentation, but this has not happened yet.

Direct from their website you can see the last update was: September 1st,
2005 Version 1.0.124.

HTH,
Steve

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rich
Rodecker
Sent: Wednesday, June 07, 2006 12:02 PM
To: Flashcoders mailing list
Subject: [Flashcoders] anyone using mCom?

anyone out there have any experience with using the mCom component set
from Metalliq?  Just looking for some feedback...performance issues,
comparison with v2, wierdness, extending, etc.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] How to hide SWF Assets from Internet users

2006-06-07 Thread Tom Lee
This is a problematic area for sure.  It's technically impossible to
completely protect the data in a swf from being cached and decompiled.  If
you do use the _url property, it is entirely possible for someone to
decompile and rewrite the viewer swf to send back whatever they want
instead of the _url property.

With regard to the PHP script that was mentioned earlier: scripts like these
that prevent caching may not work the same across different browsers and
OS's.  Also, they can be defeated with other tools.  Essentially, if the
bytes can get to your machine, they can be captured.

You have to understand the level of risk involved and decide what lengths
you wish to go in order to protect your data.  It may be appropriate to use
one of the methods suggested already, or it may be that something more
robust is in order.  Since we're talking about maps, I would think that you
wouldn't need to go to great lengths to protect them (unless they are maps
to buried treasure!).

That said, Flash Player 9 will have the ability to load a swf over a socket
into a ByteArray and then display it with Loader.loadBytes.  This would be a
pretty bullet-proof way to prevent the swf from being cached, and make it
much more difficult to capture.  But, you may not want to wait for Player 9.

Present day, you could look at rendering the maps using the Drawing API -
then you'd just be passing coordinates instead of whole swfs.  But, that
would take significant effort, and it sounds like it's pretty late in the
game.

-tom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bieniasz,
Myles
Sent: Wednesday, June 07, 2006 1:09 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] How to hide SWF Assets from Internet users

One way is to use the _url property, which will point to the .swf's
location on the file system, then just have each map check if it's
residing at the proper url.  If it is allow the map to be view and if
not don't display anything.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Anderson
Sent: Wednesday, June 07, 2006 12:51 PM
To: Flashcoders mailing list
Subject: [Flashcoders] How to hide SWF Assets from Internet users

Hello All,

I have an intense situation right now, and I must come up with an answer
ASAP.

I wrote a map viewer application for my client, in which my viewer can
load .swf Vector Maps from a predetermined directory on the server.
From within my viewer, the users can perform drill-down queries, by
selecting contents of multiple dropdown boxes - State, Region, then Lake
Name.  Paid subscribers, have full access to their maps - but it's
imperative that they can ONLY view these maps from within the viewer
app.

Since the Flash Map Viewer, needs to retrieve these maps from the server
using a public URL (unless I am overlooking something), how can I hide
these maps from the world - if the outside users are able to figure out
which path to type into their browser, and snatch up maps?

I know that server-side scripts, can access local resources - like
D:\Documents, etc. - but once the Map Viewer is running from a Remote
Browser, how can I bury these maps under some type of file system that
is not directly accessible by the outside world (but only through the
Map Viewer app)???

Also, once the user views a particular map, how can I prevent the
map.swf file from being Cached on their hard drive?

If any of you could help me out regarding this, I'd be very
appreciative.

Thanks,

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



MLB.com: Where Baseball is Always On


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] reposition MC on release

2006-06-07 Thread mike cann

i think he means sumthin like this:

inside your button:

on (release)
{
 _root.myMC.endX = -500;
 _root.myMC.endY = -200;
}

assuming myMC is the movieclip you are talking about

On 07/06/06, jcanistrum [EMAIL PROTECTED] wrote:


if I understand it correctly, one way would be to use attachMovie like

var myMC = this.attachMovie( MC, newName, this.getNextHighestDepth())
;

myMC.onRelease = function()
{
   this.endX = -500;
   this.endY = -200;
}


2006/6/7, Tony Watkins [EMAIL PROTECTED]:

 OK, not sure I can explain this. The following code is inside the MC to
be
 repositioned. Notice the AS targets the button named contact.

_root.contact.onRelease = function() {
endX = -500;
endY = -200;
};
 }

 Fine. But what if I want to move the AS out of the actual MC and onto
the
 button named contact? How would I target the MC to be repositioned after
 on
 (release)?


 on (release) {
something here I presume?
endX = -500;
endY = -200;
 }
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




--
João Carlos
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] remove haloGreen - haloBlue- haloOrange

2006-06-07 Thread Gresh, Lois

Well, I can make the themeColor for the radios white or black or whatever,
but still, how do I completely remove the themeColor so it is transparent?
Anyone know something about how to do this?  Much appreciated, if so.




-Original Message-
From: Gresh, Lois [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 11:40 AM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] remove haloGreen - haloBlue- haloOrange


Does anyone know of a quick way to disable (completely remove) the
themeColor of a radio button component?  The selected radio button deposits
a green circle (I believe due to themeColor, such as haloGreen/etc) in
subsequent frames.  I need to get rid of the green circle residues. Help
appreciated - thanks!

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

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

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


Re: [Flashcoders] Variable trace Problem

2006-06-07 Thread mike cann

using this. within a function construct such as

siguiente_btn.onPress = function (){
 if (this.contador=this.cant)
 {

means you are talking about the variables beloging to siguiente_btn not to
its parent.

if its located on the root u can do this:

siguiente_btn.onPress = function (){
 if (_root.contador=_root.cant)
 {

or if you are within a movie and the button is attached to the movie and you
want to get the vaiables of the movie clip rather than the root use:

 siguiente_btn.onPress = function (){
 if (_parent.contador=_parent.cant)
 {

hope this helps,
mike

On 07/06/06, jcanistrum [EMAIL PROTECTED] wrote:


When you are using

siguiente_btn.onPress = function (){
  if (  this.contador

this in this context is seguiente_btn and not your app

I think one solution could be to refer to siguiente_btn attaching from the
library, with something like

var contador: Number = 0 ;

var nextBtn = this.attachMovie( myButtonLibrary, siguiente_btn, level)
;

nextBtn.onRelease = function()
{
   trace( contador++ ) ;

}


2006/6/7, Jorge Antonio Diaz Gutierrez [EMAIL PROTECTED]:

 Hi everyone. I have a Problem with this code and I've been testing it
 for hours. I don't know much about Flash Develop. It tells everything's
 right, but Macromedia Flash Pro 8 traces it Undeffined. Could anyone
 tell me wath's the problem.

 Thanks


 Private var contador:Number;
 public function Control (){
 contador=1;
 siguiente_btn.onPress = function (){
   if (this.contador=this.cant)
   {
trace(siguiente);
trace(this.contador);
//this.cont++;
}

 }
 atras_btn.onPress = function(){
   if (this.contador!=1)
   {
this.cargaImagen(this.contador);
this.cont--;
trace(atras)
}
   }
 }

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

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




--
João Carlos
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] remove haloGreen - haloBlue- haloOrange

2006-06-07 Thread Gresh, Lois

Seems the only solution is to handcode the radio buttons, as in the old
days, to get rid of the need to totally void the themeColor to transparent.




-Original Message-
From: Gresh, Lois [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 2:01 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] remove haloGreen - haloBlue- haloOrange



Well, I can make the themeColor for the radios white or black or whatever,
but still, how do I completely remove the themeColor so it is transparent?
Anyone know something about how to do this?  Much appreciated, if so.




-Original Message-
From: Gresh, Lois [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 11:40 AM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] remove haloGreen - haloBlue- haloOrange


Does anyone know of a quick way to disable (completely remove) the
themeColor of a radio button component?  The selected radio button deposits
a green circle (I believe due to themeColor, such as haloGreen/etc) in
subsequent frames.  I need to get rid of the green circle residues. Help
appreciated - thanks!

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

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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Attach jpg?

2006-06-07 Thread Mendelsohn, Michael
Mental block here:
Is it possible to load a jpg with a linkage identifier from the library
into a MC on the stage?

attachBitmap and attachMovie don't seem to do it.

Thanks,
- Michael 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] Dynamically loading an SWF into a movie clip

2006-06-07 Thread Merrill, Jason
Yes - Flash 8 only. You can't do it with attachMovie unless it's inside
a MovieClip symbol as far as I know.  In Flash 8, you can do this:

import flash.display.BitmapData;

var myGraphic:String = MyGraphicLinkageID;
var myBitmapData:BitmapData = BitmapData.loadBitmap(myGraphic);
var mc:MovieClip = this.createEmptyMovieClip(myImage,
this.getNextHighestDepth());
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of John Conta
Sent: Tuesday, June 06, 2006 5:28 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Dynamically loading an SWF into a movie clip

Hey all,

This is my first post.  I'm John.  I've been playing with Flash for a
few years now, and after getting a gig, I actually have to follow
through with these ideas for once.  Here's my situation, which
consists
of two problems:

1.  I completed a movie with some pretty intense actionscript which
all
sits in one frame  It's pretty long, so I'll post all the code at the
end of the email.  Basically, this script organizes and orchestrates
the contents of the library - the only thing on the screen is the
background image.

However, when I try to build a preloader for this movie, I have to
move
it back a couple of frames to make some space.  However, whenever I
move the blank keyframe containing all of the actionscript, the
contents of the library gets SEVERELY downsampledbasically it
looks
like it was terribly compressed.  It's for a photography website, so
you can imagine how this is totally not OK.

This site is http://www.elizabethjochum.com/main.html

2.  Since I couldn't make room for a preloader in the main file, I
decided to create another movie clip and do it externally.  Here's the
code that (was suppposed to) do this:

---

var dasListener:Object = new Object();

//uses the listener to power a percentage readout of the loadin
progress
dasListener.onLoadProgress = function(target_mc:MovieClip,
bytesLoaded:Number, bytesTotal:Number) {
BLART = Math.round(bytesLoaded/bytesTotal*100);
TEXT = BLART+%;
//fades the image to clear as a function of percentage loaded
IMAGETOFADE._alpha = 100 - BLART;
};

dasListener.onLoadComplete = function(target_mc:MovieClip) {
//moves to the last frame in the movie to imbed main.swf
  gotoAndPlay(4);
};

this.createEmptyMovieClip(image_mc, 0);
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(dasListener);
image_mcl.loadClip(http://www.elizabethjochum.com/main.swf;,
image_mc);

--

It works very nicely - the percentage goes up, the image fades, and
all
is well...until the main.swf comes in.  None of the buttons work, and
I'm stuck.

I tried playing with the image_mcl.loadClip depths, but the buttons
still don't respond!

This is what I mean:

http://www.elizabethjochum.com/preloader.htm

Thanks in advance for any help on this, really...I can't sleep until I
figure this one out!!!

If I can (1) put the preloader in before the images without losing the
quality or (2) embed the swf in the movie clip with full
functionality,
I'll be able to go on my merry way.

Cheers,

John C.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] anyone using mCom?

2006-06-07 Thread Steve Krichten
I've been disappointed with the MCOM components.  Alot of that has to do 
with the lack of documentation and support.  They match the V2 API's in 
many cases, but in the cases where they don't its not always easy to 
figure out how to make them work the way you want since the methods and 
properties are not properly documented.  In some cases the existing 
documentation has incorrect method and property names adding to the 
frustration.  Then when you try to contact their support you're very 
lucky to ever hear back from them.  They have a support ticket system 
(not linked anywhere on their site), but I can't find how to access the 
page to add a new ticket, I can only get to the list of my old list of 
tickets (thanks to some old emails I saved). Its not a good support 
situation to say the least.


There are some bugs in the components, which is understandable, but 
without proper support it becomes a pretty big problem when you run into 
them.   I expected much better than this especially considering the 
price tag.


If they improved support and actively updated them, only then could I 
recommend purchasing them.


On the positive side, I do like the skinning capabilities.  Its flexible 
and pretty straight forward once you get past the errors in the 
documentation (I seem to recall some of the linkage ID's are wrong).  In 
most respects the components themselves are a step up from the V2 
components, but only a subset of the V2 components are represented.


-Steve


*Rich Rodecker* wrote:


anyone out there have any experience with using the mCom component set
from Metalliq?  Just looking for some feedback...performance issues,
comparison with v2, wierdness, extending, etc.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Attach jpg?

2006-06-07 Thread Merrill, Jason
Ooops - replied to the wrong thread.

Yes - Flash 8 only. You can't do it with attachMovie unless it's inside
a MovieClip symbol as far as I know.  In Flash 8, you can do this:

import flash.display.BitmapData;

var myGraphic:String = MyGraphicLinkageID; var myBitmapData:BitmapData
= BitmapData.loadBitmap(myGraphic); var mc:MovieClip =
this.createEmptyMovieClip(myImage, this.getNextHighestDepth());
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael
Sent: Wednesday, June 07, 2006 2:25 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Attach jpg?

Mental block here:
Is it possible to load a jpg with a linkage identifier from the
library
into a MC on the stage?

attachBitmap and attachMovie don't seem to do it.

Thanks,
- Michael 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


[Flashcoders] media components with mp3

2006-06-07 Thread Helen Triolo
I'm trying to use v2 media components to make a player for an mp3 that 
has no background and is of a specified size and will respond to 
external events.  I tried two things: a media playback component, and a 
media display plus associated media controller, but both have problems.


There is a sample of these here: http://flash-creations.com/dev/mp3play.html

The left side uses the media playback component.  It works fine -- when 
you click the play button it starts playing and when you click the Pause 
button below (not part of the component), it pauses and displays the 
appropriate controls.  But I *can't turn off the background and I can't 
fit it into the dotted line area*.


The right side uses media display and media controller.  It looks fine, 
but it doesn't work right.  Clicking play makes it start playing and 
clicking the Pause button below makes it pause but it *doesn't change 
the controller's controls to match*, even though the display and 
controller have been associated with the associateController method.


If anyone has an idea of how I can make the sample on the left fit into 
the area within the dotted line and have no background, or make the 
sample on the right behave correctly when an external Pause button is 
pressed (or any external event occurs), I'm all ears.  Link to zip file 
(780k) is included on page above.


thanks,
Helen


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Dynamically loading an SWF into a movie clip

2006-06-07 Thread Merrill, Jason
Oops - wrong thread - sorry.

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Wednesday, June 07, 2006 2:47 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Dynamically loading an SWF into a movie
clip

Yes - Flash 8 only. You can't do it with attachMovie unless it's
inside
a MovieClip symbol as far as I know.  In Flash 8, you can do this:

import flash.display.BitmapData;

var myGraphic:String = MyGraphicLinkageID;
var myBitmapData:BitmapData = BitmapData.loadBitmap(myGraphic);
var mc:MovieClip = this.createEmptyMovieClip(myImage,
this.getNextHighestDepth());
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());

Jason Merrill
Bank of America
Learning Technology Solutions







-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of John Conta
Sent: Tuesday, June 06, 2006 5:28 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Dynamically loading an SWF into a movie clip

Hey all,

This is my first post.  I'm John.  I've been playing with Flash for
a
few years now, and after getting a gig, I actually have to follow
through with these ideas for once.  Here's my situation, which
consists
of two problems:

1.  I completed a movie with some pretty intense actionscript which
all
sits in one frame  It's pretty long, so I'll post all the code at
the
end of the email.  Basically, this script organizes and orchestrates
the contents of the library - the only thing on the screen is the
background image.

However, when I try to build a preloader for this movie, I have to
move
it back a couple of frames to make some space.  However, whenever I
move the blank keyframe containing all of the actionscript, the
contents of the library gets SEVERELY downsampledbasically it
looks
like it was terribly compressed.  It's for a photography website, so
you can imagine how this is totally not OK.

This site is http://www.elizabethjochum.com/main.html

2.  Since I couldn't make room for a preloader in the main file, I
decided to create another movie clip and do it externally.  Here's
the
code that (was suppposed to) do this:

---

var dasListener:Object = new Object();

//uses the listener to power a percentage readout of the loadin
progress
dasListener.onLoadProgress = function(target_mc:MovieClip,
bytesLoaded:Number, bytesTotal:Number) {
BLART = Math.round(bytesLoaded/bytesTotal*100);
TEXT = BLART+%;
//fades the image to clear as a function of percentage loaded
IMAGETOFADE._alpha = 100 - BLART;
};

dasListener.onLoadComplete = function(target_mc:MovieClip) {
//moves to the last frame in the movie to imbed main.swf
gotoAndPlay(4);
};

this.createEmptyMovieClip(image_mc, 0);
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(dasListener);
image_mcl.loadClip(http://www.elizabethjochum.com/main.swf;,
image_mc);

--

It works very nicely - the percentage goes up, the image fades, and
all
is well...until the main.swf comes in.  None of the buttons work,
and
I'm stuck.

I tried playing with the image_mcl.loadClip depths, but the buttons
still don't respond!

This is what I mean:

http://www.elizabethjochum.com/preloader.htm

Thanks in advance for any help on this, really...I can't sleep until
I
figure this one out!!!

If I can (1) put the preloader in before the images without losing
the
quality or (2) embed the swf in the movie clip with full
functionality,
I'll be able to go on my merry way.

Cheers,

John C.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] remove haloGreen - haloBlue- haloOrange

2006-06-07 Thread Derek Vadneau
myRadioButton.drawFocus = undefined;


Derek Vadneau

- Original Message - 
From: Gresh, Lois [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Wednesday, June 07, 2006 2:24 PM
Subject: RE: [Flashcoders] remove haloGreen - haloBlue- haloOrange



Seems the only solution is to handcode the radio buttons, as in the old
days, to get rid of the need to totally void the themeColor to 
transparent.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] remove haloGreen - haloBlue- haloOrange

2006-06-07 Thread Gresh, Lois
Thanks a million - works perfectly!



-Original Message-
From: Derek Vadneau [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 3:05 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] remove haloGreen - haloBlue- haloOrange


myRadioButton.drawFocus = undefined;


Derek Vadneau

- Original Message - 
From: Gresh, Lois [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Wednesday, June 07, 2006 2:24 PM
Subject: RE: [Flashcoders] remove haloGreen - haloBlue- haloOrange



Seems the only solution is to handcode the radio buttons, as in the old
days, to get rid of the need to totally void the themeColor to 
transparent.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Windows Media Player and FLash Overlay

2006-06-07 Thread Christian
I have checked the archives and couldn't find much, but I wanted to do a 
sanity check to make sure I wasn't loosing my mind.


I, for some crack smoking reason, seem to remember reading that WMP10 
had Flash overlay support.  Am i completely off here or is there a 
setting that I'm missing.


I can't seem get this to work and it's kind of driving me nuts to figure 
it out.


Any and all help is much appreciated.

Christian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] anyone using mCom?

2006-06-07 Thread Ryan Matsikas

Steve,

Some people on this list use mCom and a few of the developers (including
myself) are also on the list, if you aren't having luck with Metaliq's
response's to your issues feel free to ask here. Also there is a google
group for mCom  that a few users are on, and some of the issues/bugs have
been covered there.

The google group is located at:
http://groups.google.com/group/mCom-Flash-Component-Documentation

Cheers,
Ryan

On 6/7/06, Steve Krichten [EMAIL PROTECTED] wrote:


I've been disappointed with the MCOM components.  Alot of that has to do
with the lack of documentation and support.  They match the V2 API's in
many cases, but in the cases where they don't its not always easy to
figure out how to make them work the way you want since the methods and
properties are not properly documented.  In some cases the existing
documentation has incorrect method and property names adding to the
frustration.  Then when you try to contact their support you're very
lucky to ever hear back from them.  They have a support ticket system
(not linked anywhere on their site), but I can't find how to access the
page to add a new ticket, I can only get to the list of my old list of
tickets (thanks to some old emails I saved). Its not a good support
situation to say the least.

There are some bugs in the components, which is understandable, but
without proper support it becomes a pretty big problem when you run into
them.   I expected much better than this especially considering the
price tag.

If they improved support and actively updated them, only then could I
recommend purchasing them.

On the positive side, I do like the skinning capabilities.  Its flexible
and pretty straight forward once you get past the errors in the
documentation (I seem to recall some of the linkage ID's are wrong).  In
most respects the components themselves are a step up from the V2
components, but only a subset of the V2 components are represented.

-Steve


*Rich Rodecker* wrote:


anyone out there have any experience with using the mCom component set
from Metalliq?  Just looking for some feedback...performance issues,
comparison with v2, wierdness, extending, etc.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] anyone using mCom?

2006-06-07 Thread Ryan Matsikas

Sorry to double post, but I replyed to Steve's (different Steve) thread with
the same title. Check it out.

On 6/7/06, Rich Rodecker [EMAIL PROTECTED] wrote:


yeah, theri sample app on the homepage has a note on the bottom that
says the app was built with eariler versions of the components, and
the set was being updated, but i didnt see anything on the site
regarding updates.



On 6/7/06, Steve Polk [EMAIL PROTECTED] wrote:
 The components themselves are great. They are lightweight, generally
easy to
 skin, and the API is very compatible with the v2 components that MM
ships.

 With that said; the company that acquired the set, Metaliq, does not
appear
 to be interested in documenting or supporting them. I have sent numerous
 emails/tickets trying to get better documentation, but have not received
a
 reply yet on that issue. At one point, Grant Skinner said his people
would
 try to get them to update the documentation, but this has not happened
yet.

 Direct from their website you can see the last update was: September
1st,
 2005 Version 1.0.124.

 HTH,
 Steve

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Rich
 Rodecker
 Sent: Wednesday, June 07, 2006 12:02 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] anyone using mCom?

 anyone out there have any experience with using the mCom component set
 from Metalliq?  Just looking for some feedback...performance issues,
 comparison with v2, wierdness, extending, etc.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] reposition MC on release

2006-06-07 Thread Steven Sacks
Don't use on (release) {}, use btn.onRelease = function() {} in the frame.

Putting on (action) {} methods on button and movieclip instances is for
designers who don't know how to code.

When you assign button actions to movieclips or buttons, unless you use
this, it's going to refer to the movieclip it resides in.

Example:

// Tells BTN_Foo's timeline to go to frame 2
BTN_Foo.onRelease = function() {
this.gotoAndStop(2);
};

// Tells the timeline of the clip containing BTN_Foo to go to frame 2
BTN_Foo.onRelease = function() {
gotoAndStop(2);
};
// Or you can write it like this
BTN_Foo.onRelease = function() {
this._parent.gotoAndStop(2);
};

Same thing goes for variables. 

You can assign the clip to the button.

BTN_Foo.clipToControl = _level0.MC_Clip;
BTN_Foo.onRelease = function() {
this.clipToControl._x = 100;
};

HTH,
Steven

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] reposition MC on release

2006-06-07 Thread jcanistrum

exactly as I told before

try to use vars to reference to object as much as possible and use this o
point to the current clip, if is _root fine, but if you move to another one
it still works

var myButton = this.attachMovie( buttonMCinLibrary, newName,
this.getNextHighestDepth()) ;

myButton.onRelease = function()
{
  this.endX = -500;
  this.endY = -200;
}





2006/6/7, Steven Sacks [EMAIL PROTECTED]:


Don't use on (release) {}, use btn.onRelease = function() {} in the frame.

Putting on (action) {} methods on button and movieclip instances is for
designers who don't know how to code.

When you assign button actions to movieclips or buttons, unless you use
this, it's going to refer to the movieclip it resides in.

Example:

// Tells BTN_Foo's timeline to go to frame 2
BTN_Foo.onRelease = function() {
   this.gotoAndStop(2);
};

// Tells the timeline of the clip containing BTN_Foo to go to frame 2
BTN_Foo.onRelease = function() {
   gotoAndStop(2);
};
// Or you can write it like this
BTN_Foo.onRelease = function() {
   this._parent.gotoAndStop(2);
};

Same thing goes for variables.

You can assign the clip to the button.

BTN_Foo.clipToControl = _level0.MC_Clip;
BTN_Foo.onRelease = function() {
   this.clipToControl._x = 100;
};

HTH,
Steven

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

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





--
João Carlos
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Windows Media Player and FLash Overlay

2006-06-07 Thread Marlon Harrison

Crack is wack.
 - Whitney J. Houston

I've never heard that before.

On 6/7/06, Christian [EMAIL PROTECTED] wrote:

I have checked the archives and couldn't find much, but I wanted to do a
sanity check to make sure I wasn't loosing my mind.

I, for some crack smoking reason, seem to remember reading that WMP10
had Flash overlay support.  Am i completely off here or is there a
setting that I'm missing.

I can't seem get this to work and it's kind of driving me nuts to figure
it out.

Any and all help is much appreciated.

Christian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] How to hide SWF Assets from Internet users

2006-06-07 Thread Mike Anderson
Thanks everybody, I shall go through all the suggestions, and try to
implement something that will work for all parties concerned.  I guess
it is truly a balance between security and usability.

That Player 9 solution sounds wonderful! - That's how we deliver some of
our Jpegs (in a Binary data Stream, directly from a Database field) -
and always loved that type of solution.  Overall, it's faster and less
overhead, simply using databases to contain the pointer reference, for
where the actual file is located.  BUT, for ultimate security, I'd love
the ability to store all the binary data in a database, and then create
it on the fly.

Take care everyone,

Mike 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Lee
Sent: Wednesday, June 07, 2006 12:54 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] How to hide SWF Assets from Internet users

This is a problematic area for sure.  It's technically impossible to
completely protect the data in a swf from being cached and decompiled.
If you do use the _url property, it is entirely possible for someone to
decompile and rewrite the viewer swf to send back whatever they want
instead of the _url property.

With regard to the PHP script that was mentioned earlier: scripts like
these that prevent caching may not work the same across different
browsers and OS's.  Also, they can be defeated with other tools.
Essentially, if the bytes can get to your machine, they can be captured.

You have to understand the level of risk involved and decide what
lengths you wish to go in order to protect your data.  It may be
appropriate to use one of the methods suggested already, or it may be
that something more robust is in order.  Since we're talking about maps,
I would think that you wouldn't need to go to great lengths to protect
them (unless they are maps to buried treasure!).

That said, Flash Player 9 will have the ability to load a swf over a
socket into a ByteArray and then display it with Loader.loadBytes.  This
would be a pretty bullet-proof way to prevent the swf from being cached,
and make it much more difficult to capture.  But, you may not want to
wait for Player 9.

Present day, you could look at rendering the maps using the Drawing API
- then you'd just be passing coordinates instead of whole swfs.  But,
that would take significant effort, and it sounds like it's pretty late
in the game.

-tom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Bieniasz, Myles
Sent: Wednesday, June 07, 2006 1:09 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] How to hide SWF Assets from Internet users

One way is to use the _url property, which will point to the .swf's
location on the file system, then just have each map check if it's
residing at the proper url.  If it is allow the map to be view and if
not don't display anything.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Anderson
Sent: Wednesday, June 07, 2006 12:51 PM
To: Flashcoders mailing list
Subject: [Flashcoders] How to hide SWF Assets from Internet users

Hello All,

I have an intense situation right now, and I must come up with an answer
ASAP.

I wrote a map viewer application for my client, in which my viewer can
load .swf Vector Maps from a predetermined directory on the server.
From within my viewer, the users can perform drill-down queries, by
selecting contents of multiple dropdown boxes - State, Region, then Lake
Name.  Paid subscribers, have full access to their maps - but it's
imperative that they can ONLY view these maps from within the viewer
app.

Since the Flash Map Viewer, needs to retrieve these maps from the server
using a public URL (unless I am overlooking something), how can I hide
these maps from the world - if the outside users are able to figure out
which path to type into their browser, and snatch up maps?

I know that server-side scripts, can access local resources - like
D:\Documents, etc. - but once the Map Viewer is running from a Remote
Browser, how can I bury these maps under some type of file system that
is not directly accessible by the outside world (but only through the
Map Viewer app)???

Also, once the user views a particular map, how can I prevent the
map.swf file from being Cached on their hard drive?

If any of you could help me out regarding this, I'd be very
appreciative.

Thanks,

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



MLB.com: Where Baseball is Always On


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:

[Flashcoders] Misreporting instanceof operator.

2006-06-07 Thread Jason Lutes
Can anyone suggest why a condition would be false for a test on a movie
clip using instanceof MovieClip?

I have a function that includes the line:

if (graphicClip.highlighting instanceof MovieClip)
graphicClip.highlighting._visible = false;

If I precede the line with trace(typeof graphicClip.highlighting) I get
movieclip in the Output panel. Nevertheless, the instanceof condition
refuses to report correctly.

Obs: I realize that there are at least three additional ways to perform
the same check, but I'm just curious. I've never seen this happen before.


-
pixelTwiddler, a.k.a. Jason


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Testing... Please disregard...

2006-06-07 Thread Jason

Testing...  Please disregard...
Haven't got any email since 6/2...  :(

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] anyone using mCom?

2006-06-07 Thread Digital Rust
I bought them and my experience is very similar. EXTREMELY  
disappointed. The skinning is good but the lack of documentation and  
support is appalling. The documentation has holes all throughout it.


I've never gotten a response from the support ticket system. Even  
when I wrote asking for a refund. Not a word.


If they improved support and actively updated them, only then could  
I recommend purchasing them. - My thoughts exactly.


I'd be cautious.

-Dave


On Jun 7, 2006, at 11:47 AM, Steve Krichten wrote:

I've been disappointed with the MCOM components.  Alot of that has  
to do with the lack of documentation and support.  They match the  
V2 API's in many cases, but in the cases where they don't its not  
always easy to figure out how to make them work the way you want  
since the methods and properties are not properly documented.  In  
some cases the existing documentation has incorrect method and  
property names adding to the frustration.  Then when you try to  
contact their support you're very lucky to ever hear back from  
them.  They have a support ticket system (not linked anywhere on  
their site), but I can't find how to access the page to add a new  
ticket, I can only get to the list of my old list of tickets  
(thanks to some old emails I saved). Its not a good support  
situation to say the least.


There are some bugs in the components, which is understandable, but  
without proper support it becomes a pretty big problem when you run  
into them.   I expected much better than this especially  
considering the price tag.


If they improved support and actively updated them, only then could  
I recommend purchasing them.


On the positive side, I do like the skinning capabilities.  Its  
flexible and pretty straight forward once you get past the errors  
in the documentation (I seem to recall some of the linkage ID's are  
wrong).  In most respects the components themselves are a step up  
from the V2 components, but only a subset of the V2 components are  
represented.


-Steve


*Rich Rodecker* wrote:
-- 
--


anyone out there have any experience with using the mCom component set
from Metalliq?  Just looking for some feedback...performance issues,
comparison with v2, wierdness, extending, etc.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] anyone using mCom?

2006-06-07 Thread Mike Britton

Could someone please email these .mxps to me so I can do a visual inspection?

;-)

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] How do URL-Encoded Vars get perceived by the Flash Movie??

2006-06-07 Thread Mike Anderson
Hello All,

I am a huge advocate of declaring all my Vars, and 99% of all my
Applications, are comprised of ClassFiles extending MovieClips - this
way, I can use the AS 2.0 methods of programming, and keep my Apps as
clean as possible.

Now in my Root Timeline, I initialize all my MovieClips there, and get
the initial ball rolling, based on Variables that have been passed in
the URL.

I am embedding my Vars directly inside the Object/Object tags (i.e.
myMovie.swf?varName=value)

It's my understanding, that these Vars are immediately available to the
Movie, once it starts up.

In the Root Timeline, how are these Vars viewed by the application?
Right this moment, I am using this.varName and it seems to be working
fine that way.  I still feel that I need a better understanding of this
topic, to avoid any future problems that come up (in case, my movie
doesn't behave the way it should)

What would happen, if I declared these Vars in my startup code?  Is this
still considered a good practice, only in the case of Vars passed via
the URL?  These Vars are accessible regardless of me formally declaring
them or not - but I want to Cast them properly.  Some Vars that I pass
in, are Strings, some Numeric, and some Boolean.

Could any of you explain to me, the overall topic of Vars that get
passed in via the URL?  How do they get created inside the movie?
Should I still declare them? - or by declaring them, am I jeopardizing
the creation process?  If I cast them using the Var statement, will that
ensure they will get cast as THAT TYPE, when they are passed in via the
URL?

I would love to hear how all this works, and also, when they technically
become available - so that I can start loading other MovieClips (knowing
for sure, that they are fully initialized - and not undefined when I
try to access their values).

Thanks again everybody!!

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


Re: [Flashcoders] anyone using mCom?

2006-06-07 Thread Steve Krichten

Thanks for the info Ryan, that should prove useful in the future.

-Steve

--
*Ryan Matsikas* wrote :
Some people on this list use mCom and a few of the developers (including 
myself) are also on the list, if you aren't having luck with Metaliq's 
response's to your issues feel free to ask here. Also there is a google 
group for mCom that a few users are on, and some of the issues/bugs have 
been covered there. The google group is located at: 
http://groups.google.com/group/mCom-Flash-Component-Documentation 
Cheers, Ryan

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

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


[Flashcoders] Re: anyone using mCom ?

2006-06-07 Thread Sorensen, Shannon M - MWL

Quite frankly the vendor has destroyed any value the product may have.

http://67.104.17.194/complaint/view/57077332/c/47x9hr


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] flashvars, SWFObject, paths XML

2006-06-07 Thread Corey Knafelz

I'm working on a XML slideshow application:
http://fuzzylogical.com/clients/rei/slideshow/v5/ss_swfObject.html

Using SWFObject, I'm easily able to pass the variable tripPath to the
swf using flashvars.

script type=text/javascript
// ![CDATA[

var so = new SWFObject(xml_photogallery_5.swf, sotester, 
570,
455, 7, #FF);
so.addVariable(tripPath, foo);
so.write(flashcontent);

// ]]
/script

I then use tripPath to append the directory where slideshow.xml lives
(foo) using the following code:

//-- Load XML --//
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
imagetitle = [];
description = [];
thumbnail = [];
total = xmlNode.childNodes.length;
for (i=0; itotal; i++) {
image[i] = 
xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
imagetitle[i] = 
xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
description[i] = 
xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnail[i] =
tripPath+xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
}
firstImage();
} else {
content = file not loaded!;
}
}

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(tripPath+/slideshow.xml);

The problem I'm having is since I'm describing a relative path in the
xml file, for example: imagegal_00.jpg/image, I'm unable to have
the images reside in the same directory as the xml file. They have to
be relative to the slideshow swf in order to load.

Can anyone offer any thoughts on how I might concatenate tripPath to
the beginning of the path of image described in the xml file?
http://fuzzylogical.com/clients/rei/slideshow/v5/foo/slideshow.xml

Thanks in advance,
Corey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] flashvars, SWFObject, paths XML

2006-06-07 Thread Ryan Potter
If the images are in the same dir as the xml, I would think that you
could just add it to your image path when you store the path of the
image in your image var (image[i]).

// something like this:
image[i] = tripPath +
xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Corey
Knafelz
Sent: Wednesday, June 07, 2006 3:06 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] flashvars, SWFObject, paths  XML

I'm working on a XML slideshow application:
http://fuzzylogical.com/clients/rei/slideshow/v5/ss_swfObject.html

Using SWFObject, I'm easily able to pass the variable tripPath to the
swf using flashvars.

script type=text/javascript
// ![CDATA[

var so = new SWFObject(xml_photogallery_5.swf,
sotester, 570,
455, 7, #FF);
so.addVariable(tripPath, foo);
so.write(flashcontent);

// ]]
/script

I then use tripPath to append the directory where slideshow.xml lives
(foo) using the following code:

//-- Load XML --//
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
imagetitle = [];
description = [];
thumbnail = [];
total = xmlNode.childNodes.length;
for (i=0; itotal; i++) {
image[i] =
xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
imagetitle[i] =
xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
description[i] =
xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnail[i] =
tripPath+xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
}
firstImage();
} else {
content = file not loaded!;
}
}

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(tripPath+/slideshow.xml);

The problem I'm having is since I'm describing a relative path in the
xml file, for example: imagegal_00.jpg/image, I'm unable to have
the images reside in the same directory as the xml file. They have to
be relative to the slideshow swf in order to load.

Can anyone offer any thoughts on how I might concatenate tripPath to
the beginning of the path of image described in the xml file?
http://fuzzylogical.com/clients/rei/slideshow/v5/foo/slideshow.xml

Thanks in advance,
Corey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] changing the width of a dynamic text field

2006-06-07 Thread Phil Glatz
I have a single dynamic text field (pText) I'd like to dynamically 
change the width of.  It is multiline with a border, and other options are off.


When I execute the following actionscript:

trace('w1:'+pText._width);
pText._width=200;
trace('w2:'+pText._width);


the trace output is:

w1:400
w2:375.7


Why isn't the width of the textfield at w2 set to 200?  Seems like it 
should.  (I'm prepared for a d'oh and slap to the forehead).


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] The class or interface [***] could not be loaded.

2006-06-07 Thread Michael Bedar


I'm working on a project where I am suddenly getting this error

The class or interface [***] could not be loaded.

for each class in the project..  Clearing the ASO is not helping..  
anyone have further troubleshooting tips?



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

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


Re: [Flashcoders] Re: anyone using mCom ?

2006-06-07 Thread Rich Rodecker

alrighty then, good thing i asked.  the only reason i was considering
them was because of their smaller footprint, since I feel like there's
just too much bloat to ue the v2 comps on a regular web site (as
opposed to an application).

there's always the bit components, i guess.


On 6/7/06, Sorensen, Shannon M - MWL
[EMAIL PROTECTED] wrote:


Quite frankly the vendor has destroyed any value the product may have.

http://67.104.17.194/complaint/view/57077332/c/47x9hr


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [OT] Looking for games, game developers

2006-06-07 Thread Rajat Paharia

Hey fellow Flashcoders,

I'm a founder of Bunchball - we provide multi-player gaming services to
communities and social networks. We have partners integrating our services
and going live soon, so we're pretty excited.

We're looking for new multi-player Flash games to run on our platform. If
you have an existing game (maybe written for multiple people at one machine
or player vs. computer) that you think would work well in a non-twitch
multi-player environment, let me know. We'd love to talk to you about
porting your game to our network and either paying you for it or working out
some sort of rev-share deal with you. We're looking for standards like
chess, bowling, card games, etc. but also anything new, fun, and
interesting. And if you have an idea for a game, drop me a line. If we like
it we can pay you to develop it. If you have ideas for lots of games and
would like a job designing and implementing games and managing remote teams
doing the same, then you should also drop me a link to your resume and
portfolio :) We're based in Mountain View, California, but are open to
remote team members.

Our platform is HTTP-based, not a socket server, so twitch games won't work
well. That said, we're optimizing our server architecture so that
response/data transfer time is very fast (and I'm getting to learn about
things like Squid, Perlbal and Memcached in the process). And someday maybe
we can switch everything over to Red5. Our API is AS1 and AS2 compatible. No
AS3. yet :)

best, - rajat
--
Rajat Paharia
[EMAIL PROTECTED]
http://www.bunchball.com
http://www.rootburn.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] Stage.align Wish

2006-06-07 Thread Aaron Buchanan
Isnt that the default?


On 6/7/06 7:22 PM, eric dolecki [EMAIL PROTECTED] wrote:

 It would be cool to have:
 
 StageAlign.CENTER   - so the stage would be centered horizontally AND
 vertically...
 
 - e.dolecki
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] tabIndex on embedded swf

2006-06-07 Thread Ryan Sabir

Heya,
 
I have an swf with form components on it, that is embedded inside another swf. 
I want to be able to tab between the form elements, but when I hit tab, the 
focus jumps to an element in the outer movie, rather than the embedded movie. 
The focus doesn't ever return to my form, it stays on this one button in the 
main nav.
 
How can I make it tab between the elements just in the embedded movie? I've 
tried manually setting the tabIndex on the components, but it's not working.
 
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] Stage.align Wish

2006-06-07 Thread eric dolecki

resetting back to default - yes

On 6/7/06, Derek Vadneau [EMAIL PROTECTED] wrote:


Are you talking about being able to set the alignment back to the default
setting?

Stage.align = '';

Unless I've misunderstood. Can you elaborate?


Derek Vadneau


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] ] On Behalf Of eric
dolecki
Sent: Wednesday, June 07, 2006 10:22 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Stage.align Wish


It would be cool to have:

StageAlign.CENTER   - so the stage would be centered horizontally AND
vertically...

- e.dolecki


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Is it possible to change Stage background color at runtime?

2006-06-07 Thread Fernando Castillo
I would like to know if I can change the stage background color at runtime
by code.

I have solved by using a movieclip with an opaque background but I'm curious
about this due now I need to use a real big mc.

Thanks!

- F


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] tabIndex on embedded swf

2006-06-07 Thread Mick G

I havn't tried this but you could try adding a _lockroot to the swf.

On 6/8/06, Ryan Sabir [EMAIL PROTECTED] wrote:



Heya,

I have an swf with form components on it, that is embedded inside another
swf. I want to be able to tab between the form elements, but when I hit tab,
the focus jumps to an element in the outer movie, rather than the embedded
movie. The focus doesn't ever return to my form, it stays on this one button
in the main nav.

How can I make it tab between the elements just in the embedded movie?
I've tried manually setting the tabIndex on the components, but it's not
working.

thanks.



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

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


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

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


Re: [Flashcoders] Is it possible to change Stage background color at runtime?

2006-06-07 Thread Mick G

You could also set your wmode to transparent in the object/embed tag and
use javascript to change the background of a containing DIV (Not that this
is elegant but should work).

On 6/8/06, Fernando Castillo [EMAIL PROTECTED] wrote:


I would like to know if I can change the stage background color at runtime
by code.

I have solved by using a movieclip with an opaque background but I'm
curious
about this due now I need to use a real big mc.

Thanks!

- F


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Is it possible to change Stage background color atruntime?

2006-06-07 Thread Fernando Castillo

Oops! I did forget to specify that this question is about EXE files.

Thanks! 

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

You could also set your wmode to transparent in the object/embed tag and
use javascript to change the background of a containing DIV (Not that this
is elegant but should work).

On 6/8/06, Fernando Castillo [EMAIL PROTECTED] wrote:

 I would like to know if I can change the stage background color at runtime
 by code.

 I have solved by using a movieclip with an opaque background but I'm
 curious
 about this due now I need to use a real big mc.

 Thanks!

 - F


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

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


[Flashcoders] Re: (very) small Flash contract work

2006-06-07 Thread Scott Hyndman

Hi guys,

We found somebody. Thanks for your responses.

Scott

On 6/5/06, Scott Hyndman [EMAIL PROTECTED] wrote:

Hi there,

A company that I often deal with requires a bit of Flash help. This
mainly involved the tweaking of some pre-existing Flash animations.
Easy stuff like adding logos, changing some text here and there. All
the work is done for you. I just no longer have the time to help them
out.

The work might only ever take 30 minutes every month or so, but it's
easy and you can bill for it. If you're interested, let me know. There
may even be opportunity for some more significant work later.

It would be best if you lived in the Canada or the US for payment reasons.

So if you are interested please email [EMAIL PROTECTED] with
availability, rates and maybe a sample link or two (just to give some
idea of what youre capable of).

Thanks,
Scott Hyndman


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Dynamically loading an SWF into a movie

2006-06-07 Thread John Conta

Thanks Jason!

It turns out that when I use loadMovieNum on the target Movie Clip, it 
embeds without a problem - but this function is really a 500 pound 
gorilla IMO.  Everything on the stage gets deleted, and I'm back to the 
same blank screen that I would have had if I didn't even use a 
preloader to begin with!  No listeners can be attached, even if the 
objects that displayed their return values (like dynamic text) could 
sit on the stage without being wiped out.  Then again, when I stick 
with loadMovie, I can position the clip and add listeners, but once 
again, the button functionality is lost.


I still have this thing live with a grey screen...

Every tutorial I try to dig up has me putting frames in front of the 
content of the target movie clip, so using that approach just isn't 
working.  Per my last email, the image distortion is unbelievable (and 
as yet unexplained) whenever I move the coordinating code off of the 
first frame.  For the bold, here it is.  It all sits in one blank frame 
essentially coordinating library contents.


// create a scene movieclip to contain all 3D elements
// and center it on the screen.
this.createEmptyMovieClip(theScene, 0);
theScene._x = 400;
theScene._y = 300;
theScene.depth = 0; // variable to control depth placement

// define s function to set the target of the cameraView
// when you select the star (onPress)
selectStar = function(){
cameraView.target.x = this.x;
cameraView.target.y = this.y;
cameraView.target.z = this.z;
}

//Specifies camera positions for the menu interface
selectFacesOne = function(){
cameraView.target.x = _level0.theScene.box1.x;
cameraView.target.y = _level0.theScene.box1.y;
cameraView.target.z = _level0.theScene.box1.z;
_level0.theScene.box1.gotoAndPlay(2);
}
selectFacesTwo = function(){
cameraView.target.x = _level0.theScene.box2.x;
cameraView.target.y = _level0.theScene.box2.y;
cameraView.target.z = _level0.theScene.box2.z;
_level0.theScene.box2.gotoAndPlay(2);
}
selectAbout = function(){
cameraView.target.x = _level0.theScene.box3.x;
cameraView.target.y = _level0.theScene.box3.y;
cameraView.target.z = _level0.theScene.box3.z;
_level0.theScene.box3.gotoAndPlay(2);
}
selectContact = function(){
cameraView.target.x = _level0.theScene.box4.x;
cameraView.target.y = _level0.theScene.box4.y;
cameraView.target.z = _level0.theScene.box4.z;
_level0.theScene.box4.gotoAndPlay(2);
}


// this is the function for displaying the star onscreen
//old displayStar
displayStar = function(cameraView, focalLength){
var x = this.x - cameraView.x;
var y = this.y - cameraView.y;
var z = this.z - cameraView.z;
if (z  0){
this.z += 5000;
this.x = 1000 - Math.random()*1000;
this.y = 1000 - Math.random()*1000;
x = this.x - cameraView.x;
y = this.y - cameraView.y;
z = this.z - cameraView.z;
}
var scaleRatio = focalLength/(focalLength + z);
this._x = x * scaleRatio;
this._y = y * scaleRatio;
this._xscale = this._yscale = 100 * scaleRatio;
this.swapDepths(Math.round(-z));
};

// define array to hold the objects in the scene
objectsInScene = new Array();

// loop through and create 20 stars randomly in the scene
for (i=1; i=15; i++){
var j = i;
if (j  4){
j = j - 4
if (j  4){
j = j - 4
}   
if (j  4){
j = j - 4
}   
if (j  4){
j = j - 4
}   
}   
attachedObj = theScene.attachMovie(box+j, box+i, theScene.depth++);
attachedObj.x = 1000 - Math.random()*2000;
attachedObj.y = 1000 - Math.random()*2000;
attachedObj.z = i*400;
//  attachedObj.onPress = selectStar;
attachedObj.display = displayStar;
objectsInScene.push(attachedObj);
}


for (k=1; k=4; k++){
	attachedButton = theScene.attachMovie(wtf+k, wtf+k, 
theScene.depth++);

attachedButton._x = -330;
attachedButton._y = (30*k);
//  attachedButton.onPress = selectStar;
//  attachedButton.display = displayStar;
}

//Specifies generated instances of the buttons and the specific
//camera targets for it.

_root.theScene.wtf1.onPress = selectFacesOne;
_root.theScene.wtf2.onPress = selectFacesTwo;
_root.theScene.wtf3.onPress = selectAbout;
_root.theScene.wtf4.onPress = selectContact;


// now make a camera object to serve as the users view or camera
// position within the cockpit of the car
cameraView = new Object();
cameraView.x = 0;
cameraView.y = 0;
cameraView.z = 0;
// set a target object in the cameraView to represent 

Re: [Flashcoders] Is it possible to change Stage background color atruntime?

2006-06-07 Thread Mick G

Doh!

If you're having trouble managing the size of the MC you're using as a
'fake' background, you could always just use a manageable size and use:

MC._width = Stage.width;
MC._width = Stage.height;

Make sure you run that onResize if you're allowing people to resize the
window of the projector.


On 6/8/06, Fernando Castillo [EMAIL PROTECTED] wrote:



Oops! I did forget to specify that this question is about EXE files.

Thanks!

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

You could also set your wmode to transparent in the object/embed tag and
use javascript to change the background of a containing DIV (Not that this
is elegant but should work).

On 6/8/06, Fernando Castillo [EMAIL PROTECTED] wrote:

 I would like to know if I can change the stage background color at
runtime
 by code.

 I have solved by using a movieclip with an opaque background but I'm
 curious
 about this due now I need to use a real big mc.

 Thanks!

 - F


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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