[Flashcoders] Sorry for the off topic post but is anyone out there a really good Ajax JavaScript person we need help

2007-07-04 Thread James Deakin

Sorry for the off topic post but is anyone out there a really good Ajax
JavaScript person we need help. I'm not an agent I work for
http://www.avenuea-razorfish.com/. We are really stuck if anyone knows
someone who wants a good job. Just let me know.

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

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


Re: [Flashcoders] Estimating the time required for a project

2007-06-27 Thread James Deakin

Thanks for the once again for the advice. It has already proved useful.

Kind regards

James

On 6/19/07, Hans Wichman [EMAIL PROTECTED] wrote:


Hi,

i think i'd recommend 'code complete', 'the mythical manmonth', 'software
project survival guide', but that's just based on personal preference,
picking up some books about agile development methodologies could be a
good
idea too. To be honest, I know the ideas in there, and read papers about
it,
but havent got to reading a lot of book on agile methods perse.

The thing you describe with the employee sounds familiar, but I think
there
are two separate issues:
* wrong estimates (the subject of your first email)
* different programming approaches (the subject of the last email)

An employee who hacks everything together might give off very accurate
estimates:), the main thing probably is trying to tell your manager WHY
that
is not the way to go. If you are a perfectionist you might wanna plan for
all those one in a million cases that happen 9 times out of 10, but if
your
boss asked you to develop a quick prototype, you are indeed wasting a lot
of
time with that formal approach (not saying you are, but just if).
The reason we still do it that way is probably that we know 99,% sure
that the quick prototype will end up in production before you blink your
eyes, and one way or another you've been manouvered in such a position
that
your biting dust either way.
However, i tend to keep all communication and assumptions on email, if
someone wants a quick prototype, i give them a quick prototype, ok here
is
the quick prototype you asked for. Note it has been hacked together,
meaning
it will probably crash, its unmaintainable, has to be rewritten from
scratch
if etc etc etc.. You might go on to tell them the nitty gritty details,
tell them to read a book on software project management, or tell m to just
trust you, depending on the kind of work relationship/environment you are
in.
(note that i am leaving out the option that you have a solid simple
framework, allowing you to put together prototypes more quickly with less
disadvantages such as the ones described above).

The books mentioned will give you a lot of information on how to educate
your boss why it takes you a factor 5 or 10 or 20 compared to your
collegue,
if he wants a maintainable production ready system. If your boss still
doesnt wanna listen, find another boss, more and more managers are seeing
the light of solid software development these days :). I had the kind of
collegue you mentioned and he was fired because he just couldnt get his
stuff bugfree.
And for yourself you need to decide what kind of project you are working
on,
and what kind of measures and overhead it demands. After all a nuclear
power
system control unit will require different methods than a bouncing flash
animation.

The estimate for the project I am currently working on, was originally a
year. We had to do it in 3 months. So we said ok, we'll do it in 3, BUT
documentation will be lacking, functionality will be lacking, it wont be
as
adaptable, etc, etc, but what we do create will be okay and bugfree.
However
if you ever want to incorporate more changes, we will have to refactor as
we
go along (which we are currently doing). Of course it didn't go quite as
smoothly as it sounds, but in the end we are getting there.

Sorry for the chaotic piece of text, but to conclude:
* go with the flow, but communicate about your assumptions so they dont
backfire
* i try to keep a 'we see possibilities' attitude with a note of warning,
instead of a 'we see only problems' attitude
* read up on books and try to educate your managers, and dont worry some
managers wont understand what you are trying to explain no matter how good
you do it:)
* if you have established that you are on the right track (based on what
you
read) and are still not valued and cant change it within your current
organisation, leave. Shame to let good talent rot to waste:)


just my 2 cnts and really the books explain these phenomena we all
encounter
way better than i just tried

greetz
JC




On 6/19/07, James Deakin [EMAIL PROTECTED] wrote:

 Thanks for taking the time to respond Hans. I actually record how long
 things take already. I think you are right though perhaps the hard part
is
 having the arguments to hand to support why it will take a while.

 Which books would you recommend?

 Where I work there is another employee who is willing to hack things
 together any old way. I like to do things properly and plan for the
cases
 where the application might fail and try to deal with those gracefully.
 But
 whenever I give estimates the project manager says well the other guy
can
 do it in 5 days. its driving me nuts.

 Thanks once again for the advice.

 James

 On 6/16/07, Hans Wichman [EMAIL PROTECTED] wrote:
 
  Hi,
 
  well one advice is to start recording your current measures and check
  afterwards how close you were.
  Record things you forget that made your estimates go

Re: [Flashcoders] Estimating the time required for a project

2007-06-19 Thread James Deakin

Thanks for taking the time to respond Hans. I actually record how long
things take already. I think you are right though perhaps the hard part is
having the arguments to hand to support why it will take a while.

Which books would you recommend?

Where I work there is another employee who is willing to hack things
together any old way. I like to do things properly and plan for the cases
where the application might fail and try to deal with those gracefully. But
whenever I give estimates the project manager says well the other guy can
do it in 5 days. its driving me nuts.

Thanks once again for the advice.

James

On 6/16/07, Hans Wichman [EMAIL PROTECTED] wrote:


Hi,

well one advice is to start recording your current measures and check
afterwards how close you were.
Record things you forget that made your estimates go wrong, records the
factor realhours vs estimate.
Assume that when you think you know everything, you only know about 40% of
whats going to happen.
Adjust your estimate as you go along. Put your estimate on paper, and
include your assumptions.
If the assumptions change, check if you estimates need to be adjusted too.

Read up on software management lifecycle or books that describe software
processes such as code complete or mythical manmonth, to understand WHY
estimating a software project is hard, and how you can make your manager
understand.

It's pretty easy to become better at estimating theoretically, say you
have
a project and its estimate is 10 hours. Now it turns out to be 40 hours.
Next time you estimate 20 hours, and you go 'hey but wait, i was wrong by
400% last time', so you say 80. The hard part of doing it this way is not
having rock solid arguments to present to your boss.

Other things that come with understanding the software process is the
difference between the time it takes to hack something together, or create
a
software product, or a software system of combined working products. A
proof
of concept for a memory game might take 45 minutes, but a full flegded off
the shelf sellable memory game might take a month. It's still just a
memory
game.

etc etc

To conclude my best advice is probably to:
* start measuring, and try to understand why your estimate was wrong (or
right)
* read up on software development material

greetz
JC





On 6/16/07, James Deakin [EMAIL PROTECTED] wrote:

 I'm looking to improve the accuracy of the estimations of time required
 which I give to my project managers. Does anyone have any good advice?

 Please note that I am far from a newbie as I have been programming
 actionScript ever since it first came out (with that nasty slash
syntax).
 This is one area of the job which we never seem to talk about but its is
 one
 of the most important.

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

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

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

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


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

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


[Flashcoders] Estimating the time required for a project

2007-06-16 Thread James Deakin

I'm looking to improve the accuracy of the estimations of time required
which I give to my project managers. Does anyone have any good advice?

Please note that I am far from a newbie as I have been programming
actionScript ever since it first came out (with that nasty slash syntax).
This is one area of the job which we never seem to talk about but its is one
of the most important.

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

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


[Flashcoders] What do you think are the best Flash projects and RIA's

2007-02-14 Thread James Deakin

What do you think are the best Flash projects and RIA's? I'm involved in
lots of project where I work and I am beings asked for examples more and
more as large companies begin to see the advantages of Flash based
interfaces and RIA's.

I want to persuade people that Flash isn't a toy  and I need some really
good examples of solid work. I have a few I always rely on but I though I
would put it to the vote. So what are your top ten?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Penner AS2 ProFMX: Complete

2006-09-08 Thread James Deakin

Wow what a service. Thanks very much


On 9/8/06, Mark Walters [EMAIL PROTECTED] wrote:


I just wanted to let everyone know that I finally completed converting
all of Robert Penner's AS1 classes from his book to AS2.

You can view the last post here:
http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_20.php

You can download each set of classes here:
http://www.digitalflipbook.com/downloads/

Some examples from the book now using AS2:

Cyclone:
http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_19.php

Fractal Dancer:
http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_17.php

MotionCamera:
http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_16.php

Snowstorm:
http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_14.php

Aurora Borealis:
http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_12.php

PhysicsParticle:
http://www.digitalflipbook.com/archives/2006/09/penner_as2_prof_11.php

Vector3d:
http://www.digitalflipbook.com/archives/2006/07/penner_as2_prof_3.php

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

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


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

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


Re: [Flashcoders] jsfl - set all bitmaps in library to photo compression

2006-08-30 Thread James Deakin

This will come in very handy. Just one thing though. I have no Idea
where to put this file. And how to exicute it. Could you please point
me in the right direction.

Kind regards

James Deakin

On 8/25/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:


I had a project recently that was originally developed as a CDROM by a
3rd party, but then had to be migrated to the web. Many of the lib items
(1000's of items) had been set with specific compression values or
Lossless. This ended up with a 60MB swf file. Ick.

So I brewed up this little JSFL that sets all bitmaps in the library to
document level photo/jpeg compression.

Hope this helps anyone who has or will have a similar headache.

//--
var lib = fl.getDocumentDOM().library;
for(n=0;nlib.items.length;n++){
var item=lib.items[n];
if(item.itemType==bitmap){
lib.selectItem(item.name);
lib.setItemProperty('compressionType', 'photo');
fl.outputPanel.trace(SET COMPRESSION TO PHOTO
ON:+item.name);
}
}
//--

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

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


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

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


Re: [Flashcoders] flash internal bitmap to PNG format ..

2006-08-11 Thread James Deakin

the only way to do this that I know of is to use libraries like GD (for PHP)
to convert that information into a physical file. If there are other
solutions I would be interested in finding out.

On 8/11/06, keitai guy [EMAIL PROTECTED] wrote:


hi list -

I have extracted some pixels from a bitmapData object... can someone
tip me off how to convert this into a PNG file, or some other simple
high quality format? Ideally i dont want a complex JPG encoder in AS,
just a way to get data out that can be read by photoshop etc.

bitmap.getPixel( --x, y ).toString(16) + | ;

gives this in string format:

ff|ff|ff|ff|ff|ff|ff|ff|ff|ff|
ff|ff|ff|ff|ff|ff|ff|ff|ff|ff|

thanks!

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

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


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

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


Re: [Flashcoders] Enabling NetConnection debugger with ActionScript 2.0

2006-07-31 Thread James Deakin

Try this instead use Service Capture
http://www.kevinlangdon.com/serviceCapture/release_notes.html

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


 Is there any way to do step 1 (or bypass it) using actionscript?

No.

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

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


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

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


Re: [Flashcoders] RE: help with linking a flash button to a file folder

2006-07-31 Thread James Deakin

google mprojector or zinc + actionscript

On 7/31/06, Merrill, Jason [EMAIL PROTECTED] wrote:


Not sure about a CD, but should work something like this?

myDynamicFilepath = this._url.slice(0,
this._url.lastIndexOf(/)+1)+myfile.html;

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions






-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Ben Smith
Sent: Monday, July 31, 2006 2:47 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] RE: help with linking a flash button to a file
folder

I am trying figure out how to create a flash presentation on cd with
buttons
that open file folders in windows explorer also on the cd.  I have
found
that I can use the get url behavior to open file folders in the
default
web browser using the absolute pathname, but I need to be able to use
a
relative pathname and for the file folder to open in windows explorer,
not
an internet application.  Any help would be very much appreciated.



Thanks.



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

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

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


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

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


Re: RE: [Flashcoders] Problems getting the brightness of a colorreturnedfrom getPixel

2006-07-31 Thread James Deakin

Thanks to all of you for your comments that has been tremedously helpful and
informative.

James

On 7/31/06, Janis Radins [EMAIL PROTECTED] wrote:


Brightness of color can be found in quite easy way.
If we have decimal representation of RGB brightness in percents will be
100*(((R+G+B)/3)/255)
Color brightness represents position of particular color in color tween
from
0xFF at 0 position The base color at position 127.5 and 0x0 at 255.


2006/7/30, Bernard Poulin [EMAIL PROTECTED]:

 hum, I guess you missed my last post(?)
 Here's the code again:

 function computeBrightness(pixelvalue)
 {
var r = pixelvalue  16  0xFF;
var g = pixelvalue   8  0xFF;
var b = pixelvalue  0xFF;
var bright = Math.max(Math.max(r,g),b);
return Math.round((bright/255)*100);
 }

 And for an optimized/faster version, you could try something like:

 function computeBrightness(pixelvalue)
 {
// returns the larger value of r, g or b -- and scale it down to a
 0..100
 range.
var r = pixelvalue  16  0xFF;
var g = pixelvalue  8  0xFF;
var b = pixelvalue  0xFF;
var bright = (rg)?((rb)?r:b):((gb)?g:b);
return (bright/255)*100;  // no rounding.
 }

 (Again, this is untested code -- but it looks like it should work).

 Bernard
 2006/7/30, James Deakin [EMAIL PROTECTED]:
 
  HI Guys, Thanks very much to you all for your help and explanations. I
  understood that the number represented a colour value but I now have a
  much better understanding of how it does so.
 
  In your opinion what is the most efficient way to retrieve the
  relative brightness of that colour.
 
  What I need is a value between 0 and 100 where 0 is black and 100 is
  white and the numbers in-between represent the shades in-between.
 
  What I am going to try is this.
 
  Split the number into its components RGB
 
  use this code which came from the Flash API project
 
  //colorModel converter RGB-HSB
  //returns a hsb object
  RGBtoHSB  = function(rgb){
  var r = rgb.r
  var g = rgb.g
  var b = rgb.b
  var hsb = new Object();
  hsb.b = Math.max(Math.max(r,g),b);
  var min = Math.min(Math.min(r,g),b);
  hsb.s = (hsb.b = 0) ? 0 : Math.round (100*(hsb.b - min)/hsb.b);
  hsb.b = Math.round((hsb.b /255)*100);
  hsb.h = 0;
  if((r == g)  (g == b)){
  hsb.h = 0;
  } else if(r = g  g = b){
  hsb.h = 60*(g-b)/(r-b);
  } else if(g = r  r = b){
  hsb.h = 60 + 60*(g-r)/(g-b);
  } else if(g = b  b = r){
  hsb.h = 120 + 60*(b-r)/(g-r);
  } else if(b = g  g = r){
  hsb.h = 180 + 60*(b-g)/(b-r);
  } else if(b = r  r = g){
  hsb.h = 240 + 60*(r-g)/(b-g);
  } else if(r = b  b = g){
  hsb.h = 300 + 60*(r-b)/(r-g);
  } else{
  hsb.h = 0;
  }
  hsb.h = Math.round(hsb.h);
  return hsb;
  }
 
  to turn it into an object with three values hue saturation and
  brightness and then just make use of the brightness.
 
  If there is a better way especially a more efficient way I would
  really like to know.
 
  On 7/29/06, Mike [EMAIL PROTECTED] wrote:
   Small correction.
  
   This:
   This compares each bit in the first number to each bit in the
   second
   number. If both bits are 1 (on), that bit is 1 (on) in the result.
If
   both bits are 0 (off), both bits are 0 (off) in the result. So the
   result is:
  
   ...should be:
   This compares each bit in the first number to each bit in the
   second
   number. If both bits are 1 (on), that bit is 1 (on) in the result.
If
   *either bit is* 0 (off), *that bit is* 0 (off) in the result. So the
   result is:
   (emphasis added)
   --
   T. Michael Keesey
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of Mike
   Sent: Saturday, July 29, 2006 3:25 PM
   To: 'Flashcoders mailing list'
   Subject: RE: [Flashcoders] Problems getting the brightness of a
   colorreturnedfrom getPixel
  
   You seem to be thinking of numbers as if they are stored like
strings.
   They aren't.
  
   RGB colors are stored as 3-byte (24-bit) numbers.
  
   For example, red looks like this in binary:
  
   b
  
   ...which is the same thing as this in hexadecimal:
  
   0xFF
  
   ... which is the same thing as this in decimal:
  
   16711680
  
   To isolate, for example the red portion, you can use SHIFT RIGHT
()
 to
   shift all bits to the right by 16 bits. Binary:
  
   b  16 = b
  
   Hexadecimal:
  
   0xFF  16 = 0xFF
  
   Decimal:
  
   16711680  16 = 255
  
   Generally it's a good idea not to presume that there may not be more
   bits to the left, so you can filter them out using a bitwise AND
().
 To
   explain, this better, here's how to extract the green value from
 bright
   cyan (0x7F):
  
   The binary value of the color:
  
   0111
  
   Split into colors:
  
     0111
  
   Shift right 8 bits:
  
   10111b  8 = 
  
   In hexadecimal, this result is:
  
   0x

Re: RE: [Flashcoders] Hebrew in Flash?

2006-07-30 Thread James Deakin

I have worked with RTL languages before. The fact that strings in
actionscript respond to some array functions is helpful. We imported
the strings from XML or remoting and then reversed the sequence. There
were hwever loads of problems. We were trying to do arabic and we
found that lots of the characters were badly rendered.


On 7/30/06, Matti Bar-Zeev [EMAIL PROTECTED] wrote:

As for what I heard (or read for that matter), Adobe has made this Issue
of RTL languages to be one of their main requirements in the up coming
release (meaning flash 10, from what I gather).
All we're left to do is hope (or build some dino-class monster that
handles this issue).

Matti.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of nik
crosina
Sent: Friday, July 28, 2006 12:45 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Hebrew in Flash?

I'll remember that as I will probably have to transcode a huge
Director-based project into Flash because of Directors lack of Unicode
support. Even though having problems rendering the text it sounds
positively refreshing should that be the ...'only' problems.
So I'll be watching this space closely, until ti's my turn to start
asking the questions ;)
Thanks,
Nik

On 7/27/06, Yotam Laufer [EMAIL PROTECTED] wrote:
 Nik,

 While Flash does support Unicode the TextField object doesn't render
 properly when Left To Right. Your data will be intact and correctly
 formatted but it will render incorrectly.

 Expect to have tons of problems when mixing Hebrew and English and
punctuations.

 Best regards,
 Yotam.

 On 27/07/06, nik crosina [EMAIL PROTECTED] wrote:
  Should work without too many problems as Flash supports unicode.
  Nik
 
  On 7/27/06, iestyn lloyd [EMAIL PROTECTED] wrote:
   Hi List,
  
   I'm going to be working on a flash project that will need to be in
10
   languages, one of which is Hebrew. I'll be using the Strings Panel
and
   XLIFF to do the localisation.
  
   After a quick google, I see that people have had some problems
with
   Hebrew, as it's Right-to-left, and uses some special kind of
character
   set. Has anyone here dealt with Hebrew in flash? If you have,
could
   you outline some of the problems I might face?
  
   Cheers!
  
   iestyn
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
 
 
  --
  Nik C
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 


 --
 Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype:
ubermutt
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



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

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

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


Re: RE: [Flashcoders] Problems getting the brightness of a colorreturnedfrom getPixel

2006-07-30 Thread James Deakin

HI Guys, Thanks very much to you all for your help and explanations. I
understood that the number represented a colour value but I now have a
much better understanding of how it does so.

In your opinion what is the most efficient way to retrieve the
relative brightness of that colour.

What I need is a value between 0 and 100 where 0 is black and 100 is
white and the numbers in-between represent the shades in-between.

What I am going to try is this.

Split the number into its components RGB

use this code which came from the Flash API project

//colorModel converter RGB-HSB
//returns a hsb object
RGBtoHSB  = function(rgb){
var r = rgb.r
var g = rgb.g
var b = rgb.b
var hsb = new Object();
hsb.b = Math.max(Math.max(r,g),b);
var min = Math.min(Math.min(r,g),b);
hsb.s = (hsb.b = 0) ? 0 : Math.round (100*(hsb.b - min)/hsb.b);
hsb.b = Math.round((hsb.b /255)*100);
hsb.h = 0;
if((r == g)  (g == b)){
hsb.h = 0;
} else if(r = g  g = b){
hsb.h = 60*(g-b)/(r-b);
} else if(g = r  r = b){
hsb.h = 60 + 60*(g-r)/(g-b);
} else if(g = b  b = r){
hsb.h = 120 + 60*(b-r)/(g-r);
} else if(b = g  g = r){
hsb.h = 180 + 60*(b-g)/(b-r);
} else if(b = r  r = g){
hsb.h = 240 + 60*(r-g)/(b-g);
} else if(r = b  b = g){
hsb.h = 300 + 60*(r-b)/(r-g);
} else{
hsb.h = 0;
}
hsb.h = Math.round(hsb.h);
return hsb;
}

to turn it into an object with three values hue saturation and
brightness and then just make use of the brightness.

If there is a better way especially a more efficient way I would
really like to know.

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

Small correction.

This:
This compares each bit in the first number to each bit in the
second
number. If both bits are 1 (on), that bit is 1 (on) in the result. If
both bits are 0 (off), both bits are 0 (off) in the result. So the
result is:

...should be:
This compares each bit in the first number to each bit in the
second
number. If both bits are 1 (on), that bit is 1 (on) in the result. If
*either bit is* 0 (off), *that bit is* 0 (off) in the result. So the
result is:
(emphasis added)
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Sent: Saturday, July 29, 2006 3:25 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Problems getting the brightness of a
colorreturnedfrom getPixel

You seem to be thinking of numbers as if they are stored like strings.
They aren't.

RGB colors are stored as 3-byte (24-bit) numbers.

For example, red looks like this in binary:

b

...which is the same thing as this in hexadecimal:

0xFF

... which is the same thing as this in decimal:

16711680

To isolate, for example the red portion, you can use SHIFT RIGHT () to
shift all bits to the right by 16 bits. Binary:

b  16 = b

Hexadecimal:

0xFF  16 = 0xFF

Decimal:

16711680  16 = 255

Generally it's a good idea not to presume that there may not be more
bits to the left, so you can filter them out using a bitwise AND (). To
explain, this better, here's how to extract the green value from bright
cyan (0x7F):

The binary value of the color:

0111

Split into colors:

  0111

Shift right 8 bits:

10111b  8 = 

In hexadecimal, this result is:

0x

In decimal, it is:

65535

Clearly this is too large, because it includes the red value. To remove
it, we use a bitwise AND.

b  0xFF = b = 0xFF

To illustrate, we are taking this value:

b (=0x; =65535)

...and doing a bitwise AND with this value:

b (=0x00FF; =255)

This compares each bit in the first number to each bit in the second
number. If both bits are 1 (on), that bit is 1 (on) in the result. If
both bits are 0 (off), both bits are 0 (off) in the result. So the
result is:

b (=0xFF; =255)

...which is, indeed, the green value of the color.

So Martin Wood's example (slightly edited):

var r:Number = color  16  0xFF;
var g:Number = color  8  0xFF;
var b:Number = color  0xFF;

... is how to retrieve the red, green, and blue values from a single RGB
color number.
--
T. Michael Keesey


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

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

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

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



Re: [Flashcoders] Problems getting the brightness of a color returned from getPixel

2006-07-29 Thread James Deakin

Thanks very much for your response Martin but I don't understand it. I don't
have three vars called R G and B. I just have a number which was retuned
from getPixel. Am I being stupid? I can't see how I should  do what you
sugest. Pease explain a little further.

James

On 7/29/06, Martin Wood [EMAIL PROTECTED] wrote:


to go from a 24 bit number to 3x8 bit colour components you can just shift
it
and mask the bits you need :

var r=color  16  0xFF
var g=color  8  0xFF
var b=color  0xFF

that should do the job.

James Deakin wrote:
 Hi Guys,

 I'm having some problems with getting the brightness of a color returned
 from get pixel. get pixel returns an RGB color as a number which means I
 was
 expecting something like three groups of three numbers 255 255 255 or
 similar. what I am actually getting back is of this form 14540754 one
digit
 short.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


Re: [Flashcoders] ActionScript Application Framework

2006-07-20 Thread James Deakin

I started this thread for a simple reason, love or loath Ruby what has been
developed here has enabled several of my clients to deploy excellent web
applications with a significantly reduced investment of time with no aparent
compromise on functionality.

I think thats great. I wish the same could be done for AS. I feel that
making the job of the Flash/Flex developer as easy as posible will enable us
all to concentrate on the parts of our applications which are unique and
require special attention.

It is very easy to make use of Ruby on Rails. it took me just a few hours to
get an application runinng with it with no prior knowledge.

I am looking at ARP and Carngorm at the moment and they are not proving easy
to use and I am a highly experienced AS developer.

I have also started looking at Flex. . .

If there proves to be a way that we as a comunity can make developing
easier we should invest the time. I would contribute for sure.

So what do you think is missing? Is there something we could do or is it as
easy as it gets?

On 7/20/06, Weyert de Boer [EMAIL PROTECTED] wrote:



 As it ends up, his comments were fueled solely by his dislike for Ruby's
 syntax, which has nothing to do with whether or not Ruby on Rails is
 deserving of the attention and praise it is getting.

I don't see why my dislike of Ruby's syntax has anything to do with
this. I won't bother explain my issues with Ruby itself. It looks like
you think I dislike RoR too, I haven't said it, probably I expressed
myself badly.

I will post this to the flashcoders myself, so you won't be bothered to
do so yourself.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


Re: [Flashcoders] ActionScript Application Framework

2006-07-20 Thread James Deakin

Have you ever built anything in haXe? If so how did you find the experience?

On 7/20/06, Nicolas Cannasse [EMAIL PROTECTED] wrote:


 I am looking at ARP and Carngorm at the moment and they are not proving
easy
 to use and I am a highly experienced AS developer.

 I have also started looking at Flex. . .

Did you have a look at haXe ?
http://haxe.org

It has builtin remoting for communicating with Flash. The idea is that
you can program both your website and your Flash movies in haXe. This is
great since you can share some code between your flash client and server.

A lot of tutorials are available there : http://haxe.org/doc

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

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


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

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


Re: [Flashcoders] ActionScript Application Framework

2006-07-20 Thread James Deakin

I see. I will have a good look at haXe as well. I like the idea but am a bit
worried about the amount of time I would have to invest to gain enough
understanding to build an application. How long would you imagin it might
take to for me to get started?

On 7/20/06, Nicolas Cannasse [EMAIL PROTECTED] wrote:


 Have you ever built anything in haXe? If so how did you find the
experience?

Disclaimer : I'm the haXe author

I have been building several websites and flash games with haXe and its
predecessor (our in-house language MotionTypes). The less I can say is
that using it has been tremendously boosting our productivity and
increased the quality of our code.

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

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


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

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


Re: [Flashcoders] ActionScript Application Framework

2006-07-19 Thread James Deakin

Thanks to all of you for your comments. Dispite googling for just this sort
of thing I had never come accross ARP or Cairngorm. I shall take a good long
look at both . I have literally just installed Flex builder 2  and will be
expermeting with that as well.

If any of these things save me as much time as switchig from PHP to Ruby on
rails I will be a very happy guy indeed.

Kind regards

James Deakin

On 7/19/06, Aaron Buchanan [EMAIL PROTECTED] wrote:


One of my fav's


On 7/18/06 1:26 PM, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:

 The Pragmatic Programmer
 http://www.pragmaticprogrammer.com/ppbook/index.shtml


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

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


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

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


Re: [Flashcoders] ActionScript Application Framework

2006-07-19 Thread James Deakin

Sorry Nick I was simply unaware of them. Now that I am I will be trying them
out.



On 7/19/06, Nick Weekes [EMAIL PROTECTED] wrote:


There still hasn't been a decent reason in this thread why the existing
frameworks (such as arp + cairngorm) are not suitable?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ben Smeets
Sent: 19 July 2006 08:43
To: Flashcoders mailing list
Subject: RE: [Flashcoders] ActionScript Application Framework

I like the idea, and think a lot of people are trying it with you. But
wouldn't this result in something like...Flex?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James
Deakin
Sent: dinsdag 18 juli 2006 18:49
To: Flashcoders@chattyfig.figleaf.com; flexcoders@yahoogroups.com
Subject: [Flashcoders] ActionScript Application Framework

Dear List (I should say lists this going to Flash and Flex coders),

I am a very and I mean very experienced ActionScript coder. I have been
writng code and storing it for re-use for 7 years. I have just installed
Rails an application frame work for a language named Ruby which enabled me
to create a whole aplication in the space of a few hours. Cant we follow
the
example and create a framework to make our lives easier as these guys have
for Ruby programmers.

I would be willing to contribute. What do you reckon would it work.
Could we as a comunity of developers do this?

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

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

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


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

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


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

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


[Flashcoders] ActionScript Application Framework

2006-07-18 Thread James Deakin

Dear List (I should say lists this going to Flash and Flex coders),

I am a very and I mean very experienced ActionScript coder. I have been
writng code and storing it for re-use for 7 years. I have just installed
Rails an application frame work for a language named Ruby which enabled me
to create a whole aplication in the space of a few hours. Cant we follow the
example and create a framework to make our lives easier as these guys have
for Ruby programmers.

I would be willing to contribute. What do you reckon would it work. Could we
as a comunity of developers do this?

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

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


Re: [Flashcoders] How to embed metadata in SWF files?

2006-07-16 Thread James Deakin

I would sudgest the following.


1. you can simply define variables by creating an AS file the complier
parses. you can declare the vars in there
2. There is an existing open source complier called MTASC  (osflash.org has
lots of info on this)

hope that helps

On 7/16/06, Jeff Stearns [EMAIL PROTECTED] wrote:


Mike et al -

I'm targeting the current Flash player releases on Linux, Windows,
and Mac, so that would be Flash 7 through 9.

I'm generating the SWF's using a SWF compiler that I wrote, so I have
total control over the SWF file that I generate.

Hopes this helps,

-jeff


On Jul 15, 2006, at 10:32 PM, Mike Britton wrote:

 A couple questions for you Jeff:

 1. What version of Flash player are you targeting?
 2. How are you generating the swfs?


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

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


On Jul 15, 2006, at 10:27 PM, Jeff Stearns wrote:

 I hope that you'll take pity on a Flash novice.  I'm an experienced
 programmer, but Flash is very new to me.

 I need to generate SWF movie files containing embedded data such as
 title, production year, etc.  The Flash player needs to be able to
 read these values when it starts playing the movie.

 I'd really appreciate advice on how best to do this.

 I wrote the program which generates the SWF files, so I have
 complete control over their content.  I tried embedding variable
 assignments in the first frame of my SWF files by generating the
 bytecodes to perform variable assignments (ActionPush year,
 ActionPush 2006, ActionSetVariable).  But I can't figure out how to
 access these variables from the Flash player.  Hints?

 Or is there a better way to approach this?  All I want is for the
 player to be able to extract a few values from each movie file.

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

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


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

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


Re: [Flashcoders] Active X and Microsoft IE ...

2006-04-09 Thread James Deakin
i second that. Shame most clients wont go for it as a solution.

On 4/9/06, Hairy Dog Digital [EMAIL PROTECTED] wrote:

 Personally what I would *like* to do is include a download link to Firefox
 in the NOSCRIPT tags!




  -Original Message-
  From: Stephen Ford [mailto:[EMAIL PROTECTED]
  Sent: Sunday, April 09, 2006 8:13 AM
  To: flashcoders@chattyfig.figleaf.com
  Subject: [Flashcoders] Active X and Microsoft IE ...
 
  Can anyone answer this:
 
  What happens if a user doesn't have javascript enabled in
  their browser for the recommended Macromedia solution (see
  link:
  http://www.macromedia.com/devnet/activecontent/articles/devlet
  ter.html) to this whole Active X debacle ?
 
  ???
 
  Please answer this if you can. It has me stressed.
 
  Thanks,
  Stephen.
 
   ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com http://training.figleaf.com
 
 
 


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

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

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

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


Re: [Flashcoders] Load external bitmap into bitmapdata?

2006-03-07 Thread James Deakin
Wow thats great

On 3/7/06, Adrian Park [EMAIL PROTECTED] wrote:
 Awesome! Thanks Jesse/JesterXL. I love finding out I'm wrong when there is a
 better way :)


 On 3/6/06, Marcelo Volmaro [EMAIL PROTECTED] wrote:
 
  Indeed, it works!,
  Also, trying this i´ve found a method to attach loaded movies as
  bitmaps... now i can create libraries of MCs!!
 
  Thanks!
 
  On Mon, 06 Mar 2006 19:50:24 -0300, JesterXL [EMAIL PROTECTED]
  wrote:
 
   I started to eat a cup, but it really didn't taste so good.  Suddenly,
  my
   mouth really hurt trying to voraciously chew on ceramics, thus I gave up
   upon realising cups don't taste so good.
  
   ...however, this code in fact works:
  
   import flash.display.BitmapData;
   import flash.geom.Rectangle;
   import flash.geom.Matrix;
   import flash.geom.ColorTransform;
  
   function init()
   {
Stage.align = TL;
Stage.scaleMode = noScale;
  
createEmptyMovieClip(image_mc, 0);
  
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(this);
mcl.loadClip(test.jpg, image_mc);
   }
  
   function onLoadInit(target)
   {
var width:Number = image_mc._width;
var height:Number = image_mc._height;
var transparent:Boolean = false;
var fillColor:Number = 0x;
  
var myBitmapData:BitmapData = new BitmapData(width, height,
  transparent,
   fillColor);
myBitmapData.draw(image_mc, new Matrix(), new ColorTransform());
  
createEmptyMovieClip(copy_mc, 1);
copy_mc._x = 20;
copy_mc._y = 20;
copy_mc.attachBitmap(myBitmapData, 0);
  
image_mc._alpha = 20;
   }
  
   init()
  
   - Original Message -
   From: Marcelo Volmaro [EMAIL PROTECTED]
   To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
   Sent: Monday, March 06, 2006 5:38 PM
   Subject: Re: [Flashcoders] Load external bitmap into bitmapdata?
  
  
   The problem is: I need to load a bitmap. I can´t embed the bitmap inside
   a
   swf, because i have no control over the bitmaps.
   Any other ideas?
  
   On Mon, 06 Mar 2006 17:36:46 -0300, Adrian Park [EMAIL PROTECTED]
  wrote:
  
   Hey Marcelo,
  
   I've been playing with BitmapData for the first time this past weekend
   so I
   stand to be corrected on what I'm about to say!
  
   My understanding is that you can only load BitmapData from an existing
   image
   which is already in your library and has a linkage ID. For this reason,
   I
   don't think you can load an image and get its BitmapData. I was
  thinking
   there might be a workaround though...
  
   I was going to try embedding the jpg/png/gif in an swf and giving it a
   linkage id in the library, then load that swf into your master movie
  and
   attach the BitmapData from the loaded swf's library.
  
   Possible issues? I know you can't attach library assets from a loaded
   swf
   into another swf so the same limitation may apply with BitmapData.
   Again, I
   thought a workaround for this might be to attach the BitmapData into
  the
   swf
   you've just loaded and then clone it to a BitmapData object elsewhere?
  
   As you can see, I've been doing a lot of thinking and not a lot of
  doing
   so
   I'm not sure if this is of any help at all!
  
   I'd be very interested to know if any of this works.
  
   Cheers, Adrian P
  
   On 3/6/06, Marcelo Volmaro [EMAIL PROTECTED] wrote:
  
   Hi list!,
  
   It´s possible to load an external bitmap (jpg, png, gif) into a
   bitmapData?
  
   Or..
  
   It´s possible to load an external bitmap into an MC and then render
   that
   mc into a bitmapData?
  
   All what i tried didn´t work...
  
   Thanks in advance!,
  
  
   --
   _
   Marcelo Volmaro
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
  
  
 
 
 
  --
  _
  Marcelo Volmaro
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 

Re: [Flashcoders] Can anyone see my posts?

2006-03-02 Thread James Deakin
Yeah I know its difficult. Time is short and there are lots of questions.

On 3/2/06, hank williams [EMAIL PROTECTED] wrote:

 Yeah, I used to answer lots of questions, but I just dont have the
 time anyu more. This is probably also because it seems to me there are
 more questions too.

 Regards
 Hank

 On 3/1/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:
  I get that feeling sometimes also- I console myself with the thought
 that
  the people answering questions are just as swamped as I am and are
 answering
  in between getting their own questions answered.  True or not - It's
 good
  for the self esteem.
 
  M
 
 
 
  On 3/1/06, James Deakin [EMAIL PROTECTED] wrote:
  
   Hi All my posts get ignored was it something i said?
  
   James
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


Re: [Flashcoders] Branden's Article on Shared Fonts

2006-03-02 Thread James Deakin
Id love to see that too

On 3/2/06, erixtekila [EMAIL PROTECTED] wrote:

 
  I was wondering if somebody could point me to a backup of
  those posts.
 This is for posterity :
 http://web.archive.org/web/20020802165312/www.waxpraxis.org/archives/
 62.html

 Enjoy.
 ---
 erixtekila
 http://blog.v-i-a.net/

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

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

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

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


[Flashcoders] Bold and italic charater options with html text

2006-03-01 Thread James Deakin
Hi List,

I have posted this a few times. Am i asking a question which has already
been covered or can i get this info else where. I have read the manual and
consulted my mook books but am none the wiser. Please help!

I'm having a few issues with html formatted text-fields.

I have embedded the following fonts in the library and given them linkage
names Helvetica 55 Roman, 75 Helvetica Bold, Helvetica 56 Italic. Then I am
using the code below to try to dynamically produce a textfield which can be
populated with text marked up with simple html tags ( in the real
application the text will come from an XML file containing said text). My
client wishes to use html as their copy writers know how to use it.

My problem is this the tags are ignored. What is the best course of action/
best practice in this situation? I was thinking of creating a function to
assign a bold textformat (theBold) to the characters in the textfield. I
could get the index of the text using pattern matching in the string but
that just seems a bit like over kill isn't there a better way?

theRoman = new TextFormat(Helvetica 55 Roman, 15, 0x33, true, false,
false, null, null, center);
theBold = new TextFormat(75 Helvetica Bold, 15, 0x33, true, false,
false, null, null, center);
theItalic = new TextFormat(Helvetica 56 Italic, 15, 0x33, true, false,
false, null, null, center);
// create a text feild
this.createTextField('txtMain', 0, 10, 10, 300, 300);
//
txtMain.html = true;
txtMain.background = true;
txtMain.backgroundColor = 0xFF6600;
txtMain.wordWrap = true;
txtMain.embedFonts = true;
txtMain.setNewTextFormat(theRoman);
txtMain.htmlText =  Last Updated: Wednesday, b15 February 2006/b,;
txtMain.htmlText += 23:48 GMT iE-mail/i this to a friend Printable
version US attacks Iraq abuse images leak;
// set another text format
txtMain.setTextFormat(0, 6, theBold);
txtMain.setTextFormat(6, 15, theItalic);

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

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


Re: [Flashcoders] Q:Add tracking to dynamic text

2006-03-01 Thread James Deakin
*These should all prove interesting:*


http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2811.html
**

*
*http://livedocs.macromedia.com/flash/8/main/1133.html

 *TextFormat.kerning* *Property* Lets you turn kerning on or off for the
TextFormat object.

*TextFormat.leading * *Property* Lets you use negative leading, so the space
between lines is less than the text height. This lets you put lines of text
close together in your applications.

*TextFormat.letterSpacing * *Property* Lets you specify the amount of space
that is uniformly distributed between characters.


On 3/1/06, Mike Britton [EMAIL PROTECTED] wrote:

 A couple things I saw in the docs:

 Kerning is supported for embedded fonts only. 
 The kerning property is only supported in SWF files created in
 Windows, not in SWF files created on the Macintosh.

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

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

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

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


Re: [Flashcoders] Q:Add tracking to dynamic text

2006-03-01 Thread James Deakin
What exactly are you trying to do? The kerning property seems to have very
limited potential and if you like myself are on a Mac the quote below will
lbe disturbing.

The kerning property is only supported in SWF files created in Windows, not
in SWF files created on the Macintosh. However, Windows SWF files *can* be
played in non-Windows versions of Flash Player, and the kerning will still
apply.

On 3/1/06, James Deakin [EMAIL PROTECTED] wrote:

 *These should all prove interesting:*


 http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2811.html

 **

 *
 *http://livedocs.macromedia.com/flash/8/main/1133.html

  *TextFormat.kerning* *Property* Lets you turn kerning on or off for the
 TextFormat object.

 *TextFormat.leading * *Property* Lets you use negative leading, so the
 space between lines is less than the text height. This lets you put lines of
 text close together in your applications.

 *TextFormat.letterSpacing * *Property* Lets you specify the amount of
 space that is uniformly distributed between characters.


 On 3/1/06, Mike Britton [EMAIL PROTECTED] wrote:

  A couple things I saw in the docs:
 
  Kerning is supported for embedded fonts only. 
  The kerning property is only supported in SWF files created in
  Windows, not in SWF files created on the Macintosh.
 
  Mike
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 


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

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


[Flashcoders] Can anyone see my posts?

2006-03-01 Thread James Deakin
Hi All my posts get ignored was it something i said?

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

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


Re: [Flashcoders] {Business/Workflow} The use of mock prototypes

2006-03-01 Thread James Deakin
I do get my designers (i run a company) to mock things up first. But what i
find difficult is being able to say how long a job should take. Thats what i
develope prototypes for. if anyone know abetter way please tell me.

On 3/1/06, JesterXL [EMAIL PROTECTED] wrote:

 Hrm, opposite for me:
 http://www.jessewarden.com/archives/2006/02/prototype_solut.html

 In fact, most turn into projects if you aren't careful.  I've found, if
 you
 have a talented designer, you're best bet is to get them to create mock
 prototypes to get in front of users quickly before the actual developers
 imlement the interface.  Change control is challenging in that the
 designer
 is responsible for not only keeping track of what changed, but informing
 her
 manager who in turn informs the developers.  Prioritizing those changes is
 also challenging because developers obviously think functionality is more
 important, but it's not their call really.

 - Original Message -
 From: Dwayne Neckles [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, March 01, 2006 1:46 PM
 Subject: [Flashcoders] {Business/Workflow} The use of mock prototypes


 Hello folks,

 Just wondering when you are developing flash site how many folks actually
 develop flash prototypes or fake quick mock up of how the site functional
 will feel...it seems like a waste of time to me especially with larger
 projects... but if someone didnt mind sharing their experiences on whether
 one should I'd appreciate it.

 Thanks,

 Dwayne
 dnecklesportfolio.com


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

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

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

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

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

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


Re: [Flashcoders] Images in textFields..

2006-02-28 Thread James Deakin

Odd i'm having the same problem


On 28 Feb 2006, at 12:48, Karim Beyrouti wrote:



I am working with HTML and images in textField's, and am wondering  
how

one would keep images ( img src=myimg.jpg ) inline with the text?
I am trying to have text on one line then the image on another line.

Also Another problem I get with img src=myimg1.jpgimg
src=myimg2.jpg  is that images overlap...its a bit anoying to say
the least, as HTML behaves differently. Any way arround this, without
inserting lots of br tags?

I am Publishing for Flash 7 player...


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

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


[Flashcoders] Text formatting problems

2006-02-24 Thread James Deakin

Hi Guys,

I'm having a few issues with html formatted text-fields.

I have embedded the following fonts in the library and given them  
linkage names Helvetica 55 Roman, 75 Helvetica Bold, Helvetica 56  
Italic. Then I am using the code below to try to dynamically produce  
a textfield which can be populated with text marked up with simple  
html tags ( in the real application the text will come from an XML  
file containing said text). My client wishes to use html as their  
copy writers know how to use it.


My problem is this the tags are ignored. What is the best course of  
action/ best practice in this situation? I was thinking of creating a  
function to assign a bold textformat (theBold) to the characters in  
the textfield. I could get the index of the text using pattern  
matching in the string but that just seems a bit like over kill isn't  
there a better way?


theRoman = new TextFormat(Helvetica 55 Roman, 15, 0x33, true,  
false, false, null, null, center);
theBold = new TextFormat(75 Helvetica Bold, 15, 0x33, true,  
false, false, null, null, center);
theItalic = new TextFormat(Helvetica 56 Italic, 15, 0x33, true,  
false, false, null, null, center);

// create a text feild
this.createTextField('txtMain', 0, 10, 10, 300, 300);
//
txtMain.html = true;
txtMain.background = true;
txtMain.backgroundColor = 0xFF6600;
txtMain.wordWrap = true;
txtMain.embedFonts = true;
txtMain.setNewTextFormat(theRoman);
txtMain.htmlText =  Last Updated: Wednesday, b15 February 2006/b,;
txtMain.htmlText += 23:48 GMT iE-mail/i this to a friend  
Printable version US attacks Iraq abuse images leak;

// set another text format
txtMain.setTextFormat(0, 6, theBold);
txtMain.setTextFormat(6, 15, theItalic);

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

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


Re: [Flashcoders] dynamic text field whoas

2006-02-23 Thread James Deakin

Hi Guys,

I'm having a few issues with html formatted text-fields.

I have embedded the following fonts in the library and given them  
linkage names Helvetica 55 Roman, 75 Helvetica Bold, Helvetica 56  
Italic. Then I am using the code below to try to dynamically produce  
a textfield which can be populated with text marked up with simple  
html tags ( in the real application the text will come from an XML  
file). My client wishes to use html as their copy writers know how to  
use it.


My problem is this the tags are ignored. What is the best course of  
action/ best practice in this situation? I was thinking of creating a  
function to assign a bold textformat (theBold) to the characters in  
the textfield. I could get the index of the text using pattern  
matching in the string but that just seems a bit like over kill isn't  
there a better way?


theRoman = new TextFormat(Helvetica 55 Roman, 15, 0x33, true,  
false, false, null, null, center);
theBold = new TextFormat(75 Helvetica Bold, 15, 0x33, true,  
false, false, null, null, center);
theItalic = new TextFormat(Helvetica 56 Italic, 15, 0x33, true,  
false, false, null, null, center);

// create a text feild
this.createTextField('txtMain', 0, 10, 10, 300, 300);
//
txtMain.html = true;
txtMain.background = true;
txtMain.backgroundColor = 0xFF6600;
txtMain.wordWrap = true;
txtMain.embedFonts = true;
txtMain.setNewTextFormat(theRoman);
txtMain.htmlText =  Last Updated: Wednesday, b15 February 2006/b,;
txtMain.htmlText += 23:48 GMT iE-mail/i this to a friend  
Printable version US attacks Iraq abuse images leak;

// set another text format
txtMain.setTextFormat(0, 6, theBold);
txtMain.setTextFormat(6, 15, theItalic);

James Deakin



On 7 Feb 2006, at 22:56, Nathan Derksen wrote:

Damn, I always thought that seemed a silly way to do it. After all  
this time of re-calling that bloody thing every time I changed it.


Thanks for the correction, I'll go back and fix my old code :-)

Nathan
http://www.nathanderksen.com


On Feb 7, 2006, at 2:49 PM, Ian Thomas wrote:


Or call setNewTextFormat() instead.

setTextFormat() applies to the _existing_ text within the field.

setNewTextFormat() applies to any text that will be put into the  
field.


This is why (Nathan) you're having to call setTextFormat()  
multiple times -
calling setNewTextFormat() just once, before putting anything into  
the

field, should solve that issue.

HTH,
  Ian

On 2/7/06, Nathan Derksen [EMAIL PROTECTED] wrote:


You need to re-apply setTextFormat() every time you change the .text
or .htmlText properties of a text field:

snip
percent.text = percentNum;
percent.setTextFormat(ldrFormat);
snip

I tried this out with your code, and it worked fine afterwards.



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

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


[Flashcoders] Work in London

2006-02-09 Thread James Deakin
Hi Guys,

I hope nobody minds me asking but I'm snowed under with work at the moment.
I'm currently building three projects at the same time. A huge Flash fronted
(of course) CMS driven site for a high profile company. some stand alone
(Flash based) software using Mprojector and another big project. I and my
business *Definition www.justdefine.com need some really good London UK
based coders to help us out. Is anyone in London and in need of some (really
prestigious) work.

James Deakin

Definition
T: +44 (0)7977 006 887
E: [EMAIL PROTECTED]

www.justdefine.com

-
Check out our latest work!
www.confessionsonadancefloor.net/dancinggame/
www.justdefine.com/neworder/
www.rda.tv
www.justdefine.com/interpreter/
www.foxstudioclassics.co.uk/

*Definition is a trading name of Just Define Ltd.
This email and contents are confidential and are for the intended addressee
only. If you have received it in error, please delete it immediately and
inform *Definition. All information and intelectual property are protected
under copyright law.


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