[Flashcoders] Pseudo 3D car games

2008-12-02 Thread Christian Giordano
Hi guys, I remember there is a technique used by some car games, like
I presume here:

http://www.2flashgames.com/f/f-3D-Rally-Racing-4621.htm

Which allows you to have realistic car games without a real 3D engine.

Does anyone remember the name of this technique and have some
information about how to implement it?


Thanks a lot, chr
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Pseudo 3D car games

2008-12-02 Thread Ian Thomas
The technique is called Mode7 and you can find Flash source here:

http://www.gotoandplay.it/_articles/2006/09/mode7racing.php

(Wikipedia: http://en.wikipedia.org/wiki/Mode_7)

HTH,
   Ian

On Tue, Dec 2, 2008 at 10:56 AM, Christian Giordano [EMAIL PROTECTED] wrote:
 Hi guys, I remember there is a technique used by some car games, like
 I presume here:

 http://www.2flashgames.com/f/f-3D-Rally-Racing-4621.htm

 Which allows you to have realistic car games without a real 3D engine.

 Does anyone remember the name of this technique and have some
 information about how to implement it?


 Thanks a lot, chr
 ___
 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] mouse event still down

2008-12-02 Thread Bassam M
hi guys

I have flash scroller it's working fine in flash but i have to use the
flash file in Director so when i use in director i have this problem .
if i try to drag the scroller down the mouse will release and scroller
will stop
I use this code

on (press)
{
startDrag (, false, 0, 0, 0, _parent._parent.line._height -
_parent._parent.dragMC._height);
}
on (release, releaseOutside)
{
stopDrag ();
}

i need to know how can I keep mouse press in director ther is one
event _mouse.stillDown  I need some thing same or if I can use
addListener

please need help urgent

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


Re: [Flashcoders] The flash job hunt

2008-12-02 Thread Helmut Granda
* Ask your connections for connections on your city. You might be surprised
of them knowing some one in the area.
* Contact some one such Aquent. I was in the same position as you are and
they helped me to get in the door with some great agencies. For sure you
wont get the salary you might get on your own since they have to get paid
too but they pay on time and might lead you to new connections.

On Mon, Dec 1, 2008 at 10:02 PM, Joel Stransky [EMAIL PROTECTED]wrote:

 Yeah I'm already compiling a list of local agencies. I had a ton of
 connections in my last city but I'm new out here in D.C. Just wondering
 what
 other avenues there might be.

 On Mon, Dec 1, 2008 at 9:46 PM, dr.ache [EMAIL PROTECTED] wrote:

  you should contact agencies... those who are in online advertisement for
  bigger
  companies... these guys always have to few people to do all the work.
  try to get on their freelancer list and work hard - so they can see you
 can
  do their
  work in a short time then it should not be a problem to get work on a
  regular
  basis... but do not stick with only one company. instead of show up at
  maybe three...
 
  Joel Stransky schrieb:
 
   A bit off topic plus I don't know where to search recent flashcoders
  archives.
  I've been living off of freelance work for more than a year now but
 lately
  it's getting difficult to drum up contracts. I figured I'd hit up the
 pros
  to see how you guys are finding work.
  Do you have a favorite job listing site? Fond of craigslist? Spending a
  lot
  on advertising?
  I really need to get more work on a steady basis. Thanks for any input.
 
 
 
 
  ___
  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




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


Re: [Flashcoders] structuring singletons in AS3

2008-12-02 Thread Steven Sacks

Singletons are overused and, except in rare instances, are a bad idea.

Singletons are acceptable if you're writing throwaway code, like agency stuff 
where getting it done under tight deadlines is more important than getting it 
done in the most scalable and flexible way.


A Singleton is just a global.  IMO, globals are helpful when hacking, but 
generally bad practice. If it was called Globalton, people wouldn't think so 
highly of it just because it's a Design Pattern.  Most people misuse 
Singleton, anyway.


http://misko.hevery.com/2008/08/17/singletons-are-pathological-liars/

http://googletesting.blogspot.com/2008/05/tott-using-dependancy-injection-to.html

http://googletesting.blogspot.com/2008/08/where-have-all-singletons-gone.html


