Re: [Flashcoders] animating into bitmaps data, recording stop points

2008-04-10 Thread Mick G
I have this data available for each stop point so re-creating the bitmap
isn't a big deal, but I am concerned with the lag in doing this because the
animation is script generated and very complex i.e. it may take a few (or up
to 5 seconds) to re-generate the data for each of these frames. The data at
times is an array of 1000+ lines or pixel data.

I'll have to test and see if this can work.


On Wed, Apr 9, 2008 at 11:44 AM, Glen Pike [EMAIL PROTECTED]
wrote:

 Maybe record your vector data / changes each frame, or similar, so that
 you can redraw the bitmaps if necessary.

 It's almost like an undo function;  So for each bitmap you render, you
 would store the commands to draw it.
 You can make this even more compact by just storing the changes since the
 last render, although if you are storing loads of frames you may want to
 create a keyframe every so often that stores all the information needed to
 draw a bitmap without relying on previous frames.  The keyframe thing is
 used in MPEG and other similar compression methods.

 Then you can render the bitmaps as normal, but only store the most recent.
  If you want to step backwards, you use the vector info to redraw the
 bitmap.

 Mick G wrote:

  I'm working on an animation of sorts that uses the Flash drawing api to
  draw
  into bitmapdata.
 
  At various intervals throughout the animation I want to record
  screenshots
  and be able to step back and view these various stages of the animation.
 
  The only way I can think of achieving this is creating copies of the
  bitmap
  data in memory and re-loading them into the scene as needed. Problem
  here is
  it would be very memory intensive if I want to record 20 or more
  screenshots.
 
  Any other suggestions?
 
  I could possibly re-generate the animation at the recorded stop-point
  each
  time but that would take possibly a few seconds to re-create the bitmap
  for
  each point.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 

 --

 Glen Pike
 01736 759321
 www.glenpike.co.uk http://www.glenpike.co.uk

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Detection Kit and Express install for flash player 9?

2008-04-10 Thread Vlado Krempl
Hello everyone!
{If this posting has been done before I apologise}

Regarding the Adobe Flash® Player Detection Kit and express Install.

Is it actually possible to create a webpage that will detect which player 
version the viewer has and offer a express install without having to leave
the webpage and not have to restart there computer. (For flash player 9!!)

It seems there are a hell of alot of people out there still with flash player 8 
or below!!

Thankyou for any replies.

Cheers,

vlado krempl
sydney, australia

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] movement

2008-04-10 Thread Lehr, Theodore M (N-SGIS)
No - on a PC viewing it in IE



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Rogers
Sent: Tuesday, April 08, 2008 4:13 PM
To: Flash Coders List
Subject: Re: [Flashcoders] movement

are you using safari?

On Apr 8, 2008, at 2:41 PM, Lehr, Theodore M (N-SGIS) wrote:

 I have a mc I am moving via AS - it moves at a fine pace in the player
 inside flash - but when I view it via the browser, it really slows
 down... why would this happen?



 ted

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Problem when applying dynamic mask [AS3]

2008-04-10 Thread Stuart (FunkDaWeb)
Hi i have another problem this time its to do with masking an object, here is 
the code that creates a movieclip then loads an image into to...

bannerArea = newMovieClip(0xff, 0, 0, 420, 173);
addChildAt(bannerArea,0);

banner.loadImage(banners/ + xmlClass.xmlData.BannerRef + .jpg, 0,0, 
bannerArea, 420, 173);


Then an item is called from the library and applyed as a mask...

var maskClip = loadLibrary(maskMC + xmlClass.xmlData.Mask.toString());
addChild(maskClip);

bannerArea.mask = maskClip;

This is the function that calls the item from the library (this isnt currently 
working correctly but we have found a quick fix till we have worked out the 
masking problem)...

private function loadLibrary(item)
  {
   var maskClip = new item();
   return maskClip;
  }

