When 1 had line feeds...
Well, I'm not quite sure how yet but somehow I'm getting a couple of line
feeds in my def variable when it comes back to the LoadVars.onLoad.
I do:
$defUser = 1;
echo(im=.$fName.def=.$defUser);
But I found I get 1 plus a couple of line feeds...
I sure like AMFPHP a
Hey!
Consider this.
There is a symbol in the library - Ball.
It has a variable declared in the first frame - size.
I want to instantiate the symbol and then read the variable value.
Trying to access the variable synchronously, right after the the symbol has
been instantiated, does not work:
Hey,
Has anyone got tips/ideas how to automate settings in the stringpanel?
With kind regards,
Dennis
Isioux
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Further to this (again) I've investigated the whole thing in some
depth, and come up with this:
The bug affects the AS2 MovieClip.getBounds() and MovieClip.getRect() methods.
As far as I can tell, it only happens in this situation:
AppA is an _AS3_ application. AppA loads AppB.
AppB is an AS2
Hi, Im building an AS3 Flash 9 app. One requirement is to allow loading of
swf ads into the application.
I am a little concerned about GC. If the ad has any event listeners attached
to the stage, my understanding is that I will not be able to clean up after
the ad has finished and will leave
How can I trace the x and y of the mouse? I would want to grab it on a
click
Ted
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
How do you calculate the distance between two points with different x
and y values? I know it is some simple math formula - I just don't know
it
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
You can use our old friend Pythagoras':
c^2 = a^2 + b^2
Kenneth Kawamoto
http://www.materiaprima.co.uk/
Lehr, Theodore M (N-SGIS) wrote:
How do you calculate the distance between two points with different x
and y values? I know it is some simple math formula - I just don't know
it
dx:Number = obj1.x - obj2.x;
dy:Number = obj1.y - obj2.y;
distance:Number = Math.sqrt(dx * dx + dy * dy);
On Tue, Mar 11, 2008 at 8:05 AM, Lehr, Theodore M (N-SGIS)
[EMAIL PROTECTED] wrote:
How do you calculate the distance between two points with different x
and y values? I know it is some
Or you can use new revolutionary Point.distance(pt1, pt2);
--
iv
http://www.bezier.ru
http://bezier.googlecode.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
The square root of the sum of the squares of the x difference and the y
difference.
Pythagoras
-Original Message-
How do you calculate the distance between two points with different x
and y values? I know it is some simple math formula - I just don't know
it
Pythagorus, innit?
The square root of the the sum of the difference in x squared and the
difference in y squared ? Or was I not listening in school way back
then?
I think there may be an inbuilt method in flash, mind you, but if there
is I don't know what it is.
-Original Message-
From:
Nevermind sorry
-Original Message-
From: Lehr, Theodore M (N-SGIS)
Sent: Tuesday, March 11, 2008 8:05 AM
To: 'Flash Coders List'
Subject: calculating distance between two points
How do you calculate the distance between two points with different x
and y values? I know it is some
Your teacher must be cringing!
The square of the hypotenuse equals the sum of the squares of the opposite
two sides should be familar.. ;-)
Math.sqrt ( Math.pow(Math.abs(x1-x2),2 )+Math.pow(Math.abs(y1-y2),2 )+))
Paul
- Original Message -
From: Lehr, Theodore M (N-SGIS) [EMAIL
Using Point class?
import flash.geom.Point;
var p0:Point = new Point(0, 0);
var p1:Point = new Point(1, Math.sqrt(3));
var nDistance:Number = Point.distance(p0, p1);
trace(nDistance); // Output: 2
_
Jim Hayes wrote:
I think there may be an inbuilt method in flash, mind you, but if there
is
Aha - didn't know about that!
Paul
- Original Message -
From: Ivan Dembicki [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Flash Coders List
flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 11, 2008 12:34 PM
Subject: Re: [Flashcoders] calculating distance between two points
Or you
http://www.adobe.com/support/flash/action_scripts/
actionscript_dictionary/actionscript_dictionary584.html
questions like this are better sent to the flashnewbie board -
they're very helpful there
http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie
On 11 Mar 2008, at 11:49, Lehr,
google for flash mouse x y
On Tue, Mar 11, 2008 at 12:49 PM, Lehr, Theodore M (N-SGIS)
[EMAIL PROTECTED] wrote:
How can I trace the x and y of the mouse? I would want to grab it on a
click
Ted
___
Flashcoders mailing list
I have a deal where I have a huge movie and onPress I am getting the
mouse coordinates and onRelease I am getting the mouse coordinates and
then drawing a circle with the resulting coordinates... I would like to
do it without having to be on a movie... is it possible to have a
listener turned on
So, the case he brought up was different from what you said.
In your case you're creating differently named movie clips, and
explicitly assigning them to the mc variable.
In the original code, a new movie clip was attached with the same
name, but NOT assigned to the variable. After doing so you
Your teacher must be cringing!
The square of the hypotenuse equals the sum of the squares
of the opposite two sides should be familar.. ;-)
Math.sqrt ( Math.pow(Math.abs(x1-x2),2
)+Math.pow(Math.abs(y1-y2),2 )+))
Why not skip the math lessons and use the Point class?
var dist:Number =
Yes.
MySprite.addEventListener(MouseEvent.MOUSE_DOWN, doDrawing)
private function doDrawing(e:MouseEvent):void
{
var targSprite:Sprite = e.target as Sprite
trace(targSprite.x)
}
Jason Merrill
Bank of America
GTO LLD Solutions Design Development
eTools Multimedia
Bank
Or Flash_Tiger on Yahoo - we embrace Actionscripters of all types, skill
level, donor status and music preference.
Jason Merrill
Bank of America
GTO LLD Solutions Design Development
eTools Multimedia
Bank of America Flash Platform Developer Community
Are you a Bank of America associate
Good point
On 11 Mar 2008, at 13:53, Merrill, Jason wrote:
Why not skip the math lessons and use the Point class?
var dist:Number = Point.distance(p1, p2);
Jason Merrill
Bank of America
GTO LLD Solutions Design Development
eTools Multimedia
Bank of America Flash Platform Developer
Very punny.
Jason Merrill
Bank of America
GTO LLD Solutions Design Development
eTools Multimedia
Bank of America Flash Platform Developer Community
Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal GTO Innovative
Even those of us who use scenes??? ;-)
Brian Mays
On 3/11/08 9:17 AM, Merrill, Jason [EMAIL PROTECTED]
wrote:
Or Flash_Tiger on Yahoo - we embrace Actionscripters of all types, skill
level, donor status and music preference.
___
Flashcoders
aargh
that pun made me bleed
On 11 Mar 2008, at 14:24, Piers Cowburn wrote:
Good point
On 11 Mar 2008, at 13:53, Merrill, Jason wrote:
Why not skip the math lessons and use the Point class?
var dist:Number = Point.distance(p1, p2);
Jason Merrill
Bank of America
GTO LLD
Everyone but - sorry, forgot to mention.
Jason Merrill
Bank of America
GTO LLD Solutions Design Development
eTools Multimedia
Bank of America Flash Platform Developer Community
Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our
That was the one I thought I'd heard of. But...
Too easy! Boring! Soh cah toa !
(and that as far as I can remember is actually the only useful thing I
did learn in school)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ivan
Dembicki
Sent: 11 March 2008
- Original Message -
From: Merrill, Jason [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 11, 2008 1:53 PM
Subject: RE: [Flashcoders] calculating distance between two points
Your teacher must be cringing!
The square of the hypotenuse
Yes, but my example was meant to be different to demonstrate there is
probably a reason for allowing different clips to be assigned to a
variable.
My argument was, the original post may have been moot / redundant /
not-so-surprising if you think a little about how Flash works. Once the
Hi list...
I have a class emc extends movieclip.
On emc's timeline, how do I access a static variable in the emc class?
Super doesn't seem to work, neither does emc.staticprop.
Thanks,
- MM
___
Flashcoders mailing list
Hi Throdore.
You can try MOUSE_MOVE and trace mouseX and mouseY and it will give you your
mouse coordinates whenever you move your mouse. Similarly you can use mouseX
and mouseYon mouseUP or DOWN event or CLICK.
Thanks
Anuj
On Tue, Mar 11, 2008 at 4:49 AM, Lehr, Theodore M (N-SGIS)
[EMAIL
Isn't it pointless to do Math.abs() since result is always positive
number anyway? ;)
Kenneth Kawamoto
http://www.materiaprima.co.uk/
Paul Andrews wrote:
- Original Message - From: Merrill, Jason
[EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday,
Hello everyone,
This is my first message, and before I begin, I would like to thank the
creator(s) of this mailing list.
I have begun working with AS3 and I am getting comfortalble with the
basics. I can put my MCs on the stage through actionscript, designate
coordinates/placement of MCs,
can I use my already AS 3.0 code in Flex . i am not sure how do these things
integrate. Please let me know do I have to create a new application from
scratch in Flex or does my already existing code going to be imported.
Thanks
Anuj
On Mon, Mar 10, 2008 at 6:32 PM, eric e. dolecki [EMAIL
hi
just a semantic question really
when writing your classes, would you only declare variables in the
class and assign variables later or would you assign values straight
away if you had them?
so for instance, would you...:
package com.receptacle.timeline
{
//package imports
Actually, I've seen that the values are often set quicker when
initilaised in the contructor rather than against class members , but I
think it looks tidier the way you've done it... imo
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Allandt
Bik-Elliott
Not sure if this is correct for AS3, but I was under the impression that
there was an actual performance penalty to doing things the first way
(object creation and assignment in the class definition rather than in the
methods or the constructor).
Still, I like doing things the 2nd way, if only
can anyone say why dictionary is better than array.. Im seeing it used in alot
of papervision examples and i dont get why?
I will research this on my own as well..
_
Need to know the score, the latest news, or you need your
Either way to me is a non-issue.
However, it is an issue if I want to implement lazy instantiation. That
is, instantiating objects only right before you need them.
Thus, in your first example, the bulk of instantiation occurs up-front.
Lazy instantiation
anuj Sharma wrote:
can I use my already AS 3.0 code in Flex . i am not sure how do these
things
integrate. Please let me know do I have to create a new application from
scratch in Flex or does my already existing code going to be imported.
Your AS3 code will probably work, but you'll need to
An Array is a linear collection. A Hash is a random access collection
(lookup table) of name-value pairs.
Dictionary is a fancy Hash that can take an Object as a key, instead of
a String, and uses strict (===) equality for its lookups.
hash = new Object();
hash.foo = bar;
array = new
In Flex, for visual layout components, there are a lot of options, but
one you'll want to look at is mx.controls.TileList
Jason Merrill
Bank of America
GTO LLD Solutions Design Development
eTools Multimedia
Bank of America Flash Platform Developer Community
Are you a Bank of America
I was just wondering since tthe PV3d guys use it all the time.. and i am having
some trouble interacting with planes consistently ( see
http://www.dnecklesportfolio.com/pv3d/ click on interactive and then
experiements ).. so i thought that it might be an issue as far off as it seems
Date:
You got it! :)
You can mix and match with a Dictionary, as well. You can use strings
as keys or objects.
Patrick Matte | BLITZ wrote:
Thanks Steven, I never really understood what a dictionary was myself, so
dictionary would be useful for something like this ?
dictionary = new
Point.distance (like pretty much all Flash math functions) is
abysmally slow and shouldn't be used in anything performance-critical.
Write your own replacement (using formula provided above) if you're
doing a bunch of these every frame.
On 3/11/08, Kenneth Kawamoto [EMAIL PROTECTED] wrote:
Isn't
Dwayne Neckles wrote:
can anyone say why dictionary is better than array.. Im seeing it
used in alot of papervision examples and i dont get why? I will
research this on my own as well..
Keys in an Array can be numeric, strings, or both:
var a:Array = [];
a[0] = something;
a[hello] =
That's a pretty good use, as long as you call your variable something
more meaningful than dictionary. :)
On 3/11/08, Patrick Matte | BLITZ [EMAIL PROTECTED] wrote:
Thanks Steven, I never really understood what a dictionary was myself, so
dictionary would be useful for something like this ?
they're both eager, though, aren't they?
the only difference is that everything is instantiated in the first
method of the class rather than in the class head
a
On 11 Mar 2008, at 18:10, Mark Lapasa wrote:
Either way to me is a non-issue.
However, it is an issue if I want to implement
The best use for them is to be able to find something you've stored by
its key - as opposed to having to loop through an entire array to find
it.
Pretty damn handy, but sorting them can be complicated.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Hi Jason Merill and Eric
Thanks a lot for your suggestions. i will start exploring FLEX in my project
now.
Any suggestions for good online resources or good books for that. I am going
to google that too.
Appreciate your help,
Anuj
On Tue, Mar 11, 2008 at 11:29 AM, Kerry Thompson [EMAIL PROTECTED]
On a sidenote, it's pretty easy to implement for as2 too btw, although the
performance is probably not uber.
I gotta admit once you get used to object-to-object mapping ... ;)
On Tue, Mar 11, 2008 at 9:07 PM, Claus Wahlers [EMAIL PROTECTED]
wrote:
Claus Wahlers wrote:
An associative Array
Look at the Flex Quick Starts on Adobe Devnet...
http://www.adobe.com/devnet/flex/
Total Training do a couple of Flex 2 courses. I liked James Talbot, but
I found Leo Schuman's voice very sleep inducing and having been through
the RIA one first, then the Visual Programming one was too basic
As far as getting the tools to get started, FlashDevelop + Flex SDK is a
free option.
As for getting started, I would start at the Adobe Developer Connection,
specifically the Getting Started tab in the Flex section:
http://www.adobe.com/devnet/flex/
If you want books, Adobe Flex 2: Training
Hi Glenn Jason
Thank you very much for your help and resources. i will check them out.
Anuj
On Tue, Mar 11, 2008 at 1:39 PM, Glen Pike [EMAIL PROTECTED]
wrote:
Look at the Flex Quick Starts on Adobe Devnet...
http://www.adobe.com/devnet/flex/
Total Training do a couple of Flex 2 courses.
wow!
On Mon, Mar 10, 2008 at 5:51 PM, Michael Avila [EMAIL PROTECTED] wrote:
You would need to be able to communicate using the file transfer protocol
(FTP) ...
Try starting here:http://maliboo.pl/projects/FlexFTP/
On Mon, Mar 10, 2008 at 3:36 PM, Corban Baxter [EMAIL PROTECTED] wrote:
I go for the second option.
Instanciate at the point you need it, and clear if no longer needed.
It also keep memory use limited.
HTH
C
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Allandt
Bik-Elliott (Receptacle)
Verzonden: dinsdag 11 maart 2008 18:41
One more question guys. I installed Flex 3.0 builder. It is 60 days free
trial. For my purpose do you think I should go for Builder 2.0 and not 3.0as
3.0 is kind of new. What would you recommend guys. i am also finding books
and online material hard to find for 3.0. Please let me know.
Thanks
Anuj
To clarify, this difference only matters in the case of static class
members. Anything non-static gets initialized at constructor-time
regardless -- the difference is syntax only.
On 3/11/08, Cor [EMAIL PROTECTED] wrote:
I go for the second option.
Instanciate at the point you need it, and
Allthough the following no longer seems to apply in AS3, it might be good to
know.
In AS2, if you have the following class:
class MyClass {
private var myArray:Array = new Array();
public function addItem(item:Object) {
myArray.push(item);
}
public function get data():Array {
return
Flex 3 = Flex 2 but better ;-)
Books on Flex 2 should apply to Flex 3 as well, as the language (AS3) hasn't
changed.
- Original Message -
From: anuj sharma [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 11, 2008 10:51 PM
Subject: Re:
thanks for your input everyone
i've gone for the second option because i can template it out better
and it looks way neater (plus i can still keep all of my
declarations in one place, the setVars() method)
thanks again
here's a copy of my template if you'd like it
//code:
package
Hi
I am trying to debug my project and it gives me long weird message as
follows. Its saying some Security Sandbox violation.
I am loading external videos in myUILoader component using XML.All of those
directories are in the same folder.
Does anyone has any idea how would i fix that.
Any Help
Anuj Sharma wrote:
I am trying to debug my project and it gives me long weird message as
follows. Its saying some Security Sandbox violation.
I am loading external videos in myUILoader component using XML.All of
those
directories are in the same folder.
Does anyone has any idea how would i
I am trying to debug my project and it gives me long weird message as
follows. Its saying some Security Sandbox violation.
I am loading external videos in myUILoader component using XML.All of
those
directories are in the same folder.
Does anyone has any idea how would i fix that.
Oh,
I'm going to chime in here.
Lazy Instantiation is an irrelevant argument when you're instantiating
in the constructor. What you perceive as cleaner is merely philosophical.
var container:Sprite = new Sprite();
vs
var container:Sprite;
public function ClassName()
{
container = new
Muzak,
Maybe I missed something, but instance2 in your example has no data. Only
static members can be shared across all instances - did you mean...
class MyClass
{
private static var myArray:Array = new Array();
public function addItem(item:Object)
{
MyClass.myArray.push(item);
}
Yes, you might be missed something, Jesse. I got the same result as
Muzak did.
// ActionScript 2.0
// frame action:
var instance1:MyClass = new MyClass();
var instance2:MyClass = new MyClass();
instance1.addItem(Hello World);
trace(instance1.data); // Output: Hello World
I agree with Steven. You may want to put your variable declarations in
another function when they either get suuuper messy or you need more data
(ie. stage.stageWidth).
Going back to style... typically I like to run an INIT() in the constructor
and then break down the tasks into INIT_name(). It
- Original Message -
From: Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED]
To: flashcoders flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 11, 2008 5:41 PM
Subject: [Flashcoders] clean scripting
hi
just a semantic question really
when writing your classes, would you only
71 matches
Mail list logo