Google even has a tool that detects Singletons in Java so you can refactor them 
out.

http://linux.softpedia.com/get/Programming/Quality-Assurance-and-Testing/Google-Singleton-Detector-29295.shtml
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Papervision 3D causing animation lag?

2008-12-02 Thread Eleanor Taylor
Background Info:
Ok so I have a project that uses papervision3D. I'm new to papervsion so please 
bear with me: I have a background movie which is animated and laid over the top 
is are my 3D objects - there are 26 single sided planes and 26 double sided 
planes that all use MovieMaterials. These are either animated on a click from a 
start position or already set to a final position. The animation of these 
planes is on the Z-axis. They are designed to be doors that open if that helps 
you grasp what I am doing. Ok so on the click, the background is snapshot and 
added to the clip that is used as the movie material to capture the current 
state of the background animation. WIth me so far - I hope you are.

Problem:
So when I run this everything does what it's supposed to - so what prey tell me 
you say is the problem. Well although everything runs as it should it runs 
incredibly slowly and seems to eat up CPU processing power. So my background 
animation (which are just traditional tweens) no longer look smooth as they are 
running slower than intended. It seems to be from experimentation that the more 
planes I put on screen the slower it gets, I know that this is true due to how 
it builds stuff via triangles but the triangle count is well below the 
recommended max of 2000.

Help required:
Any tips/tricks/recommendations or info on known problems that could help me 
reduce the lag of everything and the CPU usage used by this project would help 
as it is only aggravated by people having other projects open at the same time 
causing every last thing to run slow. 

If more detailed information is required please don't hesitate to ask, I'll 
provide what I can but obviously can only provide so much for security reasons.

Thanks in advance

Ele 




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


Re: [Flashcoders] hover event for links in HTML textfields - possible?

2008-12-02 Thread Michael William Ypes
Yes it is. Greensock built an as2 class to do just that thing and then  
I rebuilt it in as3. Basically it works out the location of certain  
words and then creates a box around it. You can create whatever you  
want really as all it is doing is getting the x,y,width and height you  
need for the location of the word.


Check his blog entry for the as2 version http://blog.greensock.com/textmetrics/

Cheers

M



On 2 Dec 2008, at 06:24, [EMAIL PROTECTED] wrote:


Hello List,

Is there something like a hover event for links in HTML  
textfields? For
example, imagine an HTML textfield which displays the poem  
Jabberwocky. If
the user hovers over any of Lewis Carroll's nonsense words, a  
definition

appears in something like a tool-tip. Is such a thing possible?

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


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


Re: [Flashcoders] hover event for links in HTML textfields - possible?

2008-12-02 Thread Glen Pike

Hi,

   You can use a tags in HTML textfields an you can also have these 
call ActionScript functions using asfunction:funcname or similar.  
This would work nicely for text with only a few words that you want to 
highlight.  You can even use css to style your links.


   If you want every word to do this, it would possibly better to write 
your own class to work out what word your cursor is over and highlight / 
tooltip for that.


   Glen

[EMAIL PROTECTED] wrote:

Hello List,

Is there something like a hover event for links in HTML textfields? For
example, imagine an HTML textfield which displays the poem Jabberwocky. If
the user hovers over any of Lewis Carroll's nonsense words, a definition
appears in something like a tool-tip. Is such a thing possible?

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


  


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


Re: [Flashcoders] Papervision 3D causing animation lag?

2008-12-02 Thread Ian Thomas
Ele,
   May be worth posting to the Papervision mailing list.
http://osflash.org/mailman/listinfo/Papervision3D_osflash.org

I haven't looked at your issues in depth - but it may simply be that
you're asking Flash to do too much. 2000 may be a recommendation for
the number of planes, but your actual performance will vary depending
on how many other animations and things you are asking the Flash
Player to cope with, whether your MovieMaterials are animated, how
much of the screen is being redrawn on each frame...

But I'm no expert on PV3D - post to their list and you should get more
helpful answers.

Cheers,
   Ian

On Tue, Dec 2, 2008 at 2:13 PM, Eleanor Taylor [EMAIL PROTECTED] wrote:
 Background Info:
 Ok so I have a project that uses papervision3D. I'm new to papervsion so 
 please bear with me: I have a background movie which is animated and laid 
 over the top is are my 3D objects - there are 26 single sided planes and 26 
 double sided planes that all use MovieMaterials. These are either animated on 
 a click from a start position or already set to a final position. The 
 animation of these planes is on the Z-axis. They are designed to be doors 
 that open if that helps you grasp what I am doing. Ok so on the click, the 
 background is snapshot and added to the clip that is used as the movie 
 material to capture the current state of the background animation. WIth me so 
 far - I hope you are.

 Problem:
 So when I run this everything does what it's supposed to - so what prey tell 
 me you say is the problem. Well although everything runs as it should it runs 
 incredibly slowly and seems to eat up CPU processing power. So my background 
 animation (which are just traditional tweens) no longer look smooth as they 
 are running slower than intended. It seems to be from experimentation that 
 the more planes I put on screen the slower it gets, I know that this is true 
 due to how it builds stuff via triangles but the triangle count is well below 
 the recommended max of 2000.

 Help required:
 Any tips/tricks/recommendations or info on known problems that could help me 
 reduce the lag of everything and the CPU usage used by this project would 
 help as it is only aggravated by people having other projects open at the 
 same time causing every last thing to run slow.

 If more detailed information is required please don't hesitate to ask, I'll 
 provide what I can but obviously can only provide so much for security 
 reasons.

 Thanks in advance

 Ele




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


le,  I'd suggest you
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] hover event for links in HTML textfields - possible?

2008-12-02 Thread Daniel Boey
Hi,

In addition to what Glen said, I suggest that you refer to this post here:
http://troyworks.com/blog/2008/03/14/flash-textfield-actionscript-hyperlink-in-as30/

It's mentioned there that rollovers can be detected using
TextField.getCharIndexAtPoint(x:Number, y:Number).
Although you can use CSS to change links during hover it doesn't dispatch
an event for you listen to.

HTH

Thanks  Best regards,
Daniel Boey


On Tue, Dec 2, 2008 at 5:07 PM, Glen Pike [EMAIL PROTECTED] wrote:

 Hi,

   You can use a tags in HTML textfields an you can also have these call
 ActionScript functions using asfunction:funcname or similar.  This would
 work nicely for text with only a few words that you want to highlight.  You
 can even use css to style your links.

   If you want every word to do this, it would possibly better to write your
 own class to work out what word your cursor is over and highlight / tooltip
 for that.

   Glen


 [EMAIL PROTECTED] wrote:

 Hello List,

 Is there something like a hover event for links in HTML textfields? For
 example, imagine an HTML textfield which displays the poem Jabberwocky. If
 the user hovers over any of Lewis Carroll's nonsense words, a definition
 appears in something like a tool-tip. Is such a thing possible?

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





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

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


RE: [Flashcoders] hover event for links in HTML textfields - possible?

2008-12-02 Thread Merrill, Jason
Not sure.  You can do the hover effect using CSS - use the a:hover style.  
Apply a stylesheet describing a:hover to your textfield.  Works great.  
However, not sure you can capture that particular event.  You can use 
TextEvent.LINK event to find out when the user clicked the text, but there is 
not TextEvent.HOVER unfortunately.  You could hack it with an invisible button 
of course, but that's not what you're looking for most likely.  Maybe someone 
else knows.


Jason Merrill
Bank of America Instructional Technology  Media   ·   GCIB  Staff Support 
LLD

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




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


Re: [Flashcoders] The flash job hunt

2008-12-02 Thread Joel Stransky
Excellent suggestion Helmut.

On Tue, Dec 2, 2008 at 8:33 AM, Helmut Granda [EMAIL PROTECTED]wrote:

 * Ask your connections for connections on your city. You might be surprised
 of them knowing some one in the area.
 * Contact some one such Aquent. I was in the same position as you are and
 they helped me to get in the door with some great agencies. For sure you
 wont get the salary you might get on your own since they have to get paid
 too but they pay on time and might lead you to new connections.

 On Mon, Dec 1, 2008 at 10:02 PM, Joel Stransky [EMAIL PROTECTED]
 wrote:

  Yeah I'm already compiling a list of local agencies. I had a ton of
  connections in my last city but I'm new out here in D.C. Just wondering
  what
  other avenues there might be.
 
  On Mon, Dec 1, 2008 at 9:46 PM, dr.ache [EMAIL PROTECTED] wrote:
 
   you should contact agencies... those who are in online advertisement
 for
   bigger
   companies... these guys always have to few people to do all the work.
   try to get on their freelancer list and work hard - so they can see you
  can
   do their
   work in a short time then it should not be a problem to get work on
 a
   regular
   basis... but do not stick with only one company. instead of show up at
   maybe three...
  
   Joel Stransky schrieb:
  
A bit off topic plus I don't know where to search recent flashcoders
   archives.
   I've been living off of freelance work for more than a year now but
  lately
   it's getting difficult to drum up contracts. I figured I'd hit up the
  pros
   to see how you guys are finding work.
   Do you have a favorite job listing site? Fond of craigslist? Spending
 a
   lot
   on advertising?
   I really need to get more work on a steady basis. Thanks for any
 input.
  
  
  
  
   ___
   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
 



 --
 ...helmut
 ___
 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


RE: [Flashcoders] structuring singletons in AS3

2008-12-02 Thread Mendelsohn, Michael
Thanks for the responses everyone. 

Steven, I could use some constructive feedback:

Usually what I do is have a singleton instanced when the swf is
initialized, and using composition, other classes are instanced within
the singleton.  So the singleton becomes a sort of tree trunk with
everything branching off of it.  How would you say that this is a bad
idea?  It's worked well for me.  What would be a more effective
alternative to structuring my swfs?

- MM



Singletons are overused and, except in rare instances, are a bad idea.

Singletons are acceptable if you're writing throwaway code, like agency
stuff 
where getting it done under tight deadlines is more important than
getting it 
done in the most scalable and flexible way.

A Singleton is just a global.  IMO, globals are helpful when hacking,
but 
generally bad practice. If it was called Globalton, people wouldn't
think so 
highly of it just because it's a Design Pattern.  Most people misuse 
Singleton, anyway.

http://misko.hevery.com/2008/08/17/singletons-are-pathological-liars/

http://googletesting.blogspot.com/2008/05/tott-using-dependancy-injectio
n-to.html

http://googletesting.blogspot.com/2008/08/where-have-all-singletons-gone
.html


Google even has a tool that detects Singletons in Java so you can
refactor them out.

http://linux.softpedia.com/get/Programming/Quality-Assurance-and-Testing
/Google-Singleton-Detector-29295.shtml

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


Re: [Flashcoders] structuring singletons in AS3

2008-12-02 Thread Steven Sacks

Why aren't you using a static class for that instead of a Singleton?


Mendelsohn, Michael wrote:
Thanks for the responses everyone. 


Steven, I could use some constructive feedback:

Usually what I do is have a singleton instanced when the swf is
initialized, and using composition, other classes are instanced within
the singleton.  So the singleton becomes a sort of tree trunk with
everything branching off of it.  How would you say that this is a bad
idea?  It's worked well for me.  What would be a more effective
alternative to structuring my swfs?

- MM



Singletons are overused and, except in rare instances, are a bad idea.

Singletons are acceptable if you're writing throwaway code, like agency
stuff 
where getting it done under tight deadlines is more important than
getting it 
done in the most scalable and flexible way.


A Singleton is just a global.  IMO, globals are helpful when hacking,
but 
generally bad practice. If it was called Globalton, people wouldn't
think so 
highly of it just because it's a Design Pattern.  Most people misuse 
Singleton, anyway.


http://misko.hevery.com/2008/08/17/singletons-are-pathological-liars/

http://googletesting.blogspot.com/2008/05/tott-using-dependancy-injectio
n-to.html

http://googletesting.blogspot.com/2008/08/where-have-all-singletons-gone
.html


Google even has a tool that detects Singletons in Java so you can
refactor them out.

http://linux.softpedia.com/get/Programming/Quality-Assurance-and-Testing
/Google-Singleton-Detector-29295.shtml

___
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