[Flashcoders] My swap function does not work

2006-07-24 Thread Alberto Florentin
code

class Utilities {
public static function swap(o1:Object, o2:Object) {
var tmp:Object=o1;
o1=o2;
o2=tmp;
}
// etc
}
/code
Somewhere in my code:
code
function aFunction(A:aType, B:aType) {
// ...
if (/*some condition*/)
Utilities.swap(A, B);
// ...
}
/code
But nothing happens.  A and B are still the same objects.

Must be missing something...

Alberto

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] My swap function does not work

2006-07-24 Thread Hans Wichman

Hi,
you cannot reassign the objects like you do in your method body.
Reassign parameter values is a bad idea anyway i think, but assume you have:
var a = myObj1;
var b = myObj2;
Utilities.swap (a,b);

the swap function receives a copy of the reference to a and b.
You reassign the copy, and exit the method.
(not entirely sure about this explanation though :-p).

Compare it with:
var a= null;
fill(a);
trace(a);

where fill is function fill (o1:object) { o1 = new Array(); }

the trace will show null.

You need to wrap the objects in another object in order to accomplish what
you want.
For example:
util.swap ({a:myObj1, b:myObj2});

with
  public static function swap(ab:Object) {
  var tmp:Object=ab.a;
  ab.a=ab.b;
  ab.b=tmp;
  }

greetz
Hans



On 7/24/06, Alberto Florentin [EMAIL PROTECTED] wrote:


code

class Utilities {
   public static function swap(o1:Object, o2:Object) {
   var tmp:Object=o1;
   o1=o2;
   o2=tmp;
   }
   // etc
}
/code
Somewhere in my code:
code
function aFunction(A:aType, B:aType) {
   // ...
   if (/*some condition*/)
   Utilities.swap(A, B);
   // ...
}
/code
But nothing happens.  A and B are still the same objects.

Must be missing something...

Alberto

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

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


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

2006-07-24 Thread Hans Wichman

Hi Natalia,
that sounds like you are drawing lines in the wrong direction at some point.

If you remove the fill of the mask, and define the line type to be a visible
linetype, do you see any straight lines where they shouldn't be?
Bit hard to explain but it will look like a puzzle piece has 2 sidetypes at
the same time: one straight and one curved.

greetz
JC

On 7/24/06, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:


Thank you, it gives some ideas but it does not help to solve my problem.
It
looks if mask has curve side with direction into her center setMask ignore
this side and shows this side as a straight line.


2006/7/24, John Grden [EMAIL PROTECTED]:

 Here's a working demo version of what you're trying to do:

 http://www.rockonflash.com/demos/ListFiles.php?path=./VideoJigsawPuzzle/

 The locking code isn't something that's in there,  nor is special
piece
 creation, but it uses bitmapdata object, and the peices are
 clickable.  It's
 using external FLV's etc.

 hth,

 JG

 On 7/23/06, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:
 
  May I sent fla to your mail?
 
  2006/7/23, Hans Wichman [EMAIL PROTECTED]:
  
   Hi,
   what exactly do you mean, it has a config different from the mask
 shape?
   The only thing that seems 'off' to me is the starting index in the
 mask
   sides, which starts with 1 instead of zero, but that might be
 perfectly
  ok
   depending on how you built the array.
  
   Could you show a screendump of what you describe?
  
   greetz
   Hans
  
  
   On 7/23/06, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:
   
I am trying to go on this way step by step and and met something
 that
  I
cannot understand. Maybe anybody can help. I created pieces of
 puzzle.
Each
puzzle contain mask that I draw with Drawing API on one level. I
  checked
it
and it creates well. Then I attach picture on another layer. I see
 now
mask
and picture. All is correct. I say pic.setMask(mask) after that
  picture
   is
masked but it has configuration that is different from mask shape.
   
   
   
function drawPattern(linkageID, target, clipName, depth, x, y,
  cur_row,
cur_column):MovieClip {
   
   var r=partW*0.15;
   
   var mc:MovieClip = target.createEmptyMovieClip
(clipName,
depth);
   
   mc._x = x;
   
   mc._y = y;
   
   maskX=(partW*cur_column);
   
   maskY=(partH*cur_row);
   
   var mask:MovieClip = mc.createEmptyMovieClip(mask,
2);
   
   var pic:MovieClip=mc.attachMovie(linkageID,pic,1);
   
   pic._x=0;
   
   pic._y=0;
   
   mask_sides=sides[cur_column][cur_row];
   
   mask.lineStyle(undefined, 0x0, 100);
   
   mask.moveTo(maskX, maskY);
   
   mask.beginFill(0x0, 100);
   
  
drawSideV(mask,mask._xpen,mask._ypen,mask_sides[1]*r,1);
   
  
drawSideG(mask,mask._xpen,mask._ypen,mask_sides[2]*r,1);
   
  
drawSideV(mask,mask._xpen,mask._ypen,mask_sides[3]*r,-1);
   
  
drawSideG(mask,mask._xpen,mask._ypen,mask_sides[4]*r,-1);
   
   mask.endFill();
   
   pic.setMask(mask);
   
   return mc;
   
}
   
   
   
function tiler (linkageID){
   
   depthCount=1;
   
   for (var j=0;jcolumn;j++){
   
   for(var i=0;irow;i++){
   
   
   
   
  
 

part=drawPattern(linkageID,this,part+j+_+i,depthCount,stageX,stageY,i,j);
   
   depthCount++;
   
   activity(part.mask);
   
   }
   
   }
   
}
   
   
tiler(pic);
   
