Re: [Flashcoders] setTimeout / clearTimeout

2009-07-03 Thread -whispers-
not sure...maybe because setTimeout() was an undocumented function??
  - Original Message - 
  From: Glen Pike 
  To: Flash Coders List 
  Sent: Friday, July 03, 2009 7:02 AM
  Subject: [Flashcoders] setTimeout / clearTimeout


  Hi,

  I have some old AS2 stuff where I have used setTimeout and 
  clearTimeout in timeline script no problem, but as soon as I try to use 
  these in a class I am getting compiler errors saying the functions are 
  not defined.

  Any reason this would happen?  Compiling for Flash 8 AS2 with a 
  mixture of timeline (yuck) and class code.

  Glen
  ___
  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] Projector "Serial Number" protection

2009-06-06 Thread -whispers-
Northcode is a REALLY great guy..  very helpful..and will see you through 'til 
the end with help..

You can also post on the SWF Studio forum..or find him as a moderator at 
www.flashkit.com forums
  - Original Message - 
  From: [Amer] 
  To: Flash Coders List 
  Sent: Saturday, June 06, 2009 5:37 PM
  Subject: Re: [Flashcoders] Projector "Serial Number" protection


  if you are looking for robust and stable , really stable solution , forget
  about Zinc , use Northcode SWF Studio and you will thank me later for this
  advice .
  I am a user of Flash Projectors for more than six years , I've tried the
  most known : ScreenWeaver (now dead) , ScreenTime mProjector , Zinc,  and
  SWFStudio .  believe me you will never find a tool like Northcode one , and
  the support is outstanding too.  I'm a registered user since 2005 (after
  leaving Zinc) and I'm very happy till now .  they are amazing and very
  helpfull .  just spend an hour reading the forums and you will see how the
  folks are happy there.

  regards.




  On Sun, Jun 7, 2009 at 1:10 AM, Ian Thomas  wrote:

  > You could try Northcode's SWFStudio.
  >
  > http://www.northcode.com/
  >
  > Ian
  >
  > On Sat, Jun 6, 2009 at 6:07 PM, Ktu
  > wrote:
  > > I think the only other options are AIR, and Titanium<
  > http://titaniumapp.com/>
  > >
  > > On Sat, Jun 6, 2009 at 7:00 AM, Kevin Bath 
  > wrote:
  > >
  > >> Shame - it has some great functionality.
  > >>
  > >> Is there a more stable alternative 'wrapper' that anyone can recommend?
  > ___
  > Flashcoders mailing list
  > Flashcoders@chattyfig.figleaf.com
  > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  >



  -- 
  Amer
  ___
  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] AS2 setInterval/sendAndLoad issues with Mac Safari3.2.3

2009-05-28 Thread whispers
Without knowing more.. Cant be sure...

But I would says this DOES NOT make sense..

 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew
Sinning
Sent: Thursday, May 28, 2009 9:00 AM
To: Flash Coders
Subject: [Flashcoders] AS2 setInterval/sendAndLoad issues with Mac
Safari3.2.3

A partner we are working with explains that the reason a project wasn't
working under Mac with Safari 3.2.3 was because setInterval was interrupting
sendAndLoad calls.  Is this a known bug?

They are working around this by using a movieClip instead of setInterval.
Does this make sense?
___
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] loading images in a circle format..

2009-04-22 Thread whispers
Seems like a carousel project to me?

Have you checked out www.gotoandlearn.com 

There are many parameters 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Rodrigo
Augusto Guerra
Sent: Wednesday, April 22, 2009 12:11 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] loading images in a circle format..

hi all...

I got a request to load some images in a circle format and once you click
one image, it goes to the front.

the final layout will be like this:
www.alumni.org.br/tmp/rodrigo/modelo.gif

my doubt is, how to divide the circle in X equally pieces

the logic I'm thinking:

divide the circle degree (360º) in X (X = number of images), then I'll get
the postions to load the images

then load each image in the X position, and as the reg. point is left/top by
default I would have to horizontal center the loaded image in the X/Y
position.

when the user clocks on a image that is not the front one it will swap with
the image clicked, bringing the new image to the front.

but this works only if I use degrees like:

if I have 360º / 6 images, I'll get each image at 60º.

how discover each 60º to load the image at that point and convert it to a
x/y coordinate?? 

but this is my logic, of course if you guys have a better suggestion to do
the same thing, I 'would like to know.


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


RE: [Flashcoders] FlexBuilder is free for the unemployed.

2009-04-16 Thread whispers
The trial version will work for 60 days

That's what you get.no? 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John
McCormack
Sent: Thursday, April 16, 2009 11:26 AM
To: Flash Coders List
Subject: [Flashcoders] FlexBuilder is free for the unemployed.

Old news?

https://freeriatools.adobe.com/learnflex/

Well done Adobe.

John

___
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] include directive ...

2009-03-06 Thread whispers
:P

Oh..and P.O.S. = Piece of .  ;) 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Joel
Stransky
Sent: Friday, March 06, 2009 2:14 PM
To: Flash Coders List
Subject: Re: [Flashcoders] include directive ...

I was the exact same way Taka until I started using FD. So many things that
speed up development it's no contest.

On Fri, Mar 6, 2009 at 3:00 PM, Taka Kojima  wrote:

> Keep it on the timeline, don't switch to external AS files unless you 
> want to give yourself suicide thoughts ;)
>
> If you wanted to switch over to using classes, that's a different 
> story, but for only 10-30 lines per movieclip on the timeline, I'd say 
> just keep going with how you're doing it. It is working right?
>
> In terms of the Flash AS editor -- I agree, it is a POS, but I set my 
> own color scheme and everything so mine's all tricked out and it's not 
> half as bad as it is with default settings ;)
>
> - Taka
>
> On Fri, Mar 6, 2009 at 11:34 AM, Joel Stransky 
> 
> wrote:
> > Hahaha. FlashDevelop pwns you!
> >
> > On Fri, Mar 6, 2009 at 1:55 PM, whispers 
> wrote:
> >
> >> P.O.S. Actions panel 4 LIFE!!!
> >>
> >>
> >> :)
> >>
> >> -Original Message-
> >> From: flashcoders-boun...@chattyfig.figleaf.com
> >> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of 
> >> Joel Stransky
> >> Sent: Friday, March 06, 2009 11:58 AM
> >> To: Flash Coders List
> >> Subject: Re: [Flashcoders] include directive ...
> >>
> >> Technically, Yes, it's the exact same thing. include merely allows 
> >> you
> use
> >> an external text editor instead of the p.o.s. actions panel.
> >>
> >>
> >> On Wed, Mar 4, 2009 at 10:27 PM, Paul Andrews 
> wrote:
> >>
> >> > The include directive is just plain text inclusion from an 
> >> > external
> >> source.
> >> > Once included it's as though it were inline.
> >> >
> >> > I think that if you are using the timeline and having lots of 
> >> > includes all over the place to replace all of the inline code, it 
> >> > would be a nightmare to work out what's going on.
> >> >
> >> > I rarely use the include directive. Better to use classes.
> >> >
> >> > Paul
> >> >
> >> >
> >> > - Original Message - From: "SJF" 
> >> > To: 
> >> > Sent: Thursday, March 05, 2009 2:37 AM
> >> > Subject: [Flashcoders] include directive ...
> >> >
> >> >
> >> >
> >> >  Looking for clarity on the include directive in a CS3 FLA file.
> >> >>
> >> >> Technically, does anyone know if pound-for-pound, having code on 
> >> >> a movieclip's timeline is EXACTLY the same as having it's code 
> >> >> in an external .as file and using the include directive?
> >> >>
> >> >> Here are more details:
> >> >>
> >> >> 1) The code being externalised contains imports, variable 
> >> >> declarations, numerous functions and runtime code (approx. 
> >> >> 150-250 lines of code)
> >> >> 2) The movieclip is dynamic and created on the fly by the 
> >> >> application, putting the movieclip within various other 
> >> >> movieclips deep in the display stack
> >> >> 3) Multiple other movieclips (approx. 30) also contain code with 
> >> >> imports, variable declarations, functions and runtime code
> >> >>
> >> >> So the question I ask:
> >> >>
> >> >> Is it technically possible to externalise all code in a CS3 FLA 
> >> >> document by exporting all code from all timelines and using the 
> >> >> include directive?
> >> >>
> >> >> Are there issues with instantiation of objects/classes or 
> >> >> problems with import paths, etc?
> >> >>
> >> >> Thoughts?
> >> >> ___
> >> >> Flashcoders mailing list
> >> >> Flashcoders@chattyfig.figleaf.com 
> >> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >> >>
> >> >
> >> > ___
> >> > Flashcoders mailing list
> >> >

