RE: [Flashcoders] To Void or not to void?? That is my question..

2009-07-13 Thread Kerry Thompson
Karl DeSaulniers wrote:

> Using AS2.
> When is it best to use the :Void ? and what is the difference between
> that and :void ?

You use void when a function doesn't return anything. In fact, there are
some languages, like Pascal and, I believe, Fortran, that have that built
in. In Pascal, a function returns something, while a procedure doesn't. A
Pascal programmer would use a function to do something like perform a
calculation--let's say, figure the square root of a number. A procedure
would do something like drawing a line.

Void is AS2, and void is AS3. I have no idea why the spelling change, but
ActionScript is, of course, case sensitive.

> What are the advantages and why use them if say, your function works
> without them?

Clarity, mainly. Also, in AS3, if you have strict type checking on (it's the
default), every function must have a type, so you use void when your
function won't return anything. If you declare a function as :void, and have
a return in it, I believe the compiler throws an error.

> I know that the Void is a Boolean, but I also know you cant use it
> when the statement returns something.
> Does this "return" include any of the basics like gotoAndPlay? or
> does it literally mean a return(); 

Void actually isn't a Boolean. Technically, its value is undefined. AFAIK,
:void can only be used as the return type of a function. You can't declare a
variable as void.

Down on the nuts and bolts level, every function is a subroutine. You call
it, and it returns control to the calling object. So every function returns;
some pass a value back, and some don't.

HTH.

Cordially,

Kerry Thompson

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


[Flashcoders] Playing an encrypted f4v

2009-07-13 Thread Carl Welch
Hi guys,

My client asked if I could load an encrypted f4v, decrypt it and then
play it. I found the as3Crypto libraries, so I have that part covered.
Now I'm wondering if its even possible to load the f4v as a binary
file or something, decrypt and then play it. I've tried a couple of
tests with an unencrypted file but I can't figure out how to get
around not using the netstream function.

 So basically my question is if this is even possible or am I headed
down a dead end street?

Thoughts, comments, suggestions?

Thanks.

-- 
Carl Welch
http://www.carlwelch.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] for the love of your own personal god... sign up and vote

2009-07-13 Thread Anthony Pace

Are you serious?

How about:
-voice recognition could add an entirely new level of web based interaction
-The ability to transmit the audio data through your own protocol for 
any number of reasons

-A multitude of apps that need the ability to record audio locally

There are a ton of doors that this would open up for browser based and 
desktop applications; which, would translate into more jobs for, what is 
said to be, a very unstable economy.




Eric E. Dolecki wrote:

What do you need this access for, where activityLevel wouldn't serve you?

On Mon, Jul 13, 2009 at 5:17 PM, Anthony Pace wrote:

  

to open the microphone, so we can use computer spectrum, sign up and vote
please, please, please, please, please

http://bugs.adobe.com/jira/browse/FP-1766

I can't believe there are only 85 votes for this; before Adobe takes the
request seriously, they will need at least a few thousand IMHO.
Why can their server and voip applications do this and our applications are
not allowed to? because Adobe is trying to prevent competition.

I would join a class action lawsuit if anyone wants to get one started.
___
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] To Void or not to void?? That is my question..

2009-07-13 Thread Karl DeSaulniers

That is what I figured.
Then why would my function not fire the gotoAndPlay when there was  
a :Void and would when removed??

This isn't a bug is it? I mean were talking about a simple

function fName():Void {
gotoAndPlay(2);
}

Not working and a

function fName() {
gotoAndPlay(2);
}

Working...

This is why I thought I might be missing something about the :Void.
Maybe its something else in my code, but I don't think so.

Here is the code I am working on:
I took Jiri's advice on fixing the function calls on my tweens,
but it either is not firing the function or not firing the gotoAndPlay.
my first thought was that because the other tweens started working  
after I made the change to the function call,

that this was a :Void culprit.

[code]
var beginAlpha = 0;
var endAlpha = 100;
var quoteShowY:Number = 219.9;
var quoteHideY:Number = -219.9;
this.quoteRequest_mc._x = 354.1;
this.quoteRequest_mc._y = quoteHideY;
this.quoteRequest_mc._alpha = 0;
function formVisible():Void {
this.quoteRequest_mc.gotoAndPlay("startQuote");
}

function formHidden():Void {
this.quoteRequest_mc.gotoAndStop(1);
}

function showForm() {
this.quoteRequest_mc.alphaTo(endAlpha,5,"easeincirc",.5);
	this.quoteRequest_mc.ySlideTo(quoteShowY,5,"easeincirc",. 
5,formVisible);

}

function hideForm() {
this.quoteRequest_mc.alphaTo(beginAlpha,5,"easeincirc",.5);
this.quoteRequest_mc.ySlideTo(quoteHideY,5,"easeincirc",.5,formHidden);
}

Thanks for taking the time to answer my question everyone.

Karl


On Jul 13, 2009, at 11:43 PM, Taka Kojima wrote:


Let's say I wanted to do something like this...

trace("Taka " + getLastName("Taka"));

function getLastName(firstName:String):String{
if(firstName == "Taka"){return "Kojima";}
else{return "";}
}

