[Flashcoders] onFrameReached {do something}

2006-11-30 Thread Wendy Richardson

Hi All,

I'm looking for some suggestions for the best way to know when a certain 
frame has been reached or plays.


Barring checking for that frame-by-frame on each onEnterFrame, is there 
a way to listen for a swf reaching or playing a certain frame?  Some 
event to listen for?


Code will be 1st frame only or via new classes.

Thanks for any ideas!

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

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


[Flashcoders] Component child of MovieClip?

2006-11-30 Thread Jonathan Berry

Hello all,
I have a really basic question as I am still learning a lot of this. I have
dynamically created children of classes that inherit from UIObject, but
wonder if it is proper/correct practice to create children of a movieClip
that are components. My specific problem is not dynamically created, just
some symbols I have in the library that have linkage IDs that I add to the
document and these symbols have components in them. The reason I do not
think this is correct is that I am unable to reference the components
through dot syntax, e.g. MovieClip_mc.componentInstance.method(). Am I doing
this incorrectly? I just have some graphics in the mcs that are grouped with
components. Any help much to be appreciated.

--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
www.mindarc.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

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

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


[Flashcoders] Re: Overridden methods not called - AS2 bug?

2006-11-30 Thread Scott Whittaker

Ah, never mind - I've figured it out. The method which created a new DOMNode
from an XMLNode used a for...in loop to copy properties from the XMLNode to
the DOMNode. This was done to prevent compiler errors from assigning Flash 8
properties when compiling for Flash 7, and to keep it open for future
additions to the XMLNode class.

The problem was caused by copying function properties as well. Excluding
function types fixed the issue.

Cheers,

Scott


On 01/12/06, Scott Whittaker <[EMAIL PROTECTED]> wrote:


Hi guys,

I'm having a curious and somewhat annoying problem using overridden
methods in a subclass. What I am trying to do is extend the XML class into a
new XMLDocument class and the XMLNode class into a DOMNode class in order to
add some useful extra methods such as getElementByID, getElementsByTagName
and the ability to produce a customisable object map of any DOMNode. All of
this is working for the most part.

The reason I am extending the XML classes in this way is so I can get the
most out of the speed and functionality of the intrinsic methods, remain
compatible with other scripts designed to work with regular XML objects, and
take advantage of my custom methods for accessing and manipulating XML
without going for a heavyweight solution like XPath.

The constructor to create an XMLDocument composed of DOMNodes is like
this:

public function XMLDocument( source:String ) {
super();
parseXML( source );
}

public function parseXML( source:String ):Void {
super.parseXML( source );
var document:DOMNode = convertNodes( this.firstChild );
this.firstChild.removeNode();
this.appendChild( document );
}

So the XMLDocument is initialised with the default constructor and any
source string is passed along to the parseXML method to build the regular
XML structure. Next, the childNodes are converted from XMLNodes to DOMNodes
using the convertNodes recursive method. Actually the XMLNodes are not
converted as such - the information within them is used to create new
DOMNode instances and the structure recreated with the 
DOMNode.appendChildmethod (which accepts a DOMNode argument and simply passes 
it along to
super.appendChild ). Finally, the original XML tree is removed and
replaced with the new DOM tree.

The resulting XMLDocument seems to be created intact and all the XML,
XMLNode, XMLDocument and DOMNode methods mostly seem to be working as they
should. The first issue I discovered was when I selected a node, duplicated
it with cloneNode, and tried to use a DOMNode method on it - which failed.

Debugging showed me that the overridden cloneNode method was not being
called - it was using the superclass' cloneNode method. Further
investigation showed that while a DOMNode created directly through an
XMLDocument instance using createElement would call the overridden methods
correctly, but nodes already on the XMLDocument accessed with any method
would use the superclass' methods instead (as if they were plain XMLNodes) -
even though they were able to successfully call DOMNode methods.

To illustrate this, I created an attachNode method on DOMNode to proxy to
the appendChild method to trace the execution path:

public function attachNode( newChild:DOMNode ):Void {
trace( "DOMNode.attachNode" );
this.appendChild( newChild );
}
public function appendChild( newChild:DOMNode ):Void {
trace( "DOMNode.appendChild" );
super.appendChild( newChild );
}

What happens is that the attachNode method is called (which proves the
object really is a DOMNode and not an XMLNode) but the overridden
appendChild method is not called - despite it being called internally! And
like I said before, an element created with XMLDocument.createElement does
call the overridden method. Bizarre.

Does anyone have any idea what is going on here? Is this something
specific to XML, any intrinsic objects, or some weird inheritance bug that
can affect any class? Is there a solution? Or am I stuck with having to
rewrite the whole set of XML methods from scratch and avoiding superclass
methods altogether?

Thanks,

Scott


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

2006-11-30 Thread Stephen Ford
Thanks  Mick 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


Re: [Flashcoders] getting 5 random numbers out of 0-16 no dups

2006-11-30 Thread Corban Baxter

thanks guys. I appreciate it.

On 11/30/06, Odie Bracy <[EMAIL PROTECTED]> wrote:


This works for me:


for(i=0; i<5; i++){
seq[i]=99;
do{
mflg=0;
x=Math.floor(Math.random()*16);
for(j=0; j<=i; j++){
if(x==seq[j]) mflg=1;
}
} while(mflg==1);
seq[i]=x;
}

Odie

On Nov 30, 2006, at 5:49 PM, Corban Baxter wrote:

> Quick question. Whats the fastest way to get 5 random numbers out
> of a list
> of X number of numbers without having any duplicates?
>
> Kinda like the script below excpet it graps duplicates...
>
> var loopNum:Number = 16;
>
> function getRandomNums(){
>for(i=0; i<5; i++){
>
>lastNum = newNum;
>
>while(newNum == lastNum){
>newNum = random(loopNum);
>}
>
>questionOrder[i] = newNum;
>}
>trace(questionOrder); // 0,1,3,2,3 "how do I get no duplicates?"
>
> }
>
> --
> Corban Baxter
> http://www.projectx4.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





--
Corban Baxter
http://www.projectx4.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] Overridden methods not called - AS2 bug?

2006-11-30 Thread Scott Whittaker

Hi guys,

I'm having a curious and somewhat annoying problem using overridden methods
in a subclass. What I am trying to do is extend the XML class into a new
XMLDocument class and the XMLNode class into a DOMNode class in order to add
some useful extra methods such as getElementByID, getElementsByTagName and
the ability to produce a customisable object map of any DOMNode. All of this
is working for the most part.

The reason I am extending the XML classes in this way is so I can get the
most out of the speed and functionality of the intrinsic methods, remain
compatible with other scripts designed to work with regular XML objects, and
take advantage of my custom methods for accessing and manipulating XML
without going for a heavyweight solution like XPath.

The constructor to create an XMLDocument composed of DOMNodes is like this:

   public function XMLDocument( source:String ) {
   super();
   parseXML( source );
   }

   public function parseXML( source:String ):Void {
   super.parseXML( source );
   var document:DOMNode = convertNodes( this.firstChild );
   this.firstChild.removeNode();
   this.appendChild( document );
   }

So the XMLDocument is initialised with the default constructor and any
source string is passed along to the parseXML method to build the regular
XML structure. Next, the childNodes are converted from XMLNodes to DOMNodes
using the convertNodes recursive method. Actually the XMLNodes are not
converted as such - the information within them is used to create new
DOMNode instances and the structure recreated with the
DOMNode.appendChildmethod (which accepts a DOMNode argument and simply
passes it along to
super.appendChild ). Finally, the original XML tree is removed and replaced
with the new DOM tree.

The resulting XMLDocument seems to be created intact and all the XML,
XMLNode, XMLDocument and DOMNode methods mostly seem to be working as they
should. The first issue I discovered was when I selected a node, duplicated
it with cloneNode, and tried to use a DOMNode method on it - which failed.

Debugging showed me that the overridden cloneNode method was not being
called - it was using the superclass' cloneNode method. Further
investigation showed that while a DOMNode created directly through an
XMLDocument instance using createElement would call the overridden methods
correctly, but nodes already on the XMLDocument accessed with any method
would use the superclass' methods instead (as if they were plain XMLNodes) -
even though they were able to successfully call DOMNode methods.

To illustrate this, I created an attachNode method on DOMNode to proxy to
the appendChild method to trace the execution path:

   public function attachNode( newChild:DOMNode ):Void {
   trace( "DOMNode.attachNode" );
   this.appendChild( newChild );
   }
   public function appendChild( newChild:DOMNode ):Void {
   trace( "DOMNode.appendChild" );
   super.appendChild( newChild );
   }

What happens is that the attachNode method is called (which proves the
object really is a DOMNode and not an XMLNode) but the overridden
appendChild method is not called - despite it being called internally! And
like I said before, an element created with XMLDocument.createElement does
call the overridden method. Bizarre.

Does anyone have any idea what is going on here? Is this something specific
to XML, any intrinsic objects, or some weird inheritance bug that can affect
any class? Is there a solution? Or am I stuck with having to rewrite the
whole set of XML methods from scratch and avoiding superclass methods
altogether?

Thanks,

Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] getting 5 random numbers out of 0-16 no dups

2006-11-30 Thread Odie Bracy

This works for me:


for(i=0; i<5; i++){
seq[i]=99;
do{
mflg=0;
x=Math.floor(Math.random()*16);
for(j=0; j<=i; j++){
if(x==seq[j]) mflg=1;
}
} while(mflg==1);
seq[i]=x;
}

Odie

On Nov 30, 2006, at 5:49 PM, Corban Baxter wrote:

Quick question. Whats the fastest way to get 5 random numbers out  
of a list

of X number of numbers without having any duplicates?

Kinda like the script below excpet it graps duplicates...

var loopNum:Number = 16;

function getRandomNums(){
   for(i=0; i<5; i++){

   lastNum = newNum;

   while(newNum == lastNum){
   newNum = random(loopNum);
   }

   questionOrder[i] = newNum;
   }
   trace(questionOrder); // 0,1,3,2,3 "how do I get no duplicates?"

}

--
Corban Baxter
http://www.projectx4.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] xml thumbnail gallery reverse order problem

2006-11-30 Thread eric dolecki

load into an array and then array.reverse(); ?

On 11/30/06, Andrea Hendel <[EMAIL PROTECTED]> wrote:


hi y'all

i tried to subscribe to the flash forums on kirupia and on
actionscript.org, but for some reason i never receive the confirmation
emails.  i'm at my wit's end with this problem and i need help!!!

