Re: [Flashcoders] [AS3] TextField Bug: Text outside of the TF

2008-09-26 Thread eric e. dolecki
turn the border on for the TF and see where it really is.

On Fri, Sep 26, 2008 at 1:06 PM, sebastian <[EMAIL PROTECTED]> wrote:

> Check alignment and check how you are creating the text fields. This sounds
> like an issue with how you are placing and coding the text fields.
>
> Benicio del Toro wrote:
>
>> hi,
>>
>> I ve'got an input TextField. What I want to do is to reset the TF content
>> and put some prompt text inside, which I set using AS (e.g. 'your email'
>> prompt).
>>
>> The problem:
>> If before resetting the TF, the text in it is longer than the TF width,
>> Flash doesn't put the prompt text where it is supposed to (left-aligned
>> inside the textfield), but further to the left outside of the TF. Actually
>> the offset is more or less equal to the diference between the previous
>> text
>> length and the TF width.
>>
>> In my real project the misplaced text is visible right away, and when I
>> tried to recreate the problem in a test .fla, it becomes visible after
>> resizing the test player window.
>> The text returns into the right place after clicking on the textfield (and
>> no, setting focus progammaticaly does not help).
>>
>> Have you ever encountered such problem and know any solution?
>>
>> Best,
>> Konrad
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>  ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] possible to export a .swf or .flv from a .swf running in the player (without a streaming media server)?

2008-09-26 Thread sebastian

"captured from a portion of the stage"
what does that mean? are you making these screen shots yourself? or do 
you expect the code you write to also take screen shots of its own output?


BOYD SPEER wrote:

I am just getting into AS3 and would like to know if it is possible to 
programmatically create a movieclip and populate the timeline frames of that 
clip with a series of bitmaps captured from a portion of the stage image, and 
then save or export this mc to the disk (or send to a server) as a .swf? 
Alternately could the mc be converted to a .flv and then saved??
Would using AIR make a difference?

Or is this just wishful thinking..  :)
-Boyd

- Original Message -
From: Patrick Matte | BLITZ <[EMAIL PROTECTED]>
Date: Friday, August 8, 2008 5:44 pm
Subject: [Flashcoders] websites with public APIs available from flash
To: Flash Coders List 

I'm rounding up a list of websites with public API that flash 
can interact with.

I have :

Yahoo maps
Flickr
Youtube
Weather.com

Do you know any other?


Patrick Matte
Interactive Director
Ph: 310-551-0200 x214
Fax: 310-551-0022
[EMAIL PROTECTED]

BLITZ - 3415 S Sepulveda Bl, Ste 500 - Los Angeles, CA 90034 - 
www.blitzagency.com
(!) Be sure and check out BLITZ 
Labs, our blog for all the latest and greatest.


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


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


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


Re: [Flashcoders] [AS3] TextField Bug: Text outside of the TF

2008-09-26 Thread sebastian
Check alignment and check how you are creating the text fields. This 
sounds like an issue with how you are placing and coding the text fields.


Benicio del Toro wrote:

hi,

I ve'got an input TextField. What I want to do is to reset the TF content
and put some prompt text inside, which I set using AS (e.g. 'your email'
prompt).

The problem:
If before resetting the TF, the text in it is longer than the TF width,
Flash doesn't put the prompt text where it is supposed to (left-aligned
inside the textfield), but further to the left outside of the TF. Actually
the offset is more or less equal to the diference between the previous text
length and the TF width.

In my real project the misplaced text is visible right away, and when I
tried to recreate the problem in a test .fla, it becomes visible after
resizing the test player window.
The text returns into the right place after clicking on the textfield (and
no, setting focus progammaticaly does not help).

Have you ever encountered such problem and know any solution?

Best,
Konrad
___
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] Textarea

2008-09-26 Thread sebastian
If both the text and the image need to scroll, put both of them in a MC 
that is itself scrollable and remove the scrolling from the nested text 
field.


Lehr, Theodore M (N-SGIS) wrote:

1 sounds a little more involved than I want to get... 2 was my first
approach, but I end up with a (vertically speaking) very small scrolling
textfield - and it just does not look good - so my goal was to mimic a
div with an overflow of auto where the whole thing (image and text)
scrolls

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Rogers
Sent: Friday, September 26, 2008 10:27 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Textarea

Two suggestions:

1) It's a bit extreme but in the end I think it would work.  Use the  
BitmapData Class to collect the image data, then use it to add  
additional transparent pixels to the left or right making the total  
width of the image the same width of your text field.  You then must  
use something like the PNGEncoder class to save it as a PNG and save  
it to a server using AMFPHP.  Make sure your .htmlText references this  
file directory and file name. Tthe transparent pixels should push the  
text below the image.


Here is the link to the PNGEncoder class:

http://www.5etdemi.com/blog/archives/2006/12/as3-png-encoder-faster-bett
er/

2) You could do all that but I would be more inclined to have the text  
field and picture be separate and have textfield's .y and .height  
properties adjust dynamically to the bitmap data of the dynamic image.




On Sep 26, 2008, at 8:56 AM, Lehr, Theodore M (N-SGIS) wrote:


I have a textarea that I am filling with an image followed by text - I
want the text to appear under the image but I can not figure out how  
to
get a hard return in after the image - I could do a bunch of 's  
but

it will be dynamic so there is no telling how big the image will be -
any ideas?

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


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


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


[Flashcoders] Textarea in MC issue

2008-09-26 Thread Lehr, Theodore M (N-SGIS)
I have a textarea mc that is getting put into another MC  The
problem I am having is when someone clicks on it - a green outline
appears around the textarea - and when you scroll - all of the text
becomes selected and the scroll OCCASSIONALLY gets stuck on the bottom 0
any thoughts?

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


[Flashcoders] possible to export a .swf or .flv from a .swf running in the player (without a streaming media server)?

2008-09-26 Thread BOYD SPEER
I am just getting into AS3 and would like to know if it is possible to 
programmatically create a movieclip and populate the timeline frames of that 
clip with a series of bitmaps captured from a portion of the stage image, and 
then save or export this mc to the disk (or send to a server) as a .swf? 
Alternately could the mc be converted to a .flv and then saved??
Would using AIR make a difference?

Or is this just wishful thinking..  :)
-Boyd

- Original Message -
From: Patrick Matte | BLITZ <[EMAIL PROTECTED]>
Date: Friday, August 8, 2008 5:44 pm
Subject: [Flashcoders] websites with public APIs available from flash
To: Flash Coders List 

> I'm rounding up a list of websites with public API that flash 
> can interact with.
> I have :
> 
> Yahoo maps
> Flickr
> Youtube
> Weather.com
> 
> Do you know any other?
> 
> 
> Patrick Matte
> Interactive Director
> Ph: 310-551-0200 x214
> Fax: 310-551-0022
> [EMAIL PROTECTED]
> 
> BLITZ - 3415 S Sepulveda Bl, Ste 500 - Los Angeles, CA 90034 - 
> www.blitzagency.com
> (!) Be sure and check out BLITZ 
> Labs,
>  our blog for all the latest and greatest.
> 
> ___
> 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] favourite programming environment

2008-09-26 Thread Paul Andrews
- Original Message - 
From: "Allandt Bik-Elliott (Receptacle)" <[EMAIL PROTECTED]>

To: "flashcoders" 
Sent: Friday, September 26, 2008 3:38 PM
Subject: [Flashcoders] favourite programming environment


I'm sure it's been asked before but as these things change over time,  
i thought it worth rehashing now


what's your favourite coding environment?


Err.. Flex!
snip



what do you guys think?

thanks
allandt

___
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] favourite programming environment

2008-09-26 Thread eric e. dolecki
I like TextMate on the Mac.

On Fri, Sep 26, 2008 at 10:38 AM, Allandt Bik-Elliott (Receptacle) <
[EMAIL PROTECTED]> wrote:

> I'm sure it's been asked before but as these things change over time, i
> thought it worth rehashing now
>
> what's your favourite coding environment?
>
> I really like FlashDevelop but because I'm on a mac, I've been looking into
> other options (although FD with parallels is a pretty good setup). I've
> found eclipse and FDT to be shaky at best - the AS2 libraries are incomplete
> (the mx lib has to be added to the default setup, for instance) and it seems
> to be a little unstable (if it doesn't crash entirely once in a while, it
> seems to get slower over time - maybe there's a memory leak somewhere?) and
> FDT costs an astronomical amount for something that is supposed to go
> alongside the Flash IDE when doing AS2 (which seems to be still the most
> widely used version of Actionscript outside of full-on microsite design) as
> it doesn't have it's own AS2 compiler.
>
> I've seen that coda has started supporting AS code hinting but without real
> OOP class support, it really only is a curio at the moment.
>
> what do you guys think?
>
> thanks
> allandt
>
> ___
> 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] Textarea

2008-09-26 Thread Lehr, Theodore M (N-SGIS)
1 sounds a little more involved than I want to get... 2 was my first
approach, but I end up with a (vertically speaking) very small scrolling
textfield - and it just does not look good - so my goal was to mimic a
div with an overflow of auto where the whole thing (image and text)
scrolls

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Rogers
Sent: Friday, September 26, 2008 10:27 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Textarea

Two suggestions:

1) It's a bit extreme but in the end I think it would work.  Use the  
BitmapData Class to collect the image data, then use it to add  
additional transparent pixels to the left or right making the total  
width of the image the same width of your text field.  You then must  
use something like the PNGEncoder class to save it as a PNG and save  
it to a server using AMFPHP.  Make sure your .htmlText references this  
file directory and file name. Tthe transparent pixels should push the  
text below the image.

Here is the link to the PNGEncoder class:

http://www.5etdemi.com/blog/archives/2006/12/as3-png-encoder-faster-bett
er/

2) You could do all that but I would be more inclined to have the text  
field and picture be separate and have textfield's .y and .height  
properties adjust dynamically to the bitmap data of the dynamic image.



On Sep 26, 2008, at 8:56 AM, Lehr, Theodore M (N-SGIS) wrote:

> I have a textarea that I am filling with an image followed by text - I
> want the text to appear under the image but I can not figure out how  
> to
> get a hard return in after the image - I could do a bunch of 's  
> but
> it will be dynamic so there is no telling how big the image will be -
> any ideas?
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] favourite programming environment

2008-09-26 Thread Allandt Bik-Elliott (Receptacle)
I'm sure it's been asked before but as these things change over time,  
i thought it worth rehashing now


what's your favourite coding environment?

I really like FlashDevelop but because I'm on a mac, I've been looking  
into other options (although FD with parallels is a pretty good  
setup). I've found eclipse and FDT to be shaky at best - the AS2  
libraries are incomplete (the mx lib has to be added to the default  
setup, for instance) and it seems to be a little unstable (if it  
doesn't crash entirely once in a while, it seems to get slower over  
time - maybe there's a memory leak somewhere?) and FDT costs an  
astronomical amount for something that is supposed to go alongside the  
Flash IDE when doing AS2 (which seems to be still the most widely used  
version of Actionscript outside of full-on microsite design) as it  
doesn't have it's own AS2 compiler.


I've seen that coda has started supporting AS code hinting but without  
real OOP class support, it really only is a curio at the moment.


what do you guys think?

thanks
allandt

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


RE: [Flashcoders] Problems creating a drag and drop

2008-09-26 Thread Lord, Susan, CTR, DSS
Turns out it was a layering issue with my movie clips.  Also, of course,
add the listener to the stage instead of to the button.  It works great!
:)

Thanks so much for all your feedback.  You all really helped me think of
new places to troubleshoot.  :)  

I just had to post my final coding, because for me, the newbie coder, I
am excited I finally got it working!  LOL!  :D



for (i= 0; i < count; i++) {
aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN,
startDragging);
aButtons[i].mouseChildren = false;
}

function startDragging(event:MouseEvent):void {

for (i= 0; i < count; i++) {
if (event.target == aButtons[i] ) {
trace("start dragging");
event.target.startDrag();
}
stage.addEventListener(MouseEvent.MOUSE_UP,
stopDragging);
}
}

function stopDragging(event:MouseEvent):void {

for (i= 0; i < count; i++) {

if (event.target == aButtons[i]  ) {
trace("stop dragging");
aButtons[i].stopDrag();
//now figure out whether the drag is over a hit
spot or not

var hitSpot:Boolean;
var index:Number;
var snapPosition:Number;
var snapInPlace:Boolean;
for (index= 0; index < count; index++) {
hitSpot =
event.target.hitTestObject(dropSpots[index]);
if (hitSpot == true) {
snapInPlace=hitSpot;
snapPosition = index;
}//end if
trace("snap to "+snapPosition + "hitspot
= "+ hitSpot);
}//end for

if (snapInPlace) {
var snapX:Tween = new Tween(aButtons[i],
"x", Strong.easeOut, aButtons[i].x, dropSpots[snapPosition].x, .2,
true);
var snapy:Tween = new Tween(aButtons[i],
"y", Strong.easeOut, aButtons[i].y, dropSpots[snapPosition].y, .2,
true);
} else {
var returnX:Tween = new
Tween(aButtons[i], "x", Strong.easeOut, aButtons[i].x,
originalPositions[i].x, 1, true);
var returnY:Tween = new
Tween(aButtons[i], "y", Strong.easeOut, aButtons[i].y,
originalPositions[i].y, 1, true);
}//end if
hitSpot = false ;
}//end for loop "index"

}//end for "i"

stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragging);
}//end stop dragfunction

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


Re: [Flashcoders] Textarea

2008-09-26 Thread David Rogers

Two suggestions:

1) It's a bit extreme but in the end I think it would work.  Use the  
BitmapData Class to collect the image data, then use it to add  
additional transparent pixels to the left or right making the total  
width of the image the same width of your text field.  You then must  
use something like the PNGEncoder class to save it as a PNG and save  
it to a server using AMFPHP.  Make sure your .htmlText references this  
file directory and file name. Tthe transparent pixels should push the  
text below the image.


Here is the link to the PNGEncoder class:

http://www.5etdemi.com/blog/archives/2006/12/as3-png-encoder-faster-better/

2) You could do all that but I would be more inclined to have the text  
field and picture be separate and have textfield's .y and .height  
properties adjust dynamically to the bitmap data of the dynamic image.




On Sep 26, 2008, at 8:56 AM, Lehr, Theodore M (N-SGIS) wrote:


I have a textarea that I am filling with an image followed by text - I
want the text to appear under the image but I can not figure out how  
to
get a hard return in after the image - I could do a bunch of 's  
but

it will be dynamic so there is no telling how big the image will be -
any ideas?

___
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] Textarea

2008-09-26 Thread Lehr, Theodore M (N-SGIS)
I have a textarea that I am filling with an image followed by text - I
want the text to appear under the image but I can not figure out how to
get a hard return in after the image - I could do a bunch of 's but
it will be dynamic so there is no telling how big the image will be -
any ideas?

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


RE: [Flashcoders] Problems creating a drag and drop

2008-09-26 Thread Gregory Boudreaux

Is your target a movieClip with a graphic inside?

Try this...

for (index= 0; index < count; index++) {
trace(aButtons[index].dropTarget.parent);
}

gregb


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lord,
Susan, CTR, DSS
Sent: Thursday, September 25, 2008 4:03 PM
To: Flash Coders List
Subject: RE: [Flashcoders] Problems creating a drag and drop



Nevermind my last message... that was not the problem. The problem is my
hit test.  When I add the following code to determine whether the object
is over the target, everything stops working:

for (index= 0; index < count; index++) {
trace(aButtons[index].hitTestObject(dropSpots[index]));
}

Even having it in there as a simple trace messes things up.  Any ideas
on how to accommodate the hitTest? Is there a different way to do a hit
test in AS3?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lord,
Susan, CTR, DSS
Sent: Thursday, September 25, 2008 4:43 PM
To: Flash Coders List
Subject: RE: [Flashcoders] Problems creating a drag and drop

Thanks for all of your suggestions.  I ended up restructuring the code
and adding the event listeners for the mouse up to the stage instead and
took them out of the array. It seems to be working well (as long as I
keep my mouse on the stage).  I am very happy to have a working model!
If anyone has any ideas for the occasion when the user moves the mouse
off stage, that would be great!  One sample I saw had the following in
the stopDrag code --if (event.target == circle ||
circle.contains(event.target))--- But the contains code did not work for
me.

Below is my current code. Again thanks!

~~~

for (i= 0; i < count; i++) {
aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN,
startDragging);
aButtons[i].mouseChildren = false;
}

function startDragging(event:MouseEvent):void {

for (i= 0; i < count; i++) {
if (event.target == aButtons[i] ) {
trace("start dragging");
aButtons[i].startDrag();
}
stage.addEventListener(MouseEvent.MOUSE_UP,
stopDragging);
}
}

function stopDragging(event:MouseEvent):void {

for (i= 0; i < count; i++) {
if (event.target == aButtons[i]  ) {
trace("stop dragging");
aButtons[i] .stopDrag();
}
}
stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragging);
}



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

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

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


[Flashcoders] [AS3] TextField Bug: Text outside of the TF

2008-09-26 Thread Benicio del Toro
hi,

I ve'got an input TextField. What I want to do is to reset the TF content
and put some prompt text inside, which I set using AS (e.g. 'your email'
prompt).

The problem:
If before resetting the TF, the text in it is longer than the TF width,
Flash doesn't put the prompt text where it is supposed to (left-aligned
inside the textfield), but further to the left outside of the TF. Actually
the offset is more or less equal to the diference between the previous text
length and the TF width.

In my real project the misplaced text is visible right away, and when I
tried to recreate the problem in a test .fla, it becomes visible after
resizing the test player window.
The text returns into the right place after clicking on the textfield (and
no, setting focus progammaticaly does not help).

Have you ever encountered such problem and know any solution?

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