RE: [Flashcoders] include directive ...

2009-03-06 Thread whispers
P.O.S. Actions panel 4 LIFE!!!


:) 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Joel
Stransky
Sent: Friday, March 06, 2009 11:58 AM
To: Flash Coders List
Subject: Re: [Flashcoders] include directive ...

Technically, Yes, it's the exact same thing. include merely allows you use
an external text editor instead of the p.o.s. actions panel.


On Wed, Mar 4, 2009 at 10:27 PM, Paul Andrews  wrote:

> The include directive is just plain text inclusion from an external
source.
> Once included it's as though it were inline.
>
> I think that if you are using the timeline and having lots of includes 
> all over the place to replace all of the inline code, it would be a 
> nightmare to work out what's going on.
>
> I rarely use the include directive. Better to use classes.
>
> Paul
>
>
> - Original Message - From: "SJF" 
> To: 
> Sent: Thursday, March 05, 2009 2:37 AM
> Subject: [Flashcoders] include directive ...
>
>
>
>  Looking for clarity on the include directive in a CS3 FLA file.
>>
>> Technically, does anyone know if pound-for-pound, having code on a 
>> movieclip's timeline is EXACTLY the same as having it's code in an 
>> external .as file and using the include directive?
>>
>> Here are more details:
>>
>> 1) The code being externalised contains imports, variable 
>> declarations, numerous functions and runtime code (approx. 150-250 
>> lines of code)
>> 2) The movieclip is dynamic and created on the fly by the 
>> application, putting the movieclip within various other movieclips 
>> deep in the display stack
>> 3) Multiple other movieclips (approx. 30) also contain code with 
>> imports, variable declarations, functions and runtime code
>>
>> So the question I ask:
>>
>> Is it technically possible to externalise all code in a CS3 FLA 
>> document by exporting all code from all timelines and using the 
>> include directive?
>>
>> Are there issues with instantiation of objects/classes or problems 
>> with import paths, etc?
>>
>> Thoughts?
>> ___
>> 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
>



--
--Joel Stransky
stranskydesign.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] MovieClip Opacity

2009-02-04 Thread -whispers-
are you embedding the fonts?
  - Original Message - 
  From: K-Dawg 
  To: Flash Coders List 
  Sent: Wednesday, February 04, 2009 6:10 PM
  Subject: [Flashcoders] MovieClip Opacity


  Hi,

  I am adding a jpg and two text boxes to a movieClip.  I am then changing the
  opacity on a timer to fade in, and fade out.  The jpg fades in and out just
  fine but the text boxes stay, so the whole image fades out and the text
  remains until it switches as the next set comes on screen.

  Is there anything I need to do to make the text get affected by the alpha
  change?

  Thanks.

  Kevin
  ___
  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] change the origin of rotation for a movieclip?

2009-01-13 Thread whispers
Jack = class act.

 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jack Doyle
Sent: Tuesday, January 13, 2009 3:38 PM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] change the origin of rotation for a movieclip?

I know we're dropping this topic, but I wanted to chime in one last time and
apologize for my original post causing some drama. I didn't mean it as a
product pitch at all, but I can see how it might come across that way. I had
just written something that I thought solved exactly the problem that was
being discussed, and I was excited to make you aware of it in the hopes it
would be helpful. I do choose to make a few things membership benefits of
Club GreenSock as a way of giving back to those who support my efforts, but
most of my stuff is out there for anyone to look at and use. Like JC said, I
was just trying to give you an option, but looking back on it, I should have
offered a more thorough explanation. My bad. I'll think twice before
mentioning similar solutions next time.

Jack

-Original Message-
From: Anthony Pace [mailto:anthony.p...@utoronto.ca]
Sent: Tuesday, January 13, 2009 1:36 PM
To: Flash Coders List
Subject: Re: [Flashcoders] change the origin of rotation for a movieclip?

It a coder forum... not a pitch my product forum.  People like you need to
relax.

Hans Wichman wrote:
> Load of bull period.
>
>   
>> "Hi I have a problem I need solved"
>> 
> <"Hi I have a product that solves it, I invested thousands of hours in it"
>   
>> "WHAT I CANT GET IT FOR FREE, HOW DARE YOU???"
>> 
> He was telling you exactly how to solve it, it involved a good product.
> That's not telling you you should buy it, he's giving you an option.
>
> Was "Thanks Jack for your elaborate answer, but I'd appreciate some 
> clues how to solve this myself" too much trouble?
> I'm amazed he even took the time to write a second answer instead of
'screw
> you' so cheers to Jack, who has to read you 'appreciate his answer' 
> only through a post where you get told off for being rude in the first 
> place since you couldn't take the time to thank him normally?
>
> Anywayz this is not about sticking up for Jack I'm sure he is quite
capable
> of that himself, it's about list etiquette, that no matter what 
> someone answers, he/she is investing time at that moment to help you 
> solve your problem, and in my opinion that always deserves some 
> respect/gratitude instead of some shitty reply.
>
>
> On Tue, Jan 13, 2009 at 7:06 PM, Anthony Pace
wrote:
>
>   
>> When someone is telling you to buy their product or a purchase a
membership
>> to their club, it is not a real answer.
>>
>> As I said, I appreciated his second answer, where he actually gave 
>> information about how to accomplish it on my own.
>>
>>
>> allandt bik-elliott (thefieldcomic.com) wrote:
>>
>> 
>>> i thought it was so rude that you were being sarcastic
>>>
>>> On Tue, Jan 13, 2009 at 9:17 AM, Hans Wichman < 
>>> j.c.wich...@objectpainters.com> wrote:
>>>
>>>
>>>
>>>   
 What I don't understand is that someone takes the time to write an 
 elaborate answer and you have the nerve to reply with "how about a 
 real answer", some attitude dude. Although noone seems to take 
 offense, it's a one way
trip
 to
 my ignore list.


 On Mon, Jan 12, 2009 at 9:24 PM, Anthony Pace 
 >>>

 
> wrote:
>  How about a real answer?
>
>
> Jack Doyle wrote:
>
>
>
>   
>> There's a new plugin for TweenLite/Max that'll cause 
>> transformation
>> (rotation/scale) tweens to occur around any point, so it'll be as
easy
>>
>>
>> 
> as:
>   
 
