Re: [Flashcoders] cms solution for flash sites?

2009-06-29 Thread Fabio Pinatti
Recently I worked with a team, using Expression Engine. Core module is free,
and additional modules are paid, but really not expensive. The job was very
smooth and seems the cms is really easy to customize, generating xml based
on templates. I'm going to buy some book to learn it and start a new
project. Will the list know as soon I have a better basis with it.



On Mon, Jun 29, 2009 at 9:51 PM, jared stanley jared.stan...@gmail.comwrote:

 on that note, does anyone have any good resources for using
 drupal/wp/joomla one of the bigger solutions to do this kind of thing?

 whenever i search flash cms wordpress or whatver i always get articles
 about how to add flash content to the site template, not about how to
 update/edit xml content






 On Mon, Jun 29, 2009 at 5:40 AM, Glen Pikeg...@engineeredarts.co.uk
 wrote:
  Sorry, posted the demo URL, it's available on Flash Den.
 
  http://flashden.net/item/flash-xml-editor-version-2/47884
 
  Userguide:
 
  http://www.flashxmleditor.com/userguide/
 
  I have not used it apart from the demo, so I only have a 1000 yard view,
 but
  from the doc's / demo it looks very straightforward to use and setup.
 
  If you like getting your hands dirty  rolling your own stuff, maybe look
 at
  something like Drupal + AMPHP / WebServices modules or a similar system.
   Personally I hate Joomla for it's crappy menu management (although that
 was
  2 years ago), I like Drupal for it's flexibility, but it can be a pain to
  configure.  I have found that Wordpress provides one of the easisest to
 use
  CMS systems out of the box, (although it is bloating now somewhat), but
  not much cop as an image library system.
 
  Glen
 
  jonathan howe wrote:
 
  Hi, Glen,
 
  That xml editor thing looks cool for a few applications that I have...
 but
  what I don't see is where it is available for download. Seems like he
 has
  just finished it and hasn't released it yet. Have you been using it?
 
  -jonathan
 
 
 
  On Mon, Jun 29, 2009 at 7:02 AM, Glen Pike
  g...@engineeredarts.co.ukwrote:
 
 
 
  It's not free, but probably the simplest / easiest to configure and
  timesaving when compared to a lot of software.
 
  http://www.flashxmleditor.com/demo/
 
  There are tons of open source cms systems out there that you can plug
  flash into.  Drupal supports a nice way of connecting from Flash sites
  into
  the CMS, but for some jobs this is a sledghammer vs nut problem.  The
  system
  above is designed to work with Flash, does not seem to have much
 setting
  up
  / server side baggage and is streamlined enough for the customer to
 deal
  with (possibly :) )
 
  HTH
 
  Glen
 
  jared stanley wrote:
 
 
 
  hey all,
 
  when building basic portfolio sites for clients(i.e. galleries
  containing image + text, showcasing photos, projects, etc) what is the
  best cms to use?
  Best meaning simple + free.
  Basically something enabling the client to add a new item in the
  gallery, change the order of the gallery, and possibly image upload
  but not even necessarily that.
 
  any suggestions?
 
  saw this one, http://www.codeandvisual.com/rainbow but haven't used
  it. wondering what other people use.
  I know joomla, drupal, etc are all popular cms's but don't know if you
  can use these for what i'm talking about above.
 
  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 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




-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Ruy Adorno portfolio

2009-06-26 Thread Fabio Pinatti
Pretty nice!

Loved the boxes flying around the screen. Which particle system have you
used?

Congratulations!

On Fri, Jun 26, 2009 at 12:29 PM, Ruy Adorno r...@lesite.ca wrote:

 Hello list,

 I just released my new flash portfolio this week and want to spread the
 word.
 It was developed using opensource programming tools like Haxe, SwfMill and
 FlexSDK.
 You can check it online here:

 http://www.ruyadorno.com

 Thanks,

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




-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] blip.tv api?

2009-06-19 Thread Fabio Pinatti
hello!

@Nate: Thank you so much by the so clear explanation.. I don't have much
experience with JSON and that's why I didn't get it if blip.tv was possible
through flash.. but your last emails were great, and a great step to learn
it.. About google, well, I really agree with you that it needs to be the
first tool to everyone, since a lot of people are really lazy.. the point is
that I didn't get the files and process to do in my case, and that's why
I've posted in that forum.. thank you so much, Nate!

@Muzak: I saw that they require a login/pass, and now I know that can be
possible use the api from flash, I'll dig for register and get a login info
to me and check it better right now.. thanks Muzak!

On Fri, Jun 19, 2009 at 4:37 AM, Muzak p.ginnebe...@telenet.be wrote:

 Their API is explained here:
 http://wiki.blip.tv/index.php/Blip.tv_API

 username and password are in the prompt.


 - Original Message - From: Nate Beck n...@tldstudio.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Friday, June 19, 2009 5:17 AM
 Subject: Re: [Flashcoders] blip.tv api?



  To try and make this a little more clear.  You're basically requesting
 the information from their webservers using a customized url.

 A RESTful service you can actually use from a web browser, for
 example... on Twitter Search you can get your results in JSON by doing
 this.

 http://search.twitter.com/search?q=iPhone

 turns into this:

 http://search.twitter.com/search.json?q=iPhone

 Which will return the data your looking for in a format called JSON
 (JavaScript Object Notation).

 So to clarify on what I said earlier.  You can get this data into your
 flash application using URLLoader.  Just set the URL to where the JSON
 data is and then request it.

 When you get a result back, you will have a REALLY long String of data
 that you want to drill into. That's where as3corelib and it's
 JSON.parse() method steps in. You pass JSON.parse() a String and it
 returns an Object.

 You can then drill into that Object to get the relevant data that you
 need.

 Those Java and Ruby files are just wrappers for making calls to
 Blip.tv web services.  Unfortunately there isn't a wrapper (library)
 for ActionScript.

 Hopefully that makes it a bit more clear, I wasn't trying to be rude
 earlier, after re-reading my emails I may have come across that way.
 I apologize.

 Cheers,
 Nate


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




-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] blip.tv api?

2009-06-19 Thread Fabio Pinatti
yeah, I saw it.. and it seems rss works well.. I'll just try some tests to
check if I'm able to crossdomain load the flv..

will let you know when I'm done, it may be useful for someone that needs it
also..

Thanks!

On Fri, Jun 19, 2009 at 1:35 PM, Nate Beck n...@tldstudio.com wrote:

 You don't need to register for Blip.TV to get the login and password.
 When it prompts you for a username and password, read the description
 in that prompt, it has the username and password in it.  They do that
 to prevent SPAM.

 Cheers,
 Nate

 On Fri, Jun 19, 2009 at 4:55 AM, Fabio Pinattifpina...@gmail.com wrote:
  hello!
 
  @Nate: Thank you so much by the so clear explanation.. I don't have much
  experience with JSON and that's why I didn't get it if blip.tv was
 possible
  through flash.. but your last emails were great, and a great step to
 learn
  it.. About google, well, I really agree with you that it needs to be the
  first tool to everyone, since a lot of people are really lazy.. the point
 is
  that I didn't get the files and process to do in my case, and that's why
  I've posted in that forum.. thank you so much, Nate!
 
  @Muzak: I saw that they require a login/pass, and now I know that can be
  possible use the api from flash, I'll dig for register and get a login
 info
  to me and check it better right now.. thanks Muzak!
 
  On Fri, Jun 19, 2009 at 4:37 AM, Muzak p.ginnebe...@telenet.be wrote:
 
  Their API is explained here:
  http://wiki.blip.tv/index.php/Blip.tv_API
 
  username and password are in the prompt.
 
 
  - Original Message - From: Nate Beck n...@tldstudio.com
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Sent: Friday, June 19, 2009 5:17 AM
  Subject: Re: [Flashcoders] blip.tv api?
 
 
 
   To try and make this a little more clear.  You're basically requesting
  the information from their webservers using a customized url.
 
  A RESTful service you can actually use from a web browser, for
  example... on Twitter Search you can get your results in JSON by doing
  this.
 
  http://search.twitter.com/search?q=iPhone
 
  turns into this:
 
  http://search.twitter.com/search.json?q=iPhone
 
  Which will return the data your looking for in a format called JSON
  (JavaScript Object Notation).
 
  So to clarify on what I said earlier.  You can get this data into your
  flash application using URLLoader.  Just set the URL to where the JSON
  data is and then request it.
 
  When you get a result back, you will have a REALLY long String of data
  that you want to drill into. That's where as3corelib and it's
  JSON.parse() method steps in. You pass JSON.parse() a String and it
  returns an Object.
 
  You can then drill into that Object to get the relevant data that you
  need.
 
  Those Java and Ruby files are just wrappers for making calls to
  Blip.tv web services.  Unfortunately there isn't a wrapper (library)
  for ActionScript.
 
  Hopefully that makes it a bit more clear, I wasn't trying to be rude
  earlier, after re-reading my emails I may have come across that way.
  I apologize.
 
  Cheers,
  Nate
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
  --
  Fabio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  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




-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] blip.tv api?

2009-06-18 Thread Fabio Pinatti
Dear Coders,

I'm wondering if exists some api similar to youtube, to get blip.tv (
http://blip.tv/) videos..

Some advice?

Thank you

-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] issue with mc height

2009-06-01 Thread Fabio Pinatti
Hello!

@Andrei, hey pal, your solutions seems to work. For me that issue was a big
surprise and the fix more yet, since I thought when content is masked (like
my case), the off area wasn't rendered. Pretty good know about that.

@Karl, your fix is a lot elegant and it would be the pretty nice in terms of
acessibility improvement, but you know, as the website (that was a bit
problematic) is done, I'm scared in redoing a lot of code... But I'll keep
the advice in mind, sounds very good.

I will keep you posted if the problem persists

Thanks!
Pinatti

