Re: [Flashcoders] OO way to start RIA app

2006-11-12 Thread Mark Lapasa
This is advice is not exclusive to the realm of ActionScript but to OO 
in general. Unless carefully orchestrated, making method calls from 
within the constructor can result in unexpected results. It becomes more 
apparent when derived classes are instantiated and there is confusion 
between expecting a derived class to be initialized but the base class 
has not been fully initialized.


The other thing to note is that ActionScript does not have 
deconstructors (with the exception of MovieClip.onUnload which I find 
great). So when finishing an application, your objects must also know 
how to 'finish' themselves and those objects that it created. If you put 
great care into making a constructor method in each of your classes, you 
should put some thought in a dispose() method which will be responsible 
for cleaning up what it started (for example, remove the movieclips it 
created dynamically).



-mL
http://knowledge.lapasa.net

[EMAIL PROTECTED] wrote:

Hello,

Recently had to re-jig the start-up sequence to an AS2 flash app - caused
lots of unexpected side-effects

Struck me that there must be an agreed OO way to start/finish an
application.


Does anyone have some useful advice on best practice for app start-up from
an AS2 perpective?


regards

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Faking 3D perspective of a 2D map in Flash 8..?

2006-11-12 Thread Hans Wichman

do you mean something like this:
http://www.strille.net/works/misc/z_mapping/z_mapping.html

greetz
JC


On 11/10/06, Paul Steven [EMAIL PROTECTED] wrote:


This site will hopefully help you on your way

http://www.kirupa.com/developer/actionscript/3dindex.htm



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew
Murphy
Sent: 10 November 2006 18:32
To: Flash Coders
Subject: [Flashcoders] Faking 3D perspective of a 2D map in Flash 8..?

Hello.

I'm trying to take a vector map of North America and produce the sense of
'flying over' it.  I want to have the flat map tipped along the X axis, so
that the bottom (Florida, Texas, etc.) appear closer and the top (Nunuvut,
Greenland, etc.) appear farther away.

Then I want to be able to pan the map left and right, up and down, and
'zoom' in by scaling it.. scaling it a little faster vertically so that it
seems to flatten out a bit as you get closer to the ground.

So far I've only been able to achieve that in Illustrator and then saving
the perspectively squished vectors as a .swf  What I'd love to do is to
get
that perspective squish done within Flash 8 using script.

I know about 3D program extensions for Flash like Sandy, but I find them
cryptic (at best) and over kill for my simple needs.

Any suggestions..?

Thanks. :)


- - - - - - - - -
-[andrew murphy]-
flash developer
[EMAIL PROTECTED]

delvinia interactive inc.
214 king street west, suite 214
toronto canada M5H 3S6
voice 416.364.1455 ext. 232
cell 416.820.8723
fax 416.364.9830
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.



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.14.1/527 - Release Date: 09/11/2006
6:00 PM

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Faking 3D perspective of a 2D map in Flash 8..?

2006-11-12 Thread Mike Nowak
 [EMAIL PROTECTED] 11/10/2006 1:32:09 PM 
Hello.
 
I'm trying to take a vector map of North America and produce the sense of
'flying over' it.  I want to have the flat map tipped along the X axis, so
that the bottom (Florida, Texas, etc.) appear closer and the top (Nunuvut,
Greenland, etc.) appear farther away.



Like so?
 
http://www.kaourantin.net/2006/11/spidermonkeys-relative-tamarin-joins.html 


 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Noob question: Text effects, apps/components?

2006-11-12 Thread Micky Hulse

Hi all,

Sorry if this is noob question, but it has been several months since I 
have had to do fancy text effects in Flash... I am on XP pro using 
FP8... What is currently the best component or external app for creating 
flash-based text effects?


Swishmax still the standard?
http://snipurl.com/iwzt

I do not need a ka-zillion effects, just looking for a tool to help 
streamline production (but prefer non-cheezy FX).


Any links/tips/suggestions you guys/gals can give me would be fabulous. :)

Many thanks in advance.
Cheers,
Micky

--
 Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Google queries / iweb services / API in A.S. 2.0.

2006-11-12 Thread Millie Niss
Please forgive me if this is a repost.  It did not appear for over 24 hours 
after I posted it.  I changed the subject line in case the spam filters 
blocked it due to killwords in the subject...