there is an xml gallery w/thumbnail tutorial on kirupia which i followed
and altered.  i want to have variable thumbnail sizes and have them
appear 1 pixel apart from each other instead of relying on all thumbs
being equal widths, as in their gallery.  i came up with a solution, but
for some reason flash does things in reverse order (?!? why?) so it
lists my thumbs in reverse order from the way they are supposed to be.

i'm kind of a noob, so there is probably a really simple solution i'm
overlooking.  i was thinking: how would one reverse the order in which
flash is processing/placing the thumbs?  or maybe instead of using my
script, there's some kind of for loop that might work?  any help is
truly appreciated!

link to rough example:
http://www.andreahendel.com/maxgallery/portraits.swf

here's the whole gallery code, the problem bit is towards the end:

  import xml data and create arrays
function loadXML(loaded) {
   if (loaded) {
   xmlNode = this.firstChild;
   image = [];
   thumbnails = [];
   total = xmlNode.childNodes.length;
   for (i=0; i0) {
   p--;
   picture._alpha = 0;
   picture.loadMovie(image[p], 1);
   desc_txt.text = description[p];
   picture_num();
   }
}
function firstImage() {
   if (loaded == filesize) {
   picture._alpha = 0;
   picture.loadMovie(image[0], 1);
   picture_num();
   }
}
thumbnail scroller
function thumbNailScroller() {
   this.createEmptyMovieClip("tscroller", 1000);
   scroll_speed = 10;
   tscroller.onEnterFrame = function() {
   if ((_root._ymouse>=thumbnail_mc._y) &&
(_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
   if ((_root._xmouse>=(hit_right._x-40)) &&
(thumbnail_mc.hitTest(hit_right))) {
   thumbnail_mc._x -= scroll_speed;
   } else if ((_root._xmouse<=(hit_left._x+40)) &&
(thumbnail_mc.hitTest(hit_left))) {
   thumbnail_mc._x += scroll_speed;
   }
   } else {
   delete tscroller.onEnterFrame;
   }
   };
}
 thumbnail strip HERE IS WHERE MY TROUBLES ARE
w = 0
function thumbnails_fn(k) {
   thumbnail_mc.createEmptyMovieClip("t"+k,
thumbnail_mc.getNextHighestDepth());
   tlistener = new Object();
   tlistener.onLoadInit = function(target_mc) {
   /// place thumbs HOW DO I MAKE THEM NOT LIST BACKWARDS
   target_mc._x = w
   w = target_mc._x + target_mc._width + 1
   /// make thumbs functional
   target_mc.pictureValue = k;
   target_mc.onRelease = function() {
   p = this.pictureValue-1;
   nextImage();
   };
   target_mc.onRollOver = function() {
   this._alpha = 50;
   thumbNailScroller();
   };
   target_mc.onRollOut = function() {
   this._alpha = 100;
   };
   };
   image_mcl = new MovieClipLoader();
   image_mcl.addListener(tlistener);
   image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}

stop();


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] xml thumbnail gallery reverse order problem

2006-11-30 Thread Andy Johnston

reverse the order of your xml??

hi y'all

i tried to subscribe to the flash forums on kirupia and on 
actionscript.org, but for some reason i never receive the confirmation 
emails.  i'm at my wit's end with this problem and i need help!!!


there is an xml gallery w/thumbnail tutorial on kirupia which i 
followed and altered.  i want to have variable thumbnail sizes and 
have them appear 1 pixel apart from each other instead of relying on 
all thumbs being equal widths, as in their gallery.  i came up with a 
solution, but for some reason flash does things in reverse order (?!? 
why?) so it lists my thumbs in reverse order from the way they are 
supposed to be.


i'm kind of a noob, so there is probably a really simple solution i'm 
overlooking.  i was thinking: how would one reverse the order in which 
flash is processing/placing the thumbs?  or maybe instead of using my 
script, there's some kind of for loop that might work?  any help is 
truly appreciated!


link to rough example: 
http://www.andreahendel.com/maxgallery/portraits.swf


here's the whole gallery code, the problem bit is towards the end:

  import xml data and create arrays
function loadXML(loaded) {
  if (loaded) {
  xmlNode = this.firstChild;
  image = [];
  thumbnails = [];
  total = xmlNode.childNodes.length;
  for (i=0; i  image[i] = 
xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
  thumbnails[i] = 
xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;

  thumbnails_fn(i);
  }
  firstImage();
  } else {
  content = "file not loaded!";
  }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("portraits.xml");
 left and right key listener for large images
keylisten = new Object();
keylisten.onKeyDown = function() {
  if (Key.getCode() == Key.LEFT) {
  prevImage();
  } else if (Key.getCode() == Key.RIGHT) {
  nextImage();
  }
};
Key.addListener(keylisten);
preloader
p = 0;
this.onEnterFrame = function() {
  filesize = picture.getBytesTotal();
  loaded = picture.getBytesLoaded();
  preloader._visible = true;
  if (loaded != filesize) {
  preloader.preload_bar._xscale = 100*loaded/filesize;
  } else {
  preloader._visible = false;
  if (picture._alpha<100) {
  picture._alpha += 10;
  }
  }
};
 next image and previous image
function nextImage() {
  if (p<(total-1)) {
  p++;
  if (loaded == filesize) {
  picture._alpha = 0;
  picture.loadMovie(image[p], 1);
  picture_num();
  }
  }
}
function prevImage() {
  if (p>0) {
  p--;
  picture._alpha = 0;
  picture.loadMovie(image[p], 1);
  desc_txt.text = description[p];
  picture_num();
  }
}
function firstImage() {
  if (loaded == filesize) {
  picture._alpha = 0;
  picture.loadMovie(image[0], 1);
  picture_num();
  }
}
thumbnail scroller
function thumbNailScroller() {
  this.createEmptyMovieClip("tscroller", 1000);
  scroll_speed = 10;
  tscroller.onEnterFrame = function() {
  if ((_root._ymouse>=thumbnail_mc._y) && 
(_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
  if ((_root._xmouse>=(hit_right._x-40)) && 
(thumbnail_mc.hitTest(hit_right))) {

  thumbnail_mc._x -= scroll_speed;
  } else if ((_root._xmouse<=(hit_left._x+40)) && 
(thumbnail_mc.hitTest(hit_left))) {

  thumbnail_mc._x += scroll_speed;
  }
  } else {
  delete tscroller.onEnterFrame;
  }
  };
}
 thumbnail strip HERE IS WHERE MY TROUBLES ARE
w = 0
function thumbnails_fn(k) {
  thumbnail_mc.createEmptyMovieClip("t"+k, 
thumbnail_mc.getNextHighestDepth());

  tlistener = new Object();
  tlistener.onLoadInit = function(target_mc) {
  /// place thumbs HOW DO I MAKE THEM NOT LIST BACKWARDS
  target_mc._x = w
  w = target_mc._x + target_mc._width + 1
  /// make thumbs functional
  target_mc.pictureValue = k;
  target_mc.onRelease = function() {
  p = this.pictureValue-1;
  nextImage();
  };
  target_mc.onRollOver = function() {
  this._alpha = 50;
  thumbNailScroller();
  };
  target_mc.onRollOut = function() {
  this._alpha = 100;
  };
  };
  image_mcl = new MovieClipLoader();
  image_mcl.addListener(tlistener);
  image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}

stop();


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

[Flashcoders] netconnection debugger in osX intel?

2006-11-30 Thread Digital Rust
Do any other os X users experience trouble when using the  
netconnection debugger with amfphp in osX? I'm running Flash 8 and  
10.4.8.


It works when I first open Flash and make a few calls. Then stops  
working until I restart or reinstall the remoting components and  
restart Flash. Someone's blog mentioned that it's possible to make a  
projector of the debugger and run that in standalone, but that  
doesn't work for me either. I also tried serviceCapture, but it  
doesn't work with the IDE on osX from what I can tell reading on  
their forums.


Thanks,
Dave







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

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


[Flashcoders] xml thumbnail gallery reverse order problem

2006-11-30 Thread Andrea Hendel

hi y'all

i tried to subscribe to the flash forums on kirupia and on 
actionscript.org, but for some reason i never receive the confirmation 
emails.  i'm at my wit's end with this problem and i need help!!!


there is an xml gallery w/thumbnail tutorial on kirupia which i followed 
and altered.  i want to have variable thumbnail sizes and have them 
appear 1 pixel apart from each other instead of relying on all thumbs 
being equal widths, as in their gallery.  i came up with a solution, but 
for some reason flash does things in reverse order (?!? why?) so it 
lists my thumbs in reverse order from the way they are supposed to be.


i'm kind of a noob, so there is probably a really simple solution i'm 
overlooking.  i was thinking: how would one reverse the order in which 
flash is processing/placing the thumbs?  or maybe instead of using my 
script, there's some kind of for loop that might work?  any help is 
truly appreciated!


link to rough example: http://www.andreahendel.com/maxgallery/portraits.swf

here's the whole gallery code, the problem bit is towards the end:

  import xml data and create arrays
function loadXML(loaded) {
  if (loaded) {
  xmlNode = this.firstChild;
  image = [];
  thumbnails = [];
  total = xmlNode.childNodes.length;
  for (i=0; i  image[i] = 
xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
  thumbnails[i] = 
xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;

  thumbnails_fn(i);
  }
  firstImage();
  } else {
  content = "file not loaded!";
  }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("portraits.xml");
 left and right key listener for large images
keylisten = new Object();
keylisten.onKeyDown = function() {
  if (Key.getCode() == Key.LEFT) {
  prevImage();
  } else if (Key.getCode() == Key.RIGHT) {
  nextImage();
  }
};
Key.addListener(keylisten);
preloader
p = 0;
this.onEnterFrame = function() {
  filesize = picture.getBytesTotal();
  loaded = picture.getBytesLoaded();
  preloader._visible = true;
  if (loaded != filesize) {
  preloader.preload_bar._xscale = 100*loaded/filesize;
  } else {
  preloader._visible = false;
  if (picture._alpha<100) {
  picture._alpha += 10;
  }
  }
};
 next image and previous image
function nextImage() {
  if (p<(total-1)) {
  p++;
  if (loaded == filesize) {
  picture._alpha = 0;
  picture.loadMovie(image[p], 1);
  picture_num();
  }
  }
}
function prevImage() {
  if (p>0) {
  p--;
  picture._alpha = 0;
  picture.loadMovie(image[p], 1);
  desc_txt.text = description[p];
  picture_num();
  }
}
function firstImage() {
  if (loaded == filesize) {
  picture._alpha = 0;
  picture.loadMovie(image[0], 1);
  picture_num();
  }
}
thumbnail scroller
function thumbNailScroller() {
  this.createEmptyMovieClip("tscroller", 1000);
  scroll_speed = 10;
  tscroller.onEnterFrame = function() {
  if ((_root._ymouse>=thumbnail_mc._y) && 
(_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
  if ((_root._xmouse>=(hit_right._x-40)) && 
(thumbnail_mc.hitTest(hit_right))) {

  thumbnail_mc._x -= scroll_speed;
  } else if ((_root._xmouse<=(hit_left._x+40)) && 
(thumbnail_mc.hitTest(hit_left))) {

  thumbnail_mc._x += scroll_speed;
  }
  } else {
  delete tscroller.onEnterFrame;
  }
  };
}
 thumbnail strip HERE IS WHERE MY TROUBLES ARE
w = 0
function thumbnails_fn(k) {
  thumbnail_mc.createEmptyMovieClip("t"+k, 
thumbnail_mc.getNextHighestDepth());

  tlistener = new Object();
  tlistener.onLoadInit = function(target_mc) {
  /// place thumbs HOW DO I MAKE THEM NOT LIST BACKWARDS
  target_mc._x = w
  w = target_mc._x + target_mc._width + 1
  /// make thumbs functional
  target_mc.pictureValue = k;
  target_mc.onRelease = function() {
  p = this.pictureValue-1;
  nextImage();
  };
  target_mc.onRollOver = function() {
  this._alpha = 50;
  thumbNailScroller();
  };
  target_mc.onRollOut = function() {
  this._alpha = 100;
  };
  };
  image_mcl = new MovieClipLoader();
  image_mcl.addListener(tlistener);
  image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}

stop();


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] getting 5 random numbers out of 0-16 no dups

2006-11-30 Thread Andy Johnston

http://www.actionscript.org/forums/showthread.php3?s=&threadid=28769

Quick question. Whats the fastest way to get 5 random numbers out of a 
list

of X number of numbers without having any duplicates?

Kinda like the script below excpet it graps duplicates...

var loopNum:Number = 16;

function getRandomNums(){
   for(i=0; i<5; i++){

   lastNum = newNum;

   while(newNum == lastNum){
   newNum = random(loopNum);
   }

   questionOrder[i] = newNum;
   }
   trace(questionOrder); // 0,1,3,2,3 "how do I get no duplicates?"

}



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

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


[Flashcoders] getting 5 random numbers out of 0-16 no dups

2006-11-30 Thread Corban Baxter

Quick question. Whats the fastest way to get 5 random numbers out of a list
of X number of numbers without having any duplicates?

Kinda like the script below excpet it graps duplicates...

var loopNum:Number = 16;

function getRandomNums(){
   for(i=0; i<5; i++){

   lastNum = newNum;

   while(newNum == lastNum){
   newNum = random(loopNum);
   }

   questionOrder[i] = newNum;
   }
   trace(questionOrder); // 0,1,3,2,3 "how do I get no duplicates?"

}

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

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


Re: Re[4]: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread eka

Hello :)

To test mx.events.EventDispatcher, GDispatcher, Vegas... the best solution
is to test all model :)

In big project with FrontController, MVC etc.. my framework is very
interesting... if you want just create a little communication between 2
objects AsBroadcaster is very good :)

In Vegas you can try my
EDispatcher.as(an
old adaptation of the
mx.events.EventDispatcher class ;)) ..You can use my native EDispatcher
implementation with the package vegas.events.type :
http://svn.riaforge.org/vegas/AS2/trunk/src/vegas/events/type/