On Sun, May 31, 2009 at 6:55 PM, Karl DeSaulniers k...@designdrumm.comwrote:

 Maybe try setting a max number of images that can be loaded at one time.
 Set it up so that as you scroll, it deletes one from where you came from
 (if scrolling down then where you came from was the - top)
 and adds one to where you are going (if scrolling down, where your going is
 - down).
 Then you only have a max number of images loading your users screen and you
 can get rid of that jumpy scroll.

 (I presume you use that because you don't want it to take forever to scroll
 your long page,
 well its a little hard to follow and gets a little tiresome after two or
 three slides.. :)

 well it did for me.

 You need to set an array for holding the amount of images, the amount of
 images being displayed, which one is loading and which one is being removed
 and set up your scroll to cycle though according.
 HTH


 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com


 On May 31, 2009, at 1:44 PM, Fabio Pinatti wrote:

  Hello all,

 I'm running an issue that is taking my sleep away. If you go to that url:

 http://www.costanostra.net/costinha/

 you'll see a lot images loading. So, I load one, after loaded I show it,
 start load the second one, etc. Until all my xml is complete. The big
 issue
 is, in a moment (almost in the all xml loading end), a greyed rectangle
 appears over my images. Seems that black rectangle has the hue of one of
 the
 latest images loaded. Not sure why or what this is happening, but looks
 like
 some issue about the maximum movieclip height. If you see the last image
 of
 list, it's weird, seems the pixels are pulled along the image, and then
 the
 issued image starts again in 0 y position.

 I have a trace after all images being loaded, I have a total height of
 19209px (yes, I know, It's a lot big). Any thoughts about that maximum
 movieclip height? Suggestions? The website is basically done, but I'm
 suprised with that size issue =(

 Thank you

 --
 Fabio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 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




-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] issue with mc height

2009-05-31 Thread Fabio Pinatti
Hello all,

I'm running an issue that is taking my sleep away. If you go to that url:

http://www.costanostra.net/costinha/

you'll see a lot images loading. So, I load one, after loaded I show it,
start load the second one, etc. Until all my xml is complete. The big issue
is, in a moment (almost in the all xml loading end), a greyed rectangle
appears over my images. Seems that black rectangle has the hue of one of the
latest images loaded. Not sure why or what this is happening, but looks like
some issue about the maximum movieclip height. If you see the last image of
list, it's weird, seems the pixels are pulled along the image, and then the
issued image starts again in 0 y position.

I have a trace after all images being loaded, I have a total height of
19209px (yes, I know, It's a lot big). Any thoughts about that maximum
movieclip height? Suggestions? The website is basically done, but I'm
suprised with that size issue =(

Thank you

-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with footer fixed to bottom of page

2009-05-21 Thread Fabio Pinatti
I suppose it should be:

footer.y = stage.stageHeight - footer.height;
footer[footer_bar].width = stage.stageWidth;

since footer_bar is nested into footer.

Kind Regards,
Pinatti


On Thu, May 21, 2009 at 4:41 PM, Jonathan Wing jw...@cramcrew.com wrote:

 This is probably a silly question, but I've searched google and can't
 seem to find the right answer, which is strange as this is seems to be a
 common thing on pages.



 Basically, I have a footer that is fixed to the bottom of a page and for
 the width of a page, so that no matter what size a user sets a window
 for, it will always fix to the bottom. This is what I have so far (using
 AS3):



 In my .fla, I have a long gray bar with the instance name footer.

 Then, over in my .as file, I have the following:



 import flash.display.*;



 footer.y = stage.stageHeight - footer.height;

 stage.addEventListener(Event.RESIZE, resizeHandler);



 public function resizeHandler(e:Event):void {

 footer.y = stage.stageHeight - footer.height;

 footer.width = stage.stageWidth;

  }



 All of this works without a hitch. However, my problem arises when I
 want to add text. If I add text in its own mc, then it won't adjust with
 the page. If I add text inside the footer mc, it will stretch with the
 width of the page when I resize. So then I thought maybe I could make
 them two mc's embedded in one main mc, and only define the width for the
 bar. That is, something like:



 footer.y = stage.stageHeight - footer.height;

 footer_bar.width = stage.stageWidth;



 With footer as the main mc, and footer_bar as the long gray bar
 embedded inside.



 However, this results in a mess of errors.



 Any ideas? This seems so common, I'm surprised I can't find anything via
 Google.



 Thanks,

 Jonathan Wing
 Graphic Designer
 Cram Crew, Inc.
 mobile: (713) 298-2738
 office: (713) 464-CRAM (2726)
 email: jw...@cramcrew.com mailto:jw...@cramcrew.com
 www.cramcrew.com http://www.cramcrew.com/


 One Student At A Time





 
 The information transmitted is intended only for the person or entity to
 which it is addressed and may contain proprietary, business-confidential
 and/or privileged material. If you are not the intended recipient of this
 message you are hereby notified that any use, review, retransmission,
 dissemination, distribution, reproduction or any action taken in reliance
 upon this message is prohibited. If you received this in error, please
 contact the sender and delete the material from any computer. Any views
 expressed in this message are those of the individual sender and may not
 necessarily reflect the views of the company.
 

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




-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] memory in avm1 movies

2009-05-04 Thread Fabio Pinatti
Hello coders,

We discuss a lot of garbage collection for avm2. But the point is, for avm1
loaded inside avm2, as I don't have addEventListeners in as2, is there some
possibility to release memory used, and/or is it necessary?

I'm asking because I'm building a portfolio in as3, that will load some as2
stuff, like banners and small pieces.

Thanks!

-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Fabio Pinatti
Hello coders,

A question I was wondering here. A client of mine has a website built with
as2. And I explained him I work now with as3, but he asked what the real
benefits for him, to convert his project to as3.

I would like to have some good arguments, but I can find more benefits for
me, as developer, than for the client.

I would like to know your thoughts and advices about that.

Thanks

-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Fabio Pinatti
Hello,

yeah, that's why I was fighting with myself to find a good reason to convert
it. There's no logical reasons, the only one I really find is maintenance or
redesign.

Your help was precious, thanks!

Fabio

On Wed, Apr 22, 2009 at 12:35 PM, Kerry Thompson al...@cyberiantiger.bizwrote:

 Ian Thomas wrote:

  I think that was Paul, not me.

 Right you are. Sorry, Paul.

  But as it happens, I agree with Paul, too. :-D

 Actually, we all three seem to pretty much agree. I'm just wordier than you
 :-P

 Cordially,

 Kerry Thompson

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




-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] water effect

2009-04-20 Thread Fabio Pinatti
Hello list,

At this page: http://www.nossa.pt/#/home

I'm wondering how this home page effect can be achieved to a work that I'll
start to do. I thought in some thing about blobs, but not sure how it can be
achieved.

Move the mouse over the drop and you'll see...

Any ideas?

-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] water effect

2009-04-20 Thread Fabio Pinatti
Hey Andrei, that's so nice. Even without a threshold filter I can get
impressive results with just the blur + bevelfilter.

The simple works a lot in most of cases. I couldn't think in a so elegant
solution =)

Thanks so much

Pinatti

On Mon, Apr 20, 2009 at 5:50 PM, Andrei Thomaz andreitho...@gmail.comwrote:

 1. somes circles moving around the mouse
 2. blur
 3. threshold
 4. bevelfilter

 Maybe this results too slow, but I think this sequence of steps will give
 you the desired effect. After achieving it, you can try some optimization
 (maybe to use circles already blurred, for example).

 best,
 andrei



 On Mon, Apr 20, 2009 at 5:06 PM, Fabio Pinatti fpina...@gmail.com wrote:

  Hello list,
 
  At this page: http://www.nossa.pt/#/home
 
  I'm wondering how this home page effect can be achieved to a work that
 I'll
  start to do. I thought in some thing about blobs, but not sure how it can
  be
  achieved.
 
  Move the mouse over the drop and you'll see...
 
  Any ideas?
 
  --
  Fabio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  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




-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] multiple masked mcs

2009-04-12 Thread Fabio Pinatti
Hello list,

straight and forward, sorry if the question is stupid: In flash timeline, I
can mask any elements as I wish, with just a single mask. isn't it possible
with actionscript? I know, I can add everything to a holder movieclip and
mask it, but there's nothing like setup a mask property to several
movieclips, right?

Thanks!

-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] point in a circle

2009-04-09 Thread Fabio Pinatti
Hello list,

since I ran from math classes, I have a question that I'm almost sure it's
not hard to solve, but I don't know how to. I put a image at
http://pinatti.com.br/circle.jpg, where it's a circle with red dots. I need
to compute red dots's x/y position. The data I have is the angle that I
increment (in this case 45º each round), and the distance (the hypotenuse,
right?).

Any ideas for this math?

Thanks in advance..

-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] point in a circle

2009-04-09 Thread Fabio Pinatti
that's it!

Thanks so much!

On Thu, Apr 9, 2009 at 3:27 PM, Todd Kerpelman t...@kerp.net wrote:

 x = Math.cos(angle) *  radius
 y = Math.sin(angle) * radius

 Keep in mind the angle here needs to be in radians. If your angle is in
 degrees, multiply it by 180 / Math.PI.

 Also keep in mind the x and y values you get here will be relative to the
 circle's center.

 --T


 On Thu, Apr 9, 2009 at 11:02 AM, Fabio Pinatti fpina...@gmail.com wrote:

  Hello list,
 
  since I ran from math classes, I have a question that I'm almost sure
 it's
  not hard to solve, but I don't know how to. I put a image at
  http://pinatti.com.br/circle.jpg, where it's a circle with red dots. I
  need
  to compute red dots's x/y position. The data I have is the angle that I
  increment (in this case 45º each round), and the distance (the
 hypotenuse,
  right?).
 
  Any ideas for this math?
 
  Thanks in advance..
 
  --
  Fabio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  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




-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] live streaming

2009-04-06 Thread Fabio Pinatti
Hello all,

I need to collect some resources about live video streaming and live sound
streaming with flash or other tool you advice me. As I never worked with
that early I'm a bit lost. Do we have free servers? If negative, do you know
some cheap/good? Is there some api to help with that?

Any help would be very appreciated...

Thank you so much,

-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Full screen mode and KeyboardEvents

2009-03-29 Thread Fabio Pinatti
http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_03.html#head5

On Sun, Mar 29, 2009 at 6:25 PM, Carl Welch carlwelchdes...@gmail.comwrote:

 Hi all,

 I've built an app uses KeyboardEvents. All works fine until I go into
 FULLSCREEN Mode, the KeyboardEvents seem to stop working... and, of course
 when I go back to normal mode the KeyboardEvents start working again. Is
 there a work around for this issue?

 Thanks!

 --
 Carl Welch
 http://www.carlwelch.com
 http://blog.jointjam.com
 carlwelchdes...@gmail.com
 805.403.4819





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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] where did the mouseX go?

2009-03-11 Thread Fabio Pinatti
Event types doesn't have mouseX. Only MouseEvent has, and even, you should
use target or currentTarget and get it.

ie:
addEventListener(MouseEvent.CLICK, mousecords);

function mousecords(event:Event):void {
xTween.continueTo(event.target.mouseX, duration);
yTween.continueTo(event.target.mouseY, duration);
}

or in your case, just use the mouseX directly from object:

function mousecords(event:Event):void {
xTween.continueTo(getChildByName(your_cosilla_name).mouseX, duration);
 yTween.continueTo(getChildByName(your_cosilla_name).mouseY, duration);
}


Hope that works for you
F


On Wed, Mar 11, 2009 at 2:18 PM, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:



 Hi Coders I have this code, is simple I want to move something using as3,
 but when I do the movie test with it, it gives me this error
 1172: Definition flash.display.Sprite:mouseX could not be found.  same for
 the mouseY, I don't understand since the code appears to be in the import
  flash.display.Sprite.mouseX;
 doers anyone has encountered this error, am I doing something wrong, and
 please if someone knows what is would you please point which is the error
 there.

 I'd appreciate any help, here is the code


 import fl.transitions.*;
 import fl.transitions.easing.*;
 import flash.ui.Mouse;

 import flash.display.MovieClip;
 import flash.net.*;
 import flash.events.*;
 import flash.display.Sprite.mouseX;
 import flash.display.Sprite.mouseY;

 var duration:Number = 3;
 var cosilla:Sprite = new Sprite();
 var cosillaLoader:Loader = new Loader();
 cosillaLoader.load(new URLRequest(http://leftandrightsolutions.com/
 back1.jpg));
 cosilla.addChild(cosillaLoader);
 addChild(cosilla);
 addEventListener(Event.ENTER_FRAME, mousecords);
 var xTween:Tween = new Tween(cosilla, x, Regular.easeOut, cosilla.x,
 cosilla.x, duration, true);
 var yTween:Tween = new Tween(cosilla, y, Regular.easeOut, cosilla.y,
 cosilla.y, duration, true);

 function mousecords(event:Event):void {
 xTween.continueTo(event.mouseX, duration);
 yTween.continueTo(event.mouseY, duration);
 }




 Gustavo


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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] where did the mouseX go?