This may be a very stupid question, but I did search online and not find the 
answer.  I saw examples of Flash apps (eg the quite fun Guess-the-Google 
http://grant.robinson.name/projects/guess-the-google/ game) that grab images 
from Google Image search, but I couldn't find any coding examples.  I don't 
even know if the right way to do it is stupidly low-tech (by making a query 
string URL and parsing the page Google returns) or involves web services 
etc. (which I have never used).


I am supposed to call the potential client tonight to tell her whether I can 
do it and how much work is involved etc.  She hired someone else a few years 
ago (a professional programmer on her campus IT staff) to do it  who was 
unable to figure out how to grab Google images and incorporate them into the 
page.  He used Javascript/DHTML as the front end.  I intend to use Flash as 
there are many multimedia elements.


I have a potential client who wants their site to incorporate Google Image 
Search results.  I have never used Google web services or their APIs,  so I 
don't know how much work this will involve and what server side resources 
are required.  I will be using Flash 8 and PHP (if necessary).


Also, do people use the Flash webservices component/class for anything 
real or does one always end up doing one's own server-side coding (aside 
from wrapping the web services call to get around security restrictions)? 
Is there a reason to use a web service rather than constructing a query 
string and parsing the results?


Forgive me if this is newbieish.  I am a server side newbie, but not an 
Actionscript newbie.


Millie Niss
[EMAIL PROTECTED]
http://www.sporkworld.org



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] frustrated with textFields: getting height while text isn't fully 'there'

2006-11-12 Thread grimmwerks

This is totally driving me crazy.

I'm creating a textfield as a sub to another clip, setting it's width,
making it autosized, giving it a stylesheet. I then toss in it's
htmlText.

I just want to know if the darn thing is one or more lines. Trouble is
it's not reporting back properly...it seems as if it's just in the
middle of adjusting itself or something, as if I trace out a lot of
stuff, it works out fine. But I shut off tracing, and it stops
working.

For example:

var mTitle:TextField = mcTxt.createTextField(mc_title, 6, tR.x+20,
tR.y-14, 230, 0);
mTitle.autoSize = right;
mTitle.wordWrap=true;
mTitle.selectable=false;
mTitle.html = true;
mTitle.border=true;
mTitle.multiline = true;
mTitle.styleSheet =_global.gPrefs.CSS;
mTitle.htmlText = title;

fontsize = 30; // i know this
lCnt = (mTitle.textHeight/fontSize);

Sometimes lCnt works and sometimes it doesn't -- and I'm tracing out
all elements.

I've even tried to do something like
while(mTitle.htmlText!=title){
 trace(not there);
}

But that doesn't work either.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Mac - Flash gets keyboard events when not in focus

2006-11-12 Thread Jim Greer

Our games site has a problem - people pause a game and use the chat, which
is a separate movie in an iframe servred from a separate domain. However,
the game continues to get keyboard events. In fact, it even gets events from
people typing in the address bar of the browser!

In some games this is a real problem, because the game unpauses when you hit
the space bar or whatever.

This happens in both Safari and Firefox on the Mac. Doesn't happen on
Windows.

A friend suggested trapping the keyboard events using Javascript, to keep
them from getting to the games... has anyone else dealt with this problem?

For an example of this, see:
http://kongregate.com/games/pixeljamgames/gamma-bros
You can login as:
user: flashcoders
pwd: focus

Thx,

Jim Greer
[EMAIL PROTECTED]
Company: http://kongregate.com
Blog: http://jimonwebgames.com

home: 159 Dolores #4, SF CA 94103
work: 430 Fillmore Suite A, SF CA 94117
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Google image search from Actionscript

2006-11-12 Thread Millie Niss
I have a potential client who wants their program to incorporate Google 
Image Search results.  I have never used Google web services or other 
programming tools, so I don't know how much work this will involve and what 
server side resources are required.  I will be using Flash 8 and PHP (if 
necessary).


Also, do people use the Flash webservices component/class for anything real 
or does one always end up doing one's own server-side coding (aside from 
wrapping the web services call to get around security restrictions)?  Is 
there a reason to use a web service rather than constructing a query string 
and parsing the results?


Forgive me if this is newbieish.  I am a server side newbie, but not an 
Actionscript newbie.


Millie Niss
[EMAIL PROTECTED]
http://www.sporkworld.org

regards

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] launching an exe?

2006-11-12 Thread Adam Fisk

Hi Everyone-  The mail server seems to have rejected my earlier messages, so
here goes again:

Thanks for the responses.  I understand the security concerns and sympathize
with them, but I still want my users to be able to install the app much
easier regardless.

I'd be happy to display a warning much like FireFox does when launching
exes.  Taking a step back, launching exes is generally dangerous, and yet
still vital.  Granted, I'm trying to lower the barriers to exe launching
(skipping the user clicking on the download window and selecting to launch
the file), but the fact is people can still launch exes downloaded from web
pages without my devious schemes to make it easier.

The signed Java applet option is interesting.  I'd basically like a signed
Flash movie that could do the same thing, using Flash instead of Java
because it's more ubiquitous and doesn't take so friggin' long to launch.  I
imagine there's still no way though huh?

Thanks again everyone.

-Adam


On 11/10/06, Cortlandt Winters [EMAIL PROTECTED] wrote:


Hi Adam,

I think this is one of the rare opportunities to actually say definitely
not possible.

If you could do this it would be a major security flaw as the .exe could,
say, wipe out a hard drive instead of doing something beneficial.

If somehow you find any way to do this, please notify Adobe as we are all
in
grave trouble.

Glad to be able to say that !

:D -Cort

On 11/9/06, Adam Fisk [EMAIL PROTECTED] wrote:

 Is there any way to launch an exe with any version of Flash?  I
basically
 want to download my installer using Flash and then automatically launch
 it,
 basically bypassing the browser's download and launch cycle to make
things
 easier on the user.

 I know very little actionscript/mxml, but I'm just curious if something
 like
 this is possible.  Would I have to set something in a policy file
 somewhere?

 Thanks so much.

 -Adam
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Mac and Eclipse syntax checking

2006-11-12 Thread Joeri van Oostveen

I'm using the FDT plugin, and it shows any errors you're making.. not
'on save', but 'as you type'... which I prefer because I usually save
by a shortcut, and almost in the same shortcut switch to my browser to
refresh (it calls a compile script and displays the result...)

cheers.
Joeri

On 11/12/06, Jay Pozo [EMAIL PROTECTED] wrote:

I was curious if anyone on a Mac is successfully using Eclipse for writing
their AS and has the Syntax checking On save working.

I guess I could always use Sepy, but I thought I'd check first.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] Mac - Flash gets keyboard events when not in focus

2006-11-12 Thread Joeri van Oostveen

Using Safari 2.0.4 here doesn't give me any problems with the focus. I
can type in the chat without unpausing the game, and typing in the
location bar behaves as should.

good luck bug hunting.
Joeri

On 11/12/06, eric dolecki [EMAIL PROTECTED] wrote:

fscommand(trapallkeys,true); //?


On 11/12/06, Jim Greer [EMAIL PROTECTED] wrote:

 Our games site has a problem - people pause a game and use the chat, which
 is a separate movie in an iframe servred from a separate domain. However,
 the game continues to get keyboard events. In fact, it even gets events
 from
 people typing in the address bar of the browser!

 In some games this is a real problem, because the game unpauses when you
 hit
 the space bar or whatever.

 This happens in both Safari and Firefox on the Mac. Doesn't happen on
 Windows.

 A friend suggested trapping the keyboard events using Javascript, to keep
 them from getting to the games... has anyone else dealt with this problem?

 For an example of this, see:
 http://kongregate.com/games/pixeljamgames/gamma-bros
 You can login as:
 user: flashcoders
 pwd: focus

 Thx,

 Jim Greer
 [EMAIL PROTECTED]
 Company: http://kongregate.com
 Blog: http://jimonwebgames.com

 home: 159 Dolores #4, SF CA 94103
 work: 430 Fillmore Suite A, SF CA 94117
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re[2]: [Flashcoders] launching an exe?

2006-11-12 Thread R�kos Attila

AF I'd basically like a signed
AF Flash movie that could do the same thing, using Flash instead of Java
AF because it's more ubiquitous and doesn't take so friggin' long to launch.  I
AF imagine there's still no way though huh?

You are right, there is no way :) You cannot sign a Flash movie and
Flash doesn't allow the fine-tunning of security permissions (as Java
does). Maybe it will provide more options in a future version (or at
least in Apollo, which seems to be similar to Java Web Start in this
respect).

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Google image search from Actionscript

2006-11-12 Thread R�kos Attila

MN I have a potential client who wants their program to incorporate Google
MN Image Search results.  I have never used Google web services or other 
MN programming tools, so I don't know how much work this will involve and what 
MN server side resources are required.  I will be using Flash 8 and PHP (if 
MN necessary).

As far I know, Google doesn't provide API for searching images, so you
have to dig out information from the HTML pages returned by the normal
Google Image Search service. You need some well formed regex
expressions and nothing else (until Google changes the format
of the HTML document). Unfortunatelly XPath cannot be used since the
returned page is not an XHTML document. There is a sample project in
C#:

http://www.codeproject.com/cs/library/google_image_search_api.asp

 Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] off-display mouse listeners still listen in AS3?

2006-11-12 Thread Matt Garland

Hi,

I'm making a site in AS3 with lots and lots of buttons.

I'm worried that all the listeners on the buttons will clog the memory.

I realize that sprites that are not in the display list cannot  
receive mouse events, but do they still listen for them, taking up  
memory?


I'm not sure how to test that.

If they do, then in the buttons I'll

1) add listeners for added and removed events to detect when the  
buttons are added to the display list, and


2) handle these events by toggling the mouseEnabled and mouseChildren  
properties off and on (that will kill and revive the listeners)


But it seems funny to kill listeners that cannot hear anything, and a  
hassle to add this code to all the button species I'm working with.


Thanks

Matt

On Nov 12, 2006, at 9:00 AM, flashcoders- 
[EMAIL PROTECTED] wrote:



Send Flashcoders mailing list submissions to
flashcoders@chattyfig.figleaf.com

To subscribe or unsubscribe via the World Wide Web, visit
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than Re: Contents of Flashcoders digest...


Today's Topics:

   1. Re: functions outside a class (Helmut Granda)
   2. Re: Faking 3D perspective of a 2D map in Flash 8..? (Zeh  
Fernando)

   3. Re: OO way to start RIA app (Mark Lapasa)
   4. Re: Faking 3D perspective of a 2D map in Flash 8..? (Hans  
Wichman)

   5. Re: Faking 3D perspective of a 2D map in Flash8..? (Mike Nowak)
   6. RE: functions outside a class (Mike Keesey)
   7. Re: Faking 3D perspective of a 2D map in Flash8..? (Mike Nowak)
   8. Noob question: Text effects, apps/components? (Micky Hulse)
   9. Google queries / iweb services / API in A.S. 2.0. (Millie Niss)
  10. frustrated with textFields: getting height while text isn't
  fully 'there' (grimmwerks)


--

Message: 1
Date: Fri, 10 Nov 2006 13:45:34 -0600
From: Helmut Granda [EMAIL PROTECTED]
Subject: [Flashcoders] Re: functions outside a class
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

ok, i figured it out.

it works if i make reference to where the function is.

this.function();
_parent.function();

if i just call the function:

function();

it is where I was getting stuck, but it all works now.

...

On 11/10/06, Helmut Granda [EMAIL PROTECTED] wrote:


I have several classes that will use a function. for scope reasons  
i have
placed the function in a different file but i would like to be  
able to

access that file from within the classes.

If the function has been declared outside the class, what is the  
best way

to accces those functions?

sample:

utils.controls:
classA
classB

utils/functions:
functionA
functionB

main timeline:
include functionA
include functionB

now I would like to access functionA or functionB within the class...

TIA

--
...helmut





--
...helmut
helmutgranda.com


--

Message: 2
Date: Fri, 10 Nov 2006 17:46:11 -0200
From: Zeh Fernando [EMAIL PROTECTED]
Subject: Re: [Flashcoders] Faking 3D perspective of a 2D map in Flash
8..?
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; format=flowed; charset=iso-8859-1;
reply-type=original

So far I've only been able to achieve that in Illustrator and then  
saving
the perspectively squished vectors as a .swf  What I'd love to do  
is to

get
that perspective squish done within Flash 8 using script.
I know about 3D program extensions for Flash like Sandy, but I  
find them

cryptic (at best) and over kill for my simple needs.


Using something like Sandy is the only choice you have. For example:

http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to- 
freely-distort-image-with-flash-in-actionscript.html
http://sandy.media-box.net/blog/distordimage-the-way-to-distord- 
bitmaps-by-code.html


You need something like this. This is done by dividing an image in  
triangles

and then projecting them.

But you'd still have to be careful, as simple distortion ISN'T  
perspective.
The above examples are simply distorting the image, but not  
accounting for
proximity (it's just squishing the texture). If you get a side too  
thin,

it'll just look thin, not far.

This is an old example, but uses a similar approach but with correct
calculation (each side of the box is made of 4 triangles):

http://www.nkag.co.jp/

For something like that, you'd need to either build a complex plane  
with
Sandy, using a bunch of squares (so it will do correct perspective,  
or close
to it anyways), or build the whole calculation and projection  
yourself.

Which can be 

[Flashcoders] flash.geom.Point Problem.

2006-11-12 Thread jim
Hello all, 

Im using the Point class to convert polar co-ordinates to Cartesian
co-ordinates (i.e. an angle  length to an x  y co-ordinate). The built in
function Point.polar(len:Number, angle:Number) should do exactly this but I
am getting some weird values returned.

This code takes the angles 0, 90, 180, 270  360 with a length of 10 for
each and converts to an x  y.

[[code snippet]]
import flash.geom.Point;

trace(Point.polar(10, (0 * (Math.PI/180;
trace(Point.polar(10, (90 * (Math.PI/180;
trace(Point.polar(10, (180 * (Math.PI/180;
trace(Point.polar(10, (270 * (Math.PI/180;
trace(Point.polar(10, (360 * (Math.PI/180;

This is the output:

(x=10, y=0)
(x=6.12303176911189e-16, y=10)
(x=-10, y=1.22460635382238e-15)
(x=-1.83690953073357e-15, y=-10)
(x=10, y=-2.44921270764475e-15)

As you can see the first value is correct, the rest have weird values. Can
anyone explain this to me?

Jim

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] flash.geom.Point Problem.

2006-11-12 Thread jim
Just a quick additional note, I looked up how to comvert the co-ords myself
and found the formula

X= R*cos(Theta)
Y= R*sin(Theta)

On this website about converting co-ords
http://www.delphiforfun.org/Programs/Math_Topics/polar-cartesian.htm .

The thing is this formula gives exactly the same un expected results. Any
help on this would be greatly appreciated.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jim
Sent: 12 November 2006 21:15
To: 'Flashcoders mailing list'
Subject: [Flashcoders] flash.geom.Point Problem.

Hello all, 

Im using the Point class to convert polar co-ordinates to Cartesian
co-ordinates (i.e. an angle  length to an x  y co-ordinate). The built in
function Point.polar(len:Number, angle:Number) should do exactly this but I
am getting some weird values returned.

This code takes the angles 0, 90, 180, 270  360 with a length of 10 for
each and converts to an x  y.

[[code snippet]]
import flash.geom.Point;

trace(Point.polar(10, (0 * (Math.PI/180;
trace(Point.polar(10, (90 * (Math.PI/180;
trace(Point.polar(10, (180 * (Math.PI/180;
trace(Point.polar(10, (270 * (Math.PI/180;
trace(Point.polar(10, (360 * (Math.PI/180;

This is the output:

(x=10, y=0)
(x=6.12303176911189e-16, y=10)
(x=-10, y=1.22460635382238e-15)
(x=-1.83690953073357e-15, y=-10)
(x=10, y=-2.44921270764475e-15)

As you can see the first value is correct, the rest have weird values. Can
anyone explain this to me?

Jim

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flash.geom.Point Problem.

2006-11-12 Thread R�kos Attila

j As you can see the first value is correct, the rest have weird values. Can
j anyone explain this to me?

This is because of the precision errors of floating-point arithmetic.
Try to round the results:

import flash.geom.Point;

var angles: Array = [0, 90, 180, 270, 360];

for (var i = 0; i  angles.length; i++) {
var p: Point = Point.polar(10, (angles[i] * (Math.PI/180)));
trace(x:  + Math.round(p.x) + , y:  + Math.round(p.y));
}

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] flash.geom.Point Problem.

2006-11-12 Thread jim
Thanks man, my girlfriend just pointed the same thing to me, you are both
clever  I am stupid.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rákos Attila
Sent: 12 November 2006 21:32
To: Flashcoders mailing list
Subject: Re: [Flashcoders] flash.geom.Point Problem.


j As you can see the first value is correct, the rest have weird values.
Can
j anyone explain this to me?

This is because of the precision errors of floating-point arithmetic.
Try to round the results:

import flash.geom.Point;

var angles: Array = [0, 90, 180, 270, 360];

for (var i = 0; i  angles.length; i++) {
var p: Point = Point.polar(10, (angles[i] * (Math.PI/180)));
trace(x:  + Math.round(p.x) + , y:  + Math.round(p.y));
}

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flash.geom.Point Problem.

2006-11-12 Thread Arse @ Snepo

Having a girlfriend who knows flash makes you clever by default. :)

just sayin.

a

jim wrote:

Thanks man, my girlfriend just pointed the same thing to me, you are both
clever  I am stupid.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rákos Attila
Sent: 12 November 2006 21:32
To: Flashcoders mailing list
Subject: Re: [Flashcoders] flash.geom.Point Problem.


j As you can see the first value is correct, the rest have weird values.
Can
j anyone explain this to me?

This is because of the precision errors of floating-point arithmetic.
Try to round the results:

import flash.geom.Point;

var angles: Array = [0, 90, 180, 270, 360];

for (var i = 0; i  angles.length; i++) {
var p: Point = Point.polar(10, (angles[i] * (Math.PI/180)));
trace(x:  + Math.round(p.x) + , y:  + Math.round(p.y));
}

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  



--
*Anthony Eden*: Inventor at Snepo http://www.snepo.com/
contact | [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] | 0411 5622 02

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] frustrated with textFields: getting height while textisn't fully 'there'

2006-11-12 Thread Muzak
Create a second textfield (hidden) that is as wide as the original, is only one 
line high and does not autosize, dump the text in it 
and grab its maxscroll value.

regards,
Muzak

- Original Message - 
From: grimmwerks [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, November 12, 2006 8:09 AM
Subject: [Flashcoders] frustrated with textFields: getting height while 
textisn't fully 'there'


 This is totally driving me crazy.

 I'm creating a textfield as a sub to another clip, setting it's width,
 making it autosized, giving it a stylesheet. I then toss in it's
 htmlText.

 I just want to know if the darn thing is one or more lines. Trouble is
 it's not reporting back properly...it seems as if it's just in the
 middle of adjusting itself or something, as if I trace out a lot of
 stuff, it works out fine. But I shut off tracing, and it stops
 working.

 For example:

 var mTitle:TextField = mcTxt.createTextField(mc_title, 6, tR.x+20,
 tR.y-14, 230, 0);
 mTitle.autoSize = right;
 mTitle.wordWrap=true;
 mTitle.selectable=false;
 mTitle.html = true;
 mTitle.border=true;
 mTitle.multiline = true;
 mTitle.styleSheet =_global.gPrefs.CSS;
 mTitle.htmlText = title;

 fontsize = 30; // i know this
 lCnt = (mTitle.textHeight/fontSize);

 Sometimes lCnt works and sometimes it doesn't -- and I'm tracing out
 all elements.

 I've even tried to do something like
 while(mTitle.htmlText!=title){
  trace(not there);
 }

 But that doesn't work either.
 ___


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Job Opportunity - Melbourne, Australia

2006-11-12 Thread Bjorn Schultheiss
Hey Aerin,

You might want to post this on 2 other lists.
FlashAussie http://groups.google.com/group/flashaussie 
FlexAussie http://groups.yahoo.com/group/flexaussie 

Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Miles
Thompson
Sent: Thursday, 9 November 2006 11:08 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Fwd: [Flashcoders] Job Opportunity - Melbourne, Australia


Aerin,

I know it's miles distant from Brisbane, but did you see this on
Flashcoders?

Miles



We are looking for a Senior Flash Developer / Interaction Designer
for our Melbourne Office.

Join our expanding, vibrant and innovative team in creating award
winning web solutions for Australia's leading brands and businesses.
Our culture is positive and productive, with highly passionate and
experienced strategists, developers and designers working together to
create memorable, powerful and relevant web applications and user
experiences.

Responsibilities include leading the flash team in a technical and
creative role, working closely alongside the design and tech teams to
best utilize flash in all of DTDesign's projects. You will be working
in a small team and with the opportunity to make a real contribution.

Technical Requirements:
- At least 2 years Flash Development experience in a commercial
environment
- Excellent ActionScript 2.0 / Flash 8 / OOP
- Experience with XML data integration
- Demonstrated ability to write clean, well documented code
- Confidence in working with and extending code written by other
developers
- Experience in other aspects of web design and development (design/ 
HTML/CSS/JavaScript)

Personal Requirements:
- Confidence in taking a management and advisory role in the Flash
and Creative teams
- Ability to mentor one or more junior flash developers, and to
liaise with and direct freelancers

Only applicants who have the right to work in Australia and meet the
selection criteria outlined above need apply.

Please send a PDF resume and relevant links to [EMAIL PROTECTED]

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.32/523 - Release Date: 11/7/2006


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re[2]: [Flashcoders] launching an exe?

2006-11-12 Thread Adam Fisk

Arrgh!!  Yeah, I thought the idea was a long shot.  Thanks again for all of
the responses.  I love finding such healthy communities like this out there!

-Adam


On 11/12/06, Rákos Attila [EMAIL PROTECTED] wrote:



AF I'd basically like a signed
AF Flash movie that could do the same thing, using Flash instead of Java
AF because it's more ubiquitous and doesn't take so friggin' long to
launch.  I
AF imagine there's still no way though huh?

You are right, there is no way :) You cannot sign a Flash movie and
Flash doesn't allow the fine-tunning of security permissions (as Java
does). Maybe it will provide more options in a future version (or at
least in Apollo, which seems to be similar to Java Web Start in this
respect).

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Shared fonts, linkage and Arabic

2006-11-12 Thread Michael Williamson

Finally figured out how to make font symbols (with linkage turned on)
include foreign character sets.

The instructions outlined here:

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16275

do actually work given you take into account two crucial pieces of
info regarding BUGS IN FLASH.

The two pieces of crucial info that solved the issue for me are these:

1) If there is more than one font symbol in the library Flash will not
add foreign character sets to any of the fonts. That means creating
one swf per font symbol.

2) If a font symbol (with linkage turned on) uses the exact same font
that is embedded in a text field in the same swf, all non-Roman
characters stop getting exported.

For example: text field 1 has the font Tahoma set to Korean characters
embedded. Export, it works fine. Now, set a font symbol in the library
(with linkage turned on) to use Tahoma. Export, no non-Roman
characters get exported.

I'll eventually report this to Adobe but I'd be happy if someone beat me to it.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re[2]: [Flashcoders] launching an exe?

2006-11-12 Thread Austin Kottke
You can do it if you make it an exe and its run locally off a users system.

I believe you can do an fscommand and do exec and if the exe is
in the fscommand folder it will launch it.

Check it out.

Best, Austin

-- Original Message ---
From: Adam Fisk [EMAIL PROTECTED] 
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com 
Sent: Sun, 12 Nov 2006 20:15:29 -0500 
Subject: Re: Re[2]: [Flashcoders] launching an exe?

 Arrgh!!  Yeah, I thought the idea was a long shot.  Thanks again for all of 
 the responses.  I love finding such healthy communities like this out there! 
 
 -Adam 
 
 On 11/12/06, Rákos Attila [EMAIL PROTECTED] wrote: 
  
  
  AF I'd basically like a signed 
  AF Flash movie that could do the same thing, using Flash instead of Java 
  AF because it's more ubiquitous and doesn't take so friggin' long to 
  launch.  I 
  AF imagine there's still no way though huh? 
  
  You are right, there is no way :) You cannot sign a Flash movie and 
  Flash doesn't allow the fine-tunning of security permissions (as Java 
  does). Maybe it will provide more options in a future version (or at 
  least in Apollo, which seems to be similar to Java Web Start in this 
  respect). 
  
    Attila 
  
  ___ 
  Flashcoders@chattyfig.figleaf.com 
  To change your subscription options or search the archive: 
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
  
  Brought to you by Fig Leaf Software 
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com 
  http://training.figleaf.com 
  
 ___ 
 Flashcoders@chattyfig.figleaf.com 
 To change your subscription options or search the archive: 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
 
 Brought to you by Fig Leaf Software 
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com 
 http://training.figleaf.com 
--- End of Original Message ---
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Job Board or List

2006-11-12 Thread Flashcoders
Anyone know of any Flash specific job boards or jobs list?  Please let me
know.
 
Thanks,
 
Dave
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Job Board or List

2006-11-12 Thread Rich Rodecker

actionscript.org has a pretty active one.



On 11/12/06, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:


Anyone know of any Flash specific job boards or jobs list?  Please let me
know.

Thanks,

Dave
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com