23 of 23
Kindest regards,
Shannon
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, November 01, 2005 2:57 PM
To: [email protected]
Subject: Flashcoders Digest, Vol 10, Issue 4
Send Flashcoders mailing list submissions to
[email protected]
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. Expert-Level ActionScripters for hire (BOSTON) (Noyes, Jeff)
2. Does FP8 upgrade require admin privileges? (Peter O'Brien)
3. Getting a video frame as a bitmap (Joe Cutting)
4. RE: Getting a video frame as a bitmap (Merrill, Jason)
5. XPath Query HELP! (Doug Coning)
6. Lite-weight Scrolling textfield (JOR)
7. Re: XPath Query HELP! ([EMAIL PROTECTED])
8. Single giant bitmap vs Multiple smaller bitmaps - Performance
Effects? (Bill Brown)
9. Circle, rotation to ? (eric dolecki)
10. How do you send data from a movie to a loaded swf? (Noyes, Jeff)
11. RE: Circle, rotation to ? (Merrill, Jason)
12. Re: Circle, rotation to ? (Martin Wood)
13. RE: Circle, rotation to ? (Merrill, Jason)
14. Re: Circle, rotation to ? (Martin Wood)
15. Re: Circle, rotation to ? (Helen Triolo)
16. RE: Circle, rotation to ? (Merrill, Jason)
17. Re: Circle, rotation to ? (eric dolecki)
18. Re: Circle, rotation to ? (Martin Wood)
19. RE: blog presentation > flash (dc)
20. Using the FocusManager ([EMAIL PROTECTED])
21. Re: Circle, rotation to ? (Eric E. Dolecki)
22. Re: Using the FocusManager (Sam Shrefler)
23. Flash FileReference and Firefox 1.0.7 (Sullivan, Sean C - MWT)
----------------------------------------------------------------------
Message: 1
Date: Tue, 1 Nov 2005 13:02:34 -0500
From: "Noyes, Jeff" <[EMAIL PROTECTED]>
Subject: [Flashcoders] Expert-Level ActionScripters for hire (BOSTON)
To: "Flashcoders mailing list" <[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
Position is in and around Boston.
Requirements:
- must have JPS or ASP integration experience
- must have experience building business-to-business applications
Please send resume to [EMAIL PROTECTED]
------------------------------
Message: 2
Date: Tue, 1 Nov 2005 18:22:59 +0000
From: "Peter O'Brien" <[EMAIL PROTECTED]>
Subject: [Flashcoders] Does FP8 upgrade require admin privileges?
To: Flashcoders mailing list <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
Does a Flash Player 8 upgrade require admin privileges?
I'm guessing it's not a straight yes or no... but any info regarding
this
would be much appreciated.
Cheers,
Pete
------------------------------
Message: 3
Date: Tue, 01 Nov 2005 18:30:02 +0000
From: Joe Cutting <[EMAIL PROTECTED]>
Subject: [Flashcoders] Getting a video frame as a bitmap
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"; format=flowed
Does anyone know how to get a single frame of a video as a bitmap in
Flash 8?
I thought it would be pretty straightforward but maybe I'm missing
something.
Cheers
Joe
------------------------------
Message: 4
Date: Tue, 1 Nov 2005 14:04:09 -0500
From: "Merrill, Jason" <[EMAIL PROTECTED]>
Subject: RE: [Flashcoders] Getting a video frame as a bitmap
To: "Flashcoders mailing list" <[email protected]>
Message-ID:
<[EMAIL PROTECTED]
om>
Content-Type: text/plain; charset="us-ascii"
This was just posted on Flashnewbies:
http://www.sephiroth.it/tutorials/flashPHP/print_screen/
See the "Advanced" example of taking a video frame and capturing it.
Jason Merrill | E-Learning Solutions | icfconsulting.com
>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Joe Cutting
>>Sent: Tuesday, November 01, 2005 1:30 PM
>>To: [email protected]
>>Subject: [Flashcoders] Getting a video frame as a bitmap
>>
>>Does anyone know how to get a single frame of a video as a bitmap in
Flash 8?
>>
>>I thought it would be pretty straightforward but maybe I'm missing
something.
>>
>>Cheers
>>
>>Joe
>>
>>_______________________________________________
>>Flashcoders mailing list
>>[email protected]
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
NOTICE:
This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in
error, please notify the sender immediately and delete the original. Any
other use of this e-mail by you is prohibited.
------------------------------
Message: 5
Date: Tue, 1 Nov 2005 14:15:22 -0500
From: "Doug Coning" <[EMAIL PROTECTED]>
Subject: [Flashcoders] XPath Query HELP!
To: "Flashcoders mailing list" <[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
I am trying to run a query using xfactorstudio to find all the elements
where a flag (bit) is set to '1' or true. However, I have been
unsuccessful at getting the class to return any items when trying to
query on the node.
When I use the Xpath.selectNodes() function and pass the queries below,
nothing works. Please help!
Here's a sample:
import com.xfactorstudio.xml.xpath.*;
_global.XPath = XPath;
var myStr:String =
"<products><product><flag>0</flag><name>Item
1</name><price>19.95</price></product><product><flag>1</flag><name>Plate
</name><price>12.95</price></product><product><flag>0</flag><name>Spoon<
/name><price>4.95</price></product></products>";
var myXML:XML = new XML(myStr);
trace("This works: \t\t" +
XPath.selectNodes(myXML,"/products/product[name = 'Plate']"));
trace("This doesn't work: " +
XPath.selectNodes(myXML,"/products/product[flag = '1']"));
trace("This doesn't work: " +
XPath.selectNodes(myXML,"/products/product[flag = 1]"));
trace("This doesn't work: " +
XPath.selectNodes(myXML,"/products/product[flag > 0]"));
Thanks,
Doug Coning
Software Developer
FORUM Solutions, LLC
This e-mail and any attachment(s) are intended for the specified
recipient(s) only and are legally protected. If you have received this
communication in error, please "reply to" sender's e-mail address with
notification of the error and then destroy this message in all
electronic and physical forms.
------------------------------
Message: 6
Date: Tue, 01 Nov 2005 14:15:18 -0500
From: JOR <[EMAIL PROTECTED]>
Subject: [Flashcoders] Lite-weight Scrolling textfield
To: Flashcoders mailing list <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
What's the best way to add a low KB scrolling non-editable text area to
an app?
I don't want to use MM's UI TextArea component because it will be my
only UI component in the app which will add like 30KB of dependencies.
I was going to take a crack at implementing a masked movieclip with a
long dynamic textfield in it. Then some sort of lite-weight scrollbar
to control it's clipping.
Any ideas where I can get a scrollbar for just such an occassion?
Something with a auto-resizable and draggable position indicator would
be ideal.
Or any ideas on a better approach or do I have to bite the bullet on the
UI component?
JOR
------------------------------
Message: 7
Date: 1 Nov 2005 19:18:07 -0000
From: [EMAIL PROTECTED]
Subject: Re: [Flashcoders] XPath Query HELP!
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="ISO-8859-1"
doug, do you have a better xml string, the one in your example is not
valid xml and the flag you mentioned is not in it...
grant
----- Original Message -----
From: Doug Coning [EMAIL PROTECTED]
To: Flashcoders mailing list [email protected]
Sent: 11/1/05 2:11 PM
Subject: [Flashcoders] XPath Query HELP!
> I am trying to run a query using xfactorstudio to find all the
elements
> where a flag (bit) is set to '1' or true. However, I have been
> unsuccessful at getting the class to return any items when trying to
> query on the node.
>
> When I use the Xpath.selectNodes() function and pass the queries
below,
> nothing works. Please help!
>
> Here's a sample:
>
> import com.xfactorstudio.xml.xpath.*;
> _global.XPath = XPath;
>
> var myStr:String =
> "0Item
> 119.951Plate
> 12.950Spoon4.95";
>
> var myXML:XML = new XML(myStr);
>
> trace("This works: \t\t" +
> XPath.selectNodes(myXML,"/products/product[name = 'Plate']"));
> trace("This doesn't work: " +
> XPath.selectNodes(myXML,"/products/product[flag = '1']"));
> trace("This doesn't work: " +
> XPath.selectNodes(myXML,"/products/product[flag = 1]"));
> trace("This doesn't work: " +
> XPath.selectNodes(myXML,"/products/product[flag > 0]"));
>
> Thanks,
>
> Doug Coning
> Software Developer
> FORUM Solutions, LLC
>
> This e-mail and any attachment(s) are intended for the specified
recipient(s) only and are legally protected. If you have received this
communication in error, please "reply to" sender's e-mail address with
notification of the error and then destroy this message in all
electronic and physical forms.
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
------------------------------
Message: 8
Date: Tue, 1 Nov 2005 11:46:18 -0800
From: Bill Brown <[EMAIL PROTECTED]>
Subject: [Flashcoders] Single giant bitmap vs Multiple smaller bitmaps
- Performance Effects?
To: Flashcoders mailing list <[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1
Is there any rendering performance difference between using one giant
bitmap
versus slicing up the bitmap into smaller bitmaps?
I am creating a scrolling game for a kiosk, so memory usage is not a big
issue.
Currently I am slicing up one long unique image (no patterns or
repetitive
parts) into several smaller jpegs and loading them into movieclips when
they
are required (scrolled into view). The movieclips are removed when they
are
scrolled out of view. Three scrolling movieclips are required at any one
time. The problem with this method is that there is a stutter each time
a
movieclip is loaded with a jpeg, or removed.
I am considering using just one giant bitmap and scrolling it to remove
the
stutter. Also I suspect scrolling only one movieclip will be less of a
performance hit than scrolling three movieclips.
Does anyone one if one method or the other is better? Is there any
difference at all?
Thanks
------------------------------
Message: 9
Date: Tue, 1 Nov 2005 15:10:22 -0500
From: eric dolecki <[EMAIL PROTECTED]>
Subject: [Flashcoders] Circle, rotation to ?
To: Flashcoders mailing list <[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1
I have a math question. Lets say I have a circular movieclip on the
stage.
It has a directional marker on it so you know which direction its
rotated
to.
click on the circle, now with easing (even just linear), rotate to the
movieclip from its current rotation to the destination angle (where the
movieclip was clicked on). To work in full 360 degrees.
Anyone have any good suggestions on the best way to code this, or an
example
to boot?
Thanks,
e.dolecki
------------------------------
Message: 10
Date: Tue, 1 Nov 2005 15:14:33 -0500
From: "Noyes, Jeff" <[EMAIL PROTECTED]>
Subject: [Flashcoders] How do you send data from a movie to a loaded
swf?
To: "Flashcoders mailing list" <[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
I have a movie that has a movieclip inside called "rtFrame"
On load, the movie loads a foo.swf into rtFrame.
If I want to send data from the main movie to a dynamic text file inside
of foo.swf - how do you do that?
-----Original Message-----
From: eric dolecki [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 01, 2005 3:10 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Circle, rotation to ?
I have a math question. Lets say I have a circular movieclip on the
stage.
It has a directional marker on it so you know which direction its
rotated
to.
click on the circle, now with easing (even just linear), rotate to the
movieclip from its current rotation to the destination angle (where the
movieclip was clicked on). To work in full 360 degrees.
Anyone have any good suggestions on the best way to code this, or an
example
to boot?
Thanks,
e.dolecki
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
------------------------------
Message: 11
Date: Tue, 1 Nov 2005 15:18:17 -0500
From: "Merrill, Jason" <[EMAIL PROTECTED]>
Subject: RE: [Flashcoders] Circle, rotation to ?
To: "Flashcoders mailing list" <[email protected]>
Message-ID:
<[EMAIL PROTECTED]
om>
Content-Type: text/plain; charset="us-ascii"
No math required, just use the tween and transition mx classes to tween
to a new rotation.
Jason Merrill | E-Learning Solutions | icfconsulting.com
>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of eric dolecki
>>Sent: Tuesday, November 01, 2005 3:10 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] Circle, rotation to ?
>>
>>I have a math question. Lets say I have a circular movieclip on the
stage.
>>It has a directional marker on it so you know which direction its
rotated
>>to.
>>
>>click on the circle, now with easing (even just linear), rotate to the
>>movieclip from its current rotation to the destination angle (where
the
>>movieclip was clicked on). To work in full 360 degrees.
>>
>>Anyone have any good suggestions on the best way to code this, or an
example
>>to boot?
>>
>>Thanks,
>>e.dolecki
>>_______________________________________________
>>Flashcoders mailing list
>>[email protected]
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
NOTICE:
This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in
error, please notify the sender immediately and delete the original. Any
other use of this e-mail by you is prohibited.
------------------------------
Message: 12
Date: Tue, 01 Nov 2005 21:22:27 +0100
From: Martin Wood <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] Circle, rotation to ?
To: Flashcoders mailing list <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
but you'll need some trigonometry to work out the rotation angle from
the point that is clicked.
if my memory serves me, you can use Math.atan2( y, x ) to get you the
angle in radians, but i think you have to do some quadrant checking to
get the right answer.
the quadrant check itself is easy, just check if x is left or right of
the midpoint, and if y is above or below.
that should get you going.
martin
Merrill, Jason wrote:
> No math required, just use the tween and transition mx classes to
tween
> to a new rotation.
>
>
> Jason Merrill | E-Learning Solutions | icfconsulting.com
>
>
>
>
>
>
>
>
>
>
>
>>>-----Original Message-----
>>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>>[EMAIL PROTECTED] On Behalf Of eric dolecki
>>>Sent: Tuesday, November 01, 2005 3:10 PM
>>>To: Flashcoders mailing list
>>>Subject: [Flashcoders] Circle, rotation to ?
>>>
>>>I have a math question. Lets say I have a circular movieclip on the
>
> stage.
>
>>>It has a directional marker on it so you know which direction its
>
> rotated
>
>>>to.
>>>
>>>click on the circle, now with easing (even just linear), rotate to
the
>>>movieclip from its current rotation to the destination angle (where
>
> the
>
>>>movieclip was clicked on). To work in full 360 degrees.
>>>
>>>Anyone have any good suggestions on the best way to code this, or an
>
> example
>
>>>to boot?
>>>
>>>Thanks,
>>>e.dolecki
>>>_______________________________________________
>>>Flashcoders mailing list
>>>[email protected]
>>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> NOTICE:
> This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in
error, please notify the sender immediately and delete the original. Any
other use of this e-mail by you is prohibited.
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
--
want to know what i think? probably not
http://relivethefuture.com/choronzon
------------------------------
Message: 13
Date: Tue, 1 Nov 2005 15:25:19 -0500
From: "Merrill, Jason" <[EMAIL PROTECTED]>
Subject: RE: [Flashcoders] Circle, rotation to ?
To: "Flashcoders mailing list" <[email protected]>
Message-ID:
<[EMAIL PROTECTED]
om>
Content-Type: text/plain; charset="us-ascii"
Ah, rotate to the click point, right. So combine Martin's trig and my
suggestion of the tween classes to move to a new rotation angle, and you
should have what you need.
Jason Merrill | E-Learning Solutions | icfconsulting.com
>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Martin Wood
>>Sent: Tuesday, November 01, 2005 3:22 PM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] Circle, rotation to ?
>>
>>but you'll need some trigonometry to work out the rotation angle from
>>the point that is clicked.
>>
>>if my memory serves me, you can use Math.atan2( y, x ) to get you
the
>>angle in radians, but i think you have to do some quadrant checking to
>>get the right answer.
>>
>>the quadrant check itself is easy, just check if x is left or right of
>>the midpoint, and if y is above or below.
>>
>>that should get you going.
>>
>>martin
>>
>>Merrill, Jason wrote:
>>> No math required, just use the tween and transition mx classes to
tween
>>> to a new rotation.
>>>
>>>
>>> Jason Merrill | E-Learning Solutions | icfconsulting.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>>-----Original Message-----
>>>>>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>>>>[EMAIL PROTECTED] On Behalf Of eric dolecki
>>>>>Sent: Tuesday, November 01, 2005 3:10 PM
>>>>>To: Flashcoders mailing list
>>>>>Subject: [Flashcoders] Circle, rotation to ?
>>>>>
>>>>>I have a math question. Lets say I have a circular movieclip on the
>>>
>>> stage.
>>>
>>>>>It has a directional marker on it so you know which direction its
>>>
>>> rotated
>>>
>>>>>to.
>>>>>
>>>>>click on the circle, now with easing (even just linear), rotate to
the
>>>>>movieclip from its current rotation to the destination angle (where
>>>
>>> the
>>>
>>>>>movieclip was clicked on). To work in full 360 degrees.
>>>>>
>>>>>Anyone have any good suggestions on the best way to code this, or
an
>>>
>>> example
>>>
>>>>>to boot?
>>>>>
>>>>>Thanks,
>>>>>e.dolecki
>>>>>_______________________________________________
>>>>>Flashcoders mailing list
>>>>>[email protected]
>>>>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>> NOTICE:
>>> This message is for the designated recipient only and may contain
privileged or
>>confidential information. If you have received it in error, please
notify the sender
>>immediately and delete the original. Any other use of this e-mail by
you is
>>prohibited.
>>> _______________________________________________
>>> Flashcoders mailing list
>>> [email protected]
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>
>>--
>>want to know what i think? probably not
>>
>>http://relivethefuture.com/choronzon
>>_______________________________________________
>>Flashcoders mailing list
>>[email protected]
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
------------------------------
Message: 14
Date: Tue, 01 Nov 2005 21:33:18 +0100
From: Martin Wood <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] Circle, rotation to ?
To: Flashcoders mailing list <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
ok, i was wrong, looks like you dont even need the quadrant
checks...thats my memory for you :)
i made a little movie with a circular movie clip, the reg point was in
the middle, and another movieclip called pointer, which is just a line
going up from the reg point, then this code did the trick
circle.onRelease = function()
{
x = this._xmouse;
y = this._ymouse;
angle = Math.atan2(y,x) * (180 / Math.PI);
_root.pointer._rotation = angle + 90;
}
thanks,
i havent written code like that in a long time, its quite fun being old
skool ;)
Martin.
Merrill, Jason wrote:
> Ah, rotate to the click point, right. So combine Martin's trig and my
> suggestion of the tween classes to move to a new rotation angle, and
you
> should have what you need.
>
> Jason Merrill | E-Learning Solutions | icfconsulting.com
>
>
>
>
>
>
>
>
>
>
>
>>>-----Original Message-----
>>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>>[EMAIL PROTECTED] On Behalf Of Martin Wood
>>>Sent: Tuesday, November 01, 2005 3:22 PM
>>>To: Flashcoders mailing list
>>>Subject: Re: [Flashcoders] Circle, rotation to ?
>>>
>>>but you'll need some trigonometry to work out the rotation angle from
>>>the point that is clicked.
>>>
>>>if my memory serves me, you can use Math.atan2( y, x ) to get you
>
> the
>
>>>angle in radians, but i think you have to do some quadrant checking
to
>>>get the right answer.
>>>
>>>the quadrant check itself is easy, just check if x is left or right
of
>>>the midpoint, and if y is above or below.
>>>
>>>that should get you going.
>>>
>>>martin
>>>
>>>Merrill, Jason wrote:
>>>
>>>>No math required, just use the tween and transition mx classes to
>
> tween
>
>>>>to a new rotation.
>>>>
>>>>
>>>>Jason Merrill | E-Learning Solutions | icfconsulting.com
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>>-----Original Message-----
>>>>>>From: [EMAIL PROTECTED]
>
> [mailto:flashcoders-
>
>>>>>>[EMAIL PROTECTED] On Behalf Of eric dolecki
>>>>>>Sent: Tuesday, November 01, 2005 3:10 PM
>>>>>>To: Flashcoders mailing list
>>>>>>Subject: [Flashcoders] Circle, rotation to ?
>>>>>>
>>>>>>I have a math question. Lets say I have a circular movieclip on
the
>>>>
>>>>stage.
>>>>
>>>>
>>>>>>It has a directional marker on it so you know which direction its
>>>>
>>>>rotated
>>>>
>>>>
>>>>>>to.
>>>>>>
>>>>>>click on the circle, now with easing (even just linear), rotate to
>
> the
>
>>>>>>movieclip from its current rotation to the destination angle
(where
>>>>
>>>>the
>>>>
>>>>
>>>>>>movieclip was clicked on). To work in full 360 degrees.
>>>>>>
>>>>>>Anyone have any good suggestions on the best way to code this, or
>
> an
>
>>>>example
>>>>
>>>>
>>>>>>to boot?
>>>>>>
>>>>>>Thanks,
>>>>>>e.dolecki
>>>>>>_______________________________________________
>>>>>>Flashcoders mailing list
>>>>>>[email protected]
>>>>>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>
>>>>NOTICE:
>>>>This message is for the designated recipient only and may contain
>
> privileged or
>
>>>confidential information. If you have received it in error, please
>
> notify the sender
>
>>>immediately and delete the original. Any other use of this e-mail by
>
> you is
>
>>>prohibited.
>>>
>>>>_______________________________________________
>>>>Flashcoders mailing list
>>>>[email protected]
>>>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>
>>>
>>>--
>>>want to know what i think? probably not
>>>
>>>http://relivethefuture.com/choronzon
>>>_______________________________________________
>>>Flashcoders mailing list
>>>[email protected]
>>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
--
want to know what i think? probably not
http://relivethefuture.com/choronzon
------------------------------
Message: 15
Date: Tue, 01 Nov 2005 15:39:41 -0500
From: Helen Triolo <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] Circle, rotation to ?
To: Flashcoders mailing list <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Assuming your circle has a center registration point:
import mx.transitions.Tween;
import mx.transitions.easing.*;
function rotation(dx:Number, dy:Number):Number {
return Math.atan2(dy, dx) * 180/Math.PI;
}
circle.onRelease = function() {
new Tween(this, "_rotation", Strong.easeOut, this._rotation,
rotation(_xmouse - this._x, _ymouse-this._y), 1, true);
};
I added it to the bottom of this page:
http://flash-creations.com/notes/asclass_math.php
The only thing is you're at the mercy of the Tween class to determine
which way the rotation will go, so you might need to modify it some.
Helen
eric dolecki wrote:
>I have a math question. Lets say I have a circular movieclip on the
stage.
>It has a directional marker on it so you know which direction its
rotated
>to.
>
>click on the circle, now with easing (even just linear), rotate to the
>movieclip from its current rotation to the destination angle (where the
>movieclip was clicked on). To work in full 360 degrees.
>
>Anyone have any good suggestions on the best way to code this, or an
example
>to boot?
>
>Thanks,
>e.dolecki
>
>
------------------------------
Message: 16
Date: Tue, 1 Nov 2005 15:44:32 -0500
From: "Merrill, Jason" <[EMAIL PROTECTED]>
Subject: RE: [Flashcoders] Circle, rotation to ?
To: "Flashcoders mailing list" <[email protected]>
Message-ID:
<[EMAIL PROTECTED]
om>
Content-Type: text/plain; charset="us-ascii"
Nice, I'm going to save that code snippet. Eric, for visual effect, you
also might want to tween animate the transition to the angle instead of
snapping directly to it. To add to Martin's code, something like this:
circle.onRelease = function(){
var x = this._xmouse;
var y = this._ymouse;
angle = Math.atan2(y,x) * (180 / Math.PI);
var thisRotation = _root.pointer._rotation;
var newAngle = angle + 90;
var tween = new mx.transitions.Tween(_root.pointer, "_rotation",
mx.transitions.easing.Regular.easeIn, thisRotation, newAngle, 1, true);
}
Jason Merrill | E-Learning Solutions | icfconsulting.com
>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Martin Wood
>>Sent: Tuesday, November 01, 2005 3:33 PM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] Circle, rotation to ?
>>
>>ok, i was wrong, looks like you dont even need the quadrant
>>checks...thats my memory for you :)
>>
>>i made a little movie with a circular movie clip, the reg point was in
>>the middle, and another movieclip called pointer, which is just a line
>>going up from the reg point, then this code did the trick
>>
>>circle.onRelease = function()
>>{
>> x = this._xmouse;
>> y = this._ymouse;
>>
>> angle = Math.atan2(y,x) * (180 / Math.PI);
>>
>> _root.pointer._rotation = angle + 90;
>>}
>>
>>thanks,
>>
>>i havent written code like that in a long time, its quite fun being
old
>>skool ;)
>>
>>Martin.
>>
>>Merrill, Jason wrote:
>>> Ah, rotate to the click point, right. So combine Martin's trig and
my
>>> suggestion of the tween classes to move to a new rotation angle, and
you
>>> should have what you need.
>>>
>>> Jason Merrill | E-Learning Solutions | icfconsulting.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>>-----Original Message-----
>>>>>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>>>>[EMAIL PROTECTED] On Behalf Of Martin Wood
>>>>>Sent: Tuesday, November 01, 2005 3:22 PM
>>>>>To: Flashcoders mailing list
>>>>>Subject: Re: [Flashcoders] Circle, rotation to ?
>>>>>
>>>>>but you'll need some trigonometry to work out the rotation angle
from
>>>>>the point that is clicked.
>>>>>
>>>>>if my memory serves me, you can use Math.atan2( y, x ) to get you
>>>
>>> the
>>>
>>>>>angle in radians, but i think you have to do some quadrant checking
to
>>>>>get the right answer.
>>>>>
>>>>>the quadrant check itself is easy, just check if x is left or right
of
>>>>>the midpoint, and if y is above or below.
>>>>>
>>>>>that should get you going.
>>>>>
>>>>>martin
>>>>>
>>>>>Merrill, Jason wrote:
>>>>>
>>>>>>No math required, just use the tween and transition mx classes to
>>>
>>> tween
>>>
>>>>>>to a new rotation.
>>>>>>
>>>>>>
>>>>>>Jason Merrill | E-Learning Solutions | icfconsulting.com
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>-----Original Message-----
>>>>>>>>From: [EMAIL PROTECTED]
>>>
>>> [mailto:flashcoders-
>>>
>>>>>>>>[EMAIL PROTECTED] On Behalf Of eric dolecki
>>>>>>>>Sent: Tuesday, November 01, 2005 3:10 PM
>>>>>>>>To: Flashcoders mailing list
>>>>>>>>Subject: [Flashcoders] Circle, rotation to ?
>>>>>>>>
>>>>>>>>I have a math question. Lets say I have a circular movieclip on
the
>>>>>>
>>>>>>stage.
>>>>>>
>>>>>>
>>>>>>>>It has a directional marker on it so you know which direction
its
>>>>>>
>>>>>>rotated
>>>>>>
>>>>>>
>>>>>>>>to.
>>>>>>>>
>>>>>>>>click on the circle, now with easing (even just linear), rotate
to
>>>
>>> the
>>>
>>>>>>>>movieclip from its current rotation to the destination angle
(where
>>>>>>
>>>>>>the
>>>>>>
>>>>>>
>>>>>>>>movieclip was clicked on). To work in full 360 degrees.
>>>>>>>>
>>>>>>>>Anyone have any good suggestions on the best way to code this,
or
>>>
>>> an
>>>
>>>>>>example
>>>>>>
>>>>>>
>>>>>>>>to boot?
>>>>>>>>
>>>>>>>>Thanks,
>>>>>>>>e.dolecki
>>>>>>>>_______________________________________________
>>>>>>>>Flashcoders mailing list
>>>>>>>>[email protected]
>>>>>>>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>>>
>>>>>>NOTICE:
>>>>>>This message is for the designated recipient only and may contain
>>>
>>> privileged or
>>>
>>>>>confidential information. If you have received it in error, please
>>>
>>> notify the sender
>>>
>>>>>immediately and delete the original. Any other use of this e-mail
by
>>>
>>> you is
>>>
>>>>>prohibited.
>>>>>
>>>>>>_______________________________________________
>>>>>>Flashcoders mailing list
>>>>>>[email protected]
>>>>>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>>>
>>>>>
>>>>>--
>>>>>want to know what i think? probably not
>>>>>
>>>>>http://relivethefuture.com/choronzon
>>>>>_______________________________________________
>>>>>Flashcoders mailing list
>>>>>[email protected]
>>>>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>> _______________________________________________
>>> Flashcoders mailing list
>>> [email protected]
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>
>>--
>>want to know what i think? probably not
>>
>>http://relivethefuture.com/choronzon
>>_______________________________________________
>>Flashcoders mailing list
>>[email protected]
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
------------------------------
Message: 17
Date: Tue, 1 Nov 2005 15:50:36 -0500
From: eric dolecki <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] Circle, rotation to ?
To: Flashcoders mailing list <[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1
Its that last part frying me - sometimes it works as expected, other
times,
it decides to rotate the long way around :/
thanks all.
On 11/1/05, Helen Triolo <[EMAIL PROTECTED]> wrote:
>
> Assuming your circle has a center registration point:
>
> import mx.transitions.Tween;
> import mx.transitions.easing.*;
>
> function rotation(dx:Number, dy:Number):Number {
> return Math.atan2(dy, dx) * 180/Math.PI;
> }
> circle.onRelease = function() {
> new Tween(this, "_rotation", Strong.easeOut, this._rotation,
> rotation(_xmouse - this._x, _ymouse-this._y), 1, true);
> };
>
> I added it to the bottom of this page:
> http://flash-creations.com/notes/asclass_math.php
>
> The only thing is you're at the mercy of the Tween class to determine
> which way the rotation will go, so you might need to modify it some.
>
> Helen
>
> eric dolecki wrote:
>
> >I have a math question. Lets say I have a circular movieclip on the
> stage.
> >It has a directional marker on it so you know which direction its
rotated
> >to.
> >
> >click on the circle, now with easing (even just linear), rotate to
the
> >movieclip from its current rotation to the destination angle (where
the
> >movieclip was clicked on). To work in full 360 degrees.
> >
> >Anyone have any good suggestions on the best way to code this, or an
> example
> >to boot?
> >
> >Thanks,
> >e.dolecki
> >
> >
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
------------------------------
Message: 18
Date: Tue, 01 Nov 2005 22:16:43 +0100
From: Martin Wood <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] Circle, rotation to ?
To: Flashcoders mailing list <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
well, what you need to do is work out the shortest route to the angle
you want.
i think it would go something like this
first compute the difference in angles :
angleDiff = abs(destAngle - sourceAngle)
if its greater than 180 degrees, you want to go the other way.
to find that, check which angle is bigger.
goClockwise = sourceAngle > destAngle
So, if you are at 5 degrees and you click at 355 you get :
angleDiff = 355 - 5
= 350
goClockwise = false
and if you are at 355 and want to go to 5
angleDiff = 5 - 355
= 350
goClockwise = true
then find out how far to go :
howFar = 360 - angleDiff
and if you want to go anticlockwise, make it negative
THEN, keep the original angle stored, run the tween from 0 -> howFar and
add it to the original angle at each step.
i think this means you wont be able to get the tween to change _rotation
directly, but rather you'll have to get a callback or something similar
to grab the current tween position. (or you could do something nifty
with nested movieclips and rotate the parent without tweening first, so
you can just modify the rotation of the child from the tween, but that
may be more trouble than its worth..)
anyway, i think that should work, im just working it out as i go along
so it could fail for some cases...this may be where i was thinking about
the quadrant checks, but im not sure.
i'll give it a try in a while, ive got non-computer things to do now. :)
thanks,
Martin
eric dolecki wrote:
> Its that last part frying me - sometimes it works as expected, other
times,
> it decides to rotate the long way around :/
>
> thanks all.
>
------------------------------
Message: 19
Date: Wed, 2 Nov 2005 06:56:43 +0900
From: "dc" <[EMAIL PROTECTED]>
Subject: RE: [Flashcoders] blog presentation > flash
To: "'Flashcoders mailing list'" <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
Judah hi -
> I started a Flash UI for drupal project a while ago. After my
> research I figured you could do a Flash front end to display
> data but it would be difficult to do the data entry. So the
> option would be a mixed site with Flash to display content
> and HTML to create it. I came to the conclusion that Drupal
> needed an xml api to pull in straight from the index.php page
> otherwise I would have had to write my own xml api or parse
> the html in an xml object. At the time (~Feb, 05) someone
My approach would be to have some PHP classes server side that talked to
the
CMS DB to pull out whats required. then package as XML to return to
flash.
so flash wouldnt have to talk directly to drupal (which can only return
html
basically).
I guess this ends up being an XML adapter for drupal, which seems like a
big
project in general but might not be too bad for just say pulling out
categories or news items in a set category.
however nice the code is once you really get into it, drupal seems like
a
lot of work to pull info from, whereas wordpress seemed to have nicely
document + simple database classes.
if you have any docs, it would be nice to see.
/dc
------------------------------
Message: 20
Date: 1 Nov 2005 22:37:53 -0000
From: [EMAIL PROTECTED]
Subject: [Flashcoders] Using the FocusManager
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="ISO-8859-1"
I appear to be in focus manager hell.
I have an application with many "forms" each form is extended from movie
clip and based on what menu option you have selected the form may or may
not be visible.
For example I have create user and update user, if you have selected
create user, then update user is not visible.
both of these forms have the default push button set to their own push
button, however in testing I'm finding that if I hit the enter key when
the create user form has focus, the button on the hidden update user
form is being activated.
The way I'm using focus manager right now is getting one by doing
submitButton.getFocusManager.defaultPushButton = submitButton;
Is there some other way I'm supposed to use the focus manager, it seems
like there is one for the whole application instead of 1 per movie clip,
or one per form. I tried attaching my own instance of the focus manager
to each form but didn't see any good results.
Macromedias docs on how to implement focus management in a sizeable
application with multiple forms is pretty non existent.
any help would be appreciated.
Grant
http://www.bluetube.com
http://www.studiodaily.com/filmandvideo/searchlist/5579.html our 1st
press coverage!
------------------------------
Message: 21
Date: Tue, 1 Nov 2005 17:52:21 -0500
From: "Eric E. Dolecki" <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] Circle, rotation to ?
To: Flashcoders mailing list <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hmm yes. Looks like the regular Tween stuff won't work.
Looks like a rotation easing class might be in order. And it decides
whether or not to rotate + or - to get to the destination. Its a bit
of work to do, but it would really be worth it. The Tween class seems
to only want to += until it gets to the desired rotation - which is
understandable. But sometimes we need tighter control ;)
e.dolecki
On Nov 1, 2005, at 4:16 PM, Martin Wood wrote:
> well, what you need to do is work out the shortest route to the
> angle you want.
>
> i think it would go something like this
>
> first compute the difference in angles :
>
> angleDiff = abs(destAngle - sourceAngle)
>
> if its greater than 180 degrees, you want to go the other way.
>
> to find that, check which angle is bigger.
>
> goClockwise = sourceAngle > destAngle
>
> So, if you are at 5 degrees and you click at 355 you get :
>
> angleDiff = 355 - 5
> = 350
>
> goClockwise = false
>
> and if you are at 355 and want to go to 5
>
> angleDiff = 5 - 355
> = 350
>
> goClockwise = true
>
> then find out how far to go :
>
> howFar = 360 - angleDiff
>
> and if you want to go anticlockwise, make it negative
>
> THEN, keep the original angle stored, run the tween from 0 ->
> howFar and add it to the original angle at each step.
>
> i think this means you wont be able to get the tween to change
> _rotation directly, but rather you'll have to get a callback or
> something similar to grab the current tween position. (or you could
> do something nifty with nested movieclips and rotate the parent
> without tweening first, so you can just modify the rotation of the
> child from the tween, but that may be more trouble than its worth..)
>
> anyway, i think that should work, im just working it out as i go
> along so it could fail for some cases...this may be where i was
> thinking about the quadrant checks, but im not sure.
>
> i'll give it a try in a while, ive got non-computer things to do
> now. :)
>
> thanks,
>
> Martin
>
>
> eric dolecki wrote:
>> Its that last part frying me - sometimes it works as expected,
>> other times,
>> it decides to rotate the long way around :/
>> thanks all.
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
------------------------------
Message: 22
Date: Tue, 1 Nov 2005 18:48:42 -0500
From: Sam Shrefler <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] Using the FocusManager
To: Flashcoders mailing list <[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1
Grant,
The way i have taken care of this in the past is just to call:
_root.focusManager.defaultPushButtonEnabled = true;
_root.focusManager.defaultPushButton = submitButton;
If the other button is still submitting, try tracing
_root.focusManager.defaultPushButton and see what it says?
Hope this helps, focus manager isnt' always fun...
Sam
On 1 Nov 2005 22:37:53 -0000, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> I appear to be in focus manager hell.
>
> I have an application with many "forms" each form is extended from
movie
> clip and based on what menu option you have selected the form may or
may not
> be visible.
>
> For example I have create user and update user, if you have selected
> create user, then update user is not visible.
>
> both of these forms have the default push button set to their own push
> button, however in testing I'm finding that if I hit the enter key
when the
> create user form has focus, the button on the hidden update user form
is
> being activated.
>
> The way I'm using focus manager right now is getting one by doing
>
> submitButton.getFocusManager.defaultPushButton = submitButton;
>
> Is there some other way I'm supposed to use the focus manager, it
seems
> like there is one for the whole application instead of 1 per movie
clip, or
> one per form. I tried attaching my own instance of the focus manager
to each
> form but didn't see any good results.
>
> Macromedias docs on how to implement focus management in a sizeable
> application with multiple forms is pretty non existent.
>
>
> any help would be appreciated.
>
> Grant
> http://www.bluetube.com
> http://www.studiodaily.com/filmandvideo/searchlist/5579.html our 1st
press
> coverage!
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
------------------------------
Message: 23
Date: Tue, 1 Nov 2005 15:53:39 -0800
From: "Sullivan, Sean C - MWT" <[EMAIL PROTECTED]>
Subject: [Flashcoders] Flash FileReference and Firefox 1.0.7
To: <[email protected]>
Cc: "Sorensen, Shannon M - MWL" <[EMAIL PROTECTED]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
I am having a problem with the FileReference class in Flash Player 8 and
Firefox 1.0.7
This is my system configuration:
Microsoft Windows XP
IBM Websphere 4.0.7
Firefox 1.0.7
Flash Player version 8,0,22,0
On the server-side, my Java application server (Websphere) sets this
cookie:
[11/1/05 15:41:25:684 PST] 6f4fa5da SystemOut U Cookie:
JSESSIONID=0000J5NBY1F4IHBZRCQXAQK5HPA:-1
In the same session, we use Flash's FileReference class to upload a file
to the server. Flash Player 8 sends two HTTP POST's to the server.
The cookie contained in Flash's file upload request is wrong:
[11/1/05 15:42:05:325 PST] 6f4fa5da SystemOut U Cookie:
JSESSIONID=0000SQL1B013JUL1140XYU2YONY:-1
Why is the JSESSIONID changing?
The problem exists with Firefox but not in Internet Explorer.
We have reproduced this bug on two different PC's.
Is there a fix or workaround?
Thanks in advance,
Sean
------------------------------
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
End of Flashcoders Digest, Vol 10, Issue 4
******************************************
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders