[Flashcoders] MP4 not displaying video (just playing audio)

2008-06-26 Thread Michael Trim
I have created a Flex app that has the Flash CS3 FLVPlayer component
packaged to swc.

The player plays a number of movies that have all been encoded to mp4
from Premiere CS3 from a variety of sources, most ripped from DVDs to
avi (tourist info dvds supplied to me).

I am having problems with one movie which was supplied to me as an flv,
which I converted to mp4 using Free Studio 3.1.

I have to play as mp4 as I can't guarantee the flv mime type will be
configured on the hosting environment. 

This movie which plays fine in QuickTime but when played in the app I
have created I only get audio playback? (sometimes retaining the video
image of the previous playing video).

I have also tried converting the mp4 out to raw AVI and then re-encoding
to mp4 using the same settings in Premiere as the others which work
fine.

Any ideas gratefully received.

Thanks,

Michael


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


[Flashcoders] Tweening a Donut Shape / Ripples / Concentric Circles

2008-06-17 Thread Michael Trim
Hi Flashcoders,

I have coded a donut shape by drawing two concentric circles (one
appears to punch out the other) then tweening (using Tweener) the width
and height of both circles for the same amout of time and by their
widths + the same increase.

This gives the effect of a circle getting larger but the distance
between the inner radius and outer radius remaining the same (which is
very important to the effect I'm after.

Stagger a load of these going off and you have a nice two tone ripple
effect, however you can't overlay this over an image or attach an alpha
effect as actually it is a load of solid circles, not an actual donut
shape with a hole in the middle.

I am aware you can create a donut shape by drawing both circles in the
same fill (really punching the hole in the middle), but when this is
scaled the width between the inner and outer radius scales as well. 

The only way I can think to solve this is to redraw the donut each time
using an EnterFrame event, but this seems wrong and I would prefer to be
using Tweener for nice/easy easing and the like.

All ideas gratefully received.

Regards,

Michael

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


RE: [Flashcoders] Tweening a Donut Shape / Ripples / ConcentricCircles

2008-06-17 Thread Michael Trim
Thanks Zeh, both of these options make sense.

I always forget about onUpdate even though I have used it before.

I'm not that keen on using strokes but if this is likely to improve
performance, I will.

Will take a look at both. 

Michael


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeh
Fernando
Sent: 17 June 2008 16:53
To: Flash Coders List
Subject: Re: [Flashcoders] Tweening a Donut Shape / Ripples /
ConcentricCircles

If you can use the new line drawing features, and if your container is 
not resized in any other way, you could create a simple circle with no 
fill but with a given stroke set to scale on no dimension. That way, 
scaling the circle container would increase the overall circle size, but

the stroke would remain at the same weight.

If this is not practical, you can create one additional function that 
redraws the circle every time like you mentioned. This doesn't need to 
be done onEnterFrame - it's actually better to either create a 
getter/setter inside your movieclip (a function that redraws your object

based on the scale or some other property) or a function that gets 
called by the tween every time some variable (like scale or some other 
property) is changed, by using Tweener's onUpdate parameter.

Zeh

Michael Trim wrote:
 Hi Flashcoders,
 
 I have coded a donut shape by drawing two concentric circles (one
 appears to punch out the other) then tweening (using Tweener) the
width
 and height of both circles for the same amout of time and by their
 widths + the same increase.
 
 This gives the effect of a circle getting larger but the distance
 between the inner radius and outer radius remaining the same (which is
 very important to the effect I'm after.
 
 Stagger a load of these going off and you have a nice two tone ripple
 effect, however you can't overlay this over an image or attach an
alpha
 effect as actually it is a load of solid circles, not an actual donut
 shape with a hole in the middle.
 
 I am aware you can create a donut shape by drawing both circles in the
 same fill (really punching the hole in the middle), but when this is
 scaled the width between the inner and outer radius scales as well. 
 
 The only way I can think to solve this is to redraw the donut each
time
 using an EnterFrame event, but this seems wrong and I would prefer to
be
 using Tweener for nice/easy easing and the like.
 
 All ideas gratefully received.
 
 Regards,
 
 Michael
 
 ___
 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] Popup blocker triggered

2007-09-14 Thread Michael Trim
Can anyone tell me why this triggers the IE7 popup blocker?

Was supplied to me in a banner from a client and was surprised by the
behavior. 

--

Stage.addEventListener(MouseEvent.CLICK, reportClick);

function reportClick (myevent:MouseEvent):void {
trace(click!);


var url:String = http://foo.com/click.asp?g=24b=256;;
var request:URLRequest = new URLRequest(url);
try {
  navigateToURL(request, _blank); // second argument is target
} catch (e:Error) {
  trace(Error occurred!);
}
};
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flash CS3 UI Bug

2007-09-06 Thread Michael Trim
Why are the panels in Flash CS3 (Windows) set to always on top?  When I

test movie in Flash, the test movie window goes BEHIND ALL PANELS?

+1 it's a very annoying 'feature'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



RE: [Flashcoders] Classes 101 [was: Version control and Flash ]

2007-08-13 Thread Michael Trim
Not all classes have to extend MovieClip (in fact, most shouldn't, and 
some would argue none should).

Just as an aside, I'd be interested to hear why some would argue that
you should never extend MovieClip? (Surely you have to for the Document
class) or is this a higher level theoretical argument?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] [OT] Changing line widths in extremely complex imported EPS

2007-08-03 Thread Michael Trim
Hi Flashcoders,

Apologies as this is not a coding question (unless there is a code based
solution? But I doubt it).

I have very complex imported eps (world map) and I need to convert ALL
the line widths in the clip to hairline, there are hundreds (if not
thousands of vectors nested in multiple groups.

If I ungroup all the vectors it loses integrity, therefore changing
these manually will involve clicking into every group (which in itself
can be quite tricky!) and is going to be a very time consuming job.

I may have just have to face this Herculean clean up job but if anyone
has any ideas I would be very grateful.

TIA,

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

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


RE: [Flashcoders] Textfield over Bitmap Issue

2007-07-30 Thread Michael Trim
Thank you Zeh, will give that a try.

Michael

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeh
Fernando
Sent: 26 July 2007 17:25
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Textfield over Bitmap Issue

 Is the following a known issue? If so anyone know what I can do about
 it? If you look at the screenshot (linked below) there is a coloured
 line along the top of the word Germany (it appears all around while 
 tweening, on the outline of the textbox).

Hey Michael,

I've seen this happening before on different situations, but it's not 
very consistent - it basically depends on the number of objects piled on

top of each other, player version, amount of data on memory, etc. 
There's no sure way to trigger it, nor to fix it.

The only solution I've found is changing the way some of the objects are
rendered - either by using different blend modes, turning on
cacheAsBitmap, or applying dummy filters - just something to make it
snap out of the wrong rendering path. At one previous work I've even
found that if I had one transparent box on top of the offending area,
it'd force a complete redraw on every frame and fix the issue
completely.

Also, if you're using the beta player, well, it has a lot more of these
issues than the normal versions, so I wouldn't use it as a reference.


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

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

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


[Flashcoders] Textfield over Bitmap Issue

2007-07-26 Thread Michael Trim
Is the following a known issue? If so anyone know what I can do about
it?

If you look at the screenshot (linked below) there is a coloured line
along the top of the word Germany (it appears all around while tweening,
on the outline of the textbox).

It is a dynamically created textfield over a dynamically loaded bitmap
with smoothing applied as the parent sprite is all scaled from 0.3 to 1
(shown at scale of 1) using Tweener.

It's a real issue, as when it's tweening in particular, it's very
obvious.

I thought it might be the AntiAliasType.ADVANCED but it appears when I
use NORMAL too.

http://www.ibltd.com/static/example/postcard.png

All thoughts gratefully received.

Michael


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

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


[Flashcoders] Object Detection AS3

2007-07-19 Thread Michael Trim
Hi Flashcoders,

Learning AS3 in the deep end at the moment, so excuse the questions if
too newb for this list.

In AS2 I may have done something like the following.

_1___

if(myObject){

 myObject.removeMovieClip();

}

this.attachMovie(MyObject,myObject,1);
_


What would similar code look like in AS3? As 


_2

removeChild(myObject); 
_

fails if myObject doesn't exist yet as does 


_3___

if(myObject) 
_

Which I don't think you can do anyway?

It's the last one I'm really interested in, how do you detect if
something exists?

Thanks

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

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


RE: [Flashcoders] Object Detection AS3

2007-07-19 Thread Michael Trim
Thanks for the solution, that's neat. Agree that try-catch is not an
ideal solution (but thank you too Sunil).

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johannes
Nel
Sent: 19 July 2007 16:40
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Object Detection AS3

it should be fine, but i come from a background where catching an error
is
not considered a sollution.
its an error and you should deal with it, not a very real and potential
use
case

On 7/19/07, Sunil Jolly [EMAIL PROTECTED] wrote:

 If you use the try, catch method that shouldn't be a problem.

 ---
 try {
 removeChild(myObject);
 } catch (e:Error) {
 //object doesn't exist as a child, do nothing
 }
 -

 That should fail unless myObject has been added to the stage.

 Or am I missing something here?

 Sunil


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
Johannes
 Nel
 Sent: 19 July 2007 15:40
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Object Detection AS3

 the problem with your approach is that if the object does exist but is
 not
 on the display tree it will fail


 On 7/19/07, Sunil Jolly [EMAIL PROTECTED] wrote:
 
 
  This works for me:
 
  -
 
  var myObject:Object;
 
  if (myObject) {
  removeChild(myObject);
  }
 
  ---
 
  Another method would be to catch the error:
 
  -
 
  try {
  removeChild(myObject);
  } catch (e:Error) {
  //do nothing
  }
 
  --
 
  Or you can compare it to null:
 
  --
 
  if (myObject != null) {
  removeChild(myObject);
  }
 
  --
 
  Sunil
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
 Michael
  Trim
  Sent: 19 July 2007 13:58
  To: flashcoders@chattyfig.figleaf.com
  Subject: [Flashcoders] Object Detection AS3
 
  Hi Flashcoders,
 
  Learning AS3 in the deep end at the moment, so excuse the questions
if
  too newb for this list.
 
  In AS2 I may have done something like the following.
 
  _1___
 
  if(myObject){
 
  myObject.removeMovieClip();
 
  }
 
  this.attachMovie(MyObject,myObject,1);
  _
 
 
  What would similar code look like in AS3? As
 
 
  _2
 
  removeChild(myObject);
  _
 
  fails if myObject doesn't exist yet as does
 
 
  _3___
 
  if(myObject)
  _
 
  Which I don't think you can do anyway?
 
  It's the last one I'm really interested in, how do you detect if
  something exists?
 
  Thanks
 
  Michael
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



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

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

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




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

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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting

[Flashcoders] Font in Library problems

2007-07-17 Thread Michael Trim
Can anyone tell me why the following isn't displaying any text?

No Compiler errors, all traces show objects existing?

If I remove the textformat all together it appears on stage in times.


__


package com.instantbusiness.client.project.display.map{

import flash.display.Sprite;

import flash.text.*;
import flash.events.MouseEvent;
import ClientRegular;




public class Label extends Sprite{

private var labelText:TextField;
private var labelFormat:TextFormat;
private var clientRegular:Font = new ClientRegular();   


public function Label(){

trace(Label:  + this +  \n);


clientRegular = new ClientRegular();

trace(clientRegular: +clientRegular);

}   


public function setText(labelStr:String){

labelFormat  = new TextFormat();
labelFormat.color = 0xFF;
labelFormat.size = 20;
labelFormat.font = clientRegular.fontName;

trace(clientRegular.fontName
+clientRegular.fontName);

trace(labelFormat);

labelText = new TextField();

labelText.embedFonts = true;
labelText.autoSize = TextFieldAutoSize.LEFT;
labelText.antiAliasType =
AntiAliasType.ADVANCED;

labelText.selectable = false;
labelText.mouseEnabled = true;
labelText.setTextFormat(labelFormat);
trace(labelText);
trace(labelText.getTextFormat());
labelText.text = labelStr;
addChild(labelText);

}


}

}

__

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

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


RE: [Flashcoders] Font in Library problems

2007-07-17 Thread Michael Trim
That's a mistake, I've tried a lot of variations to get this working!

I can't find an example online where this works inside a class, all the
documentation has timeline examples (which I can get working with same
font).


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Ngo
Sent: 17 July 2007 15:29
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Font in Library problems

Not sure where your error is, but can I ask why you're instantiating
your
Font instance twice?


David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Trim
Sent: Tuesday, July 17, 2007 10:12 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Font in Library problems

Can anyone tell me why the following isn't displaying any text?

No Compiler errors, all traces show objects existing?

If I remove the textformat all together it appears on stage in times.


__


package com.instantbusiness.client.project.display.map{

import flash.display.Sprite;

import flash.text.*;
import flash.events.MouseEvent;
import ClientRegular;




public class Label extends Sprite{

private var labelText:TextField;
private var labelFormat:TextFormat;
private var clientRegular:Font = new ClientRegular();   


public function Label(){

trace(Label:  + this +  \n);


clientRegular = new ClientRegular();

trace(clientRegular: +clientRegular);

}   


public function setText(labelStr:String){

labelFormat  = new TextFormat();
labelFormat.color = 0xFF;
labelFormat.size = 20;
labelFormat.font = clientRegular.fontName;

trace(clientRegular.fontName
+clientRegular.fontName);

trace(labelFormat);

labelText = new TextField();

labelText.embedFonts = true;
labelText.autoSize = TextFieldAutoSize.LEFT;
labelText.antiAliasType =
AntiAliasType.ADVANCED;

labelText.selectable = false;
labelText.mouseEnabled = true;
labelText.setTextFormat(labelFormat);
trace(labelText);
trace(labelText.getTextFormat());
labelText.text = labelStr;
addChild(labelText);

}


}

}

__

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

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

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

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

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


RE: [Flashcoders] Font in Library problems

2007-07-17 Thread Michael Trim
Doh! *blushes* thanks David.

Sometimes you can look at something too long.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Ngo
Sent: 17 July 2007 16:15
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Font in Library problems

Ah. Try setting the textformat AFTER you set the text.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Trim
Sent: Tuesday, July 17, 2007 10:47 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Font in Library problems

That's a mistake, I've tried a lot of variations to get this working!

I can't find an example online where this works inside a class, all the
documentation has timeline examples (which I can get working with same
font).


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Ngo
Sent: 17 July 2007 15:29
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Font in Library problems

Not sure where your error is, but can I ask why you're instantiating
your
Font instance twice?


David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Trim
Sent: Tuesday, July 17, 2007 10:12 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Font in Library problems

Can anyone tell me why the following isn't displaying any text?

No Compiler errors, all traces show objects existing?

If I remove the textformat all together it appears on stage in times.


__


package com.instantbusiness.client.project.display.map{

import flash.display.Sprite;

import flash.text.*;
import flash.events.MouseEvent;
import ClientRegular;




public class Label extends Sprite{

private var labelText:TextField;
private var labelFormat:TextFormat;
private var clientRegular:Font = new ClientRegular();   


public function Label(){

trace(Label:  + this +  \n);


clientRegular = new ClientRegular();

trace(clientRegular: +clientRegular);

}   


public function setText(labelStr:String){

labelFormat  = new TextFormat();
labelFormat.color = 0xFF;
labelFormat.size = 20;
labelFormat.font = clientRegular.fontName;

trace(clientRegular.fontName
+clientRegular.fontName);

trace(labelFormat);

labelText = new TextField();

labelText.embedFonts = true;
labelText.autoSize = TextFieldAutoSize.LEFT;
labelText.antiAliasType =
AntiAliasType.ADVANCED;

labelText.selectable = false;
labelText.mouseEnabled = true;
labelText.setTextFormat(labelFormat);
trace(labelText);
trace(labelText.getTextFormat());
labelText.text = labelStr;
addChild(labelText);

}


}

}

__

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

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

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

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

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

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

[Flashcoders] Clashing Class Names

2007-06-22 Thread Michael Trim
Hi Flashcoders,

Can somebody confirm my worst suspicions (think I am answering my own
question here)

swfA loads swfB

Both swfs are compiled from separate classpaths but share a similar
class structure, so

swfA compiles classes like

swfAProject/com/UserInterface/Application.as
swfAProject/com/UserInterface/UIButton.as

and swfB compiles

swfBProject/com/UserInterface/Application.as
swfBProject/com/UserInterface/UIButton.as

I'm presuming that when swfB is loaded the _global.Application class is
overwritten? As when I do this the whole thing spins off into 100% CPU
hell.

To separate these out will I need to restructure them to be...? 

CommonProject/com/A/UserInterface/Application.as
CommonProject/com/B/UserInterface/Application.as

(intergrating the code is not an option at this point).

What would people suggest as best practice here? Apologies if this is a
bit of a newb question on OO.

Many thanks,

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

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


RE: [Flashcoders] Clashing Class Names

2007-06-22 Thread Michael Trim
Hi Ian,

Yes a quick replace all in the classes for swfb (with careful checking
of the results) has solved the problem for now. (Although having to
update all the class paths in the library manually was a pain, I hope
this is easier in CS3).

Thanks for your reply it's interesting to know that that is the actual
behavior.

Michael



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: 22 June 2007 15:04
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Clashing Class Names

Michael,
  No, you have that backwards, but it's a similar problem -- the
_global.Application class _isn't_ overwritten. The flash player
operates a class cache -- it always stores (and uses) the first class
of a particular classpath/name that it encounters.

  So in your case, when swfA loads, Flash caches a class called
com.UserInterface.Application, and uses _that same class_ when swfB
loads, ignoring swfB's implementation. Every attempt on your part
beyond that point to refer to Application() will refer to swfA's
version.

  You can get around this (as a hack) by calling delete
_global.__Packages.com.UserInterface.Application; before loading swfB.
Then swfB will use its own version of Application. But then swfA will
have problems - it's not a brilliant solution in your case.

What you really need is to separate the classpaths out in the way that
you suggest. That'll certainly fix it.

Cheers,
  Ian

On 6/22/07, Michael Trim [EMAIL PROTECTED] wrote:
 Hi Flashcoders,

 Can somebody confirm my worst suspicions (think I am answering my own
 question here)

 swfA loads swfB

 Both swfs are compiled from separate classpaths but share a similar
 class structure, so

 swfA compiles classes like

 swfAProject/com/UserInterface/Application.as
 swfAProject/com/UserInterface/UIButton.as

 and swfB compiles

 swfBProject/com/UserInterface/Application.as
 swfBProject/com/UserInterface/UIButton.as

 I'm presuming that when swfB is loaded the _global.Application class
is
 overwritten? As when I do this the whole thing spins off into 100% CPU
 hell.

 To separate these out will I need to restructure them to be...?

 CommonProject/com/A/UserInterface/Application.as
 CommonProject/com/B/UserInterface/Application.as

 (intergrating the code is not an option at this point).

 What would people suggest as best practice here? Apologies if this is
a
 bit of a newb question on OO.

 Many thanks,

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

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

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

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

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


[Flashcoders] Memory Leaks

2007-05-09 Thread Michael Trim
Hi Flashcoders,

What techniques do list members use for tracking down memory leaks in AS2?

It's a problem with repetitive functions called by setInterval events.

It's slow and cumulative but if you leave it on you can see the PF and Mem 
Usage, creep up. 

Can anyone out there share any of their tips, I'm tearing my hair out here, 

Thanks,

Michael




Michael Trim
Senior Producer
Instant Business
a: 8-10 Colston Avenue, 
    Bristol, UK, BS1 4ST
t: +44 (0) 117 915 5175
msn:    [EMAIL PROTECTED]
w:   www.ibltd.com 
 
Company number: 03857884
Registered office: Prospero House
46 -48 Rothesay Road, Luton, Bedfordshire, LU1 1QZ
VAT Registration No. GB 753 1706 40
 
The information in this email is confidential and is intended solely for the 
addressee. Access to this email by anyone else is unauthorised.  If you are not 
the intended recipient, you must not read, use or disseminate the information.  
Any views expressed in this message are those of the individual sender, except 
where the sender specifically states them to be the views of Instant Business 
Ltd.
 
Instant Business servers have scanned this e-mail and any attachments for 
viruses and every reasonable attempt has been made to ensure that it does not 
contain any harmful data.
It is the responsibility of the recipient to ensure that they are virus free 
and no responsibility is accepted by Instant Business Ltd for any loss of data 
or damage caused as a result of opening this message.

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

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


RE: [Flashcoders] fauxpenGL library for AS2

2007-03-12 Thread Michael Trim
Are there similar projects out there?

Papervision?

http://www.unitzeroone.com/blog/flash_examples/another_pv3d_material_dem
o_fla_1.html

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

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


RE: [Flashcoders] Webservice performance these days

2006-12-11 Thread Michael Trim
http://www.themidnightcoders.com/articles/soap_vs_flash_remoting_bench
mark.shtml

Does this still stand up? I was always a little skeptical because they
were selling an alternative solution anyway.

I'm with Jason, I accept it's not necessarily the fastest solution but
SOAP works well enough for most of the uses I have for it.

Compared to the project I'm rescuing at the moment that uses plain old
xml it's a dream.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Alternative IDE for Flash Devel

2006-10-17 Thread Michael Trim
Oh man you're in for a treat. 

I've been using FlashDevelop for ages as an AS2 editor and wouldn't be
without it now, but after following this thread I am trying to setup a
project (something I have never done) and compile with MTASC...

Got this working fine, retrofitting an old project(about to be
redeveloped) following this tutorial...
http://www.smithaaronlee.net/archives/111
http://www.smithaaronlee.net/archives/113


But now need to get the following errors in the compiler

Warning : package com.Data not found
Warning : package com.UserInterface not found
Warning : package com.Utils not found

Warning : The MovieClip InfoScreen needs the class
UserInterface.InfoScreen which was not compiled :
Please force compilation of this class by adding it to the commandline.

I have setup com.Data etc in the IncludePackages Array, but clearly this
is incorrect.

What do I put in the IncludePackages Array?
How do I force compilation of each class by adding it to the
commandline?

TIA,

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

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


RE: [Flashcoders] Alternative IDE for Flash Devel

2006-10-17 Thread Michael Trim
right-click your file in the project explorer and select always
compile

Thanks joerg had found that, I'm downloading other examples of FDP's and
examining their setup, almost there!


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

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


[Flashcoders] Memory Leak

2006-09-06 Thread Michael Trim
Can anybody point me in the direction of any more information on this
particular bug?

http://chattyfig.figleaf.com/pipermail/flashcoders/2006-March/161995.htm
l

We have implemented a solution that minimizes/maximizes to restore GC
but I would like to have a bit more info on why this is happening?

Is this still the case in FP9?

Thanks,

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

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


RE: [Flashcoders] setInterval intervalID type?

2006-04-19 Thread Michael Trim
what type of object is the intervalId that
gets returned from setInterval()?  

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

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