> TweenLite.to(mc, 2, {transformAroundPoint:{point:new Point(100, 
> 100),
>   
>> rotation:85}});
>>
>> Or if you want to use the center of the object as its origin, you
could
>> simply do:
>>
>> TweenLite.to(mc, 2, {transformAroundCenter:{rotation:80}});
>>
>> It works for the scale too, like:
>>
>> TweenLite.to(mc, 2, {transformAroundCenter:{scaleX:1.5, scaleY:2, 
>> rotation:-70}});
>>
>> NOTE: The plugin is a membership benefit of Club GreenSock.
>>
>> You can see an interactive demo at
>>
>>
>> 
> http://blog.greensock.com/sneak-peek/
>   
 
> (scroll all the way down in the list of plugins - they're at the
bottom
>   
>> 
> -
>   
 
> click "example"). For those of you who are wondering "what's this
>   
>> 
> 'plugin'
>   
 
> talk with TweenLite - I didn't know there were any plugins!", it's 
> a
new
>   
>> feature that's part of a big update I'm rolling out soon. It adds
lot

RE: [Flashcoders] change the origin of rotation for a movieclip?

2009-01-13 Thread whispers
Well I think you have accepted a level of responsibility and have conducted
yourslef in a very mature and classy manner, after the fact.. If it makes
any difference..  Many would have just fought tooth & nail...and let the
communication degrade.

Take care.. 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
Sent: Tuesday, January 13, 2009 2:16 PM
To: Flash Coders List
Subject: Re: [Flashcoders] change the origin of rotation for a movieclip?

You were right and I let my frustration get the better of me.  I apologize.

whispers wrote:
> You could have stated, you wanted to learn how to do it yourself and 
> weren't interested ina 'turn-key' type solution that he originally
provided.
>
>  
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of 
> Anthony Pace
> Sent: Tuesday, January 13, 2009 1:56 PM
> To: Flash Coders List
> Subject: Re: [Flashcoders] change the origin of rotation for a movieclip?
>
> How would you like it if you asked a question about code and someone 
> told you to buy a product?  Although your answer will probably be in 
> line with what you have said in the past, I truly believe you might be 
> a bit perturbed; considering you are apparently easily perturbed.
> Answering a question with a sales pitch is not an answer.
>
> We only ever advance and grow mentally in life, as a society, if 
> concepts and knowledge remain open to the public to consume.  Where 
> would calculus be if Leibniz hadn't published and disseminated his 
> information freely?  Newton said he stood on the shoulders of giants, 
> so why do you take offence to my wanting to learn?
>
> Working at triMM I would figure that you would have an open 
> philosophy; yet, perhaps I am wrong.
>
> Anthony Pace wrote:
>   
>> It a coder forum... not a pitch my product forum.  People like you 
>> need to relax.
>>
>> Hans Wichman wrote:
>> 
>>> Load of bull period.
>>>
>>>  
>>>   
>>>> "Hi I have a problem I need solved"
>>>> 
>>>> 
>>> <"Hi I have a product that solves it, I invested thousands of hours 
>>> in it"
>>>  
>>>   
>>>> "WHAT I CANT GET IT FOR FREE, HOW DARE YOU???"
>>>> 
>>>> 
>>> He was telling you exactly how to solve it, it involved a good product.
>>> That's not telling you you should buy it, he's giving you an option.
>>>
>>> Was "Thanks Jack for your elaborate answer, but I'd appreciate some 
>>> clues how to solve this myself" too much trouble?
>>> I'm amazed he even took the time to write a second answer instead of 
>>> 'screw you' so cheers to Jack, who has to read you 'appreciate his 
>>> answer' only through a post where you get told off for being rude in 
>>> the first place since you couldn't take the time to thank him 
>>> normally?
>>>
>>> Anywayz this is not about sticking up for Jack I'm sure he is quite 
>>> capable of that himself, it's about list etiquette, that no matter 
>>> what someone answers, he/she is investing time at that moment to 
>>> help you solve your problem, and in my opinion that always deserves 
>>> some respect/gratitude instead of some shitty reply.
>>>
>>>
>>> On Tue, Jan 13, 2009 at 7:06 PM, Anthony Pace
>>> wrote:
>>>
>>>  
>>>   
>>>> When someone is telling you to buy their product or a purchase a 
>>>> membership to their club, it is not a real answer.
>>>>
>>>> As I said, I appreciated his second answer, where he actually gave 
>>>> information about how to accomplish it on my own.
>>>>
>>>>
>>>> allandt bik-elliott (thefieldcomic.com) wrote:
>>>>
>>>>
>>>> 
>>>>> i thought it was so rude that you were being sarcastic
>>>>>
>>>>> On Tue, Jan 13, 2009 at 9:17 AM, Hans Wichman < 
>>>>> j.c.wich...@objectpainters.com> wrote:
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>   
>>>>>> What I don't understand is that someone takes the time to write 
>>>>>> an elaborate answer and you have the nerve to reply with "how 
>>>>>> 

RE: [Flashcoders] change the origin of rotation for a movieclip?

2009-01-13 Thread whispers
You could have stated, you wanted to learn how to do it yourself and weren't
interested ina 'turn-key' type solution that he originally provided.

 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
Sent: Tuesday, January 13, 2009 1:56 PM
To: Flash Coders List
Subject: Re: [Flashcoders] change the origin of rotation for a movieclip?

How would you like it if you asked a question about code and someone told
you to buy a product?  Although your answer will probably be in line with
what you have said in the past, I truly believe you might be a bit
perturbed; considering you are apparently easily perturbed.  
Answering a question with a sales pitch is not an answer.

We only ever advance and grow mentally in life, as a society, if concepts
and knowledge remain open to the public to consume.  Where would calculus be
if Leibniz hadn't published and disseminated his information freely?  Newton
said he stood on the shoulders of giants, so why do you take offence to my
wanting to learn?

Working at triMM I would figure that you would have an open philosophy; yet,
perhaps I am wrong.

Anthony Pace wrote:
> It a coder forum... not a pitch my product forum.  People like you 
> need to relax.
>
> Hans Wichman wrote:
>> Load of bull period.
>>
>>  
>>> "Hi I have a problem I need solved"
>>> 
>> <"Hi I have a product that solves it, I invested thousands of hours 
>> in it"
>>  
>>> "WHAT I CANT GET IT FOR FREE, HOW DARE YOU???"
>>> 
>> He was telling you exactly how to solve it, it involved a good product.
>> That's not telling you you should buy it, he's giving you an option.
>>
>> Was "Thanks Jack for your elaborate answer, but I'd appreciate some 
>> clues how to solve this myself" too much trouble?
>> I'm amazed he even took the time to write a second answer instead of 
>> 'screw you' so cheers to Jack, who has to read you 'appreciate his 
>> answer' only through a post where you get told off for being rude in 
>> the first place since you couldn't take the time to thank him 
>> normally?
>>
>> Anywayz this is not about sticking up for Jack I'm sure he is quite 
>> capable of that himself, it's about list etiquette, that no matter 
>> what someone answers, he/she is investing time at that moment to help 
>> you solve your problem, and in my opinion that always deserves some 
>> respect/gratitude instead of some shitty reply.
>>
>>
>> On Tue, Jan 13, 2009 at 7:06 PM, Anthony Pace
>> wrote:
>>
>>  
>>> When someone is telling you to buy their product or a purchase a 
>>> membership to their club, it is not a real answer.
>>>
>>> As I said, I appreciated his second answer, where he actually gave 
>>> information about how to accomplish it on my own.
>>>
>>>
>>> allandt bik-elliott (thefieldcomic.com) wrote:
>>>
>>>
 i thought it was so rude that you were being sarcastic

 On Tue, Jan 13, 2009 at 9:17 AM, Hans Wichman < 
 j.c.wich...@objectpainters.com> wrote:



  
> What I don't understand is that someone takes the time to write an 
> elaborate answer and you have the nerve to reply with "how about a 
> real answer", some attitude dude. Although noone seems to take 
> offense, it's a one way trip to my ignore list.
>
>
> On Mon, Jan 12, 2009 at 9:24 PM, Anthony Pace 
> 
>
>
>> wrote:
>>  How about a real answer?
>>
>>
>> Jack Doyle wrote:
>>
>>
>>
>>  
>>> There's a new plugin for TweenLite/Max that'll cause 
>>> transformation
>>> (rotation/scale) tweens to occur around any point, so it'll be 
>>> as easy
>>>
>>>
>>> 
>> as:
>>   
>
>> TweenLite.to(mc, 2, {transformAroundPoint:{point:new Point(100, 
>> 100),
>>  
>>> rotation:85}});
>>>
>>> Or if you want to use the center of the object as its origin, 
>>> you could simply do:
>>>
>>> TweenLite.to(mc, 2, {transformAroundCenter:{rotation:80}});
>>>
>>> It works for the scale too, like:
>>>
>>> TweenLite.to(mc, 2, {transformAroundCenter:{scaleX:1.5, 
>>> scaleY:2, rotation:-70}});
>>>
>>> NOTE: The plugin is a membership benefit of Club GreenSock.
>>>
>>> You can see an interactive demo at
>>>
>>>
>>> 
>> http://blog.greensock.com/sneak-peek/
>>   
>
>> (scroll all the way down in the list of plugins - they're at the 
>> bottom
>>  
>>> 
>> -
>>   
>
>> click "example"). For those of you who are wondering "what's this
>>  
>>> 
>> 'plugin'
>>   
>
>> talk with TweenLite - I didn't know there were any plugins!", 
>> it's a new
>>  
>>> feature that's part of a big update I'm rolling

RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-13 Thread whispers
Hey Glen- 

thanks for the response.. 


I actually figured it out.. It was the threshold that was OFF after loading
in a larger image 

//original
//_BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height), new
Point(0, 0), "<", 0x, 0x00FF);

//new 
_BMP.threshold(_BMP, new Rectangle(0,0,
contentContainer.faceContainer.centeredContainer._width,
contentContainer.faceContainer.centeredContainer._height), new Point(0,0),
"<", 0x, 0x00FF);

I figured it was something minor in the either the threshold or the
matrix.translate portion.. But I just could put my finger on it.

Thank guys.



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike
Sent: Tuesday, January 13, 2009 12:50 PM
To: Flash Coders List
Subject: Re: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

Hi,

It's a long shot, but without looking into your code too much, what
happens if you load a 1440 x 1440 image and don't rotate it in anyway - does
it break?
   
If that does not break, try loading in a 1441 x 1441 image - does this
break?

Not sure if the centering the image inside another clip causes problems
with the actual display area going over 2880, but the 1500 x 1500 size
sounds pretty close to 2880 / 2, so it could be something to do with that.

Maybe the mask position is wrapping around because you are going over
the limit - again, it's a long shot, but try finding out what dimensions
break it??

Like I said, it's a long shot, but could be an idea...
   
Glen
   

-whispers- wrote:
> Nope, it is not...
>
> the images that seems to break the application is 1500x1500.. while 
> other (smaller) images around 550x450 seem to work fine quick overview:
>
> A.) contentContainer
> B.) |-faceContainer
> C.) |--lineContainer (where I drawmy
lineTo() shape to be used as the base of my invertedMask function)
> D.) |--maskContainer (where the actual
invertedMask is created with the function I provided/am using)
> E.) |--centeredContainer (where the
image is loaded into)
>
> faceContainer X/Y is centered is the absolute middle of the display 
> area all child clips of faceContainer (clips C-E above) are then off set
by height & width /2..  so that when I scale or rotate faceContainer.. all
child clips scale from the 'center'..
>
> when I load in ANY image.. I check its height..and if bigger than my
display area.. I scale it down...
>
> again this works fine is I load in a smaller image...
> the only code is 1 (one) function.. (13 lines only) that 
> breaks when the image loaded is over a certain size (I believe sets 
> the X/Y to a negative number, beyond zero)
>
> this is the function in question:
>
> INVERSED MASK: ( mc = contentContainer.faceContainer.lineContainer)
>  
> //- [reverse mask code] - // 
> function inverseMask(mc:MovieClip) {
>  contentContainer.faceContainer.centeredContainer.cacheAsBitmap =
true;
>  var _BMP:BitmapData = new
BitmapData(contentContainer.faceContainer.centeredContainer._width,
contentContainer.faceContainer.centeredContainer._height, true, 0x);
>  var invert:ColorTransform = new ColorTransform(0, 0, 0, 1);
>  var matrix:Matrix = new Matrix(); 
>  matrix.translate(0, 0);
>
>  //matrix.translate(mc._x, mc._y);  //doesnt work
>
//matrix.translate(contentContainer.faceContainer.centeredContainer._x,
contentContainer.faceContainer.centeredContainer._y); //doesnt work
>  //matrix.identity(); 
> 
> //matrix.scale(contentContainer.faceContainer.centeredContainer._xscal
> e, contentContainer.faceContainer.centeredContainer._yscale);
>
>  _BMP.draw(mc, matrix, invert);
>  _BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height),
new Point(0, 0), "<", 0x, 0x00FF);
>  var BMP:BitmapData = _BMP.clone();
>  var maskMC:MovieClip =
contentContainer.faceContainer.maskContainer.createEmptyMovieClip("invertedM
ask", contentContainer.faceContainer.maskContainer.getNextHighestDepth());
>  maskMC.attachBitmap(BMP,
contentContainer.faceContainer.maskContainer.getNextHighestDepth());
>  maskMC.cacheAsBitmap = true;
>  mc._visible = false;
>  return maskMC;
> }
>
>
> thanks to anyone that even point me in the right direction on debugging...
>
>   - Original Message - 
>   From: Jason Van Pelt 
>   To: Flash Coders List 
>   Sent: Monday, January 12, 2009 4:20 PM
>   Subject: RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. 
>

Re: [Flashcoders] change the origin of rotation for a movieclip?

2009-01-12 Thread -whispers-
For what its worth Jack.. I dig the classes you offer...