Example :

import vegas.events.type.BasicDispatcher ;

/**
* This class extends Object and contains addEventListener,
removeEventListener, dispatchEvent etc. methods implemented in the interface
IDispatcher
*/
class MyClass extends BasicDispatcher
{

function MyClass()
{

}

public function getX():Number
{
return _x ;
}

public function setX( value:Number ):Void
{
_x = value ;
var event = { type : "onX" , target:this, x:_x } ;
dispatchEvent(event) ;
}

   private var _x:Number ;

}

you can try too my class FastDispatcher with a AsBroadcaster implementation
with typed events :
http://svn.riaforge.org/vegas/AS2/trunk/src/vegas/events/FastDispatcher.as

import vegas.events.Event ;
import vegas.events.FastDispatcher ;

function onTest( ev:Event ):Void
{
  trace ("") ;
  trace ("type : " + ev.getType()) ;
  trace ("target : " + ev.getTarget()) ;
  trace ("context : " + ev.getContext()) ;
  trace ("this : " + this) ;
}   

var oFD:FastDispatcher = new FastDispatcher() ;

trace ("addListener this : " + oFD.addListener(this)) ;
trace ("hasListeners : " + oFD.hasListeners()) ;
trace ("size : " + oFD.size()) ;
oFD.dispatch( { type : "onTest", target : this } ) ;
oFD.removeAllListeners() ;
oFD.dispatch( { type : "onTest", target : this } ) ;

... my framework implement 3 event models.. but the
vegas.events.EventDispatcher is more complete... with EventListener, Event,
EventTarget interface etc..

EKA+ :)


2006/11/30, Matthias Dittgen <[EMAIL PROTECTED]>:


You guys are right, I have mixed two questions into one:
1: properties in AS1/AS2
2: watching properties, EventModel


Hello Rákos,

thank you for the link to the documentation of the set/get keywords.
On that page, you can read:
"NOTE Implicit getter and setter methods are syntactic shorthand for
the Object.addProperty() method found in ActionScript 1.0."
So I was on the right track and it was only a syntactical AS1-to-AS2
question. ;-)

You say: "AsBroadcaster is quite obsolete, why don't use the event
dispatching
mechanism introduced in MX 2004 (mx.events.EventDispatcher)?"
I agree with eka on that, saying: "EventDispatcher isn't native in the
AS1/AS2", the mx classes are just AS Code from MM, and thus is not
intrinsic to the FlashPlayer in a way. AsBroadcaster is intrinsic.
And I have to take a closer look on EventDispatcher, because I
currently don't understand, how it can detect changes made to a
property.
But I'll check the other event modell classes, too. So thank you for
your very good input into this direcion.


Hello EKA,

you live in france? Europeans seem to be a strong part of the
flashcoder community. :-) I am in germany.
Are there any documented comparisons between AsBroadcaster,
mx.events.EventDispatcher, GDispatcher and VEGAS, yet?

Thanks,
Matthias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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[6]: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread R�kos Attila

MD> So I was on the right track and it was only a syntactical AS1-to-AS2
MD> question. ;-)

Well, actually the whole AS2 syntax is a shorthand for AS1 syntax :)
In fact the AS2 compiler is a preprocessor only, which creates AS1
source from the AS2 one and this AS1 source will be compiled to
bytecode.

MD> I agree with eka on that, saying: "EventDispatcher isn't native in the
MD> AS1/AS2", the mx classes are just AS Code from MM, and thus is not
MD> intrinsic to the FlashPlayer in a way. AsBroadcaster is intrinsic.

It's absolutely true, EventDispatcher is not native, but I don't see
what kind of drawback does it cause? It knows everything what
AsBroadcaster, but even more and you are not limited to
AsBoradcaster's approach, which often requires extra coding. I don't
say that EventDispatcher is the only and perfect solution, but it is
quite widespread, useful for most of the cases and used by not only
the MM components, but several third-party libraries.

MD> I currently don't understand, how it can detect changes made to a
MD> property

EventDispatcher is not for handling properties but for dispatching
events. Getter/setter properties are for catching value changes.

  Attila




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

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


[Flashcoders] [JOB] Senior Flash Developer, Santa Cruz, CA | 100-130k | Paid Relo

2006-11-30 Thread Beau Gould
Senior Flash Developer, Santa Cruz, CA | 100-130k | Paid Relo

Relocation is available to candidates residing in the USA

My Santa Cruz, CA client is seeking a Flash / ActionScript developer to
maintain and extend existing applications, conceive and contribute to
future applications, and to become a core member of our development
team. The successful candidate will be able to jump into existing
(sometimes not well documented) code and quickly glean an understanding
of structure in order to debug or extend with new functionality. This is
a fast-paced position with frequent context switch and ample room for
personal learning and growth. The ideal match is someone who is
completely obsessed with the possibilities in Flash (through
ActionScript) and is committed to personal and professional growth.

Responsibilities: Rapid design, development and on-time deployment of
enterprise level Rich Internet Applications, with a commitment to
reusable code and robust components;

Required Skills:

* Flash MX 2004 
* ActionScript 1.0 
* Extensive experience with data interaction 
* Flash Remoting 
* Experience with XML parsing 
* Experience extending AS 1.0 components (building from scratch a plus) 

Successful candidates will have experience in many of the following: 

* UML / OOA / OOD 
* ActionScript 2.0 

If you are interested in relocating to Santa Cruz, CA, please submit
your resume, salary requirements, and a paragraph (or two) highlighting
your skills/experience as it pertains to this job to
[EMAIL PROTECTED]

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

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


Re: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-30 Thread Micky Hulse

Merrill, Jason wrote:

I just keep my own static Animation class handy, which simplifies the
tween and transition classes:
..
Instead of a static class like above, you could also write one that
extends movie clip and adds animation methods. Then associate your movie
clip with that class.


WHOA! Kick butt!

Thanks so much for sharing! This is great. I was up late last night 
trying to figure out how to do something similar. This post will really 
help me learn -- Thanks! :)


I may be back with some questions.

Lol, Flash is love hate for me... One minute I am ready to tear my hair 
out and quit, the next minute I am all geared-up to go for another 24 
straight hours!!!


Hehe, cheers!
Micky

--
 Wishlist: 
   Switch: 
 BCC?: 
   My: 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: Re[4]: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread Matthias Dittgen

You guys are right, I have mixed two questions into one:
1: properties in AS1/AS2
2: watching properties, EventModel


Hello Rákos,

thank you for the link to the documentation of the set/get keywords.
On that page, you can read:
"NOTE Implicit getter and setter methods are syntactic shorthand for
the Object.addProperty() method found in ActionScript 1.0."
So I was on the right track and it was only a syntactical AS1-to-AS2
question. ;-)

You say: "AsBroadcaster is quite obsolete, why don't use the event dispatching
mechanism introduced in MX 2004 (mx.events.EventDispatcher)?"
I agree with eka on that, saying: "EventDispatcher isn't native in the
AS1/AS2", the mx classes are just AS Code from MM, and thus is not
intrinsic to the FlashPlayer in a way. AsBroadcaster is intrinsic.
And I have to take a closer look on EventDispatcher, because I
currently don't understand, how it can detect changes made to a
property.
But I'll check the other event modell classes, too. So thank you for
your very good input into this direcion.


Hello EKA,