Thanks a lot for help.
   
   
   
   
   
2006/7/16, Hans Wichman [EMAIL PROTECTED]:

 Hi Natalia,
 you can find it here:

 http://www.google.nl/search?hl=nlq=jigsaw+puzzle+flashcodersmeta=

 and


   
  
 

http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg17822.html


 Yes its possible.

 greetz
 Hans


 On 7/16/06, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:
 
  Thank you, Guntur.
  I can not find your thread in the archive. Do you have this
   algorithm
or

  any
  basic fla? It would be very helpful. Drawing api is clear for
 one
object
  but
  creating many puzzles looks fantastic. Is it possible?
  Natalia
 
 
  2006/7/16, Guntur N. Sarwohadi  [EMAIL PROTECTED]:
  
   Natalia,
  
   You can search the archive and find recent threads concering
   jigsaw
  puzzle
   algorithm. In fact, thats the thread I started.. that's why
I
  (and
 Hans)
   know it's there ^_^
  
   But to answer you question...
  
   1. flash 8 has provided a bitmapData class, it's really good
handling
   bitmaps so you can use the 

Re: [Flashcoders] (no subject)

2006-07-24 Thread Adrian Park

Nice!

On 7/23/06, Julian 'Julik' Tarkhanov [EMAIL PROTECTED] wrote:



On 6-jul-2006, at 11:27, Adrian Park wrote:

 I encountered this strange quirk recently as well. I found the most
 reliable
 solution is to duplicate your project folder, open and recompile
 from that
 folder, close and continue working from your original folder and
 everything
 is fine (for a while)!

 No amount of deleting ASO cache solves it (in fact, some say it
 compounds
 the problem).

This happens when you use the star  import construct:

import some.quirky.namespace.* // will reimport some classes,
sometimes, depending on phases of the moon

The compiler goes bonkers over that. If you want to ruin it to pieces
and see it crash and burn, do this:

import FP8.*

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

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


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

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


[Flashcoders] From getPixel to colorMatrix

2006-07-24 Thread Ricardo Sánchez

Ok, what I'm trying to do is getting the color of some pixels of an image
and attachMovieClips tinted as those pixels.

I can read the color and attach the clips with that color. But I would like
the mcs not to be in that plain color but being a little tinted in that
color so they keep the original image underneath the color.

I think I'll have to use colorMatrixFilter, but I don't know how to get the
values from getPixel to the colorMatrix.

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

2006-07-24 Thread jcarlos

I think that there is time and occasion for each line of thought

If you only want a serie of movements in time the solution proposed by Zeh 
is great and I tested it and it works fine, better would it be if he upgrade 
them to AS 2.0 and AS 3.0 -)


But that are projects where we want some decision logic tree and solutions 
like those from Marty and Gerry seems more appropriate, in fact now that I 
begin to see the the problem clearer


What I´d like to have to some suggestions is not to use some package like 
animationpackage ( it is fine the suggestion from marcelo serpa and I´m 
using it too) but as a provocative study matter how to develop one simple 
framework in terms I´ve thought first  ( please excuse me if  I´m tin the 
non-sense field here)


From the framework´s user point of view he would only push Animation 

objects in some tree structure.

and I begin wondering about to use some TREE to represent it where the nodes 
at the same level would be the Animation objects to run at the same time 
and going to low level the animation following the sequence from that node


At first sight ( just exploring ideas) the Animation Class would have as 
properties


the Object to be animated
the desired Actions (Tween/Transition etc) Array to be applied to the 
Object

Null/Child  Animation Objects Array

The logic I´d like to implement would

the root object starts its job and when finished fire all ( if any ) its 
children nodes asynchronously and each node would wait the effect end 
before going down into low leves


Does it maky sense ? -)

João Carlos


- Original Message - 
From: Martin Wood [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, July 23, 2006 6:29 PM
Subject: Re: [Flashcoders] sequential tweens ?


Martin, do not take this personally, I don't mean to sound rude or 
anything, I'm sorry in advance if I do, and your code totally makes 
logical sense and it's 100% correct, but... WHY would someone need so 
much code just to produce sequential tweenings? A bunch of specialized 
functions just to make it work? And then suppose he has an slightly 
different animation he wants to do at the same time, will he need new 
functions, or add parameters to those functions, and so long and so 
forth? Why something so convoluted for something so simple? Simply 
because the tweening doesn't support delays? :(


don't worry i don't take it personally its only programming :)

To me it doesn't seem complicated, just a couple of functions, nothing 
special in either function.


If it doesn't fit the requirements, so be it.

Sorry for the rant, but really, there's a moment you have to use the best 
tool for the task - and I don't mean only the easiest. The tweening 
classes included on Flash are cool and all that, but they're too basic, 
too raw. Why you'd need dozens of lines just to do something that can be 
done with one single line in a pretty straightforward way is beyond me. 
Most of the times I have to build sites, there's so much having to be 
animated correctly that if I resorted to functions and complex callbacks 
any time I needed some kind of sequence or delay, my code would be a 
complete mess and the sequence would be unmaintainable. Now, with delays 
it's as easy as it gets. It's easier to read, debug, write, change, etc.


Don't be sorry, if it upsets you then best to let it out, bottling things 
up isn't good for the soul :)


Anyway, to consider if its easier to change then it really depends on how 
you want to change it. In some cases yes its undoubtedly easier, in other 
cases i think it could be harder but I don't know the API of your tweening 
classes so I cant say.


What if i wanted to trigger something when each tween ends? What if i want 
to perform an action depending on which tween has ended?


Each solution has its pro's and con's so its worth understanding the 
options and the trade offs.


Like i said i don't find functions or callbacks complicated, its the bread 
and butter of programming. The code i showed is an idiom that I've used on 
a number of occasions, not just for sequencing animations but for various 
things that need treating in a consequential manner and aren't all 
necessarily time based.


My advice is to still use another solution. MC Tween, laco's, Fuse Kit, 
it doesn't matter. Any of them will do the trick.


Mine too :)

I don't know any of the other animation kits so I couldn't vouch for their 
ease of use, size when installed or performance, but I've heard good 
things about those you mention.


anyway..shop around, its always the way to get the best deal and the 
solution that fits your needs.


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

FW: [Flashcoders] removing background from list component

2006-07-24 Thread Andy Stone

Actually, this is better...

This will only set the backgroundColor, the previous function would set the
rollover states as well. 

var alpha = 20;
var color = 0xFF;
//
_global.styles.ScrollSelectList.backgroundColor = null;
mx.controls.listclasses.SelectableRow.prototype.drawRowFill =
function(mc:MovieClip, newClr:Number):Void  {
mc.clear();
if (newClr == null) {
mc.beginFill(color, alpha);
} else {
mc.beginFill(newClr);
}
mc.drawRect(1, 0, this.__width, this.__height);
mc.endFill();
mc._width = this.__width;
mc._height = this.__height;
};



Sorry if this message was posted twice I think it was returned Friday. -Andy



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Stone
Sent: Friday, July 21, 2006 3:41 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] removing background from list component


The drawRowFill function doesn't have a _alpha parameter. I hope this will
solve your problem, if haven't figured it out yet. -Andy


var alpha = 0;
var color = 0xff;
//
_global.styles.ScrollSelectList.backgroundColor = null;
mx.controls.listclasses.SelectableRow.prototype.drawRowFill =
function(mc:MovieClip, newClr:Number):Void  {
newClr = color;
mc.clear();
mc.beginFill(newClr, alpha);
mc.drawRect(1, 0, this.__width, this.__height);
mc.endFill();
mc._width = this.__width;
mc._height = this.__height;
};



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rich
Rodecker
Sent: Wednesday, July 19, 2006 3:51 PM
To: Flashcoders mailing list
Subject: [Flashcoders] removing background from list component

ok, ive searched everywhere for this, and can't find a solution that
works.  I jsut want to hide the background of a list component. making
it semi-transparent would be even better, but at this point take
whatever.

i've tried:

_global.styles.ScrollSelectList.backgroundColor = undefined;
_global.styles.ScrollSelectList.setStyle(backgroundColor,
transparent);

these remove the background, but also disable interactivity.

 playlist_lb.border_mc.visible = false;

i read that this should work, but dont get any results.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


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

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


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

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


[Flashcoders] Mosaic

2006-07-24 Thread kariminal
Hi All!.. 

Just wondering if anyone has a script to do a mosaic blur on an image?... 


- karim

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

2006-07-24 Thread Jose Maria Barros

Hi,

i have the xml:

root
   pic
   imagehttp://www.kirupa.com/developer/mx2004/pg/kresge.jpg /image
   imagephttp://www.kirupa.com/developer/mx2004/pg/medialab.jpg
/imagep
   /pic
/root

in flash, the variable link that holded the image node:

newBut.link = mainMenus[i].firstChild.firstChild.nodeValue;

worked..welll...


now i want to have other variable..that holds the imagep node..normally it
would write:

newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;


But it says is undefined...hows that ?

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

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


Re: [Flashcoders] Mosaic

2006-07-24 Thread David Rorex

On 7/24/06, kariminal [EMAIL PROTECTED] wrote:

Hi All!..

Just wondering if anyone has a script to do a mosaic blur on an image?...


- karim



There are 2 ways I can think of:
1. Easy way: draw the image onto a bitmapdata, scale it smaller
WITHOUT using smoothing, then scale it back up to the original size.
Do multiple times, but in steps, like first scale it to 50%, then 25%,
then 12.5%, etc
2. Harder way: Manually calculate the mosaic yourself (read in each
n'th pixel from source image, and draw a n-by-n rectangle in the
destination image). This will most likely be too slow in flash 8 for
any moderate sized image.

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

2006-07-24 Thread Mike Boutin
My not use childNodes? 
mainMenu.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;

mainMenu.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;


Jose Maria Barros wrote:

Hi,

i have the xml:

root
   pic
   imagehttp://www.kirupa.com/developer/mx2004/pg/kresge.jpg /image
   imagephttp://www.kirupa.com/developer/mx2004/pg/medialab.jpg
/imagep
   /pic
/root

in flash, the variable link that holded the image node:

newBut.link = mainMenus[i].firstChild.firstChild.nodeValue;

worked..welll...


now i want to have other variable..that holds the imagep 
node..normally it

would write:

newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;


But it says is undefined...hows that ?

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

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





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

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


[Flashcoders] Form Help Needed, Please - STILL NEED HELP

2006-07-24 Thread Loren R. Elks

Come on folks.  I know someone can help me with this.  Please.

Sincerely,
Loren

-Original Message-
From: Loren R. Elks 
Sent: Thursday, July 20, 2006 10:21 AM
To: 'flashcoders@chattyfig.figleaf.com'
Subject: Form Help Needed, Please


Hi:

I've got a form that just does not send.  Can someone please look at my
code?

I placed the FLA, SWF, HTML and ASP files in a zip located at:
www.d-mag.org/testform/sent_out.zip

I found out that I'm going to have to use ASP, as the client's webhost
does not support PHP.

Could you also email reply back to me directly as well?
[EMAIL PROTECTED] 

Thank you,
Loren
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Form Help Needed, Please - STILL NEED HELP

2006-07-24 Thread Mike Boutin
You could try using loadVars and return a status in xml rather than 
loadVariablesNum...


var myVars:LoadVars = new LoadVars;
var xml_results:XML = new XML();
xml_results.ignoreWhite = true;
xml_results.onLoad = function(success:Boolean){
if (success){

} else {

}
}
myVars.sendAndLoad(yourfile.asp, xml_results, POST);


Loren R. Elks wrote:

Come on folks.  I know someone can help me with this.  Please.

Sincerely,
Loren

-Original Message-
From: Loren R. Elks 
Sent: Thursday, July 20, 2006 10:21 AM

To: 'flashcoders@chattyfig.figleaf.com'
Subject: Form Help Needed, Please


Hi:

I've got a form that just does not send.  Can someone please look at my
code?

I placed the FLA, SWF, HTML and ASP files in a zip located at:
www.d-mag.org/testform/sent_out.zip

I found out that I'm going to have to use ASP, as the client's webhost
does not support PHP.

Could you also email reply back to me directly as well?
[EMAIL PROTECTED] 


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

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





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

2006-07-24 Thread Jose Maria Barros

sorry...i didnt explained the whole thing..

the thing is that flash duplicates one button mc with all the elements from
the xml...and makes a loop.
Every button have a different link for a different pictures...

But the first one works good..(newBut.link = mainMenus[i].firstChild
.firstChild.nodeValue):

root
   pic
 this one works..
imagehttp://www.kirupa.com/developer/mx2004/pg/kresge.jpg
/image
   imagep http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
/imagep
   /pic
/root

now the second..when i try to use this :

newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;

to catch this:

root
   pic
image http://www.kirupa.com/developer/mx2004/pg/kresge.jpg /image
   imagep http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
/imagep
   /pic
/root

On 7/24/06, Mike Boutin [EMAIL PROTECTED] wrote:


My not use childNodes?
mainMenu.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
mainMenu.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;


Jose Maria Barros wrote:
 Hi,

 i have the xml:

 root
pic
imagehttp://www.kirupa.com/developer/mx2004/pg/kresge.jpg/image
imagephttp://www.kirupa.com/developer/mx2004/pg/medialab.jpg
 /imagep
/pic
 /root

 in flash, the variable link that holded the image node:

 newBut.link = mainMenus[i].firstChild.firstChild.nodeValue;

 worked..welll...


 now i want to have other variable..that holds the imagep
 node..normally it
 would write:

 newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;


 But it says is undefined...hows that ?

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

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




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

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


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

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


Re: [Flashcoders] XML access

2006-07-24 Thread Jose Maria Barros

ups..this:

root
   pic
   image http://www.kirupa.com/developer/mx2004/pg/kresge.jpg
/image
   this dont work..
imagephttp://www.kirupa.com/developer/mx2004/pg/medialab.jpg
/imagep
   /pic
/root





On 7/24/06, Jose Maria Barros [EMAIL PROTECTED] wrote:


sorry...i didnt explained the whole thing..

the thing is that flash duplicates one button mc with all the elements
from the xml...and makes a loop.
Every button have a different link for a different pictures...

But the first one works good..(newBut.link = mainMenus[i].firstChild
.firstChild.nodeValue):

root
pic
  this one works.. 
imagehttp://www.kirupa.com/developer/mx2004/pg/kresge.jpg
/image

imagep http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
/imagep
/pic
/root

now the second..when i try to use this :


newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;

to catch this:


root
pic
 image http://www.kirupa.com/developer/mx2004/pg/kresge.jpg /image
imagep http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
/imagep
/pic
/root

On 7/24/06, Mike Boutin [EMAIL PROTECTED] wrote:

 My not use childNodes?
 mainMenu.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
 mainMenu.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;


 Jose Maria Barros wrote:
  Hi,
 
  i have the xml:
 
  root
 pic
 imagehttp://www.kirupa.com/developer/mx2004/pg/kresge.jpg/image
 imagephttp://www.kirupa.com/developer/mx2004/pg/medialab.jpg
  /imagep
 /pic
  /root
 
  in flash, the variable link that holded the image node:
 
  newBut.link = mainMenus[i].firstChild.firstChild.nodeValue;
 
  worked..welll...
 
 
  now i want to have other variable..that holds the imagep
  node..normally it
  would write:
 
  newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;
 
 
  But it says is undefined...hows that ?
 
  Thanks..
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 
 

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

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




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

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


Re: [Flashcoders] XML access

2006-07-24 Thread Mike Boutin

Yes you can use it in the same way...

eg. mainMenu[i].childNodes[i].childNodes[0].firstChild.nodeValue;

Jose Maria Barros wrote:

sorry...i didnt explained the whole thing..

the thing is that flash duplicates one button mc with all the elements from
the xml...and makes a loop.
Every button have a different link for a different pictures...

But the first one works good..(newBut.link = mainMenus[i].firstChild
.firstChild.nodeValue):

root
   pic
  this one works..
imagehttp://www.kirupa.com/developer/mx2004/pg/kresge.jpg
/image
   imagep http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
/imagep
   /pic
/root

now the second..when i try to use this :

newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;

to catch this:

root
   pic
image http://www.kirupa.com/developer/mx2004/pg/kresge.jpg /image
   imagep http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
/imagep
   /pic
/root

On 7/24/06, Mike Boutin [EMAIL PROTECTED] wrote:


My not use childNodes?
mainMenu.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
mainMenu.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;


Jose Maria Barros wrote:
 Hi,

 i have the xml:

 root
pic

imagehttp://www.kirupa.com/developer/mx2004/pg/kresge.jpg/image

imagephttp://www.kirupa.com/developer/mx2004/pg/medialab.jpg
 /imagep
/pic
 /root

 in flash, the variable link that holded the image node:

 newBut.link = mainMenus[i].firstChild.firstChild.nodeValue;

 worked..welll...


 now i want to have other variable..that holds the imagep
 node..normally it
 would write:

 newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;


 But it says is undefined...hows that ?

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

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




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

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


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

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





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

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


[Flashcoders] Senior Flash Developer, UK

2006-07-24 Thread Tom McDonnell
// Folks I hope posting about jobs is ok on this list. If not, slap  
my wrist and I won't do it again. I just can't bring myself to call  
up an agency!


dynamic class Job extends YourHorizons
{

public var jobTitle:String = Senior Flash Developer;
public var jobLocation:String = Work From Home in UK;
public var jobDescription:String = We are looking for a talented  
Flash developer, an all rounder with excellent knowledge of AS2.0 OO  
programming, and an keen eye for design.; // NB Yes you'll be really  
good at design AND coding.


public var furtherDetailsUrl:String = http://www.monterosa.co.uk/ 
job_vacancies;


  function Job()
  {
trace(doJob());
  }

  private function doJob():String
  {
var benefits:String = Laptop, phone and broadband;
var salary:String = £35k + benefits;
return Work for Monterosa on compelling, cutting edge, realtime  
projects for TV + salary;

  }

}







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

2006-07-24 Thread Jose Maria Barros

Thanks mate...ive got it:


   newBut.link2 = mainMenus[i].childNodes[1].firstChild.nodeValue;
   newBut.link = mainMenus[i].childNodes[0].firstChild.nodeValue;



On 7/24/06, Mike Boutin [EMAIL PROTECTED] wrote:


Yes you can use it in the same way...

eg. mainMenu[i].childNodes[i].childNodes[0].firstChild.nodeValue;

Jose Maria Barros wrote:
 sorry...i didnt explained the whole thing..

 the thing is that flash duplicates one button mc with all the elements
from
 the xml...and makes a loop.
 Every button have a different link for a different pictures...

 But the first one works good..(newBut.link = mainMenus[i].firstChild
 .firstChild.nodeValue):

 root
pic
   this one works..
 imagehttp://www.kirupa.com/developer/mx2004/pg/kresge.jpg
 /image
imagep http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
 /imagep
/pic
 /root

 now the second..when i try to use this :

 newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;

 to catch this:

 root
pic
 image http://www.kirupa.com/developer/mx2004/pg/kresge.jpg /image
imagep http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
 /imagep
/pic
 /root

 On 7/24/06, Mike Boutin [EMAIL PROTECTED] wrote:

 My not use childNodes?
 mainMenu.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
 mainMenu.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;


 Jose Maria Barros wrote:
  Hi,
 
  i have the xml:
 
  root
 pic
 
 imagehttp://www.kirupa.com/developer/mx2004/pg/kresge.jpg/image
 imagephttp://www.kirupa.com/developer/mx2004/pg/medialab.jpg
  /imagep
 /pic
  /root
 
  in flash, the variable link that holded the image node:
 
  newBut.link = mainMenus[i].firstChild.firstChild.nodeValue;
 
  worked..welll...
 
 
  now i want to have other variable..that holds the imagep
  node..normally it
  would write:
 
  newBut.link2=mainMenus[i].firstChild.firstChild.firstChild.nodeValue;
 
 
  But it says is undefined...hows that ?
 
  Thanks..
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 
 

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

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

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

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




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

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


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

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


Re: [Flashcoders] Flash Remoting Updater

2006-07-24 Thread Jorge Tejada

Hi, I downloades it a long time ago, but I'm pretty sure this works.

On 7/21/06, clark slater [EMAIL PROTECTED] wrote:


At the start of this week we purchased Flash Remoting for integration with
a
client's .NET application. When I went to download the updater from the
Adobe site I found a 404 error (what's up with the whole site anyway,
seems
totally unresponsive and often hangs my browser?!). Five days later
despite
contacting customer support by phone and email we still cannot get Adobe
to
provide access to the updater, or even acknowledge that the updater page
is
down. For $1,000.00 you would expect a timely response. Should have gone
with weborb.

So is there anyone out there who happens to have the updater for the .NET
install of Flash Remoting and is willing to share it?

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

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

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

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

[Flashcoders] Need help with posting to Plateau LMS

2006-07-24 Thread David Brunswick
Hello list I have searched and tried several methods with no success posting
completion status to a plateau LMS with Flash player 8. 
The swf file is called from a wrapper.html

I have tried fscommand on the close button and javascript functions on the
timeline within the flash piece. Does anyone have successful code for the
communication

David Brunswick
Multimedia Developer/OLP Administrator


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

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


RE: [Flashcoders] Need help with posting to Plateau LMS

2006-07-24 Thread Sinead Hogan
Hi,

I have some experience of working with flash content on LMSs. I don't
fully understand your problem however. What close button are you
referring to? The browser close button? 

I did encounter a serious problem trying to ensure flash content on an
LMS had sent all its status/completion data before the page in which it
was embedded got unloaded (usually due to some user/LMS navigation). I
found an IE-only solution which enabled the flash  javascript to hold
up the thread until all flash data had been sucessfully sent. It
involved using showModalDialog to keep an invisible, modal window open
until data sent verification. If this sounds related and you want more
detail just let me know.

Sinead.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Brunswick
Sent: 24 July 2006 13:56
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Need help with posting to Plateau LMS

Hello list I have searched and tried several methods with no success
posting
completion status to a plateau LMS with Flash player 8. 
The swf file is called from a wrapper.html

I have tried fscommand on the close button and javascript functions on
the
timeline within the flash piece. Does anyone have successful code for
the
communication

David Brunswick
Multimedia Developer/OLP Administrator


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

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

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

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


RE: [Flashcoders] Need help with posting to Plateau LMS

2006-07-24 Thread David Brunswick
Sorry for not being so clear. For example the student takes a course(content
object) at the end they will click a close or exit button at that time the
completion status will be sent to the LMS. I have had success in the past
using php or asp as middleware. Now I am dealing with a Plateau LMS I have
found samples for scorm objects although I am using the AICC model.

Within Plateau there is a wrapper.html which is a frame that calls the .swf
file within another frame. Which brings up the other issue of closing the
window.

David Brunswick
Multimedia Developer/OLP Administrator


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sinead Hogan
Sent: Monday, July 24, 2006 3:28 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Need help with posting to Plateau LMS

Hi,

I have some experience of working with flash content on LMSs. I don't
fully understand your problem however. What close button are you
referring to? The browser close button? 

I did encounter a serious problem trying to ensure flash content on an
LMS had sent all its status/completion data before the page in which it
was embedded got unloaded (usually due to some user/LMS navigation). I
found an IE-only solution which enabled the flash  javascript to hold
up the thread until all flash data had been sucessfully sent. It
involved using showModalDialog to keep an invisible, modal window open
until data sent verification. If this sounds related and you want more
detail just let me know.

Sinead.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Brunswick
Sent: 24 July 2006 13:56
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Need help with posting to Plateau LMS

Hello list I have searched and tried several methods with no success
posting
completion status to a plateau LMS with Flash player 8. 
The swf file is called from a wrapper.html

I have tried fscommand on the close button and javascript functions on
the
timeline within the flash piece. Does anyone have successful code for
the
communication

David Brunswick
Multimedia Developer/OLP Administrator


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

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

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

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

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

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


[Flashcoders] drop frame movieclip playback

2006-07-24 Thread August Gresens

Hello

I was wondering about the possible effects of creating a class that would
play back a movie clip by determining the current frame by the amount of
time lapsed. This would be a drop frame style of movieClip playback.

Has anyone tried this? I'm assuming there some kind of inter-frame
compression in Flash MovieClips. If so, I'd imagine that this style of
playback might not work (forcing it to skip frames). Sound sync would be
off, it would probably only work for silent clips, right?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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

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


[FlashCoders] Flash Player Settings

2006-07-24 Thread Dimitrios Bendilas
Hello,

I have a downloadable game made with Flash + Zinc.

Some users told me that when they first run the game the Macromedia Flash 
player settings panel
appears on the screen, asking them permission to store information on local 
storage.

The thing is that I do not use SharedObjects on this project. So it really 
beats me why
this is happening. When does this panel appear? I thought it was only with 
SharedObjects.

How can I make sure it doens't appear?

Thanks,

Dimitrios





Dimitrios Bendilas
Game Designer/Lead Developer
Total Eclipse Games
www.totaleclipsegames.com

Bounty - Special Edition
www.bountythegame.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS3, BitmapData and domain security

2006-07-24 Thread John Dowdell

Paul Neave wrote:

On 22/07/06, John Dowdell [EMAIL PROTECTED] wrote:

If the foreign data acknowledges you (via a policy declaration on
their server), or if your own server proxies that data yourself, then
the ability to get inside that bitmap data is available. 


I don't see the point of restricting access to BitmapData from another
server when all you have to do to get at it is use a proxy script on
your own server.  


True, for most cases. But as Bernard pointed out, the Player can run 
behind someone else's firewall, and is able to access servers not 
available to your server in the open WWW.


That's a lot of the reason for Player security issues: it runs in 
private places, where your server cannot. That's why the data server 
must acknowledge that they accept such requests.


jd





--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, 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] 195 ms versus 57 ms ping time

2006-07-24 Thread Marcelo de Moraes Serpa

Well... I have my flash website hosted outside my country... the ping
average time is 195ms. Another site like mine hosted locally (on my city)
takes an average 57ms to ping. Does the 138ms of difference really makes
difference? Does this justifies changing the host? Do you think I should
search for a local host instead of hosting it outside like I´m doing now?

Please, share your experiences!

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

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


RE: [Flashcoders] 195 ms versus 57 ms ping time

2006-07-24 Thread Bernard Visscher
I depends...
If you're loading a lot of external resources, all calls will have the 195ms
delay and so it will take longer to load the complete site. It also depends
on the audience, if most people who visit this site are abroad they may be
faster then your local hoster.

But most important is speed (if you don't load many external resources). You
could simple test it by uploading a large file and download it. If the over
all speed isn't much slower then a local hoster I don't think it's a real
problem.

Just my 2 cents...

Bernard

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Namens 
 Marcelo de Moraes Serpa
 Verzonden: dinsdag 25 juli 2006 0:53
 Aan: Flashcoders mailing list
 Onderwerp: [Flashcoders] 195 ms versus 57 ms ping time
 
 Well... I have my flash website hosted outside my country... 
 the ping average time is 195ms. Another site like mine hosted 
 locally (on my city) takes an average 57ms to ping. Does the 
 138ms of difference really makes difference? Does this 
 justifies changing the host? Do you think I should search for 
 a local host instead of hosting it outside like I´m doing now?
 
 Please, share your experiences!
 
 Marcelo.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] 195 ms versus 57 ms ping time

2006-07-24 Thread Marcelo de Moraes Serpa

Thanks for sharing your thoughts Bernard ;)

- Marcelo.

On 7/24/06, Bernard Visscher [EMAIL PROTECTED] wrote:


I depends...
If you're loading a lot of external resources, all calls will have the
195ms
delay and so it will take longer to load the complete site. It also
depends
on the audience, if most people who visit this site are abroad they may be
faster then your local hoster.

But most important is speed (if you don't load many external resources).
You
could simple test it by uploading a large file and download it. If the
over
all speed isn't much slower then a local hoster I don't think it's a real
problem.

Just my 2 cents...

Bernard

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Namens
 Marcelo de Moraes Serpa
 Verzonden: dinsdag 25 juli 2006 0:53
 Aan: Flashcoders mailing list
 Onderwerp: [Flashcoders] 195 ms versus 57 ms ping time

 Well... I have my flash website hosted outside my country...
 the ping average time is 195ms. Another site like mine hosted
 locally (on my city) takes an average 57ms to ping. Does the
 138ms of difference really makes difference? Does this
 justifies changing the host? Do you think I should search for
 a local host instead of hosting it outside like I´m doing now?

 Please, share your experiences!

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

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


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

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


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

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


[Flashcoders] as3 and attachmovie

2006-07-24 Thread Carl Welch

I just downloaded the demo of Flash 9 / as3 and I noticed you can't
use attachmovie anymore. I've found some new methods on google but it
seems like the only way I can do it is by using classes. Is there
another way to handle an attachmovie equivilent without using a class
in as3?

thanks.

--
Carl Welch
http://www.carlwelch.com
[EMAIL PROTECTED]
805.403.4819
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] 195 ms versus 57 ms ping time

2006-07-24 Thread Daniel
The latancy really isn't going to create any problems.  Latancy is only 
the amount of time that it takes information to go from one location, to 
another location.  It doesn't actually have much of an effect on how 
quickly a web page will load (at least, not that you will see).  The 
biggest effect on the speed of the website is based on 3 things.  
Bandwidth (both yours and the servers as well as any bottlenecks in 
between), Server quality (a server is just like any other computer.  It 
can only process information so fast.  The better the computer, the 
faster it can push out the information) and traffic (wich will affect 
how much the server has to handle, and how much information is going 
through the pipes).  Latancy has a small effect on how quickly your 
website loads, but its so minimal that you don't even need to worry 
about it in most cases.  Now if your having to deal with very high 
latancy (500+), then you'll notice a difference.  But the difference 
your going to see between 57 and 195 isn't enough to even consider a new 
host IMO.


Daniel



Marcelo de Moraes Serpa wrote:


Well... I have my flash website hosted outside my country... the ping
average time is 195ms. Another site like mine hosted locally (on my city)
takes an average 57ms to ping. Does the 138ms of difference really makes
difference? Does this justifies changing the host? Do you think I should
search for a local host instead of hosting it outside like I´m doing 
now?


Please, share your experiences!

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

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


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

2006-07-24 Thread Mark Winterhalder

Sound sync would be
off, it would probably only work for silent clips, right?


Actually, this is the easiest way to do it. Play some sound on the
timeline, the player will take care of the rest, skipping frames if
necessary. Some users will have problems, though -- the latest player
for Linux, version 7, is famously out of sync.

If you want to do it by script you can use getTimer() to get the
number of milliseconds from when the SWF has started playing and jump
to the frame where it should be.

HTH,
Mark


On 7/24/06, August Gresens [EMAIL PROTECTED] wrote:

Hello

I was wondering about the possible effects of creating a class that would
play back a movie clip by determining the current frame by the amount of
time lapsed. This would be a drop frame style of movieClip playback.

Has anyone tried this? I'm assuming there some kind of inter-frame
compression in Flash MovieClips. If so, I'd imagine that this style of
playback might not work (forcing it to skip frames). Sound sync would be
off, it would probably only work for silent clips, right?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

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

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


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

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


[Flashcoders] Attention Recursion Speed Experts

2006-07-24 Thread Steven Sacks | BLITZ
Is there a way to make this script any faster?

Array.prototype.flatten = function(r) {
  if (!r) r = [];
var l = this.length;
for (var a = 0; a  l; a++) {
  if (this[a].__proto__ != Array.prototype) {
r.push(this[a]);
  } else {
this[a].flatten(r);
}
  }
  return r;
}

This function takes an array and flattens it, meaning any nested arrays
will get flattened into a single array.

Example:
x = [a, b, c, [d, e], f, [g, [h]], [[], i], j];
y = x.flatten();
y  [a,b,c,d,e,f,g,h,i,j]

Issues:

Array.reverse() and Array.unshift() are notoriously slow and any speed
gained from doing a reverse while loop would be lost.

I don't see how this script could be sped up, but I'm not a recursion
expert.  The current speed increases I have are:

1) Single character variable names
2) this.length stored in a variable avoids computation every loop.
3) Most common if true (not a nested array) comes first

I'm not clear which, if either, is faster:

if (x != y) vs if (!(x == y))

That's the only other place I can see a spot for a possible speed
improvement.

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

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


Re: [Flashcoders] Attention Recursion Speed Experts

2006-07-24 Thread Bernard Poulin

I am assuming this is for AS2 - right?
If you want speed that probably means you are dealing with a lot of data(?)

1- What is the typical recursion level?
2- What is the typical number of items?
3- What is the typical size of sub arrays?

In general making a function call is not fast at all. Better iterate than
recurse.

B.


2006/7/25, Steven Sacks | BLITZ [EMAIL PROTECTED]:


Is there a way to make this script any faster?

Array.prototype.flatten = function(r) {
if (!r) r = [];
   var l = this.length;
   for (var a = 0; a  l; a++) {
 if (this[a].__proto__ != Array.prototype) {
   r.push(this[a]);
 } else {
   this[a].flatten(r);
   }
}
return r;
}

This function takes an array and flattens it, meaning any nested arrays
will get flattened into a single array.

Example:
x = [a, b, c, [d, e], f, [g, [h]], [[], i], j];
y = x.flatten();
y  [a,b,c,d,e,f,g,h,i,j]

Issues:

Array.reverse() and Array.unshift() are notoriously slow and any speed
gained from doing a reverse while loop would be lost.

I don't see how this script could be sped up, but I'm not a recursion
expert.  The current speed increases I have are:

1) Single character variable names
2) this.length stored in a variable avoids computation every loop.
3) Most common if true (not a nested array) comes first

I'm not clear which, if either, is faster:

if (x != y) vs if (!(x == y))

That's the only other place I can see a spot for a possible speed
improvement.

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] Attention Recursion Speed Experts

2006-07-24 Thread Steven Sacks | BLITZ
AS2 is no faster than AS1 (in some ways it is slower).  Strict typing
has no effect on speed.  In addition, this is not AS2 syntax, because
I'm not extending Array, I'm plugging directly into its prototype at the
moment.

It is iterating.  It still needs to iterate through all nested arrays
using the same method, which means recursion.


BLITZ | Steven Sacks - 310-551-0200 x209

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Bernard Poulin
 Sent: Monday, July 24, 2006 9:56 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Attention Recursion  Speed Experts
 
  I am assuming this is for AS2 - right?
 If you want speed that probably means you are dealing with a lot of
 data(?)
 
 1- What is the typical recursion level?
 2- What is the typical number of items?
 3- What is the typical size of sub arrays?
 
 In general making a function call is not fast at all. Better iterate
than
 recurse.
 
 B.
 
 
 2006/7/25, Steven Sacks | BLITZ [EMAIL PROTECTED]:
 
  Is there a way to make this script any faster?
 
  Array.prototype.flatten = function(r) {
  if (!r) r = [];
 var l = this.length;
 for (var a = 0; a  l; a++) {
   if (this[a].__proto__ != Array.prototype) {
 r.push(this[a]);
   } else {
 this[a].flatten(r);
 }
  }
  return r;
  }
 
  This function takes an array and flattens it, meaning any nested
arrays
  will get flattened into a single array.
 
  Example:
  x = [a, b, c, [d, e], f, [g, [h]], [[], i], j];
  y = x.flatten();
  y  [a,b,c,d,e,f,g,h,i,j]
 
  Issues:
 
  Array.reverse() and Array.unshift() are notoriously slow and any
speed
  gained from doing a reverse while loop would be lost.
 
  I don't see how this script could be sped up, but I'm not a
recursion
  expert.  The current speed increases I have are:
 
  1) Single character variable names
  2) this.length stored in a variable avoids computation every loop.
  3) Most common if true (not a nested array) comes first
 
  I'm not clear which, if either, is faster:
 
  if (x != y) vs if (!(x == y))
 
  That's the only other place I can see a spot for a possible speed
  improvement.
 
  Thanks!
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] tree component delay opening

2006-07-24 Thread Gadi Srebnik
Hi coders, 

Using Flex 2 tree component, is there any way when I click the small
triangles that opens subcategories, 

to indicate clicking on triangle BUT actually opening it only after another
event occurs?

 

Thanks, 

gadi

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

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


[Flashcoders] Key.CAPSLOCK woes.

2006-07-24 Thread Daniel Barber
Long time Flasher with the discovery of a simple issue that appears  
to be a show stopper. I have never had any issues with keyboard  
input, but can't seem to detect whether the caps lock key is held  
down. These two trace actions consistently return the same Boolean  
value based on the toggled state of the caps lock key:


function onEnterFrame() {
trace(Key.isDown(Key.CAPSLOCK));
trace(Key.isToggled(Key.CAPSLOCK));
}

I can only test on the Mac at the moment, but when I test the SWF in  
the Flash debug player or through the Flash plugin I get the same  
results. Both of those trace actions return true if the key is  
toggled, and false if it is not. Even more frustrating is that the  
caps lock key does not trigger a Key.onKeyUp event when it is  
released – if it did it would be possible to workaround the problem.


Has anyone else encountered this problem or discovered a solution? Is  
this a Mac only bug? Does anyone know if screentime or an equivalent  
application can workaround not being able to accurately detect key  
events with the caps lock key?


Thanks.

Daniel Barber___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Attention Recursion Speed Experts

2006-07-24 Thread Mark Winterhalder

On 7/25/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:

It is iterating.  It still needs to iterate through all nested arrays
using the same method, which means recursion.


Yes, but function calls aren't the only way to do recursion.

What you're doing is essentially like a depth-first search, which can
be done with a stack.

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

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