maybe they were looking for a solution they didn't have to pay for..  (being a 
code sharing 'forum/group')  so to speak...


  - Original Message - 
  From: Jack Doyle 
  To: 'Flash Coders List' 
  Sent: Monday, January 12, 2009 4:59 PM
  Subject: RE: [Flashcoders] change the origin of rotation for a movieclip?


  Wow. Sorry. I thought that might be helpful. Obviously it wasn't. I should
  have given a more thorough answer - after all, this list is for more
  advanced developers who don't need things simplified. There are 3 ways I
  know of to do something like that (some have already been covered):

  1) Wrap it in another DisplayObject/MovieClip, offset it however much you
  need so that the new parent's registration point is where you need it on
  your object. Then rotate the parent. Upside: it's easy. Down side: You're
  screwing with the display list which fires off events like ADDED_TO_STAGE.
  It feels like a hack.

  2) Use matrix transformations like MatrixTransformer class's
  rotateAroundInternalPoint() method. Cleaner in some ways, but in my
  experience, it doesn't always give accurate results over time.

  3) Determine where the point is internally around which you want to rotate
  (according to your DisplayObject's local coordinates). Rotate and then use
  localToGlobal() and globalToLocal() to figure out how much it was offset and
  move the x/y coordinates to compensate.

  Hope that was more helpful.

  Jack

  -Original Message-
  From: Anthony Pace [mailto:anthony.p...@utoronto.ca] 
  Sent: Monday, January 12, 2009 2:24 PM
  To: Flash Coders List
  Subject: Re: [Flashcoders] change the origin of rotation for a movieclip?

  How about a real answer?

  Jack Doyle wrote:
  > There's a new plugin for TweenLite/Max that'll cause transformation
  > (rotation/scale) tweens to occur around any point, so it'll be as easy as:
  >
  > TweenLite.to(mc, 2, {transformAroundPoint:{point:new Point(100, 100),
  > rotation:85}});
  >
  > Or if you want to use the center of the object as its origin, you could
  > simply do:
  >
  > TweenLite.to(mc, 2, {transformAroundCenter:{rotation:80}});
  >
  > It works for the scale too, like:
  >
  > TweenLite.to(mc, 2, {transformAroundCenter:{scaleX:1.5, scaleY:2,
  > rotation:-70}});
  >
  > NOTE: The plugin is a membership benefit of Club GreenSock.
  >
  > You can see an interactive demo at http://blog.greensock.com/sneak-peek/
  > (scroll all the way down in the list of plugins - they're at the bottom -
  > click "example"). For those of you who are wondering "what's this 'plugin'
  > talk with TweenLite - I didn't know there were any plugins!", it's a new
  > feature that's part of a big update I'm rolling out soon. It adds lots of
  > flexibility. Read more at the site.
  >
  > Jack
  >
  > PS There's also TransformMatrixProxy which has been around for a while and
  > it'll do something similar and also let you skew things.
  > http://blog.greensock.com/transformmatrixproxy/ It's not quite as
  convenient
  > as a plugin for TweenLite/Max, though.
  >
  >
  > -Original Message-
  > From: Anthony Pace [mailto:anthony.p...@utoronto.ca] 
  > Sent: Saturday, January 10, 2009 6:12 PM
  > To: Flash Coders List
  > Subject: [Flashcoders] change the origin of rotation for a movieclip?
  >
  > How do you change the origin of rotation dynamically? can it be done?  
  > or will it always be 0,0
  >
  > I was hoping that with the new features of as3 that this I would be able 
  > to indicate where I wanted the origin; yet, I am starting to think that 
  > I was hoping for too much.



  ___
  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] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread -whispers-
Nope, it is not...

the images that seems to break the application is 1500x1500.. while other 
(smaller) images around 550x450 seem to work fine
quick overview:

A.) contentContainer
B.) |-faceContainer
C.) |--lineContainer (where I drawmy 
lineTo() shape to be used as the base of my invertedMask function)
D.) |--maskContainer (where the actual 
invertedMask is created with the function I provided/am using)
E.) |--centeredContainer (where the image 
is loaded into)

faceContainer X/Y is centered is the absolute middle of the display area
all child clips of faceContainer (clips C-E above) are then off set by height & 
width /2..  so that when I scale or rotate faceContainer.. all child clips 
scale from the 'center'..

when I load in ANY image.. I check its height..and if bigger than my display 
area.. I scale it down...

again this works fine is I load in a smaller image...
the only code is 1 (one) function.. (13 lines only) that breaks 
when the image loaded is over a certain size (I believe sets the X/Y to a 
negative number, beyond zero)

this is the function in question:

INVERSED MASK: ( mc = contentContainer.faceContainer.lineContainer)
 
//- [reverse mask code] - //
function inverseMask(mc:MovieClip) {
 contentContainer.faceContainer.centeredContainer.cacheAsBitmap = true;
 var _BMP:BitmapData = new 
BitmapData(contentContainer.faceContainer.centeredContainer._width, 
contentContainer.faceContainer.centeredContainer._height, true, 0x);
 var invert:ColorTransform = new ColorTransform(0, 0, 0, 1);
 var matrix:Matrix = new Matrix(); 
 matrix.translate(0, 0);

 //matrix.translate(mc._x, mc._y);  //doesnt work
 //matrix.translate(contentContainer.faceContainer.centeredContainer._x, 
contentContainer.faceContainer.centeredContainer._y); //doesnt work
 //matrix.identity(); 
//matrix.scale(contentContainer.faceContainer.centeredContainer._xscale, 
contentContainer.faceContainer.centeredContainer._yscale);

 _BMP.draw(mc, matrix, invert);
 _BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height), new 
Point(0, 0), "<", 0x, 0x00FF);
 var BMP:BitmapData = _BMP.clone();
 var maskMC:MovieClip = 
contentContainer.faceContainer.maskContainer.createEmptyMovieClip("invertedMask",
 contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.attachBitmap(BMP, 
contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.cacheAsBitmap = true;
 mc._visible = false;
 return maskMC;
}


thanks to anyone that even point me in the right direction on debugging...

  - Original Message - 
  From: Jason Van Pelt 
  To: Flash Coders List 
  Sent: Monday, January 12, 2009 4:20 PM
  Subject: RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2


  I can't go through all of your info, but just off the top of my head what
  is the size of the image you are trying to load? Is it larger than the 2880
  x 2880 pixel limit?


  JASON VAN PELT  •  SENIOR INTERACTIVE DEVELOPER

  PETER A MAYER ADVERTISING
  324 CAMP ST  •  NEW ORLEANS, LA 70130
  TEL 504-210-1232  •  FAX 504-529-4431

  vanpe...@peteramayer.com  •  WWW.PETERAMAYER.COM


  - 
 
  PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: 
  Confidentially, we loathe confidentiality notices. Still, our lawyers tell us 
they are essential in today's world. That said, please consider yourself 
confidentially notified that this email and any attachments may contain 
confidential and privileged information. If you are not the intended recipient, 
please notify the sender with a reply email-confidentially, of course-and 
destroy all copies. And, just between you and us, any dissemination by a person 
other than the intended recipient is unauthorized and may be illegal.  
  -


--


  ___
  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] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread whispers
Thanks for the advice & reply..

Unfortunately.. I dont think it 'can' be broken down into smaller parts..

Most of the 'babble' was just to put the project into perspective..


The only problem is 'tweaking' that inversedmask() function...

If the intially loaded image is a failry big in dimensions Is seems the
inversed mask function is 'offset' and only shows in the upper left
corner... 

"I" believe it has something to do with the images initial X & Y values
being a negative... So the matrix or threshold portion of the code is
'breaking'

(even though I re-size the images being loaded on the onLoadInit() callback
event to be smaller.. I believe, or is my understanding its either taking
the original clips data or is off-setting it somehow)..

If there is any other information that would help anyone trouble shoot it
with me.. I'd be glad to give it..

Thanks

 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill,
Jason
Sent: Monday, January 12, 2009 3:38 PM
To: Flash Coders List
Subject: RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

>> Anyone?  Tons of emails about the same topic over and over? But not 
>>one reply to some AS2 coding help??
>>Surely it cant be too difficult for most of you 'coders' here, on this 
>>mailing list?

Sorry - with all those objectives and all that code you posted (when I'm
busy and someone posts a ton of code, I usually gloss over or ignore since I
don't have time to step through it all), you gave us a lot to chew on.  You
might want to make your question more succinct.  Or at least break your
problem down into separate posts and have us help you tackle a little at a
time rather than one big overall goal.  


Jason Merrill
Bank of America Instructional Technology & Media   ·   GCIB & Staff
Support L&LD

Interested in Flash Platform technologies?  Join the Bank of America Flash
Platform Developer Community Interested in innovative ideas in Learning? 
Check out the Innovative Learning Blog and subscribe.




___
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] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread whispers
Anyone?  Tons of emails about the same topic over and over? But not one
reply to some AS2 coding help??