you live in france? Europeans seem to be a strong part of the
flashcoder community. :-) I am in germany.
Are there any documented comparisons between AsBroadcaster,
mx.events.EventDispatcher, GDispatcher and VEGAS, yet?

Thanks,
Matthias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [OT] SCM/Project management tool

2006-11-30 Thread Josh Santangelo
...and has the most unusable UI/workflow of any bug-tracking software  
I've ever used. Got no love for Mantis.


TestTrack Pro is great if you're Windows-centric and willing to spend  
some money.


http://www.seapine.com/ttpro.html

In addition to web access, there's a Windows desktop client, and a  
simplified version you can give to clients to report bugs/etc.


ActiveCollab looks cool too, but is still very early in development.

http://www.activecollab.com/

-josh

On Nov 28, 2006, at 4:32p, Steven Sacks | BLITZ wrote:


If you're looking for bug/feature tracking for your clients, check out
Mantis.  It's easy to set up, customize (if you know php), and best of
all, it's free.

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



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

2006-11-30 Thread Mick G

Ooops I think that syntax is wrong :) I was thinking of the tweening classes
"colorTo" :)


On 11/30/06, Mick G <[EMAIL PROTECTED]> wrote:


Even easier...

mymc.setRGB(0x00); //set to black

mymc.setRGB(undefined); //remove black





On 11/30/06, eka < [EMAIL PROTECTED]> wrote:
>
> Hello :)
>
> use Color.setTransform method to clear the color effect :)
>
> var c:Color = new Color(mc) ;
> c.setRGB(0x00) ;
> c.setTransform ({ra:100, ga:100, ba:100, rb:0, gb:0, bb:0}) ;
>
> EKA+ :)
>
>
>
>
> 2006/11/30, dan <[EMAIL PROTECTED] >:
> >
> > Hi guys
> > Im using the setRGB command to change a color of a  movieclip to black
> > Now...
> > How do I change it back to its orig color?
> >
> > 10x d
> > dan
> >
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/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] setRGB question

2006-11-30 Thread Mick G

Even easier...

mymc.setRGB(0x00); //set to black

mymc.setRGB(undefined); //remove black





On 11/30/06, eka <[EMAIL PROTECTED]> wrote:


Hello :)

use Color.setTransform method to clear the color effect :)

var c:Color = new Color(mc) ;
c.setRGB(0x00) ;
c.setTransform ({ra:100, ga:100, ba:100, rb:0, gb:0, bb:0}) ;

EKA+ :)




2006/11/30, dan <[EMAIL PROTECTED]>:
>
> Hi guys
> Im using the setRGB command to change a color of a  movieclip to black
> Now...
> How do I change it back to its orig color?
>
> 10x d
> dan
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] setInterval and IE ...

2006-11-30 Thread Силин В . Е .
Hi!

I recently found what actions made by setInterval's functions are occurs
slowly in a swf that embedded on a page (browsing in IE) rather in testing
player. 

Best regards, Vadim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sander van
Surksum
Sent: Thursday, November 30, 2006 2:48 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] setInterval and IE ...

What kind of problems do you have?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ben
Smeets
Sent: donderdag 30 november 2006 10:40
To: Flashcoders mailing list
Subject: RE: [Flashcoders] setInterval and IE ...


Nope, using them all the time, but no problems whatsoever. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stephen
Ford
Sent: donderdag 30 november 2006 10:00
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] setInterval and IE ...

Has anyone ever experienced any problems with using setIntervals in IE,
both with window mode of transparent and without any window mode
(normal) ?
 
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
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Loading library movie clips sequentially?

2006-11-30 Thread Jack Doyle
I ran into the same problem with the popular tweening engines like Fuse kit.
Awesome features, but I just couldn't afford the overhead & bloat, so I
built TweenLite which adds only about 2k to your file and has all the
essentials. You can build in a delay for any tween which allows you to
sequence things. Snag the class at:

http://www.greensock.com/actionscript/tweenlite/

I certainly can't claim it's the ideal solution in all cases, but maybe
someone will find it helpful.

Also, regarding your sequential preload issue, I wrote a class for that too.
It does allow you to prioritize an asset anytime and it has several other
features you may find useful. Check it out at:

http://www.greensock.com/actionscript/PreloadAssetManager/

Good luck.

Jack Doyle


-Original Message-
Date: Wed, 29 Nov 2006 10:37:58 -0500
From: "Merrill, Jason" <[EMAIL PROTECTED]>
Subject: RE: [Flashcoders] Loading library movie clips sequentially?
Bestway todo this?
To: Flashcoders mailing list 
Message-ID:
<[EMAIL PROTECTED]>

I have found a major issue with the Fuse kit - it's huge and has huge
overhead.  It's a great set of classes, does some neat things, don't get
me wrong, but I found that using it in code-intensive app brought it
down and made it unusable.  I switched back to the built-in Tween and
Transition classes in the same application and using the
onMotionFinished event and such things went back to normal.  I only
respond  because you were asking for the "best way to do this".  - this
was just my experience.  

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness

>>-Original Message-
>>Hello,
>>
>>Here is the scoop: I have 36 movie clips in my library that get placed
>>on stage via actionscript...
>>
>>Long story short, I would like to load each clip one at a time, for
>>example: movie_clip-01 fully loads and animates into position, then
>>movie_clip-02 loads and animates into position, (...), and finally
>>movie_clip-36 loads and animates into position. Basically, I want to
>>break-up the load across time, vs. doing it all at the beginning.
>>
>>Just wondering if the above idea makes sense? Is it standard to do
>>that type of loading from the library at runtime, or should I be working
>>with 36 external swf files?
>>
>>Anyone seen any tutorials and/or example files on the web that cover
>>this type of loading?
>>
>>Any tips/suggestions/links/rtfm's (with page #) ya'll can send my way
>>would be kick-butt! :)
>>
>>Sorry if noob question... I am just now getting back into Flash after
>>a 2-year hiatus.
>>
>>Many thanks in advance.
>>Cheers,
>>Micky



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

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


[Flashcoders] textFormat, CSS, embedded fonts, dynamic font size control

2006-11-30 Thread Marc Hoffman
I'm working on an all-Flash site that will use a single swf to 
display many "pages" of information about manufactured products. 
Regarding text functionality, I'm not sure what combination of 
textFormat, CSS, and font embedding to use. I want to achieve the following:


1. Dynamic text fields that display text from an xml file.
2. Embedding several fonts, but not the entire character sets.
3. Allowing the user to modify the point size of the text (for accessibility).
4. Controlling a:hover and a:link properties from a central location 
so that I can apply color and underline effects to links.


#1: This is no problem for me.

#2: The issue is that if I use CSS rather than TextFormat, the 
embedded fonts aren't accessed by Flash, so the font must reside on 
the user's system, which is no good.


#3: I wonder if there's a way to trap the browser text-size controls 
and send a message to Flash so I can modify the TextFormat object and 
reformat the text when the user uses the browser controls to affect 
text size. Sort of like trapping the Forward and Back buttons in the 
browser. But that could be too complicated, especially if the 
different browsers use different methods to resize the text. In that 
case, I also wonder if I can modify the right-click (context) menu to 
include items for "Increase Text Size" and "Decrease Text Size," but 
then how do I trap user clicks on the context menu?


#4: Can CSS be used at the same time as TextFormat? If so, how?

Many thanks!

Marc Hoffman


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

2006-11-30 Thread GregoryN
Hello,

How about this hack:
use .send and "open" new windows into hidden IFRAME?
You can do it using 2nd "target" parameter of LoadVars.send().

-- 
Best regards,
 GregoryN

http://GOusable.com
Flash components development.
Usability services.


> === "Glenn Grant" wrote:
> I use .sendAndLoad to load a shopping cart so it will not pop a new browser
> window each time the user adds an item. this works fine locally, but online
> the items are not being added to the cart. if i use .send instead of
> .sendAndLoad everything works fine except for the aforementioned launching
> of browser every time. i read in flash's documentation that .sendAndLoad has
> a different security protocol than .send, so i have tried
> System.security.allowDomain("thedomain.com"); in the first line, which
> doesn't seem to be making a difference. any suggestions?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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[4]: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread R�kos Attila

You are right, EventDispatcher is not a native class, but it is a
quite simple and clean solution, which implements some very useful
features missing from AsBroadcaster. I don't prefer the listener
object model of AsBroadcaster, I more like the callback model of
EventDispatcher, since it is far more flexible. The DOM3/AS3 event
model is great but I rarely need its complexity and additional
features, so I think EventDispatcher is an optimal solution in most of
the cases. Concerning the speed, I had no problems yet.

  Attila

e> EventDispatcher isn't native in the AS1/AS2 framework, AsBroadcaster is a
e> speed solution to implement an event model in your code.
e> 
e> The EventDispatcher in AS3 is compatible with the W3C DOM3 event model with
e> a custom implementation of all listeners...
e> 
e> For me in AS2 you can
e> 
e> 1 - use AsBroadcaster (speed)
e> 2 - use GDispatcher class and not AS2 EventDispatcher:
e> http://www.gskinner.com/blog/archives/27.html
e> 3 - use my event model in VEGAS :) (compte event model)


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

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


Re: Re[2]: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread eka

Hello :)

EventDispatcher isn't native in the AS1/AS2 framework, AsBroadcaster is a
speed solution to implement an event model in your code.

The EventDispatcher in AS3 is compatible with the W3C DOM3 event model with
a custom implementation of all listeners...

For me in AS2 you can

1 - use AsBroadcaster (speed)
2 - use GDispatcher class and not AS2 EventDispatcher:
http://www.gskinner.com/blog/archives/27.html
3 - use my event model in VEGAS :) (compte event model)

EKA+ :)



2006/11/30, Rákos Attila <[EMAIL PROTECTED]>:



MD> perhaps I can cotton up with (btw. is this good english?)
MD> AsBroadcaster, since it is availablefrom flash version 6 and above.

AsBroadcaster is quite obsolete, why don't use the event dispatching
mechanism introduced in MX 2004 (mx.events.EventDispatcher)? It
handles separate callbacks (see also mx.utils.Delegate for avoiding
scope issues) as well as listener objects.

MD> But I can't find documentations about the set/get syntax you used.

E.g. see the AS language elements or this one:


http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1322.html

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] onChange or onResize or onX event - howto?

2006-11-30 Thread eka

hello :)

sorry for my english ... i speak french and the english is difficult for me
:(

if you want try my openSource framework read this page :
http://vegas.riaforge.org/

1 - Download with a SVN client the subversion of the project or download the
zip in the project page( SVN is better to use versionning when i change or
update the code )

2 - install in mtasc or flash the AS2/trunk/src classpath to used my
libraries

3 - try the AS2 example in AS2/trunk/bin/test

To test my event model you can try the example in the
AS2/trunk/bin/test/vegas/events directory ...

All my framework use the W3C DOM2/3 event model with bubbling event,
capturing event, etc... the event model in an application is important ! In
the AS2 components of Macromedia the EventDispatcher class is very poor...
AsBroadcaster is in AS1 and AS2 the only native class to inject in your
class the 3 methods addListener, removeListener and broadcastMessage...
documented since Flash8 but ready in Flash6/7/8... AsBroadcaster is the good
solution to begin to used a event model in your code... (example of
tutorials about this class :
http://www.actionscript.org/resources/articles/116/1/ASBroadcaster/Page1.html
)

EKA+ :)






2006/11/30, Matthias Dittgen <[EMAIL PROTECTED]>:


Hello eka,

perhaps I can cotton up with (btw. is this good english?)
AsBroadcaster, since it is availablefrom flash version 6 and above.
:-)
But I can't find documentations about the set/get syntax you used. But
it works just perfect. And I guess this set and get keywords are
available within all classes, and thus in classes extending MovieClip,
too, right? That is an advantage to addProperty, which is only
available to Object.

You write "In my personnal AS2 OpenSource framework".. I guess, we all
have our own personnal AS2 OpenSource framework at home. :-) Currently
I try to implement layout mechanisms other than absolute coordinates.
This is, why I want this onX events and such things.

Thanks,
Matthias


2006/11/30, eka <[EMAIL PROTECTED]>:
> ooops...  ui.addListener(this) ; is no necessary now in your test in my
last
> message;)
>
> the
>
> 2006/11/30, eka <[EMAIL PROTECTED]>:
> >
> > Hello :)
> >
> > you can but a good event model use AsBroadcaster or other system to
> > dispatch the events :) In my personnal AS2 OpenSource framework i use
a
> > event model compatible with W3C Dom3 event model for example (like AS3
> > framework) it's more easy to use a event model to dispatch
information
> > in callbacks methods ! If you want dispatch the information in your
class...
> > use this.addListener(this) and you can use onX method directly on your
> > instance :)
> >
> > class MyUIObject
> >  {
> >
> > /**
> >  * Constructor of the class.
> >  */
> > public function MyUIObject()
> > {
> > this.addListener(this) ;
> >  }
> >
> > /**
> >  * Inject addListener, removeListener and broadcastMessage methods
in
> > the prototype of the class.
> >  */
> > static private var __INITBROADCASTER__ = AsBroadcaster.initialize(
> > MyUIObject.prototype ) ;
> >
> > // Public Properties
> >
> > /**
> >  * The code of this method is injected by the AsBroadcaster tool.
> >  * Use this declaration in the AS2 compilation.
> >  */
> > public var addListener:Function ;
> >
> > /**
> >  * The code of this method is injected by the AsBroadcaster tool.
> >  * Use this declaration in the AS2 compilation.
> >  */
> > public var broadcastMessage:Function ;
> >
> > /**
> >  * This method is empty but can be override by the user in this
code
> > to notify the x value modification.
> >  */
> >  public var onX:Function ;
> >
> > /**
> >  * The code of this method is injected by the AsBroadcaster tool.
> >  * Use this declaration in the AS2 compilation.
> >  */
> > public var removeListener:Function ;
> >
> > /**
> >  * (read-write) Returns the x position of the ui object.
> >  */
> > public function get x():Number
> > {
> > return getX() ;
> > }
> >
> > /**
> >  * (read-write) Sets the x position of the ui object.
> >  */
> > public function set x( value:Number ):Void
> > {
> > setX( value ) ;
> > }
> >
> > // Public Methods
> >
> > /**
> >  * Returns the x position of the UI object.
> >  */
> >public function getX():Number
> > {
> >return _x;
> >}
> >
> > /**
> >  * Sets the x position of the UI object.
> >  */
> > public function setX( value:Number ):Void
> > {
> > _x = value ;
> >  broadcastMessage("onX" , this, _x) ;
> >}
> >
> > // Private Properties
> >
> > /**
> >  * The internal x position of the UI object.
> >  */
> > private var _x:Number ;
> >
> > }
> >
> > And in your code :
> >
> > var ui:MyUIObject = new MyUIObject();
> > ui.onX = function ( who , x )
> > {
> >  trace("onX : " + who + "

Re[2]: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread R�kos Attila

MD> perhaps I can cotton up with (btw. is this good english?)
MD> AsBroadcaster, since it is availablefrom flash version 6 and above.

AsBroadcaster is quite obsolete, why don't use the event dispatching
mechanism introduced in MX 2004 (mx.events.EventDispatcher)? It
handles separate callbacks (see also mx.utils.Delegate for avoiding
scope issues) as well as listener objects.

MD> But I can't find documentations about the set/get syntax you used.

E.g. see the AS language elements or this one:

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1322.html

  Attila

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

2006-11-30 Thread Matthias Dittgen

Hello eka,

perhaps I can cotton up with (btw. is this good english?)
AsBroadcaster, since it is availablefrom flash version 6 and above.
:-)
But I can't find documentations about the set/get syntax you used. But
it works just perfect. And I guess this set and get keywords are
available within all classes, and thus in classes extending MovieClip,
too, right? That is an advantage to addProperty, which is only
available to Object.

You write "In my personnal AS2 OpenSource framework".. I guess, we all
have our own personnal AS2 OpenSource framework at home. :-) Currently
I try to implement layout mechanisms other than absolute coordinates.
This is, why I want this onX events and such things.

Thanks,
Matthias


2006/11/30, eka <[EMAIL PROTECTED]>:

ooops...  ui.addListener(this) ; is no necessary now in your test in my last
message;)

the

2006/11/30, eka <[EMAIL PROTECTED]>:
>
> Hello :)
>
> you can but a good event model use AsBroadcaster or other system to
> dispatch the events :) In my personnal AS2 OpenSource framework i use a
> event model compatible with W3C Dom3 event model for example (like AS3
> framework) it's more easy to use a event model to dispatch information
> in callbacks methods ! If you want dispatch the information in your class...
> use this.addListener(this) and you can use onX method directly on your
> instance :)
>
> class MyUIObject
>  {
>
> /**
>  * Constructor of the class.
>  */
> public function MyUIObject()
> {
> this.addListener(this) ;
>  }
>
> /**
>  * Inject addListener, removeListener and broadcastMessage methods in
> the prototype of the class.
>  */
> static private var __INITBROADCASTER__ = AsBroadcaster.initialize(
> MyUIObject.prototype ) ;
>
> // Public Properties
>
> /**
>  * The code of this method is injected by the AsBroadcaster tool.
>  * Use this declaration in the AS2 compilation.
>  */
> public var addListener:Function ;
>
> /**
>  * The code of this method is injected by the AsBroadcaster tool.
>  * Use this declaration in the AS2 compilation.
>  */
> public var broadcastMessage:Function ;
>
> /**
>  * This method is empty but can be override by the user in this code
> to notify the x value modification.
>  */
>  public var onX:Function ;
>
> /**
>  * The code of this method is injected by the AsBroadcaster tool.
>  * Use this declaration in the AS2 compilation.
>  */
> public var removeListener:Function ;
>
> /**
>  * (read-write) Returns the x position of the ui object.
>  */
> public function get x():Number
> {
> return getX() ;
> }
>
> /**
>  * (read-write) Sets the x position of the ui object.
>  */
> public function set x( value:Number ):Void
> {
> setX( value ) ;
> }
>
> // Public Methods
>
> /**
>  * Returns the x position of the UI object.
>  */
>public function getX():Number
> {
>return _x;
>}
>
> /**
>  * Sets the x position of the UI object.
>  */
> public function setX( value:Number ):Void
> {
> _x = value ;
>  broadcastMessage("onX" , this, _x) ;
>}
>
> // Private Properties
>
> /**
>  * The internal x position of the UI object.
>  */
> private var _x:Number ;
>
> }
>
> And in your code :
>
> var ui:MyUIObject = new MyUIObject();
> ui.onX = function ( who , x )
> {
>  trace("onX : " + who + " with the value : " + x) ;
> }
> ui.addListener(this) ;
> ui.x = 25 ;
>
> EKA+ :)
>
> 2006/11/30, Matthias Dittgen <[EMAIL PROTECTED]>:
> >
> > Hello EKA,
> >
> > thanks for your reply.
> >
> > to your 1: yes, i really don't wanted to use watch. the watch method
> > is less performant, I have read on this list sometime before. That's,
> > why I asked my question. It admit, it has been more than only one
> > question. :-)
> >
> > to your 2: I usually give my constructor the same name as the class.
> > This is a typical mistake, when I use the copy&paste&change method to
> > write emails.
> >
> > to your 3: "is AS2 used get and set keywords to create virtual
> > properties and don't use addProperty method!", I was not aware of the
> > set and get keywords. Is this syntax supported by both Flash IDE and
> > MTASC? Be sure, I'll try that!
> >
> > to your second 3: "you can use in your example the Asbroadcaster class"
> > But I don't have to. The way you use "set x(x:Number)", "get
> > x():Number", "setX(x:Number)" and getX():Number", I could just change
> > your
> >
> > public function setX( value:Number ):Void
> > {
> > _x = value ;
> > broadcastMessage("onX" , this, _x) ;
> > }
> >
> > into:
> >
> > public function onX():Void {} // can be dynamically overwritten
> > public function setX( value:Number ):Void
> > {
> > _x = value ;
> > onX();
> > }
> >
> > ,can't I?
> >
> > But again: thanks a lot for introducing the set and get keywords to
>

Re: [Flashcoders] Shared objects and filesize

2006-11-30 Thread Ian Thomas

How weird... I'll have to check my own setup, as I honestly haven't
checked to see whether my .swfs are bloated (using shared libs for
convenience rather than file-size-saving).

I discovered another oddity the other day (which I assume has been
previously documented, but was new to me...)

If you aren't using the shared symbols directly on the stage (i.e.
you're attaching them dynamically using attachMovie) you can trick the
system.

If you include only _one_ of the symbols from your shared library in
your movie's library, the shared .swf gets loaded (obviously) - and
_all_ the shared library symbols are then available via actionscript.
Which is nice. :-D

Saves on maintenance, and eases pluggability/skinning considerably...

Cheers,
  Ian

On 11/30/06, Danny Kodicek <[EMAIL PROTECTED]> wrote:

 > Hi Danny,
>   Are you sure that all the symbols that the shared library
> object uses are also set to be shared?
>
>   i.e. If the top-level symbol (set as runtime shared in the Linkage
> dialog) contains/references lots of other library symbols in
> the shared library, unless _they too_ are set to be runtime
> shared, they'll get copied into your new .swf

They are. Here's what I've discovered:

The symbols seem to be *both* shared *and* embedded. I can fix the problem
as follows:

1) Create a new movie with a dummy symbol called 'test', set to export.
2) Bring this symbol into the target movie
3) Set the linkage manually to the symbol I actually want to use.

Hey presto: 135k dropped off my swf at a stroke.

Danny

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

2006-11-30 Thread Danny Kodicek
 > Hi Danny,
>   Are you sure that all the symbols that the shared library 
> object uses are also set to be shared?
> 
>   i.e. If the top-level symbol (set as runtime shared in the Linkage
> dialog) contains/references lots of other library symbols in 
> the shared library, unless _they too_ are set to be runtime 
> shared, they'll get copied into your new .swf

They are. Here's what I've discovered:

The symbols seem to be *both* shared *and* embedded. I can fix the problem
as follows:

1) Create a new movie with a dummy symbol called 'test', set to export.
2) Bring this symbol into the target movie
3) Set the linkage manually to the symbol I actually want to use.

Hey presto: 135k dropped off my swf at a stroke. 

Danny

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

2006-11-30 Thread Ian Thomas

Hi Danny,
 Are you sure that all the symbols that the shared library object
uses are also set to be shared?

 i.e. If the top-level symbol (set as runtime shared in the Linkage
dialog) contains/references lots of other library symbols in the
shared library, unless _they too_ are set to be runtime shared,
they'll get copied into your new .swf

HTH,
  Ian

On 11/30/06, Danny Kodicek <[EMAIL PROTECTED]> wrote:


I've got a swf that is 4k in size. When I link an object from a shared
library and republish, the swf goes up to 140k. What's going on? What is the
point of shared libraries if they don't keep the file size down?

Danny

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

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


[Flashcoders] Shared objects and filesize

2006-11-30 Thread Danny Kodicek

I've got a swf that is 4k in size. When I link an object from a shared
library and republish, the swf goes up to 140k. What's going on? What is the
point of shared libraries if they don't keep the file size down?

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [OT] SCM/Project management tool

2006-11-30 Thread Ian Thomas

On 11/30/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote:


As for the automation of development and deployment processes:

* To deploy the app on the production server, I'm thinking about using
Capistrano;
* On my development machine, I'm using ANT for the compiling and
unit-testing processes.


*snip*

Sounds good - I haven't heard of Capistrano before, I'll have to take a look.

I've used http://cruisecontrol.sourceforge.net/ in the past (but that
was in a Java coding environment rathre than Flash) for continuous
integration, but haven't tried applying that to Flash yet (I think
we'd need to make the switch to using mtasc or the Flex compiler;
which we aren't prepared to do immediately).

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

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


RE: [Flashcoders] How variables when using setInterval ...

2006-11-30 Thread Merrill, Jason
Just keep an array of the intervals and refer to that.  Then you only
declare the array, and add and subtract the intervals from the array.
Plus keeps it all nice and tidy.

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Stephen Ford
>>Sent: Wednesday, November 29, 2006 7:35 PM
>>To: flashcoders@chattyfig.figleaf.com
>>Subject: [Flashcoders] How variables when using setInterval ...
>>
>>Hello,
>>
>>Lets say you have 10 different setIntervals running within your class.
Do you also
>>declare 10 different variables for these intervals ? like so:
>>
>>private var nInt:Number;
>>private var nInt2:Number;
>>private var nInt3:Number;
>>etc
>>etc
>>
>>Or can you just declare one variable and use it multiple times (I'm
guessing not
>>because then when you clear the interval, all of them would stop).
>>
>>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] Loading library movie clips sequentially? Best way to do this?

2006-11-30 Thread Ian Thomas

On 11/30/06, Claus Wahlers <[EMAIL PROTECTED]> wrote:


However, zipping thumbnails has the big advantage that you save a lot of
overhead. 200 successive GET requests are no fun. Loading a zip is way
faster as you only need to do one request to the server. And with FZip
you have access to files while the zip is still loading.


An alternative to this if dealing with AS2 - you could dynamically
build a .swf containing all the thumbnails using swfmill, then load
that.

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

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


Re: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread eka

ooops...  ui.addListener(this) ; is no necessary now in your test in my last
message;)

the

2006/11/30, eka <[EMAIL PROTECTED]>:


Hello :)

you can but a good event model use AsBroadcaster or other system to
dispatch the events :) In my personnal AS2 OpenSource framework i use a
event model compatible with W3C Dom3 event model for example (like AS3
framework) it's more easy to use a event model to dispatch information
in callbacks methods ! If you want dispatch the information in your class...
use this.addListener(this) and you can use onX method directly on your
instance :)

class MyUIObject
 {

/**
 * Constructor of the class.
 */
public function MyUIObject()
{
this.addListener(this) ;
 }

/**
 * Inject addListener, removeListener and broadcastMessage methods in
the prototype of the class.
 */
static private var __INITBROADCASTER__ = AsBroadcaster.initialize(
MyUIObject.prototype ) ;

// Public Properties

/**
 * The code of this method is injected by the AsBroadcaster tool.
 * Use this declaration in the AS2 compilation.
 */
public var addListener:Function ;

/**
 * The code of this method is injected by the AsBroadcaster tool.
 * Use this declaration in the AS2 compilation.
 */
public var broadcastMessage:Function ;

/**
 * This method is empty but can be override by the user in this code
to notify the x value modification.
 */
 public var onX:Function ;

/**
 * The code of this method is injected by the AsBroadcaster tool.
 * Use this declaration in the AS2 compilation.
 */
public var removeListener:Function ;

/**
 * (read-write) Returns the x position of the ui object.
 */
public function get x():Number
{
return getX() ;
}

/**
 * (read-write) Sets the x position of the ui object.
 */
public function set x( value:Number ):Void
{
setX( value ) ;
}

// Public Methods

/**
 * Returns the x position of the UI object.
 */
   public function getX():Number
{
   return _x;
   }

/**
 * Sets the x position of the UI object.
 */
public function setX( value:Number ):Void
{
_x = value ;
 broadcastMessage("onX" , this, _x) ;
   }

// Private Properties

/**
 * The internal x position of the UI object.
 */
private var _x:Number ;

}

And in your code :

var ui:MyUIObject = new MyUIObject();
ui.onX = function ( who , x )
{
 trace("onX : " + who + " with the value : " + x) ;
}
ui.addListener(this) ;
ui.x = 25 ;

EKA+ :)

2006/11/30, Matthias Dittgen <[EMAIL PROTECTED]>:
>
> Hello EKA,
>
> thanks for your reply.
>
> to your 1: yes, i really don't wanted to use watch. the watch method
> is less performant, I have read on this list sometime before. That's,
> why I asked my question. It admit, it has been more than only one
> question. :-)
>
> to your 2: I usually give my constructor the same name as the class.
> This is a typical mistake, when I use the copy&paste&change method to
> write emails.
>
> to your 3: "is AS2 used get and set keywords to create virtual
> properties and don't use addProperty method!", I was not aware of the
> set and get keywords. Is this syntax supported by both Flash IDE and
> MTASC? Be sure, I'll try that!
>
> to your second 3: "you can use in your example the Asbroadcaster class"
> But I don't have to. The way you use "set x(x:Number)", "get
> x():Number", "setX(x:Number)" and getX():Number", I could just change
> your
>
> public function setX( value:Number ):Void
> {
> _x = value ;
> broadcastMessage("onX" , this, _x) ;
> }
>
> into:
>
> public function onX():Void {} // can be dynamically overwritten
> public function setX( value:Number ):Void
> {
> _x = value ;
> onX();
> }
>
> ,can't I?
>
> But again: thanks a lot for introducing the set and get keywords to
> me. I'll try that now!
> Thanks,
>
> Matthias
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] onChange or onResize or onX event - howto?

2006-11-30 Thread eka

Hello :)

you can but a good event model use AsBroadcaster or other system to dispatch
the events :) In my personnal AS2 OpenSource framework i use a event model
compatible with W3C Dom3 event model for example (like AS3 framework)
it's more easy to use a event model to dispatch information in callbacks
methods ! If you want dispatch the information in your class... use
this.addListener(this) and you can use onX method directly on your instance
:)

class MyUIObject
{

   /**
* Constructor of the class.
*/
   public function MyUIObject()
   {
   this.addListener(this) ;
   }

   /**
* Inject addListener, removeListener and broadcastMessage methods in
the prototype of the class.
*/
   static private var __INITBROADCASTER__ = AsBroadcaster.initialize(
MyUIObject.prototype ) ;

   // Public Properties

   /**
* The code of this method is injected by the AsBroadcaster tool.
* Use this declaration in the AS2 compilation.
*/
   public var addListener:Function ;

   /**
* The code of this method is injected by the AsBroadcaster tool.
* Use this declaration in the AS2 compilation.
*/
   public var broadcastMessage:Function ;

   /**
* This method is empty but can be override by the user in this code to
notify the x value modification.
*/
public var onX:Function ;

   /**
* The code of this method is injected by the AsBroadcaster tool.
* Use this declaration in the AS2 compilation.
*/
   public var removeListener:Function ;

   /**
* (read-write) Returns the x position of the ui object.
*/
   public function get x():Number
   {
   return getX() ;
   }

   /**
* (read-write) Sets the x position of the ui object.
*/
   public function set x( value:Number ):Void
   {
   setX( value ) ;
   }

   // Public Methods

   /**
* Returns the x position of the UI object.
*/
  public function getX():Number
   {
  return _x;
  }

   /**
* Sets the x position of the UI object.
*/
   public function setX( value:Number ):Void
   {
   _x = value ;
broadcastMessage("onX" , this, _x) ;
  }

   // Private Properties

   /**
* The internal x position of the UI object.
*/
   private var _x:Number ;

}

And in your code :

var ui:MyUIObject = new MyUIObject();
ui.onX = function ( who , x )
{
trace("onX : " + who + " with the value : " + x) ;
}
ui.addListener(this) ;
ui.x = 25 ;

EKA+ :)

2006/11/30, Matthias Dittgen <[EMAIL PROTECTED]>:


Hello EKA,

thanks for your reply.

to your 1: yes, i really don't wanted to use watch. the watch method
is less performant, I have read on this list sometime before. That's,
why I asked my question. It admit, it has been more than only one
question. :-)

to your 2: I usually give my constructor the same name as the class.
This is a typical mistake, when I use the copy&paste&change method to
write emails.

to your 3: "is AS2 used get and set keywords to create virtual
properties and don't use addProperty method!", I was not aware of the
set and get keywords. Is this syntax supported by both Flash IDE and
MTASC? Be sure, I'll try that!

to your second 3: "you can use in your example the Asbroadcaster class"
But I don't have to. The way you use "set x(x:Number)", "get
x():Number", "setX(x:Number)" and getX():Number", I could just change
your

public function setX( value:Number ):Void
{
_x = value ;
broadcastMessage("onX" , this, _x) ;
}

into:

public function onX():Void {} // can be dynamically overwritten
public function setX( value:Number ):Void
{
_x = value ;
onX();
}

,can't I?

But again: thanks a lot for introducing the set and get keywords to
me. I'll try that now!
Thanks,

Matthias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] onChange or onResize or onX event - howto?

2006-11-30 Thread Matthias Dittgen

Hello EKA,

thanks for your reply.

to your 1: yes, i really don't wanted to use watch. the watch method
is less performant, I have read on this list sometime before. That's,
why I asked my question. It admit, it has been more than only one
question. :-)

to your 2: I usually give my constructor the same name as the class.
This is a typical mistake, when I use the copy&paste&change method to
write emails.

to your 3: "is AS2 used get and set keywords to create virtual
properties and don't use addProperty method!", I was not aware of the
set and get keywords. Is this syntax supported by both Flash IDE and
MTASC? Be sure, I'll try that!

to your second 3: "you can use in your example the Asbroadcaster class"
But I don't have to. The way you use "set x(x:Number)", "get
x():Number", "setX(x:Number)" and getX():Number", I could just change
your

public function setX( value:Number ):Void
{
   _x = value ;
   broadcastMessage("onX" , this, _x) ;
}

into:

public function onX():Void {} // can be dynamically overwritten
public function setX( value:Number ):Void
{
   _x = value ;
   onX();
}

,can't I?

But again: thanks a lot for introducing the set and get keywords to
me. I'll try that now!
Thanks,

Matthias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 send Audio objects as MP3 via XML-RPC?

2006-11-30 Thread Martin Wood-Mitrovski



Leo Burd wrote:

- thanks so much for all the feedback provided!

I believe now I've collected all (or most) of the pieces that I needed 
for my little system!


As for the sorenson format issue, I believe ffmpeg can take care of 
that... (hopefully)


the video is sorenson, but the audio is nellymoser. Im pretty sure that there 
are currently no free converters for nellymoser.


If you want to record audio from flash via the mic and convert it into a 
'usable' format you'll have to pay nellymoser for their transcoder.


From what ive read (on the flashcomm list) its in the region of $8k

If you do find a way to convert .flv audio to something else for free, please 
let me know :)


thanks,

Martin

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

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


RE: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-30 Thread Merrill, Jason
I just keep my own static Animation class handy, which simplifies the
tween and transition classes:

import mx.transitions.*;
import mx.transitions.easing.*;

class com.boa.effects.Animate{

public static function fadeIn(clip:MovieClip,
time:Number):Object{
return new Tween(clip, "_alpha", Regular.easeIn, 0, 100,
time,   true);
}   

//...etc.
}

I can create custom animations with simple names, and custom parameters
based on how many arguments I want to worry about.  So then in my .fla,
I call the static function I want, like this:

import com.boa.effects.Animate;
myMotionTween = Animate.fadeIn(myClip, 3);

//Then use what's return to trigger the next animation:
myMotionTween.onMotionFinished = function(){
//do the next thing when the animation is 
//finished.
}

Wrap that in a creative way into arrays/loops and you've got simple
sequential animation.

Instead of a static class like above, you could also write one that
extends movie clip and adds animation methods. Then associate your movie
clip with that class.

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 send Audio objects as MP3 via XML-RPC?

2006-11-30 Thread Leo Burd

- thanks so much for all the feedback provided!

I believe now I've collected all (or most) of the pieces that I needed for 
my little system!


As for the sorenson format issue, I believe ffmpeg can take care of that... 
(hopefully)


Best,

Leo

- Original Message - 
From: "Janis Radins" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, November 29, 2006 1:04 PM
Subject: Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?


btw, not long time ago i heard some person on efnet #actionscript 
complaning
that FMS and red5 are saving FLV's encoded with sorensen which he claimed 
is

unconvertable to any alternative format.

2006/11/29, Robert r. Sanders <[EMAIL PROTECTED]>:


Ah, ok, that makes things clearer.

First, look at RED5 - http://osflash.org/red5  You'd have to record to
FLV and then run a second program to parse out the audio, but it could
be done.

Second, the blog entry I was thinking of is
http://www.flashcodersbrighton.org/wordpress/?p=9  it might contain
useful code if you wanted to try and convert the audio inside of flash.


Leo Burd wrote:
> Hello Robert,
>
> Thanks so much for your message!
>
> My problem is creating an MP3 file out of a Sound object, not the
> other way around... do you have any suggestions on how to do that?
>
> Best,
>
> Leo
>
> - Original Message - From: "Robert r. Sanders"
> <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Tuesday, November 28, 2006 9:36 PM
> Subject: Re: [Flashcoders] How to send Audio objects as MP3 via 
> XML-RPC?

>
>
>> My understanding is that there is no way to "create" a Sound object
>> other than by embedding it or using a streaming server (see Red5).
>>
>> However, some enterprising individuals have realized that in AS3 you
>> can dynamically create objects (e.g. reflection) and thus if you
>> really want to you could programmatically 'generate' sound.
>> Depending on your use case it is probably much easier to use a
>> streaming server.
>> As an aside the use case I had for programmatic generation of a Sound
>> object was the idea that the Speex algorithm (an open codec for human
>> voice encoding) might be a possibility in AS3, alas it looks like it
>> would be a major undertaking.
>>
>>
>> Leo Burd wrote:
>>> Hello there,
>>>
>>> I am new to Flash and I am wondering what is the best way to send
>>> Audio objects via XML-RPC.  More specifically, I wonder if anyone
>>> could send me suggestions on:
>>>
>>> a) How to convert a Sound object to MP3 programatically?
>>> b) How to convert the resulting MP3 into a base64 string
>>> c) How to send the base64 string to my server via XML-RPC
>>>
>>> BTW, shall I use AS2 or AS3 for this?
>>>
>>> Thanks in advance,
>>>
>>> Leo
>>>
>>> ___
>>> Flashcoders@chattyfig.figleaf.com
>>> To change your subscription options or search the archive:
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>> Brought to you by Fig Leaf Software
>>> Premier Authorized Adobe Consulting and Training
>>> http://www.figleaf.com
>>> http://training.figleaf.com

--
Robert r. Sanders
Chief Technologist
iPOV
(334) 821-5412
www.ipov.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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] onChange or onResize or onX event - howto?

2006-11-30 Thread eka

Hello :)


1 - Object watch failed with virtual properties (_x, _y, _width etc)..
don't use addProperty and watch method !!

In your example you must return the new value in the change method !!!

var o:Object = {} ;
o.prop = 0 ;

var change = function ( id , oldValue, newValue)
{
   trace("id : " + id + ", change " + oldValue + " to " + newValue) ;
   mc._x = Math.round(newValue) ;
   return newValue ;
}

o.watch("prop", change) ;

o.prop = 20 ;
o.prop = 30 ;
o.prop = 30 ;
o.prop = 40 ;
o.prop = 100 ;

2 - in your the constructor must be the same name with the class name !! If
the name of your class is MyUIObject .. your constructor must have the same
name :)

3 - is AS2 used get and set keywords to create virtual properties and don't
use addProperty method !

3 - You can use in your example the Asbroadcaster class to inject
addListener, removeListener and broadcastMessage method in your class :

class MyUIObject
{

   /**
* Constructor of the class.
*/
   public function MyUIObject()
   {

   }

   /**
* Inject addListener, removeListener and broadcastMessage methods in
the prototype of the class.
*/
   static private var __INITBROADCASTER__ = AsBroadcaster.initialize(
MyUIObject.prototype ) ;

   // Public Properties

   /**
* The code of this method is injected by the AsBroadcaster tool.
* Use this declaration in the AS2 compilation.
*/
   public var addListener:Function ;

   /**
* The code of this method is injected by the AsBroadcaster tool.
* Use this declaration in the AS2 compilation.
*/
   public var broadcastMessage:Function ;

   /**
* The code of this method is injected by the AsBroadcaster tool.
* Use this declaration in the AS2 compilation.
*/
   public var removeListener:Function ;

   /**
* (read-write) Returns the x position of the ui object.
*/
   public function get x():Number
   {
   return getX() ;
   }

   /**
* (read-write) Sets the x position of the ui object.
*/
   public function set x( value:Number ):Void
   {
   setX( value ) ;
   }

   // Public Methods

   /**
* Returns the x position of the UI object.
*/
  public function getX():Number
   {
  return _x;
  }

   /**
* Sets the x position of the UI object.
*/
   public function setX( value:Number ):Void
   {
   _x = value ;
broadcastMessage("onX" , this, _x) ;
  }

   // Private Properties

   /**
* The internal x position of the UI object.
*/
   private var _x:Number ;

}


You can now use this class and this event model :

var onX = function ( who , x )
{
trace("onX : " + who + " with the value : " + x) ;
}

var ui:MyUIObject = new MyUIObject();
ui.addListener(this) ;
ui.x = 25 ;

EKA+ :)


2006/11/30, Matthias Dittgen <[EMAIL PROTECTED]>:


Hello,

I often need to recognize for some of my gui elemets when the embedded
gui elements (childs) have changed or vice-versa the parent elements
has changed in a property, like "_x", "_width", etc. to repaint the
necessary elements of the GUI.
So what is the best way to do this?

I stumbled over the methods of Object to add or watch properties. This
allows myself to build something like this:

class MyUIObject extends Object
{
public var _x:Number;

public function GUIObject() {
this.addProperty("_x", getX, setX);
this.watch("_x",onChange,{test: 123}); // possibility 2
}

// possibility 2
private function onChange(prop, oldVal, newVal, userData):Boolean
{
if (prop=="_x")
{
onX(newVal);
return true;
} else {
return false;
}
}

private function getX(Void):Number {
return _x;
}
private function setX(x:Number):Void {
onX(x); // possibility 1
}
public function onX(x:Number):Void {
}
}

This way I can set and get _x:

var muo:MyUIObject = new MyUIObject();
trace("1: "+muo._x)
muo._x.onX = function(x)
{
trace("2: "+this._x);
trace("3: "+x);
}
muo._x = 100;
trace("4: "+muo._x)

But the onX method is invoked BEFORE _x is actually set, why?
Output:
1: undefined
2: undefined
3: 100
4: 100

Is there a better way to have an onX method, which perhaps is invoked
immediately after _x was set?

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

[Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread Matthias Dittgen

Hello,

I often need to recognize for some of my gui elemets when the embedded
gui elements (childs) have changed or vice-versa the parent elements
has changed in a property, like "_x", "_width", etc. to repaint the
necessary elements of the GUI.
So what is the best way to do this?

I stumbled over the methods of Object to add or watch properties. This
allows myself to build something like this:

class MyUIObject extends Object
{
public var _x:Number;

public function GUIObject() {
this.addProperty("_x", getX, setX);
this.watch("_x",onChange,{test: 123}); // possibility 2
}

// possibility 2
private function onChange(prop, oldVal, newVal, userData):Boolean
{
if (prop=="_x")
{
onX(newVal);
return true;
} else {
return false;
}
}   

private function getX(Void):Number {
return _x;
}   
private function setX(x:Number):Void {
onX(x); // possibility 1
}   
public function onX(x:Number):Void {
}
}

This way I can set and get _x:

var muo:MyUIObject = new MyUIObject();
trace("1: "+muo._x)
muo._x.onX = function(x)
{
trace("2: "+this._x);
trace("3: "+x);
}
muo._x = 100;
trace("4: "+muo._x)

But the onX method is invoked BEFORE _x is actually set, why?
Output:
1: undefined
2: undefined
3: 100
4: 100

Is there a better way to have an onX method, which perhaps is invoked
immediately after _x was set?

Thank you,
Matthias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] setRGB question

2006-11-30 Thread eka

Hello :)

use Color.setTransform method to clear the color effect :)

var c:Color = new Color(mc) ;
c.setRGB(0x00) ;
c.setTransform ({ra:100, ga:100, ba:100, rb:0, gb:0, bb:0}) ;

EKA+ :)




2006/11/30, dan <[EMAIL PROTECTED]>:


Hi guys
Im using the setRGB command to change a color of a  movieclip to black
Now...
How do I change it back to its orig color?

10x d
dan


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

2006-11-30 Thread eric dolecki

http://www.organicflash.com/forum/viewtopic.php?t=1034&sid=99ae72e3376962eb1f82d908bfb16785

try that link on for size.

- eric

On 11/30/06, dan <[EMAIL PROTECTED]> wrote:


Hi guys
Im using the setRGB command to change a color of a  movieclip to black
Now...
How do I change it back to its orig color?

10x d
dan


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

2006-11-30 Thread R�kos Attila

You already posted this question few days ago and I answered it for
you. If you did not understand something in the answer or had problems
during putting it to practice, let it know and I'm sure you will get
further explanation (from me or from somobody else).

 Attila

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

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


[Flashcoders] setRGB question

2006-11-30 Thread dan
Hi guys 
Im using the setRGB command to change a color of a  movieclip to black
Now...
How do I change it back to its orig color?

10x d
dan


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

2006-11-30 Thread Mick G

I'm sure I've used setInterval at least a dozen times in eyeblaster
OTP/banners and don't recall ever having an issue. As for eyeblaster in
general, I'm so glad I don't have to touch that damn thing any more ;)


On 11/30/06, Stephen Ford <[EMAIL PROTECTED]> wrote:


Using setInterval in a flashmovie that is loaded into an eyeblaster
content management system.

The movie is an over the page advertisement and apparently causes issues
with IE (if using setInterval) because eyeblaster puts the ad onto the web
page with a transparent window mode.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] RE: setInterval and IE

2006-11-30 Thread Stephen Ford
Using setInterval in a flashmovie that is loaded into an eyeblaster content 
management system.
 
The movie is an over the page advertisement and apparently causes issues with 
IE (if using setInterval) because eyeblaster puts the ad onto the web page with 
a transparent window mode.
 ___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [OT] SCM/Project management tool

2006-11-30 Thread Marcelo de Moraes Serpa

Hello Ian,

Man, it was a real pain to get this trac thing to work, even though they
claim the installation to be "easy". However I've got *almost* everything
set up and working already :)

As for the automation of development and deployment processes:

* To deploy the app on the production server, I'm thinking about using
Capistrano;
* On my development machine, I'm using ANT for the compiling and
unit-testing processes.

Here how it would work:

* I have a work dir for the project on my dev. machine
* I develop the flash app, run the ant task to test (unit-tests) and compile
it
* The ant task also copies the compiled swfs to their respective locations
on the back-end part of the project

I then impact my changes to the SVN server. Then, on the production server,
Capistrano gets the last trunk revision of the SVN server and gracefully
deploys it :)

Marcelo.

On 11/29/06, Ian Thomas <[EMAIL PROTECTED]> wrote:


Hi Chris,
  It entirely depends on the project. There's an optional FTP task
(requires some extra libs) that comes with Ant which we use for simple
file uploads. Off the top of my head, we've used combinations of:

- hand-written calls to SVN (i.e. using the exec task) to update and to
tag
- writing/reading of .properties files (to maintain build numbers
etc.) using the property task
- the optional FTP task
- the Zip task for creating single-file packages (to, for example,
send a server install/distribution to a client)
- integration with NSIS (more exec tasks) to build Windows installers
(for Flash projectors)
- even, sometimes, simple copies across Windows/Samba fileshares for
deployment

In the past we've written our own extensions to Ant to make some of
the tasks much simpler in Ant syntax; but over time (as Ant has
developed) we moved away from that.

At the place I worked four or five years ago we had a lot more
integration on the server side; e.g. you checked in your shared
classes and a hook (in CVS, in those days) fired off a server-side
test suite and a rebuild of the API documentation based on those
classes; but we've not had a need (yet!) for that here.

Cheers.
   Ian


On 11/29/06, Chris Hill <[EMAIL PROTECTED]> wrote:
> I'm really curious how you install your apps to the server using ant. We
> currently use svn update for some of our staging stuff. Which tasks do
> you use to install/deploy? I'd like to see something that would
> automatically synchronize via ftp in ant but I never thought doing
> something like that would work.
>
> Thanks
> 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


RE: [Flashcoders] setInterval and IE ...

2006-11-30 Thread Sander van Surksum
What kind of problems do you have?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ben
Smeets
Sent: donderdag 30 november 2006 10:40
To: Flashcoders mailing list
Subject: RE: [Flashcoders] setInterval and IE ...


Nope, using them all the time, but no problems whatsoever. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stephen
Ford
Sent: donderdag 30 november 2006 10:00
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] setInterval and IE ...

Has anyone ever experienced any problems with using setIntervals in IE,
both with window mode of transparent and without any window mode
(normal) ?
 
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
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] >> LoadVars+php

2006-11-30 Thread Alexander Farber

On 11/20/06, Andrea Maran <[EMAIL PROTECTED]> wrote:

> PHP : ip.php
>  $vars; ?>


And don't forget the X-Forwarded-For inserted by some proxies (Squid)

Regards
Alex

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

2006-11-30 Thread Ben Smeets
Nope, using them all the time, but no problems whatsoever. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stephen
Ford
Sent: donderdag 30 november 2006 10:00
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] setInterval and IE ...

Has anyone ever experienced any problems with using setIntervals in IE,
both with window mode of transparent and without any window mode
(normal) ?
 
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


[Flashcoders] setInterval and IE ...

2006-11-30 Thread Stephen Ford
Has anyone ever experienced any problems with using setIntervals in IE, both 
with window mode of transparent and without any window mode (normal) ?
 
Thanks,
Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-30 Thread Rasmus
I see your point. Loading the thumbnails in a zip is definetly better  
than loading them individually..


In my case the thumbnails have to be loaded before the user is able  
to interact with the site anyway.


Still, some kind of advanced background loading is what I'm looking  
for, but that's probably another thread..


- Rasmus

* * *


Claus Wahlers kirjoitti 30.11.2006 kello 11.47:


Rasmus wrote:

Ok.. But what if you have around 100-200 files, let's say external  
JPG's. Wouldn't the zip file become huge?
The reason I'm asking is, I'm making a photographers portfolio  
where the idea is to load thumbnails first - then start loading  
the high-res pictures in the background. when I need a file ASAP  
(..to display it to the user) I just bump it to the top of the  
loadQueue..

Or is something like this already built into AS 3?


You MAY have a point there.

Although, browsers usually support two simultaneous HTTP  
connections so you could just load the hires image while the  
thumbnail zip is still loading. The disadvantage is that the hires  
images loads slower (probably at half speed).


However, zipping thumbnails has the big advantage that you save a  
lot of overhead. 200 successive GET requests are no fun. Loading a  
zip is way faster as you only need to do one request to the server.  
And with FZip you have access to files while the zip is still loading.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Loading library movie clips sequentially? Best way to do this?

2006-11-30 Thread Claus Wahlers

Rasmus wrote:

Ok.. But what if you have around 100-200 files, let's say external 
JPG's. Wouldn't the zip file become huge?


The reason I'm asking is, I'm making a photographers portfolio where the 
idea is to load thumbnails first - then start loading the high-res 
pictures in the background. when I need a file ASAP (..to display it to 
the user) I just bump it to the top of the loadQueue..


Or is something like this already built into AS 3?


You MAY have a point there.

Although, browsers usually support two simultaneous HTTP connections so 
you could just load the hires image while the thumbnail zip is still 
loading. The disadvantage is that the hires images loads slower 
(probably at half speed).


However, zipping thumbnails has the big advantage that you save a lot of 
overhead. 200 successive GET requests are no fun. Loading a zip is way 
faster as you only need to do one request to the server. And with FZip 
you have access to files while the zip is still loading.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Loading library movie clips sequentially? Best way to do this?

2006-11-30 Thread Rasmus
Ok.. But what if you have around 100-200 files, let's say external  
JPG's. Wouldn't the zip file become huge?


The reason I'm asking is, I'm making a photographers portfolio where  
the idea is to load thumbnails first - then start loading the high- 
res pictures in the background. when I need a file ASAP (..to display  
it to the user) I just bump it to the top of the loadQueue..


Or is something like this already built into AS 3?

- Rasmus

* * *


Claus Wahlers kirjoitti 30.11.2006 kello 4.19:



I've found that LoadQueueManager is excellent for loading multiple  
external files in sequence.. It also gives you the possibility to  
pause loading, rearrange loading order etc. etc.

http://blog.bittube.com/2006/10/27/loadqueuemanager-update/
Hope to see an AS 3 version of this soon!


For AS3 i'd recommend to just zip your assets and load that zip  
directly into Flash. No more annoying loading queues.

http://codeazur.com.br/lab/fzip/

I've also started working on a low/midlevel AS3 HTTP library, that  
you could use to utilize persistant connections and pipelining over  
HTTP 1.1.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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