2009-03-11 Thread Fabio Pinatti
have you received mine or list emails? hope it's clear if you did..

pinatti

On Wed, Mar 11, 2009 at 3:48 PM, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:

 Thanks, I 've just solved minutes ago, apparently it gives me the error
 when the part of the function is
 xTween.continueTo(event.MouseX, duration);
 so I've just erased the event part , it is now:
 xTween.continueTo(MouseX, duration);
 so now is ok.

 :)

 any explanation though?
 I guess flash was trying mouseX as a property, when is not.

 Gus

 On Mar 11, 2009, at 1:46 PM, Glen Pike wrote:

  import flash.display.Sprite.mouseX;
 import flash.display.Sprite.mouseY;

 ???

 import flash.display.Sprite;

 :)

 Gustavo Duenas wrote:



 Hi Coders I have this code, is simple I want to move something using as3,
 but when I do the movie test with it, it gives me this error
 1172: Definition flash.display.Sprite:mouseX could not be found.same for
 the mouseY, I don't understand since the code appears to be in the import
  flash.display.Sprite.mouseX;
 doers anyone has encountered this error, am I doing something wrong, and
 please if someone knows what is would you please point which is the error
 there.

 I'd appreciate any help, here is the code


 import fl.transitions.*;
 import fl.transitions.easing.*;
 import flash.ui.Mouse;

 import flash.display.MovieClip;
 import flash.net.*;
 import flash.events.*;
 import flash.display.Sprite.mouseX;
 import flash.display.Sprite.mouseY;

 var duration:Number = 3;
 var cosilla:Sprite = new Sprite();
 var cosillaLoader:Loader = new Loader();
 cosillaLoader.load(new URLRequest(http://
 leftandrightsolutions.com/back1.jpg));
 cosilla.addChild(cosillaLoader);
 addChild(cosilla);
 addEventListener(Event.ENTER_FRAME, mousecords);
 var xTween:Tween = new Tween(cosilla, x, Regular.easeOut, cosilla.x,
 cosilla.x, duration, true);
 var yTween:Tween = new Tween(cosilla, y, Regular.easeOut, cosilla.y,
 cosilla.y, duration, true);

 function mousecords(event:Event):void {
 xTween.continueTo(event.mouseX, duration);
 yTween.continueTo(event.mouseY, duration);
 }




 Gustavo


 ___
 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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: mouseEnabled Loader issue

2009-03-05 Thread Fabio Pinatti
Hello Dennis,

thank you, but one question. In the case, my MovieClip B wasn't loaded by a
Loader Object. I mean, it is a simple movieclip in stage. Even that way has
it a Loader? I thought just elements loaded with Loader class had it...

Thank you!
Fabio

On Thu, Mar 5, 2009 at 7:48 AM, Dennis - I Sioux den...@isioux.nl wrote:

 Hey Fabio,

 You disabled the Movieclip in B .. but the b.swf was still loaded into a
 loader object..
 This loader object still catched the mouseevent.. so b didn't catch it..
 but b is a part of the total swf/loaderObject ..so the loader still caught
 it.

 Hope this is clear:)

 Dennis
 Isioux

 - Original Message - From: Fabio Pinatti fpina...@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, March 05, 2009 3:32 AM
 Subject: [Flashcoders] Re: mouseEnabled Loader issue


  Hello again,

 wow, I don't make idea what, how or why, but that solved my problem:

 *mcB.loaderInfo.loader.mouseEnabled = false;*

 (I put that on my swf B, the top level swf). That permitted me disable
 Loader mouseChildren and access my level A.

 Any explanation why this happens, would be great...

 Thank you!


 On Wed, Mar 4, 2009 at 11:15 PM, Fabio Pinatti fpina...@gmail.com
 wrote:

  Hello flashcoders,

 I'm having some issues with some target things, in as3. I need to access
 a
 movieclip A under a movieclip B. Movieclip A is in a swf, and B in other
 above it. My first try was mouseEnabled. but it didn't work. The weird
 is,
 if I put a mouse click in the stage of movie that has movieclip B (that
 is
 the one I'm not having sucess in disable). the event.target returns a
 Loader
 object. Why is this happening? I thought I could just use mouseEnabled =
 false to access lower level movieclips, but for different movies, seems
 that
 that Loader preserves a hit area, that I don't know how to disable.
 Actually, one thing works:

 in swf B:

 private function click(e:MouseEvent):void {

  e.target.mouseEnabled = false;

 }

 This works on first click, since the Loader target is disabled. Then, I'm
 able to click on under movieclip, the movieclip A. But I can't leave user
 clicks... I need to disable before any user interaction... The big
 question
 is, why is it getting a Loader target?? How can I disable Loader mouse
 interaction?

 Thanks so much...

 --
 Fabio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130




 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 __ NOD32 3909 (20090304) Informatie __

 Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
 http://www.nod32.nl



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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] advice to ms word/xml

2009-03-05 Thread Fabio Pinatti
Hello list,

not a question, just an advice with a problem I was fighting here and to
help the ones that can have it too.. When populating a xml content, never
paste directly the text from word or other editor that preserves any extra
formatting. For any reason, some chars (invisible) were breaking my text
only in browser, but into flash it worked now... I stay hours to see that
the problem wasn't my code... =) So, first copy the text to notepad, and
then to your xml, in case you don't use notepad as xml editor.

Hope I help some XML souls,

Best

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: mouseEnabled Loader issue

2009-03-05 Thread Fabio Pinatti
That's great.. I see now I have to setup not only movieclip, but Loader as
well for some cases.

Great explanation, thank you :)

Best Regards,

F

On Thu, Mar 5, 2009 at 11:17 AM, Dennis - I Sioux den...@isioux.nl wrote:

 Ah.. sorry i was reading it wrong..

 Your struture is
 Stage of B.swf
  B_mc
   Loader of A.swf
A_mc

 If you would set a B_mc.mouseEnabled = false; ... and listen for mouse
 events on the stage of B..
 and would click on A_mc .. your B stage would get an event with the target
 of the value: loader of A.swf.

 If you would set the loader Object o mouseEnabled false aswell.. you will
 only get an event from the target A_mc.

 As for the question about loader Object... yes every stage has a loaderinfo
 .. you can use this to do preloading or access vars that are given by html
 to your swf.

 Good luck!

 With kind regards,

 Dennis
 Isioux


 - Original Message - From: Fabio Pinatti fpina...@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, March 05, 2009 1:17 PM
 Subject: Re: [Flashcoders] Re: mouseEnabled Loader issue


  Hello Dennis,

 thank you, but one question. In the case, my MovieClip B wasn't loaded by
 a
 Loader Object. I mean, it is a simple movieclip in stage. Even that way
 has
 it a Loader? I thought just elements loaded with Loader class had it...

 Thank you!
 Fabio

 On Thu, Mar 5, 2009 at 7:48 AM, Dennis - I Sioux den...@isioux.nl
 wrote:

  Hey Fabio,

 You disabled the Movieclip in B .. but the b.swf was still loaded into a
 loader object..
 This loader object still catched the mouseevent.. so b didn't catch it..
 but b is a part of the total swf/loaderObject ..so the loader still
 caught
 it.

 Hope this is clear:)

 Dennis
 Isioux

 - Original Message - From: Fabio Pinatti fpina...@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, March 05, 2009 3:32 AM
 Subject: [Flashcoders] Re: mouseEnabled Loader issue


  Hello again,


 wow, I don't make idea what, how or why, but that solved my problem:

 *mcB.loaderInfo.loader.mouseEnabled = false;*

 (I put that on my swf B, the top level swf). That permitted me disable
 Loader mouseChildren and access my level A.

 Any explanation why this happens, would be great...

 Thank you!


 On Wed, Mar 4, 2009 at 11:15 PM, Fabio Pinatti fpina...@gmail.com
 wrote:

  Hello flashcoders,


 I'm having some issues with some target things, in as3. I need to
 access
 a
 movieclip A under a movieclip B. Movieclip A is in a swf, and B in
 other
 above it. My first try was mouseEnabled. but it didn't work. The weird
 is,
 if I put a mouse click in the stage of movie that has movieclip B (that
 is
 the one I'm not having sucess in disable). the event.target returns a
 Loader
 object. Why is this happening? I thought I could just use mouseEnabled
 =
 false to access lower level movieclips, but for different movies, seems
 that
 that Loader preserves a hit area, that I don't know how to disable.
 Actually, one thing works:

 in swf B:

 private function click(e:MouseEvent):void {

 e.target.mouseEnabled = false;

 }

 This works on first click, since the Loader target is disabled. Then,
 I'm
 able to click on under movieclip, the movieclip A. But I can't leave
 user
 clicks... I need to disable before any user interaction... The big
 question
 is, why is it getting a Loader target?? How can I disable Loader mouse
 interaction?

 Thanks so much...

 --
 Fabio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130




 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 __ NOD32 3909 (20090304) Informatie __

 Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
 http://www.nod32.nl



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




 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 __ NOD32 3910 (20090305) Informatie __

 Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
 http://www.nod32.nl



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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] advice to ms word/xml

2009-03-05 Thread Fabio Pinatti
you didn't get it. Clients send content in word. My problem was copy/paste
that content.

On Thu, Mar 5, 2009 at 4:58 PM, Joel Stransky stranskydes...@gmail.comwrote:

 why on earth would you use Word to edit xml?

 On Thu, Mar 5, 2009 at 8:13 AM, Fabio Pinatti fpina...@gmail.com wrote:

  Hello list,
 
  not a question, just an advice with a problem I was fighting here and to
  help the ones that can have it too.. When populating a xml content, never
  paste directly the text from word or other editor that preserves any
 extra
  formatting. For any reason, some chars (invisible) were breaking my text
  only in browser, but into flash it worked now... I stay hours to see that
  the problem wasn't my code... =) So, first copy the text to notepad, and
  then to your xml, in case you don't use notepad as xml editor.
 
  Hope I help some XML souls,
 
  Best
 
  --
  Fábio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] advice to ms word/xml

2009-03-05 Thread Fabio Pinatti
flashdevelop is the best all-in-one

On Thu, Mar 5, 2009 at 7:31 PM, Cor c...@chello.nl wrote:

 Or FlashDevelop

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Juan
 Anzaldo
 Sent: donderdag 5 maart 2009 22:14
 To: Flash Coders List
 Subject: Re: [Flashcoders] advice to ms word/xml

 You can use dreamweaver in code view

  Ing. Juan Anzaldo
 Tel Cel.614 427-6523
 Nextel.  72*8*29809
 Blog : http://janzaldo.wordpress.com




 
 From: Joel Stransky stranskydes...@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, March 5, 2009 1:51:44 PM
 Subject: Re: [Flashcoders] advice to ms word/xml

 ah didn't read it that way.


 On Thu, Mar 5, 2009 at 3:37 PM, Fabio Pinatti fpina...@gmail.com wrote:

  you didn't get it. Clients send content in word. My problem was
 copy/paste
  that content.
 
  On Thu, Mar 5, 2009 at 4:58 PM, Joel Stransky stranskydes...@gmail.com
  wrote:
 
   why on earth would you use Word to edit xml?
  
   On Thu, Mar 5, 2009 at 8:13 AM, Fabio Pinatti fpina...@gmail.com
  wrote:
  
Hello list,
   
not a question, just an advice with a problem I was fighting here and
  to
help the ones that can have it too.. When populating a xml content,
  never
paste directly the text from word or other editor that preserves any
   extra
formatting. For any reason, some chars (invisible) were breaking my
  text
only in browser, but into flash it worked now... I stay hours to see
  that
the problem wasn't my code... =) So, first copy the text to notepad,
  and
then to your xml, in case you don't use notepad as xml editor.
   
Hope I help some XML souls,
   
Best
   
--
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
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
  
 
 
 
  --
  Fábio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  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
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.0.237 / Virus Database: 270.11.8/1985 - Release Date: 03/05/09
 07:54:00


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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: mouseEnabled Loader issue

2009-03-04 Thread Fabio Pinatti
Hello again,

wow, I don't make idea what, how or why, but that solved my problem:

*mcB.loaderInfo.loader.mouseEnabled = false;*

(I put that on my swf B, the top level swf). That permitted me disable
Loader mouseChildren and access my level A.

Any explanation why this happens, would be great...

Thank you!


On Wed, Mar 4, 2009 at 11:15 PM, Fabio Pinatti fpina...@gmail.com wrote:

 Hello flashcoders,

 I'm having some issues with some target things, in as3. I need to access a
 movieclip A under a movieclip B. Movieclip A is in a swf, and B in other
 above it. My first try was mouseEnabled. but it didn't work. The weird is,
 if I put a mouse click in the stage of movie that has movieclip B (that is
 the one I'm not having sucess in disable). the event.target returns a Loader
 object. Why is this happening? I thought I could just use mouseEnabled =
 false to access lower level movieclips, but for different movies, seems that
 that Loader preserves a hit area, that I don't know how to disable.
 Actually, one thing works:

 in swf B:

 private function click(e:MouseEvent):void {

   e.target.mouseEnabled = false;

 }

 This works on first click, since the Loader target is disabled. Then, I'm
 able to click on under movieclip, the movieclip A. But I can't leave user
 clicks... I need to disable before any user interaction... The big question
 is, why is it getting a Loader target?? How can I disable Loader mouse
 interaction?

 Thanks so much...

 --
 Fabio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] mouseEnabled Loader issue

2009-03-04 Thread Fabio Pinatti
Hello flashcoders,

I'm having some issues with some target things, in as3. I need to access a
movieclip A under a movieclip B. Movieclip A is in a swf, and B in other
above it. My first try was mouseEnabled. but it didn't work. The weird is,
if I put a mouse click in the stage of movie that has movieclip B (that is
the one I'm not having sucess in disable). the event.target returns a Loader
object. Why is this happening? I thought I could just use mouseEnabled =
false to access lower level movieclips, but for different movies, seems that
that Loader preserves a hit area, that I don't know how to disable.
Actually, one thing works:

in swf B:

private function click(e:MouseEvent):void {

  e.target.mouseEnabled = false;

}

This works on first click, since the Loader target is disabled. Then, I'm
able to click on under movieclip, the movieclip A. But I can't leave user
clicks... I need to disable before any user interaction... The big question
is, why is it getting a Loader target?? How can I disable Loader mouse
interaction?

Thanks so much...

-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] HTMLLoader problem

2009-02-23 Thread Fabio Pinatti
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/html/HTMLLoader.html

On Mon, Feb 23, 2009 at 10:36 AM, Lehr, Theodore M (N-SGIS) 
theodore.m.l...@lmco.com wrote:

 I'm having a funny issue with HTMLLoader.  I'm getting a 1046: Type was
 not found or was not a compile-time constant: HTMLLoader. Error for the
 line of code below.

 public var _htmlLoader:HTMLLoader = new HTMLLoader();

 I'm importing HTMLLoader and URLLoader.  The odd part to me is the code
 I am using to create a simple browser window works perfectly for an AIR
 application, but when I try it in a Flash program I get the error.  Is
 HTMLLoader only for AIR?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Fabio Pinatti
Hello guru list,

A basic question. A designer setup a fla file, with a lot of textfields.
He'd adjusted font size, spacing, leading, etc. When I'll use his fla, I
have to convert all static fields into dynamic fields, and all looks good.
The question and problem is, when I compile and set a text for those dynamic
textfields, the textfield loses all formatting it had, so, I need to rewrite
via TextFormat. Am I doing something wrong, or isn't possible use timeline
text formatting in runtime?

Thanks so much,

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Fabio Pinatti
the fonts are embedded. The problem actually isn't the font appears, because
it's. The problem is, seems after I changed the text of an existing
textfield, it formatting is gone.

Tks
F

On Fri, Jan 16, 2009 at 12:51 PM, Cor c...@chello.nl wrote:

 With dynamic fields you NEED to embed the fonts or set it through a class,
 a
 CSS or TextFormat.

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Fabio
 Pinatti
 Sent: vrijdag 16 januari 2009 13:06
 To: Flash Coders List
 Subject: [Flashcoders] [flash textfield] lose formatting

 Hello guru list,

 A basic question. A designer setup a fla file, with a lot of textfields.
 He'd adjusted font size, spacing, leading, etc. When I'll use his fla, I
 have to convert all static fields into dynamic fields, and all looks good.
 The question and problem is, when I compile and set a text for those
 dynamic
 textfields, the textfield loses all formatting it had, so, I need to
 rewrite
 via TextFormat. Am I doing something wrong, or isn't possible use timeline
 text formatting in runtime?

 Thanks so much,

 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.10.8/1897 - Release Date: 16-1-2009
 6:52


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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Fabio Pinatti
Hello Glen,

hey, that's it! I didn't know that it was required to do, with simple
textfields created in authortime. Flash could not lost the formatting unless
we specify, don't you think? =)

Thanks so much for you, my question is clear now!

Fabio


On Fri, Jan 16, 2009 at 1:47 PM, Glen Pike g...@engineeredarts.co.ukwrote:

 Hi,

   You can do this each time you add text with AS:

   //Get the text format before you change the text.
   var tf:TextFormat = myTextField.getTextFormat();

   myTextField.html = newText;

   myTextField.setTextFormat(tf);

   Glen


 Fabio Pinatti wrote:

 the fonts are embedded. The problem actually isn't the font appears,
 because
 it's. The problem is, seems after I changed the text of an existing
 textfield, it formatting is gone.

 Tks
 F

 On Fri, Jan 16, 2009 at 12:51 PM, Cor c...@chello.nl wrote:



 With dynamic fields you NEED to embed the fonts or set it through a
 class,
 a
 CSS or TextFormat.

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Fabio
 Pinatti
 Sent: vrijdag 16 januari 2009 13:06
 To: Flash Coders List
 Subject: [Flashcoders] [flash textfield] lose formatting

 Hello guru list,

 A basic question. A designer setup a fla file, with a lot of textfields.
 He'd adjusted font size, spacing, leading, etc. When I'll use his fla, I
 have to convert all static fields into dynamic fields, and all looks
 good.
 The question and problem is, when I compile and set a text for those
 dynamic
 textfields, the textfield loses all formatting it had, so, I need to
 rewrite
 via TextFormat. Am I doing something wrong, or isn't possible use
 timeline
 text formatting in runtime?

 Thanks so much,

 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.10.8/1897 - Release Date:
 16-1-2009
 6:52


 ___
 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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with Windows Projector, Fullscreen and Video

2008-12-17 Thread Fabio Pinatti
I had the following problem recently: I was loading a flv for a website
intro, and forcing a change of display state to fullscreen. The video wasn't
loading and the website stops. Since it's a security restriction the force
full screen in latest flash player, I guess that's why it was happening.

 What I did was a kind of splash screen with a button, and user is required
to click to change display state, and all back work again.

Regards,
Pinatti

On Wed, Dec 17, 2008 at 2:02 PM, Cor c...@chello.nl wrote:

 Just guessing: could it be a codec problem??

 HTH
 Cor

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Daniel
 Soares
 Sent: woensdag 17 december 2008 15:01
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Problem with Windows Projector, Fullscreen and Video

 Hello,

 This is my first e-mail to the list and I have a problem:

 I have made a video player using FLVPlayback component and loading an
 external flv file (on2 VP6 codec).
 The file output is a Windows Project, with the full screen enabled.
 It's working very well, but in one of the PC's I have tested (in the
 others,
 it works fine) the video does not display. Everything works (sound,
 controls
 and close button) but the video.
 If I exit the full screen mode, the video displays.

 The player's version is 9, the Flash IDE version is CS3, the action script
 version is AS3 and I've already used the fullScreenTakeOver set as false.

 Thanks =)
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.9.19/1853 - Release Date: 17-12-2008
 8:31

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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Fabio Pinatti
I just finished developing an english website, with arabic (
http://www.nakheelharbour.com/).

Actually the arabic isnt ready due the complications I found in my way. I
tried a lot of things... Load xmls with arabic text, load css to align to
right, use system fonts, embedding fonts, etc etc etc. We had feedback from
arabic client, and he said that in all cases, the text seems wrong for him.
In our eastern computers, the text was right, but when they test, the text
changes a lot and is broken, without their ligatures. Honestly, I found a
pain in the ass make it work, dont know if CS4 have support for unicode
chars, and I finished doing a very boring alternative: Putting images or
vectors in arabic version.

Mike, even when you finish your work, make sure someone with arabic OS make
tests of it.

Best,
Fabio


On Thu, Dec 4, 2008 at 2:52 PM, Glen Pike [EMAIL PROTECTED] wrote:

 Hi,

 This is just a thought, but could you export the file as a CSV and use some
 kind of scripting language to generate an XML file - I may be way off, but
 you could set language options for PHP which might mean you are reading in
 the same charset as you are writing???

 I don't have any experience of dealing with language stuff in PHP, but it
 was an idea...

 Glen


 Mike Grunwald wrote:

 OK... I think I've reached the end of the internet as well as the end of
 my patients.

 I've been trying to figure out a way to take translations that I've
 received in an Excel spreadsheet and paste them into an XML document. The
 XML is UTF-8 and it's plain text (of course). No matter what editor (Flex
 Builder 3, Dreamweaver, Text Edit, WordPad, NotePad, Word, etc.) or OS (OSX
 10.4, Windows XP) or combination of the two, it seems that when I try to
 combine the eastern translation with western markup (XML tags, or even
 western characters for that matter), as soon as I drop in a single
 character, if flips the orientation of the translated Arabic text?!?

 Everything that I find on the internet leads me hopeful down a path of
 ultimate disappointment. I know that I'm not the only one with this problem
 and I'm sure one of you has experienced this. Please let me in on you
 secrets. I beg you...

 Let me just clarify—My problem is not font related (I've got that all
 sorted out), and for the most part it's not really Flash related (except for
 the fact that I'm using this XML content for dynamic text fields). this list
 is probably not the proper place for this question, but I'm out of options
 and I thinking that I'm going to have to scrap some of the digging I've done
 in relation to getting text to display properly and make alterations to my
 application to load images instead of live type.

 Somebody... Anybody Help a brotha out!



 ___
 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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] singleton returns null

2008-11-24 Thread Fabio Pinatti
I thought it was too (didn't check the existence of _instance), but I was
sure the class was initialized and _instance != null, since it's a document
class, and even after I changed the code, it keeps giving me the error, and
the really weird thing is, it works if I declare a dummy variable, with the
type of class that returns null.. In my example, if I put a private var
_it:SecondClass, the _instance that was null, now returns a valid class
instance.. I'm starting thinking about that it can be a framework thing, and
not the singleton syntax, that is really simple..

Thanks for all, anyway!
Pinatti


On Fri, Nov 21, 2008 at 5:21 PM, Ricky Blaha [EMAIL PROTECTED] wrote:

 Fábio,

 The reason you are seeing null is because your getInstance() does not
 assign
 the instance of SecondClass to _instance if it hasn't already been
 instantiated:

   public static function getInstance():SecondClass {
  return _instance; //_instance has never been assigned
 anything
   }

 vs.

   public static function getInstance():SecondClass {
  if (_instance == null)
   _instance = new SecondClass();
 return _instance;
   }


 ~Ricky
 http://codingjourney.blogspot.com


 On Fri, Nov 21, 2008 at 12:49 PM, Fabio Pinatti [EMAIL PROTECTED]
 wrote:

  Sure thing!
 
  In my main document class, I have
 
  class BaseClass {
 
public function BaseClass() {
 
}
 
  }
 
 
  I have a second document class, that is loaded inside the first one.
 
  class SecondClass {
 
public static var  _instance:SecondClass;
 
public function SecondClass() {
  _instance = this;
 }
 
 public static function getInstance():SecondClass {
   return _instance;
 }
 
 
  }
 
  and my third document class, that is a movie loaded inside that same
  document as above.
 
  class ThirdClass {
 
public function ThirdClass() {
  trace (SecondClass.getInstance());
 }
 
 
  }
 
  In Gaia, these 3 classes are respectively Main.as, Nav.as and
 HomePage.as.
  In that sample I wrote, the output is null. If I declare in my base
 class,
  something like private var _it:SecondClass, even I didn't init that var,
  and
  compile the app again, magically, it outputs rightly my class instance.
 The
  weird thing is, for example, If I try the same getInstance() from
  BaseClass,
  for example, it returns correctly too. Im wondering why some classes you
  can
  get instance, and for other, you must declare a var, like my
 workaround...
 
  Thats weird, no??
 
  Thanks,
 
  Pinatti
 
  On Fri, Nov 21, 2008 at 12:39 PM, Hans Wichman 
  [EMAIL PROTECTED] wrote:
 
   Hi Fabio,
  
   could you maybe post 2 examples, one that works, and one that doesn't?
   A picture says more than a thousand words:)
  
   greetz
   JC
  
   On Fri, Nov 21, 2008 at 2:19 PM, Fabio Pinatti [EMAIL PROTECTED]
  wrote:
Hello,
   
About the syntax, I meant the second one, actually, declare the
  _instance
just in constructor, but I just noticed a very weird thing...When I
 get
   null
as I was referencing, if I just declare in my main class, a var
 casting
   the
type of class that was returning null, it'll work. Seems compiler
 see
   that
the class exists, and so it returns what I expect. It's really weird,
   since
the singleton pattern is still the same. If i don't declare this
 dummy
   var
with the type I want, even I'm sure the instance exists, it returns
  null.
   I
really don't know why this is happening, but it was the workaround
 I've
found.
   
About the singleton implementation, I agree with you isn't the best
  thing
   to
do, but in my case, I'm using that for 3 document classes, that for
  sure
I'll use just one single time, so, it's the quickest solution I
 guess.
   
And very nice your approach about minimize Singleton use. I'll take a
   try,
it can save a lot of time.
   
If you got my problem (i know it's a quite mess to explain), would be
   great
know why this happens. Maybe it's a Gaia thing that I don't know how
 to
   use,
but I was wondering if it was being a stupidity of mine with
 singleton
concept, since I'm a bit new with oop.
   
Thanks a lot,
Pinatti
   
On Fri, Nov 21, 2008 at 10:53 AM, Hans Wichman 
[EMAIL PROTECTED] wrote:
   
Hi,
   
im not sure about your syntax.
   
This:
   
class MyClass {
   
 public static var _instance:MyClass = this;
   
   
}
   
will not work.
   
You are looking for something like:
   
class MyClass {
   
 public static var _instance:MyClass = null;
   
 public function MyClass () {
   _instance = this;
 }
}
   
Although I have to add this is the most rudimentary and worst
implementation I can come up with, but it will work.
It will allow public access to your instance variables

[Flashcoders] singleton returns null

2008-11-21 Thread Fabio Pinatti
Hello list,

I've been having a question since a time ago... I'm using a flash framework
within my websites (Gaia), and between the classes, I use some singleton
pattern to communicate between them. This way, theorically, I can get any
class instance from another, and I don't need to know the path for each
instantiated class on stage. To clarify, imagine I have a home and a form
page. I could get the reference for home page from form page, just setting
up a static var:

var _home:HomePage = this;

and through a singleton, I could get a HomePage._home, from any point of my
application, right?

The point is, for some classes, that works and returns the class instance.
For other, that doesn't works and returns null, even I'm sure the class is
with the _home var setted up. I posted this question here, because I'm
wondering if this can be some problem (of mine) with Singleton pattern, and
not with framework. Why does Singleton sometimes works, and other times,
doesn't? Did you have some similiar problem getting classes instances, like
me?

Thanks, and sorry if it's a really stupid question.

Kind Regards,

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] singleton returns null

2008-11-21 Thread Fabio Pinatti
Hello,

About the syntax, I meant the second one, actually, declare the _instance
just in constructor, but I just noticed a very weird thing...When I get null
as I was referencing, if I just declare in my main class, a var casting the
type of class that was returning null, it'll work. Seems compiler see that
the class exists, and so it returns what I expect. It's really weird, since
the singleton pattern is still the same. If i don't declare this dummy var
with the type I want, even I'm sure the instance exists, it returns null. I
really don't know why this is happening, but it was the workaround I've
found.

About the singleton implementation, I agree with you isn't the best thing to
do, but in my case, I'm using that for 3 document classes, that for sure
I'll use just one single time, so, it's the quickest solution I guess.

And very nice your approach about minimize Singleton use. I'll take a try,
it can save a lot of time.

If you got my problem (i know it's a quite mess to explain), would be great
know why this happens. Maybe it's a Gaia thing that I don't know how to use,
but I was wondering if it was being a stupidity of mine with singleton
concept, since I'm a bit new with oop.

Thanks a lot,
Pinatti

On Fri, Nov 21, 2008 at 10:53 AM, Hans Wichman 
[EMAIL PROTECTED] wrote:

 Hi,

 im not sure about your syntax.

 This:

 class MyClass {

  public static var _instance:MyClass = this;


 }

 will not work.

 You are looking for something like:

 class MyClass {

  public static var _instance:MyClass = null;

  public function MyClass () {
_instance = this;
  }
 }

 Although I have to add this is the most rudimentary and worst
 implementation I can come up with, but it will work.
 It will allow public access to your instance variables and overwrite
 any instance already there when you create a page of the same class as
 well :).

 As an another example how cool my application registry that I posted
 about yesterday is :)) (shameless self promotion), imagine doing this
 in each page:

 _application.register (this);

 and when you need a page you do:

 HomePage(_application.getRegistree(HomePage))

 if you need to get all pages you do:

 pageArray = _application.getRegistrees (AbstractPage) (or page can't
 recall the gaia page superclass at the moment).

 You can make the _application a singleton if you wish Application.etc
 or you can call it PageRegistry or whatever, the idea remains the
 same. This will reduce the amount of singletons by far. It also shows
 how easy it is to integrate this powerfull approach into whatever
 workflow/framework you work with.

 regards,
 JC

 On Fri, Nov 21, 2008 at 1:06 PM, Fabio Pinatti [EMAIL PROTECTED] wrote:
  Hello list,
 
  I've been having a question since a time ago... I'm using a flash
 framework
  within my websites (Gaia), and between the classes, I use some singleton
  pattern to communicate between them. This way, theorically, I can get any
  class instance from another, and I don't need to know the path for each
  instantiated class on stage. To clarify, imagine I have a home and a form
  page. I could get the reference for home page from form page, just
 setting
  up a static var:
 
  var _home:HomePage = this;
 
  and through a singleton, I could get a HomePage._home, from any point of
 my
  application, right?
 
  The point is, for some classes, that works and returns the class
 instance.
  For other, that doesn't works and returns null, even I'm sure the class
 is
  with the _home var setted up. I posted this question here, because I'm
  wondering if this can be some problem (of mine) with Singleton pattern,
 and
  not with framework. Why does Singleton sometimes works, and other times,
  doesn't? Did you have some similiar problem getting classes instances,
 like
  me?
 
  Thanks, and sorry if it's a really stupid question.
 
  Kind Regards,
 
  --
  Fábio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] singleton returns null

2008-11-21 Thread Fabio Pinatti
Sure thing!

In my main document class, I have

class BaseClass {

   public function BaseClass() {

   }

}


I have a second document class, that is loaded inside the first one.

class SecondClass {

   public static var  _instance:SecondClass;

   public function SecondClass() {
 _instance = this;
}

public static function getInstance():SecondClass {
  return _instance;
}


}

and my third document class, that is a movie loaded inside that same
document as above.

class ThirdClass {

   public function ThirdClass() {
 trace (SecondClass.getInstance());
}


}

In Gaia, these 3 classes are respectively Main.as, Nav.as and HomePage.as.
In that sample I wrote, the output is null. If I declare in my base class,
something like private var _it:SecondClass, even I didn't init that var, and
compile the app again, magically, it outputs rightly my class instance. The
weird thing is, for example, If I try the same getInstance() from BaseClass,
for example, it returns correctly too. Im wondering why some classes you can
get instance, and for other, you must declare a var, like my workaround...

Thats weird, no??

Thanks,

Pinatti