Surely it cant be too difficult for most of you 'coders' here, on this
mailing list?


 
// Original email/post: -//


ok..maybe you gents can help me on a problem I've had off and on..
 
project summary:
 

*   load in a dynamic image 

*   trace/create a lineTo object/fill on a layer above this loaded image


*   click a button to create an inversed mask of this above created
lineTo object 

*   effect is the part you drew/colored is not 'cropped' out of the
loaded image (revealing whatever content below)

laymen's terms:
 
load in a image, using the mouse you draw an shape/object 'on' the loaded
image clip, click a button.. it crops it out (thats the effect).. so if you
load an image of a face..you draw a shape/object around the teeth/eye
(whatever) it will 'knock it out'..revealing whatever objects/clips are
underneath the loaded image clip..
 
project layout:
 
contentConainer: 
 
a clips called faceContainer..  inside faceContainer is a clip called
centeredContainer 
 
I load the image into faceContainer.centeredContainer (an offset/center the
centeredContainer inside faceContainer) so that if/when I scale/rotate
faceContainer clip..is scales/rotates form the center point..  (make sense?)
 
so:
 
parent.parent clip (contentContainer)
---parent clip (faceContainer)--
--lineContainer (holds the shape/object I'm using for my source of the
inverse mask --maskContainer (empty clip to hold the dynamically created
clip from the inverse mask method above) --centeredContainer (the place
where the dynamically loaded image gets loaded into, and is 'masked' by the
inversedMask method)

everything actually works FINE until I load in a BIG image.. if I load
an image that DOES not (originally) go -0 (before resize) or is smaller that
the display area..it works fine.. if I load in a HUGE image, something has
an _x value of less than 0 (zero).. it doesnt work..  (FYI: on the
movieClipLoader.onLoadInit() I do resize/scale the movieClip...but
again..for images that are originally very BIG before re-size..the
inversedmask effect does NOT work)
 
I'm fairly certain it has to do with the matrix.translate or maybe I need to
add to it?  but no matter what I've tried.. I cant seem to get it to
work..or possible the threshold portion??
 
ok..onto the problem/question...
 
code snippets..
 
here is the resize code/check I do once the movieClip initializes
 
RE-SIZE:
 
// if height is too big then resize to fit height  if
(target_mc._parent._height > max_height) {
  target_mc._parent._height = max_height;
  target_mc._parent._xscale = target_mc._parent._yscale;  // if height
is too small then resize to fit height  }else if(target_mc._parent._height <
max_height) {
  target_mc._parent._height = max_height;
  target_mc._parent._xscale = target_mc._parent._yscale;  } 
 
 
INVERSED MASK: ( mc = contentContainer.faceContainer.lineContainer)
 
//- [reverse mask code] - //
function inverseMask(mc:MovieClip) {
 contentContainer.faceContainer.centeredContainer.cacheAsBitmap = true;
 var _BMP:BitmapData = new
BitmapData(contentContainer.faceContainer.centeredContainer._width,
contentContainer.faceContainer.centeredContainer._height, true, 0x);
 var invert:ColorTransform = new ColorTransform(0, 0, 0, 1);
 var matrix:Matrix = new Matrix(); 
 matrix.translate(0, 0);
 //matrix.translate(mc._x, mc._y);  //doesnt work
 //matrix.translate(contentContainer.faceContainer.centeredContainer._x,
contentContainer.faceContainer.centeredContainer._y); //doesnt work
 //matrix.identity();
 
//matrix.scale(contentContainer.faceContainer.centeredContainer._xscale,
contentContainer.faceContainer.centeredContainer._yscale);
 _BMP.draw(mc, matrix, invert);
 _BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height),
new Point(0, 0), "<", 0x, 0x00FF);
 var BMP:BitmapData = _BMP.clone();
 var maskMC:MovieClip =
contentContainer.faceContainer.maskContainer.createEmptyMovieClip("invertedM
ask", contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.attachBitmap(BMP,
contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.cacheAsBitmap = true;
 mc._visible = false;
 return maskMC;
}

 
anybody good with matrix stiff and bitmap class??
 
I've tried doing/changing everything I can  but it hasn't seemed to
work..
 
again to re-cap.. everything works..  if the image I load is 'around' the
470x410 dimension..(or smaller) it works fine..
 
I've tested it on a 550c462 image..and it works..however when I load in
an image 1500x1500 for example.. the inversed mask DOES NOT work..
 
it ONLY seems to work in the upper, left hand most corner
 
I guess my 'thoughts' on this are:
 
since the image is centered, and being that it

[Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread whispers
ok..maybe you gents can help me on a problem I've had off and on..
 
project summary:
 

*   load in a dynamic image 

*   trace/create a lineTo object/fill on a layer above this loaded image


*   click a button to create an inversed mask of this above created
lineTo object 

*   effect is the part you drew/colored is not 'cropped' out of the
loaded image (revealing whatever content below)

laymen's terms:
 
load in a image, using the mouse you draw an shape/object 'on' the loaded
image clip, click a button.. it crops it out (thats the effect).. so if you
load an image of a face..you draw a shape/object around the teeth/eye
(whatever) it will 'knock it out'..revealing whatever objects/clips are
underneath the loaded image clip..
 
project layout:
 
contentConainer: 
 
a clips called faceContainer..  inside faceContainer is a clip called
centeredContainer 
 
I load the image into faceContainer.centeredContainer (an offset/center the
centeredContainer inside faceContainer) so that if/when I scale/rotate
faceContainer clip..is scales/rotates form the center point..  (make sense?)
 
so:
 
parent.parent clip (contentContainer)
---parent clip (faceContainer)--
--lineContainer (holds the shape/object I'm using for my source of the
inverse mask
--maskContainer (empty clip to hold the dynamically created clip from
the inverse mask method above)
--centeredContainer (the place where the dynamically loaded image gets
loaded into, and is 'masked' by the inversedMask method)

everything actually works FINE until I load in a BIG image.. if I load
an image that DOES not (originally) go -0 (before resize) or is smaller that
the display area..it works fine.. if I load in a HUGE image, something has
an _x value of less than 0 (zero).. it doesnt work..  (FYI: on the
movieClipLoader.onLoadInit() I do resize/scale the movieClip...but
again..for images that are originally very BIG before re-size..the
inversedmask effect does NOT work)
 
I'm fairly certain it has to do with the matrix.translate or maybe I need to
add to it?  but no matter what I've tried.. I cant seem to get it to
work..or possible the threshold portion??
 
ok..onto the problem/question...
 
code snippets..
 
here is the resize code/check I do once the movieClip initializes
 
RE-SIZE:
 
// if height is too big then resize to fit height
 if (target_mc._parent._height > max_height) {
  target_mc._parent._height = max_height;
  target_mc._parent._xscale = target_mc._parent._yscale;
 // if height is too small then resize to fit height
 }else if(target_mc._parent._height < max_height) {
  target_mc._parent._height = max_height;
  target_mc._parent._xscale = target_mc._parent._yscale;
 } 
 
 
INVERSED MASK: ( mc = contentContainer.faceContainer.lineContainer)
 
//- [reverse mask code] - //
function inverseMask(mc:MovieClip) {
 contentContainer.faceContainer.centeredContainer.cacheAsBitmap = true;
 var _BMP:BitmapData = new
BitmapData(contentContainer.faceContainer.centeredContainer._width,
contentContainer.faceContainer.centeredContainer._height, true, 0x);
 var invert:ColorTransform = new ColorTransform(0, 0, 0, 1);
 var matrix:Matrix = new Matrix(); 
 matrix.translate(0, 0);
 //matrix.translate(mc._x, mc._y);  //doesnt work
 //matrix.translate(contentContainer.faceContainer.centeredContainer._x,
contentContainer.faceContainer.centeredContainer._y); //doesnt work
 //matrix.identity();
 
//matrix.scale(contentContainer.faceContainer.centeredContainer._xscale,
contentContainer.faceContainer.centeredContainer._yscale);
 _BMP.draw(mc, matrix, invert);
 _BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height),