That function returns a String. Having a gotoAndPlay() inside a  
function is

not a return value.

Hope that helps.

 -Taka

On Mon, Jul 13, 2009 at 9:29 PM, Karl DeSaulniers  
wrote:



Thanks for the quick response Taka,

So what contitutes a return?

I have used the :Void on functions that had a gotoAndPlay() inside  
it and

it didnt work.
But if I removed the :Void, it did!?!


Karl



On Jul 13, 2009, at 11:18 PM, Taka Kojima wrote:

 :Void is AS2, and :void is AS3


The definition of void is "nothingness: the state of  
nonexistence"...


The syntax of functionName():void{} simply states that the function
returns
nothing... i.e. there is no return at the end of the function.

Although specifying a :void return type is not necessary in AS3,  
it is

considered best practice to include it. I believe it will generate
warnings
if you don't.

In AS2, it really doesn't matter if you do :Void after functions.

The reason this syntax exists is to make it easy for compilers to  
easily
identify problems in regards to object types, i.e. if you're  
trying to use
the return value of a function as a MovieClip when it should  
really be an
Array, or void. It also makes it easier for you to see what type  
of value

the function is returning just by looking at the top of the function
definition.

- Taka

On Mon, Jul 13, 2009 at 9:07 PM, Karl DeSaulniers  

wrote:


 Using AS2.
When is it best to use the :Void ? and what is the difference  
between

that
and :void ?
I have a somewhat understanding of what each are,
I am asking more to "you" (The List) as a programers, what is  
the best

case
scenarios to use these things?
What are the advantages and why use them if say, your function  
works

without them?
I know that the Void is a Boolean, but I also know you cant use  
it when

the
statement returns something.
Does this "return" include any of the basics like gotoAndPlay?  
or does it

literally mean a return(); ???

Thanks for any clarification anyone can give me.

Best,


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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

 ___

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



Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] To Void or not to void?? That is my question..

2009-07-13 Thread Taka Kojima
Let's say I wanted to do something like this...

trace("Taka " + getLastName("Taka"));

function getLastName(firstName:String):String{
if(firstName == "Taka"){return "Kojima";}
else{return "";}
}

That function returns a String. Having a gotoAndPlay() inside a function is
not a return value.

Hope that helps.

 -Taka

On Mon, Jul 13, 2009 at 9:29 PM, Karl DeSaulniers wrote:

> Thanks for the quick response Taka,
>
> So what contitutes a return?
>
> I have used the :Void on functions that had a gotoAndPlay() inside it and
> it didnt work.
> But if I removed the :Void, it did!?!
>
>
> Karl
>
>
>
> On Jul 13, 2009, at 11:18 PM, Taka Kojima wrote:
>
>  :Void is AS2, and :void is AS3
>>
>> The definition of void is "nothingness: the state of nonexistence"...
>>
>> The syntax of functionName():void{} simply states that the function
>> returns
>> nothing... i.e. there is no return at the end of the function.
>>
>> Although specifying a :void return type is not necessary in AS3, it is
>> considered best practice to include it. I believe it will generate
>> warnings
>> if you don't.
>>
>> In AS2, it really doesn't matter if you do :Void after functions.
>>
>> The reason this syntax exists is to make it easy for compilers to easily
>> identify problems in regards to object types, i.e. if you're trying to use
>> the return value of a function as a MovieClip when it should really be an
>> Array, or void. It also makes it easier for you to see what type of value
>> the function is returning just by looking at the top of the function
>> definition.
>>
>> - Taka
>>
>> On Mon, Jul 13, 2009 at 9:07 PM, Karl DeSaulniers > >wrote:
>>
>>  Using AS2.
>>> When is it best to use the :Void ? and what is the difference between
>>> that
>>> and :void ?
>>> I have a somewhat understanding of what each are,
>>> I am asking more to "you" (The List) as a programers, what is the best
>>> case
>>> scenarios to use these things?
>>> What are the advantages and why use them if say, your function works
>>> without them?
>>> I know that the Void is a Boolean, but I also know you cant use it when
>>> the
>>> statement returns something.
>>> Does this "return" include any of the basics like gotoAndPlay? or does it
>>> literally mean a return(); ???
>>>
>>> Thanks for any clarification anyone can give me.
>>>
>>> Best,
>>>
>>>
>>> Karl DeSaulniers
>>> Design Drumm
>>> http://designdrumm.com
>>>
>>> ___
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>>  ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] To Void or not to void?? That is my question..

2009-07-13 Thread Barry Hannah
Karl, a function "returns" something if you include a line "return
value" at the end of the function...

For example, if you had a function that returned a random number below
100:

function giveMeARandomNumberBelow100():Number
{
var myRandomNumberBelow100:Number = Math.random() * 100;
return myRandomNumberBelow100;
}


Pointless function of course, but you get the idea?

Barry.


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Tuesday, 14 July 2009 4:30 p.m.
To: Flash Coders List
Subject: Re: [Flashcoders] To Void or not to void?? That is my
question..

Thanks for the quick response Taka,

So what contitutes a return?

I have used the :Void on functions that had a gotoAndPlay() inside it  
and it didnt work.
But if I removed the :Void, it did!?!


