Sweet, thanks!
Elia
- Original Message -
From: Juan Pablo Califano [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Sunday, February 17, 2008 11:59 PM
Subject: Re: [Flashcoders] Swap 8 bit palettes
If I'm not getting this wrong, this simple function
Erik,
it would be something like this:
var c:Clock = new Clock();
getTime()
setInterval(this , 'getTime' , 1000)
function getTime()
{
var tTime:Time = c.getElepasedTime()
trace(tTime.serialize())
delete tTime; // is this neccessary and if so, is tTime = null maybe
better ???
That all looks fine. There is no memory leak in the code you showed here.
You do not need to delete tTime as it is declared within the scope of the
function and will be marked for deletion as soon as the function is
complete.
If I run the classes (with the line clockdata = new
ClockData()
hey guys - i have a question that i really hope someone can answer
i have a flash banner that i'm working on that is 300px wide x 250px
deep
i have done a mouse follower that tracks the where the mouse is and
then chooses a frame of animation to show so that the people are
always
i've amended my code as follows - seems to have sorted the problem out
in a nutshell, i multiplied the y axis by 83.333 percent (or the
actual rectangle height / square height) and sorted out the way the
last frame is chosen (which turned out to be a lot simpler than i
originally did it)
quotehowever, because the actual shape is a rectangle, i think there's an
issue
/quote
What exactly is the issue you're seeing?
I think you may be over-complicating it. If the angles that your people look
are in 45 degree increments then that's how your angles should be calculated
- i.e. using
the actual shape of the banner is rectangular so the angles shouldn't
actually be increments of 45 degrees like they were (see SOLVED)
thanks for the input tho
On 18 Feb 2008, at 13:46, Adrian Park wrote:
quotehowever, because the actual shape is a rectangle, i think
there's an
issue
On 18/02/2008 16:16, laurent wrote:
Is it possible to copy a string to the clipboard with actionScript 3 or
is it only available from Flex ?
import flash.system.System;
System.setClipboard(some text);
There's no System.getClipboard(). Write only.
I don't know if you can do that in Flex, but there's Clipboard class in AIR:
Clipboard.generalClipboard.setData(ClipboardFormats.TEXT_FORMAT,
yourString);
Kenneth Kawamoto
http://www.materiaprima.co.uk/
laurent wrote:
Hi list,
Is it possible to copy a string to the clipboard with
Hi list,
Is it possible to copy a string to the clipboard with actionScript 3 or
is it only available from Flex ?
L
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Erik,
thanks for clearing that up for me. In retrospect it makes sense that
the memory builds up with the trace statement. From now on I will test
for memory leak in the standalone player.
Jiri
EECOLOR wrote:
That all looks fine. There is no memory leak in the code you showed here.
You
Thanks Kenneth
This was exactly what I was looking for.
//trace(xmlData2.accesscode.(shortcut.text()[0] == S000));
Martin T
LVL
///
Date: Fri, 15 Feb 2008 16:57:13 -0500
From: Martin Tremblay [EMAIL PROTECTED]
Subject: [Flashcoders] E4X Non sense !!! Need help
To:
sweet. No more googling! It seems like secret topic.
For clipboarding in flex :
http://livedocs.adobe.com/labs/flex3/langref/flash/desktop/Clipboard.html
Thank you guys
Matthew Houliston a écrit :
On 18/02/2008 16:16, laurent wrote:
Is it possible to copy a string to the clipboard
For the record, that's AIR ;)
Kenneth Kawamoto
http://www.materiaprima.co.uk/
laurent wrote:
For clipboarding in flex :
http://livedocs.adobe.com/labs/flex3/langref/flash/desktop/Clipboard.html
___
Flashcoders mailing list
Hello all, this is a more general question about how people are organizing
their display code, particularly where attachMovie used to be used in AS2.
My UI code basically centered on three things: a list of attachMovie()
calls to attach and position graphic elements, event handling for
How can you determine from within Flash (or php on the server when the
request for the swf comes in) the url of the page within which a swf is
embedded?
Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
In AS2 it's _root._url.
In AS3 I think it's stage.contentLoaderInfo.url or something like that.
Check the docs on the LoaderInfo class.
On Feb 18, 2008 6:49 PM, Andrew Sinning [EMAIL PROTECTED] wrote:
How can you determine from within Flash (or php on the server when the
request for the swf
_root._url returns the url of the swf, not the html page.
At 08:38 PM 2/18/2008, Ketan Anjaria wrote:
In AS2 it's _root._url.
In AS3 I think it's stage.contentLoaderInfo.url or something like that.
Check the docs on the LoaderInfo class.
On Feb 18, 2008 6:49 PM, Andrew Sinning [EMAIL
Andrew Sinning wrote:
How can you determine from within Flash (or php on the server when the
request for the swf comes in) the url of the page within which a swf is
embedded?
http://docs.sun.com/source/816-6408-10/location.htm
You can pull it from JavaScript using ExternalInterface.
-Ricky
19 matches
Mail list logo