new Point(0, 0), "<", 0x, 0x00FF);
 var BMP:BitmapData = _BMP.clone();
 var maskMC:MovieClip =
contentContainer.faceContainer.maskContainer.createEmptyMovieClip("invertedM
ask", contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.attachBitmap(BMP,
contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.cacheAsBitmap = true;
 mc._visible = false;
 return maskMC;
}

 
anybody good with matrix stiff and bitmap class??
 
I've tried doing/changing everything I can  but it hasn't seemed to
work..
 
again to re-cap.. everything works..  if the image I load is 'around' the
470x410 dimension..(or smaller) it works fine..
 
I've tested it on a 550c462 image..and it works..however when I load in
an image 1500x1500 for example.. the inversed mask DOES NOT work..
 
it ONLY seems to work in the upper, left hand most corner
 
I guess my 'thoughts' on this are:
 
since the image is centered, and being that it is 1500x1500.. the _x of the
'faceContainer' is less than zero (0)...and somehow this is affecting where
inversedMask function is applied?.. which is why I think it could be the
Matrix...OR, possible even the threshold portion of the code?

RE: [Flashcoders] RE: Interactive Developer, NYC | 90-100k (Beau Gould (OSS))

2009-01-05 Thread whispers
Better than where Im at. (YUK) 

"Average Flash salaries for job postings in Wisconsin are 26% lower than
average Flash salaries for job postings nationwide."

(geez, I need to move)


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nate Beck
Sent: Monday, January 05, 2009 12:03 PM
To: Flash Coders List
Subject: Re: [Flashcoders] RE: Interactive Developer,NYC | 90-100k (Beau
Gould (OSS))

Actually, that's pretty standard for a quality Flash Developer. Especially
in areas where there are loads of start-ups... NYC, Seattle, Bay Area.
http://www.indeed.com/salary?q1=Flash&l1=Washington&tm=1


On Mon, Jan 5, 2009 at 9:42 AM, Joel Stransky
wrote:

> That's about the going rate in my area. Now if only I could nail down 
> that much in freelance contracts :)
> http://www.indeed.com/salary?q1=Flash&l1=Virginia&tm=1
>
> On Mon, Jan 5, 2009 at 11:34 AM, Merrill, Jason < 
> jason.merr...@bankofamerica.com> wrote:
>
> > Agreed - for NYC, that's not obscene given the cost of living there.
> >
> >
> > Jason Merrill
> > Bank of America Instructional Technology & Media   .   GCIB & Staff
> > Support L&LD
> >
> > Interested in Flash Platform technologies?  Join the Bank of America
> Flash
> > Platform Developer Community
> > Interested in innovative ideas in Learning?  Check out the 
> > Innovative Learning Blog and subscribe.
> >
> >
> >
> >
> >
> > -Original Message-
> > From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
> > flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt S.
> > Sent: Thursday, January 01, 2009 12:05 PM
> > To: Flash Coders List
> > Subject: Re: [Flashcoders] RE: Interactive Developer, NYC | 90-100k 
> > (Beau Gould (OSS))
> >
> > If it's in New York City, thats not nearly as much as it seems like 
> > once you factor in rent, cost of living, etc.
> >
> > .m
> >
> > On 1/1/09, alan skinner  wrote:
> > >
> > >
> > > Surely thats not the going rate for a flash developer in the US?
> > > Thats an obscene amount of money ;o)
> > >
> > >
> > ___
> > 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
> >
>
>
>
> --
> --Joel Stransky
> stranskydesign.com
> ___
> 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

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


Re: [Flashcoders] Pixel precise

2008-12-17 Thread -whispers-
try using Math.round() on your position values...
  - Original Message - 
  From: laurent 
  To: Flash Coders List 
  Sent: Wednesday, December 17, 2008 7:39 AM
  Subject: [Flashcoders] Pixel precise


  Hi,

  Is there a way to be sure elements are positionned précisely on a Pixel ?

  I have a sprite containing sprites that are positionned on integer 
  coordinates so they are pixel positionned.
  And this sprite is re-positionned when the window resize, so I used 
  int() to be sure I got x and y as integers but still the content get 
  blury sometimes.
  Is there something to do that flash always position element on a pixel 
  not a pixel and half...?

  thx
  L
  ___
  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] inversedMask method stopping any parent masks?

2008-12-16 Thread -whispers-
Sorry I think the URL to the original method and subsequent posts about my 
problem was alittle messed up..

appreciate it if ANYONE could get this working..or at leasttell me its not even 
possible in Flash.

Thanks

correct url:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=288&threadid=1412793&enterthread=y


  - Original Message ----- 
  From: whispers 
  To: flashcoders@chattyfig.figleaf.com 
  Sent: Monday, December 15, 2008 11:40 AM
  Subject: [Flashcoders] inversedMask method stopping any parent masks?



  Hi this is my first post, so I hope I'm doing this correctly..LOL
   
   
  This is AS2, not AS3, so if anyone could suggest something to search for I'd
  appreciate it.
   
  I am trying to use this method here: (found on Adobes forms)

  http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15
  <http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&cat
  id=288&threadid=1410897&CFID=13151180&CFTOKEN=5df21005bb1feb31-2CD5FFB4-F67E
  -56DC-E1E8B1280EE0B55C&jsessionid=4830966da44a4398c212f6359546a572e3e3>
  &catid=288&threadid=1410897&CFID=13151180&CFTOKEN=5df21005bb1feb31-2CD5FFB4-
  F67E-56DC-E1E8B1280EE0B55C&jsessionid=4830966da44a4398c212f6359546a572e3e3

  to create an inversed mask of the shape I have drawn (lineTo) inside a
  movieClip..

  my clip layout/nesting is as follows:

  parent.parent clip (contentContainer)
  |
  ---parent clip (faceContainer)
  |
  lineContainer (holds the shape/object I'm using for my
  source of the inverse mask
  maskContainer (empty clip to hold the dynamically created
  clip from the inverse mask method above)
  imageContainer (the place where the dynamically loaded image
  gets loaded into, and is 'masked' by the inversedMask method)

  now this all works fine.. except I want to add a mask to the parent clip
  thats holding these 3 nested clips...(faceContainer).. or even to the parent
  clip of that (contentContainer)..

  but when I do so.. and then invoke the inversedMask() method from
  above,...the whole imageContainer goes blank...

  now since the only REAL masking is the maskContainer, masking the
  imageContainer.. why cant I add a mask manually or through AS to the
  faceContainer or the contentContainer clips?

  I cant seem to figure it out...  something with this inversedMethod() I've
  found and am using?..or just an illegal (I don't believe so) application of
  masks in Flash?

  any ideas or suggestion is helpful..

  this 'IS' AS2 by the way... (just to re-iterate)

  thanks for the eyes.  =)
   
   
  -xl97
   
   
  ___
  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] How to access var passed in URL from AS2 class

2008-12-16 Thread whispers
No problem.. SWF Object is a GREAT way to embed your flash movies into HTML
(or whatever).. It allows for a lot for other stuff as well.. 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nate Beck
Sent: Tuesday, December 16, 2008 11:17 AM
To: Flash Coders List
Subject: Re: [Flashcoders] How to access var passed in URL from AS2 class

