[Flashcoders] Anyone remember 3d tile stacking physics app?

2009-03-24 Thread ali drongo
Hi there I saw a video that showed the speeded-up development for an
application that used the cove APE physics engine to create a 3D effect
board with tiles on that you could move around and stack.
I can't find this anywhere.

Can anyone point me in the direction of the project or the video that shows
the development?

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


Re: [Flashcoders] How to know coordinates of letters in non fixed-width fonts

2009-02-26 Thread ali drongo
Thanks guys, I got it working :) The text is slightly badly aligned
sometimes, I'm going to look into Line Metrics and aliasing as it's only a
pixel or so out as the text is v small.Many many thanks again
Ali



On Wed, Feb 25, 2009 at 7:42 AM, Matt Gitchell m...@moonbootmedia.comwrote:

 TextField has a getLineMetrics() function, which returns a TextLineMetrics
 object.
 Check out the AS3 Reference stuff for TextField and the TextLineMetrics
 class for the breakdown, there's all kinds of good, fun stuff in there.

 --Matt

 On Tue, Feb 24, 2009 at 6:36 AM, Glen Pike g...@engineeredarts.co.uk
 wrote:

  Hi,
 
Can you get text metrics for characters / lines in the text field???
 
Glen
 
 
  ali drongo wrote:
 
  Thanks for all of your responses guys,I ended up using getCharBoundaries
  and
  it works a treat.
  FYI I created a text field at the position I wanted the letters to
 finally
  go then stored the rectangle object for each char in an array and then
  cycled through the array as Glen suggested.
 
  Only thing is, when I use a multiline textfield my function will only
  gather
  the char boundaries for the first line:
  If anyone can suggest why it would be a help.
  Cheers!
  Ali
 
 
 
 
  public static function letterPosAr(t:TextField):Array
  {
  trace(letterPosAr);
  var retA:Array = new Array();
  for (var i:int = 0; i  t.text.length; i++){
  var rect:Rectangle = t.getCharBoundaries(i);
  trace(---index+i+  char:+t.text.substr(i, 1)+  x:+rect.x+
  y:+rect.y+ w:+rect.width);
  retA[i] = rect;
  }
  return retA;
   }
 
  On Tue, Feb 24, 2009 at 7:02 AM, Matt Gitchell m...@moonbootmedia.com
  wrote:
 
 
 
  the AS2 one is a cool idea!
 
  On Mon, Feb 23, 2009 at 10:16 PM, Hans Wichman 
  j.c.wich...@objectpainters.com wrote:
 
 
 
  and for as2:
 
 http://objectpainters.com/blog/2008/10/12/finding-character-positions/
 
  On Tue, Feb 24, 2009 at 1:24 AM, Matt Gitchell 
 m...@moonbootmedia.com
 
 
  wrote:
 Is this AS3? you can use TextField.getCharBoundaries()
 
  I used it in an experiment a while back here to pretty good effect:
  http://www.moonbootmedia.com/interactive/m/textcompare.html
 
  --Matt
 
 
 
  On Mon, Feb 23, 2009 at 3:01 PM, Glen Pike 
 postmas...@glenpike.co.uk
 
 
  wrote:
   Hi,
 
   You should be able to get the width of each sprite with the single
 
 
  letter
 
 
  in???
 
   Maybe mask the stream area out.  Start each letter at x -
 
 
  letterWidth,
 
 
  increase the x after each interval, when the letter reaches x=0,
 
 
  create
 
 
  
 
 
  show the next one, add it to your array.
 Loop through the array each timer increasing the x position of
 
 
  the
 
 
  letters, removing them when they reach the other side???
 Something like that??/
 Glen
 
  ali drongo wrote:
 
 
 
  Hi there, I'm animating some letters that are dynamically created
 in
 
 
  their
 
 
  own sprites across the screen as if they are being fired in a
 
 
  stream.
 
 
  Currently I am using a fixed width font so it's straight forward to
 
 
  find
 
 
  their final position. My problem is that I need to use a non
 
 
  fixed-width
 
 
  font and I don't know how to calculate the position of each letter.
 
  Any ideas very gratefully received!
 
  Thanks :)
  Ali
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
 
 
  --
 
  Glen Pike
  01326 218440
  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 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 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


Re: [Flashcoders] How to know coordinates of letters in non fixed-width fonts

2009-02-24 Thread ali drongo
Thanks for all of your responses guys,I ended up using getCharBoundaries and
it works a treat.
FYI I created a text field at the position I wanted the letters to finally
go then stored the rectangle object for each char in an array and then
cycled through the array as Glen suggested.

Only thing is, when I use a multiline textfield my function will only gather
the char boundaries for the first line:
If anyone can suggest why it would be a help.
Cheers!
Ali




public static function letterPosAr(t:TextField):Array
{
trace(letterPosAr);
var retA:Array = new Array();
for (var i:int = 0; i  t.text.length; i++){
var rect:Rectangle = t.getCharBoundaries(i);
trace(---index+i+  char:+t.text.substr(i, 1)+  x:+rect.x+
y:+rect.y+ w:+rect.width);
retA[i] = rect;
}
return retA;
 }

On Tue, Feb 24, 2009 at 7:02 AM, Matt Gitchell m...@moonbootmedia.comwrote:

 the AS2 one is a cool idea!

 On Mon, Feb 23, 2009 at 10:16 PM, Hans Wichman 
 j.c.wich...@objectpainters.com wrote:

  and for as2:
  http://objectpainters.com/blog/2008/10/12/finding-character-positions/
 
  On Tue, Feb 24, 2009 at 1:24 AM, Matt Gitchell m...@moonbootmedia.com
  wrote:
 
   Is this AS3? you can use TextField.getCharBoundaries()
  
   I used it in an experiment a while back here to pretty good effect:
   http://www.moonbootmedia.com/interactive/m/textcompare.html
  
   --Matt
  
  
  
   On Mon, Feb 23, 2009 at 3:01 PM, Glen Pike postmas...@glenpike.co.uk
   wrote:
  
Hi,
   
  You should be able to get the width of each sprite with the single
   letter
in???
   
  Maybe mask the stream area out.  Start each letter at x -
  letterWidth,
increase the x after each interval, when the letter reaches x=0,
 create
  
show the next one, add it to your array.
Loop through the array each timer increasing the x position of
 the
letters, removing them when they reach the other side???
Something like that??/
Glen
   
ali drongo wrote:
   
Hi there, I'm animating some letters that are dynamically created in
   their
own sprites across the screen as if they are being fired in a
 stream.
Currently I am using a fixed width font so it's straight forward to
  find
their final position. My problem is that I need to use a non
  fixed-width
font and I don't know how to calculate the position of each letter.
   
Any ideas very gratefully received!
   
Thanks :)
Ali
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
   
   
   
   
--
   
Glen Pike
01326 218440
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 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] How to know coordinates of letters in non fixed-width fonts

2009-02-23 Thread ali drongo
Hi there, I'm animating some letters that are dynamically created in their
own sprites across the screen as if they are being fired in a stream.
Currently I am using a fixed width font so it's straight forward to find
their final position. My problem is that I need to use a non fixed-width
font and I don't know how to calculate the position of each letter.

Any ideas very gratefully received!

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


Re: [Flashcoders] Converting hex colour numbers back and forth

2009-02-10 Thread ali drongo
Thanks for your responses guys. I'm still stuck on this and I have been
playing around a lot. I can get the number from the decimal format to the
hex string but when I try to convert it to a hex number the colour is
incorrect.
Any advice much much appreciated, this is taking up lots of time.

Thanks:



public function colorIn(o:Object):void
{
trace(===);
var colA:Array = o.Colors.split(,);
colA.splice(0,1);
for ( var i:uint=1; i=totSprites-1; i++ ) {
var c:String = colA[i];
trace(string colour:+c); //  e.g. for red: 16711680
//convert to decimal number
var tmpN:Number = Number(c);
trace(decimal:+tmpN); //  traces: 16711680
//convert to string of hex number
var hexStr:String = tmpN.toString(16);
trace(hexStr:+hexStr);  //traces: ff
//convert to hex number
var hexNum:Number = parseInt(c, 16);
trace(= = = = = = =   hex number:+hexNum); //traces in decimal format and
wrong number:  376510080
//set mc to color
var mcToCol:* = mainImage[s+i];
//transform color
var newColorTransform:ColorTransform = mcToCol.transform.colorTransform;
newColorTransform.color = hexNum;
mcToCol.transform.colorTransform = newColorTransform;
};
}





On Mon, Feb 9, 2009 at 8:55 PM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 Courtesy Evan Mullins of Circlecube Studio:

 //bitwise conversion of rgb color to a hex value
 function rgb2hex(r, g, b):Number
 {
return(r16 | g8 | b);
 }

 //bitwise conversion of a hex color into rgb values
 function hex2rgb (hex):Object
 {
var red = hex16;
var greenBlue = hex-(red16)
var green = greenBlue8;
var blue = greenBlue - (green  8);
  //trace(r:  + red +  g:  + green +  b:  + blue);
return({r:red, g:green, b:blue});
 }



 Jason Merrill

  Bank of  America
 Learning Performance Solutions Instructional Technology  Media

 Learn about the Adobe Flash platform for rich media experiences - join
 the Bank of America Flash Platform Community






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of ali
 drongo
 Sent: Monday, February 09, 2009 12:26 PM
 To: Flash Coders List
 Subject: [Flashcoders] Converting hex colour numbers back and forth

 Hi there, I'm saving a bunch of colours as a string then using this
 string
 later to colour objects in the same way.  Something is going wrong
 though as
 the colours I am getting back are not the same as the ones I put in.
 If anyone could point out where I'm going wrong I'd be really grateful,
 I've
 googled this and and have checked the help files and as far as I can see
 it's correct (though obviously it isn't!).

 Here's my code, I've written comments next to the relevant lines:

 /// in my coloured button class


 //  1) colour is set on mouse click
 private function clickHandler(e:MouseEvent):void
 {
 // passes hexValue from ColorPicker
 colorThis(this.parent.parent[colorPick].hexValue);
 }
 //  2) color is stored in var
 public function colorThis(c:String):void
 {
 //stores colour
 currColor = Number(0x+c);
 var newColorTransform:ColorTransform = this.transform.colorTransform;
 newColorTransform.color = currColor;
 this.transform.colorTransform = newColorTransform;
 }



 // application class
  //  3) stores colors in an array
 private function collectColors():Array
 {
 colors_ar = new Array();
 for ( var i:uint=1; i=totSprites; i++ ) {
 //stores colour in array
 colors_ar[i] = mainImage[s+i].currColor;
 };
 return colors_ar;
 }

 //  4) array is written to string and sent to php to be written to txt
 file

 private function sendData(e:MouseEvent):void
 {
 showSending(true);
 var variables:URLVariables = new URLVariables();
 //stores all colours as a string
 variables.colors = collectColors().toString();
 var request:URLRequest = new URLRequest();
 request.url = http://www..com/text/test.php;;
 request.method = URLRequestMethod.POST;
 request.data = variables;
 var loader:URLLoader = new URLLoader();
 loader.dataFormat = URLLoaderDataFormat.TEXT;
 loader.addEventListener(Event.COMPLETE, completeHandler);
 try
 {
loader.load(request);
 }
 catch (error:Error)
 {
trace(Unable to load URL);
 }
 }


 /   viewer class
 //  5)

 public function colorIn(o:Object):void
 {
 var colA:Array = o.Colors.split(,);
 colA.splice(0,1);
 for ( var i:uint=1; i=totSprites; i++ ) {
 //calls the method in the coloured button class
 mainImage[s+i].colorThis(colA[i]).toString(16);
 };
 }
 ___
 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


Re: [Flashcoders] Converting hex colour numbers back and forth

2009-02-10 Thread ali drongo
Thanks everyone, Juan, you solved the final part of the puzzle and Muzak
thanks for your utility class it's very useful.
Cheers again!
Ali

On Tue, Feb 10, 2009 at 1:13 PM, Muzak p.ginnebe...@telenet.be wrote:

 Maybe this will help?
 http://muzakdeezign.com/flex3/flex3lib/ColorUtil.zip

 //docs

 http://muzakdeezign.com/flex3/flex3lib/docs/com/muzakdeezign/flex/utils/ColorUtil.html

 regards,
 Muzak

 - Original Message - From: ali drongo alidro...@googlemail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Monday, February 09, 2009 6:26 PM
 Subject: [Flashcoders] Converting hex colour numbers back and forth


  Hi there, I'm saving a bunch of colours as a string then using this string
 later to colour objects in the same way.  Something is going wrong though
 as
 the colours I am getting back are not the same as the ones I put in.
 If anyone could point out where I'm going wrong I'd be really grateful,
 I've
 googled this and and have checked the help files and as far as I can see
 it's correct (though obviously it isn't!).


 ___
 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] Converting hex colour numbers back and forth

2009-02-09 Thread ali drongo
Hi there, I'm saving a bunch of colours as a string then using this string
later to colour objects in the same way.  Something is going wrong though as
the colours I am getting back are not the same as the ones I put in.
If anyone could point out where I'm going wrong I'd be really grateful, I've
googled this and and have checked the help files and as far as I can see
it's correct (though obviously it isn't!).

Here's my code, I've written comments next to the relevant lines:

/// in my coloured button class


//  1) colour is set on mouse click
private function clickHandler(e:MouseEvent):void
{
// passes hexValue from ColorPicker
colorThis(this.parent.parent[colorPick].hexValue);
}
//  2) color is stored in var
public function colorThis(c:String):void
{
//stores colour
currColor = Number(0x+c);
var newColorTransform:ColorTransform = this.transform.colorTransform;
newColorTransform.color = currColor;
this.transform.colorTransform = newColorTransform;
}



// application class
 //  3) stores colors in an array
private function collectColors():Array
{
colors_ar = new Array();
for ( var i:uint=1; i=totSprites; i++ ) {
//stores colour in array
colors_ar[i] = mainImage[s+i].currColor;
};
return colors_ar;
}

//  4) array is written to string and sent to php to be written to txt file

private function sendData(e:MouseEvent):void
{
showSending(true);
var variables:URLVariables = new URLVariables();
//stores all colours as a string
variables.colors = collectColors().toString();
var request:URLRequest = new URLRequest();
request.url = http://www..com/text/test.php;;
request.method = URLRequestMethod.POST;
request.data = variables;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, completeHandler);
try
{
loader.load(request);
}
catch (error:Error)
{
trace(Unable to load URL);
}
}


/   viewer class
//  5)

public function colorIn(o:Object):void
{
var colA:Array = o.Colors.split(,);
colA.splice(0,1);
for ( var i:uint=1; i=totSprites; i++ ) {
//calls the method in the coloured button class
mainImage[s+i].colorThis(colA[i]).toString(16);
};
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] capturing mouse events for layered sprites

2009-02-03 Thread ali drongo
Thanks for your reply Dennis. I'm afraid this won't solve my problem as I
need all of the children to be mouseEnabled so they can receive mouse events
that are processed by their custom class.
Any other suggestions much appreciated.
Thanks!


On Thu, Jan 29, 2009 at 12:00 PM, Dennis - I Sioux den...@isioux.nl wrote:

 you could set mouseChildren = false; on the the container.
 This way the child mc's won't capture any mouse events.

 Dennis
 Isioux

 - Original Message - From: ali drongo alidro...@googlemail.com
 To: flashcoders@chattyfig.figleaf.com
 Sent: Thursday, January 29, 2009 11:21 AM
 Subject: [Flashcoders] capturing mouse events for layered sprites


  Hi there, I have a square sprite that contains a background sprite on one
 layer with another layer containing various shaped sprites. Each of these
 sprites is a custom class that gives a mouse event.
 My problem is that if I capture the mouse_over event for the container
 sprite for some reason i get the mouse_out and and another mouse_over
 event
 each time the mouse runs off one of the smaller sprites and over the
 background.

 Is there any way I can avoid this without using the mouse position?

 Thanks in advance :)
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 __ NOD32 3809 (20090129) Informatie __

 Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
 http://www.nod32.nl



 ___
 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] capturing mouse events for layered sprites

2009-01-29 Thread ali drongo
Hi there, I have a square sprite that contains a background sprite on one
layer with another layer containing various shaped sprites. Each of these
sprites is a custom class that gives a mouse event.
My problem is that if I capture the mouse_over event for the container
sprite for some reason i get the mouse_out and and another mouse_over event
each time the mouse runs off one of the smaller sprites and over the
background.

Is there any way I can avoid this without using the mouse position?

Thanks in advance :)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] How to access var passed in URL from AS2 class

2008-12-16 Thread Ali Drongo
Hi there, I'm passing a variable to my swf through a query string like  
this:


htp://www.mydomain.com/index.html?passedPage=180

I have my main AS2 class that is the root class and have tried to  
access the variable like this:


trace(PASSPAGE SET:+this[passedPage]);
trace(PASSPAGE SET:+_level0.passedPage);
trace(PASSPAGE SET:+_root.passedPage);

each of these traces returns undefined.

I am compiling this SWF using MTASC which means I can't write the var  
as passedPage as MTASC says this is an unknown variable.


I have tried declaring passedPage as a public variable within the  
class though I still can't access it.


Any suggestions much appreciated.

Thanks
Ali


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


Re: [Flashcoders] Open PPT/WMV files from SWF?

2008-11-04 Thread Ali Drongo
Thanks for your replies Kevin and John. Unfortunately it seems that  
neither of your solutions will work for me.


Director
I don't have Director and would rather try and use a current  
technology if it is available and compile my application from Flash or  
using the Flex command-line compiler.


fscommand
As far as I can see using this route requires that the application to  
be launched must exist in a specific folder on the DVD. I need to be  
able to open WMVs and I don't believe there is a free viewer for this  
file type.


Any other suggestions very gratefully received, surely this is a  
pretty common action?


Thanks :)
Ali




On 3 Nov 2008, at 17:55, Kevin Newman wrote:


If you are using a Projector, you could look into fscommand - that has
the ability to execute applications:

http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary372.html

Kevin N.


Ali Drongo wrote:

Hiya, I'm building a DVD that will allow the user to open powerpoint
and wmv files on their computer by clicking on buttons.
The user will already have Windows Media Player and Powerpoint
installed and the files will exist on the DVD.

How can I trigger the actions to launch these files?

Thanks in advance for any help,
Ali


___
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] Advice on creating nodes on elastic

2008-10-03 Thread Ali Drongo
Hiya, I want to create something very similar to visualthesaurus.com,  
dyamically generating nodes with labels that are linked by elastic.


I'm thinking of using the APE from cove.org

If anyone can point me in the way of any tutorials/alternative  
approaches or existing source that would be amazing!



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


[Flashcoders] Can I avoid distorted bitmaps when scaling dynamically?

2008-09-18 Thread Ali Drongo
Hiya, I need to code some tweens that scale movieclips containing  
bitmaps. At the moment I'm using TweenMax and, when I scale the images  
they look distorted, the same way they do if you scale bitmaps on the  
timeline.


Does anyone know of a way I can avoid this distortion?

Thanks!
Ali


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


[Flashcoders] (Another) quick AS2 Delegate question

2008-09-16 Thread Ali Drongo
Hiya, my onLoadProgress / onLoadInit Delegate events won't fire. I've  
compared this class with other examples and I can't see where I'm  
going wrong.


Any help really really appreciated :)
Ali


Here's my code:


import PreLoader;
import Display;
import mx.utils.Delegate;


class LoadManager {
private var rootMC:MovieClip
public var loadStatus:LoadStatus;
private var preLoader:PreLoader;
private var display:Display;
private var initLoader:MovieClipLoader;
public var initListener:Object;


function LoadManager(m:MovieClip, d:Display){
rootMC = m;
display = d;
init();
}
private function init():Void
{
preLoader = new PreLoader(rootMC);
loadInitialAssets();
}
private function loadInitialAssets():Void
{
//create assetsHolder on main timeline
		var tmpContainer:MovieClip =  
rootMC.createEmptyMovieClip(assetsHolder,  
rootMC.getNextHighestDepth());

initLoader = new MovieClipLoader();
initListener = new Object();
initListener.onLoadProgress = Delegate.create(this, onProg);
initListener.onLoadInit = Delegate.create(this, onInit);
initLoader.addListener(initListener);
initLoader.loadClip(assets.swf, tmpContainer);  
}
	private function onProg(target:MovieClip, bytesLoaded:Number,  
bytesTotal:Number):Void

{
trace(onProg:+target+:+bytesLoaded);
}
private function onInit():Void
{
trace(onInit);
}
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] (Another) quick AS2 Delegate question

2008-09-16 Thread Ali Drongo

Sweet as a nut.
Thankyou Glen!





On 16 Sep 2008, at 12:46, Glen Pike wrote:


Hi,

   You should just be able to add yourself as a listener without
creating the extra object:

   initLoader.addListener(this);

   Then make sure you implement all the listener functions for MCL

   Glen

Ali Drongo wrote:

Hiya, my onLoadProgress / onLoadInit Delegate events won't fire. I've
compared this class with other examples and I can't see where I'm
going wrong.

Any help really really appreciated :)
Ali


Here's my code:


import PreLoader;
import Display;
import mx.utils.Delegate;


class LoadManager {
   private var rootMC:MovieClip
   public var loadStatus:LoadStatus;
   private var preLoader:PreLoader;
   private var display:Display;
   private var initLoader:MovieClipLoader;
   public var initListener:Object;


   function LoadManager(m:MovieClip, d:Display){
   rootMC = m;
   display = d;
   init();
   }
   private function init():Void
   {
   preLoader = new PreLoader(rootMC);
   loadInitialAssets();
   }
   private function loadInitialAssets():Void
   {
   //create assetsHolder on main timeline
   var tmpContainer:MovieClip =
rootMC.createEmptyMovieClip(assetsHolder,
rootMC.getNextHighestDepth());
   initLoader = new MovieClipLoader();
   initListener = new Object();
   initListener.onLoadProgress = Delegate.create(this, onProg);
   initListener.onLoadInit = Delegate.create(this, onInit);
   initLoader.addListener(initListener);
   initLoader.loadClip(assets.swf, tmpContainer);
   }
   private function onProg(target:MovieClip, bytesLoaded:Number,
bytesTotal:Number):Void
   {
   trace(onProg:+target+:+bytesLoaded);
   }
   private function onInit():Void
   {
   trace(onInit);
   }
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Glen Pike
01326 218440
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


Re: [Flashcoders] Can't set mc._visible property

2008-09-16 Thread Ali Drongo

Thanks Ian and Juan, I had forgotten about that!
Cheers,
Ali


On 16 Sep 2008, at 17:25, Juan Pablo Califano wrote:

When you use loadMovie (or loadClip, for that matter), the target  
clip is

replaced by the loaded clip (or swf) and loses all of its properties.

So, when you do this:

initLoader.loadClip(assets.swf, tmpContainer);

tmpContainer will have all its default values reset. And so,  
_visible will

be true, not false.

An option is nesting the target clip inside another empty clip and  
set the

visibility on the parent.

+ root
+  holder_mc
+  targetClip_mc

holder_mc._visible = false;
holder_mc.targetClip_mc.loadMovie(etc); //or use loadClip

Cheers
Juan Pablo Califano



2008/9/16 Ali Drongo [EMAIL PROTECTED]

I have no idea why this isn't working. I have created a container  
movieclip
then set it's visible property to false in a number of ways. I can  
only hide
the mc if I change the alpha but I need the clip to have no  
visibility so

the user can't interact with the buttons on it.

Any suggestions as to what I'm doing wrong thankfully received.
Thanks,
Ali



  private function loadInitialAssets():Void
  {
  //create assetsHolder on main timeline and make  
invisible

  var tmpContainer:MovieClip =
rootMC.createEmptyMovieClip(linksMC,  
display.getMCDepth(linksMC));



  //none of these work!
  rootMC[linksMC]._visible = false;
  rootMC.linksMC._visible = false;
  tmpContainer._visible = false;

  //set object in display
  display.setLinksMC(tmpContainer);
  initLoader = new MovieClipLoader();
  initLoader.addListener(preLoader);
  //swap depths with loader
  tmpContainer.swapDepths(preLoader);
  initLoader.loadClip(assets.swf, tmpContainer);
  }
___
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


Re: [Flashcoders] masking with multiple mc

2008-09-15 Thread Ali Drongo
->










  
  Re: [Flashcoders] masking with multiple mc
  
  
  
  
  
  








	

	flashcoders 

	
		
			-- Thread --
			-- Date --
			





			
		
	



	
	
	





		
			Re: [Flashcoders] masking with multiple mc
			Ali Drongo
			Mon, 15 Sep 2008 03:47:53 -0700
		






<!--
google_ad_client = "pub-7266757337600734";
google_alternate_ad_url = "http://www.mail-archive.com/blank.png";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel = "8427791634";
google_color_border = "FF";
google_color_bg = "FF";
google_color_link = "006792";
google_color_url = "006792";
google_color_text = "00";
//-->







[Flashcoders] masking with multiple mc
laurent


Re: [Flashcoders] masking with multiple mc
Ian Thomas



Re: [Flashcoders] masking with multiple mc
Ali Drongo
 





 






  
  





Reply via email to



  
  





 
 








 




<!--
google_ad_client = "pub-7266757337600734";
google_alternate_ad_url = "http://www.mail-archive.com/blank.png";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel = "8427791634";
google_color_border = "FF";
google_color_bg = "FF";
google_color_link = "006792";
google_color_url = "006792";
google_color_text = "00";
//-->







[Flashcoders] masking with multiple mc
laurent


Re: [Flashcoders] masking with multiple mc
Ian Thomas



Re: [Flashcoders] masking with multiple mc
Ali Drongo
 





 






  
  





Reply via email to



  
  





 
 







[Flashcoders] Quick Date question, how to add 1 second to Date?

2008-08-22 Thread Ali Drongo
Hiya, I can't see the wood for the trees with this one. I;m getting an  
error message of type mismatch when I try and add 1000 onto the date  
to increase it by 1 second for a timer.


I'm sure I am doing something wrong that is patently obvious but I'm  
not sure what and this is driving me mad!


Any help really appreciated, i have to get this working today :)

here's my code:


public function update():Void
{
	currTime +=1000;// gives Type mismatch in assignment statement: found  
Number where Date is required.

}


public function phpLoaded():Void
{   
//receives time since jan 1970 from php
var str:String = arguments.caller.lv.toString();
var myA:Array = new Array();
myA = str.split(=)
//get computer time
trace(servertime:+myA[0]);
connectedTime = new Date();
connectedTime += myA[0];
currTime = new Date();
currTime = connectedTime;
trace(=+currTime.toString());
clearInterval(secondInterval);
update();
secondInterval = setInterval(this, update, 1000);
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Quick Delegate AS2 question

2008-08-21 Thread Ali Drongo
Hi there, I'm using the Delegate class and can't figure out how to  
call methods of another class.


I think there is an easy answer to this, any suggestions whole- 
heartedly appreciated.

Thanks,
Ali


Here is the syntax I'm using:

import Thermometer

class Animator{

var therno:Thermometer

function Animator(){
thermo = _global.timeline.thermometer;
}

private function startNextQ():Void {
		Delegate.create(thermo, allowInteraction) // error: There is no  
property with the name 'allowInteraction'.

thermo.allowInteraction(true); //doesn't work }
}
}

///

btw I don't know if you guys are already aware of this but I came  
across a neat way to pass vars using Delegate from this blog http://animateinexile.blogspot.com/2008/01/i-delegate-class-caller.html



//import the Delegate class
import mx.utils.Delegate;

//add a variable to pass to your handler
something.onPress = Delegate.create(this, someHandler);
something.onPress.myVariable = pass me;

//now to access that variable use caller
function someHandler(){
var passedVar= arguments.caller.myVariable;
trace(passedVar);
}

thanks to luftbuefel for that!



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


[Flashcoders] pdf upload into swf?

2008-08-12 Thread Ali Drongo
Hiya, does anyone know the best way to get a PDF into my SWF as a  
viewable, scalable moveiclip?
I've done a bit of research on this but most articles I find are a few  
years old.
I would like the user to be able to upload a pdf then view it in the  
flash application and move it about, scale and rotate it. I've come  
across Alive PDF which seems to let you download a PDF from a flash  
app but I would like to do this the other way around, in AS2 or AS3.


Any suggestions / advice gratefully received :)
Thanks
Ali
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Upload PDF into SWF?

2008-08-12 Thread Ali Drongo
Thanks for all of your replies guys and apologies for sending this  
email a few times, the googlemail server hasn't been reporting that  
the mail was sent.


It sounds as if this is going to be tricky in AS.

I guess this could also be done in some server-side PHP relatively  
easily, maybe converted to a different file format that Flash can  
import first?


Thanks,
Ali




On 12 Aug 2008, at 01:24, Dave Watts wrote:


It is possible, however, to load the Acrobat ActiveX control into a
Flex application, and have it load a PDF. I'm not exactly sure how
this works, but the LiveCycle Workspace application does this. That
wouldn't really be helpful to the original poster though, I suppose.


As an AIR application, right?


No, that's the thing - it's just browser-based, with no client  
installation

other than Flash Player and Adobe Reader.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
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] Upload PDF into SWF?

2008-08-12 Thread Ali Drongo

Hi Ian,
My problem with Googlemail is that the web-page was saying 'sending'  
for a few minutes without telling me the message had been sent.  I got  
impatient after looking at the page telling me the message was sending  
and pressed again.


Thanks for your advice re the pdf upload/conversion. I need a Flash  
app that can have a pdf uploaded to it, which can then be manipulated  
by the user, and then saves a pdf on the server, I guess this can be  
done with some PHP that converts the pdf into a format that Flash can  
read and then converts the image flash produces back to a pdf.


Cheers,
Ali



On 12 Aug 2008, at 09:35, Ian Thomas wrote:

On Tue, Aug 12, 2008 at 9:27 AM, Ali Drongo  
[EMAIL PROTECTED] wrote:
Thanks for all of your replies guys and apologies for sending this  
email a
few times, the googlemail server hasn't been reporting that the  
mail was

sent.


Just so you know - this comes up a lot - Google Mail is 'clever'
enough to realise that you've received a copy of your own outgoing
mail via a mailing list, and so doesn't show it to you as a new mail -
no matter how many times you post.


It sounds as if this is going to be tricky in AS.

I guess this could also be done in some server-side PHP relatively  
easily,
maybe converted to a different file format that Flash can import  
first?


A serverside solution sounds the most likely answer to this one.

Ian
___
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] Upload PDF into SWF?

2008-08-11 Thread ali drongo
Hiya, does anyone know the best way to get a PDF into my SWF as a viewable,
scalable moveiclip?I've done a bit of research on this but most articles I
find are a few years old.
I would like the user to be able to upload a pdf then view it in the flash
application and move it about, scale and rotate it. I've come across Alive
PDF which seems to let you download a PDF from a flash app but I would like
to do this the other way around, in AS2 or AS3.

Any suggestions / advice gratefully received :)
Thanks
Ali
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Upload PDF into SWF?

2008-08-11 Thread ali drongo
Hiya, does anyone know the best way to get a PDF into my SWF as a viewable,
scalable moveiclip?I've done a bit of research on this but most articles I
find are a few years old.
I would like the user to be able to upload a pdf then view it in the flash
application and move it about, scale and rotate it. I've come across Alive
PDF which seems to let you download a PDF from a flash app but I would like
to do this the other way around, in AS2 or AS3.

Any suggestions / advice gratefully received :)
Thanks
Ali
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Upload PDF into SWF?

2008-08-11 Thread ali drongo
Hiya, does anyone know the best way to get a PDF into my SWF as a viewable,
scalable moveiclip?I've done a bit of research on this but most articles I
find are a few years old.
I would like the user to be able to upload a pdf then view it in the flash
application and move it about, scale and rotate it. I've come across Alive
PDF which seems to let you download a PDF from a flash app but I would like
to do this the other way around, in AS2 or AS3.

Any suggestions / advice gratefully received :)
Thanks
Ali
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to achieve blob magnification effect?

2008-08-07 Thread Ali Drongo
Thanks guys for all of your help, sebastian, eric and zeh. This is  
really helpful, I'll get to work!

Cheers
Ali


On 6 Aug 2008, at 22:55, Zeh Fernando wrote:

Exactly. Just draw the graphics and use a displacement map filter to  
do
it. Trying to do it all manually and with scale will be a huge pain  
and

the distribution won't be the safe as a surface that changes in scale
like the displacement map would do.

The only trick is creating the grayscale displacement map correctly,
which can be a bit daunting if you never done anything like it. Still,
it's the only right thing to do for this effect.


Zeh

sebastian wrote:

you could just use a bitmap distortion effect and draw the bars and
numbers on the bitmap to make it easier on the code - though the  
quality

of the numbers/bars may degrade as it distorts it.

if you go for that solution, it would be very fast to code, just have
the X position of the distortion gradient follow the mouses and  
voila,

your done.

Ali Drongo wrote:
Hi there, I want to achieve the effect of seamless magnification a  
bit
like the Mac OS dock but rather than having individual icons  
magnified
I want to have a seamless magnification kind of like a blob as in  
this

image:

http://dl.getdropbox.com/u/65140/Picture1.png

I think I could achieve this effect by using an onEnterFrame event  
and

having an outline created by a moving circle with curves that are
continually updated and the lines and  numbers of the thermometer  
that
scale according to mouse position but I'm not sure how to achieve  
the

gradients on the glass.

Is there an easier way of doing this?

Thanks
Ali


___
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Please help! quick bug fix needed, how to change Stage reference

2008-08-07 Thread Ali Drongo
Hi everyone, sorry to flood the list with requests, I will put a bit  
back soon ;)


I have created SWF that loads another SWF into it. This loaded SWF  
contains a movie clip that behaves like a camera zooming round the  
stage. This works fine when I load the external SWF in.


My problem is that now I need to have everything in one SWF but when I  
import the external SWF into the library the camera effect stops  
working. I think this is something to do with the reference to the  
stage though I have no idea how to get around this and the project is  
already overdue.


If someone could help out with this soon I would be so grateful.

Thanks,
Ali

Here's the code for the camera:

function camControl():Void {
trace(_parent._currentframe);
parentColor.setTransform(camColor.getTransform());
var scaleX:Number = sX/this._width;
var scaleY:Number = sY/this._height;
_parent._x = cX-(this._x*scaleX);
_parent._y = cY-(this._y*scaleY);
_parent._xscale = 100*scaleX;
_parent._yscale = 100*scaleY;
}
function resetStage():Void {
	var resetTrans:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa: 
100, ab:0};

parentColor.setTransform(resetTrans);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
// make frame invisible
this._visible = false;
// Capture stage parameters
var oldMode:String = Stage.scaleMode;
Stage.scaleMode = exactFit;
var cX:Number = Stage.width/2;
var cY:Number = Stage.height/2;
var sX:Number = Stage.width;
var sY:Number = Stage.height;
Stage.scaleMode = oldMode;
// create color instances for color
// transforms (if any).
var camColor:Color = new Color(this);
var parentColor:Color = new Color(_parent);
// Make the stage move so that the
// v-cam is centered on the
// viewport every frame
this.onEnterFrame = camControl;
// Make an explicit call to the camControl
// function to make sure it also runs on the
// first frame.
camControl();
// If the v-cam is ever removed (unloaded)
// the stage, return the stage to the default
// settings.
this.onUnload = resetStage;

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


[Flashcoders] How to achieve blob magnification effect?

2008-08-06 Thread Ali Drongo
Hi there, I want to achieve the effect of seamless magnification a bit  
like the Mac OS dock but rather than having individual icons magnified  
I want to have a seamless magnification kind of like a blob as in this  
image:


http://dl.getdropbox.com/u/65140/Picture1.png

I think I could achieve this effect by using an onEnterFrame event and  
having an outline created by a moving circle with curves that are  
continually updated and the lines and  numbers of the thermometer that  
scale according to mouse position but I'm not sure how to achieve the  
gradients on the glass.


Is there an easier way of doing this?

Thanks
Ali


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


[Flashcoders] Load and generate PDF from Flash?

2008-08-05 Thread Ali Drongo
Hi there, does anyone know if it is possible to upload a PDF into a  
Flash application and view it inside a movieclip so it can be resized?  
I believe this can be done using Flashpaper; Is it a tricky process?
Also, is it possible to save to PDF an image created in Flash or only  
PNG/JPG?


Thanks guys :)
Ali


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


[Flashcoders] How to stop NetStream throwing errors in my browser on close()

2008-07-31 Thread Ali Drongo
Hiya, I'm loading a bunch of flvs into netstream objects. I initiate  
the download of each and then as soon as I have the duration from the  
meta data I close the connection. This is giving me errors in my  
browser Operation could not be completed (WebKit Error Dom and i  
cant read the rest.

Does anyone know how I can stop this happening?
Thanks! :)
Ali


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


[Flashcoders] Nested MC relative position in AS2 (rotated clip)- localToGlobal?

2008-07-27 Thread ali drongo
Hi there, thanks for checking my post.
I have a rectangular movie clip that is nested inside of another clip. I
want to scale, rotate and reposition the holder clip so that the nested
movieclip is the same size as the stage.

This sounds like quite an easy thing to do but the rotation makes everything
go awry!

If someone could suggest how to code this or point me in the direction of
some advice or tutorials it would make my weekend :)
Thanks guys,
Ali
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Buffer flv from midpoint?

2008-07-24 Thread Ali Drongo
Hi there, I have to build a video player that plays a video with a  
number of chapters that the user can skip between. The chapters need  
to play sequentially also and also.


Is there a way  can get an flv to buffer from a new chosen point of  
playback? (i.e. if the user skips to chapter 6  before the whole thing  
is loaded)


If not I guess my best plan is to slice up my long flv into lots of  
little ones and make a custom seekbar that shows the chapters and  
allows the user to skip from chapter to chapter.


What do yous think?

Thanks!
Ali



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


Re: [Flashcoders] Buffer flv from midpoint?

2008-07-24 Thread Ali Drongo
Cheers Paul. that's a help. I've just realised that youtube's video  
player will buffer your video midway thru a movie,

Does anyone know how they do this?

Thanks :)

Ali


On 24 Jul 2008, at 11:47, Paul Jinks wrote:


hi Ali

I'm working on a similar project, also using progressive download.  
What

I'm doing is using a combination of 2 approaches:
1. Divide the flv into smaller sections - we've gone for 5-8 mins,  
which

is  still fairly big I think (otherwise your users are using bandwidth
they probably don't need) and
2. Within each clip have section chapter links that load in as they  
become
available. You'll need to use cue points for this. I still haven't  
worked

out the finer points of this approach, mostly because I'm using the
chapter links as 'summary' markers also.

HTH

Paul


On Thu, July 24, 2008 11:03 am, Ali Drongo wrote:

Hi there, I have to build a video player that plays a video with a
number of chapters that the user can skip between. The chapters need
to play sequentially also and also.

Is there a way  can get an flv to buffer from a new chosen point of
playback? (i.e. if the user skips to chapter 6  before the whole  
thing

is loaded)

If not I guess my best plan is to slice up my long flv into lots of
little ones and make a custom seekbar that shows the chapters and
allows the user to skip from chapter to chapter.

What do yous think?

Thanks!
Ali



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




--

Check out my website: http://www.pauljinks.co.uk :o)


___
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] Game source code / classes? I need to make a game quick!

2008-07-15 Thread Ali Drongo
Hiya, I need to make a game quick and wondered if anyone could direct  
me to some engines, classes or source that I could use. The game can  
be pretty straight forward, a shoot em up, tetris style game, I've  
come across loads out there I just wondered if anyone had any  
recommendations.

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


[Flashcoders] How do you do this? (animating gradient fill colours)

2008-07-08 Thread Ali Drongo
Hiya, how do you think you would do this? Can anyone point me to some  
tutorials or give me a snippet?

Cheers!
Ali

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


Re: [Flashcoders] How do you do this? (animating gradient fillcolours)

2008-07-08 Thread Ali Drongo
Thanks for your reply allandt, I can see how TweenLite could tween  
the color property of a movie clip but how is the gradient bit achieved?

Cheers,
Ali


On 8 Jul 2008, at 09:39, allandt bik-elliott (thefieldcomic.com) wrote:


not entirely sure but it sounds like a tweenmax color matrix tween

take a look at http://blog.greensock.com/

a

On Tue, Jul 8, 2008 at 9:20 AM, Ali Drongo  
[EMAIL PROTECTED] wrote:



Hiya, how do you think you would do this? Can anyone point me to some
tutorials or give me a snippet?
Cheers!
Ali

___
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


Re: [Flashcoders] How do you do this? (animating gradient fillcolours)

2008-07-08 Thread Ali Drongo

mint! thanks Jack thats great. And thanks for such a great tool :)

On 8 Jul 2008, at 16:04, Jack Doyle wrote:

You can use TweenMax's ability to tween hex colors and fire an  
onUpdate

callback that applies the new values, like this (AS3):

import flash.geom.*
import flash.display.*
import gs.*;

var gradientColors:Object = {left:0xFF, right:0xFF};
var gradientMatrix:Matrix = new Matrix();
gradientMatrix.createGradientBox(100, 100, 0, 0, 0);

function applyGradient():void {
this.graphics.beginGradientFill(GradientType.LINEAR,
[gradientColors.left, gradientColors.right], [1, 1], [0, 255],
gradientMatrix, SpreadMethod.PAD);
this.graphics.drawRect(0, 0, 100, 100);
}
applyGradient();

TweenMax.to(gradientColors, 2, {hexColors:{left:0x00FF00, right: 
0x660066},

onUpdate:applyGradient, delay:1});

The same sort of thing can be done in AS2 as well.

You can get TweenMax at www.TweenMax.com

Jack


-Original Message-
From: Ali Drongo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2008 3:47 AM
To: Flash Coders List
Subject: Re: [Flashcoders] How do you do this? (animating gradient
fillcolours)

Thanks for your reply allandt, I can see how TweenLite could tween
the color property of a movie clip but how is the gradient bit  
achieved?

Cheers,
Ali


On 8 Jul 2008, at 09:39, allandt bik-elliott (thefieldcomic.com)  
wrote:



not entirely sure but it sounds like a tweenmax color matrix tween

take a look at http://blog.greensock.com/

a

On Tue, Jul 8, 2008 at 9:20 AM, Ali Drongo
[EMAIL PROTECTED] wrote:

Hiya, how do you think you would do this? Can anyone point me to  
some

tutorials or give me a snippet?
Cheers!
Ali

___
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] What's happened to my var?

2008-07-07 Thread Ali Drongo
Hi there, I've noticed this happen before and can't figure out why. I  
have built a simple class that is passed a reference to the timeline.  
The class then moves an object on the timeline repeatedly using the  
TweenFilterLite class.


My problem is that the second time the moveShape method is called the  
moveAmt variable is undefined.


If anyone can suggest what's going on I would be really thankful!
Cheers
Ali

//Main.as
import gs.TweenFilterLite;
import utils.Numbers;
class Main {

var minTime:Number = 1;
var maxTime:Number = 2;
//number of pixels to move shape up or down
var moveAmt:Number = 15;
var _timeline:MovieClip;

function Main(timeline){
_timeline = timeline;
moveShape(_timeline.y1);
}
//moves a shape up or down
private function moveShape(m:MovieClip)
{
trace(moveShape:+m+ up:+m.up);
var moveDir:Number = 1;
//if movieclip is tagged as moving up
if(m.up){
moveDir = -1;   
m.up= false;
}else{
m.up=true;
}
var targetPos:Number = moveDir*moveAmt;
trace(moveDir:+moveDir);
trace(moveAmt:+moveAmt);
trace(target:+targetPos);
var tweenTime:Number = Numbers.randRange(minTime, maxTime);
		TweenFilterLite.to(m, tweenTime, {_y:targetPos,  
onComplete:moveShape, onCompleteParams:[_timeline.y1]});

}

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


Re: [Flashcoders] Saffron Modeler - what happened to it

2008-07-01 Thread Ali Drongo
I believe there's an open source collaboration that has been started  
to create something like Saffron. There's different rumours as to  
what is happening with Saffron so this group is building it's own:
http://flair-flash-flex-air.blogspot.com/2008/04/open-source-saffron- 
like-uml-tool.html

Ali



On 30 Jun 2008, at 17:11, Sidney de Koning wrote:

there is loads of activity on sam's twitter account http:// 
twitter.com/SamuelAgesilas


S.

On Jun 30, 2008, at 6:05 PM, Jiri Heitlager wrote:

Does somebody know what happend to the saffron UML modelling tool.  
The site http://www.levelofindustry.com/

is not showing any update anymore.

Jiri
___
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] Flickr- style components/libraries?

2008-06-26 Thread Ali Drongo
Hey there, I need to build a photo-sharing app that has photosets and  
allows each image to have a comment/title much like Flickr (as well  
as upload capabilities). Is anyone aware of anything already out  
there that might help me?

Thanks in advance:)
Ali

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


[Flashcoders] How to add bitmaps from my library to the stage AS3?

2008-06-19 Thread Ali Drongo
Hello there, thanks for checking my post. I have a bunch of jpgs that  
I've imported into my library and have given class names, they  
default to extend the BitmapData class. When I try and instantiate  
them I get an error message saying I need to pass them 2 arguments.  
Here is my code:


var formatImg = new LibImage();

var image:Bitmap = new Bitmap(formatImg);

mainMC.addChild(image);

Could someone let me know the correct syntax for doing this?
As I am using a document class I think I may need to use the [Embed 
(source='myPhoto.png')] syntax also


Thanks!
Ali


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


Re: [Flashcoders] Insert breakpoints and run debugger without Flash CS3?

2008-06-16 Thread Ali Drongo
Hi Kerry, apologies for posting the same question twice I did this by  
accident.


I'm compiling using the fcsh command line compiler from Textmate  
rather than the Flash IDE.


Thanks,
Ali


On 13 Jun 2008, at 17:46, Kerry Thompson wrote:


Ali Drongo wrote:


Hiya, is there a way I can add breakpoints to my code and execute it
block by block now I am not using the Flash IDE?


I don't know. What are you using instead of the IDE?

And, BTW, it's kind of impolite to post the same question twice.  
There was
only 7 minutes between your two posts. Give the folks some time to  
answer.


Cordially,

Kerry Thompson

___
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] Insert breakpoints and run debugger withoutFlash CS3?

2008-06-16 Thread Ali Drongo

Any chance of a translation?
:)

On 16 Jun 2008, at 09:20, EDELSTAR wrote:

Данный почтовый ящик не  
обрабатывает подгрузки, заявки и  
прочие сообщения. Вам нужно написать  
на адрес, присвоенный Вашему СПО.


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


Re: [Flashcoders] Insert breakpoints and run debugger withoutFlashCS3?

2008-06-16 Thread Ali Drongo

Do you think it'll send every time there's a flashcoders post?


On 16 Jun 2008, at 09:35, Ian Thomas wrote:


I'm guessing it's an away/vacation message.

Ian

2008/6/16 Ali Drongo [EMAIL PROTECTED]:

Any chance of a translation?
:)

On 16 Jun 2008, at 09:20, EDELSTAR wrote:

Данный почтовый ящик не  
обрабатывает подгрузки, заявки и  
прочие сообщения.
Вам нужно написать на адрес,  
присвоенный Вашему СПО.



___
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


Re: [Flashcoders] Insert breakpoints and run debuggerwithoutFlashCS3? - not an automatic reply..

2008-06-16 Thread Ali Drongo

Hey Karim, thanks for your tip.

Will this work in AS3 too?

Thanks,
Ali


On 16 Jun 2008, at 10:45, Karim Beyrouti wrote:

Hmmm... so, here is a little trick I used to use. In the _root of  
your movie, make a global function like;



_global.breakPoint = function (){
var setBreakPointHere = null;
}

And send a break point ( using the IDE at: setBreakPointHere );

Then simply call that function wherever you want to break, and step  
through your code. Also, another little trick for intervals/ 
onEnterFrame loops, is to use a low frame rate / high interval to  
better see what is happening in your code.


Hope this helps..


___
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] Insert breakpoints and run debugger without Flash CS3?

2008-06-13 Thread Ali Drongo
Hiya, is there a way I can add breakpoints to my code and execute it  
block by block now I am not using the Flash IDE?


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


[Flashcoders] Examples of blooming flower anims please

2008-06-06 Thread Ali Drongo
Hiya, if anyone could send me links to nice animations of flowers  
blooming in Flash I would be very grateful.

Cheers and have a great weekend,
Ali


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


[Flashcoders] How can I set stage dimensions ? (AS3)

2008-06-05 Thread Ali Drongo
Hiya, I can't understand why the dimensions I've set in my app class  
aren't being implemented. If someone could have a look at my code and  
show me the error of my ways I'd be very happy :)

Cheers,
Ali

/

package {
import flash.events.*;
import flash.display.Sprite;
import flash.display.Shape;
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.IOErrorEvent;
import com.adobe.serialization.json.JSON;
import flash.display.StageScaleMode;
[SWF( backgroundColor='0xE3FF12', frameRate='30', width='100',  
height='100')]


public class MyApp extends Sprite {

private var loader:URLLoader;
private var request:URLRequest;
private var objCount:Number;
public function MyApp()
{
super();
		trace(- - - stagewidth:+stage.stageWidth+   
height:+stage.stageHeight);

//tracing as stagewidth:820  height:808  ?
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Surround sound possible in flash?

2008-06-04 Thread Ali Drongo

Can't seem to find anything on this.

Has anyone any experience of this?

Cheers,
Ali


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


[Flashcoders] AS3 JSON.decode() not working :(

2008-06-03 Thread Ali Drongo
Hiya, I can't seem to get the JSON.decode() method to work. I have  
read a couple of blog tutorials and the string is tracing fine but  
when I pass it I get the message:


Error: Unexpected j encountered
at com.adobe.serialization.json::JSONTokenizer/parseError()
at com.adobe.serialization.json::JSONTokenizer/getNextToken()
at com.adobe.serialization.json::JSONDecoder/nextToken()
at com.adobe.serialization.json::JSONDecoder()
at com.adobe.serialization.json::JSON$/decode()
at JSONExample/decodeJSON()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()


I'm not sure what I'm doing wrong, if someone could point me in the  
right direction it would be a big help.

Cheers!
Ali


///
my code:

private function createLoader():void
{
trace(createLoader);
			var request:URLRequest = new URLRequest(http://www.flickr.com/ 
services/feeds/photos_public.gne?tags=flexformat=json);

loader = new URLLoader();
loader.load(request);
loader.addEventListener(Event.COMPLETE, decodeJSON)
}   
private function decodeJSON(event:Event):void
{
trace(event target:+event.target.data);
var my_ar:Array = JSON.decode(event.target.data) ;
}





ps I'm also getting these error msgs when I compile:

/Volumes/1alic07/AC_WorkingFolder/Experiments/JSONExample/src/com/ 
adobe/serialization/json/JSONEncoder.as(54): col: 19 Warning: The  
super() statement will be executed prior to entering this  
constructor.  Add a call to super() within the constructor if you  
want to explicitly control when it is executed.


public function JSONEncoder( value:* ) {
^

/Volumes/1alic07/AC_WorkingFolder/Experiments/JSONExample/src/com/ 
adobe/serialization/json/JSONDecoder.as(59): col: 19 Warning: The  
super() statement will be executed prior to entering this  
constructor.  Add a call to super() within the constructor if you  
want to explicitly control when it is executed.


public function JSONDecoder( s:String ) {
^

/Volumes/1alic07/AC_WorkingFolder/Experiments/JSONExample/src/com/ 
adobe/serialization/json/JSONTokenizer.as(59): col: 19 Warning: The  
super() statement will be executed prior to entering this  
constructor.  Add a call to super() within the constructor if you  
want to explicitly control when it is executed.


public function JSONTokenizer( s:String ) {
^

/Volumes/1alic07/AC_WorkingFolder/Experiments/JSONExample/src/com/ 
adobe/serialization/json/JSONToken.as(52): col: 19 Warning: The super 
() statement will be executed prior to entering this constructor.   
Add a call to super() within the constructor if you want to  
explicitly control when it is executed.


public function JSONToken( type:int = -1 /*  
JSONTokenType.UNKNOWN */, value:Object = null ) {

^

/Volumes/1alic07/AC_WorkingFolder/Experiments/JSONExample/deploy/ 
JSONExample.swf (4558 bytes)

(fcsh) compile 1
Loading configuration file /Developer/SDKs/flex_sdk_3/frameworks/flex- 
config.xml
Loading configuration file /Volumes/1alic07/AC_WorkingFolder/ 
Experiments/JSONExample/src/JSONExample-config.xml
Recompile: /Volumes/1alic07/AC_WorkingFolder/Experiments/JSONExample/ 
src/JSONExample.as

Reason: The source file or one of the included files has been updated.
Files changed: 1 Files affected: 0
/Volumes/1alic07/AC_WorkingFolder/Experiments/JSONExample/src/com/ 
adobe/serialization/json/JSONEncoder.as(54): col: 19 Warning: The  
super() statement will be executed prior to entering this  
constructor.  Add a call to super() within the constructor if you  
want to explicitly control when it is executed.


public function JSONEncoder( value:* ) {
^

/Volumes/1alic07/AC_WorkingFolder/Experiments/JSONExample/src/com/ 
adobe/serialization/json/JSONDecoder.as(59): col: 19 Warning: The  
super() statement will be executed prior to entering this  
constructor.  Add a call to super() within the constructor if you  
want to explicitly control when it is executed.


public function JSONDecoder( s:String ) {
^

/Volumes/1alic07/AC_WorkingFolder/Experiments/JSONExample/src/com/ 
adobe/serialization/json/JSONTokenizer.as(59): col: 19 Warning: The  
super() statement will be executed prior to entering this  
constructor.  Add a call to super() within the constructor if you  
want to explicitly control when it is executed.


public function 

[Flashcoders] Flex or Flash better for this?

2008-05-29 Thread Ali Drongo
Hi there, I'm starting work on a project that displays information  
from a database, generating text fields and loading swf clips and  
pngs dynamically with the layout defined in the data passed from the  
database (this will specify an xml file from a library that holds the  
layout for the page that will display the content).


I was going to build this using a bunch of classes in Flash in AS3  
and have started planning this out but then wondered if it might be  
simpler to do this in Flex as it uses XML to define the layout  
(though I am thinking of using a library of xml files containing  
spefic layouts for each page). I have little experience of using Flex  
and lots of experience using Flash AS2  3.


I imagine that it's possible to update the MXML on the fly to  
generate new text fields and specify their properties as well as  
loading SWFs dynamically.


My questions are;   

1) is it easy to update the MXML dynamically to generate textfields  
and movieclips that display loaded SWFs /PNGs?

2) if so, can anyone point me to some tutorials that might help?
3) what are the benefits of doing this in Flex rather than Flash CS3?

Cheers guys and girls,
Ali

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


[Flashcoders] AS3 GModeler?

2008-05-28 Thread Ali Drongo
Hiya, I'm starting planning an AS3 project and have previously used  
Gmodeler to plan my classes.
Are there any similar apps that will generate my stub classes in the  
same way GModeler did for AS2?

Or can anyone recommend other AS3 // OOP planning apps they find useful?
Cheers
Ali


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


[Flashcoders] Why is my method not firing?

2008-05-22 Thread Ali Drongo
Hiya, I have a custom class with a loadvars object to post to a php  
script. For some reason my failed method won't fire.


Can anyone suggest why?

Thanks :)
Ali

//code from inside my class

//this is not firing
function failed(){
trace(failure fired)
}

function onXmlLoaded(success:Boolean) {
trace(onXmlLoaded:+success);
   if (success) {
trace(success);
sent();
   } else {
//this traces
trace(failure);
//but this method wont fire :(
failed();
   }
}

function sendData() {
trace(sendData);
result_lv = new LoadVars();
result_lv.onLoad = Delegate.create(this, onXmlLoaded);
send_lv = new LoadVars();
send_lv.ToAddress = email_txt.text;
send_lv.Language = _root.lang;
trace(vars sending:+send_lv.ToAddress+:+send_lv.Language);
send_lv.sendAndLoad(card_sender.php, result_lv, POST);  
}



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


[Flashcoders] Fastest way to compile AS2 SWFs from Textmate?

2008-05-19 Thread Ali Drongo
Hiya, I normally code in Textmate and use the Flash IDE to compile my  
SWFs. I was wondering if there was a faster way to compile my AS2 SWFs?

I'm on a Mac btw.

Cheers!

Ali


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


[Flashcoders] Can't embed Russian Fonts

2008-05-15 Thread Ali Drongo
Hi there, I'm trying to display Russian characters in my application  
but they will not show, I just get spaces and exclamation marks.


I have embeded all of the character sets that I can for my font  
(Serifa Blk) but the words will not show. If I use device fonts the  
words display correctly (though I have to embed the fonts so they  
render correctly).


If someone could advise me what I'm doing wrong I would be really  
grateful. I have a tight deadline on this!


Cheers,
Ali

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


[Flashcoders] Dynamically animating writing effect

2008-02-10 Thread ali drongo
Hiya, I am wanting to create an effect where text will appear on the screen
as if it is being written by a pen. I am going to set about writing a class
to achieve this and wanted to get the group's thoughts on if I am going
about this the right way.
My idea is that I could create all of my text in textfield then convert the
textfield somehow into a BitmapData object, then I could use the BitmapData
class to scan through the image starting at the top left and figure out
which pixels are coloured by the text and then I duplicate the BitmapData
object and colour the pixels gradually. My class would need to know which
angle the text should be appearing (writing) in. The font I use would have
to use 'joined up' writing also obv.

Does anyone think this would work or is there a simple way to achieve what I
am looking to do?

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


[Flashcoders] AS2 Delegate event won't fire in my multi swf load class

2008-01-31 Thread ali drongo
Hiya, I've written a class that will load multiple SWFs and then call a
passed function when complete. My problem is that when all the movies have
downloaded the passed function won't fire. If anyone could help me figure
this that would be really helpful.Cheers,
Ali



//
//  LoadChecker

// this class is passed am array and calls a function when all of the
objects in the array are loaded
//
//  Created by Alistair Colling on 2008-01-30.
//  Copyright FPP Design Ltd 2008. All rights reserved.
//
// pass mcs to load and start loading

import mc.*;
import mx.utils.Delegate;


class mc.LoadChecker {
private var allLoadedFn:Function;
public var itemsToLoad_ar:Array;
private var itemsLoaded:Array;

 public function LoadChecker(a:Array, f:Function) {
trace(loadchecker! created:+a.toString());
allLoadedFn = f;
itemsLoaded = new Array();
itemsToLoad_ar = a;
for (var i = 0; iitemsToLoad_ar.length; i++) {
var arRef:Number = i;
var tempLoad:LoadObj = itemsToLoad_ar[arRef];
myLoader(tempLoad.targURL,tempLoad.targMC);
}
}

 function myLoader(str, mc) {
trace(MY LOADER   loading file:+str+   mc:+mc);
var loadListener:Object = new Object();
var tmpFun:Function = mcLoaded;
loadListener.onLoadInit = function(target_mc:MovieClip):Void  {
tmpFun.apply(null, [target_mc]);
};
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
//create holder inside of movie clip
var holder:MovieClip = mc.createEmptyMovieClip(holder,
mc.getNextHighestDepth());
mcLoader.loadClip(str,holder);

}
function mcLoaded(mcl:MovieClip) {
trace(a movie is loaded:+mcl);
itemsLoaded.push(mcl);
if(itemsLoaded.length==itemsToLoad_ar.length){
trace(all movies are now loaded);
allLoadedFn.apply(null);
}
}
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Bound variable not updating textField AS2

2008-01-10 Thread ali drongo
Hiya, I'm having quite a problem with a textfield that has a variable
defined in the properties bar that it is bound to. The variable that is set
in the var field is a property of an object like this: ActionScript Code:
object.textProperty

The object is initialized and I can trace the property from the frame that
the textField exists on though the teftfield will not display it.
This isn't a text embedding problem as I'm using system fonts and tracing
the .text property of the textfield so I know what's in it.
I have tried setting the variable to update every second and also
re-initializing the object and adding the property again to try and get the
textfield to update but it's not working.

I can't get the textfield to read a variable that is a property of an object
that exists on the same frame so this isn't a targetting issue.

I can get the textfield to show and update a variable that is declared in
the normal way: ActionScript Code:
var myVar:String = my test string;

but once it is inside an object it won't work.

I have inherited this project and so I can't change the way the variables
are targeted as it will be too much work (there are over 120 text fields)
all I can do is update the variable. The original project worked fine with
this technique but now it does not seem to be working at all, I'm not sure
how I've broken it!

If anyone has any suggestions I would be really glad to hear them as I am
very very stuck and have spent hours trying to solve this!

Thanks for your help,
Ali
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders