Re: [Flashcoders] Fwd: Looking for Flash/Web Designer! Great

2010-09-08 Thread Peter B
Nice to see such a measured, mature response from the president of an LCC.
If the crappy salary didn't warn people off the job, this kind of response
certainly should.




On 8 September 2010 12:05, dcichanow...@innovativemarketingllc.com wrote:

 Such drama queens. Grow up.
 Sent from my Verizon Wireless BlackBerry


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


Re: [Flashcoders] Impossible?

2010-09-08 Thread tom rhodes
what henrik said, or stick them in sprites first and mask the sprites...


On 7 September 2010 21:16, Henrik Andersson he...@henke37.cjb.net wrote:

 Mask the Bitmap, not the BitmapData.

 ___
 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] Impossible?

2010-09-08 Thread George Jones

 From: tom.rho...@gmail.com
 Date: Wed, 8 Sep 2010 11:01:21 +0200
 Subject: Re: [Flashcoders] Impossible?
 To: flashcoders@chattyfig.figleaf.com
 
 what henrik said, or stick them in sprites first and mask the sprites...

I'm a little lost. I've followed your suggestion and it *appears* I've 
correctly added my sprites to stage, but nothing shows up, which either means 
the sprites are not correctly added or, more probably I think, that the mask is 
masking everything. Here's my code:

if (_bitmapFlag == false)
{
_fire = new BitmapData(865, 92, _bitmapFlag, 0xff);
_fireSprite.addChild(new Bitmap(_fireMask));
addChild(_fireSprite);
_fireSprite.mask = _fireMaskSprite;
trace(_fireSprite.mask);
_fireSprite.cacheAsBitmap = true;
} else {
_fireMask = new BitmapData(865, 92, _bitmapFlag, 0xff);
_fireMaskSprite.addChild(new Bitmap(_fireMask));
addChild(_fireMaskSprite);
_fireMaskSprite.cacheAsBitmap = true;
}

_createCooling(0.16);
_createPalette(_currentFireColor = 0, _bitmapFlag);
...
private function _createPalette(idx:int, _bitmapFlag:Boolean):void {
_redArray = [];
_greenArray = [];
_blueArray = [];
_alphaArray = [];
for (var i:int = 0; i  256; i++) {
var gp:int = new int();
gp = _fireColor.getPixel(i, 0);
if (gp  1050112)
{
_redArray.push(0);
_alphaArray.push(255);
_greenArray.push(0);
_blueArray.push(255);
} else if (_bitmapFlag == false) {
_redArray.push(gp);
_alphaArray.push(0);
_greenArray.push(0);
_blueArray.push(0);
} else {
_redArray.push(0);
_alphaArray.push(0);
_greenArray.push(0);
_blueArray.push(0);
}
}
}

The trace traces that there is a sprite there, so that would indicate that both 
sprites have successfully been added to the stage. Again, the if statement 
where the var gp is less than 1050112 indicates that which should appear 
transparent. Presuming it is a problem of masking too much, what do?
TIA,
George
  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] startDrag stopDrag problem

2010-09-08 Thread natalia Vikhtinskaya
I have loadbar with scrub point that I want to drag within loadbar
It works fine with onPress and onRelease events in AS2
I try to convert that in AS3 and use Mouse Down and Mouse Up events.
It starts to drag well with Mouse Down but not always stops with Mouse
Up. Sometimes that happened sometimes not. This event not always
appears. How to get it works stable in AS3.

var loadBar_w:Number=loader.loadBar.width;

startScrubIt=function(e:MouseEvent):void{
var loaderRect:Rectangle = new
Rectangle(0,loader.scrub.y,loadBar_w,loader.scrub.y);
loader.scrub.startDrag(false,loaderRect);
loader.scrub.addEventListener( MouseEvent.MOUSE_MOVE, handleDrag )

}

stopScrubIt=function(e:MouseEvent):void{
loader.scrub.stopDrag();
loader.scrub.removeEventListener( MouseEvent.MOUSE_MOVE, handleDrag );
}


handleDrag= function ( event:MouseEvent ):void {
event.updateAfterEvent();
}

loader.scrub.addEventListener(MouseEvent.MOUSE_DOWN, startScrubIt );
loader.scrub.addEventListener(MouseEvent.MOUSE_UP,  stopScrubIt);

Thank you in advance for any help.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] startDrag stopDrag problem

2010-09-08 Thread Nathan Mynarcik
Have your mouseUp listener on the stage and not on the scrubber.  Or else,
you would have to release on the scrubber for your function to be called.

Nathan Mynarcik
nat...@mynarcik.com
254.749.2525
www.mynarcik.com


On Wed, Sep 8, 2010 at 9:46 AM, natalia Vikhtinskaya
natavi.m...@gmail.comwrote:

 I have loadbar with scrub point that I want to drag within loadbar
 It works fine with onPress and onRelease events in AS2
 I try to convert that in AS3 and use Mouse Down and Mouse Up events.
 It starts to drag well with Mouse Down but not always stops with Mouse
 Up. Sometimes that happened sometimes not. This event not always
 appears. How to get it works stable in AS3.

 var loadBar_w:Number=loader.loadBar.width;

 startScrubIt=function(e:MouseEvent):void{
var loaderRect:Rectangle = new
 Rectangle(0,loader.scrub.y,loadBar_w,loader.scrub.y);
loader.scrub.startDrag(false,loaderRect);
loader.scrub.addEventListener( MouseEvent.MOUSE_MOVE, handleDrag )

 }

 stopScrubIt=function(e:MouseEvent):void{
loader.scrub.stopDrag();
loader.scrub.removeEventListener( MouseEvent.MOUSE_MOVE, handleDrag
 );
 }


 handleDrag= function ( event:MouseEvent ):void {
event.updateAfterEvent();
}

 loader.scrub.addEventListener(MouseEvent.MOUSE_DOWN, startScrubIt );
 loader.scrub.addEventListener(MouseEvent.MOUSE_UP,  stopScrubIt);

 Thank you in advance for any help.
 ___
 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] Isometric Graphics Libraries

2010-09-08 Thread Tom Gooding
Hi - is anyone aware of any pre-existing free or commercial isometric graphic 
libraries - for characters and props?

 




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


Re: [Flashcoders] startDrag stopDrag problem

2010-09-08 Thread Matt S.
Check out the AS3 onReleaseOutside hacks, that should fix it for you:

http://www.google.com/search?client=safarirls=enq=as3+onreleaseoutsideie=UTF-8oe=UTF-8

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


Re: [Flashcoders] startDrag stopDrag problem

2010-09-08 Thread natalia Vikhtinskaya
THANK YOU!!

2010/9/8 Matt S. mattsp...@gmail.com:
 Check out the AS3 onReleaseOutside hacks, that should fix it for you:

 http://www.google.com/search?client=safarirls=enq=as3+onreleaseoutsideie=UTF-8oe=UTF-8

 .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] Impossible?

2010-09-08 Thread Henrik Andersson
When in doubt about masking, skip the step where you assign the mask 
property, but leave the mask shape added, it will show what parts the 
mask will apply to.

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


RE: [Flashcoders] Impossible?

2010-09-08 Thread George Jones

 Date: Wed, 8 Sep 2010 18:16:44 +0200
 From: he...@henke37.cjb.net
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Impossible?
 
 When in doubt about masking, skip the step where you assign the mask 
 property, but leave the mask shape added, it will show what parts the 
 mask will apply to.

I did that. I commented out this line:

_fireSprite.mask = _fireMaskSprite;

and nothing prints to screen. Therefore, it would appear that the mask is 
applying to all of it. This is where I get confused. I'm thinking I must have a 
problem in where I'm assigning my various values:

for (var i:int = 0; i  256; i++) {
var gp:int = new int();
gp = _fireColor.getPixel(i, 0);
if (gp  1050112)
{
_redArray.push(0);
_alphaArray.push(255);
_greenArray.push(0);
_blueArray.push(255);
} else if (_bitmapFlag == false) {
_redArray.push(gp);
_alphaArray.push(0);
_greenArray.push(0);
_blueArray.push(0);
} else {
_redArray.push(0);
_alphaArray.push(0);
_greenArray.push(0);
_blueArray.push(0);
}
}

When _bitmapFlag = true it's the mask; otherwise, that which is masked. When gp 
 1050112 it's that which should be transparent. Any thoughts?
TIA,
George
  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FLAR: accessing the marker rotation properties

2010-09-08 Thread Isaac Alves
Hello,

I'm working on a flAR project and I would like to have control over marker's
rotation (actually I want the app. to detect the marker, and after that,
stop detecting it and the code would tween its rotation properties) I don't
need actually to rotate the marker, I could rotate the object that is added
to the marker. I could add an object outside of the marker, directly into
the display list, but I would then need to get the marker's rotation
properties. Does anyone knows how to do it?

Does anyone know a good forum focused on Augmented Reality in Flash ?

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


[Flashcoders] How do I debug an Actionscript project in Flex builder?

2010-09-08 Thread Volkan Unsal
I am trying to use Flex builder for the first time in years. I haven't used
the Run Application option before, and when I do that now it tells me
Errors exist in required projects and whether I should proceed. I would
like to debug those errors.

Does anyone know how I can do that?

PS: When I click the Debug button, it does exactly the same thing. I don't
see error output in the console views.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Impossible?

2010-09-08 Thread Henrik Andersson

George Jones skriver:



Date: Wed, 8 Sep 2010 18:16:44 +0200
From: he...@henke37.cjb.net
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Impossible?

When in doubt about masking, skip the step where you assign the mask
property, but leave the mask shape added, it will show what parts the
mask will apply to.


I did that. I commented out this line:

 _fireSprite.mask = _fireMaskSprite;

and nothing prints to screen. Therefore, it would appear that the mask is 
applying to all of it.


Incorrect, the mask isn't even added to the screen. And I doubt that the 
content is visible either.


The mask clearly isn't the issue here, since it's not even used.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Impossible?

2010-09-08 Thread George Jones

 Date: Wed, 8 Sep 2010 18:46:52 +0200
 From: he...@henke37.cjb.net
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Impossible?
 
 Incorrect, the mask isn't even added to the screen. And I doubt that the 
 content is visible either.

_fire = new BitmapData(865, 92, _bitmapFlag, 0xff);
_fireSprite.addChild(new Bitmap(_fireMask));
addChild(_fireSprite);

This code executes. It doesn't add the mask to the stage? Please advise.
TIA.
George
  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How do I debug an Actionscript project in Flex builder?

2010-09-08 Thread Bob Wohl
So you cant compile at all because you have errors? If so, there should be a
problems tab or icon, depending on your workspace setup. The icon looks
like the top of a stop light - red circle on top of a yellow circle. Mine is
on the bottom along with the progress icon. This can be different per user
setup/view.

Location aside, there will be a list of problems in the problem panel.
Also, you should be able to see these problems in your code view as well -
indicated by a red X next to your line numbers on the left side marking a
line of problematic code.

hth,
Bob

On Wed, Sep 8, 2010 at 9:41 AM, Volkan Unsal spockspla...@gmail.com wrote:

 I am trying to use Flex builder for the first time in years. I haven't used
 the Run Application option before, and when I do that now it tells me
 Errors exist in required projects and whether I should proceed. I would
 like to debug those errors.

 Does anyone know how I can do that?

 PS: When I click the Debug button, it does exactly the same thing. I
 don't
 see error output in the console views.
 ___
 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] Impossible?

2010-09-08 Thread Henrik Andersson

George Jones skriver:

This code executes. It doesn't add the mask to the stage? Please advise.


Forget about the mask until you get the output to work without it.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Impossible?

2010-09-08 Thread George Jones

 Date: Wed, 8 Sep 2010 19:20:05 +0200
 From: he...@henke37.cjb.net
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Impossible?
 
 Forget about the mask until you get the output to work without it.

There was a fundamental error, now corrected. However, now what I get is black 
fire against a blue background:

if (_bitmapFlag == false)
{
_fire = new BitmapData(865, 92, _bitmapFlag, 0xff);
addChild(new Bitmap(_fire));
_fireSprite.addChild(new Bitmap(_fireMask));
addChild(_fireSprite);
_fireSprite.mask = _fireMaskSprite;
_fireSprite.cacheAsBitmap = true;
} else {
_fireMask = new BitmapData(865, 92, _bitmapFlag, 0xff);
_fireMaskSprite.addChild(new Bitmap(_fireMask));
addChild(_fireMaskSprite);
_fireMaskSprite.cacheAsBitmap = true;
}
...
private function _createPalette(idx:int, _bitmapFlag:Boolean):void {
_redArray = [];
_greenArray = [];
_blueArray = [];
_alphaArray = [];
for (var i:int = 0; i  256; i++) {
var gp:int = new int();
gp = _fireColor.getPixel(i, 0);
if (gp  1050112)
{
_redArray.push(0);
_alphaArray.push(255);
_greenArray.push(0);
_blueArray.push(255);
} else if (_bitmapFlag == false) {
_redArray.push(gp);
_alphaArray.push(0);
_greenArray.push(0);
_blueArray.push(0);
} else {
_redArray.push(0);
_alphaArray.push(0);
_greenArray.push(0);
_blueArray.push(0);
}
}
}

Most important is masking out the blue background. Please advise.
TIA,
George
  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Best (fastest/memory efficient) way to animate bitmaps

2010-09-08 Thread Kevin Newman

 What is the fastest way to animate a series of bitmaps (say 20 frames).

Here's a couple of ideas:

A single big image behind a frame sized mask, move it one frame 
onEnterFrame.


A series of memory cached Bitmap objs, swap them using 
addChild/removeChild (or set visible?) onEnterFrame.


A series of memory cached BitmapData objs swap them by resetting 
bmp.bitmapData onEnterFrame.


Anything faster is nice too - particularly on mobile.

Thanks!

Kevin N.


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


RE: [Flashcoders] parsing multi-dimensional array

2010-09-08 Thread Cor
Dave  Jason,

THANKS !!

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Dave Watts
Sent: dinsdag 7 september 2010 23:42
To: Flash Coders List
Subject: Re: [Flashcoders] parsing multi-dimensional array

 I think I still don't understand the big trick of value objects.  :-(

There really isn't any trick. Maybe that's the trick!

Simply put, a value object is just a container for a bunch of related
properties. Say you wanted to talk about people in your program. You'd
define the properties of a person, and incorporate those properties
within a class that contains nothing but those properties. You'd use
the appropriate data types for each property, of course:

[Bindable]
public class Person {
 public var firstName:String;
 public var lastName:String;
 public var age:Number;
}

Then, when you wanted to talk about a group of people, you'd create
one instance of Person for each person in the group, and store it in
an Array or ArrayCollection. The advantage of this over just using
multidimensional arrays is that you get strict typing and
easier-to-read code.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.851 / Virusdatabase: 271.1.1/3120 - datum van uitgifte: 09/07/10
20:43:00


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


Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps

2010-09-08 Thread Zeh Fernando
Just have them all on stage and set visible on and off. No crazy setup
needed.


Zeh

On Wed, Sep 8, 2010 at 2:50 PM, Kevin Newman capta...@unfocus.com wrote:

  What is the fastest way to animate a series of bitmaps (say 20 frames).

 Here's a couple of ideas:

 A single big image behind a frame sized mask, move it one frame
 onEnterFrame.

 A series of memory cached Bitmap objs, swap them using addChild/removeChild
 (or set visible?) onEnterFrame.

 A series of memory cached BitmapData objs swap them by resetting
 bmp.bitmapData onEnterFrame.

 Anything faster is nice too - particularly on mobile.

 Thanks!

 Kevin N.


 ___
 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] Isometric Graphics Libraries

2010-09-08 Thread Mendelsohn, Michael
You might want to check the Adobe Exchange.  There's probably some free 
downloads there.  Search under Illustrator.

- MM

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Tom Gooding
Sent: Wednesday, September 08, 2010 10:43 AM
To: Flash Coders List
Subject: [Flashcoders] Isometric Graphics Libraries

Hi - is anyone aware of any pre-existing free or commercial isometric graphic 
libraries - for characters and props?

 




___
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] Impossible?

2010-09-08 Thread Karl DeSaulniers


On Sep 8, 2010, at 1:15 PM, George Jones wrote:


  if (gp  1050112)
{
_redArray.push(0);
_alphaArray.push(255);
_greenArray.push(0);
_blueArray.push(255);




Shouldn't this be
 _blueArray.push(0);

and only alphaArray should be set to 255?
That may be why your getting a blue background.

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


RE: [Flashcoders] Isometric Graphics Libraries

2010-09-08 Thread Chris Foster
Assuming that you're after AS3 libraries, go here:
http://fluxdb.fluxusproject.org/

and type 'Isometric' into the 'Search' box in the top-right corner. 

C:

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Tom
Gooding
Sent: Thursday, 9 September 2010 12:43 AM
To: Flash Coders List
Subject: [Flashcoders] Isometric Graphics Libraries

Hi - is anyone aware of any pre-existing free or commercial isometric
graphic libraries - for characters and props?

 




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

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