Karl


On Jul 13, 2009, at 11:18 PM, Taka Kojima wrote:

> :Void is AS2, and :void is AS3
>
> The definition of void is "nothingness: the state of nonexistence"...
>
> The syntax of functionName():void{} simply states that the function  
> returns
> nothing... i.e. there is no return at the end of the function.
>
> Although specifying a :void return type is not necessary in AS3, it is
> considered best practice to include it. I believe it will generate  
> warnings
> if you don't.
>
> In AS2, it really doesn't matter if you do :Void after functions.
>
> The reason this syntax exists is to make it easy for compilers to  
> easily
> identify problems in regards to object types, i.e. if you're trying  
> to use
> the return value of a function as a MovieClip when it should really  
> be an
> Array, or void. It also makes it easier for you to see what type of  
> value
> the function is returning just by looking at the top of the function
> definition.
>
> - Taka
>
> On Mon, Jul 13, 2009 at 9:07 PM, Karl DeSaulniers  
> wrote:
>
>> Using AS2.
>> When is it best to use the :Void ? and what is the difference  
>> between that
>> and :void ?
>> I have a somewhat understanding of what each are,
>> I am asking more to "you" (The List) as a programers, what is the  
>> best case
>> scenarios to use these things?
>> What are the advantages and why use them if say, your function works
>> without them?
>> I know that the Void is a Boolean, but I also know you cant use it  
>> when the
>> statement returns something.
>> Does this "return" include any of the basics like gotoAndPlay? or  
>> does it
>> literally mean a return(); ???
>>
>> Thanks for any clarification anyone can give me.
>>
>> Best,
>>
>>
>> Karl DeSaulniers
>> Design Drumm
>> http://designdrumm.com
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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

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


Re: [Flashcoders] Getting hypertext to work

2009-07-13 Thread Karl DeSaulniers
Do you have your swf set to access local or network only in the  
publish settings?


If you have your swf set to local only, it will generate this warning  
if you click a web url inside the swf.


HTH

Karl DeSaulniers
Design Drumm
http://designdrumm.com

On Jul 13, 2009, at 11:14 PM, Alan Neilsen wrote:

When I use 'Options' in 'Properties' to apply a link to text in my  
Flash movie (CS4), it works okay when I test the movie, but when I  
create the SWF and try the same thing, it tells me, "Adobe Flash  
player has stopped a potentially unsafe operation." This seems  
strange, because hypertext created in Dreamweaver does not generate  
a "potentially unsafe" warning, so why should it happen in Flash?  
There is no point me changing my Flash Player settings (as advised  
by the warning) because it still won't work for my client's end  
users (who are generally computer-illiterate, and cannot be  
expected to understand about changing Flash Player settings). Is it  
possible to create a hypertext link in Flash CS4 that will just  
work without the need to change Flash Player settings?


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any  
mistransmission. If
you receive this message in error, please immediately delete it and  
all
copies of it from your system, destroy any hard copies of it and  
notify

the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

## 
###
This e-mail message has been scanned for Viruses and Content and  
cleared

by MailMarshal
## 
###

___
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] To Void or not to void?? That is my question..

2009-07-13 Thread Karl DeSaulniers

Thanks for the quick response Taka,

So what contitutes a return?

I have used the :Void on functions that had a gotoAndPlay() inside it  
and it didnt work.

But if I removed the :Void, it did!?!


Karl


On Jul 13, 2009, at 11:18 PM, Taka Kojima wrote:


:Void is AS2, and :void is AS3

The definition of void is "nothingness: the state of nonexistence"...

The syntax of functionName():void{} simply states that the function  
returns

nothing... i.e. there is no return at the end of the function.

Although specifying a :void return type is not necessary in AS3, it is
considered best practice to include it. I believe it will generate  
warnings

if you don't.

In AS2, it really doesn't matter if you do :Void after functions.

The reason this syntax exists is to make it easy for compilers to  
easily
identify problems in regards to object types, i.e. if you're trying  
to use
the return value of a function as a MovieClip when it should really  
be an
Array, or void. It also makes it easier for you to see what type of  
value

the function is returning just by looking at the top of the function
definition.

- Taka

On Mon, Jul 13, 2009 at 9:07 PM, Karl DeSaulniers  
wrote:



Using AS2.
When is it best to use the :Void ? and what is the difference  
between that

and :void ?
I have a somewhat understanding of what each are,
I am asking more to "you" (The List) as a programers, what is the  
best case

scenarios to use these things?
What are the advantages and why use them if say, your function works
without them?
I know that the Void is a Boolean, but I also know you cant use it  
when the

statement returns something.
Does this "return" include any of the basics like gotoAndPlay? or  
does it

literally mean a return(); ???

Thanks for any clarification anyone can give me.

Best,


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] To Void or not to void?? That is my question..

2009-07-13 Thread Taka Kojima
:Void is AS2, and :void is AS3

The definition of void is "nothingness: the state of nonexistence"...

The syntax of functionName():void{} simply states that the function returns
nothing... i.e. there is no return at the end of the function.

Although specifying a :void return type is not necessary in AS3, it is
considered best practice to include it. I believe it will generate warnings
if you don't.

In AS2, it really doesn't matter if you do :Void after functions.

The reason this syntax exists is to make it easy for compilers to easily
identify problems in regards to object types, i.e. if you're trying to use
the return value of a function as a MovieClip when it should really be an
Array, or void. It also makes it easier for you to see what type of value
the function is returning just by looking at the top of the function
definition.

- Taka

On Mon, Jul 13, 2009 at 9:07 PM, Karl DeSaulniers wrote:

> Using AS2.
> When is it best to use the :Void ? and what is the difference between that
> and :void ?
> I have a somewhat understanding of what each are,
> I am asking more to "you" (The List) as a programers, what is the best case
> scenarios to use these things?
> What are the advantages and why use them if say, your function works
> without them?
> I know that the Void is a Boolean, but I also know you cant use it when the
> statement returns something.
> Does this "return" include any of the basics like gotoAndPlay? or does it
> literally mean a return(); ???
>
> Thanks for any clarification anyone can give me.
>
> Best,
>
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Getting hypertext to work

2009-07-13 Thread Alan Neilsen
When I use 'Options' in 'Properties' to apply a link to text in my Flash movie 
(CS4), it works okay when I test the movie, but when I create the SWF and try 
the same thing, it tells me, "Adobe Flash player has stopped a potentially 
unsafe operation." This seems strange, because hypertext created in Dreamweaver 
does not generate a "potentially unsafe" warning, so why should it happen in 
Flash? There is no point me changing my Flash Player settings (as advised by 
the warning) because it still won't work for my client's end users (who are 
generally computer-illiterate, and cannot be expected to understand about 
changing Flash Player settings). Is it possible to create a hypertext link in 
Flash CS4 that will just work without the need to change Flash Player settings?

This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] To Void or not to void?? That is my question..

2009-07-13 Thread Karl DeSaulniers

Using AS2.
When is it best to use the :Void ? and what is the difference between  
that and :void ?

I have a somewhat understanding of what each are,
I am asking more to "you" (The List) as a programers, what is the  
best case scenarios to use these things?
What are the advantages and why use them if say, your function works  
without them?
I know that the Void is a Boolean, but I also know you cant use it  
when the statement returns something.
Does this "return" include any of the basics like gotoAndPlay? or  
does it literally mean a return(); ???


Thanks for any clarification anyone can give me.

Best,


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] for the love of your own personal god... sign up and vote

2009-07-13 Thread Nate Beck
There are a lot of things lacking at the moment.

   - Being able to work with the sound using things like computeSpectrum
   - Creating voice effects
   - Recording the audio to the local machine from the local machine (no
   server)

Just to name a few... the list goes on. Did you read comments on the bug?

Also look at http://www.getmicrophone.com

On Mon, Jul 13, 2009 at 2:57 PM, Eric E. Dolecki  wrote:

> What do you need this access for, where activityLevel wouldn't serve you?
>
> On Mon, Jul 13, 2009 at 5:17 PM, Anthony Pace  >wrote:
>
> > to open the microphone, so we can use computer spectrum, sign up and vote
> > please, please, please, please, please
> >
> > http://bugs.adobe.com/jira/browse/FP-1766
> >
> > I can't believe there are only 85 votes for this; before Adobe takes the
> > request seriously, they will need at least a few thousand IMHO.
> > Why can their server and voip applications do this and our applications
> are
> > not allowed to? because Adobe is trying to prevent competition.
> >
> > I would join a class action lawsuit if anyone wants to get one started.
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> http://ericd.net
> Interactive design and development
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 

Cheers,
Nate

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


Re: [Flashcoders] for the love of your own personal god... sign up and vote

2009-07-13 Thread Eric E. Dolecki
What do you need this access for, where activityLevel wouldn't serve you?

On Mon, Jul 13, 2009 at 5:17 PM, Anthony Pace wrote:

> to open the microphone, so we can use computer spectrum, sign up and vote
> please, please, please, please, please
>
> http://bugs.adobe.com/jira/browse/FP-1766
>
> I can't believe there are only 85 votes for this; before Adobe takes the
> request seriously, they will need at least a few thousand IMHO.
> Why can their server and voip applications do this and our applications are
> not allowed to? because Adobe is trying to prevent competition.
>
> I would join a class action lawsuit if anyone wants to get one started.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] circle menu

2009-07-13 Thread Bob Wohl
Hmmm... I think this would be a tsunami effect on a circular path. Do
some searches on "tsunami AS3 flash", even "osX flash dock" may work
as well.

hth,
B.

On Mon, Jul 13, 2009 at 1:41 PM, Rodrigo Augusto
Guerra wrote:
> thanks Jason, Deepak for the propmt answer on this.
>
> I'll take a look at point.polar. Deepak, my previous menu was the same model
> you sent, like a carousel menu, but this one has to stand still (that's ok)
> and not overlap (this is not ok). I believe that detecting the overlap and
> not allow the overlap when scaled is the tricky part, as we can have
> different sizes for the images that will be loaded in the cicle area.
> Perhaps, limiting the image size helps a little.
> I believe that it would be like the osX dock menu but circular:
> http://jrgraphix.net/research/flash-dock-mx-2004.php
>
>
> I'll keep trying!
>
> thanks!
>
> - Original Message - From: "Merrill, Jason"
> 
> To: "Flash Coders List" 
> Sent: Monday, July 13, 2009 3:49 PM
> Subject: RE: [Flashcoders] circle menu
>
>
  my problems:
 - math envolved to put the loaded images in the "circle" path
 - math to re-arrange the items as new items are added to xml
 - they need some detection to prevent the images from overlapping when
>>
>> loaded or when scaling
>>
>> Point.polar() will easily take care of the first two bullets.  Not sure
>> about the third one, pretty easy on a grid, but that could be tricky
>> given a circular layout.
>>
>>
>> Jason Merrill
>>
>> Bank of  America   Global Learning
>> Shared Services Solutions Development
>>
>> Monthly meetings on the Adobe Flash platform for rich media experiences
>> - join the Bank of America Flash Platform Community
>>
>>
>>
>> ___
>> 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] No MOUSE_UP event when dragged under another sprite

2009-07-13 Thread Alexander Farber
Thank, that was it - stage.addEventListener(...)

Found a good tutorial too:
http://www.flashandmath.com/basic/dragdroptour/dd_tour2.html

Regards
Alex

On Sun, Jul 12, 2009 at 2:59 AM, Andrei Thomaz wrote:
> on mouse down, you could add a listener to stage to MOUSE_UP event, so you
> can be notified when the user releases the mouse. If I understood your
> problem correctly, that should work.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] for the love of your own personal god... sign up and vote

2009-07-13 Thread Anthony Pace
to open the microphone, so we can use computer spectrum, sign up and 
vote please, please, please, please, please


http://bugs.adobe.com/jira/browse/FP-1766

I can't believe there are only 85 votes for this; before Adobe takes the 
request seriously, they will need at least a few thousand IMHO. 

Why can their server and voip applications do this and our applications 
are not allowed to? because Adobe is trying to prevent competition.


I would join a class action lawsuit if anyone wants to get one started.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] circle menu

2009-07-13 Thread Rodrigo Augusto Guerra

thanks Jason, Deepak for the propmt answer on this.

I'll take a look at point.polar. Deepak, my previous menu was the same model 
you sent, like a carousel menu, but this one has to stand still (that's ok) 
and not overlap (this is not ok). I believe that detecting the overlap and 
not allow the overlap when scaled is the tricky part, as we can have 
different sizes for the images that will be loaded in the cicle area. 
Perhaps, limiting the image size helps a little.

I believe that it would be like the osX dock menu but circular:
http://jrgraphix.net/research/flash-dock-mx-2004.php


I'll keep trying!

thanks!

- Original Message - 
From: "Merrill, Jason" 

To: "Flash Coders List" 
Sent: Monday, July 13, 2009 3:49 PM
Subject: RE: [Flashcoders] circle menu



 my problems:
- math envolved to put the loaded images in the "circle" path
- math to re-arrange the items as new items are added to xml
- they need some detection to prevent the images from overlapping when

loaded or when scaling

Point.polar() will easily take care of the first two bullets.  Not sure
about the third one, pretty easy on a grid, but that could be tricky
given a circular layout.


Jason Merrill

Bank of  America   Global Learning
Shared Services Solutions Development

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community



___
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] circle menu

2009-07-13 Thread Merrill, Jason
>>  my problems:
>>- math envolved to put the loaded images in the "circle" path
>>- math to re-arrange the items as new items are added to xml
>>- they need some detection to prevent the images from overlapping when
loaded or when scaling

Point.polar() will easily take care of the first two bullets.  Not sure
about the third one, pretty easy on a grid, but that could be tricky
given a circular layout.


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 



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


Re: [Flashcoders] AS3 loading swf gets resized

2009-07-13 Thread Karl DeSaulniers
You might want to build an "onLoadComplete" function in your class  
that you call and set up a resize param that gets called after the  
file is loaded. Or you could google "ImageLoader" and use that class.  
It is a very nice class that dynamically loads and tracks progress. It  
also  smooths the dynamic image as well.


JAT

Karl

Sent from losPhone

On Jul 13, 2009, at 1:31 PM, noentourage  wrote:

I'm dynamically loading swf's or jpgs in to a loader class that I  
wrote and

it works well with jpgs but
the loaded swf's get resized too large. I tried setting the size of  
the

actual loader but that doesn't change anything.
My loader class takes the following params...

public function
ImageLoader( 
img:String,w:Number,h:Number,sclImg:Boolean,showPrg:Boolean =

true)

img is the file string to load.
w: is the width of the file to load
h: is the height of the file to load
sclImg: Is true or false to scale the image. Set it to true if you  
know the

image is larger than the w & h you pass in.
showPrg: is to show the progress bar or not.

I have a swf that is 700x460 and this contains a MovieClip that I  
scaled
down to fit in these dimensions. The MovieClip contains and embedded  
swf

that originally was built
by someone else at too large of a size (1024x768) to fit my main Flash
movie. It's a frame tween animation so it's going to take too long to
rebuild the original animation which is why I imported it into the  
700x460

fla as a movieclip then scaled it down.

This is a weird behavior so I'm wondering if anyone has had this  
problem or

knows of a simple fix.

Thanks,

-Gerry
___
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 loading swf gets resized

2009-07-13 Thread noentourage
I'm dynamically loading swf's or jpgs in to a loader class that I wrote and
it works well with jpgs but
the loaded swf's get resized too large. I tried setting the size of the
actual loader but that doesn't change anything.
My loader class takes the following params...

public function
ImageLoader(img:String,w:Number,h:Number,sclImg:Boolean,showPrg:Boolean =
true)

img is the file string to load.
w: is the width of the file to load
h: is the height of the file to load
sclImg: Is true or false to scale the image. Set it to true if you know the
image is larger than the w & h you pass in.
showPrg: is to show the progress bar or not.

I have a swf that is 700x460 and this contains a MovieClip that I scaled
down to fit in these dimensions. The MovieClip contains and embedded swf
that originally was built
by someone else at too large of a size (1024x768) to fit my main Flash
movie. It's a frame tween animation so it's going to take too long to
rebuild the original animation which is why I imported it into the 700x460
fla as a movieclip then scaled it down.

This is a weird behavior so I'm wondering if anyone has had this problem or
knows of a simple fix.

Thanks,

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


Re: [Flashcoders] circle menu

2009-07-13 Thread Deepak Sahu
Hi,
if you are looking something(http://facecake.com/) like this, i will say
explore papervision library, also there are tons of example of this on web.

Thanks,
Deepak

On Mon, Jul 13, 2009 at 11:04 AM, Rodrigo Augusto Guerra <
rodr...@alumni.org.br> wrote:

> hi fokls!
>
> my client asked me to change a menu in his site. the new menu has to:
>
> - load X images from a XML and display it in some sort of path (circle)
> - once you rollover the image should get bigger, if rollout it should go
> back to the previous scale (keeping the original position in the circle
> path).
> - the images should not overlap others
> - if you add more images the menu should re-arrange them to fit all
> together.
>
> my problems:
> - math envolved to put the loaded images in the "circle" path
> - math to re-arrange the items as new items are added to xml
> - they need some detection to prevent the images from overlapping when
> loaded or when scaling
>
> any ideas/examples/url's that could help me with this?
> thanks,
> rodrigo.
> ___
> 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] circle menu

2009-07-13 Thread Rodrigo Augusto Guerra
hi fokls!

my client asked me to change a menu in his site. the new menu has to:

- load X images from a XML and display it in some sort of path (circle)
- once you rollover the image should get bigger, if rollout it should go back 
to the previous scale (keeping the original position in the circle path).
- the images should not overlap others
- if you add more images the menu should re-arrange them to fit all together.

my problems:
- math envolved to put the loaded images in the "circle" path
- math to re-arrange the items as new items are added to xml
- they need some detection to prevent the images from overlapping when loaded 
or when scaling

any ideas/examples/url's that could help me with this?
thanks,
rodrigo.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ActionScript 2.0 Modest Maps

2009-07-13 Thread Karl DeSaulniers

Hey there Adrian,
Found this while googling your Modest Maps.

http://getsatisfaction.com/modestmaps

http://lists.mapstraction.com/listinfo.cgi/modestmaps-mapstraction.com

HTH


Karl DeSaulniers
Design Drumm
http://designdrumm.com


On Jul 13, 2009, at 10:47 AM, Adrian MacTaggart wrote:


Hi,

We need to work with Modest Maps (http://modestmaps.com/) using AS  
2.0,

however there's no documenation available (only for AS 3.0).

If anyone has experience using Modest Maps with AS 2.0 and has
documentation, tutorials or other pointers to share it would be much
appreciated.

Many thanks,

Adrian


This message has been scanned for malware by WebSense Mailcontrol  
for the National Maritime Museum, Greenwich

___
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] ActionScript 2.0 Modest Maps

2009-07-13 Thread Adrian MacTaggart
Hi,
 
We need to work with Modest Maps (http://modestmaps.com/) using AS 2.0,
however there's no documenation available (only for AS 3.0).
 
If anyone has experience using Modest Maps with AS 2.0 and has
documentation, tutorials or other pointers to share it would be much
appreciated.
 
Many thanks,
 
Adrian


This message has been scanned for malware by WebSense Mailcontrol for the 
National Maritime Museum, Greenwich
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] CS4 combobox embedded text disappears when disabled

2009-07-13 Thread Margo Powell
Just found the solution for this issue, there is a disabledTexFormat 
setting:


test_cb.setStyle("disabledTextFormat", myFormat);


On 7/13/2009 10:24 AM, Margo Powell wrote:

Glen,
I tried your recommendation and reassigned the dataprovider to the 
combobox after it was disabled and that did not work unfortunately:(
When I am in the debugger, the data appears to be loaded even with out 
reloading the dataprovider. It is almost like there is an alpha 
setting somewhere which is hiding all the text.


It is not obvious to me and I might have to go back to using the 
default text


Thanks for your help
Margo


On 7/13/2009 4:19 AM, Glen Pike wrote:

Hi,

   I had a similar problem in the past where I had to reassign the 
data provider to the combo box - I can't remember exactly what I was 
doing, but something to do with hiding / disabling the box messed up 
the display of embedded fonts, etc.


   Anyway, try that - it might help - hope so.

   Glen

Margo Powell wrote:
I think I am missing something really simple.I have been spinning my 
wheels this afternoon trying to figure out why my embedded text 
disappears when I set my combobox.enabled = false;


If I use default text and disable the combobox, the text appears 
with some alpha effect. If I embed text and disable the combobox , 
the text disappears.




_Scenario using default text:_
To test, I just place a combobox in a flash page. I add a couple of 
items to the combobox and name the combobox test_cb.


test_cb.addEventListener(Event.CHANGE, changeHandler);

function changeHandler(event:Event):void {
  test_cb.enabled = false;
}

Everything works hunky dory. The combobox is disabled AND the 
selected text item is still visible.


_Scenario using embedded text:_

In my library I create a new font (in my case i used arial bold 12) 
and named it ComboFont. Linkage settings to be exported for 
actionscript and in frame 1.


In my actions layer:
// Create a new instance of the Font1 symbol from the document's 
library.

var myFont:Font = new ComboFont();

var myFormat:TextFormat = new TextFormat();
myFormat.font = myFont.fontName;
test_cb.setStyle("embedFonts", true);
test_cb.setStyle("textFormat", myFormat);
// Set dropdown style for comboBox
test_cb.textField.setStyle("embedFonts", true);
test_cb.textField.setStyle("textFormat", myFormat);
test_cb.dropdown.setRendererStyle("embedFonts", true);
test_cb.dropdown.setRendererStyle("textFormat", myFormat);

test_cb.addEventListener(Event.CHANGE, changeHandler);

function changeHandler(event:Event):void {
 
  test_cb.enabled = false;

}

The font looks like it has been embedded, it is much darker.
When the combobox is disabled after an item has been selected, the 
text is NOT visible.


I would appreciate any help!

Thanks
Margo

 



___
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
  



--
Margo Powell
Applications Analyst
MS Computer Science
Department of Nutrition
University of North Carolina at Chapel Hill
800 Eastowne Dr, Suite 100
Chapel Hill, NC 27514
919-408-3320 ext 30
margo_pow...@unc.edu

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


Re: [Flashcoders] CS4 combobox embedded text disappears when disabled

2009-07-13 Thread Margo Powell

Glen,
I tried your recommendation and reassigned the dataprovider to the 
combobox after it was disabled and that did not work unfortunately:(
When I am in the debugger, the data appears to be loaded even with out 
reloading the dataprovider. It is almost like there is an alpha setting 
somewhere which is hiding all the text.


It is not obvious to me and I might have to go back to using the default 
text


Thanks for your help
Margo


On 7/13/2009 4:19 AM, Glen Pike wrote:

Hi,

   I had a similar problem in the past where I had to reassign the 
data provider to the combo box - I can't remember exactly what I was 
doing, but something to do with hiding / disabling the box messed up 
the display of embedded fonts, etc.


   Anyway, try that - it might help - hope so.

   Glen

Margo Powell wrote:
I think I am missing something really simple.I have been spinning my 
wheels this afternoon trying to figure out why my embedded text 
disappears when I set my combobox.enabled = false;


If I use default text and disable the combobox, the text appears with 
some alpha effect. If I embed text and disable the combobox , the 
text disappears.




_Scenario using default text:_
To test, I just place a combobox in a flash page. I add a couple of 
items to the combobox and name the combobox test_cb.


test_cb.addEventListener(Event.CHANGE, changeHandler);

function changeHandler(event:Event):void {
  test_cb.enabled = false;
}

Everything works hunky dory. The combobox is disabled AND the 
selected text item is still visible.


_Scenario using embedded text:_

In my library I create a new font (in my case i used arial bold 12) 
and named it ComboFont. Linkage settings to be exported for 
actionscript and in frame 1.


In my actions layer:
// Create a new instance of the Font1 symbol from the document's 
library.

var myFont:Font = new ComboFont();

var myFormat:TextFormat = new TextFormat();
myFormat.font = myFont.fontName;
test_cb.setStyle("embedFonts", true);
test_cb.setStyle("textFormat", myFormat);
// Set dropdown style for comboBox
test_cb.textField.setStyle("embedFonts", true);
test_cb.textField.setStyle("textFormat", myFormat);
test_cb.dropdown.setRendererStyle("embedFonts", true);
test_cb.dropdown.setRendererStyle("textFormat", myFormat);

test_cb.addEventListener(Event.CHANGE, changeHandler);

function changeHandler(event:Event):void {
 
  test_cb.enabled = false;

}

The font looks like it has been embedded, it is much darker.
When the combobox is disabled after an item has been selected, the 
text is NOT visible.


I would appreciate any help!

Thanks
Margo



___
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



--
Margo Powell
Applications Analyst
MS Computer Science
Department of Nutrition
University of North Carolina at Chapel Hill
800 Eastowne Dr, Suite 100
Chapel Hill, NC 27514
919-408-3320 ext 30
margo_pow...@unc.edu

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


RE: [Flashcoders] understanding a simpe statement

2009-07-13 Thread Cor
if (mc.scaleX < mc.scale){
 mc.scaleY = mc.scaleX
} else{
 mc.scaleX = mc.scaleY;
}

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Isaac Alves
Sent: maandag 13 juli 2009 16:04
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] understanding a simpe statement

Hello fellows.

I know it probably sounds dumb , but I'm having a hard time understanding
this statement

mc.scaleX < mc.scaleY ? mc.scaleY = mc.scaleX : mc.scaleX = mc.scaleY;


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


Re: [Flashcoders] understanding a simpe statement 2

2009-07-13 Thread Glen Pike

Hi,

   They are both statements using the "ternary operator" - you had the 
right idea in your prevouse email.


   
http://www.google.co.uk/search?hl=en&q=actionscript+ternary+operator&btnG=Google+Search&meta=&aq=0&oq=actionscript+tern


   Basically it reads (If the condition before the qestion mark is 
true) ? do this : otherwise do that;
  
   It is often better to write out your ternary statement with brackets 
because it helps make it a bit clearer.


   Something like this:

   maxH = (maxH == 0) ? maxW : maxH;

   Glen

Isaac Alves wrote:

I would like to understand that one too:

maxH = maxH == 0 ? maxW : maxH;

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


  


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


RE: [Flashcoders] understanding a simpe statement 2

2009-07-13 Thread Cor
If maxH is equal to 0 then set maxH to maxW else to maxH.



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Isaac Alves
Sent: maandag 13 juli 2009 16:06
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] understanding a simpe statement 2

I would like to understand that one too:

maxH = maxH == 0 ? maxW : maxH;

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

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


[Flashcoders] understanding a simpe statement

2009-07-13 Thread Isaac Alves
Hello fellows.

I know it probably sounds dumb , but I'm having a hard time understanding
this statement

mc.scaleX < mc.scaleY ? mc.scaleY = mc.scaleX : mc.scaleX = mc.scaleY;

Would that mean something like:

if (mc.scaleX < mc.scale){
 mc.scaleY = mc.scaleX
} else if if (mc.scaleX > mc.scale){
 mc.scaleX = mc.scaleY;
}

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


[Flashcoders] understanding a simpe statement 2

2009-07-13 Thread Isaac Alves
I would like to understand that one too:

maxH = maxH == 0 ? maxW : maxH;

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


Re: [Flashcoders] understanding a simpe statement 2

2009-07-13 Thread Sidney de Koning

Hi Isaac,

This will help you: 
http://snipplr.com/view/15019/shorthand-code-for-assigning-a-value/

Cheers,

Sidney de Koning

On Jul 13, 2009, at 4:06 PM, Isaac Alves wrote:


I would like to understand that one too:

maxH = maxH == 0 ? maxW : maxH;

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


Sidney de Koning - be a geek, in rockstar style!
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com

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


Re: [Flashcoders] CS4 combobox embedded text disappears when disabled

2009-07-13 Thread Glen Pike

Hi,

   I had a similar problem in the past where I had to reassign the data 
provider to the combo box - I can't remember exactly what I was doing, 
but something to do with hiding / disabling the box messed up the 
display of embedded fonts, etc.


   Anyway, try that - it might help - hope so.

   Glen

Margo Powell wrote:
I think I am missing something really simple.I have been spinning my 
wheels this afternoon trying to figure out why my embedded text 
disappears when I set my combobox.enabled = false;


If I use default text and disable the combobox, the text appears with 
some alpha effect. If I embed text and disable the combobox , the text 
disappears.




_Scenario using default text:_
To test, I just place a combobox in a flash page. I add a couple of 
items to the combobox and name the combobox test_cb.


test_cb.addEventListener(Event.CHANGE, changeHandler);

function changeHandler(event:Event):void {
  test_cb.enabled = false;
}

Everything works hunky dory. The combobox is disabled AND the selected 
text item is still visible.


_Scenario using embedded text:_

In my library I create a new font (in my case i used arial bold 12) 
and named it ComboFont. Linkage settings to be exported for 
actionscript and in frame 1.


In my actions layer:
// Create a new instance of the Font1 symbol from the document's library.
var myFont:Font = new ComboFont();

var myFormat:TextFormat = new TextFormat();
myFormat.font = myFont.fontName;
test_cb.setStyle("embedFonts", true);
test_cb.setStyle("textFormat", myFormat);
// Set dropdown style for comboBox
test_cb.textField.setStyle("embedFonts", true);
test_cb.textField.setStyle("textFormat", myFormat);
test_cb.dropdown.setRendererStyle("embedFonts", true);
test_cb.dropdown.setRendererStyle("textFormat", myFormat);

test_cb.addEventListener(Event.CHANGE, changeHandler);

function changeHandler(event:Event):void {
 
  test_cb.enabled = false;

}

The font looks like it has been embedded, it is much darker.
When the combobox is disabled after an item has been selected, the 
text is NOT visible.


I would appreciate any help!

Thanks
Margo



___
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