On Fri, Nov 21, 2008 at 12:39 PM, Hans Wichman 
[EMAIL PROTECTED] wrote:

 Hi Fabio,

 could you maybe post 2 examples, one that works, and one that doesn't?
 A picture says more than a thousand words:)

 greetz
 JC

 On Fri, Nov 21, 2008 at 2:19 PM, Fabio Pinatti [EMAIL PROTECTED] wrote:
  Hello,
 
  About the syntax, I meant the second one, actually, declare the _instance
  just in constructor, but I just noticed a very weird thing...When I get
 null
  as I was referencing, if I just declare in my main class, a var casting
 the
  type of class that was returning null, it'll work. Seems compiler see
 that
  the class exists, and so it returns what I expect. It's really weird,
 since
  the singleton pattern is still the same. If i don't declare this dummy
 var
  with the type I want, even I'm sure the instance exists, it returns null.
 I
  really don't know why this is happening, but it was the workaround I've
  found.
 
  About the singleton implementation, I agree with you isn't the best thing
 to
  do, but in my case, I'm using that for 3 document classes, that for sure
  I'll use just one single time, so, it's the quickest solution I guess.
 
  And very nice your approach about minimize Singleton use. I'll take a
 try,
  it can save a lot of time.
 
  If you got my problem (i know it's a quite mess to explain), would be
 great
  know why this happens. Maybe it's a Gaia thing that I don't know how to
 use,
  but I was wondering if it was being a stupidity of mine with singleton
  concept, since I'm a bit new with oop.
 
  Thanks a lot,
  Pinatti
 
  On Fri, Nov 21, 2008 at 10:53 AM, Hans Wichman 
  [EMAIL PROTECTED] wrote:
 
  Hi,
 
  im not sure about your syntax.
 
  This:
 
  class MyClass {
 
   public static var _instance:MyClass = this;
 
 
  }
 
  will not work.
 
  You are looking for something like:
 
  class MyClass {
 
   public static var _instance:MyClass = null;
 
   public function MyClass () {
 _instance = this;
   }
  }
 
  Although I have to add this is the most rudimentary and worst
  implementation I can come up with, but it will work.
  It will allow public access to your instance variables and overwrite
  any instance already there when you create a page of the same class as
  well :).
 
  As an another example how cool my application registry that I posted
  about yesterday is :)) (shameless self promotion), imagine doing this
  in each page:
 
  _application.register (this);
 
  and when you need a page you do:
 
  HomePage(_application.getRegistree(HomePage))
 
  if you need to get all pages you do:
 
  pageArray = _application.getRegistrees (AbstractPage) (or page can't
  recall the gaia page superclass at the moment).
 
  You can make the _application a singleton if you wish Application.etc
  or you can call it PageRegistry or whatever, the idea remains the
  same. This will reduce the amount of singletons by far. It also shows
  how easy it is to integrate this powerfull approach into whatever
  workflow/framework you work with.
 
  regards,
  JC
 
  On Fri, Nov 21, 2008 at 1:06 PM, Fabio Pinatti [EMAIL PROTECTED]
 wrote:
   Hello list,
  
   I've been having a question since a time ago... I'm using a flash
  framework
   within my websites (Gaia), and between the classes, I use some
 singleton
   pattern to communicate between them. This way, theorically, I can get
 any
   class instance from another, and I don't need to know the path for
 each
   instantiated class on stage. To clarify, imagine I have a home and a
 form
   page. I could get the reference for home page from form page, just
  setting
   up a static var:
  
   var _home:HomePage = this;
  
   and through a singleton, I could get a HomePage._home, from any point
 of
  my
   application

Re: [Flashcoders] Texfield.htmlText + Arial + balise b/b = nothing, keud

2008-11-12 Thread Fabio Pinatti
Try to create a second textfield, invisible, with bold checked. Flash engine
uses it to get embedded fonts, even you don't use it.

I don't know if my workaround is a quite dirty, but it works =)

Best
Pinatti

On Wed, Nov 12, 2008 at 12:47 PM, laurent [EMAIL PROTECTED] wrote:

 Hi

 I'm using simple Arial font in a dynamic textfield set to html = true.

 the br balise is understood but nothing happen for the bold one

 anyidea why ??

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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Bitmap distorting during pan

2008-10-30 Thread Fabio Pinatti
I mean use bitmapdata's draw method , with last parameter (smoothing) setted
to true.

mc1 = original image
mc2 = target empty bitmap

mc2.draw(mc1,null,null,null,null,true);

It's just a pseudo-code, but it may works well with dynamic loaded bitmaps.

Best,
Pinatti

On Thu, Oct 30, 2008 at 11:21 AM, Matt Muller [EMAIL PROTECTED]wrote:

 What do you mean copy the bitmapdata to another movieclip?

 do you mean create a new bitmap using the bitmapdata, set smoothing to true
 and add that to a displayobject?

 cheers,

 MaTT



 On Wed, Oct 29, 2008 at 1:40 PM, Fabio Pinatti [EMAIL PROTECTED] wrote:

  copy the loaded image content with bitmapdata and smoothing = true to
  another movieclip. Or if it's in timeline, check allow bitmap smoothing
  in
  properties, from library.
 
  Best,
  Pinatti
 
  On Wed, Oct 29, 2008 at 11:24 AM, Matt Muller [EMAIL PROTECTED]
  wrote:
 
   Hi, I am panning a bitmap around on mouse position. It is distorting a
  bit
   when this happens. i.e there are some lines which run through it.
  
   Does anyone know how to stop this from happening?
  
   cheers,
  
   MaTT
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
  --
  Fábio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Bitmap distorting during pan

2008-10-29 Thread Fabio Pinatti
copy the loaded image content with bitmapdata and smoothing = true to
another movieclip. Or if it's in timeline, check allow bitmap smoothing in
properties, from library.

Best,
Pinatti

On Wed, Oct 29, 2008 at 11:24 AM, Matt Muller [EMAIL PROTECTED]wrote:

 Hi, I am panning a bitmap around on mouse position. It is distorting a bit
 when this happens. i.e there are some lines which run through it.

 Does anyone know how to stop this from happening?

 cheers,

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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Disabling Print Screen key

2008-10-23 Thread Fabio Pinatti
??
I think he wants avoid screen grab, not take it. It's a good point, I've
never heard about a way to do it. Maybe with JS?

Pinatti

On Thu, Oct 23, 2008 at 3:24 PM, Hans Wichman 
[EMAIL PROTECTED] wrote:

 If they want to grab your screen... they will...
 http://www.google.com/search?q=screen+grabber


 On Thu, Oct 23, 2008 at 5:32 PM, Andrew Murphy [EMAIL PROTECTED]
 wrote:
  Hi. :)
 
  I'm attempting to disable using the Print Screen button for an AS3 movie
 on
  a web page.  The stage doesn't appear to fire a KeyboardEvent.KEY_DOWN
 when
  the Print Screen key is pressed.
 
  Is there a way to detect the Print Screen key?  Or another method for
  disabling the user's ability to do a Print Screen screen cap of a Flash
  movie?
 
 
  
  Andrew Murphy
  Interactive Media Specialist
  [EMAIL PROTECTED]
 
  Delvinia
  214 King Street West, Suite 214
  Toronto Canada M5H 3S6
 
  P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com
 
  CONFIDENTIALITY NOTICE
  This email message may contain privileged or confidential information. If
  you are not the intended recipient or received this communication by
 error,
  please notify the sender and delete the message without copying or
  disclosing it.
 
  AVIS DE CONFIDENTIALITÉ
  Ce message peut contenir de l'information légalement privilégiée ou
  confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu
 par
  erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
  détruire le contenu sans le communiquer a d'autres ou le reproduire.
 
 
 
  ___
  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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Disabling Print Screen key

2008-10-23 Thread Fabio Pinatti
btw, I cant live without stealing flash screen grabs. :)

On Thu, Oct 23, 2008 at 4:16 PM, Glen Pike [EMAIL PROTECTED]wrote:

 All your Flash are belong to us :)

 You can't stop them nicking - (stealing) - content, so just give them a
 substandard version, or make money from your IP in other ways.

 Fabio Pinatti wrote:

 ??

 I think he wants avoid screen grab, not take it. It's a good point, I've
 never heard about a way to do it. Maybe with JS?

 Pinatti

 On Thu, Oct 23, 2008 at 3:24 PM, Hans Wichman 
 [EMAIL PROTECTED] wrote:



 If they want to grab your screen... they will...
 http://www.google.com/search?q=screen+grabber


 On Thu, Oct 23, 2008 at 5:32 PM, Andrew Murphy [EMAIL PROTECTED]
 wrote:


 Hi. :)

 I'm attempting to disable using the Print Screen button for an AS3 movie


 on


 a web page.  The stage doesn't appear to fire a KeyboardEvent.KEY_DOWN


 when


 the Print Screen key is pressed.

 Is there a way to detect the Print Screen key?  Or another method for
 disabling the user's ability to do a Print Screen screen cap of a Flash
 movie?


 
 Andrew Murphy
 Interactive Media Specialist
 [EMAIL PROTECTED]

 Delvinia
 214 King Street West, Suite 214
 Toronto Canada M5H 3S6

 P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com

 CONFIDENTIALITY NOTICE
 This email message may contain privileged or confidential information.
 If
 you are not the intended recipient or received this communication by


 error,


 please notify the sender and delete the message without copying or
 disclosing it.

 AVIS DE CONFIDENTIALITÉ
 Ce message peut contenir de l'information légalement privilégiée ou
 confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu


 par


 erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
 détruire le contenu sans le communiquer a d'autres ou le reproduire.



 ___
 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









 --

 Glen Pike
 01326 218440
 www.glenpike.co.uk http://www.glenpike.co.uk


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




-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] weird bug in flash player 10 - firefox

2008-10-20 Thread Fabio Pinatti
Hello list,

I just saw a too weird bug, in a website that was working fine in all
browsers and flash player 9...

http://www.nakheelharbour.com

There a lot of rendering errors, like the intro, with the upper and bottom
corner of star in a ugly color and line format.. and inside website, when
changes section, it was supposed to do a alpha between background images,
not that greeny horrible thing that is now..

Did anyone already run this problem with FP 10 ? I tested in two pc's using
firefox, on IE it looks fine..

Thanks,
-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] addChild multiple instances of a loader

2008-09-17 Thread Fabio Pinatti
Hi all!

I'm preloading some swf's and images, and I want use some same loaded
instances for some movieclips. For example, I load a file img.jpg. and
on complete of it, I want add the loaded bitmap to 10 movieclips. When
I addChild, all movieclips are overrided and just the last one has the
loaded content. With images I can use bitmap data for copying data,
but and if I load swfs or whatever?

I've googled but didn't find any clear, at least for me. Can you help
me pls, gurus?
,
Thanks so much

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130

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


[Flashcoders] flv lagging when changes the frame via code

2008-07-25 Thread Fabio Pinatti
Hello all!

I'm doing a kind of navigation application using a flv embedded on
flash. When I use a command to play it, it runs well.. But if I go to
to a specific frame backwards the current frame, it gives a small lag
before plays again... Is it a codec restriction? Any way to avoid that
lag, using only a big flv, like my situation?