Quick fix for code...
private function loadLibrary(item)
  {
   var maskClip = new maskMC1();
   return maskClip;
  }

The problem areas is not loading items from teh library but its when it applys 
the mask i.e. bannerArea.mask = maskClip;

Any one have any ideas?

SM



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Detection Kit and Express install for flash player 9?

2008-04-10 Thread Kenneth Kawamoto

The last time I checked, the Express Install did not work on my Mac at all.

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Vlado Krempl wrote:

Hello everyone!
{If this posting has been done before I apologise}

Regarding the Adobe Flash® Player Detection Kit and express Install.

Is it actually possible to create a webpage that will detect which player version the 
viewer has and offer a express install without having to leave
the webpage and not have to restart there computer. (For flash player 9!!)

It seems there are a hell of alot of people out there still with flash player 8 
or below!!

Thankyou for any replies.

Cheers,

vlado krempl
sydney, australia

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Variables can only be seen from outside of class

2008-04-10 Thread Alistair Colling
Hi there, this is a weird problem that I am sure has a really simple  
solution.


I have written a custom class that is instantiated by another custom  
class. I pass a few variables to the class and I can trace them going  
in and check that they are set but when I go to use them again they  
are undefined, if I trace them from the class they are undefined.  
However, if I trace the variables from the main timeline they appear  
fine.


I'm not sure what is going on with this, I think I am declaring my  
class or variables incorrectly though i can't see where.


I have been battling with this since yesterday, if anyone could  
suggest a possible solution it would be a massive help. The class is  
at the bottom of the email.


Thanks,
Ali


//
//  AnimLib


//
import gs.TweenFilterLite;
import quest.StepAnimator;
import mx.utils.Delegate;

class Classes.AnimLib{
var anims_ar:Array; 
var mainMC:MovieClip;
//animation abjects/times
var genericTime:Number = 0.5;
public var sA:StepAnimator;
var genericIn:Object;
var genericOut:Object;
var mcO:MovieClip;
//individual animation objects
var umbrellaIn:Object = {autoAlpha:50, overwrite:true, time:5};

public function AnimLib(m:MovieClip, s:StepAnimator) {
trace(animLib created);
mainMC = m;
trace(step animator passed:+s);
sA = s;
trace(step animator set:+sA);
initObs();
linkAnims();
trace(starting tween);
}
private function initObs() {
genericIn = new Object();
trace(GENERICIN CREATED:+genericIn);
genericOut = new Object();
genericIn = {autoAlpha:100, overwrite:true, time:1};
genericOut = {autoAlpha:0, overwrite:true, time:0.5};
trace(genericIn properties added:+genericIn);
trace(init obs triggers test);
}
	//only holds references for objects that have a group or a function  
assigned to them (more comple)

private function linkAnims() {
//this[0] = {mc:escapes, group:generic};
//this[0] = {mc:escapes, group:generic};
anims_ar = new Array();
anims_ar[0] = {mc:intro, fn:intro};
}
public function animDone() {
trace(mainMC:+mainMC);
sA.animDone();
//_root.stepA.animDone();
this.sA.animDone();

}
function testIt() {
trace(testest :):):):):));
}   
//introduction animation
public function introAnim(m:MovieClip, b:Boolean) {
trace(! ! ! ! ! -introAnim triggered:+m+b);
genericIn = {autoAlpha:100, overwrite:true, time:1};
genericOut = {autoAlpha:0, overwrite:true, time:0.1};
m = mainMC.intro;
m._alpha = 100;
//create array of mcs then add delay thru loop,
		var mc_ar:Array = new Array(m.sitePhoto, m.topTitle, m.title,  
m.escapes, m.ans0, m.ans1);

var alph:Number = 100   
if (!b) {
alph = 0;
}   
		trace(intro vis:+_root.intro._visible+ alpha:+_root.intro._alpha 
+ alph:+alph);

//TweenFilterLite
for ( var i=0; imc_ar.length; i++ ) {
if (i==mc_ar.length-1) {
TweenFilterLite.to(mc_ar[i], 1,{_alpha:alph, overwrite:true,  
delay:.5*i, onComplete:animDone});

}else{
TweenFilterLite.to(mc_ar[i], 1,{_alpha:alph, overwrite:true,  
delay:.5*i});	

}   
};
}

//custom test function where more than one animation has to happen
function escapeFun(m:MovieClip, inO:Boolean) {
trace(escapefuncalled:+m);
//assigns generic obj
var tmpObj:Object = genericIn;
//then modifies it
tmpObj.time = 2;
//m._visible = true;
TweenFilterLite.to(m,1,{autoAlpha:100});
}
//is passed a mc and animates it in or out

public function animate(m:MovieClip, i:Boolean) {
var animObj:Object = returnAnimObj(m, i);
trace(returned object:+animObj);
//animate
if (animObj.undefined == 1) {
trace(UNDEFINED ANIM OBJECT RETURNED (fn/group?));
//  intro();
} else {
trace(animating...);
TweenFilterLite.to(m,animObj.time,animObj);
}
}
private function returnAnimObj(mc:MovieClip, ins:Boolean):Object {
trace(returnAnimObj:+mc);
var inStr:String 

Re: [Flashcoders] Problem when applying dynamic mask [AS3]

2008-04-10 Thread jonathan howe
Hi, Stuart,

This looks like a job for global function getDefinitionByName(), my new bff
(learned from this list).

You can't instantiate item just as a string. You need to call
getDefinitionByName(item) and then use that as your class def.
var classReference:Class = getDefinitionByName(item);
return classReference();

-jonathan


On Thu, Apr 10, 2008 at 7:55 AM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
wrote:

 Hi i have another problem this time its to do with masking an object, here
 is the code that creates a movieclip then loads an image into to...

bannerArea = newMovieClip(0xff, 0, 0, 420, 173);
addChildAt(bannerArea,0);

banner.loadImage(banners/ + xmlClass.xmlData.BannerRef + .jpg,
 0,0, bannerArea, 420, 173);


 Then an item is called from the library and applyed as a mask...

var maskClip = loadLibrary(maskMC +
 xmlClass.xmlData.Mask.toString());
addChild(maskClip);

bannerArea.mask = maskClip;

 This is the function that calls the item from the library (this isnt
 currently working correctly but we have found a quick fix till we have
 worked out the masking problem)...

private function loadLibrary(item)
  {
   var maskClip = new item();
   return maskClip;
  }

 Quick fix for code...
private function loadLibrary(item)
  {
   var maskClip = new maskMC1();
   return maskClip;
  }

 The problem areas is not loading items from teh library but its when it
 applys the mask i.e. bannerArea.mask = maskClip;

 Any one have any ideas?

 SM



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] movement

2008-04-10 Thread mario gonzalez

Make sure you set the window mode to opaque OR transparent... not default.
That seems to make a huge difference:

wmode not set:
http://hugo.wddg.com/blogfiles/wmode/wmodedefault.html

wmode set to opaque:
http://hugo.wddg.com/blogfiles/wmode/wmodeopaque.html


Both are using the same swf only difference between the two is the tag 
as you can see in the source.

Hope this helps, cus it sure has helped me a ton.


Mario Gonzalez.


Cory Petosky wrote:

My buddy and I were playing with some performance benchmarks we wrote
(put 100 bitmaps on the screen by manual blits to a backing
BitmapData). We weren't surprised that it ran stably at 120 FPS in the
Flash IDE. We were alarmed to discover, however, that the same SWF ran
at a mere 80 FPS in the Flash standalone player and was just under 60
FPS when viewed in the browser.

Windows XP, Flash CS3 Professional, IE7.

On Tue, Apr 8, 2008 at 3:20 PM, David Rogers [EMAIL PROTECTED] wrote:
  

if you are on a mac, try enabling or disabling rosetta in the info panel of
the application icon

 On Apr 8, 2008, at 2:41 PM, Lehr, Theodore M (N-SGIS) wrote:





I have a mc I am moving via AS - it moves at a fine pace in the player
inside flash - but when I view it via the browser, it really slows
down... why would this happen?



ted

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders






--
Cory Petosky : Lead Developer : PUNY
1618 Central Ave NE Suite 130
Minneapolis, MN 55413
Office: 612.216.3924
Mobile: 240.422.9652
Fax: 612.605.9216
http://www.punyentertainment.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] movement

2008-04-10 Thread Lehr, Theodore M (N-SGIS)
You are right - that does seem to make a difference - except I am
noticing that set default it runs fine - it is when I make it
transparent (which I need it to be) it then slows down

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of mario
gonzalez
Sent: Thursday, April 10, 2008 9:30 AM
To: Flash Coders List
Subject: Re: [Flashcoders] movement

Make sure you set the window mode to opaque OR transparent... not
default.
That seems to make a huge difference:

wmode not set:
http://hugo.wddg.com/blogfiles/wmode/wmodedefault.html

wmode set to opaque:
http://hugo.wddg.com/blogfiles/wmode/wmodeopaque.html


Both are using the same swf only difference between the two is the tag 
as you can see in the source.
Hope this helps, cus it sure has helped me a ton.


Mario Gonzalez.


Cory Petosky wrote:
 My buddy and I were playing with some performance benchmarks we wrote
 (put 100 bitmaps on the screen by manual blits to a backing
 BitmapData). We weren't surprised that it ran stably at 120 FPS in the
 Flash IDE. We were alarmed to discover, however, that the same SWF ran
 at a mere 80 FPS in the Flash standalone player and was just under 60
 FPS when viewed in the browser.

 Windows XP, Flash CS3 Professional, IE7.

 On Tue, Apr 8, 2008 at 3:20 PM, David Rogers [EMAIL PROTECTED]
wrote:
   
 if you are on a mac, try enabling or disabling rosetta in the info
panel of
 the application icon

  On Apr 8, 2008, at 2:41 PM, Lehr, Theodore M (N-SGIS) wrote:



 
 I have a mc I am moving via AS - it moves at a fine pace in the
player
 inside flash - but when I view it via the browser, it really slows
 down... why would this happen?



 ted

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 



 --
 Cory Petosky : Lead Developer : PUNY
 1618 Central Ave NE Suite 130
 Minneapolis, MN 55413
 Office: 612.216.3924
 Mobile: 240.422.9652
 Fax: 612.605.9216
 http://www.punyentertainment.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Moock TileMap/TileSet/TileMapRenderer

2008-04-10 Thread Terry and Tammy
Morning,

First post so hello. Hope to be of assistance to someone in near future.

I am working through Essential ActionScript 3.0 and have downloaded Colin
Moock's Tile Based classes.

These classes fit a need I have for a set of games.  I have googled for more
info/links to see how others have used/adapted them but
have not come up with anything.

I would like to stick with these for a couple of reasons and the first and
most important is I have the authors book and can follow
his reasoning.

Can anyone send me a link on more info? Need to change things, I am new to
BitMapData/blitting, need to change TileMap from randomize to sequential?

Any help would really be appreciated.

Thanks,
Terry
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] mp3 streaming interrupted

2008-04-10 Thread Andrew Sinning

I'm using AS2.

In my movie, I have some external mp3 files that will start streaming 
and then just stop playing.  It's as if the streaming suddenly stops, 
but this happens even if I'm playing the sound back locally.  From the 
documentation, if looks like there are just two ways to stop a sound 
from playing, by calling sound.stop() on the specific instance of the 
sounds, and by calling Sound.stop() without reference to a specific 
sound to stop all sounds.  As far as I can tell, there's no place in my 
code where I am making either type of call.


Does the variable pointing to the sound being played need to persist in 
memory for the sound to continue playing?  I'm nearly positive that the 
variable is persistent, but I'm shooting in the dark here.


The sound is loaded using

   sound.loadSound(url, true);

and it starts playing nearly right away.  After a while it stops.  
Sometimes it plays longer than others.  These sounds are about 25KB/sec. 
and are 10 and 20 seconds long.


Even if the data-stream is interrupted, the sound should start playing 
again once the buffer gets loaded up again, right?


I know there's something in my movie that is causing this, because if I 
make a test movie where I just play the sound it works just fine.  The 
problem is I can't figure out where else to look for the cause of the 
problem.


Thanks!


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Moock TileMap/TileSet/TileMapRenderer

2008-04-10 Thread Glen Pike
Instead of using Math.random() in the randomize function, you would set 
the ID to the row / column position:


public function generate(numTiles:int):void {
	var numRows:int = 
getNumRows();

 for (var i:int = 0; i  numRows; i++) {
   for (var j:int = 0; j  getNumCols(); j++) {
 setTile(j, i, (i * numRows) + j);
   }
 }
   }



Terry and Tammy wrote:

Morning,

First post so hello. Hope to be of assistance to someone in near future.

I am working through Essential ActionScript 3.0 and have downloaded Colin
Moock's Tile Based classes.

These classes fit a need I have for a set of games.  I have googled for more
info/links to see how others have used/adapted them but
have not come up with anything.

I would like to stick with these for a couple of reasons and the first and
most important is I have the authors book and can follow
his reasoning.

Can anyone send me a link on more info? Need to change things, I am new to
BitMapData/blitting, need to change TileMap from randomize to sequential?

Any help would really be appreciated.

Thanks,
Terry
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Moock TileMap/TileSet/TileMapRenderer

2008-04-10 Thread Glen Pike
http://www.tonypa.pri.ee/tbw/index.html  is good for information on Tile 
Based Games, but the code is not AS3 this also links to:


http://oos.moxiecode.com/ which also has lots of info about Flash Games 
- old too, but there loads of links to other resources at the bottom of 
the page.


AS3 is now getting to the stage where you can apply Windows game based 
principles too it, so grab any Windows Game programming books that teach 
you how to do mess around with Images, Sprites and stuff and you should 
be able to translate the basic principles to Flash - the physics never 
changes.  There are possibly more flash game things out there - I would 
look at Keith Peter's Foundation AS3 Making Things Move book as this 
has lots of AS3 + Physics stuff that you would use in games too.  Not 
sure if Flash Game Programming Demystified (Jobe Makar) has been updated 
for AS3 yet, but the old versions of these are really good too.


HTH

Glen

Terry and Tammy wrote:

Morning,

First post so hello. Hope to be of assistance to someone in near future.

I am working through Essential ActionScript 3.0 and have downloaded Colin
Moock's Tile Based classes.

These classes fit a need I have for a set of games.  I have googled for more
info/links to see how others have used/adapted them but
have not come up with anything.

I would like to stick with these for a couple of reasons and the first and
most important is I have the authors book and can follow
his reasoning.

Can anyone send me a link on more info? Need to change things, I am new to
BitMapData/blitting, need to change TileMap from randomize to sequential?

Any help would really be appreciated.

Thanks,
Terry
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Moock TileMap/TileSet/TileMapRenderer

2008-04-10 Thread Pedro Taranto
there is a as3 version, but its not completed: 
http://www.tonypa.pri.ee/tbw/as3/index.html


--
Pedro Taranto
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem when applying dynamic mask [AS3]

2008-04-10 Thread Stuart (FunkDaWeb)
Couldnt get this to work for some reason i think its because its used from 
within a class, soon as the mask is applyed it throws an error!

Ive decided to use SWFs insted of masking an image, but for some reason its not 
correctly sizing the file its loading!

then the actual code to initiate the load is...

banner.loadImage(banners/ + xmlClass.xmlData.BannerRef + .swf, 0,0, 
bannerArea, 420, 173);

The code to load the file is

public function loadImage(filename:String, mcX:int, mcY:int, 
mcName:MovieClip, imgWidth:int, imgHeight:int):void
  {
   _mcName = mcName;
   _imgWidth = imgWidth;
   _imgHeight = imgHeight;   
   _mcY = mcY;
   _mcX = mcX;
   
   var imageLoader:Loader = new Loader(); // Set loader
   
   try
   {
var imageURL:URLRequest = new URLRequest(filename); // Set file name
imageLoader.load (imageURL);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, 
imgLoadComplete);
trace(DEBUG [imageLib-loadImage]: Loading image:  + filename);
   }
   catch (err:Error)
   {
trace(WARNING [imageLib-loadImage]: No files are loading ( + err 
+ ));
   }
  }

SM
  - Original Message - 
  From: jonathan howe 
  To: Flash Coders List 
  Sent: Thursday, April 10, 2008 1:50 PM
  Subject: Re: [Flashcoders] Problem when applying dynamic mask [AS3]


  Hi, Stuart,

  This looks like a job for global function getDefinitionByName(), my new bff
  (learned from this list).

  You can't instantiate item just as a string. You need to call
  getDefinitionByName(item) and then use that as your class def.
  var classReference:Class = getDefinitionByName(item);
  return classReference();

  -jonathan


  On Thu, Apr 10, 2008 at 7:55 AM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
  wrote:

   Hi i have another problem this time its to do with masking an object, here
   is the code that creates a movieclip then loads an image into to...
  
  bannerArea = newMovieClip(0xff, 0, 0, 420, 173);
  addChildAt(bannerArea,0);
  
  banner.loadImage(banners/ + xmlClass.xmlData.BannerRef + .jpg,
   0,0, bannerArea, 420, 173);
  
  
   Then an item is called from the library and applyed as a mask...
  
  var maskClip = loadLibrary(maskMC +
   xmlClass.xmlData.Mask.toString());
  addChild(maskClip);
  
  bannerArea.mask = maskClip;
  
   This is the function that calls the item from the library (this isnt
   currently working correctly but we have found a quick fix till we have
   worked out the masking problem)...
  
  private function loadLibrary(item)
{
 var maskClip = new item();
 return maskClip;
}
  
   Quick fix for code...
  private function loadLibrary(item)
{
 var maskClip = new maskMC1();
 return maskClip;
}
  
   The problem areas is not loading items from teh library but its when it
   applys the mask i.e. bannerArea.mask = maskClip;
  
   Any one have any ideas?
  
   SM
  
  
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  



  -- 
  -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] mp3 streaming interrupted

2008-04-10 Thread jonathan howe
When you instantiate the object sound, are you passing a movieclip that
possibly disappears at some point?
sound:Sound = new Sound(someClipThatGoesAway_mc);

I don't actually know right now if that clip disappeared if the sound would
stop (the link between Sound objects and MovieClips can be a little
counter-intuitive), but it would be one place to look.

-jonathan



On Thu, Apr 10, 2008 at 11:38 AM, Andrew Sinning [EMAIL PROTECTED]
wrote:

 I'm using AS2.

 In my movie, I have some external mp3 files that will start streaming and
 then just stop playing.  It's as if the streaming suddenly stops, but this
 happens even if I'm playing the sound back locally.  From the documentation,
 if looks like there are just two ways to stop a sound from playing, by
 calling sound.stop() on the specific instance of the sounds, and by calling
 Sound.stop() without reference to a specific sound to stop all sounds.  As
 far as I can tell, there's no place in my code where I am making either type
 of call.

 Does the variable pointing to the sound being played need to persist in
 memory for the sound to continue playing?  I'm nearly positive that the
 variable is persistent, but I'm shooting in the dark here.

 The sound is loaded using

   sound.loadSound(url, true);

 and it starts playing nearly right away.  After a while it stops.
  Sometimes it plays longer than others.  These sounds are about 25KB/sec.
 and are 10 and 20 seconds long.

 Even if the data-stream is interrupted, the sound should start playing
 again once the buffer gets loaded up again, right?

 I know there's something in my movie that is causing this, because if I
 make a test movie where I just play the sound it works just fine.  The
 problem is I can't figure out where else to look for the cause of the
 problem.

 Thanks!


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] mp3 streaming interrupted

2008-04-10 Thread Andrew Sinning
I figured out the problem -- the array holding the pointer to the 
instance if the sound object was getting indexed with an empty string 
(), and thus never actually getting added to the array, thus there was 
no persistent pointer to the instance.


Andrew Sinning wrote:

I'm using AS2.

In my movie, I have some external mp3 files that will start streaming 
and then just stop playing.  It's as if the streaming suddenly stops, 
but this happens even if I'm playing the sound back locally.  From the 
documentation, if looks like there are just two ways to stop a sound 
from playing, by calling sound.stop() on the specific instance of the 
sounds, and by calling Sound.stop() without reference to a specific 
sound to stop all sounds.  As far as I can tell, there's no place in 
my code where I am making either type of call.


Does the variable pointing to the sound being played need to persist 
in memory for the sound to continue playing?  I'm nearly positive that 
the variable is persistent, but I'm shooting in the dark here.


The sound is loaded using

   sound.loadSound(url, true);

and it starts playing nearly right away.  After a while it stops.  
Sometimes it plays longer than others.  These sounds are about 
25KB/sec. and are 10 and 20 seconds long.


Even if the data-stream is interrupted, the sound should start playing 
again once the buffer gets loaded up again, right?


I know there's something in my movie that is causing this, because if 
I make a test movie where I just play the sound it works just fine.  
The problem is I can't figure out where else to look for the cause of 
the problem.


Thanks!


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Moock TileMap/TileSet/TileMapRenderer

2008-04-10 Thread Terry and Tammy
Great, Great, Great. Will implement new function and study links. Really,
really appreciate it.

Thanks,
Terry

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Pedro
Taranto
Sent: Thursday, April 10, 2008 11:11 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Moock TileMap/TileSet/TileMapRenderer


there is a as3 version, but its not completed:
http://www.tonypa.pri.ee/tbw/as3/index.html

--
Pedro Taranto
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash 8 Tree - calculated horizontal scrolling

2008-04-10 Thread Ricky Blaha
The Flash 8 Tree component has the *hScrollPolicy *property, but if this set
to on, the Tree does not automatically show a horizontal scrollbar
(presumably to save rendering time since it requires traversing all nodes
to find the widest). But this seems like a pretty basic requirement that
should have been made a configurable option for those who need it and are
willing to take a performance hit. I see that additionally setting *
maxHPosition* to a value does actually create a horizontal scroll bar to
scroll by that amount, however, how would you go about finding which node in
the tree is the widest, in order to set *maxHPosition* to the appropriate
value?

Thanks!
~R
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FP9 security update

2008-04-10 Thread Muzak

There's an FP update: 9,0,124,0

With some changes to: 
- allowScriptAccess 
- getURL(javascript:...)

- cross domain policy files

Read the article:
http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_update.html

regards,
Muzak
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Detection Kit and Express install for flash player9?

2008-04-10 Thread Vlado Krempl

Thanks for your reply Kenneth.

Just one question, when you design a flash webpage, do you us a HTML 
alternate page aswell?


Cheers,

v
- Original Message - 
From: Kenneth Kawamoto [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, April 10, 2008 10:09 PM
Subject: Re: [Flashcoders] Detection Kit and Express install for flash 
player9?



The last time I checked, the Express Install did not work on my Mac at all.

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Vlado Krempl wrote:

Hello everyone!
{If this posting has been done before I apologise}

Regarding the Adobe Flash® Player Detection Kit and express Install.

Is it actually possible to create a webpage that will detect which player 
version the viewer has and offer a express install without having to 
leave

the webpage and not have to restart there computer. (For flash player 9!!)

It seems there are a hell of alot of people out there still with flash 
player 8 or below!!


Thankyou for any replies.

Cheers,

vlado krempl
sydney, australia

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Detection Kit and Express install for flash player9?

2008-04-10 Thread Kenneth Kawamoto

 do you us a HTML alternate page aswell?

Sometimes yes, sometimes no. It all depends on the nature of the site 
and requirements of the client.


If it's an AS3 site with no HTML alternatives, since I personally cannot 
trust Express Install, I would show a link to the FP download page so 
that the user can update the player manually if the player version is  
9. But there are reports SWFObject fails to detect the player version 
correctly on IE7 updated from IE6. Therefore I may will have to use 
Adobe detection script instead for the version detection.


There ought to be more elegant solution though. I hope someone can chime 
in for this issue.



Kenneth Kawamoto
http://www.materiaprima.co.uk/

Vlado Krempl wrote:

Thanks for your reply Kenneth.

Just one question, when you design a flash webpage, do you us a HTML 
alternate page aswell?


Cheers,

v
- Original Message - From: Kenneth Kawamoto 
[EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, April 10, 2008 10:09 PM
Subject: Re: [Flashcoders] Detection Kit and Express install for flash 
player9?



The last time I checked, the Express Install did not work on my Mac at all.

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Vlado Krempl wrote:

Hello everyone!
{If this posting has been done before I apologise}

Regarding the Adobe Flash® Player Detection Kit and express Install.

Is it actually possible to create a webpage that will detect which 
player version the viewer has and offer a express install without 
having to leave
the webpage and not have to restart there computer. (For flash player 
9!!)


It seems there are a hell of alot of people out there still with flash 
player 8 or below!!


Thankyou for any replies.

Cheers,

vlado krempl
sydney, australia

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Detection Kit and Express install for flash player9?

2008-04-10 Thread Vlado Krempl

I agree, this situation is on top of my wishlist.
Thanks again.

- Original Message - 
From: Kenneth Kawamoto [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, April 11, 2008 8:33 AM
Subject: Re: [Flashcoders] Detection Kit and Express install for flash 
player9?




do you us a HTML alternate page aswell?


Sometimes yes, sometimes no. It all depends on the nature of the site
and requirements of the client.

If it's an AS3 site with no HTML alternatives, since I personally cannot
trust Express Install, I would show a link to the FP download page so
that the user can update the player manually if the player version is 
9. But there are reports SWFObject fails to detect the player version
correctly on IE7 updated from IE6. Therefore I may will have to use
Adobe detection script instead for the version detection.

There ought to be more elegant solution though. I hope someone can chime
in for this issue.


Kenneth Kawamoto
http://www.materiaprima.co.uk/

Vlado Krempl wrote:

Thanks for your reply Kenneth.

Just one question, when you design a flash webpage, do you us a HTML 
alternate page aswell?


Cheers,

v
- Original Message - From: Kenneth Kawamoto 
[EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, April 10, 2008 10:09 PM
Subject: Re: [Flashcoders] Detection Kit and Express install for flash 
player9?



The last time I checked, the Express Install did not work on my Mac at 
all.


Kenneth Kawamoto
http://www.materiaprima.co.uk/

Vlado Krempl wrote:

Hello everyone!
{If this posting has been done before I apologise}

Regarding the Adobe Flash® Player Detection Kit and express Install.

Is it actually possible to create a webpage that will detect which player 
version the viewer has and offer a express install without having to 
leave
the webpage and not have to restart there computer. (For flash player 
9!!)


It seems there are a hell of alot of people out there still with flash 
player 8 or below!!


Thankyou for any replies.

Cheers,

vlado krempl
sydney, australia

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders