[Flashcoders] [JOB] Interactive Developer, Cincinnati, Ohio

2009-01-17 Thread Jason Van Cleave
Bridge Worldwide (my current employer) is looking for a couple of
full-time Flash Developers.

Details here:
http://careers.vurvexpress.com/jobprofile.cfm?szWID=16390&szCID=73757&szOrderID=542394&szSiteID=1684
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] 1 AS3 Dev & 1 Flex Dev :: Available

2009-01-17 Thread artur
my design+dev studio has 2 amazing resources that have become available 
for new projects.


Flex Dev skills: 3 yrs experience (+1yr RIA exp)
plus PHP, MySQL, FlashRemoting, PureMVC, OOP

AS3 Dev skills: 3 yrs experience
plus PHP, MySQL

( off-site only )

contact me off-list for more info.

our portfolio :  www.design2dev.com

Artur Maklyarevsky :: CEO
LinkedIN 

**

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


Re: [Flashcoders] AS3: Custom button with text label not working perfectly

2009-01-17 Thread Alexander Farber
Thank you Cor that was it!

On Sat, Jan 17, 2009 at 1:55 PM, Cor  wrote:
>
> MyButton.mouseChildren= false;
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3: Custom button with text label not working perfectly

2009-01-17 Thread Alexander Farber
Wow that was the missing piece,
I've just fixed a lot of annoyances in my program :-)

> On Sat, Jan 17, 2009 at 1:55 PM, Cor  wrote:
>>
>> MyButton.mouseChildren= false;
>>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] AS3: Custom button with text label not working perfectly

2009-01-17 Thread Cor
Glad to be of help!

Kind regards
Cor

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Alexander
Farber
Sent: zaterdag 17 januari 2009 23:03
To: Flash Coders List
Subject: Re: [Flashcoders] AS3: Custom button with text label not working
perfectly

Thank you Cor that was it!

On Sat, Jan 17, 2009 at 1:55 PM, Cor  wrote:
>
> MyButton.mouseChildren= false;
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.10.8/1898 - Release Date: 16-1-2009
15:09

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


RE: [Flashcoders] AS3: Custom button with text label not working perfectly

2009-01-17 Thread Cor
@Alexander,


trace(this.name, event.target.name);

you will notice that this refers to root1 and event.target to the sprite

HTH
Cor

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


RE: [Flashcoders] AS3: Custom button with text label not working perfectly

2009-01-17 Thread Cor
Alexander,

I set 

MyButton.mouseChildren= false;


Kind regards
Cor

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


[Flashcoders] AS3: Custom button with text label not working perfectly

2009-01-17 Thread Alexander Farber
Dear flash coders,

I'm struggling since a week already with
several elements in my application not
acting as I want them to do. And they
all could be reduced to a rectangle button
which has a TextField on top of it and
which should lighten up on a mouse over
and scale down on a mouse down event.

I have prepared a very simple test code
which demonstrates my problem:
   http://pastebin.com/m848fe2d
(also pasted it at the bottom of this mail).

You can see the problem if you left-click
on my button and then move the pointer
away without releasing it and then release:

private function handleMouseOut(event:MouseEvent):void {
//if (this != event.target)
//return;
scaleX = scaleY = old_scale;
rect.filters = SHADOW;
}

The TextField will receive the mouse out
event and make my button to pop up to
early (i.e. the mouse pointer is still inside
my button, but it is already in up state).

And if I remove the 2 comments above
then the scale of the button will get wrong,
because it will be set in mouse over event
and my button will get smaller and smaller

Thank you for any hints
Alex

PS: here is my test code:

package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.filters.*;

public class MyButton extends Sprite {
private static constSHADOW:Array = [ new DropShadowFilter(8,
80, 0x00, 0.4, 32, 32, 1, 1, false, false, false) ];
private static constGLOW:Array = [ new GlowFilter(0xFF,
0.5, 36, 36, 1, 1, false, false) ];

private var rect:Shape;
private var old_scale:Number;

public function MyButton() {
rect = new Shape();
rect.graphics.beginFill(0x00FF00);
rect.graphics.drawRect(-100, -100, 200, 200);
rect.graphics.endFill();
rect.filters = SHADOW;
addChild(rect);

var label:TextField = new TextField();
label.width = 100;
label.height = 50;
label.selectable = false;
label.border = true;
label.text = 'MyButton';
label.x = -label.textWidth/2;
label.y = -label.textHeight/2;
addChild(label);
addEventListener(MouseEvent.MOUSE_OVER, 
handleMouseOver);
addEventListener(MouseEvent.MOUSE_OUT, handleMouseOut);
addEventListener(MouseEvent.MOUSE_DOWN, 
handleMouseDown);
addEventListener(MouseEvent.MOUSE_UP, handleMouseUp);
addEventListener(MouseEvent.CLICK, handleMouseClick);
}

private function handleMouseOver(event:MouseEvent):void {
old_scale = scaleX;
rect.filters = GLOW;
}

private function handleMouseOut(event:MouseEvent):void {
//if (this != event.target)
//return;
scaleX = scaleY = old_scale;
rect.filters = SHADOW;
}

private function handleMouseDown(event:MouseEvent):void {
old_scale = scaleX;
scaleX *= 0.95;
scaleY *= 0.95;
rect.filters = null;
}

private function handleMouseUp(event:MouseEvent):void {
scaleX = scaleY = old_scale;
rect.filters = GLOW;
}

private function handleMouseClick(event:MouseEvent):void {
trace('MyButton clicked');
}
}
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] [flash textfield] lose formatting

2009-01-17 Thread Cor
Hi Romu,

I have noticed your site before.
VERY NICE!!!

Thank you.

Cor

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Romuald
Quantin
Sent: vrijdag 16 januari 2009 17:37
To: Flash Coders List
Subject: Re: [Flashcoders] [flash textfield] lose formatting

I have already posted that here but, I think this (a single class that 
is extending TextField) can help you as it is a kind of things Ive 
already done (and I was bored to struggle with textfield, textformat, 
style, etc).

I've extracted a text tool from my framework: SomaText.

It allows you to easily create TextField and apply styles from a 
stylesheet, you can set a lot TextField and TextFormat properties 
straight from the stylesheet if you wish. It is a single class that is 
extending the TextField built-in one, very easy to use.

Quick intro:
http://www.soundstep.com/blog/2009/01/07/somatext-standalone/

Source:
http://www.soundstep.com/blog/downloads/somatext/

List of properties you can use in the stylesheet:
http://www.soundstep.com/somaprotest/www/#/stylesheet/css-properties/

And for the curious, SomaText is part of Soma (MVC Framework):
http://www.soundstep.com/somaprotest/

Hope it helps.

Romu
www.soundstep.com

Cor wrote:
> OK, here are some options:
>
> HTH
>
> Cor
>
>
> /*
> Create in library: New Font
> My embedded fonts have Linkage classes of "FFFInterface", "LasVegasD" and
> "Wdings". 
> Both of these seemed to work for me.
> Fonts should be on the develop PC
> */
> //TextFormat example
> var fmt1:TextFormat = new TextFormat();
> fmt1.font = new FFFInterface().fontName;
> fmt1.size = 18;
>
> var fmt2:TextFormat = new TextFormat(); 
> fmt2.font = new LasVegasD().fontName; 
> fmt2.size = 18;
>
> var txt:TextField = new TextField();
> txt.width = 400;
> txt.embedFonts = true;
> txt.text="ActionScript";
> //set textformat from beginIndex to EndIndex
> txt.setTextFormat(fmt1,0,6);
> txt.setTextFormat(fmt2,6,12);
> txt.y = 10;
> addChild(txt);
>
>
> //CSS Example
> var style:StyleSheet = new StyleSheet();
>
> var heading:Object = new Object();
> heading.fontFamily = new Wdings().fontName;
> heading.fontSize="24";
> heading.fontWeight="bold";
> heading.fontStyle="italic";
> heading.color="#FF";
>
> var body:Object = new Object();
> body.fontFamily = new LasVegasD().fontName;
> body.fontSize="24";
> body.fontWeight="bold";
> body.fontStyle="italic";
> body.color="#FF";
>
> style.setStyle(".heading", heading);
> style.setStyle("body", body);
>
> var label:TextField = new TextField();
> label.width = 400;
> label.embedFonts = true;
> label.styleSheet=style;
> label.htmlText="Hello World...";
> label.y = 80;
> addChild(label);
>
> ___
> 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
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.10.8/1898 - Release Date: 16-1-2009
15:09

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