Thanks so much,

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130

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


Re: [Flashcoders] flv lagging when changes the frame via code

2008-07-25 Thread Fabio Pinatti
On Fri, Jul 25, 2008 at 3:19 PM, Hans Wichman
[EMAIL PROTECTED] wrote:
 Hi,
 might not be your issue, but are you telling the timeline on which the flv
 is embedded to go back, or the flv itself?
 greetz
 JC

 On Fri, Jul 25, 2008 at 7:18 PM, Fabio Pinatti [EMAIL PROTECTED] wrote:

 Hello all!

 I'm doing a kind of navigation application using a flv embedded on
 flash. When I use a command to play it, it runs well.. But if I go to
 to a specific frame backwards the current frame, it gives a small lag
 before plays again... Is it a codec restriction? Any way to avoid that
 lag, using only a big flv, like my situation?

 Thanks so much,

 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130

 ___
 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


Hello,

I'm trying control the timeline where it is embedded. Then, if I play
it goes well.. but if in frame 100, I call a gotoAndPlay(50), for
example, it backs to frame 50, give a small lag, and then plays.

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130

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


Re: [Flashcoders] flv lagging when changes the frame via code

2008-07-25 Thread Fabio Pinatti
On Fri, Jul 25, 2008 at 4:48 PM, Zeh Fernando [EMAIL PROTECTED] wrote:
 I'm trying control the timeline where it is embedded. Then, if I play
 it goes well.. but if in frame 100, I call a gotoAndPlay(50), for
 example, it backs to frame 50, give a small lag, and then plays.

 That's because when you go to a frame that does not contain a keyframe for
 the movie it has to actually go back in the movie until it finds a keyframe,
 and re-render it until the frame you want to see. Makes a backward playback
 impossible, for example.

 If you just have a few moments where you need it - ie, skipping to the
 middle of the movie - and you want to make the skipping performance a bit
 better, increasing the number of keyframes on your movie helps. Just export
 with 1 keyframe every second and see how it works.

 This will probably make your movie file bigger.

 There's no perfect solution, however. The only way to fix it completely is
 making all frames keyframes, which pretty much defeats the purpose of using
 a video file. You can only hope that a few more keyframes will work well
 enough.


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



Great... Guys, you really helped me. I know at least that is not
possible do miracles with flv encoding.

Thanks so much for clarifying me..

Best Regards,

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130

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


Re: [Flashcoders] removing all listeners from a dpo

2008-07-21 Thread Fabio Pinatti
On Sun, Jul 20, 2008 at 7:40 PM, Juan Pablo Califano 
[EMAIL PROTECTED] wrote:

 PD2:

 this line should be removed from the unregisterEventListener()

 _dispatcher.removeEventListener(type, listener, useCapture);

 since it will cause an infinite loop and the eventListener has already been
 removed in the caller anyway.

 So, to sum up:

  public function unregisterEventListener(type:String, listener:Function,
 useCapture:Boolean):void {

var i:int = _eventsList.length - 1;

   var cur:EventListenerData;

   while (i = 0) {
 cur = _eventsList[i] as EventListenerData;
if (cur.type == type  cur.listener == listener  cur.useCapture ==
 useCapture) {
// _dispatcher.removeEventListener(type, listener, useCapture);
  _eventsList.splice(i, 1);
}
i--;
}
  }


 Cheers
 Juan Pablo Califano


 2008/7/20, Juan Pablo Califano [EMAIL PROTECTED]:
 
  PD:
 
  I forgot to actually remove the eventListenerData from the list in the
  unregisterEventListener method of the Bookkeeper class. Looping backwards
  and adding _eventsList.splice(i, 1); should do it.
 
 
  Cheers
  Juan Pablo Califano
 
 
 
  2008/7/20, Juan Pablo Califano [EMAIL PROTECTED]:
 
  Hi,
 
  You could try to do your own bookkeeping, so you know what listeners are
  registered to an EventDispatcher object. You can have one class to hold
 that
  info in a list and write a method that loops through that list and
 remove
  all registered listeners. You'd still have to override the
 addEventListener
  and removeEventListener methods in the dispatcher object, to intercept
 those
  calls from external code and keep your bookkeeper in sync.
 
  Some code to illustrate it (keep mind that even though it compiles, this
  is untested and may be not the best idea).
 
  package
  {
   import flash.display.Sprite;
 
   public class Main extends Sprite
   {
private var _evtBookKeeper:EventBookkeeper;
 
public function Main():void
{
 _evtBookKeeper = new EventBookkeeper(this);
}
 
override public function addEventListener(type:String,
  listener:Function, useCapture:Boolean = false, priority:int = 0,
  useWeakReference:Boolean = false):void
{
 super.addEventListener(type, listener, useCapture, priority,
  useWeakReference);
 _evtBookKeeper.registerEventListener(type, listener, useCapture);
}
 
override public function removeEventListener(type:String,
  listener:Function, useCapture:Boolean = false):void
{
 super.removeEventListener(type, listener, useCapture);
 _evtBookKeeper.unregisterEventListener(type, listener, useCapture);
}
 
public function removeAllListeners():void {
 _evtBookKeeper.unregisterAndRemoveAll();
}
 
   }
  }
 
  //
  //
  //
 
  package
  {
   import flash.events.IEventDispatcher;
   import flash.utils.Dictionary;
 
   public class EventBookkeeper
   {
 
private var _eventsList:Array;
private var _dispatcher:IEventDispatcher;
 
public function EventBookkeeper(dispatcher:IEventDispatcher) {
 _eventsList = [];
}
 
public function registerEventListener(type:String, listener:Function,
  useCapture:Boolean):void {
 _eventsList.push(new EventListenerData(type,listener,useCapture));
}
 
public function unregisterEventListener(type:String,
 listener:Function,
  useCapture:Boolean):void {
 var len:int = _eventsList.length;
 var i:int = 0;
 
 var cur:EventListenerData;
 
 while (i  len) {
  cur = _eventsList[i] as EventListenerData;
  if (cur.type == type  cur.listener == listener  cur.useCapture
 ==
  useCapture) {
   _dispatcher.removeEventListener(type, listener, useCapture);
  }
  i++;
 }
}
 
public function unregisterAndRemoveAll():void {
 var len:int = _eventsList.length;
 var i:int = 0;
 
 var cur:EventListenerData;
 
 while (i  len) {
  cur = _eventsList[i] as EventListenerData;
  _dispatcher.removeEventListener(cur.type, cur.listener,
  cur.useCapture);
  i++;
 }
 
 _eventsList = [];
 
}
   }
 
  }
 
  //
  //
  //
 
  package
  {
 
   public class EventListenerData
   {
 
public var type:String;
public var listener:Function;
public var useCapture:Boolean;
 
public function
  EventListenerData(type:String,listener:Function,useCapture:Boolean) {
 this.type   = type;
 this.listener  = listener;
 this.useCapture = useCapture;
}
 
   }
 
  }
 
 
  2008/7/18, Fabio Pinatti [EMAIL PROTECTED]:
 
  Hi list,
 
  I'm wondering if I can have a generical function, that I can remove all
  listeners registered for an object. Imagine a button with 10 listeners,
  and
  I don`t need know which ones it are to remove. I simply call
  removeListeners(dpo) and that function does all work.
 
  Is there any way?
 
  Thanks so much,
 
  --
  Fábio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  Flashcoders mailing list

Re: [Flashcoders] Suddenly lots of 1065 Errors: Variable xxxxxx is not defined.

2008-07-18 Thread Fabio Pinatti
On Fri, Jul 18, 2008 at 5:29 PM, Benicio del Toro 
[EMAIL PROTECTED] wrote:

 Hi,

 I'm working on a quite large AS3 project in Flash and I'm closing to the
 end
 of it but suddenly my main file stopped compiling properly. There are no
 compilers errors, but the application doesn't seem to start, and I get tons
 of 1065:  'Variable xx is not defined' errors. I guess it lists most of
 my custom classes (there are probably around 50 different classes in the
 project, excluding simple indentifiers for the library assets.

 It all happened when I was editing some very non critical parts of the code
 (adjusting timings of movie subtitles), but at some point I picked up my
 phone and may have clicked on something unconsciously by mistake.  :-(

 I started looking into code, but honestly I don't know what may have caused
 it. Is there any obvious reason, that I should check in the first place?

 Please help, I spent last 1,5 month writing the damn thing and it should
 run
 on public on Monday...

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



Maybe you've marked off the Automatically Declare Stage Instances, did you
try see that?

Best

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] removing all listeners from a dpo

2008-07-18 Thread Fabio Pinatti
Hi list,

I'm wondering if I can have a generical function, that I can remove all
listeners registered for an object. Imagine a button with 10 listeners, and
I don`t need know which ones it are to remove. I simply call
removeListeners(dpo) and that function does all work.

Is there any way?

Thanks so much,

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] tracing height

2008-07-08 Thread Fabio Pinatti
On Tue, Jul 8, 2008 at 4:09 PM, Lehr, Theodore M (N-SGIS) 
[EMAIL PROTECTED] wrote:

 Ok - so I have tried the following:

 this.createEmptyMovieClip(img_mc, 999);
 var my_mcl:MovieClipLoader = new MovieClipLoader();

 mclListener.onLoadComplete = function(target_mc:MovieClip,
 status:Number):Void {
trace(onLoadComplete:  + target_mc);
 };

 my_mcl.addListener(mclListener);

 my_mcl.loadClip(http://www.helpexamples.com/flash/images/image1.jpg;,
 img_mc);

 and while the clip loads I am not getting a trace... that's really what
 I need

 Ted

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Gabino
 Travassos
 Sent: Tuesday, July 08, 2008 11:24 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] tracing height

 - Original Message -
 From: Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, July 08, 2008 8:56 AM
 Subject: [Flashcoders] tracing height


 I have:
 
 
 
  _root.imageMovie.loadMovie(stepImageArray[0]);
 
  sizeImage();
 
 
 
  function sizeImage () {
 
 trace(_root.imageMovie._height);
 
  }
 
 
 
  But I keep getting 0 I am guessing because the trace is fired before
  the
  image is loaded... how can I make sure this function does not fire
  until
  the image is loaded. I tried:
 
 
 
  _root.imageMovie.onLoad = function() {
 
 
 
  }
 
 
 
  But that does not seem to fire at all
 
 
 
  My ultimate goal is to control the size of the image that is being
  loaded to make sure it is not too big
 
 
 
  Thanks!

 Hi Theodore,

 There might be better ways than what I am using, but this works. For
 each image I create a new movieclip which onEnterFrame resizes the
 target loadMovie image to a set size, and then removes itself so it
 doesn't keep working needlessly.

 This is cut and pasted from a project where images are sourced from XML,

 so it might have some extraneous ...


   mrand=Math.round(Math.random()*3000);
 tname='img'+mrand;
 _root.createEmptyMovieClip(tname, imagedepth); imagedepth++;
 _root['img'+mrand].createEmptyMovieClip('md', imagedepth);

 _root['img'+mrand].md.loadMovie(images.childNodes[i].attributes['imgloc'
 ]);
 _root['img'+mrand]._x=images.childNodes[i].attributes['x'];
 _root['img'+mrand]._y=images.childNodes[i].attributes['y'];
 trace(images.childNodes[i].attributes['imgloc']);

 // image sizer
 mrand=Math.round(Math.random()*3000);
 sizer=tname+'sizer'+mrand; imagedepth++;
 _root.createEmptyMovieClip(sizer, imagedepth); imagedepth++;
 _root[sizer].pushw=images.childNodes[i].attributes['w'];
 _root[sizer].pushh=images.childNodes[i].attributes['h'];
 _root[sizer].clipname=tname;
 //trace(images.childNodes[i].attributes['w']);
 _root[sizer].onEnterFrame=function(){
  trace(this.clipname + ' ' + this.pushw + ' ' + this.pushh);
  _root[this.clipname]._width=this.pushw;
  _root[this.clipname]._height=this.pushh;
  //trace(this.clipname); // img0sizer
  if(!init){ init=1; }
  if((this.pushw)(this.pushh)(init30)){
// counts to 30 frames and quits, should be enough
   this.removeMovieClip();
  }
  init++;
 }



 ___
 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





Theodore, you code is almost right, you forgot only create the object that
will be used as listener.
Before set the onLoadComplete, add a line with:
mclListener = {};

And you'll have your working code.

I suggest you use onLoadInit instead onLoadComplete, because onLoadInit is
dispatched after content was fully loaded and initialized.

Gabino, use this code and you'll be able to get the dimensions of your
loaded movie as soon image is loaded.

Best,


-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] tracing height

2008-07-08 Thread Fabio Pinatti
On Tue, Jul 8, 2008 at 4:43 PM, Gabino Travassos [EMAIL PROTECTED]
wrote:

 According to the help files you need:
 var mclListener:Object = new Object();


 - Original Message - From: Lehr, Theodore M (N-SGIS) 
 [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, July 08, 2008 1:09 PM
 Subject: RE: [Flashcoders] tracing height



  Ok - so I have tried the following:

 this.createEmptyMovieClip(img_mc, 999);
 var my_mcl:MovieClipLoader = new MovieClipLoader();

 mclListener.onLoadComplete = function(target_mc:MovieClip,
 status:Number):Void {
   trace(onLoadComplete:  + target_mc);
 };

 my_mcl.addListener(mclListener);

 my_mcl.loadClip(http://www.helpexamples.com/flash/images/image1.jpg;,
 img_mc);

 and while the clip loads I am not getting a trace... that's really what
 I need

 Ted

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Gabino
 Travassos
 Sent: Tuesday, July 08, 2008 11:24 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] tracing height

 - Original Message - From: Lehr, Theodore M (N-SGIS) 
 [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, July 08, 2008 8:56 AM
 Subject: [Flashcoders] tracing height


  I have:



 _root.imageMovie.loadMovie(stepImageArray[0]);

 sizeImage();



 function sizeImage () {

   trace(_root.imageMovie._height);

 }



 But I keep getting 0 I am guessing because the trace is fired before
 the
 image is loaded... how can I make sure this function does not fire
 until
 the image is loaded. I tried:



 _root.imageMovie.onLoad = function() {



 }



 But that does not seem to fire at all



 My ultimate goal is to control the size of the image that is being
 loaded to make sure it is not too big



 Thanks!


 Hi Theodore,

 There might be better ways than what I am using, but this works. For
 each image I create a new movieclip which onEnterFrame resizes the
 target loadMovie image to a set size, and then removes itself so it
 doesn't keep working needlessly.

 This is cut and pasted from a project where images are sourced from XML,

 so it might have some extraneous ...


  mrand=Math.round(Math.random()*3000);
tname='img'+mrand;
_root.createEmptyMovieClip(tname, imagedepth); imagedepth++;
_root['img'+mrand].createEmptyMovieClip('md', imagedepth);

 _root['img'+mrand].md.loadMovie(images.childNodes[i].attributes['imgloc'
 ]);
_root['img'+mrand]._x=images.childNodes[i].attributes['x'];
_root['img'+mrand]._y=images.childNodes[i].attributes['y'];
trace(images.childNodes[i].attributes['imgloc']);

// image sizer
mrand=Math.round(Math.random()*3000);
sizer=tname+'sizer'+mrand; imagedepth++;
_root.createEmptyMovieClip(sizer, imagedepth); imagedepth++;
_root[sizer].pushw=images.childNodes[i].attributes['w'];
_root[sizer].pushh=images.childNodes[i].attributes['h'];
_root[sizer].clipname=tname;
//trace(images.childNodes[i].attributes['w']);
_root[sizer].onEnterFrame=function(){
 trace(this.clipname + ' ' + this.pushw + ' ' + this.pushh);
 _root[this.clipname]._width=this.pushw;
 _root[this.clipname]._height=this.pushh;
 //trace(this.clipname); // img0sizer
 if(!init){ init=1; }
 if((this.pushw)(this.pushh)(init30)){
   // counts to 30 frames and quits, should be enough
  this.removeMovieClip();
 }
 init++;
}



 ___
 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




using {} is a shortcut. Like using [] to create an array.

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] [AS3] Framework

2008-06-30 Thread Fabio Pinatti
Hi all!

I was using a personal framework in my company projects, and now we're
migrating to AS3, and I think better now use a pre-built than build one from
scratch. I saw Gaia, that looks very good, easy and well documented. Do you
know some framework with these characteristics to indicate?

Thanks in advance for all,
-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Fabio Pinatti
On Wed, Jun 18, 2008 at 10:16 AM, [EMAIL PROTECTED] wrote:

 Hello,

 I have a little question that seems obvious but on which I pull my hair off
 my
 head: Does anybody know how to deform a TextField instance?

 I tried the basics:

   var txt:TextField = new TextField();
   txt.text = TEST DE DEFORMATION;
   txt.scaleX = 20;
   addChild(txt);

 And:

   var s:Sprite = new Sprite();
   addChild(s);
   var txt:TextField = new TextField();
   txt.text = TEST DE DEFORMATION;
   s.addChild(txt);
   s.scaleX = 20;

 But nothing happens... Well the TextField is indeed resized but not the
 containing text.

 By doing the same thing with scaleY, the text is scale along BOTH Y (good)
 and X
 (bad).

 Any idea how to achieve this?

 Kind regards,
 
 Florent JEAN
 French Flash Developer
 http://www.nowhen.net

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



Create an empty movieclip, and add the textfield as it child, and scale the
parent movieclip, not the textfield itself.

Maybe that works.

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FLV issue

2008-06-16 Thread Fabio Pinatti
On Sun, Jun 15, 2008 at 3:58 AM, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:

 I had a similar problem when I was encoding with Sorenson 4 and hadn't yet
 discovered the joyes of the FLV MetaData Injector. [
 http://www.buraks.com/flvmdi/]. Hopefully it's this easy to fix :-)


 On Sat, Jun 14, 2008 at 12:00 AM, Fabio Pinatti [EMAIL PROTECTED]
 wrote:

  Hi all,
 
  I'm getting a error that is drving me crazy. I'm using as2+flv playback
 in
  a
  project, and my video has 4 seconds length. when I put this value as
 buffer
  time in component, it pre-buffers the video, but when it plays, it goes
  very
  quiclky to the end, when the expected would be the video play normally in
  it
  framerate, after buffered...
 
  I don't know if that can be a encoding issue, a flash player issue, or a
  issue of mine...
 
  Can anyone give me some tips, please?
 
  Thanks in advance.
  --
  Fabio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  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



confusticate, you're awesome!

It has been solved (at least for one video!)

Thanks so much

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FLV issue

2008-06-13 Thread Fabio Pinatti
Hi all,

I'm getting a error that is drving me crazy. I'm using as2+flv playback in a
project, and my video has 4 seconds length. when I put this value as buffer
time in component, it pre-buffers the video, but when it plays, it goes very
quiclky to the end, when the expected would be the video play normally in it
framerate, after buffered...

I don't know if that can be a encoding issue, a flash player issue, or a
issue of mine...

Can anyone give me some tips, please?

Thanks in advance.
-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Inserting Smiley Images in Textarea

2008-06-12 Thread Fabio Pinatti
On Thu, Jun 12, 2008 at 4:30 PM, Elia Morling [EMAIL PROTECTED] wrote:

 I guess something like the FlashTexteditor would do it. I need to be able
 to insert images into an editable text area.

 See: http://www.flashloaded.com/flashcomponents/flashtexteditor/

 If anyone knows of alternative Flash Rich Text Editors that can insert
 imagse let me know.

 Thanks

 - Original Message - From: Keith Reinfeld 
 [EMAIL PROTECTED]
 To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
 Sent: Thursday, June 12, 2008 6:03 PM
 Subject: RE: [Flashcoders] Inserting Smiley Images in Textarea


  Yes.

 TUFaT SmileText Component

 http://www.tufat.com/script124.htm

 Has the features you mentioned, but it breaks when a user enters (certain)
 html tags.

 Regards,

 -Keith
 http://keithreinfeld.home.comcast.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



You can append htmlText with img src='' tags, like a regular html. So, you
can have what you want in your textfield.

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Blank flash problem...

2008-05-25 Thread Fabio Pinatti
On Thu, May 22, 2008 at 6:51 AM, Glen Pike [EMAIL PROTECTED]
wrote:

 Hi,

   I have a live site where a friend of mine just sees a black page - the
 Flash is written in with SWFObject, but after this nothing happens and he
 sees a black screen - the movie bg colour is #00

   http://www.sas.org.uk/education/sos/

   This is in Win XP - Firefox 2.0.0.14 with the latest release of Flash
 Player 9.0.124.0 - it also happened with an older version 9.0.45.0(Debug), 
 but we upgraded to try and discover the source of the problem.

   The site works fine in IE on his machine and a mirror of the site on
 another domain works fine in FF.  All the files are local to the site, so no
 cross-domain issues here.

   So the question is, do any of you have the same setup as above Win/FF
 2.0.0.14 FP  8 and if you visit the URL do any of you just get a blank
 screen?
   Or, do any of you have any suggestions as to what to look for?

   If it works, you will get TV which loads a cartoon guy, etc. etc.

   Thanks in advance.

   Glen.
 --

 Glen Pike
 01326 218440
 www.glenpike.co.uk http://www.glenpike.co.uk

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


Firefox 2.0.0.14, loads fine, except for the beginning of application, that
shows a quick screen with some content, and disappears quickly, to a black
screen until the full loading.. maybe a main preloader fixes your problem.

Cheers!

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] need:: Flex 3 AS3 // tutorials, links, book recs.

2008-03-17 Thread Fabio Pinatti
On Mon, Mar 17, 2008 at 2:48 PM, artur [EMAIL PROTECTED] wrote:

 2nd try..

 can ANYONE please send me their links and book recommendations
 for migrating from Flex2--3 and AS2--3

 it would be greatly appreciated.

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



I recently bought Essential Actionscript 3.0, from Colin Moock (o-reilly),
was a very good choice in my oppinion.
-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders