Re: [Flashcoders] FLV's dropping frames on import for timeline playback.

2005-12-23 Thread eugen pflüger

hello matt, hello mark,

did one of you find a solution for that problem?
i need to scrub through a video as well.
scrubbing through a flv is not possible. it seems that frames in  
timeline are the only solution for it.

right?

thanks
eugen


Am 31.10.2005 um 11:29 schrieb Mark Burvill:

Putting videos directly on the timeline (if I'm right in thinking  
that's what you're doing) is not really the way to go, it's  
notoriously unreliable for anything other than really small videos.

Have you tried using one of the Media Display components?


Matt Muller wrote:

Hi, I have a 360 of a car in 3d I'm importing for timeline  
playback, and yes

i have set 1 keyFrame for every frame,
but it seems to drop a few frames making playback a little jerky,  
Ive tried

with the same FLV output from Flix Pro and Flash Video Encoder,
frame rate matches the Flash doc (25fps) and Ive exported png  
seqs, there
are no irregular frames. Also done an export from AE as FLV with  
Sorenson
(will have to wait for AE7 forr ON2) and thats perfect, did  
sorenson from
Flash Video Encoder and it was dropping frames, so my conclusion  
is there
are bugs in the encoder, or in the import proceess, anyone else  
had similar

trouble?
cheers
MaTT
___
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










plugisto
...
eugen pflüger

alexanderstr. 109
70180 stuttgart

fon +49.711.6739797
mobil   +49.177.6428272
e-mail  [EMAIL PROTECTED]
...
http://www.plugisto.net
http://itself.pmalc.de
http://www.lifeperformance.net


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


Re: [Flashcoders] Faster code?

2005-12-23 Thread Hans Wichman
Just to those that are reading this thread and wondering if writing neat 
documented code for clients (and payed for by clients) is an illusion, my 2 
cents:


we've been working on a project (complete virtual learning city) in flash 
in which the client didnt really know what he wanted up front, which we 
tackled using a usecase-development/prototyping approach.
The object oriented design was by large thought up up front, the conversion 
of this design to AS2.0 was done bit by bit, using unit testing etc. All 
the while the specs where changing and we made this-phase/next-phase 
choices and did a small impact analysis for most of them.
During implementation most of the code was being documented already (during 
or upfront), not using obvious what-does-this-button-do comments, but 
WHY-does-this-button-do-what-it-does comments. The internals workings may 
change, but why-it-does-what-it-does usually doesnt. The client now 
requested ALL documentation to be delivered as a separate product, most of 
which is already present and includes functional docs, technical docs, 
source docs, readers, etc.
This product will run for a number of years, currently 4 virtual 
casestudies have been implemented and 50 more will be required over the 
next few years (casestudy == adventure game). A number of people are 
working on this project together, ussually not having a clue what the other 
one does, they just agree on a common interface for example between client 
and server (which is documented by examples mostly).
Lots of changes will probably be required, but since the code is modular, 
its clean (99,9%) and well documented, we can analyse what has to be 
refactored and what doesnt need to be.


This is not to start up the discussion again whether or not to document 
your code, just to tell you that almost all our clients (our company has 
about 50 ppl and a lot of clients) request a solid design, solid 
documentation and a copy of the sourcecode. Internally we are all expected 
to have a high standard and work on increasing this standard even further 
(for example by reading books such as 'code complete', taking 
certifications, studying oo development). This is the same for java, php, 
AS1, AS2, visual basic or c++ developers.


Does the way we work slow us down? No.
Does the way we work cost us clients? Nope.
Does everything need to be documented? No ofcourse not.
Is this approach applicable to all types of projects? Nope.
Will we hire someone who is fast but does not document his crappy code, 
again? We surely wont, and we know becoz we review his code after each project.


I do think lots of the arguments given here against documenting are just 
excuses in order not to have to, or a lack of skill in the oo design 
area.  Rewriting and rewriting and rewriting (with or without 
documentation) should make warnings bells go off in your head, with or 
without someone paying for it.
Can I do the same very cool things all the non-documenting-guru/hackers do? 
Nah unfortunately not, but thats beside the point ;).


When it comes down to it, I agree you have to pragmatic when coding, not 
everything we do has to have an academic standard, but you shouldn't grab 
every opportunity to write crappy code with both hands either.


Just my 2 cents...
H


At 08:51 AM 12/23/2005, you wrote:

I think it reflects the nature of flash and its history.
   Not to mention the diverse skillset of its developer-base. A lot of 
people learned to write code in Flash, and the question of whether they 
are doing it the right way or not is debatable.



In other words, as flash becomes a real software development platform,
real development methodologies will become more important.
   That's really what it comes down to. As you start building longer-term 
projects and using standardized methodologies, these things start to 
become more important. I still do the occasional one-off animation or ad, 
but that's not where I spend the majority of my time these days.


ryanm
___
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] game slowing down - eventListener

2005-12-23 Thread Hans Wichman
tnx, but no need ;). All credits go to John for his awesome tool and his 
supercool attitude which made this tool possible.


At 07:01 PM 12/22/2005, Dimitrios Bendilas wrote:

The _global thing was Hans Wichman's idea.
Just making sure he gets the credit! ;-)


Dimitrios


- Original Message - From: John Grden [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, December 22, 2005 7:49 PM
Subject: Re: [FlashCoders] game slowing down - eventListener


Excellent!!  Thanks for letting me know D!

yeah, there's a ton a ways to get at your application with xray - setting
the _global pointer was a great/simple idea.

Thanks again D,

John

___
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] Game plays beautiful on PC/ not on mac. wtf?

2005-12-23 Thread Johan Karlsson
looking at the source of your HTML(fpi_swap.js) code I find that the wmode
of the movie is set as transparent. And to my experience that usually gives
a huge performance hit on Mac.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Kurt
Dommermuth
Sent: den 21 december 2005 23:19
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?


Hi Steven,

31fps

is that still the magic number?

thanks,
Kurt

At 04:58 PM 12/21/2005, you wrote:
What's your frame rate set to?


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of Kurt Dommermuth
  Sent: Wednesday, December 21, 2005 6:35 AM
  To: Flashcoders mailing list
  Subject: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?
 
  Hi all,
 
  I'm really frustrated with something and hope someone out
  there can help.
 
  I have this game 
 
  http://www.asherbartos.com/xmas2005/
 
  plays very well on my 1.7 ghz pc laptop.
 
  plays horribly on a dual 1.2 mac.
 
  some things simply don't work, on the Mac like the arrow keys.
 
  that sucks, but the performance is what is driving me nuts.
 
  I expect to take a hit on the mac, but this is beyond
  anything I anticipated.
 
  is there code you should just simply stay away from on the Mac?
 
  I used a couple of listeners for arrow key control.  a couple of
  setIntervals.  nothing too hard core at all...  most of the
  code is below
  if anyone cares to take a look.
 
  thanks for any help anyone can offer.
 
  Kurt
 
  goSanta = function()
  {
this.gotoAndStop(2);
var spd:Number = _root.variableSpeed;
var mX:Number = this._x;
var targ:Number = (_root._xmouse -  mX)/spd;
if(_root.variableSpeed1)
{
_root.variableSpeed = 1;
}
this._x += targ;
  }
 
  stopGame = function()
  {
clearInterval(goDrink);
clearInterval(goTimer);
delete _root.santa.onEnterFrame;
_root.santa._x = -100;
  }
 
  santasWasted = function()
  {
clearInterval(goDrinks);
delete _root.santa.onEnterFrame;
_root.santa.gotoAndPlay(passOut);
  }
 
  startGame = function()
  {
s.stop();
_root.santa.tween(_y,440,.5,'easeOutBack');
attachSFX(_root.closingScreen,start,start,50);
_root.variableSpeed = 1;
_root.closingScreen.gotoAndStop(1);
_root.gotoAndStop(playGame);
_root.santa.onEnterFrame = goSanta;
_root.scoreBoard.meter.tween(_yscale,.5,.3);
_root.count = 0;
secondsLeft = 0;
clearInterval(goDrink);
goDrink = setInterval(drinkGenerator,700);
clearInterval(goTimer);
goTimer = setInterval(startTimer,1000);
  }
 
 
  fallingDrink = function()
  {
this._y+=this.spd;
if(this._y  340  this._y  420)
{
if
  (this.hitTest(_root.santa.santasMouth))
{
 
  attachSFX(this,this.sfx,sfx,20);
_root.variableSpeed +=
  this.potency;
var perLoaded =
  int((_root.variableSpeed/20)*100);
 
  _root.scoreBoard.meter.tween(_yscale,perLoaded,.4);
 
  _root.santa.santasMouth.gotoAndPlay(2);
if(_root.variableSpeed
   20) //santa drank too much
{
_root.santasWasted();
}
this.removeMovieClip();
}
}
//kill clip if drop too far
if(this._y  550)
{
trace(mc dead)
this.removeMovieClip();
}
  }
 
 
  drinkGenerator = function()
  {
var myDepth = _root.drinkContainer.getNextHighestDepth();
var randSpd = getRandomNumber(12,6);
var randX = getRandomNumber(660,105);
var randomID = getRandomNumber(_root.gameItems.length-1,0)
var randomItem = _root.gameItems[[randomID]][0];
 
_root.drinkContainer.createEmptyMovieClip(mc+myDepth,myDepth);
 
  _root.drinkContainer[mc+myDepth].attachMovie(randomItem,drink,1);
_root.drinkContainer[mc+myDepth].drink._x = randX;
_root.drinkContainer[mc+myDepth].drink.spd = randSpd;
_root.drinkContainer[mc+myDepth].drink.potency =
  _root.gameItems[[randomID]][1];
_root.drinkContainer[mc+myDepth].drink.sfx =
  _root.gameItems[[randomID]][2];
 
_root.drinkContainer[mc+myDepth].drink.onEnterFrame =
  fallingDrink;
  }
 
  attrition = function()
  {
if(_root.variableSpeed  1)
{
_root.variableSpeed -=.5
var perLoaded = 

Re: RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?

2005-12-23 Thread thibaut
L'agence KEBLOW est fermée du 23/12/05 au 02/01/06.
Je prendrai connaissance de votre message à la rentrée.
Joyeuses fêtes et bonne année 2006.
 
Agence KEBLOW
- Nouveaux média -


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


Re: Re: RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?

2005-12-23 Thread thibaut
L'agence KEBLOW est fermée du 23/12/05 au 02/01/06.
Je prendrai connaissance de votre message à la rentrée.
Joyeuses fêtes et bonne année 2006.
 
Agence KEBLOW
- Nouveaux média -


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


Re: Re: Re: RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?

2005-12-23 Thread thibaut
L'agence KEBLOW est fermée du 23/12/05 au 02/01/06.
Je prendrai connaissance de votre message à la rentrée.
Joyeuses fêtes et bonne année 2006.
 
Agence KEBLOW
- Nouveaux média -


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


Re: Re: Re: Re: RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?

2005-12-23 Thread thibaut
L'agence KEBLOW est fermée du 23/12/05 au 02/01/06.
Je prendrai connaissance de votre message à la rentrée.
Joyeuses fêtes et bonne année 2006.
 
Agence KEBLOW
- Nouveaux média -


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


Re: Re: Re: Re: Re: RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?

2005-12-23 Thread thibaut
L'agence KEBLOW est fermée du 23/12/05 au 02/01/06.
Je prendrai connaissance de votre message à la rentrée.
Joyeuses fêtes et bonne année 2006.
 
Agence KEBLOW
- Nouveaux média -


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


Re: Re: Re: Re: Re: Re: RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?

2005-12-23 Thread thibaut
L'agence KEBLOW est fermée du 23/12/05 au 02/01/06.
Je prendrai connaissance de votre message à la rentrée.
Joyeuses fêtes et bonne année 2006.
 
Agence KEBLOW
- Nouveaux média -


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


Re: Re: Re: Re: RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?

2005-12-23 Thread Tom Rhodes

k'est k tu faire trouduk?!

joyeuses fetes un fois, oui, mais, quatre, cinq e plus. non!

- Original Message - 
From: [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Friday, December 23, 2005 11:26 AM
Subject: Re: Re: Re: Re: RE: [Flashcoders] Game plays beautiful on PC/ not 
on mac. wtf?




L'agence KEBLOW est fermée du 23/12/05 au 02/01/06.
Je prendrai connaissance de votre message à la rentrée.
Joyeuses fêtes et bonne année 2006.

Agence KEBLOW
- Nouveaux média -


___
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: Re: Re: Re: Re: Re: Re: RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?

2005-12-23 Thread thibaut
L'agence KEBLOW est fermée du 23/12/05 au 02/01/06.
Je prendrai connaissance de votre message à la rentrée.
Joyeuses fêtes et bonne année 2006.
 
Agence KEBLOW
- Nouveaux média -


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


flashcoders@chattyfig.figleaf.com

2005-12-23 Thread thibaut
L'agence KEBLOW est fermée du 23/12/05 au 02/01/06.
Je prendrai connaissance de votre message à la rentrée.
Joyeuses fêtes et bonne année 2006.
 
Agence KEBLOW
- Nouveaux média -


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


Re: Re: Re: Re: Re: Re: Re: Re: RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?

2005-12-23 Thread thibaut
L'agence KEBLOW est fermée du 23/12/05 au 02/01/06.
Je prendrai connaissance de votre message à la rentrée.
Joyeuses fêtes et bonne année 2006.
 
Agence KEBLOW
- Nouveaux média -


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


flashcoders@chattyfig.figleaf.com

2005-12-23 Thread thibaut
L'agence KEBLOW est fermée du 23/12/05 au 02/01/06.
Je prendrai connaissance de votre message à la rentrée.
Joyeuses fêtes et bonne année 2006.
 
Agence KEBLOW
- Nouveaux média -


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


Re: [Flashcoders] BitmapData and setPixel();

2005-12-23 Thread Claudia Barnal

Paul,

Thanks for looking into this.

I’m not sure you tried the code I provided, as there you can see graphically 
what I mean. All you would need to do is copy and paste it.


Thanks again,
Claudia

_
Are you using the latest version of MSN Messenger? Download MSN Messenger 
7.5 today! http://messenger.msn.co.uk


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


[Flashcoders] haXe Alpha 5 Released

2005-12-23 Thread Nicolas Cannasse

Hi lists,

haXe Alpha 5 is now available from http://haxe.org

haXe is a an open source programming language for the Web. You can use 
the same language on the client side (Flash and Javascript) and on the 
server side (Neko).


The release adds some XML output so you can write your own documentation 
generator very easily, and fix several bugs. There is now also a -main 
commandline parameter that will specify which class will be the haXe 
entry point.


Currently haXe is running on both Flash and Neko. Javascript output will 
come soon.


haXe distribution libraries are now BSD License so you can use them 
whatever the license of your source code. You're welcome to contribute 
to haXe by providing additional libraries (crossplatform or 
Flash-specific). Please post on the haXe mailing list if you're 
interested in doing so.


Best,

Nicolas

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


RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?

2005-12-23 Thread Kurt Dommermuth


with great trepidation I reply to this thread, but a huge thank you is in 
order.


Johan, that must be it.  You're a saint for digging through and finding 
that.  an early XMAS present to me.


thank you

Kurt

At 05:22 AM 12/23/2005, you wrote:

looking at the source of your HTML(fpi_swap.js) code I find that the wmode
of the movie is set as transparent. And to my experience that usually gives
a huge performance hit on Mac.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Kurt
Dommermuth
Sent: den 21 december 2005 23:19
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?


Hi Steven,

31fps

is that still the magic number?

thanks,
Kurt

At 04:58 PM 12/21/2005, you wrote:
What's your frame rate set to?


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of Kurt Dommermuth
  Sent: Wednesday, December 21, 2005 6:35 AM
  To: Flashcoders mailing list
  Subject: [Flashcoders] Game plays beautiful on PC/ not on mac. wtf?
 
  Hi all,
 
  I'm really frustrated with something and hope someone out
  there can help.
 
  I have this game 
 
  http://www.asherbartos.com/xmas2005/
 
  plays very well on my 1.7 ghz pc laptop.
 
  plays horribly on a dual 1.2 mac.
 
  some things simply don't work, on the Mac like the arrow keys.
 
  that sucks, but the performance is what is driving me nuts.
 
  I expect to take a hit on the mac, but this is beyond
  anything I anticipated.
 
  is there code you should just simply stay away from on the Mac?
 
  I used a couple of listeners for arrow key control.  a couple of
  setIntervals.  nothing too hard core at all...  most of the
  code is below
  if anyone cares to take a look.
 
  thanks for any help anyone can offer.
 
  Kurt
 
  goSanta = function()
  {
this.gotoAndStop(2);
var spd:Number = _root.variableSpeed;
var mX:Number = this._x;
var targ:Number = (_root._xmouse -  mX)/spd;
if(_root.variableSpeed1)
{
_root.variableSpeed = 1;
}
this._x += targ;
  }
 
  stopGame = function()
  {
clearInterval(goDrink);
clearInterval(goTimer);
delete _root.santa.onEnterFrame;
_root.santa._x = -100;
  }
 
  santasWasted = function()
  {
clearInterval(goDrinks);
delete _root.santa.onEnterFrame;
_root.santa.gotoAndPlay(passOut);
  }
 
  startGame = function()
  {
s.stop();
_root.santa.tween(_y,440,.5,'easeOutBack');
attachSFX(_root.closingScreen,start,start,50);
_root.variableSpeed = 1;
_root.closingScreen.gotoAndStop(1);
_root.gotoAndStop(playGame);
_root.santa.onEnterFrame = goSanta;
_root.scoreBoard.meter.tween(_yscale,.5,.3);
_root.count = 0;
secondsLeft = 0;
clearInterval(goDrink);
goDrink = setInterval(drinkGenerator,700);
clearInterval(goTimer);
goTimer = setInterval(startTimer,1000);
  }
 
 
  fallingDrink = function()
  {
this._y+=this.spd;
if(this._y  340  this._y  420)
{
if
  (this.hitTest(_root.santa.santasMouth))
{
 
  attachSFX(this,this.sfx,sfx,20);
_root.variableSpeed +=
  this.potency;
var perLoaded =
  int((_root.variableSpeed/20)*100);
 
  _root.scoreBoard.meter.tween(_yscale,perLoaded,.4);
 
  _root.santa.santasMouth.gotoAndPlay(2);
if(_root.variableSpeed
   20) //santa drank too much
{
_root.santasWasted();
}
this.removeMovieClip();
}
}
//kill clip if drop too far
if(this._y  550)
{
trace(mc dead)
this.removeMovieClip();
}
  }
 
 
  drinkGenerator = function()
  {
var myDepth = _root.drinkContainer.getNextHighestDepth();
var randSpd = getRandomNumber(12,6);
var randX = getRandomNumber(660,105);
var randomID = getRandomNumber(_root.gameItems.length-1,0)
var randomItem = _root.gameItems[[randomID]][0];
 
_root.drinkContainer.createEmptyMovieClip(mc+myDepth,myDepth);
 
  _root.drinkContainer[mc+myDepth].attachMovie(randomItem,drink,1);
_root.drinkContainer[mc+myDepth].drink._x = randX;
_root.drinkContainer[mc+myDepth].drink.spd = randSpd;
_root.drinkContainer[mc+myDepth].drink.potency =
  _root.gameItems[[randomID]][1];
_root.drinkContainer[mc+myDepth].drink.sfx =
  

[Flashcoders] Planet Earth MC

2005-12-23 Thread Mendelsohn, Michael
Hi list...

[Studio 8, XP, Illustrator CS2]
I have a MC of a rotating planet earth.  Frame to frame, all the
continents are there, but when it gets on the stage, visual anomalies
occur: the Great Lakes disappear for a frame, or some weird horizontal
lines appear -- always at the same spot in the animation.  These
oddities are not in any frame of the MC.  I've tried to check bitmap
caching on this MC, but that doesn't seem to make a difference.  Any
ideas about what is happening are appreciated.

Thanks,
- Michael M.

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


Re: [Flashcoders] Planet Earth MC

2005-12-23 Thread Ron Wheeler
If you change the size of the movie clip on the screen does the effect 
change?


Perhaps you are just getting a preview of the effect of global warming 
on the Great Lakes.


Ron

Mendelsohn, Michael wrote:


Hi list...

[Studio 8, XP, Illustrator CS2]
I have a MC of a rotating planet earth.  Frame to frame, all the
continents are there, but when it gets on the stage, visual anomalies
occur: the Great Lakes disappear for a frame, or some weird horizontal
lines appear -- always at the same spot in the animation.  These
oddities are not in any frame of the MC.  I've tried to check bitmap
caching on this MC, but that doesn't seem to make a difference.  Any
ideas about what is happening are appreciated.

Thanks,
- Michael M.

___
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] BitmapData and setPixel();

2005-12-23 Thread Paul BH
I can see the two resultant images, but from your description, I still
cant quite get what it is you want your grad to look like...

Thats why I wanted you to post an image of what you were trying to acheieve

On 12/23/05, Claudia Barnal [EMAIL PROTECTED] wrote:
 Paul,

 Thanks for looking into this.

 I'm not sure you tried the code I provided, as there you can see graphically
 what I mean. All you would need to do is copy and paste it.

 Thanks again,
 Claudia

 _
 Are you using the latest version of MSN Messenger? Download MSN Messenger
 7.5 today! http://messenger.msn.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] Planet Earth MC

2005-12-23 Thread Mendelsohn, Michael
 If you change the size of the movie clip on the screen does the effect

change?

No matter what size the MC is, the same effects are there.  If the MC is
scaled, the anomalies are scaled as well.  





 Perhaps you are just getting a preview of the effect of global warming

on the Great Lakes.
Preview?  The problems are already upon us.

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


RE: [Flashcoders] Flex 2.0 Tree control dataprovider problem.

2005-12-23 Thread David Mendels
Hi,

You asked: One last thing, is this the place to ask these questions, or
is there a flex
1/2 group like this too?

Yes, it is called FlexCoders.  Subscribe info is here:
http://www.flexcoders.org/index.html

-David 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Jonas Windey
 Sent: Friday, December 23, 2005 7:29 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Flex 2.0 Tree control dataprovider problem.
 
 Hi all,
 
 I'm experimenting a bit with flex 2.0 alpha, and I'm trying 
 to use a webservice to provide the datasource of my tree 
 control. I took the xml structure that can be found in the 
 examples explorer, and made a webservice that is giving 
 exactly the same result:
 
 ?xml version=1.0 encoding=utf-8?
 node
   node label=Technology
 node label=ASP.NET /
 node label=HTML/CSS /
 node label=Javascript /
 node label=SQL /
 node label=Tech Experiments /
   /node
   node label=Utilities
 node label=Client tools /
 node label=Server tools /
   /node
   node label=Design
 node label=Cool layouts /
 node label=Design experiments /
   /node
   node label=Usability
   /node
   node label=Off-topic
   /node
 /node
 
 Now comes the problem, when I give my treeview this result as 
 datasource, the output isn't what it should be, as can be 
 seen on this url:
 http://www.narcisten.be/pl_treeProblem.jpg
 
 I've tried setting the dataprovide as 
 event.result.childNodes[0], but no luck.
 Here's my code (without the markup)
 
 mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
 creationComplete=catWS.getCategories.send(); fontSize=11
 
 ...
 
 mx:WebService result=catTree.dataProvider=event.result id=catWS
 wsdl=http://localhost:1200/pixcoID/pixcoThoughts.asmx?WSDL;
 showBusyCursor=true fault=Alert.show(event.fault.faultstring)
   mx:operation name=getCategories
   mx:request
   intAccountID
   1
   /intAccountID
   /mx:request
   /mx:operation
 /mx:WebService
 
 
 In the code example, the tree control uses a httpservice, and 
 there you can use event.result.node, which looks inside the 
 xml to loop through the correct nodes.
 
 Any suggestions? Thanks in advance.
 
 One last thing, is this the place to ask these questions, or 
 is there a flex
 1/2 group like this too?
 
 Jonas
 
 ___
 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] _targetInstanceName?

2005-12-23 Thread Mark Ribau

Hey folks,

I'm in Flash 8 Pro, building for Flash 7 player.  I'm trying to get 
_targetInstanceName working, but I can't seem to get it to work.  Does 
anyone have a good example of how to get it working?


--
Mark Ribau
Lead Windows Developer | My Tech Blog 
http://www.redbugtech.com/blogs/mark.php

Redbug Technologies, Inc. http://www.redbugtech.com - www.redbugtech.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Faster code?

2005-12-23 Thread Paul BH
I'm so glad I opened such a juicy can of worms just before Christmas ;)

I just want to throw one more thing into the mix before I dissappear off to numb
my family reunion with hefty doses of alcohol...

So, now I think my comments before about, erm comments still stand. I
see comments differently to documentation, so I'll just add my
tuppence to this and retire to eat drink  be merry...

I think some (many)? people dont document because they cant be arsed.
Why is this the case? We'll, again, I think it comes down to changing
requirements, and the fact that I hate having the same information in
two places, as at some point one will get out of date...

How to manage this, and at the same time make your code easy to understand?

This is how we are approaching it / looking to approach it...

1) Documentation of individual methods within classes is done using
ASDoc which gets triggered whenever a file gets checked into source
control -- your documentataion is generated from your class file, and
is *always* up to date with your checked in class file...

2) We are looking into using a thing called FIT (http://fit.c2.com/)
What this does is tie in business requirements with unit tests. The
business (ie the client) basically write their specifications (or are
assisted with it) in a word document. wherever a table is encountered,
this is interpreted by FIT as a unit test, and the test builder writes
a fixture to accomodate that test... What this means is that you are
documenting your business logic in one place (rather than both a specs
document and a slew of unit tests)

For me, the underlying principle is this -- DONT REPEAT YOURSELF --
it'll save you a whole truckload of hassles down the road...

Pxx



On 12/23/05, Hans Wichman [EMAIL PROTECTED] wrote:
 Just to those that are reading this thread and wondering if writing neat
 documented code for clients (and payed for by clients) is an illusion, my 2
 cents:

 we've been working on a project (complete virtual learning city) in flash
 in which the client didnt really know what he wanted up front, which we
 tackled using a usecase-development/prototyping approach.
 The object oriented design was by large thought up up front, the conversion
 of this design to AS2.0 was done bit by bit, using unit testing etc. All
 the while the specs where changing and we made this-phase/next-phase
 choices and did a small impact analysis for most of them.
 During implementation most of the code was being documented already (during
 or upfront), not using obvious what-does-this-button-do comments, but
 WHY-does-this-button-do-what-it-does comments. The internals workings may
 change, but why-it-does-what-it-does usually doesnt. The client now
 requested ALL documentation to be delivered as a separate product, most of
 which is already present and includes functional docs, technical docs,
 source docs, readers, etc.
 This product will run for a number of years, currently 4 virtual
 casestudies have been implemented and 50 more will be required over the
 next few years (casestudy == adventure game). A number of people are
 working on this project together, ussually not having a clue what the other
 one does, they just agree on a common interface for example between client
 and server (which is documented by examples mostly).
 Lots of changes will probably be required, but since the code is modular,
 its clean (99,9%) and well documented, we can analyse what has to be
 refactored and what doesnt need to be.

 This is not to start up the discussion again whether or not to document
 your code, just to tell you that almost all our clients (our company has
 about 50 ppl and a lot of clients) request a solid design, solid
 documentation and a copy of the sourcecode. Internally we are all expected
 to have a high standard and work on increasing this standard even further
 (for example by reading books such as 'code complete', taking
 certifications, studying oo development). This is the same for java, php,
 AS1, AS2, visual basic or c++ developers.

 Does the way we work slow us down? No.
 Does the way we work cost us clients? Nope.
 Does everything need to be documented? No ofcourse not.
 Is this approach applicable to all types of projects? Nope.
 Will we hire someone who is fast but does not document his crappy code,
 again? We surely wont, and we know becoz we review his code after each 
 project.

 I do think lots of the arguments given here against documenting are just
 excuses in order not to have to, or a lack of skill in the oo design
 area.  Rewriting and rewriting and rewriting (with or without
 documentation) should make warnings bells go off in your head, with or
 without someone paying for it.
 Can I do the same very cool things all the non-documenting-guru/hackers do?
 Nah unfortunately not, but thats beside the point ;).

 When it comes down to it, I agree you have to pragmatic when coding, not
 everything we do has to have an academic standard, but you shouldn't grab
 

Re: [Flashcoders] Faster code?

2005-12-23 Thread JesterXL
1.  ASDoc just generates comments from your code.  If your code comments 
aren't up to date, neither is your generated asdocs.

2. If you could coerce a client to sign a document saying that business 
requirements never change... hell dude, I'm hiring you fulltime to work for 
me!


- Original Message - 
From: Paul BH [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, December 23, 2005 10:31 AM
Subject: Re: [Flashcoders] Faster code?


I'm so glad I opened such a juicy can of worms just before Christmas ;)

I just want to throw one more thing into the mix before I dissappear off to 
numb
my family reunion with hefty doses of alcohol...

So, now I think my comments before about, erm comments still stand. I
see comments differently to documentation, so I'll just add my
tuppence to this and retire to eat drink  be merry...

I think some (many)? people dont document because they cant be arsed.
Why is this the case? We'll, again, I think it comes down to changing
requirements, and the fact that I hate having the same information in
two places, as at some point one will get out of date...

How to manage this, and at the same time make your code easy to understand?

This is how we are approaching it / looking to approach it...

1) Documentation of individual methods within classes is done using
ASDoc which gets triggered whenever a file gets checked into source
control -- your documentataion is generated from your class file, and
is *always* up to date with your checked in class file...

2) We are looking into using a thing called FIT (http://fit.c2.com/)
What this does is tie in business requirements with unit tests. The
business (ie the client) basically write their specifications (or are
assisted with it) in a word document. wherever a table is encountered,
this is interpreted by FIT as a unit test, and the test builder writes
a fixture to accomodate that test... What this means is that you are
documenting your business logic in one place (rather than both a specs
document and a slew of unit tests)

For me, the underlying principle is this -- DONT REPEAT YOURSELF --
it'll save you a whole truckload of hassles down the road...

Pxx



On 12/23/05, Hans Wichman [EMAIL PROTECTED] wrote:
 Just to those that are reading this thread and wondering if writing neat
 documented code for clients (and payed for by clients) is an illusion, my 
 2
 cents:

 we've been working on a project (complete virtual learning city) in flash
 in which the client didnt really know what he wanted up front, which we
 tackled using a usecase-development/prototyping approach.
 The object oriented design was by large thought up up front, the 
 conversion
 of this design to AS2.0 was done bit by bit, using unit testing etc. All
 the while the specs where changing and we made this-phase/next-phase
 choices and did a small impact analysis for most of them.
 During implementation most of the code was being documented already 
 (during
 or upfront), not using obvious what-does-this-button-do comments, but
 WHY-does-this-button-do-what-it-does comments. The internals workings may
 change, but why-it-does-what-it-does usually doesnt. The client now
 requested ALL documentation to be delivered as a separate product, most of
 which is already present and includes functional docs, technical docs,
 source docs, readers, etc.
 This product will run for a number of years, currently 4 virtual
 casestudies have been implemented and 50 more will be required over the
 next few years (casestudy == adventure game). A number of people are
 working on this project together, ussually not having a clue what the 
 other
 one does, they just agree on a common interface for example between client
 and server (which is documented by examples mostly).
 Lots of changes will probably be required, but since the code is modular,
 its clean (99,9%) and well documented, we can analyse what has to be
 refactored and what doesnt need to be.

 This is not to start up the discussion again whether or not to document
 your code, just to tell you that almost all our clients (our company has
 about 50 ppl and a lot of clients) request a solid design, solid
 documentation and a copy of the sourcecode. Internally we are all expected
 to have a high standard and work on increasing this standard even further
 (for example by reading books such as 'code complete', taking
 certifications, studying oo development). This is the same for java, php,
 AS1, AS2, visual basic or c++ developers.

 Does the way we work slow us down? No.
 Does the way we work cost us clients? Nope.
 Does everything need to be documented? No ofcourse not.
 Is this approach applicable to all types of projects? Nope.
 Will we hire someone who is fast but does not document his crappy code,
 again? We surely wont, and we know becoz we review his code after each 
 project.

 I do think lots of the arguments given here against documenting are just
 excuses in order not 

Re: [Flashcoders] Faster code?

2005-12-23 Thread Paul BH
1) I agree, that's why back to my earlier thing, I rarely comment -
what ASDoc does do however is provide a way of displaying things like
your method signature in a friendly HTML like manner, with a handy
index down the side. When I do comment, it would be to explain some
hackery, or something that wasnt obvious - within a function, this
wouldnt get picked up, if it was something like a paramenter only
being in an allowable range, I would comment that in a way that ASDoc
picks up...

2)Hehe if I couldnt do that, it would be nirvana-esque... I never said
that this document wouldnt change - the key thing here is to make sure
that the change is captured in one place and one place alone... ie -
when business changes the specification, this is reflected in my unit
tests (as they are one  the same document), and thus my test suite
know about it straight away...

On 12/23/05, JesterXL [EMAIL PROTECTED] wrote:
 1.  ASDoc just generates comments from your code.  If your code comments
 aren't up to date, neither is your generated asdocs.

 2. If you could coerce a client to sign a document saying that business
 requirements never change... hell dude, I'm hiring you fulltime to work for
 me!


 - Original Message -
 From: Paul BH [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, December 23, 2005 10:31 AM
 Subject: Re: [Flashcoders] Faster code?


 I'm so glad I opened such a juicy can of worms just before Christmas ;)

 I just want to throw one more thing into the mix before I dissappear off to
 numb
 my family reunion with hefty doses of alcohol...

 So, now I think my comments before about, erm comments still stand. I
 see comments differently to documentation, so I'll just add my
 tuppence to this and retire to eat drink  be merry...

 I think some (many)? people dont document because they cant be arsed.
 Why is this the case? We'll, again, I think it comes down to changing
 requirements, and the fact that I hate having the same information in
 two places, as at some point one will get out of date...

 How to manage this, and at the same time make your code easy to understand?

 This is how we are approaching it / looking to approach it...

 1) Documentation of individual methods within classes is done using
 ASDoc which gets triggered whenever a file gets checked into source
 control -- your documentataion is generated from your class file, and
 is *always* up to date with your checked in class file...

 2) We are looking into using a thing called FIT (http://fit.c2.com/)
 What this does is tie in business requirements with unit tests. The
 business (ie the client) basically write their specifications (or are
 assisted with it) in a word document. wherever a table is encountered,
 this is interpreted by FIT as a unit test, and the test builder writes
 a fixture to accomodate that test... What this means is that you are
 documenting your business logic in one place (rather than both a specs
 document and a slew of unit tests)

 For me, the underlying principle is this -- DONT REPEAT YOURSELF --
 it'll save you a whole truckload of hassles down the road...

 Pxx



 On 12/23/05, Hans Wichman [EMAIL PROTECTED] wrote:
  Just to those that are reading this thread and wondering if writing neat
  documented code for clients (and payed for by clients) is an illusion, my
  2
  cents:
 
  we've been working on a project (complete virtual learning city) in flash
  in which the client didnt really know what he wanted up front, which we
  tackled using a usecase-development/prototyping approach.
  The object oriented design was by large thought up up front, the
  conversion
  of this design to AS2.0 was done bit by bit, using unit testing etc. All
  the while the specs where changing and we made this-phase/next-phase
  choices and did a small impact analysis for most of them.
  During implementation most of the code was being documented already
  (during
  or upfront), not using obvious what-does-this-button-do comments, but
  WHY-does-this-button-do-what-it-does comments. The internals workings may
  change, but why-it-does-what-it-does usually doesnt. The client now
  requested ALL documentation to be delivered as a separate product, most of
  which is already present and includes functional docs, technical docs,
  source docs, readers, etc.
  This product will run for a number of years, currently 4 virtual
  casestudies have been implemented and 50 more will be required over the
  next few years (casestudy == adventure game). A number of people are
  working on this project together, ussually not having a clue what the
  other
  one does, they just agree on a common interface for example between client
  and server (which is documented by examples mostly).
  Lots of changes will probably be required, but since the code is modular,
  its clean (99,9%) and well documented, we can analyse what has to be
  refactored and what doesnt need to be.
 
  This is not to start 

Re: [Flashcoders] Faster code?

2005-12-23 Thread JesterXL
Oh yeah definatly.  Even though Natural Doc's syntax feels more 
straightforward, ASDoc definately has the most beautiful output that I've 
seen to date.

- Original Message - 
From: Paul BH [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, December 23, 2005 10:53 AM
Subject: Re: [Flashcoders] Faster code?


1) I agree, that's why back to my earlier thing, I rarely comment -
what ASDoc does do however is provide a way of displaying things like
your method signature in a friendly HTML like manner, with a handy
index down the side. When I do comment, it would be to explain some
hackery, or something that wasnt obvious - within a function, this
wouldnt get picked up, if it was something like a paramenter only
being in an allowable range, I would comment that in a way that ASDoc
picks up...

2)Hehe if I couldnt do that, it would be nirvana-esque... I never said
that this document wouldnt change - the key thing here is to make sure
that the change is captured in one place and one place alone... ie -
when business changes the specification, this is reflected in my unit
tests (as they are one  the same document), and thus my test suite
know about it straight away...

On 12/23/05, JesterXL [EMAIL PROTECTED] wrote:
 1.  ASDoc just generates comments from your code.  If your code comments
 aren't up to date, neither is your generated asdocs.

 2. If you could coerce a client to sign a document saying that business
 requirements never change... hell dude, I'm hiring you fulltime to work 
 for
 me!


 - Original Message -
 From: Paul BH [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, December 23, 2005 10:31 AM
 Subject: Re: [Flashcoders] Faster code?


 I'm so glad I opened such a juicy can of worms just before Christmas ;)

 I just want to throw one more thing into the mix before I dissappear off 
 to
 numb
 my family reunion with hefty doses of alcohol...

 So, now I think my comments before about, erm comments still stand. I
 see comments differently to documentation, so I'll just add my
 tuppence to this and retire to eat drink  be merry...

 I think some (many)? people dont document because they cant be arsed.
 Why is this the case? We'll, again, I think it comes down to changing
 requirements, and the fact that I hate having the same information in
 two places, as at some point one will get out of date...

 How to manage this, and at the same time make your code easy to 
 understand?

 This is how we are approaching it / looking to approach it...

 1) Documentation of individual methods within classes is done using
 ASDoc which gets triggered whenever a file gets checked into source
 control -- your documentataion is generated from your class file, and
 is *always* up to date with your checked in class file...

 2) We are looking into using a thing called FIT (http://fit.c2.com/)
 What this does is tie in business requirements with unit tests. The
 business (ie the client) basically write their specifications (or are
 assisted with it) in a word document. wherever a table is encountered,
 this is interpreted by FIT as a unit test, and the test builder writes
 a fixture to accomodate that test... What this means is that you are
 documenting your business logic in one place (rather than both a specs
 document and a slew of unit tests)

 For me, the underlying principle is this -- DONT REPEAT YOURSELF --
 it'll save you a whole truckload of hassles down the road...

 Pxx



 On 12/23/05, Hans Wichman [EMAIL PROTECTED] wrote:
  Just to those that are reading this thread and wondering if writing neat
  documented code for clients (and payed for by clients) is an illusion, 
  my
  2
  cents:
 
  we've been working on a project (complete virtual learning city) in 
  flash
  in which the client didnt really know what he wanted up front, which we
  tackled using a usecase-development/prototyping approach.
  The object oriented design was by large thought up up front, the
  conversion
  of this design to AS2.0 was done bit by bit, using unit testing etc. All
  the while the specs where changing and we made this-phase/next-phase
  choices and did a small impact analysis for most of them.
  During implementation most of the code was being documented already
  (during
  or upfront), not using obvious what-does-this-button-do comments, but
  WHY-does-this-button-do-what-it-does comments. The internals workings 
  may
  change, but why-it-does-what-it-does usually doesnt. The client now
  requested ALL documentation to be delivered as a separate product, most 
  of
  which is already present and includes functional docs, technical docs,
  source docs, readers, etc.
  This product will run for a number of years, currently 4 virtual
  casestudies have been implemented and 50 more will be required over the
  next few years (casestudy == adventure game). A number of people are
  working on this project together, ussually 

Re: [Flashcoders] _targetInstanceName?

2005-12-23 Thread eric dolecki
You mean

mc._name ?

On 12/23/05, Mark Ribau [EMAIL PROTECTED] wrote:

 Hey folks,

 I'm in Flash 8 Pro, building for Flash 7 player.  I'm trying to get
 _targetInstanceName working, but I can't seem to get it to work.  Does
 anyone have a good example of how to get it working?

 --
 Mark Ribau
 Lead Windows Developer | My Tech Blog
 http://www.redbugtech.com/blogs/mark.php
 Redbug Technologies, Inc. http://www.redbugtech.com - www.redbugtech.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Faster code?

2005-12-23 Thread Merrill, Jason
Where can I get ASDoc?  Google seems pretty ignorant of it - at least as
a product or software tool.  Or is it an internal-only product Adobe
uses?  Or is it simply a Macromedia standardized HTML format for help
content?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Friday, December 23, 2005 10:56 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Faster code?

Oh yeah definatly.  Even though Natural Doc's syntax feels more
straightforward, ASDoc definately has the most beautiful output that
I've
seen to date.

- Original Message -
From: Paul BH [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, December 23, 2005 10:53 AM
Subject: Re: [Flashcoders] Faster code?


1) I agree, that's why back to my earlier thing, I rarely comment -
what ASDoc does do however is provide a way of displaying things like
your method signature in a friendly HTML like manner, with a handy
index down the side. When I do comment, it would be to explain some
hackery, or something that wasnt obvious - within a function, this
wouldnt get picked up, if it was something like a paramenter only
being in an allowable range, I would comment that in a way that ASDoc
picks up...

2)Hehe if I couldnt do that, it would be nirvana-esque... I never said
that this document wouldnt change - the key thing here is to make sure
that the change is captured in one place and one place alone... ie -
when business changes the specification, this is reflected in my unit
tests (as they are one  the same document), and thus my test suite
know about it straight away...

On 12/23/05, JesterXL [EMAIL PROTECTED] wrote:
 1.  ASDoc just generates comments from your code.  If your code
comments
 aren't up to date, neither is your generated asdocs.

 2. If you could coerce a client to sign a document saying that
business
 requirements never change... hell dude, I'm hiring you fulltime to
work
 for
 me!


 - Original Message -
 From: Paul BH [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, December 23, 2005 10:31 AM
 Subject: Re: [Flashcoders] Faster code?


 I'm so glad I opened such a juicy can of worms just before Christmas
;)

 I just want to throw one more thing into the mix before I dissappear
off
 to
 numb
 my family reunion with hefty doses of alcohol...

 So, now I think my comments before about, erm comments still stand.
I
 see comments differently to documentation, so I'll just add my
 tuppence to this and retire to eat drink  be merry...

 I think some (many)? people dont document because they cant be
arsed.
 Why is this the case? We'll, again, I think it comes down to
changing
 requirements, and the fact that I hate having the same information
in
 two places, as at some point one will get out of date...

 How to manage this, and at the same time make your code easy to
 understand?

 This is how we are approaching it / looking to approach it...

 1) Documentation of individual methods within classes is done using
 ASDoc which gets triggered whenever a file gets checked into source
 control -- your documentataion is generated from your class file,
and
 is *always* up to date with your checked in class file...

 2) We are looking into using a thing called FIT (http://fit.c2.com/)
 What this does is tie in business requirements with unit tests. The
 business (ie the client) basically write their specifications (or
are
 assisted with it) in a word document. wherever a table is
encountered,
 this is interpreted by FIT as a unit test, and the test builder
writes
 a fixture to accomodate that test... What this means is that you are
 documenting your business logic in one place (rather than both a
specs
 document and a slew of unit tests)

 For me, the underlying principle is this -- DONT REPEAT YOURSELF --
 it'll save you a whole truckload of hassles down the road...

 Pxx



 On 12/23/05, Hans Wichman [EMAIL PROTECTED] wrote:
  Just to those that are reading this thread and wondering if
writing neat
  documented code for clients (and payed for by clients) is an
illusion,
  my
  2
  cents:
 
  we've been working on a project (complete virtual learning city)
in
  flash
  in which the client didnt really know what he wanted up front,
which we
  tackled using a usecase-development/prototyping approach.
  The object oriented design was by large thought up up front, the
  conversion
  of this design to AS2.0 was done bit by bit, using unit testing
etc. All
  the while the specs where changing and we made
this-phase/next-phase
  choices and did a small impact analysis for most of them.
  During implementation most of the code was being documented
already
  (during
  or upfront), not using obvious what-does-this-button-do comments,
but
  WHY-does-this-button-do-what-it-does comments. The internals
workings
  may

Re: [Flashcoders] Faster code?

2005-12-23 Thread Paul BH
this is the tool I meant - visDoc / ASDoc were these once the same?
cant remember... Im having a slow day...

http://www.visiblearea.com/visdoc/

On 12/23/05, Merrill, Jason [EMAIL PROTECTED] wrote:
 Where can I get ASDoc?  Google seems pretty ignorant of it - at least as
 a product or software tool.  Or is it an internal-only product Adobe
 uses?  Or is it simply a Macromedia standardized HTML format for help
 content?

 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of JesterXL
 Sent: Friday, December 23, 2005 10:56 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Faster code?
 
 Oh yeah definatly.  Even though Natural Doc's syntax feels more
 straightforward, ASDoc definately has the most beautiful output that
 I've
 seen to date.
 
 - Original Message -
 From: Paul BH [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, December 23, 2005 10:53 AM
 Subject: Re: [Flashcoders] Faster code?
 
 
 1) I agree, that's why back to my earlier thing, I rarely comment -
 what ASDoc does do however is provide a way of displaying things like
 your method signature in a friendly HTML like manner, with a handy
 index down the side. When I do comment, it would be to explain some
 hackery, or something that wasnt obvious - within a function, this
 wouldnt get picked up, if it was something like a paramenter only
 being in an allowable range, I would comment that in a way that ASDoc
 picks up...
 
 2)Hehe if I couldnt do that, it would be nirvana-esque... I never said
 that this document wouldnt change - the key thing here is to make sure
 that the change is captured in one place and one place alone... ie -
 when business changes the specification, this is reflected in my unit
 tests (as they are one  the same document), and thus my test suite
 know about it straight away...
 
 On 12/23/05, JesterXL [EMAIL PROTECTED] wrote:
  1.  ASDoc just generates comments from your code.  If your code
 comments
  aren't up to date, neither is your generated asdocs.
 
  2. If you could coerce a client to sign a document saying that
 business
  requirements never change... hell dude, I'm hiring you fulltime to
 work
  for
  me!
 
 
  - Original Message -
  From: Paul BH [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Friday, December 23, 2005 10:31 AM
  Subject: Re: [Flashcoders] Faster code?
 
 
  I'm so glad I opened such a juicy can of worms just before Christmas
 ;)
 
  I just want to throw one more thing into the mix before I dissappear
 off
  to
  numb
  my family reunion with hefty doses of alcohol...
 
  So, now I think my comments before about, erm comments still stand.
 I
  see comments differently to documentation, so I'll just add my
  tuppence to this and retire to eat drink  be merry...
 
  I think some (many)? people dont document because they cant be
 arsed.
  Why is this the case? We'll, again, I think it comes down to
 changing
  requirements, and the fact that I hate having the same information
 in
  two places, as at some point one will get out of date...
 
  How to manage this, and at the same time make your code easy to
  understand?
 
  This is how we are approaching it / looking to approach it...
 
  1) Documentation of individual methods within classes is done using
  ASDoc which gets triggered whenever a file gets checked into source
  control -- your documentataion is generated from your class file,
 and
  is *always* up to date with your checked in class file...
 
  2) We are looking into using a thing called FIT (http://fit.c2.com/)
  What this does is tie in business requirements with unit tests. The
  business (ie the client) basically write their specifications (or
 are
  assisted with it) in a word document. wherever a table is
 encountered,
  this is interpreted by FIT as a unit test, and the test builder
 writes
  a fixture to accomodate that test... What this means is that you are
  documenting your business logic in one place (rather than both a
 specs
  document and a slew of unit tests)
 
  For me, the underlying principle is this -- DONT REPEAT YOURSELF --
  it'll save you a whole truckload of hassles down the road...
 
  Pxx
 
 
 
  On 12/23/05, Hans Wichman [EMAIL PROTECTED] wrote:
   Just to those that are reading this thread and wondering if
 writing neat
   documented code for clients (and payed for by clients) is an
 illusion,
   my
   2
   cents:
  
   we've been working on a project (complete virtual learning city)
 in
   flash
   in which the client didnt really know what he wanted up front,
 which we
   tackled using a usecase-development/prototyping approach.
   The object oriented design was by large thought up up front, the
   conversion
   of this design to AS2.0 was done bit by bit, using unit testing
 etc. All
   the while the specs where 

RE: [Flashcoders] Faster code?

2005-12-23 Thread Merrill, Jason
Thanks.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Paul BH
Sent: Friday, December 23, 2005 11:31 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Faster code?

this is the tool I meant - visDoc / ASDoc were these once the same?
cant remember... Im having a slow day...

http://www.visiblearea.com/visdoc/

On 12/23/05, Merrill, Jason [EMAIL PROTECTED] wrote:
 Where can I get ASDoc?  Google seems pretty ignorant of it - at
least as
 a product or software tool.  Or is it an internal-only product Adobe
 uses?  Or is it simply a Macromedia standardized HTML format for
help
 content?

 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of JesterXL
 Sent: Friday, December 23, 2005 10:56 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Faster code?
 
 Oh yeah definatly.  Even though Natural Doc's syntax feels more
 straightforward, ASDoc definately has the most beautiful output
that
 I've
 seen to date.
 
 - Original Message -
 From: Paul BH [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, December 23, 2005 10:53 AM
 Subject: Re: [Flashcoders] Faster code?
 
 
 1) I agree, that's why back to my earlier thing, I rarely comment
-
 what ASDoc does do however is provide a way of displaying things
like
 your method signature in a friendly HTML like manner, with a handy
 index down the side. When I do comment, it would be to explain
some
 hackery, or something that wasnt obvious - within a function, this
 wouldnt get picked up, if it was something like a paramenter only
 being in an allowable range, I would comment that in a way that
ASDoc
 picks up...
 
 2)Hehe if I couldnt do that, it would be nirvana-esque... I never
said
 that this document wouldnt change - the key thing here is to make
sure
 that the change is captured in one place and one place alone... ie
-
 when business changes the specification, this is reflected in my
unit
 tests (as they are one  the same document), and thus my test
suite
 know about it straight away...
 
 On 12/23/05, JesterXL [EMAIL PROTECTED] wrote:
  1.  ASDoc just generates comments from your code.  If your code
 comments
  aren't up to date, neither is your generated asdocs.
 
  2. If you could coerce a client to sign a document saying that
 business
  requirements never change... hell dude, I'm hiring you fulltime
to
 work
  for
  me!
 
 
  - Original Message -
  From: Paul BH [EMAIL PROTECTED]
  To: Flashcoders mailing list
flashcoders@chattyfig.figleaf.com
  Sent: Friday, December 23, 2005 10:31 AM
  Subject: Re: [Flashcoders] Faster code?
 
 
  I'm so glad I opened such a juicy can of worms just before
Christmas
 ;)
 
  I just want to throw one more thing into the mix before I
dissappear
 off
  to
  numb
  my family reunion with hefty doses of alcohol...
 
  So, now I think my comments before about, erm comments still
stand.
 I
  see comments differently to documentation, so I'll just add my
  tuppence to this and retire to eat drink  be merry...
 
  I think some (many)? people dont document because they cant be
 arsed.
  Why is this the case? We'll, again, I think it comes down to
 changing
  requirements, and the fact that I hate having the same
information
 in
  two places, as at some point one will get out of date...
 
  How to manage this, and at the same time make your code easy to
  understand?
 
  This is how we are approaching it / looking to approach it...
 
  1) Documentation of individual methods within classes is done
using
  ASDoc which gets triggered whenever a file gets checked into
source
  control -- your documentataion is generated from your class
file,
 and
  is *always* up to date with your checked in class file...
 
  2) We are looking into using a thing called FIT
(http://fit.c2.com/)
  What this does is tie in business requirements with unit tests.
The
  business (ie the client) basically write their specifications
(or
 are
  assisted with it) in a word document. wherever a table is
 encountered,
  this is interpreted by FIT as a unit test, and the test builder
 writes
  a fixture to accomodate that test... What this means is that you
are
  documenting your business logic in one place (rather than both a
 specs
  document and a slew of unit tests)
 
  For me, the underlying principle is this -- DONT REPEAT YOURSELF
--
  it'll save you a whole truckload of hassles down the road...
 
  Pxx
 
 
 
  On 12/23/05, Hans Wichman [EMAIL PROTECTED] wrote:
   Just to those that are reading this thread and wondering if
 writing neat
   documented code for clients (and payed for by clients) is an
 illusion,
   my
   2
   cents:
  
   we've been working on a project (complete virtual learning
city)
 in
   flash
   in which the 

RE: [Flashcoders] Faster code?

2005-12-23 Thread Merrill, Jason
I downloaded the trial, but what's a .dmg file and how do I unpack it in
Windows?  Couldn't find any info on their site - and double-clicking the
file gives me an error - unrecognized file type.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Friday, December 23, 2005 11:42 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Faster code?

Thanks.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Paul BH
Sent: Friday, December 23, 2005 11:31 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Faster code?

this is the tool I meant - visDoc / ASDoc were these once the same?
cant remember... Im having a slow day...

http://www.visiblearea.com/visdoc/

On 12/23/05, Merrill, Jason [EMAIL PROTECTED] wrote:
 Where can I get ASDoc?  Google seems pretty ignorant of it - at
least as
 a product or software tool.  Or is it an internal-only product
Adobe
 uses?  Or is it simply a Macromedia standardized HTML format for
help
 content?

 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of JesterXL
 Sent: Friday, December 23, 2005 10:56 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Faster code?
 
 Oh yeah definatly.  Even though Natural Doc's syntax feels more
 straightforward, ASDoc definately has the most beautiful output
that
 I've
 seen to date.
 
 - Original Message -
 From: Paul BH [EMAIL PROTECTED]
 To: Flashcoders mailing list
flashcoders@chattyfig.figleaf.com
 Sent: Friday, December 23, 2005 10:53 AM
 Subject: Re: [Flashcoders] Faster code?
 
 
 1) I agree, that's why back to my earlier thing, I rarely
comment
-
 what ASDoc does do however is provide a way of displaying things
like
 your method signature in a friendly HTML like manner, with a
handy
 index down the side. When I do comment, it would be to explain
some
 hackery, or something that wasnt obvious - within a function,
this
 wouldnt get picked up, if it was something like a paramenter
only
 being in an allowable range, I would comment that in a way that
ASDoc
 picks up...
 
 2)Hehe if I couldnt do that, it would be nirvana-esque... I
never
said
 that this document wouldnt change - the key thing here is to
make
sure
 that the change is captured in one place and one place alone...
ie
-
 when business changes the specification, this is reflected in my
unit
 tests (as they are one  the same document), and thus my test
suite
 know about it straight away...
 
 On 12/23/05, JesterXL [EMAIL PROTECTED] wrote:
  1.  ASDoc just generates comments from your code.  If your
code
 comments
  aren't up to date, neither is your generated asdocs.
 
  2. If you could coerce a client to sign a document saying that
 business
  requirements never change... hell dude, I'm hiring you
fulltime
to
 work
  for
  me!
 
 
  - Original Message -
  From: Paul BH [EMAIL PROTECTED]
  To: Flashcoders mailing list
flashcoders@chattyfig.figleaf.com
  Sent: Friday, December 23, 2005 10:31 AM
  Subject: Re: [Flashcoders] Faster code?
 
 
  I'm so glad I opened such a juicy can of worms just before
Christmas
 ;)
 
  I just want to throw one more thing into the mix before I
dissappear
 off
  to
  numb
  my family reunion with hefty doses of alcohol...
 
  So, now I think my comments before about, erm comments still
stand.
 I
  see comments differently to documentation, so I'll just add my
  tuppence to this and retire to eat drink  be merry...
 
  I think some (many)? people dont document because they cant be
 arsed.
  Why is this the case? We'll, again, I think it comes down to
 changing
  requirements, and the fact that I hate having the same
information
 in
  two places, as at some point one will get out of date...
 
  How to manage this, and at the same time make your code easy
to
  understand?
 
  This is how we are approaching it / looking to approach it...
 
  1) Documentation of individual methods within classes is done
using
  ASDoc which gets triggered whenever a file gets checked into
source
  control -- your documentataion is generated from your class
file,
 and
  is *always* up to date with your checked in class file...
 
  2) We are looking into using a thing called FIT
(http://fit.c2.com/)
  What this does is tie in business requirements with unit
tests.
The
  business (ie the client) basically write their specifications
(or
 are
  assisted with it) in a word document. wherever a table is
 encountered,
  this is interpreted by FIT as a unit test, and the test
builder
 writes
  a fixture to accomodate that test... What this means is that
you
are
  documenting your business logic in one place (rather than both
a
 specs
  document and a 

Re: [Flashcoders] Flash stock ticker

2005-12-23 Thread Alejandro Diaz
Thanks for your reply Jason,

One of the concerns I had with doing the instances was that I was
erroneously thinking of a previous project, in which the size of each of
those instances would be different, but for this specific project I can
force the width of each stock data (all the info including names and prices)
to be set to a specific value, making the whole animation possible, in terms
of smoothness.

How do you suggest I do the detection to know if they are out of the viewing
area? My guess is based on the dimensions of the clip and its location i'll
be able to check if it is 'visible', but do you know of any other methods?

Thanks once again,
-Alex


On 12/22/05, Merrill, Jason [EMAIL PROTECTED] wrote:

 In absence of that, any hints of tips anyone can offer would be of
 great
 help. The way I have done some somewhat similar projects involved
 creating a
 large movie clip from the loaded data, and then calculating the width
 of
 that movie clip to use in its looping animation (using 2 instances to
 make
 it seamless).  The problem I foresee with that is that this has the
 potential of being very long, and thus might not animate smoothly.
 Does
 anyone have any general suggestions I should consider as I plan this
 project?

 Instead of making a big 'ol movie clip in a library and
 animating/tweening that, I would instead make a single movie clip which
 has a text field, and attach that to the stage, populate the stock data,
 and tween/animate with actionscript,  - you would create and destroy
 instances when they leave and exit the view area, and the data is
 dynamic for each clip.  That to me would be a better/more elegant
 approach, and if you do it right, will perform much better too.

 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com









 NOTICE:
 This message is for the designated recipient only and may contain
 privileged or confidential information. If you have received it in error,
 please notify the sender immediately and delete the original. Any other use
 of this e-mail by you is prohibited.
 ___
 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] Flash stock ticker

2005-12-23 Thread Alejandro Diaz
Unfortunately, this project can't be done on Flash 8, but I certainly would
be using that if I could :)

On 12/22/05, eric dolecki [EMAIL PROTECTED] wrote:

 .cacheAsBitmap might be your best friend here :)

 edolecki

 On 12/22/05, Merrill, Jason [EMAIL PROTECTED] wrote:
 
  In absence of that, any hints of tips anyone can offer would be of
  great
  help. The way I have done some somewhat similar projects involved
  creating a
  large movie clip from the loaded data, and then calculating the width
  of
  that movie clip to use in its looping animation (using 2 instances to
  make
  it seamless).  The problem I foresee with that is that this has the
  potential of being very long, and thus might not animate smoothly.
  Does
  anyone have any general suggestions I should consider as I plan this
  project?
 


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


RE: [Flashcoders] Flash stock ticker

2005-12-23 Thread Merrill, Jason
Maybe poll the _x value of the movie clip.  When it reaches a certain
value, destroy it.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Alejandro Diaz
Sent: Friday, December 23, 2005 11:48 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash stock ticker

Thanks for your reply Jason,

One of the concerns I had with doing the instances was that I was
erroneously thinking of a previous project, in which the size of each
of
those instances would be different, but for this specific project I
can
force the width of each stock data (all the info including names and
prices)
to be set to a specific value, making the whole animation possible, in
terms
of smoothness.

How do you suggest I do the detection to know if they are out of the
viewing
area? My guess is based on the dimensions of the clip and its location
i'll
be able to check if it is 'visible', but do you know of any other
methods?

Thanks once again,
-Alex


On 12/22/05, Merrill, Jason [EMAIL PROTECTED] wrote:

 In absence of that, any hints of tips anyone can offer would be of
 great
 help. The way I have done some somewhat similar projects involved
 creating a
 large movie clip from the loaded data, and then calculating the
width
 of
 that movie clip to use in its looping animation (using 2 instances
to
 make
 it seamless).  The problem I foresee with that is that this has
the
 potential of being very long, and thus might not animate smoothly.
 Does
 anyone have any general suggestions I should consider as I plan
this
 project?

 Instead of making a big 'ol movie clip in a library and
 animating/tweening that, I would instead make a single movie clip
which
 has a text field, and attach that to the stage, populate the stock
data,
 and tween/animate with actionscript,  - you would create and destroy
 instances when they leave and exit the view area, and the data is
 dynamic for each clip.  That to me would be a better/more elegant
 approach, and if you do it right, will perform much better too.

 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com









 NOTICE:
 This message is for the designated recipient only and may contain
 privileged or confidential information. If you have received it in
error,
 please notify the sender immediately and delete the original. Any
other use
 of this e-mail by you is prohibited.
 ___
 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] Faster code?

2005-12-23 Thread hank williams
I think its a mac app.

Hank

On 12/23/05, Merrill, Jason [EMAIL PROTECTED] wrote:
 I downloaded the trial, but what's a .dmg file and how do I unpack it in
 Windows?  Couldn't find any info on their site - and double-clicking the
 file gives me an error - unrecognized file type.

 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Merrill, Jason
 Sent: Friday, December 23, 2005 11:42 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Faster code?
 
 Thanks.
 
 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
 
 
 
 
 
 
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Paul BH
 Sent: Friday, December 23, 2005 11:31 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Faster code?
 
 this is the tool I meant - visDoc / ASDoc were these once the same?
 cant remember... Im having a slow day...
 
 http://www.visiblearea.com/visdoc/
 
 On 12/23/05, Merrill, Jason [EMAIL PROTECTED] wrote:
  Where can I get ASDoc?  Google seems pretty ignorant of it - at
 least as
  a product or software tool.  Or is it an internal-only product
 Adobe
  uses?  Or is it simply a Macromedia standardized HTML format for
 help
  content?
 
  Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
 
 
 
 
 
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of JesterXL
  Sent: Friday, December 23, 2005 10:56 AM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] Faster code?
  
  Oh yeah definatly.  Even though Natural Doc's syntax feels more
  straightforward, ASDoc definately has the most beautiful output
 that
  I've
  seen to date.
  
  - Original Message -
  From: Paul BH [EMAIL PROTECTED]
  To: Flashcoders mailing list
 flashcoders@chattyfig.figleaf.com
  Sent: Friday, December 23, 2005 10:53 AM
  Subject: Re: [Flashcoders] Faster code?
  
  
  1) I agree, that's why back to my earlier thing, I rarely
 comment
 -
  what ASDoc does do however is provide a way of displaying things
 like
  your method signature in a friendly HTML like manner, with a
 handy
  index down the side. When I do comment, it would be to explain
 some
  hackery, or something that wasnt obvious - within a function,
 this
  wouldnt get picked up, if it was something like a paramenter
 only
  being in an allowable range, I would comment that in a way that
 ASDoc
  picks up...
  
  2)Hehe if I couldnt do that, it would be nirvana-esque... I
 never
 said
  that this document wouldnt change - the key thing here is to
 make
 sure
  that the change is captured in one place and one place alone...
 ie
 -
  when business changes the specification, this is reflected in my
 unit
  tests (as they are one  the same document), and thus my test
 suite
  know about it straight away...
  
  On 12/23/05, JesterXL [EMAIL PROTECTED] wrote:
   1.  ASDoc just generates comments from your code.  If your
 code
  comments
   aren't up to date, neither is your generated asdocs.
  
   2. If you could coerce a client to sign a document saying that
  business
   requirements never change... hell dude, I'm hiring you
 fulltime
 to
  work
   for
   me!
  
  
   - Original Message -
   From: Paul BH [EMAIL PROTECTED]
   To: Flashcoders mailing list
 flashcoders@chattyfig.figleaf.com
   Sent: Friday, December 23, 2005 10:31 AM
   Subject: Re: [Flashcoders] Faster code?
  
  
   I'm so glad I opened such a juicy can of worms just before
 Christmas
  ;)
  
   I just want to throw one more thing into the mix before I
 dissappear
  off
   to
   numb
   my family reunion with hefty doses of alcohol...
  
   So, now I think my comments before about, erm comments still
 stand.
  I
   see comments differently to documentation, so I'll just add my
   tuppence to this and retire to eat drink  be merry...
  
   I think some (many)? people dont document because they cant be
  arsed.
   Why is this the case? We'll, again, I think it comes down to
  changing
   requirements, and the fact that I hate having the same
 information
  in
   two places, as at some point one will get out of date...
  
   How to manage this, and at the same time make your code easy
 to
   understand?
  
   This is how we are approaching it / looking to approach it...
  
   1) Documentation of individual methods within classes is done
 using
   ASDoc which gets triggered whenever a file gets checked into
 source
   control -- your documentataion is generated from your class
 file,
  and
   is *always* up to date with your checked in class file...
  
   2) We are looking into using a thing called FIT
 (http://fit.c2.com/)
   What this does is tie in business requirements with unit
 tests.
 The
   business (ie the client) basically write their specifications
 (or
  are
   assisted with it) in a word document. 

[Flashcoders] Scrollpain Overlap Issues

2005-12-23 Thread tech
Hello, 

 

I'm running into some problems with the scrollpane component. Here's a quick
breakdown of what's happening:

 

1. I'm using the v2 scrollPane component to build a menu list

2. I attach movieClips from the library into a container movieclip, each
attached clip contains different v2 components

3. When I attach the clip with the scrollPane menu, it works fine

4. However, if a prior component contains a comboBox component, the
scrollPane menu loses it's mask

 

I have uploaded a swf, so you can check it out at:
http://mike.randm.org/flash/scrollpain/

1. To view the menu, click one

2. To view the error, click two then one

 

Thanks for any help in advance,

Mike

 

 

 

Here is the code I used to build the menu:

 

//SETUP QUSTIONS SCROLLPANE - NO HORIZONTAL SCROLLING ALLOWED

questions_sp.hScrollPolicy=off;

questions_sp.vScrollPolicy=on;

 

//SET UP BLANK HOLDER TO BUILD QUESTION LIST IN SCROLLPANE

questions_sp.contentPath = blank; //blank movie clip from library

var paneContent = questions_sp.content;

 

//TEMPORARY TEST VARIABLES

qLen = 10;

 

function setUpQuestionList(){

for (var i =0; iqLen; i++){

var tp = paneContent.attachMovie(menu, menu + i,
i, {_y: i *20});



//QUESTION LIST DISPLAY TEXT - ADD QUESTION TEXT TO
THIS TEXTFIELD

tp.ID = i + 1;

tp.dsp_txt.text = Menu Item  + tp.ID;





//QUESTION LIST BUTTON - PUSH TO LOAD QUESTION TEXT
AND ANSWER TEXT

tp.button_mc.onRelease = function(){

trace(this);

displayQuestion(this._parent.ID);

}

tp.button_mc.onRollOver = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xCC);

}

tp.button_mc.onRollOut = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xF0F0EF);

}



//QUESTION LIST MOVE UP BUTTON - PUSH TO MOVE
QUESTION UP

tp.menuUp_mc.onRelease = function(){

trace(this);

}



//QUESTION LIST MOVE DOWN BUTTON - PUSH TO MOVE
QUESTION DOWN

tp.menuDown_mc.onRelease = function(){

trace(this);

}

}

 

//REDRAW QUESTIONS SCROLL PANE TO INSURE CONTENT DISPLAYS
CORRECTLY

questions_sp.redraw(true);

}

 

 

 

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


Re: [Flashcoders] Faster code?

2005-12-23 Thread JesterXL
ASDoc was not a Mac product, but windows.  However, asdocs.com is down, and 
I no longer have a copy on my comp, so not sure bro.

- Original Message - 
From: Merrill, Jason [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, December 23, 2005 12:15 PM
Subject: RE: [Flashcoders] Faster code?


Ah - I guess it is.  Says that WAY down the web page - not in the top
where it says, download.  What's the best one for Windows?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of hank williams
Sent: Friday, December 23, 2005 12:02 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Faster code?

I think its a mac app.

Hank

On 12/23/05, Merrill, Jason [EMAIL PROTECTED] wrote:
 I downloaded the trial, but what's a .dmg file and how do I unpack
it in
 Windows?  Couldn't find any info on their site - and double-clicking
the
 file gives me an error - unrecognized file type.

 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Merrill, Jason
 Sent: Friday, December 23, 2005 11:42 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Faster code?
 
 Thanks.
 
 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
 
 
 
 
 
 
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Paul BH
 Sent: Friday, December 23, 2005 11:31 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Faster code?
 
 this is the tool I meant - visDoc / ASDoc were these once the
same?
 cant remember... Im having a slow day...
 
 http://www.visiblearea.com/visdoc/
 
 On 12/23/05, Merrill, Jason [EMAIL PROTECTED] wrote:
  Where can I get ASDoc?  Google seems pretty ignorant of it -
at
 least as
  a product or software tool.  Or is it an internal-only product
 Adobe
  uses?  Or is it simply a Macromedia standardized HTML format
for
 help
  content?
 
  Jason Merrill   |   E-Learning Solutions   |
icfconsulting.com
 
 
 
 
 
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of JesterXL
  Sent: Friday, December 23, 2005 10:56 AM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] Faster code?
  
  Oh yeah definatly.  Even though Natural Doc's syntax feels
more
  straightforward, ASDoc definately has the most beautiful
output
 that
  I've
  seen to date.
  
  - Original Message -
  From: Paul BH [EMAIL PROTECTED]
  To: Flashcoders mailing list
 flashcoders@chattyfig.figleaf.com
  Sent: Friday, December 23, 2005 10:53 AM
  Subject: Re: [Flashcoders] Faster code?
  
  
  1) I agree, that's why back to my earlier thing, I rarely
 comment
 -
  what ASDoc does do however is provide a way of displaying
things
 like
  your method signature in a friendly HTML like manner, with a
 handy
  index down the side. When I do comment, it would be to
explain
 some
  hackery, or something that wasnt obvious - within a
function,
 this
  wouldnt get picked up, if it was something like a paramenter
 only
  being in an allowable range, I would comment that in a way
that
 ASDoc
  picks up...
  
  2)Hehe if I couldnt do that, it would be nirvana-esque... I
 never
 said
  that this document wouldnt change - the key thing here is to
 make
 sure
  that the change is captured in one place and one place
alone...
 ie
 -
  when business changes the specification, this is reflected
in my
 unit
  tests (as they are one  the same document), and thus my
test
 suite
  know about it straight away...
  
  On 12/23/05, JesterXL [EMAIL PROTECTED] wrote:
   1.  ASDoc just generates comments from your code.  If your
 code
  comments
   aren't up to date, neither is your generated asdocs.
  
   2. If you could coerce a client to sign a document saying
that
  business
   requirements never change... hell dude, I'm hiring you
 fulltime
 to
  work
   for
   me!
  
  
   - Original Message -
   From: Paul BH [EMAIL PROTECTED]
   To: Flashcoders mailing list
 flashcoders@chattyfig.figleaf.com
   Sent: Friday, December 23, 2005 10:31 AM
   Subject: Re: [Flashcoders] Faster code?
  
  
   I'm so glad I opened such a juicy can of worms just before
 Christmas
  ;)
  
   I just want to throw one more thing into the mix before I
 dissappear
  off
   to
   numb
   my family reunion with hefty doses of alcohol...
  
   So, now I think my comments before about, erm comments
still
 stand.
  I
   see comments differently to documentation, so I'll just
add my
   tuppence to this and retire to eat drink  be merry...
  
   I think some (many)? people dont document because they
cant be
  arsed.
   Why is this the case? We'll, again, I think it comes down
to
  changing
   requirements, and the fact that I hate having the same
 

RE: [Flashcoders] Faster code?

2005-12-23 Thread Merrill, Jason
Nevermind - says it at the top too - I'm ready for the holiday break.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Friday, December 23, 2005 12:16 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Faster code?

Ah - I guess it is.  Says that WAY down the web page - not in the top
where it says, download.  What's the best one for Windows?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of hank williams
Sent: Friday, December 23, 2005 12:02 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Faster code?

I think its a mac app.

Hank

On 12/23/05, Merrill, Jason [EMAIL PROTECTED] wrote:
 I downloaded the trial, but what's a .dmg file and how do I unpack
it in
 Windows?  Couldn't find any info on their site - and
double-clicking
the
 file gives me an error - unrecognized file type.

 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Merrill, Jason
 Sent: Friday, December 23, 2005 11:42 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Faster code?
 
 Thanks.
 
 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
 
 
 
 
 
 
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Paul BH
 Sent: Friday, December 23, 2005 11:31 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Faster code?
 
 this is the tool I meant - visDoc / ASDoc were these once the
same?
 cant remember... Im having a slow day...
 
 http://www.visiblearea.com/visdoc/
 
 On 12/23/05, Merrill, Jason [EMAIL PROTECTED]
wrote:
  Where can I get ASDoc?  Google seems pretty ignorant of it -
at
 least as
  a product or software tool.  Or is it an internal-only
product
 Adobe
  uses?  Or is it simply a Macromedia standardized HTML format
for
 help
  content?
 
  Jason Merrill   |   E-Learning Solutions   |
icfconsulting.com
 
 
 
 
 
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of JesterXL
  Sent: Friday, December 23, 2005 10:56 AM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] Faster code?
  
  Oh yeah definatly.  Even though Natural Doc's syntax feels
more
  straightforward, ASDoc definately has the most beautiful
output
 that
  I've
  seen to date.
  
  - Original Message -
  From: Paul BH [EMAIL PROTECTED]
  To: Flashcoders mailing list
 flashcoders@chattyfig.figleaf.com
  Sent: Friday, December 23, 2005 10:53 AM
  Subject: Re: [Flashcoders] Faster code?
  
  
  1) I agree, that's why back to my earlier thing, I rarely
 comment
 -
  what ASDoc does do however is provide a way of displaying
things
 like
  your method signature in a friendly HTML like manner, with
a
 handy
  index down the side. When I do comment, it would be to
explain
 some
  hackery, or something that wasnt obvious - within a
function,
 this
  wouldnt get picked up, if it was something like a
paramenter
 only
  being in an allowable range, I would comment that in a way
that
 ASDoc
  picks up...
  
  2)Hehe if I couldnt do that, it would be nirvana-esque...
I
 never
 said
  that this document wouldnt change - the key thing here is
to
 make
 sure
  that the change is captured in one place and one place
alone...
 ie
 -
  when business changes the specification, this is reflected
in my
 unit
  tests (as they are one  the same document), and thus my
test
 suite
  know about it straight away...
  
  On 12/23/05, JesterXL [EMAIL PROTECTED] wrote:
   1.  ASDoc just generates comments from your code.  If
your
 code
  comments
   aren't up to date, neither is your generated asdocs.
  
   2. If you could coerce a client to sign a document
saying
that
  business
   requirements never change... hell dude, I'm hiring you
 fulltime
 to
  work
   for
   me!
  
  
   - Original Message -
   From: Paul BH [EMAIL PROTECTED]
   To: Flashcoders mailing list
 flashcoders@chattyfig.figleaf.com
   Sent: Friday, December 23, 2005 10:31 AM
   Subject: Re: [Flashcoders] Faster code?
  
  
   I'm so glad I opened such a juicy can of worms just
before
 Christmas
  ;)
  
   I just want to throw one more thing into the mix before
I
 dissappear
  off
   to
   numb
   my family reunion with hefty doses of alcohol...
  
   So, now I think my comments before about, erm comments
still
 stand.
  I
   see comments differently to documentation, so I'll just
add my
   tuppence to this and retire to eat drink  be merry...
  
   I think some (many)? people dont document because they
cant be
  arsed.
   Why is this the case? We'll, again, I think it comes
down
to
  changing
   requirements, and the fact that I 

RE: [Flashcoders] Scrollpain Overlap Issues

2005-12-23 Thread Merrill, Jason
That URL you sent doesn't seem to be working.

http://mike.randm.org/flash/scrollpain/ ?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 12:19 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Scrollpain Overlap Issues

Hello,



I'm running into some problems with the scrollpane component. Here's a
quick
breakdown of what's happening:



1. I'm using the v2 scrollPane component to build a menu list

2. I attach movieClips from the library into a container movieclip,
each
attached clip contains different v2 components

3. When I attach the clip with the scrollPane menu, it works fine

4. However, if a prior component contains a comboBox component, the
scrollPane menu loses it's mask



I have uploaded a swf, so you can check it out at:
http://mike.randm.org/flash/scrollpain/

1. To view the menu, click one

2. To view the error, click two then one



Thanks for any help in advance,

Mike







Here is the code I used to build the menu:



//SETUP QUSTIONS SCROLLPANE - NO HORIZONTAL SCROLLING ALLOWED

questions_sp.hScrollPolicy=off;

questions_sp.vScrollPolicy=on;



//SET UP BLANK HOLDER TO BUILD QUESTION LIST IN SCROLLPANE

questions_sp.contentPath = blank; //blank movie clip from library

var paneContent = questions_sp.content;



//TEMPORARY TEST VARIABLES

qLen = 10;



function setUpQuestionList(){

for (var i =0; iqLen; i++){

var tp = paneContent.attachMovie(menu,
menu + i,
i, {_y: i *20});



//QUESTION LIST DISPLAY TEXT - ADD QUESTION
TEXT TO
THIS TEXTFIELD

tp.ID = i + 1;

tp.dsp_txt.text = Menu Item  + tp.ID;





//QUESTION LIST BUTTON - PUSH TO LOAD QUESTION
TEXT
AND ANSWER TEXT

tp.button_mc.onRelease = function(){

trace(this);

displayQuestion(this._parent.ID);

}

tp.button_mc.onRollOver = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xCC);

}

tp.button_mc.onRollOut = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xF0F0EF);

}



//QUESTION LIST MOVE UP BUTTON - PUSH TO MOVE
QUESTION UP

tp.menuUp_mc.onRelease = function(){

trace(this);

}



//QUESTION LIST MOVE DOWN BUTTON - PUSH TO
MOVE
QUESTION DOWN

tp.menuDown_mc.onRelease = function(){

trace(this);

}

}



//REDRAW QUESTIONS SCROLL PANE TO INSURE CONTENT DISPLAYS
CORRECTLY

questions_sp.redraw(true);

}







___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Faster code?

2005-12-23 Thread Mark Ribau
I've been very pleased using Eclipse, Doxygen, Eclox, and graphviz all 
together to both code and generate my documentation (using javadoc 
styled comments).  The documentation generated even shows hierarchical 
UML. :-D  I believe these MAY be cross platform, as I'm pretty sure 
they're all written in java?


eclipse:
http://www.eclipse.org/

eclipse actionscript plugin:
http://www.eclipse-plugins.info/eclipse/plugin_details.jsp?id=867

eclox, doxygen, graphvix setup for eclipse:
http://www.statik1.com/mt-weblog/archives/92.html

It's possible, I'm sure, to use doxygen and such without eclipse, but I 
don't know how.


JesterXL wrote:

ASDoc was not a Mac product, but windows.  However, asdocs.com is down, and 
I no longer have a copy on my comp, so not sure bro.


- Original Message - 
From: Merrill, Jason [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, December 23, 2005 12:15 PM
Subject: RE: [Flashcoders] Faster code?


Ah - I guess it is.  Says that WAY down the web page - not in the top
where it says, download.  What's the best one for Windows?
 




--
Mark Ribau
Lead Windows Developer | My Tech Blog 
http://www.redbugtech.com/blogs/mark.php

Redbug Technologies, Inc. http://www.redbugtech.com - www.redbugtech.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Scrollpain Overlap Issues

2005-12-23 Thread tech
Try it again, I've added the default flash 8 detection script.
http://mike.randm.org/flash/scrollpain/index.html

You should see three buttons located at the top left of the screen.

Thanks,
Mike


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, December 23, 2005 11:30 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That URL you sent doesn't seem to be working.

http://mike.randm.org/flash/scrollpain/ ?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 12:19 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Scrollpain Overlap Issues

Hello,



I'm running into some problems with the scrollpane component. Here's a
quick
breakdown of what's happening:



1. I'm using the v2 scrollPane component to build a menu list

2. I attach movieClips from the library into a container movieclip,
each
attached clip contains different v2 components

3. When I attach the clip with the scrollPane menu, it works fine

4. However, if a prior component contains a comboBox component, the
scrollPane menu loses it's mask



I have uploaded a swf, so you can check it out at:
http://mike.randm.org/flash/scrollpain/

1. To view the menu, click one

2. To view the error, click two then one



Thanks for any help in advance,

Mike







Here is the code I used to build the menu:



//SETUP QUSTIONS SCROLLPANE - NO HORIZONTAL SCROLLING ALLOWED

questions_sp.hScrollPolicy=off;

questions_sp.vScrollPolicy=on;



//SET UP BLANK HOLDER TO BUILD QUESTION LIST IN SCROLLPANE

questions_sp.contentPath = blank; //blank movie clip from library

var paneContent = questions_sp.content;



//TEMPORARY TEST VARIABLES

qLen = 10;



function setUpQuestionList(){

for (var i =0; iqLen; i++){

var tp = paneContent.attachMovie(menu,
menu + i,
i, {_y: i *20});



//QUESTION LIST DISPLAY TEXT - ADD QUESTION
TEXT TO
THIS TEXTFIELD

tp.ID = i + 1;

tp.dsp_txt.text = Menu Item  + tp.ID;





//QUESTION LIST BUTTON - PUSH TO LOAD QUESTION
TEXT
AND ANSWER TEXT

tp.button_mc.onRelease = function(){

trace(this);

displayQuestion(this._parent.ID);

}

tp.button_mc.onRollOver = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xCC);

}

tp.button_mc.onRollOut = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xF0F0EF);

}



//QUESTION LIST MOVE UP BUTTON - PUSH TO MOVE
QUESTION UP

tp.menuUp_mc.onRelease = function(){

trace(this);

}



//QUESTION LIST MOVE DOWN BUTTON - PUSH TO
MOVE
QUESTION DOWN

tp.menuDown_mc.onRelease = function(){

trace(this);

}

}



//REDRAW QUESTIONS SCROLL PANE TO INSURE CONTENT DISPLAYS
CORRECTLY

questions_sp.redraw(true);

}







___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
NOTICE:
This message is for the designated recipient only and may contain privileged
or confidential information. If you have received it in error, please notify
the sender immediately and delete the original. Any other use of this e-mail
by you is prohibited.
___
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] Scrollpain Overlap Issues

2005-12-23 Thread Merrill, Jason
Yeah, still get a page cannot be displayed error.  I don't think its
your detection script, it's the location of your HTML file.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:05 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Try it again, I've added the default flash 8 detection script.
http://mike.randm.org/flash/scrollpain/index.html

You should see three buttons located at the top left of the screen.

Thanks,
Mike


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
Jason
Sent: Friday, December 23, 2005 11:30 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That URL you sent doesn't seem to be working.

http://mike.randm.org/flash/scrollpain/ ?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 12:19 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Scrollpain Overlap Issues

Hello,



I'm running into some problems with the scrollpane component. Here's
a
quick
breakdown of what's happening:



1. I'm using the v2 scrollPane component to build a menu list

2. I attach movieClips from the library into a container movieclip,
each
attached clip contains different v2 components

3. When I attach the clip with the scrollPane menu, it works fine

4. However, if a prior component contains a comboBox component, the
scrollPane menu loses it's mask



I have uploaded a swf, so you can check it out at:
http://mike.randm.org/flash/scrollpain/

1. To view the menu, click one

2. To view the error, click two then one



Thanks for any help in advance,

Mike







Here is the code I used to build the menu:



//SETUP QUSTIONS SCROLLPANE - NO HORIZONTAL SCROLLING ALLOWED

questions_sp.hScrollPolicy=off;

questions_sp.vScrollPolicy=on;



//SET UP BLANK HOLDER TO BUILD QUESTION LIST IN SCROLLPANE

questions_sp.contentPath = blank; //blank movie clip from
library

var paneContent = questions_sp.content;



//TEMPORARY TEST VARIABLES

qLen = 10;



function setUpQuestionList(){

for (var i =0; iqLen; i++){

var tp = paneContent.attachMovie(menu,
menu + i,
i, {_y: i *20});



//QUESTION LIST DISPLAY TEXT - ADD QUESTION
TEXT TO
THIS TEXTFIELD

tp.ID = i + 1;

tp.dsp_txt.text = Menu Item  + tp.ID;





//QUESTION LIST BUTTON - PUSH TO LOAD
QUESTION
TEXT
AND ANSWER TEXT

tp.button_mc.onRelease = function(){

trace(this);


displayQuestion(this._parent.ID);

}

tp.button_mc.onRollOver = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xCC);

}

tp.button_mc.onRollOut = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xF0F0EF);

}



//QUESTION LIST MOVE UP BUTTON - PUSH TO
MOVE
QUESTION UP

tp.menuUp_mc.onRelease = function(){

trace(this);

}



//QUESTION LIST MOVE DOWN BUTTON - PUSH TO
MOVE
QUESTION DOWN

tp.menuDown_mc.onRelease = function(){

trace(this);

}

}



//REDRAW QUESTIONS SCROLL PANE TO INSURE CONTENT
DISPLAYS
CORRECTLY

questions_sp.redraw(true);

}







___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
NOTICE:
This message is for the designated recipient only and may contain
privileged
or confidential information. If you have received it in error, please
notify
the sender immediately and delete the original. Any other use of this
e-mail
by you is prohibited.
___
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] Scrollpain Overlap Issues

2005-12-23 Thread tech
That's weird. I've sent the link to people here at work and offsite, and
they could view it. Let me republish and upload after lunch. Thanks for the
heads up.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, December 23, 2005 12:25 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Yeah, still get a page cannot be displayed error.  I don't think its
your detection script, it's the location of your HTML file.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:05 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Try it again, I've added the default flash 8 detection script.
http://mike.randm.org/flash/scrollpain/index.html

You should see three buttons located at the top left of the screen.

Thanks,
Mike


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
Jason
Sent: Friday, December 23, 2005 11:30 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That URL you sent doesn't seem to be working.

http://mike.randm.org/flash/scrollpain/ ?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 12:19 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Scrollpain Overlap Issues

Hello,



I'm running into some problems with the scrollpane component. Here's
a
quick
breakdown of what's happening:



1. I'm using the v2 scrollPane component to build a menu list

2. I attach movieClips from the library into a container movieclip,
each
attached clip contains different v2 components

3. When I attach the clip with the scrollPane menu, it works fine

4. However, if a prior component contains a comboBox component, the
scrollPane menu loses it's mask



I have uploaded a swf, so you can check it out at:
http://mike.randm.org/flash/scrollpain/

1. To view the menu, click one

2. To view the error, click two then one



Thanks for any help in advance,

Mike







Here is the code I used to build the menu:



//SETUP QUSTIONS SCROLLPANE - NO HORIZONTAL SCROLLING ALLOWED

questions_sp.hScrollPolicy=off;

questions_sp.vScrollPolicy=on;



//SET UP BLANK HOLDER TO BUILD QUESTION LIST IN SCROLLPANE

questions_sp.contentPath = blank; //blank movie clip from
library

var paneContent = questions_sp.content;



//TEMPORARY TEST VARIABLES

qLen = 10;



function setUpQuestionList(){

for (var i =0; iqLen; i++){

var tp = paneContent.attachMovie(menu,
menu + i,
i, {_y: i *20});



//QUESTION LIST DISPLAY TEXT - ADD QUESTION
TEXT TO
THIS TEXTFIELD

tp.ID = i + 1;

tp.dsp_txt.text = Menu Item  + tp.ID;





//QUESTION LIST BUTTON - PUSH TO LOAD
QUESTION
TEXT
AND ANSWER TEXT

tp.button_mc.onRelease = function(){

trace(this);


displayQuestion(this._parent.ID);

}

tp.button_mc.onRollOver = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xCC);

}

tp.button_mc.onRollOut = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xF0F0EF);

}



//QUESTION LIST MOVE UP BUTTON - PUSH TO
MOVE
QUESTION UP

tp.menuUp_mc.onRelease = function(){

trace(this);

}



//QUESTION LIST MOVE DOWN BUTTON - PUSH TO
MOVE
QUESTION DOWN

tp.menuDown_mc.onRelease = function(){

trace(this);

}

}



//REDRAW QUESTIONS SCROLL PANE TO INSURE CONTENT
DISPLAYS
CORRECTLY

questions_sp.redraw(true);

}







___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
NOTICE:
This message is for the designated recipient only and may contain
privileged
or confidential information. If you have received it in error, please
notify
the sender immediately and delete the original. Any other use of this
e-mail
by you is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list

Re: [Flashcoders] _targetInstanceName?

2005-12-23 Thread Hans Wichman

Hi,
if you create a component and hook up a class to it, and provide a method 
such as:


[Inspectable(_targetInstanceName=)]
function set _targetInstanceName(targetName:String) {
//do whatever
}

you can drag and drop your component on another clip and your instance's 
_targetInstanceName will be set to the name of the clip you dropped it on.


greetz
Hans


At 04:56 PM 12/23/2005, eric dolecki wrote:

You mean

mc._name ?

On 12/23/05, Mark Ribau [EMAIL PROTECTED] wrote:

 Hey folks,

 I'm in Flash 8 Pro, building for Flash 7 player.  I'm trying to get
 _targetInstanceName working, but I can't seem to get it to work.  Does
 anyone have a good example of how to get it working?

 --
 Mark Ribau
 Lead Windows Developer | My Tech Blog
 http://www.redbugtech.com/blogs/mark.php
 Redbug Technologies, Inc. http://www.redbugtech.com - www.redbugtech.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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


RE: [Flashcoders] Scrollpain Overlap Issues

2005-12-23 Thread Merrill, Jason
Tried it in both IE and Firefox.  Not having any other network issues
either.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:28 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That's weird. I've sent the link to people here at work and offsite,
and
they could view it. Let me republish and upload after lunch. Thanks
for the
heads up.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
Jason
Sent: Friday, December 23, 2005 12:25 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Yeah, still get a page cannot be displayed error.  I don't think its
your detection script, it's the location of your HTML file.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:05 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Try it again, I've added the default flash 8 detection script.
http://mike.randm.org/flash/scrollpain/index.html

You should see three buttons located at the top left of the screen.

Thanks,
Mike


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
Jason
Sent: Friday, December 23, 2005 11:30 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That URL you sent doesn't seem to be working.

http://mike.randm.org/flash/scrollpain/ ?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED]
[mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 12:19 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Scrollpain Overlap Issues

Hello,



I'm running into some problems with the scrollpane component.
Here's
a
quick
breakdown of what's happening:



1. I'm using the v2 scrollPane component to build a menu list

2. I attach movieClips from the library into a container
movieclip,
each
attached clip contains different v2 components

3. When I attach the clip with the scrollPane menu, it works fine

4. However, if a prior component contains a comboBox component,
the
scrollPane menu loses it's mask



I have uploaded a swf, so you can check it out at:
http://mike.randm.org/flash/scrollpain/

1. To view the menu, click one

2. To view the error, click two then one



Thanks for any help in advance,

Mike







Here is the code I used to build the menu:



//SETUP QUSTIONS SCROLLPANE - NO HORIZONTAL SCROLLING ALLOWED

questions_sp.hScrollPolicy=off;

questions_sp.vScrollPolicy=on;



//SET UP BLANK HOLDER TO BUILD QUESTION LIST IN SCROLLPANE

questions_sp.contentPath = blank; //blank movie clip from
library

var paneContent = questions_sp.content;



//TEMPORARY TEST VARIABLES

qLen = 10;



function setUpQuestionList(){

for (var i =0; iqLen; i++){

var tp = paneContent.attachMovie(menu,
menu + i,
i, {_y: i *20});



//QUESTION LIST DISPLAY TEXT - ADD
QUESTION
TEXT TO
THIS TEXTFIELD

tp.ID = i + 1;

tp.dsp_txt.text = Menu Item  + tp.ID;





//QUESTION LIST BUTTON - PUSH TO LOAD
QUESTION
TEXT
AND ANSWER TEXT

tp.button_mc.onRelease = function(){

trace(this);


displayQuestion(this._parent.ID);

}

tp.button_mc.onRollOver = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xCC);

}

tp.button_mc.onRollOut = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xF0F0EF);

}



//QUESTION LIST MOVE UP BUTTON - PUSH TO
MOVE
QUESTION UP

tp.menuUp_mc.onRelease = function(){

trace(this);

}



//QUESTION LIST MOVE DOWN BUTTON - PUSH TO
MOVE
QUESTION DOWN

tp.menuDown_mc.onRelease = function(){

trace(this);

}

}



//REDRAW QUESTIONS SCROLL PANE TO INSURE CONTENT
DISPLAYS
CORRECTLY

questions_sp.redraw(true);

}







___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
NOTICE:
This message is for the designated recipient only and may contain
privileged
or confidential information. If you have received 

Re: [Flashcoders] _targetInstanceName? Events?

2005-12-23 Thread Mark Ribau
Ok, I got that part working, but how does the thing I dropped it on get 
the events from the component I dropped onto it ?


I tried:

this.addEventListener(onScroll, this.target);

but that didn't seem to work.

Hans Wichman wrote:


Hi,
if you create a component and hook up a class to it, and provide a 
method such as:


[Inspectable(_targetInstanceName=)]
function set _targetInstanceName(targetName:String) {
//do whatever
}

you can drag and drop your component on another clip and your 
instance's _targetInstanceName will be set to the name of the clip you 
dropped it on.


greetz
Hans


At 04:56 PM 12/23/2005, eric dolecki wrote:


You mean

mc._name ?

On 12/23/05, Mark Ribau [EMAIL PROTECTED] wrote:

 Hey folks,

 I'm in Flash 8 Pro, building for Flash 7 player.  I'm trying to get
 _targetInstanceName working, but I can't seem to get it to work.  Does
 anyone have a good example of how to get it working?

 --
 Mark Ribau
 Lead Windows Developer | My Tech Blog
 http://www.redbugtech.com/blogs/mark.php
 Redbug Technologies, Inc. http://www.redbugtech.com - 
www.redbugtech.com

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

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



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







--
Mark Ribau
Lead Windows Developer | My Tech Blog 
http://www.redbugtech.com/blogs/mark.php

Redbug Technologies, Inc. http://www.redbugtech.com - www.redbugtech.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Faster code?

2005-12-23 Thread Jim Kremens
Also, As2API works great on Windows.

Jim Kremens

On 12/23/05, Mark Ribau [EMAIL PROTECTED] wrote:
 I've been very pleased using Eclipse, Doxygen, Eclox, and graphviz all
 together to both code and generate my documentation (using javadoc
 styled comments).  The documentation generated even shows hierarchical
 UML. :-D  I believe these MAY be cross platform, as I'm pretty sure
 they're all written in java?

 eclipse:
 http://www.eclipse.org/

 eclipse actionscript plugin:
 http://www.eclipse-plugins.info/eclipse/plugin_details.jsp?id=867

 eclox, doxygen, graphvix setup for eclipse:
 http://www.statik1.com/mt-weblog/archives/92.html

 It's possible, I'm sure, to use doxygen and such without eclipse, but I
 don't know how.

 JesterXL wrote:

 ASDoc was not a Mac product, but windows.  However, asdocs.com is down, and
 I no longer have a copy on my comp, so not sure bro.
 
 - Original Message -
 From: Merrill, Jason [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, December 23, 2005 12:15 PM
 Subject: RE: [Flashcoders] Faster code?
 
 
 Ah - I guess it is.  Says that WAY down the web page - not in the top
 where it says, download.  What's the best one for Windows?
 
 


 --
 Mark Ribau
 Lead Windows Developer | My Tech Blog
 http://www.redbugtech.com/blogs/mark.php
 Redbug Technologies, Inc. http://www.redbugtech.com - www.redbugtech.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Drag-n-Drop from DataGrid to Tree Flash 7

2005-12-23 Thread Wade Arnold

http://drumbeatinsight.com/dnddatagrid

Email me off list and you can view the beta. It works great with flash 
7.


Wade



On Dec 22, 2005, at 12:52 PM, Jeff Mastropietro wrote:

Does anyone know of a good drag-n-drop script for Flash 7.  I need to 
be able to drag an item from a DataGrid, to a Tree component.


This component is really great, but it's for Flash 8:
http://www.sephiroth.it/index.php?blogId=2005_11_20_weekly.html

Thanks,
Jeff
___
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] _targetInstanceName? Events?

2005-12-23 Thread Hans Wichman

Hi,
if you got your target through something like:

 this.target = this._parent[this._targetInstanceName]

that should work. You might have to do something like:

[Inspectable(_targetInstanceName=)]
function set _targetInstanceName(targetName:String) {


this.targetInstanceName = targetName;


//do whatever
}


and then this.target = this._parent[this.targetInstanceName];

not to sure about that one ;), might be that _targetInstanceName's value is 
accessible directly or not.


greetz
Hans



At 07:37 PM 12/23/2005, Mark Ribau wrote:
Ok, I got that part working, but how does the thing I dropped it on get 
the events from the component I dropped onto it ?


I tried:

this.addEventListener(onScroll, this.target);

but that didn't seem to work.

Hans Wichman wrote:


Hi,
if you create a component and hook up a class to it, and provide a method 
such as:


[Inspectable(_targetInstanceName=)]
function set _targetInstanceName(targetName:String) {





//do whatever
}

you can drag and drop your component on another clip and your instance's 
_targetInstanceName will be set to the name of the clip you dropped it on.


greetz
Hans


At 04:56 PM 12/23/2005, eric dolecki wrote:


You mean

mc._name ?

On 12/23/05, Mark Ribau [EMAIL PROTECTED] wrote:

 Hey folks,

 I'm in Flash 8 Pro, building for Flash 7 player.  I'm trying to get
 _targetInstanceName working, but I can't seem to get it to work.  Does
 anyone have a good example of how to get it working?

 --
 Mark Ribau
 Lead Windows Developer | My Tech Blog
 http://www.redbugtech.com/blogs/mark.php
 Redbug Technologies, Inc. http://www.redbugtech.com - 
www.redbugtech.com

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

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



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






--
Mark Ribau
Lead Windows Developer | My Tech Blog 
http://www.redbugtech.com/blogs/mark.php

Redbug Technologies, Inc. http://www.redbugtech.com - www.redbugtech.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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


Re: [Flashcoders] _targetInstanceName? Events?

2005-12-23 Thread Mark Ribau

I got this:

(XScroller Class):
   [Bindable]
   [Inspectable(defaultValue=)]
   function set _targetInstanceName(targetName:String):Void
   {
   this._TargetName = targetName;
   this._Target = this._parent[this._TargetName];
   if ( this._Target !=  )
   {
   this.addEventListener(onScroll, this._Target);   
   }

   }
   function get _targetInstanceName():String
   {
   return this._TargetName;
   }

   public function SetPosition(val:Number):Void
   {
   this._MyValue = val;
   if ( this._MyValue  1 )
   {
   this._MyValue = 1;
   }
   if ( this._MyValue  0 )
   {
   this._MyValue = 0;
   }
   this.Update();
   dispatchEvent({type: onScroll, target: this, horizontal: 
this._Horizontal, value: this._MyValue});

   }

(VScroller extends XScroller)

and then in the main movie, frame 1 (tb is a normal text field, and 
scroller is an instance of VScroller):


tb.onScroll = function (evt:Object)
{
   tb.text = BLAH;
   trace(BLAH);
}

onScroll = function ()
{
   tb.text = ASDF;
   trace(ASDF);
}

scroller.addEventListener(onScroll, this);

I do NOT get any traces and the tb.text doesn't get changed.  Please help??


Hans Wichman wrote:


Hi,
if you got your target through something like:

 this.target = this._parent[this._targetInstanceName]

that should work. You might have to do something like:


[Inspectable(_targetInstanceName=)]
function set _targetInstanceName(targetName:String) {




this.targetInstanceName = targetName;


//do whatever
}




and then this.target = this._parent[this.targetInstanceName];

not to sure about that one ;), might be that _targetInstanceName's 
value is accessible directly or not.


greetz
Hans



At 07:37 PM 12/23/2005, Mark Ribau wrote:

Ok, I got that part working, but how does the thing I dropped it on 
get the events from the component I dropped onto it ?


I tried:

this.addEventListener(onScroll, this.target);

but that didn't seem to work.

Hans Wichman wrote:


Hi,
if you create a component and hook up a class to it, and provide a 
method such as:


[Inspectable(_targetInstanceName=)]
function set _targetInstanceName(targetName:String) {







//do whatever
}

you can drag and drop your component on another clip and your 
instance's _targetInstanceName will be set to the name of the clip 
you dropped it on.


greetz
Hans


At 04:56 PM 12/23/2005, eric dolecki wrote:


You mean

mc._name ?

On 12/23/05, Mark Ribau [EMAIL PROTECTED] wrote:

 Hey folks,

 I'm in Flash 8 Pro, building for Flash 7 player.  I'm trying to get
 _targetInstanceName working, but I can't seem to get it to work.  
Does

 anyone have a good example of how to get it working?

 --
 Mark Ribau
 Lead Windows Developer | My Tech Blog
 http://www.redbugtech.com/blogs/mark.php
 Redbug Technologies, Inc. http://www.redbugtech.com - 
www.redbugtech.com

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

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




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






--
Mark Ribau
Lead Windows Developer | My Tech Blog 
http://www.redbugtech.com/blogs/mark.php
Redbug Technologies, Inc. http://www.redbugtech.com - 
www.redbugtech.com

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



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







--
Mark Ribau
Lead Windows Developer | My Tech Blog 
http://www.redbugtech.com/blogs/mark.php

Redbug Technologies, Inc. http://www.redbugtech.com - www.redbugtech.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Text width question

2005-12-23 Thread tw-tracer
One strange situation...
Why when change width of dynamic text field to width less then some value 
(font-dependent) multiline and wordwrap is didn't work?

I was create some textfield... enter some text... than with action script 
change width to value less than font pt multiplied by 2 (for example - if font 
12pt, than width value  24)... text viewed as one line and it leave textfield 
borders...

I think is general text field problem... or I make mistake? 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Custom combobox

2005-12-23 Thread Mike Boutin
Can anyone tell me how to go about creating a comobox that can hold a 
10x10 pixel color palette image and a label beside it per row?  Has 
anyone seen anything like this?


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


[Flashcoders] Removing A Delegated EventListener

2005-12-23 Thread clark slater
Hey Folks,

HAPPY HOLIDAYS!

Now say I delegate an event listener as so:
chooseBtn.addEventListener (click, Delegate.create (this,
onChooseOptions));

How do I go about removing the eventListener? Like this?
chooseBtn.removeEventListener (click, Delegate.create (this,
onChooseOptions));

Thanks,

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


Re: [Flashcoders] Can an object delete itself?

2005-12-23 Thread Judah Frangipane

Mark Burvill wrote:


   public function die():Void {
   trace (deleting);
   removeMovieClip (baddie_mc);
   delete this;
   trace (Am i still alive?);
   }

The movieclip is successfully removed, but I would expect the second 
trace Am I still alive NOT to appear as the object has been deleted, 
but it does.
I read somewhere that it is illegal for an object to delete itself - 
is this true?

Is there another easy way of doing this?


I use the delete all the time like you are doing. Flash continues to run 
your code until the end of the statement block. I thought that once you 
delete something that garbage collection would take over after the 
function exits. Someone correct me if I'm wrong.


for example, run this in a new fla

index = 0;
this.onEnterFrame = function () {
   if (index==10) {
   delete onEnterFrame;
   trace(i can still run code but only until the function closes)
   }
   trace(index=+index++)
}

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


Re: [Flashcoders] Custom combobox

2005-12-23 Thread Chris Hill

Hi Mike,

You should be able to create a movieclip class that implements the 
CellRenderer api, and then use that within the combobox's list:


var dropdown:List = myCombo.dropdown;
dropdown.cellRenderer = myCustomCellRenderer;

Having said that, I've never done this, but I don't see why it wouldn't 
work.


C



Mike Boutin wrote:

Can anyone tell me how to go about creating a comobox that can hold a 
10x10 pixel color palette image and a label beside it per row?  Has 
anyone seen anything like this?


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



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] Removing A Delegated EventListener

2005-12-23 Thread clark slater
Cheers Jesse you are the Shizzle of Christmas.

Clark


On 12/23/05, JesterXL [EMAIL PROTECTED] wrote:

 Store a reference.

 private var refDel:Function;

 refDel = Delegate.create(this, onFunction);
 my_pb.addEventListener(click, refDel);
 my_pb.removeEventListener(click, refDel);

 - Original Message -
 From: clark slater [EMAIL PROTECTED]
 To: [FlashCoders] flashcoders@chattyfig.figleaf.com
 Sent: Friday, December 23, 2005 2:37 PM
 Subject: [Flashcoders] Removing A Delegated EventListener


 Hey Folks,

 HAPPY HOLIDAYS!

 Now say I delegate an event listener as so:
 chooseBtn.addEventListener (click, Delegate.create (this,
 onChooseOptions));

 How do I go about removing the eventListener? Like this?
 chooseBtn.removeEventListener (click, Delegate.create (this,
 onChooseOptions));

 Thanks,

 Clark
 ___
 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] Removing A Delegated EventListener

2005-12-23 Thread Hairy Dog Digital
Most auspicuous response timing. I was just pondering the very same question
meeself. Now I don't have to.


 -Original Message-
 From: JesterXL [mailto:[EMAIL PROTECTED] 
 Sent: Friday, December 23, 2005 2:45 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Removing A Delegated EventListener
 
 Store a reference.
 
 private var refDel:Function;
 
 refDel = Delegate.create(this, onFunction); 
 my_pb.addEventListener(click, refDel); 
 my_pb.removeEventListener(click, refDel);
 
 - Original Message -
 From: clark slater [EMAIL PROTECTED]
 To: [FlashCoders] flashcoders@chattyfig.figleaf.com
 Sent: Friday, December 23, 2005 2:37 PM
 Subject: [Flashcoders] Removing A Delegated EventListener
 
 
 Hey Folks,

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


RE: [Flashcoders] Scrollpain Overlap Issues

2005-12-23 Thread tech
Jason,

I republished and uploaded latest files. Let me know if you still can't see
the movie. Just curious, can you view source?

http://mike.randm.org/flash/scrollpain/index.html

Mike



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, December 23, 2005 12:32 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Tried it in both IE and Firefox.  Not having any other network issues
either.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:28 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That's weird. I've sent the link to people here at work and offsite,
and
they could view it. Let me republish and upload after lunch. Thanks
for the
heads up.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
Jason
Sent: Friday, December 23, 2005 12:25 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Yeah, still get a page cannot be displayed error.  I don't think its
your detection script, it's the location of your HTML file.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:05 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Try it again, I've added the default flash 8 detection script.
http://mike.randm.org/flash/scrollpain/index.html

You should see three buttons located at the top left of the screen.

Thanks,
Mike


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
Jason
Sent: Friday, December 23, 2005 11:30 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That URL you sent doesn't seem to be working.

http://mike.randm.org/flash/scrollpain/ ?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED]
[mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 12:19 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Scrollpain Overlap Issues

Hello,



I'm running into some problems with the scrollpane component.
Here's
a
quick
breakdown of what's happening:



1. I'm using the v2 scrollPane component to build a menu list

2. I attach movieClips from the library into a container
movieclip,
each
attached clip contains different v2 components

3. When I attach the clip with the scrollPane menu, it works fine

4. However, if a prior component contains a comboBox component,
the
scrollPane menu loses it's mask



I have uploaded a swf, so you can check it out at:
http://mike.randm.org/flash/scrollpain/

1. To view the menu, click one

2. To view the error, click two then one



Thanks for any help in advance,

Mike







Here is the code I used to build the menu:



//SETUP QUSTIONS SCROLLPANE - NO HORIZONTAL SCROLLING ALLOWED

questions_sp.hScrollPolicy=off;

questions_sp.vScrollPolicy=on;



//SET UP BLANK HOLDER TO BUILD QUESTION LIST IN SCROLLPANE

questions_sp.contentPath = blank; //blank movie clip from
library

var paneContent = questions_sp.content;



//TEMPORARY TEST VARIABLES

qLen = 10;



function setUpQuestionList(){

for (var i =0; iqLen; i++){

var tp = paneContent.attachMovie(menu,
menu + i,
i, {_y: i *20});



//QUESTION LIST DISPLAY TEXT - ADD
QUESTION
TEXT TO
THIS TEXTFIELD

tp.ID = i + 1;

tp.dsp_txt.text = Menu Item  + tp.ID;





//QUESTION LIST BUTTON - PUSH TO LOAD
QUESTION
TEXT
AND ANSWER TEXT

tp.button_mc.onRelease = function(){

trace(this);


displayQuestion(this._parent.ID);

}

tp.button_mc.onRollOver = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xCC);

}

tp.button_mc.onRollOut = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xF0F0EF);

}



//QUESTION LIST MOVE UP BUTTON - PUSH TO
MOVE
QUESTION UP

tp.menuUp_mc.onRelease = function(){

trace(this);

}



//QUESTION LIST MOVE DOWN BUTTON - PUSH TO
MOVE
QUESTION DOWN

tp.menuDown_mc.onRelease = function(){

trace(this);

}

}




RE: [Flashcoders] Scrollpain Overlap Issues

2005-12-23 Thread Merrill, Jason
Nope.  Can't view source on a file I can't reach.  Tried it again, no
dice.  Maybe someone else on the list can try and see if its just me or
a problem on your end.  

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 3:37 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Jason,

I republished and uploaded latest files. Let me know if you still
can't see
the movie. Just curious, can you view source?

http://mike.randm.org/flash/scrollpain/index.html

Mike



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
Jason
Sent: Friday, December 23, 2005 12:32 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Tried it in both IE and Firefox.  Not having any other network issues
either.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:28 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That's weird. I've sent the link to people here at work and offsite,
and
they could view it. Let me republish and upload after lunch. Thanks
for the
heads up.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
Jason
Sent: Friday, December 23, 2005 12:25 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Yeah, still get a page cannot be displayed error.  I don't think its
your detection script, it's the location of your HTML file.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED]
[mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:05 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Try it again, I've added the default flash 8 detection script.
http://mike.randm.org/flash/scrollpain/index.html

You should see three buttons located at the top left of the
screen.

Thanks,
Mike


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
Jason
Sent: Friday, December 23, 2005 11:30 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That URL you sent doesn't seem to be working.

http://mike.randm.org/flash/scrollpain/ ?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED]
[mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 12:19 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Scrollpain Overlap Issues

Hello,



I'm running into some problems with the scrollpane component.
Here's
a
quick
breakdown of what's happening:



1. I'm using the v2 scrollPane component to build a menu list

2. I attach movieClips from the library into a container
movieclip,
each
attached clip contains different v2 components

3. When I attach the clip with the scrollPane menu, it works
fine

4. However, if a prior component contains a comboBox component,
the
scrollPane menu loses it's mask



I have uploaded a swf, so you can check it out at:
http://mike.randm.org/flash/scrollpain/

1. To view the menu, click one

2. To view the error, click two then one



Thanks for any help in advance,

Mike







Here is the code I used to build the menu:



//SETUP QUSTIONS SCROLLPANE - NO HORIZONTAL SCROLLING ALLOWED

questions_sp.hScrollPolicy=off;

questions_sp.vScrollPolicy=on;



//SET UP BLANK HOLDER TO BUILD QUESTION LIST IN SCROLLPANE

questions_sp.contentPath = blank; //blank movie clip from
library

var paneContent = questions_sp.content;



//TEMPORARY TEST VARIABLES

qLen = 10;



function setUpQuestionList(){

for (var i =0; iqLen; i++){

var tp = paneContent.attachMovie(menu,
menu + i,
i, {_y: i *20});



//QUESTION LIST DISPLAY TEXT - ADD
QUESTION
TEXT TO
THIS TEXTFIELD

tp.ID = i + 1;

tp.dsp_txt.text = Menu Item  + tp.ID;





//QUESTION LIST BUTTON - PUSH TO LOAD
QUESTION
TEXT
AND ANSWER TEXT

tp.button_mc.onRelease = function(){

trace(this);


displayQuestion(this._parent.ID);

}

tp.button_mc.onRollOver = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xCC);

}

tp.button_mc.onRollOut = function(){

new
Color(this._parent.menuBg_mc).setRGB(0xF0F0EF);

}



 

Re: [Flashcoders] Scrollpain Overlap Issues

2005-12-23 Thread Mike Boutin

I am able to view at both urls

tech wrote:


I uploaded to the root directory. Try this.

http://mike.randm.org/scrollpain.html


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, December 23, 2005 2:42 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Nope.  Can't view source on a file I can't reach.  Tried it again, no
dice.  Maybe someone else on the list can try and see if its just me or
a problem on your end.  


Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 3:37 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Jason,

I republished and uploaded latest files. Let me know if you still
 


can't see
 


the movie. Just curious, can you view source?

http://mike.randm.org/flash/scrollpain/index.html

Mike



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
 


Merrill,
 


Jason
Sent: Friday, December 23, 2005 12:32 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Tried it in both IE and Firefox.  Not having any other network issues
either.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com


 


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:28 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That's weird. I've sent the link to people here at work and offsite,
 


and
 


they could view it. Let me republish and upload after lunch. Thanks
 


for the
 


heads up.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
 


Merrill,
 


Jason
Sent: Friday, December 23, 2005 12:25 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Yeah, still get a page cannot be displayed error.  I don't think its
your detection script, it's the location of your HTML file.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 


-Original Message-
From: [EMAIL PROTECTED]
 


[mailto:flashcoders-
 


[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:05 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Try it again, I've added the default flash 8 detection script.
http://mike.randm.org/flash/scrollpain/index.html

You should see three buttons located at the top left of the
 


screen.
 


Thanks,
Mike


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
 


Merrill,
 


Jason
Sent: Friday, December 23, 2005 11:30 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That URL you sent doesn't seem to be working.

http://mike.randm.org/flash/scrollpain/ ?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 


-Original Message-
From: [EMAIL PROTECTED]
 


[mailto:flashcoders-
 


[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 12:19 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Scrollpain Overlap Issues

Hello,



I'm running into some problems with the scrollpane component.
 


Here's
 


a
 


quick
 


breakdown of what's happening:



1. I'm using the v2 scrollPane component to build a menu list

2. I attach movieClips from the library into a container
 


movieclip,
 


each
 


attached clip contains different v2 components

3. When I attach the clip with the scrollPane menu, it works
 


fine
 


4. However, if a prior component contains a comboBox component,
 


the
 


scrollPane menu loses it's mask



I have uploaded a swf, so you can check it out at:
http://mike.randm.org/flash/scrollpain/

1. To view the menu, click one

2. To view the error, click two then one



Thanks for any help in advance,

Mike







Here is the code I used to build the menu:



//SETUP QUSTIONS SCROLLPANE - NO HORIZONTAL SCROLLING ALLOWED

questions_sp.hScrollPolicy=off;

questions_sp.vScrollPolicy=on;



//SET UP BLANK HOLDER TO BUILD QUESTION LIST IN SCROLLPANE

questions_sp.contentPath = blank; //blank movie clip from
 


library
 


var paneContent = questions_sp.content;



//TEMPORARY TEST VARIABLES

qLen = 10;



function setUpQuestionList(){

  for (var i =0; iqLen; i++){

  var tp = paneContent.attachMovie(menu,
 


menu + i,
 


i, {_y: i *20});



  //QUESTION LIST 

RE: [Flashcoders] Scrollpain Overlap Issues

2005-12-23 Thread Merrill, Jason
Well - I can get to everywhere on the World Wide Web but that site -
must be something on our ISP's end I suppose.  Oh well... perhaps
someone else can help.  I'm outta here in the next 30 mins anyway.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Mike Boutin
Sent: Friday, December 23, 2005 3:46 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Scrollpain Overlap Issues

I am able to view at both urls

tech wrote:

I uploaded to the root directory. Try this.

http://mike.randm.org/scrollpain.html


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
Jason
Sent: Friday, December 23, 2005 2:42 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Nope.  Can't view source on a file I can't reach.  Tried it again, no
dice.  Maybe someone else on the list can try and see if its just me
or
a problem on your end.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com












-Original Message-
From: [EMAIL PROTECTED]
[mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 3:37 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Jason,

I republished and uploaded latest files. Let me know if you still


can't see


the movie. Just curious, can you view source?

http://mike.randm.org/flash/scrollpain/index.html

Mike



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of


Merrill,


Jason
Sent: Friday, December 23, 2005 12:32 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Tried it in both IE and Firefox.  Not having any other network
issues
either.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com




-Original Message-
From: [EMAIL PROTECTED]
[mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:28 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That's weird. I've sent the link to people here at work and
offsite,


and


they could view it. Let me republish and upload after lunch.
Thanks


for the


heads up.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of


Merrill,


Jason
Sent: Friday, December 23, 2005 12:25 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Yeah, still get a page cannot be displayed error.  I don't think
its
your detection script, it's the location of your HTML file.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com












-Original Message-
From: [EMAIL PROTECTED]


[mailto:flashcoders-


[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 1:05 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

Try it again, I've added the default flash 8 detection script.
http://mike.randm.org/flash/scrollpain/index.html

You should see three buttons located at the top left of the


screen.


Thanks,
Mike


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of


Merrill,


Jason
Sent: Friday, December 23, 2005 11:30 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Scrollpain Overlap Issues

That URL you sent doesn't seem to be working.

http://mike.randm.org/flash/scrollpain/ ?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com












-Original Message-
From: [EMAIL PROTECTED]


[mailto:flashcoders-


[EMAIL PROTECTED] On Behalf Of tech
Sent: Friday, December 23, 2005 12:19 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Scrollpain Overlap Issues

Hello,



I'm running into some problems with the scrollpane component.


Here's


a


quick


breakdown of what's happening:



1. I'm using the v2 scrollPane component to build a menu list

2. I attach movieClips from the library into a container


movieclip,


each


attached clip contains different v2 components

3. When I attach the clip with the scrollPane menu, it works


fine


4. However, if a prior component contains a comboBox
component,


the


scrollPane menu loses it's mask



I have uploaded a swf, so you can check it out at:
http://mike.randm.org/flash/scrollpain/

1. To view the menu, click one

2. To view the error, click two then one



Thanks for any help in advance,

Mike







Here is the code I used to build the menu:



//SETUP QUSTIONS SCROLLPANE - NO HORIZONTAL SCROLLING
ALLOWED

questions_sp.hScrollPolicy=off;

questions_sp.vScrollPolicy=on;



//SET UP BLANK HOLDER TO BUILD QUESTION LIST IN SCROLLPANE

questions_sp.contentPath = blank; //blank movie clip from


library


var paneContent = questions_sp.content;



//TEMPORARY TEST VARIABLES

qLen = 10;



function setUpQuestionList(){

   for (var i =0; iqLen; 

Re: [Flashcoders] flv batch encoding

2005-12-23 Thread Sander

I am planning a project and this is the main req:
- to capture video from several cams and store it on the server  
as .flv
What software would u choose for doing the realtime or batch  
conversion?


You can use the Flash 8 video exporter if you want Flash 8 video with  
cuepoints.
You can buy  Sorenson Squeeze if you want better quality flash 7 (2- 
pass encoding)

You can buy Flix if you want 2-pass flash 8 video.

There's no optimal tool yet, 'till the flash video exporter supports  
2-pass encoding and filters or Flix gets free :-)

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


RE: [Flashcoders] Can an object delete itself?

2005-12-23 Thread Steven Sacks
 delete something that garbage collection would take over after the 
 function exits. Someone correct me if I'm wrong.

Yes, you can do that with Flash methods like onEnterFrame, but not objects.

Notice, just because you delete an object like that and it doesn't respond
to methods that cause a trace event doesn't mean it's gone.  It's just
orphaned (has no reference) but it will never get collected.

If you want to see an example of this.

function loadMyXML() {
myXML = new XML();
myXML.onLoad = function() {
trace(xml loaded);
delete this;
}
myXML.load(someurl.xml);
}

BTN_Loader.onRelease = function() {
trace(myXML =  + myXML.onLoad);
loadMyXML();
};

Click the button after each time the xml is loaded.  You will see that myXML
cannot delete itself because the trace on the button spits out [type
Function].

So, let's take it to the next step, and create a for loop that will delete
any completed XML objects.

this.xmlHolder = {};
//
function loadMyXML() {
for (var i in this.xmlHolder) {
if (this.xmlHolder[i].complete) {
delete this.xmlHolder[i];
}
}
var id = new Date().getTime();
this.xmlHolder[id] = new XML();
this.xmlHolder[id].ignoreWhite = true;
this.xmlHolder[id].onLoad = function() {
trace(xml loaded);
this.complete = true;
};
this.xmlHolder[id].load(someurl.xml);
}
BTN_Loader.onRelease = function() {
var n = 0;
for (var a in xmlHolder) {
n++;
}
trace(xmlObjs =  + n);
loadMyXML();
};


When you click the button, you will see 0, and then 1 every time.  Looks
like it is working, right?  The object and the reference are both getting
deleted.

However, if you continue to do this, you will see your memory usage continue
going up slowly over time.  Yes, the XML object is getting deleted, but the
onLoad function you assigned is being orphaned and thus is not getting
cleaned up by the garbage collector.  So, you have to explicitly delete the
onLoad function of the xml object before you delete the xml object.

for (var i in this.xmlHolder) {
if (this.xmlHolder[i].complete) {
delete this.xmlHolder[i].onLoad;
delete this.xmlHolder[i];
}
}

Now you have no memory waste.  It's really only an issue with apps you
expect to continue running for quite some time.  The onLoads that pile up
constitute only a little bit each time, but it does add up.

HTH,
Steven

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


Re: [Flashcoders] Custom combobox

2005-12-23 Thread Mike Boutin

Thanks Jesse, thats a big help!




JesterXL wrote:


Dude, use a cellrenderer instead.
http://dev.jessewarden.com/flash/comboboxcellrenderer/

More examples in the Flash 8 help docs.  The selectedItem doesn't show it 
the icon, though, so I'll leave that as a challenge to you to figure out.


- Original Message - 
From: Mike Boutin [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, December 23, 2005 3:23 PM
Subject: Re: [Flashcoders] Custom combobox


Hi Chris, thanks for the help by the way, i managed to get it working
like so:

myCombobox.addItem(Hello world);
myCombobox.dropdown.setPropertiesAt(0,{backgroundColor:0xCC,
icon:image});

The problem being that the icon image has to be in the library and
have a linkage id.  Do you think there is any way to take this same
approach but use a dynamically loaded jpg for the icon?


Mike Boutin



Chris Hill wrote:

 


Hi Mike,

You should be able to create a movieclip class that implements the
CellRenderer api, and then use that within the combobox's list:

var dropdown:List = myCombo.dropdown;
dropdown.cellRenderer = myCustomCellRenderer;

Having said that, I've never done this, but I don't see why it
wouldn't work.

C



Mike Boutin wrote:

   


Can anyone tell me how to go about creating a comobox that can hold a
10x10 pixel color palette image and a label beside it per row?  Has
anyone seen anything like this?

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



   



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


___
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] V2 ComboBox: Target not Found

2005-12-23 Thread clark slater
Hey Folks,

V2 ComboBox component is causing a problem. When I use a ComboBox anywhere
in my application it breaks some simple existing code that loads external
JPGs even though the ComboBox *never* exists at the same time as my image
loading instance.

If a ComboBox has appeared anywhere in the application, my image loader will
now throw an error Target not Found referring to movieclip that has been
dynamically created. Provided no ComboBox appears in the app, the image
loader works perfectly.

What the Fs!ck can the ComboBox be doing to cause this? I've even resorted
to changing all the namespaces used by the image loader just in case the
ComboBox was conflicting but it makes no difference.

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


Re: [Flashcoders] Flash stock ticker

2005-12-23 Thread GregoryN

Google returns dozens of these comps.
Have you tried them?

1) google search for Flash stock ticker

2) http://aspalliance.com/articleViewer.aspx?aId=112pId=
or
http://www.jasonmperry.com/portfolio/YahooQuoteTicker.aspx
 A step-by-step guide on how to create a Yahoo Stock Quote Ticker using ASP.Net 
and Flash Remoting.

3)  Macromedia Ticker component to display delayed stocks.
  

-- 
Best regards,
 GregoryN

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

On 12/22/05, Merrill, Jason [EMAIL PROTECTED] wrote:

 In absence of that, any hints of tips anyone can offer would be of
 great
 help. The way I have done some somewhat similar projects involved
 creating a
 large movie clip from the loaded data, and then calculating the width
 of
 that movie clip to use in its looping animation (using 2 instances to
 make
 it seamless).  The problem I foresee with that is that this has the
 potential of being very long, and thus might not animate smoothly.
 Does
 anyone have any general suggestions I should consider as I plan this
 project?

 Instead of making a big 'ol movie clip in a library and
 animating/tweening that, I would instead make a single movie clip which
 has a text field, and attach that to the stage, populate the stock data,
 and tween/animate with actionscript,  - you would create and destroy
 instances when they leave and exit the view area, and the data is
 dynamic for each clip.  That to me would be a better/more elegant
 approach, and if you do it right, will perform much better too.

 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com


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


Re: [Flashcoders] Removing A Delegated EventListener

2005-12-23 Thread Michael Bedar
Or use something like gdispatcher in place of MM's EventDispatcher  
class...


http://www.gskinner.com/blog/archives/2003/09/code_gdispatche.html

It has better ways of adding and deleting...



On Dec 23, 2005, at 3:25 PM, Hairy Dog Digital wrote:

Most auspicuous response timing. I was just pondering the very same  
question

meeself. Now I don't have to.



-Original Message-
From: JesterXL [mailto:[EMAIL PROTECTED]
Sent: Friday, December 23, 2005 2:45 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Removing A Delegated EventListener

Store a reference.

private var refDel:Function;

refDel = Delegate.create(this, onFunction);
my_pb.addEventListener(click, refDel);
my_pb.removeEventListener(click, refDel);

- Original Message -
From: clark slater [EMAIL PROTECTED]
To: [FlashCoders] flashcoders@chattyfig.figleaf.com
Sent: Friday, December 23, 2005 2:37 PM
Subject: [Flashcoders] Removing A Delegated EventListener


Hey Folks,


___
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