Hey that's cool, I didn't know that existed.  Thanks whispers!
-- 

Cheers,
Nate

http://blog.natebeck.net

On Tue, Dec 16, 2008 at 9:08 AM, whispers  wrote:

> You can also use SWF Object to embed the movie...  I believe you have 
> the options or grabbing vars form the query string.
>
> Makes it quite easy:
>
>  The SWFObject script also comes with an extra function which allows 
> you to pull variable values from the url string. An example is you 
> have a url that looks like this:
> http://www.example.com/page.html?variable1=value1&variable2=value2. 
> Using the function getQueryParamValue() you can easily pull these 
> values from the url and then pass them into your Flash movie. Here is 
> an example, we'll assume that the url looks like the above example:
>
> 
>   var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", 
> "#336699");
>   so.addVariable("variable1", getQueryParamValue("variable1"));
>   so.addVariable("variable2", getQueryParamValue("variable2"));
>   so.write("flashcontent");
> 
>
>
> Take care
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nate 
> Beck
> Sent: Tuesday, December 16, 2008 10:35 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] How to access var passed in URL from AS2 
> class
>
> http://www.mydomain.com/index.html?passedPage=180
> This won't pass into flash as a flashvar.  You have a few options though.
>
>   - Use Javascript to grab the query string and then write it in as a
>   flashvar or query string to the swf. (ex: MySwf.swf?passedPage=180"
>   - Make an ExternalInterface call a javascript function that returns the
>   variables to you.
>   - Auto populate the flashvar with a serverside language: php, cf, jsp...
>   etc
>   - If you're using Flex, look into BrowserManager.
>
> Cheers,
> Nate
>
> On Tue, Dec 16, 2008 at 8:12 AM, Ali Drongo  >wrote:
>
> > Hi there, I'm passing a variable to my swf through a query string 
> > like
> > this:
> >
> > htp://www.mydomain.com/index.html?passedPage=180
> >
> > I have my main AS2 class that is the root class and have tried to 
> > access the variable like this:
> >
> >trace("PASSPAGE SET:"+this["passedPage"]);
> >trace("PASSPAGE SET:"+_level0.passedPage);
> >trace("PASSPAGE SET:"+_root.passedPage);
> >
> > each of these traces returns undefined.
> >
> > I am compiling this SWF using MTASC which means I can't write the 
> > var as passedPage as MTASC says this is an unknown variable.
> >
> > I have tried declaring passedPage as a public variable within the 
> > class though I still can't access it.
> >
> > Any suggestions much appreciated.
> >
> > Thanks
> > Ali
> >
> >
> > ___
> > 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] How to access var passed in URL from AS2 class

2008-12-16 Thread whispers
You can also use SWF Object to embed the movie...  I believe you have the
options or grabbing vars form the query string.

Makes it quite easy:

 The SWFObject script also comes with an extra function which allows you to
pull variable values from the url string. An example is you have a url that
looks like this:
http://www.example.com/page.html?variable1=value1&variable2=value2. Using
the function getQueryParamValue() you can easily pull these values from the
url and then pass them into your Flash movie. Here is an example, we'll
assume that the url looks like the above example:


   var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8",
"#336699");
   so.addVariable("variable1", getQueryParamValue("variable1"));
   so.addVariable("variable2", getQueryParamValue("variable2"));
   so.write("flashcontent");



Take care 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nate Beck
Sent: Tuesday, December 16, 2008 10:35 AM
To: Flash Coders List
Subject: Re: [Flashcoders] How to access var passed in URL from AS2 class

http://www.mydomain.com/index.html?passedPage=180
This won't pass into flash as a flashvar.  You have a few options though.

   - Use Javascript to grab the query string and then write it in as a
   flashvar or query string to the swf. (ex: MySwf.swf?passedPage=180"
   - Make an ExternalInterface call a javascript function that returns the
   variables to you.
   - Auto populate the flashvar with a serverside language: php, cf, jsp...
   etc
   - If you're using Flex, look into BrowserManager.

Cheers,
Nate

On Tue, Dec 16, 2008 at 8:12 AM, Ali Drongo wrote:

> Hi there, I'm passing a variable to my swf through a query string like
> this:
>
> htp://www.mydomain.com/index.html?passedPage=180
>
> I have my main AS2 class that is the root class and have tried to 
> access the variable like this:
>
>trace("PASSPAGE SET:"+this["passedPage"]);
>trace("PASSPAGE SET:"+_level0.passedPage);
>trace("PASSPAGE SET:"+_root.passedPage);
>
> each of these traces returns undefined.
>
> I am compiling this SWF using MTASC which means I can't write the var 
> as passedPage as MTASC says this is an unknown variable.
>
> I have tried declaring passedPage as a public variable within the 
> class though I still can't access it.
>
> Any suggestions much appreciated.
>
> Thanks
> Ali
>
>
> ___
> 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] problem with loadMovie

2008-12-16 Thread whispers
Have you tried tracing out:
_root[clicked_Button]

And see what it returns to ensure that it is correctly giving you the data
you need? 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Alexander
Böhm
Sent: Tuesday, December 16, 2008 8:14 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] problem with loadMovie

Hi there,

can anybody tell me why the second line of code given here, loads the image
perfectly into the holder-clip, and the other method won't work?


ActionScript Code:

_root[clicked_Button].picholder_mc.loadMovie(getPlayerInfo("surname",
_root[this._name].name_txt.text).toLowerCase() + "_set.png");
_root["def_btn_4"].picholder_mc.loadMovie(getPlayerInfo("surname",
_root[this._name].name_txt.text).toLowerCase() + "_set.png");



the variable clicked_Button is a String-Variable and stores the
instance-name of the movieclip pressed, e.g. def_btn_4
___
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] inversedMask method stopping any parent masks?

2008-12-15 Thread whispers
 
Hi this is my first post, so I hope I'm doing this correctly..LOL
 
 
This is AS2, not AS3, so if anyone could suggest something to search for I'd
appreciate it.
 
I am trying to use this method here: (found on Adobes forms)

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15

&catid=288&threadid=1410897&CFID=13151180&CFTOKEN=5df21005bb1feb31-2CD5FFB4-
F67E-56DC-E1E8B1280EE0B55C&jsessionid=4830966da44a4398c212f6359546a572e3e3

to create an inversed mask of the shape I have drawn (lineTo) inside a
movieClip..

my clip layout/nesting is as follows:

parent.parent clip (contentContainer)
|
---parent clip (faceContainer)
|
lineContainer (holds the shape/object I'm using for my
source of the inverse mask
maskContainer (empty clip to hold the dynamically created
clip from the inverse mask method above)
imageContainer (the place where the dynamically loaded image
gets loaded into, and is 'masked' by the inversedMask method)

now this all works fine.. except I want to add a mask to the parent clip
thats holding these 3 nested clips...(faceContainer).. or even to the parent
clip of that (contentContainer)..

but when I do so.. and then invoke the inversedMask() method from
above,...the whole imageContainer goes blank...

now since the only REAL masking is the maskContainer, masking the
imageContainer.. why cant I add a mask manually or through AS to the
faceContainer or the contentContainer clips?

I cant seem to figure it out...  something with this inversedMethod() I've
found and am using?..or just an illegal (I don't believe so) application of
masks in Flash?

any ideas or suggestion is helpful..

this 'IS' AS2 by the way... (just to re-iterate)

thanks for the eyes.  =)
 
 
-xl97
 
 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders