[Flashcoders] doDecoding

2008-03-12 Thread Hans Wichman
Hi list,

I'm trying to find out the difference in webservice results when alternating
myCall.doDecoding between true and false, but no matter what i set it to, my
results are passed as converted xml objects. Any pointers on what the real
difference is? The documentation is very unclear on this subject.

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


[Flashcoders] Re: doDecoding

2008-03-12 Thread Hans Wichman
sigh murphy's law

I was doing:
var pend:PendingCall = myWS.system_ExecuteEvent(...
var myCall:SOAPCall = pend.myCall;
myCall.doDecoding = true;
myCall.doLazyDecoding = true;
but i should have done:
var myCall:SOAPCall = myWS.getCall(system_ExecuteEvent);
myCall.doDecoding = true;
myCall.doLazyDecoding = true;
var pend:PendingCall = myWS.system_ExecuteEvent(
Don't mind the bad code it's a quick an dirty test I'm working on.

greetz
JC

On Wed, Mar 12, 2008 at 9:06 AM, Hans Wichman 
[EMAIL PROTECTED] wrote:

 Hi list,

 I'm trying to find out the difference in webservice results when
 alternating myCall.doDecoding between true and false, but no matter what i
 set it to, my results are passed as converted xml objects. Any pointers on
 what the real difference is? The documentation is very unclear on this
 subject.

 regards,
 JC

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


Re: [Flashcoders] clean scripting

2008-03-12 Thread Muzak

In AS2 it does (and has been discussed here in the past), in AS3 it doesn't.

- Original Message - 
From: Jesse Graupmann [EMAIL PROTECTED]

To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Wednesday, March 12, 2008 5:38 AM
Subject: RE: [Flashcoders] clean scripting



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);
}

public function get data():Array 
{

   return MyClass.myArray;
}

}


regards,
Jesse


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


Re: [Flashcoders] Debugging issue

2008-03-12 Thread Ain Tohvri
Spaces have been URL-encoded but make sure you've got proper security  
settings of Flash Player.


Regards,
Ain Tohvri

On 12 Mar 2008, at 02:51, anuj sharma [EMAIL PROTECTED] wrote:


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 will be appreciated.
Thanks
Anuj

Attemping to launch and connect to Player using URL C:\Documents and
Settings\ASharma\Desktop\VCD Flash Concept\VideoForWeb\Video
Showcase\VideoShowcaseRev32ObjectRunTimeError.swf
[SWF] C:\Documents and Settings\ASharma\Desktop\VCD Flash
Concept\VideoForWeb\Video Showcase 
\VideoShowcaseRev32ObjectRunTimeError.swf

- 6647189 bytes after decompression
*** Security Sandbox Violation ***
Connection to
file:///C|/Documents%20and%20Settings/ASharma/Desktop/VCD%20Flash% 
20Concept/VideoForWeb/Video%20Showcase/Settings.xml

halted - not permitted from
file:///C|/Documents%20and%20Settings/ASharma/Desktop/VCD%20Flash% 
20Concept/VideoForWeb/Video%20Showcase/ 
VideoShowcaseRev32ObjectRunTimeError.swf

SecurityError: Error #2148: SWF file
file:///C|/Documents%20and%20Settings/ASharma/Desktop/VCD%20Flash% 
20Concept/VideoForWeb/Video%20Showcase/ 
VideoShowcaseRev32ObjectRunTimeError.swf

cannot access local resource
file:///C|/Documents%20and%20Settings/ASharma/Desktop/VCD%20Flash% 
20Concept/VideoForWeb/Video%20Showcase/Settings.xml.
Only local-with-filesystem and trusted local SWF files may access  
local

resources.
   at flash.net::URLStream/load()
   at flash.net::URLLoader/load()
   at
VideoShowcaseRev32ObjectRunTimeError_fla::MainTimeline/frame1() 
[VideoShowcaseRev32ObjectRunTimeError_fla.MainTimeline::frame1:373]

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

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


Re: [Flashcoders] Debugging issue

2008-03-12 Thread Glen Pike
http://www.google.com/search?hl=enq=flex+use-networkbtnG=Search 
http://www.google.com/search?hl=enq=flex+use-networkbtnG=Search


Kerry Thompson 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 fix that.



Oh, another thing I noticed--you have a lot of spaces in your file names.
That's not a good idea for Internet apps. Concatenate, or use an underscore
instead.

Cordially,

Kerry Thompson


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


  


--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] When is 1 not 1?

2008-03-12 Thread Wagner Amaral
Try this (guessing):

$defUser = 1;
echo(im= . $fName . def= . $defUser . );




On Tue, Mar 11, 2008 at 2:48 AM, Dave Mennenoh [EMAIL PROTECTED]
wrote:

 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 whole lot better.



 Dave -
 Head Developer
 http://www.blurredistinction.com
 Adobe Community Expert
 http://www.adobe.com/communities/experts/

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

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


Re: [Flashcoders] getBounds AS3/AS2 issue (SOLVED)

2008-03-12 Thread Ian Thomas
Followup on this issue for the archives...

Eder Fortunato from Brazil suggested setting _lockroot=true on App C.
This solves the problem.

Cheers,
   Ian

On Tue, Mar 11, 2008 at 10:14 AM, Ian Thomas [EMAIL PROTECTED] wrote:
 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 application. AppB loads AppC.
  AppC is an AS2 application.

  If you run AppA, then any getBounds() or getRect() calls on objects in
  AppC fail, but they work as expected in AppB.

  (If you just run AppB, then everything works as expected.)

  I've tried various variants of this; if, instead of loading AppB, you
  embed it into AppA at compile-time, the problem still occurs. It
  appears to be something to do with loading one VM1 movie into another
  one within a VM2 shell.

  For the curious, here's a Zip containing a minimal test setup:
  http://www.wildwinter.net/public/getBoundsBug.zip

  All suggestions for workarounds welcomed, as this is a real nuisance
  for what we're currently working on.

  (For reference, this is in Flash Player 9,0,115,0, using either Flex
  compiler 2.01 or Flex Compiler 3.0 for the AS3 and using Flash 8.0 or
  MTASC for the AS2.)

  Cheers,
Ian

  P.S. Fairly obviously, I will be reporting this to Adobe.



  On Mon, Mar 10, 2008 at 5:41 PM, Ian Thomas [EMAIL PROTECTED] wrote:
   On Mon, Mar 10, 2008 at 5:38 PM, Ian Thomas [EMAIL PROTECTED] wrote:
  
  Using MovieClip.getRect() or MovieClip.getBounds() within b) (or a, of
  course) works fine.

  Using MovieClip.getRect() or MovieClip.getBounds() within c) returns
  undefined (at least, in my setup).
  
Sorry - to be clearer - using getRect() or getBounds() _on any object_
in c) returns undefined. If you write code in c) that calls getRect()
or getBounds() on b) e.g. _parent.getBounds(_parent) works fine.
  
Ian
  

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


[Flashcoders] pixel-accurate _xmouse tracking?

2008-03-12 Thread Matt S.
Hi,
can anyone recommend a way to have pixel-accurate mouse tracking? If I
move my mouse slowly it pretty much grabs them all, but any fast
movements result in huge gaps in the _xmouse tracking, so instead of
being 1,2,3,4,5,6,7,8,9,10,11,12 etc, it'll be
1,4,6,9,12,15,16,23,30,35, etc. I need it it to be as accurate as
possible. Can this be done?

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


[Flashcoders] ScrollBar strangeness

2008-03-12 Thread Allandt Bik-Elliott (Receptacle)

hi guys

could you take a look at this please, i can't see what the problem  
is? I think maybe this is a syntax thing that i'm not aware of


thanks
a


CODE:
package com.receptacle.timeline
{
//package imports
import fl.controls.ScrollBar;
import fl.controls.ScrollBarDirection;

	internal class TAScrollBar extends ScrollBar // error: 1017: The  
definition of base class ScrollBar was not found.

{
// class variable declarations

// constructor
public function TAScrollBar()
{
setVars();
}

private function setVars():ScrollBar
{
direction = ScrollBarDirection.VERTICAL;
setSize(280, 40);

return this;
}
}
}


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


[Flashcoders] Arabic and other character sets text entry

2008-03-12 Thread Piers Cowburn
I'm working on a pitch for a viral campaign for one of the larger  
charities and one of the points on the brief is that it needs to be  
accessible to anyone working in different languages and character  
sets, what ever they may be. This will be based in an expandable  
banner ad and so I don't think there's going to be any element of  
select your language... before continuing.


There will be an element of data collection involved and I was just  
wondering if anyone has any experience/advice for working with Flash  
and user entry in a number of different character sets? For instance  
I know with Arabic the shapes of letters change depending on their  
place in a word, etc.


Thanks in advance,
Piers
[EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ScrollBar strangeness

2008-03-12 Thread Glen Pike
What are you coding in - Flash, Flex or Flash Dev - it maybe because you 
are doing a Flex project, but trying to use a Flash control bar, or similar.


Allandt Bik-Elliott (Receptacle) wrote:

hi guys

could you take a look at this please, i can't see what the problem is? 
I think maybe this is a syntax thing that i'm not aware of


thanks
a


CODE:
package com.receptacle.timeline
{
//package imports
import fl.controls.ScrollBar;
import fl.controls.ScrollBarDirection;

internal class TAScrollBar extends ScrollBar // error: 1017: The 
definition of base class ScrollBar was not found.

{
// class variable declarations
   
// constructor

public function TAScrollBar()
{
setVars();
}
   
private function setVars():ScrollBar

{
direction = ScrollBarDirection.VERTICAL;
setSize(280, 40);
   
return this;

}
}
}


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




--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] pixel-accurate _xmouse tracking?

2008-03-12 Thread Matthew James Poole
Matt, the mouse move event fired at a set rate so the faster you move it
the greater the distance will be until the next event. If you want to
sample faster then you'd have to use a setInterval at something really
small like 10ms and grab the mouse location like that. Even then you
cant guarantee that each event will give you the next pixel. I suggest
you change your logic to suit this behaviour.

Cheers
Matt 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt S.
Sent: 12 March 2008 14:56
To: Flash Coders List
Subject: [Flashcoders] pixel-accurate _xmouse tracking?

Hi,
can anyone recommend a way to have pixel-accurate mouse tracking? If I
move my mouse slowly it pretty much grabs them all, but any fast
movements result in huge gaps in the _xmouse tracking, so instead of
being 1,2,3,4,5,6,7,8,9,10,11,12 etc, it'll be
1,4,6,9,12,15,16,23,30,35, etc. I need it it to be as accurate as
possible. Can this be done?

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

The contents of this email (which include its attachments) are confidential and 
may be subject to legal privilege and protected by copyright. If you are not 
the intended recipient any use, copying or disclosure of this e-mail to any 
third party is strictly forbidden by the sender and we reserve all rights and 
remedies against any person or entity making any such unauthorised use. If you 
have received this email in error, please contact the sender immediately by 
telephone or return the email to the sender and then delete this email and any 
copies of it on your system. Virtual Universe Limited may monitor the contents 
of emails sent and received via its network for viruses and to ensure the 
lawful and authorised use of its systems. Virtual Universe Limited will not be 
held responsible for any damage caused by viruses which may be transmitted upon 
receipt of this email or the opening of any attachment thereto. Any views or 
opinions presented in this email are solely those of th!
 e author and do not necessarily represent those of Virtual Universe Limited.

Virtual Universe Limited is a company established under the laws of England and 
Wales with registered number 03064568 and has its registered office at 1 Regent 
Street, London, SW1Y 4NW and principal place of business at 28-39 The Quadrant, 
135 Salusbury Road, London NW6 6RJ, United Kingdom. It is registered for VAT in 
the United Kingdom with number GB877113217.


__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


Re: [Flashcoders] pixel-accurate _xmouse tracking?

2008-03-12 Thread Piers Cowburn
The problem you're having is that the mouse is traveling at a faster  
rate than one pixel per frame. So the coordinates you get back are  
the coordinates that the mouse was on each time the script was  
executed, which is every frame.


You could try increasing the frame rate but you're still not going to  
get it down to 1 pixel differences I wouldn't have thought, the only  
way to do that might be to interpolate the values you get back so  
that you get rough idea of what coordinates it passed through between  
each frame, though that would probably be a bit pointless. What are  
you trying to do?


Piers


On 12 Mar 2008, at 14:55, Matt S. wrote:


Hi,
can anyone recommend a way to have pixel-accurate mouse tracking? If I
move my mouse slowly it pretty much grabs them all, but any fast
movements result in huge gaps in the _xmouse tracking, so instead of
being 1,2,3,4,5,6,7,8,9,10,11,12 etc, it'll be
1,4,6,9,12,15,16,23,30,35, etc. I need it it to be as accurate as
possible. Can this be done?

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


[EMAIL PROTECTED]
0207 631 3278


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


Re: [Flashcoders] pixel-accurate _xmouse tracking?

2008-03-12 Thread Zeh Fernando
This IS as accurate as possible. Technically, your mouse never was on 2, 
3, 5, 7, 8, etc. Remember mouse reading on the hardware works at a 
certain frequency, and everything in between is lost.


You can always interpolate between read values. That'll give you the 
imtermediary positions where the mouse was.


If your data is EXTREMELY inaccurate, though, using updateAfterEvent() 
inside mouseMove events (or AS3's equivalent) allow you to read as many 
values as physically possible.


Zeh

Matt S. wrote:

Hi,
can anyone recommend a way to have pixel-accurate mouse tracking? If I
move my mouse slowly it pretty much grabs them all, but any fast
movements result in huge gaps in the _xmouse tracking, so instead of
being 1,2,3,4,5,6,7,8,9,10,11,12 etc, it'll be
1,4,6,9,12,15,16,23,30,35, etc. I need it it to be as accurate as
possible. Can this be done?

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


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


Re: [Flashcoders] ScrollBar strangeness

2008-03-12 Thread Allandt Bik-Elliott (Receptacle)

oh - i'm using flash cs3



On 12 Mar 2008, at 15:14, Glen Pike wrote:

What are you coding in - Flash, Flex or Flash Dev - it maybe  
because you are doing a Flex project, but trying to use a Flash  
control bar, or similar.


Allandt Bik-Elliott (Receptacle) wrote:

hi guys

could you take a look at this please, i can't see what the problem  
is? I think maybe this is a syntax thing that i'm not aware of


thanks
a


CODE:
package com.receptacle.timeline
{
//package imports
import fl.controls.ScrollBar;
import fl.controls.ScrollBarDirection;
internal class TAScrollBar extends ScrollBar // error:  
1017: The definition of base class ScrollBar was not found.

{
// class variable declarations
   // constructor
public function TAScrollBar()
{
setVars();
}
   private function setVars():ScrollBar
{
direction = ScrollBarDirection.VERTICAL;
setSize(280, 40);
   return this;
}
}
}


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




--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] ScrollBar strangeness

2008-03-12 Thread Allandt Bik-Elliott (Receptacle)
is there an extra set of libraries i need to install from flash or  
something? i don't have a scrollbar component in my component window  
either (although i do have a uiscrollbar and a scrollpane which  
subclass it)



On 12 Mar 2008, at 15:14, Glen Pike wrote:

What are you coding in - Flash, Flex or Flash Dev - it maybe  
because you are doing a Flex project, but trying to use a Flash  
control bar, or similar.


Allandt Bik-Elliott (Receptacle) wrote:

hi guys

could you take a look at this please, i can't see what the problem  
is? I think maybe this is a syntax thing that i'm not aware of


thanks
a


CODE:
package com.receptacle.timeline
{
//package imports
import fl.controls.ScrollBar;
import fl.controls.ScrollBarDirection;
internal class TAScrollBar extends ScrollBar // error:  
1017: The definition of base class ScrollBar was not found.

{
// class variable declarations
   // constructor
public function TAScrollBar()
{
setVars();
}
   private function setVars():ScrollBar
{
direction = ScrollBarDirection.VERTICAL;
setSize(280, 40);
   return this;
}
}
}


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




--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


[Flashcoders] [AS3] Memory leaks unloading

2008-03-12 Thread Henry Cooke
Hey all,

I'm currently working on a Flash module to sit inside a larger Flash
site being developed by another agency. This module needs to be loaded
and unloaded as needed, and has a fair few library assets, quite
substantial codebase and will be running PV3D or Away3D, so I need to
be very careful about destroying everything when my module is finished
with; the container site is pretty resource-hungry too.

So, my current problem: I've built initialisation and destruction
routines that run on Event.ADDED_TO_STAGE and
Event.REMOVED_FROM_STAGE, and a test loader which loads and removes my
module. However, watching the test loader unload my module in the
Flash Player shows no noticeable drop in memory after my destructors
have been called in the module and $loader.unload() has been called in
the test loader, so it seems like a lot o stuff is gettign stuck in
memory.

Basically, my destructors set any class variables which reference
objects to null, which I believe should mark them for garbage
collection, if nothing else points to them? I also do things like
removeChild() and bitmapData.dispose() where relevant.

I've compiled in XRay, which shows what you'd expect: various bits
present on stage while my module is loaded, all gone when it's not.

So I guess my questions are: does anyone know any secret voodoo
techniques to track down memory use in the Flash player? Is there
anything better I can be doing than just setting pointers to null?
Back in the AS2 day, I'd suspect the _global namespace of becoming
cluttered and just try and nuke _global[ package_name ], but dirty
hacks like that don't exist in our shiny new AS3 world, do they?

I'd be grateful if anyone can offer any advice about how to properly
clear up memory after unloading my module. This is my first AS3
project, and none of my old tricks work :(

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


RE: [Flashcoders] pixel-accurate _xmouse tracking?

2008-03-12 Thread Kerry Thompson
Matt S. wrote:
 
 can anyone recommend a way to have pixel-accurate mouse tracking? If I
 move my mouse slowly it pretty much grabs them all, but any fast
 movements result in huge gaps in the _xmouse tracking, so instead of
 being 1,2,3,4,5,6,7,8,9,10,11,12 etc, it'll be
 1,4,6,9,12,15,16,23,30,35, etc. I need it it to be as accurate as
 possible. Can this be done?

Nope. I can't even get that in my C++ programs, and C++ runs up to 100 times
faster than Flash, maybe more.

It's not really a Flash or C++ problem, anyway--it's a Windows problem.
Windows sends a MOUSE_MOVE message whenever it can, but there is no way it
can keep up if you zip across 2,000 pixels in 1/10 second.

You'll see the same thing in any paint program, or, for that matter, on
those electronic signature pads at the store. Ok, the signature pads
probably use left-over 6502s, but even a fast processor can't keep up when
you zip across the screen.

You might try some sort of interpolation algorithm if you need every pixel,
like in a drawing program.

Cordially,

Kerry Thompson


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


Re: [Flashcoders] ScrollBar strangeness

2008-03-12 Thread Cory Petosky
Drag the UIScrollBar component from the Components window to your
library. The components window isn't visible by default -- it's under
the Window menu option.

On 3/12/08, Allandt Bik-Elliott (Receptacle)
[EMAIL PROTECTED] wrote:
 oh - i'm using flash cs3




  On 12 Mar 2008, at 15:14, Glen Pike wrote:

   What are you coding in - Flash, Flex or Flash Dev - it maybe
   because you are doing a Flex project, but trying to use a Flash
   control bar, or similar.
  
   Allandt Bik-Elliott (Receptacle) wrote:
   hi guys
  
   could you take a look at this please, i can't see what the problem
   is? I think maybe this is a syntax thing that i'm not aware of
  
   thanks
   a
  
  
   CODE:
   package com.receptacle.timeline
   {
   //package imports
   import fl.controls.ScrollBar;
   import fl.controls.ScrollBarDirection;
   internal class TAScrollBar extends ScrollBar // error:
   1017: The definition of base class ScrollBar was not found.
   {
   // class variable declarations
  // constructor
   public function TAScrollBar()
   {
   setVars();
   }
  private function setVars():ScrollBar
   {
   direction = ScrollBarDirection.VERTICAL;
   setSize(280, 40);
  return this;
   }
   }
   }
  
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
  
   --
  
   Glen Pike
   01736 759321
   www.glenpike.co.uk http://www.glenpike.co.uk
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  


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



-- 
Cory Petosky : Lead Developer : PUNY
1618 Central Ave NE Suite 130
Minneapolis, MN 55413
Office: 612.216.3924
Mobile: 240.422.9652
Fax: 612.605.9216
http://www.punyentertainment.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Debugging issue

2008-03-12 Thread anuj sharma
Thanks for reply.
I am sorry I should be more clear. My OS is XP not VIsta and I am using AS
3.0 in Flash IDE. I haven't used FLEX builder yet. I am going to use FLEX
for my next phase of the project. From coding aspect i put all the code on
my main timeline( No custom classes yet). I googled that error but it
doesn't give that much info about that. I tried publishing using different
settings too. Still no help.
Please let me know if you have any idea about that.
Also weird thing is happening that when i run my file from IDE it's running
fine, but when i try to debug it it gives me that error. Also when i am
trying to launch independent SWF file the program is crashing , it would not
show what it is supposed to show. It seems that there is security or player
issue involved too. I am not clear though. Anybody has any idea
Thanks for ur help guys
Anuj

On Tue, Mar 11, 2008 at 5:51 PM, anuj sharma [EMAIL PROTECTED] wrote:

 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 will be appreciated.
 Thanks
 Anuj

 Attemping to launch and connect to Player using URL C:\Documents and
 Settings\ASharma\Desktop\VCD Flash Concept\VideoForWeb\Video
 Showcase\VideoShowcaseRev32ObjectRunTimeError.swf
 [SWF] C:\Documents and Settings\ASharma\Desktop\VCD Flash
 Concept\VideoForWeb\Video Showcase\VideoShowcaseRev32ObjectRunTimeError.swf
 - 6647189 bytes after decompression
 *** Security Sandbox Violation ***
 Connection to
 file:///C|/Documents%20and%20Settings/ASharma/Desktop/VCD%20Flash%20Concept/VideoForWeb/Video%20Showcase/Settings.xml
 halted - not permitted from
 file:///C|/Documents%20and%20Settings/ASharma/Desktop/VCD%20Flash%20Concept/VideoForWeb/Video%20Showcase/VideoShowcaseRev32ObjectRunTimeError.swf
 SecurityError: Error #2148: SWF file
 file:///C|/Documents%20and%20Settings/ASharma/Desktop/VCD%20Flash%20Concept/VideoForWeb/Video%20Showcase/VideoShowcaseRev32ObjectRunTimeError.swf
 cannot access local resource
 file:///C|/Documents%20and%20Settings/ASharma/Desktop/VCD%20Flash%20Concept/VideoForWeb/Video%20Showcase/Settings.xml.
 Only local-with-filesystem and trusted local SWF files may access local
 resources.
 at flash.net::URLStream/load()
 at flash.net::URLLoader/load()
 at
 VideoShowcaseRev32ObjectRunTimeError_fla::MainTimeline/frame1()[VideoShowcaseRev32ObjectRunTimeError_fla.MainTimeline::frame1:373]

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


Re: [Flashcoders] pixel-accurate _xmouse tracking?

2008-03-12 Thread Matt S.
yeah, I dont actually need it to be pixel accurate down to the single
pixel. If I could get it consistently accurate to within 25 pixels I'd
be set. It seems like if the mouse is moving fast enough even 25px is
too much though. Anyhoo, I'll keep workin on it...

thx,

.m

On Wed, Mar 12, 2008 at 11:33 AM, Zeh Fernando [EMAIL PROTECTED] wrote:
 This IS as accurate as possible. Technically, your mouse never was on 2,
  3, 5, 7, 8, etc. Remember mouse reading on the hardware works at a
  certain frequency, and everything in between is lost.

  You can always interpolate between read values. That'll give you the
  imtermediary positions where the mouse was.

  If your data is EXTREMELY inaccurate, though, using updateAfterEvent()
  inside mouseMove events (or AS3's equivalent) allow you to read as many
  values as physically possible.

  Zeh



  Matt S. wrote:
   Hi,
   can anyone recommend a way to have pixel-accurate mouse tracking? If I
   move my mouse slowly it pretty much grabs them all, but any fast
   movements result in huge gaps in the _xmouse tracking, so instead of
   being 1,2,3,4,5,6,7,8,9,10,11,12 etc, it'll be
   1,4,6,9,12,15,16,23,30,35, etc. I need it it to be as accurate as
   possible. Can this be done?
  
   .m


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

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


RE: [Flashcoders] [AS3] Memory leaks unloading

2008-03-12 Thread Matthew James Poole
You can start by using weak references for you events listeners... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Henry
Cooke
Sent: 12 March 2008 15:55
To: Flashcoders mailing list
Subject: [Flashcoders] [AS3] Memory leaks  unloading

Hey all,

I'm currently working on a Flash module to sit inside a larger Flash
site being developed by another agency. This module needs to be loaded
and unloaded as needed, and has a fair few library assets, quite
substantial codebase and will be running PV3D or Away3D, so I need to be
very careful about destroying everything when my module is finished
with; the container site is pretty resource-hungry too.

So, my current problem: I've built initialisation and destruction
routines that run on Event.ADDED_TO_STAGE and Event.REMOVED_FROM_STAGE,
and a test loader which loads and removes my module. However, watching
the test loader unload my module in the Flash Player shows no noticeable
drop in memory after my destructors have been called in the module and
$loader.unload() has been called in the test loader, so it seems like a
lot o stuff is gettign stuck in memory.

Basically, my destructors set any class variables which reference
objects to null, which I believe should mark them for garbage
collection, if nothing else points to them? I also do things like
removeChild() and bitmapData.dispose() where relevant.

I've compiled in XRay, which shows what you'd expect: various bits
present on stage while my module is loaded, all gone when it's not.

So I guess my questions are: does anyone know any secret voodoo
techniques to track down memory use in the Flash player? Is there
anything better I can be doing than just setting pointers to null?
Back in the AS2 day, I'd suspect the _global namespace of becoming
cluttered and just try and nuke _global[ package_name ], but dirty hacks
like that don't exist in our shiny new AS3 world, do they?

I'd be grateful if anyone can offer any advice about how to properly
clear up memory after unloading my module. This is my first AS3 project,
and none of my old tricks work :(

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

The contents of this email (which include its attachments) are confidential and 
may be subject to legal privilege and protected by copyright. If you are not 
the intended recipient any use, copying or disclosure of this e-mail to any 
third party is strictly forbidden by the sender and we reserve all rights and 
remedies against any person or entity making any such unauthorised use. If you 
have received this email in error, please contact the sender immediately by 
telephone or return the email to the sender and then delete this email and any 
copies of it on your system. Virtual Universe Limited may monitor the contents 
of emails sent and received via its network for viruses and to ensure the 
lawful and authorised use of its systems. Virtual Universe Limited will not be 
held responsible for any damage caused by viruses which may be transmitted upon 
receipt of this email or the opening of any attachment thereto. Any views or 
opinions presented in this email are solely those of th!
 e author and do not necessarily represent those of Virtual Universe Limited.

Virtual Universe Limited is a company established under the laws of England and 
Wales with registered number 03064568 and has its registered office at 1 Regent 
Street, London, SW1Y 4NW and principal place of business at 28-39 The Quadrant, 
135 Salusbury Road, London NW6 6RJ, United Kingdom. It is registered for VAT in 
the United Kingdom with number GB877113217.


__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


Re: [Flashcoders] ScrollBar strangeness

2008-03-12 Thread Allandt Bik-Elliott (Receptacle)

i've checked my folder and ScrollBar.as is there

something else that was strange - i tried instantiating UIScrollBar  
with the same result but when i dragged it to my library on the empty  
fla, it worked


i really don't understand what's happening

a


On 12 Mar 2008, at 15:44, Allandt Bik-Elliott (Receptacle) wrote:

is there an extra set of libraries i need to install from flash or  
something? i don't have a scrollbar component in my component  
window either (although i do have a uiscrollbar and a scrollpane  
which subclass it)



On 12 Mar 2008, at 15:14, Glen Pike wrote:

What are you coding in - Flash, Flex or Flash Dev - it maybe  
because you are doing a Flex project, but trying to use a Flash  
control bar, or similar.


Allandt Bik-Elliott (Receptacle) wrote:

hi guys

could you take a look at this please, i can't see what the  
problem is? I think maybe this is a syntax thing that i'm not  
aware of


thanks
a


CODE:
package com.receptacle.timeline
{
//package imports
import fl.controls.ScrollBar;
import fl.controls.ScrollBarDirection;
internal class TAScrollBar extends ScrollBar // error:  
1017: The definition of base class ScrollBar was not found.

{
// class variable declarations
   // constructor
public function TAScrollBar()
{
setVars();
}
   private function setVars():ScrollBar
{
direction = ScrollBarDirection.VERTICAL;
setSize(280, 40);
   return this;
}
}
}


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




--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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




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


[Flashcoders] [ AS3 ] - Problem with an AS3 application who use a swf AS2 who load images

2008-03-12 Thread david costard
Hey list,

Since few days I'm developping my first AS3 application.
In this project I need to load some swfs who are developped in AS2.

One of them is a diaporama who load images.
The diaporama can load the first images but then he never load the other
images.
In the MovieClipLoader object the method onLoadInit() is never use except at
the end of the first image loading.

I read in the adobe documentation :

   - The AVM1 content cannot load files into levels. For example, it
   cannot load files by calling loadMovieNum(url, levelNum).
   - The AVM1 SWF file that is loaded by an AVM2 SWF file cannot load
   another SWF file into this. That is, it cannot load another SWF file
   over itself. However, child Sprite objects, MovieClip objects, or other AVM1
   SWF files loaded by this SWF file can load into this.


But why I can load the first image only ?

I watched what happened in Fiddler and TamperData.
For the first image there's a reuqest to the server but for the other one
nothing happen.

If I use the diaporama alone there's no problem, everything is OK.
I've got the bug each time I load it in an as3 application.


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


[Flashcoders] Unload AVM1 Movie from AS3 Movie Loader and GC

2008-03-12 Thread Matt Muller
Hi, does anyone know if unloading an AVM1 movie from an AS3 Loader will mean
the memory will be GC'ed on the next sweep.

I assume logically as there is no real connection (listeners) between the
AS3 Movie and the AVM1 movie it should.

Basically I want to load ads into an as3 app. This would pretty much be the
only safe way to do this.

Thoughts / comments ...

cheers,

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


Re: [Flashcoders] [AS3] Memory leaks unloading

2008-03-12 Thread Allandt Bik-Elliott (Receptacle)
as far as i know, there is no way of dumping the garbage manually -  
you have to wait for the flash plugin to dump it once it has been marked


you can check chapter 14 of essential actionscript 3.0 (moock) for  
more info about that



On 12 Mar 2008, at 15:54, Henry Cooke wrote:


Hey all,

I'm currently working on a Flash module to sit inside a larger Flash
site being developed by another agency. This module needs to be loaded
and unloaded as needed, and has a fair few library assets, quite
substantial codebase and will be running PV3D or Away3D, so I need to
be very careful about destroying everything when my module is finished
with; the container site is pretty resource-hungry too.

So, my current problem: I've built initialisation and destruction
routines that run on Event.ADDED_TO_STAGE and
Event.REMOVED_FROM_STAGE, and a test loader which loads and removes my
module. However, watching the test loader unload my module in the
Flash Player shows no noticeable drop in memory after my destructors
have been called in the module and $loader.unload() has been called in
the test loader, so it seems like a lot o stuff is gettign stuck in
memory.

Basically, my destructors set any class variables which reference
objects to null, which I believe should mark them for garbage
collection, if nothing else points to them? I also do things like
removeChild() and bitmapData.dispose() where relevant.

I've compiled in XRay, which shows what you'd expect: various bits
present on stage while my module is loaded, all gone when it's not.

So I guess my questions are: does anyone know any secret voodoo
techniques to track down memory use in the Flash player? Is there
anything better I can be doing than just setting pointers to null?
Back in the AS2 day, I'd suspect the _global namespace of becoming
cluttered and just try and nuke _global[ package_name ], but dirty
hacks like that don't exist in our shiny new AS3 world, do they?

I'd be grateful if anyone can offer any advice about how to properly
clear up memory after unloading my module. This is my first AS3
project, and none of my old tricks work :(

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




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


RE: [Flashcoders] Arabic and other character sets text entry

2008-03-12 Thread Kerry Thompson
Piers Cowburn wrote:



 I'm working on a pitch for a viral campaign for one of the larger

 charities and one of the points on the brief is that it needs to be

 accessible to anyone working in different languages and character

 sets, what ever they may be.



 There will be an element of data collection involved and I was just

 wondering if anyone has any experience/advice for working with Flash

 and user entry in a number of different character sets? For instance

 I know with Arabic the shapes of letters change depending on their

 place in a word, etc.



The Flash player currently doesn't support bi-di languages like Arabic,
Farsi, or Hebrew. Francis Cheng has told us that they're working on it, and
it will be out soon, but for now, no Arabic input. (I could be wrong, but I
think Urdu and Pashtoo are also r-t-l).



The issue with Arabic isn't just that the letters change shape. It's also
mostly right-to-left, but quotes from a ltr language are inserted left to
right. You can imagine the complications there. Plus, I believe that
numerals are ltr, which makes for some interesting issues identifying
decimals vs. periods.



Asian languages like Chinese and Japanese present unique issues. Both use
ideograms--a character that represents a concept like sky, happy,
person, etc.



In Chinese, each character represents a concept, but they are often combined
to make 2- or 3-character words. For example, the English word friendship
is 友誼 in Chinese (that’s two characters, “you” and “yi”. “Sexy”
is “性感”-two characters again.



To make it more fun, Chinese is usually written left to right, but can also
be written right to left or top to bottom. Plus you have two character
sets-traditional (used in Hong Kong, Taiwan, and many overseas communities),
and simplified (used on the Mainland, in Singapore, and, more and more,
overseas).



Japanese is even more fun, because they use 4 character sets-Kanji (Chinese
characters), Hirigana and Katakana (syllable-based phonetic characters), and
Romaji, or Western (Latin) characters.



With both Japanese and Chinese, you will have, at a minimum, over 2,000
characters to deal with. The Japanese and Chinese have developed
software-based IME’s (Input Method Editors) because, of course, a
2,000-character keyboard would be impractical. The bottom line is that the
Chinese/Japanese/Korean use will only be able to do input on machines
enabled for their language. A Korean business person using the business
center at the Westin St. Francis in San Francisco probably won’t be able to
type in Korean.



Those are some of the issues you will face. It may sound daunting-and in
fact it is-but it’s been done before (except for bi-di).



Cordially,



Kerry Thompson

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


Re: [Flashcoders] [AS3] Memory leaks unloading

2008-03-12 Thread Matt Muller
You should read this.

http://gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html

GC doesnt happen on unloading immediately. Leave your app open for 20 mins
and see what happens...

MaTT

On Wed, Mar 12, 2008 at 4:14 PM, Matthew James Poole 
[EMAIL PROTECTED] wrote:

 You can start by using weak references for you events listeners...

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Henry
 Cooke
 Sent: 12 March 2008 15:55
 To: Flashcoders mailing list
 Subject: [Flashcoders] [AS3] Memory leaks  unloading

 Hey all,

 I'm currently working on a Flash module to sit inside a larger Flash
 site being developed by another agency. This module needs to be loaded
 and unloaded as needed, and has a fair few library assets, quite
 substantial codebase and will be running PV3D or Away3D, so I need to be
 very careful about destroying everything when my module is finished
 with; the container site is pretty resource-hungry too.

 So, my current problem: I've built initialisation and destruction
 routines that run on Event.ADDED_TO_STAGE and Event.REMOVED_FROM_STAGE,
 and a test loader which loads and removes my module. However, watching
 the test loader unload my module in the Flash Player shows no noticeable
 drop in memory after my destructors have been called in the module and
 $loader.unload() has been called in the test loader, so it seems like a
 lot o stuff is gettign stuck in memory.

 Basically, my destructors set any class variables which reference
 objects to null, which I believe should mark them for garbage
 collection, if nothing else points to them? I also do things like
 removeChild() and bitmapData.dispose() where relevant.

 I've compiled in XRay, which shows what you'd expect: various bits
 present on stage while my module is loaded, all gone when it's not.

 So I guess my questions are: does anyone know any secret voodoo
 techniques to track down memory use in the Flash player? Is there
 anything better I can be doing than just setting pointers to null?
 Back in the AS2 day, I'd suspect the _global namespace of becoming
 cluttered and just try and nuke _global[ package_name ], but dirty hacks
 like that don't exist in our shiny new AS3 world, do they?

 I'd be grateful if anyone can offer any advice about how to properly
 clear up memory after unloading my module. This is my first AS3 project,
 and none of my old tricks work :(

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

 __
 This e-mail has been scanned for viruses by the Virtual Universe e-mail
 security system - powered by MessageLabs.
 http://www.virtual-universe.net

 __

 The contents of this email (which include its attachments) are
 confidential and may be subject to legal privilege and protected by
 copyright. If you are not the intended recipient any use, copying or
 disclosure of this e-mail to any third party is strictly forbidden by the
 sender and we reserve all rights and remedies against any person or entity
 making any such unauthorised use. If you have received this email in error,
 please contact the sender immediately by telephone or return the email to
 the sender and then delete this email and any copies of it on your system.
 Virtual Universe Limited may monitor the contents of emails sent and
 received via its network for viruses and to ensure the lawful and authorised
 use of its systems. Virtual Universe Limited will not be held responsible
 for any damage caused by viruses which may be transmitted upon receipt of
 this email or the opening of any attachment thereto. Any views or opinions
 presented in this email are solely those of th!
  e author and do not necessarily represent those of Virtual Universe
 Limited.

 Virtual Universe Limited is a company established under the laws of
 England and Wales with registered number 03064568 and has its registered
 office at 1 Regent Street, London, SW1Y 4NW and principal place of business
 at 28-39 The Quadrant, 135 Salusbury Road, London NW6 6RJ, United Kingdom.
 It is registered for VAT in the United Kingdom with number GB877113217.


 __
 This e-mail has been scanned for viruses by the Virtual Universe e-mail
 security system - powered by MessageLabs. http://www.virtual-universe.net

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

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


RE: [Flashcoders] [AS3] Memory leaks unloading

2008-03-12 Thread Matthew James Poole
True, but its sounds like Henry has lots of stuff not marked for GC so
he still has references somewhere, just a case of finding them... Easier
said than done 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Allandt
Bik-Elliott (Receptacle)
Sent: 12 March 2008 16:30
To: Flash Coders List
Subject: Re: [Flashcoders] [AS3] Memory leaks  unloading

as far as i know, there is no way of dumping the garbage manually - you
have to wait for the flash plugin to dump it once it has been marked

you can check chapter 14 of essential actionscript 3.0 (moock) for more
info about that


On 12 Mar 2008, at 15:54, Henry Cooke wrote:

 Hey all,

 I'm currently working on a Flash module to sit inside a larger Flash 
 site being developed by another agency. This module needs to be loaded

 and unloaded as needed, and has a fair few library assets, quite 
 substantial codebase and will be running PV3D or Away3D, so I need to 
 be very careful about destroying everything when my module is finished

 with; the container site is pretty resource-hungry too.

 So, my current problem: I've built initialisation and destruction 
 routines that run on Event.ADDED_TO_STAGE and 
 Event.REMOVED_FROM_STAGE, and a test loader which loads and removes my

 module. However, watching the test loader unload my module in the 
 Flash Player shows no noticeable drop in memory after my destructors 
 have been called in the module and $loader.unload() has been called in

 the test loader, so it seems like a lot o stuff is gettign stuck in 
 memory.

 Basically, my destructors set any class variables which reference 
 objects to null, which I believe should mark them for garbage 
 collection, if nothing else points to them? I also do things like
 removeChild() and bitmapData.dispose() where relevant.

 I've compiled in XRay, which shows what you'd expect: various bits 
 present on stage while my module is loaded, all gone when it's not.

 So I guess my questions are: does anyone know any secret voodoo 
 techniques to track down memory use in the Flash player? Is there 
 anything better I can be doing than just setting pointers to null?
 Back in the AS2 day, I'd suspect the _global namespace of becoming 
 cluttered and just try and nuke _global[ package_name ], but dirty 
 hacks like that don't exist in our shiny new AS3 world, do they?

 I'd be grateful if anyone can offer any advice about how to properly 
 clear up memory after unloading my module. This is my first AS3 
 project, and none of my old tricks work :(

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



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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

The contents of this email (which include its attachments) are confidential and 
may be subject to legal privilege and protected by copyright. If you are not 
the intended recipient any use, copying or disclosure of this e-mail to any 
third party is strictly forbidden by the sender and we reserve all rights and 
remedies against any person or entity making any such unauthorised use. If you 
have received this email in error, please contact the sender immediately by 
telephone or return the email to the sender and then delete this email and any 
copies of it on your system. Virtual Universe Limited may monitor the contents 
of emails sent and received via its network for viruses and to ensure the 
lawful and authorised use of its systems. Virtual Universe Limited will not be 
held responsible for any damage caused by viruses which may be transmitted upon 
receipt of this email or the opening of any attachment thereto. Any views or 
opinions presented in this email are solely those of th!
 e author and do not necessarily represent those of Virtual Universe Limited.

Virtual Universe Limited is a company established under the laws of England and 
Wales with registered number 03064568 and has its registered office at 1 Regent 
Street, London, SW1Y 4NW and principal place of business at 28-39 The Quadrant, 
135 Salusbury Road, London NW6 6RJ, United Kingdom. It is registered for VAT in 
the United Kingdom with number GB877113217.


__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] [ AS3 ] - Problem with an AS3 application who use a swf AS2 who load images

2008-03-12 Thread Glen Pike
Check for crossdomain problems - look in the HTTP Requests for 
crossdomain.xml - try loading this yourself to check it's there.  If 
it is requesting crossdomain files, you probably need to have one setup 
- this maybe one issue, may not be...


Glen

david costard wrote:

Hey list,

Since few days I'm developping my first AS3 application.
In this project I need to load some swfs who are developped in AS2.

One of them is a diaporama who load images.
The diaporama can load the first images but then he never load the other
images.
In the MovieClipLoader object the method onLoadInit() is never use except at
the end of the first image loading.

I read in the adobe documentation :

   - The AVM1 content cannot load files into levels. For example, it
   cannot load files by calling loadMovieNum(url, levelNum).
   - The AVM1 SWF file that is loaded by an AVM2 SWF file cannot load
   another SWF file into this. That is, it cannot load another SWF file
   over itself. However, child Sprite objects, MovieClip objects, or other AVM1
   SWF files loaded by this SWF file can load into this.


But why I can load the first image only ?

I watched what happened in Fiddler and TamperData.
For the first image there's a reuqest to the server but for the other one
nothing happen.

If I use the diaporama alone there's no problem, everything is OK.
I've got the bug each time I load it in an as3 application.


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


  


--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] [AS3] Memory leaks unloading

2008-03-12 Thread Matt Muller
I think you can use a localconnection hack to force gc.

http://blog.infidea.ws/category/as3/

On Wed, Mar 12, 2008 at 4:29 PM, Allandt Bik-Elliott (Receptacle) 
[EMAIL PROTECTED] wrote:

 as far as i know, there is no way of dumping the garbage manually -
 you have to wait for the flash plugin to dump it once it has been marked

 you can check chapter 14 of essential actionscript 3.0 (moock) for
 more info about that


 On 12 Mar 2008, at 15:54, Henry Cooke wrote:

  Hey all,
 
  I'm currently working on a Flash module to sit inside a larger Flash
  site being developed by another agency. This module needs to be loaded
  and unloaded as needed, and has a fair few library assets, quite
  substantial codebase and will be running PV3D or Away3D, so I need to
  be very careful about destroying everything when my module is finished
  with; the container site is pretty resource-hungry too.
 
  So, my current problem: I've built initialisation and destruction
  routines that run on Event.ADDED_TO_STAGE and
  Event.REMOVED_FROM_STAGE, and a test loader which loads and removes my
  module. However, watching the test loader unload my module in the
  Flash Player shows no noticeable drop in memory after my destructors
  have been called in the module and $loader.unload() has been called in
  the test loader, so it seems like a lot o stuff is gettign stuck in
  memory.
 
  Basically, my destructors set any class variables which reference
  objects to null, which I believe should mark them for garbage
  collection, if nothing else points to them? I also do things like
  removeChild() and bitmapData.dispose() where relevant.
 
  I've compiled in XRay, which shows what you'd expect: various bits
  present on stage while my module is loaded, all gone when it's not.
 
  So I guess my questions are: does anyone know any secret voodoo
  techniques to track down memory use in the Flash player? Is there
  anything better I can be doing than just setting pointers to null?
  Back in the AS2 day, I'd suspect the _global namespace of becoming
  cluttered and just try and nuke _global[ package_name ], but dirty
  hacks like that don't exist in our shiny new AS3 world, do they?
 
  I'd be grateful if anyone can offer any advice about how to properly
  clear up memory after unloading my module. This is my first AS3
  project, and none of my old tricks work :(
 
  Cheers,
  Henry
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 


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

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


[Flashcoders] Passing vars with the the timer and events

2008-03-12 Thread Helmut Granda
I have a custom TimerEvent that I am using to pass some
information when the timer is up. My issue is that I dont need to pass the
information until the time is up but how can i pass the information to a
timer that is not available yet?

The basic setup is something like this:

public function myFunc ( varToPass : String, delay :
Number = 0 )

{

if ( delay  0 )

{

globalTimer = new Timer ( delay, 1)
globalTimer.start();
globalTimer.addEventListener (
TimerEvent.Timer, timerEventHandler)


} else {

dispatchEvent ( new SoundTimerEvent (
SoundTimerEvent.PLAY_VO , _sound ) ) ;
}


}

private function timeEventHandler ( te : TimerEvent )

{

// More stuff here
}

if no delay is added the event gets dispatched properly
and everything moves great but how would I add or pass a variable through
the globalTimer so that when the timer is up I can catch the _sound
property?

Any ideas?

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


Re: [Flashcoders] ScrollBar strangeness

2008-03-12 Thread Cory Petosky
Those source files only exist as part of the components. If the
component isn't in your library, the classes don't exist. As long as
you drag the components you need to your library, you can extend the
classes.

On 3/12/08, Allandt Bik-Elliott (Receptacle)
[EMAIL PROTECTED] wrote:
 i've checked my folder and ScrollBar.as is there

  something else that was strange - i tried instantiating UIScrollBar
  with the same result but when i dragged it to my library on the empty
  fla, it worked

  i really don't understand what's happening


  a



  On 12 Mar 2008, at 15:44, Allandt Bik-Elliott (Receptacle) wrote:

   is there an extra set of libraries i need to install from flash or
   something? i don't have a scrollbar component in my component
   window either (although i do have a uiscrollbar and a scrollpane
   which subclass it)
  
  
   On 12 Mar 2008, at 15:14, Glen Pike wrote:
  
   What are you coding in - Flash, Flex or Flash Dev - it maybe
   because you are doing a Flex project, but trying to use a Flash
   control bar, or similar.
  
   Allandt Bik-Elliott (Receptacle) wrote:
   hi guys
  
   could you take a look at this please, i can't see what the
   problem is? I think maybe this is a syntax thing that i'm not
   aware of
  
   thanks
   a
  
  
   CODE:
   package com.receptacle.timeline
   {
   //package imports
   import fl.controls.ScrollBar;
   import fl.controls.ScrollBarDirection;
   internal class TAScrollBar extends ScrollBar // error:
   1017: The definition of base class ScrollBar was not found.
   {
   // class variable declarations
  // constructor
   public function TAScrollBar()
   {
   setVars();
   }
  private function setVars():ScrollBar
   {
   direction = ScrollBarDirection.VERTICAL;
   setSize(280, 40);
  return this;
   }
   }
   }
  
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
  
   --
  
   Glen Pike
   01736 759321
   www.glenpike.co.uk http://www.glenpike.co.uk
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  


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



-- 
Cory Petosky : Lead Developer : PUNY
1618 Central Ave NE Suite 130
Minneapolis, MN 55413
Office: 612.216.3924
Mobile: 240.422.9652
Fax: 612.605.9216
http://www.punyentertainment.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] clean scripting

2008-03-12 Thread Jesse Graupmann
Sorry for being away for awhile and just testing that out now. So yea...
WTF? I can't believe after my years of AS2 coding that it would have taken
me this long to notice.
 
Well, good thing for AS3.


//  NOT SHARED

public var myArray:Array;

public function MyClass() {
myArray = [];
}

//  SHARED

public var myArray:Array = new Array();

public function MyClass() {
}


Cheers,
Jesse


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: Wednesday, March 12, 2008 2:04 AM
To: Flash Coders List
Subject: Re: [Flashcoders] clean scripting

In AS2 it does (and has been discussed here in the past), in AS3 it doesn't.

- Original Message - 
From: Jesse Graupmann [EMAIL PROTECTED]
To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Wednesday, March 12, 2008 5:38 AM
Subject: RE: [Flashcoders] clean scripting


 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);
 }
 
 public function get data():Array 
 {
return MyClass.myArray;
 }
 
 }
 
 
 regards,
 Jesse

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

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


Re: [Flashcoders] [ AS3 ] - Problem with an AS3 application who use a swf AS2 who load images

2008-03-12 Thread david costard
Hey Glen thanks for your help.
I check for crossdomain but I think the problem is not with crossdomain.
I've got the problem in local and all of the swf in as2 in need to load are
one the same domain.



2008/3/12, Glen Pike [EMAIL PROTECTED]:

 Check for crossdomain problems - look in the HTTP Requests for
 crossdomain.xml - try loading this yourself to check it's there.  If
 it is requesting crossdomain files, you probably need to have one setup
 - this maybe one issue, may not be...

 Glen


 david costard wrote:
  Hey list,
 
  Since few days I'm developping my first AS3 application.
  In this project I need to load some swfs who are developped in AS2.
 
  One of them is a diaporama who load images.
  The diaporama can load the first images but then he never load the other
  images.
  In the MovieClipLoader object the method onLoadInit() is never use
 except at
  the end of the first image loading.
 
  I read in the adobe documentation :
 
 - The AVM1 content cannot load files into levels. For example, it
 cannot load files by calling loadMovieNum(url, levelNum).
 - The AVM1 SWF file that is loaded by an AVM2 SWF file cannot load
 another SWF file into this. That is, it cannot load another SWF file
 over itself. However, child Sprite objects, MovieClip objects, or
 other AVM1
 SWF files loaded by this SWF file can load into this.
 
 
  But why I can load the first image only ?
 
  I watched what happened in Fiddler and TamperData.
  For the first image there's a reuqest to the server but for the other
 one
  nothing happen.
 
  If I use the diaporama alone there's no problem, everything is OK.
  I've got the bug each time I load it in an as3 application.
 
 
  Thanks for your help.

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

 --


 Glen Pike
 01736 759321
 www.glenpike.co.uk http://www.glenpike.co.uk
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Arabic and other character sets text entry

2008-03-12 Thread Piers Cowburn

Hi Kerry,

Thanks for your detailed reply, seems there is a real problem with  
the lack of rtl support. I found one idea online which I thought  
might be a shot, see it here: http://broadcast.artificialcolors.com/ 
index.php?title=flash_rtl_via_a_simple_hack_non_rhetoric


The only free-text fields I would need are name and email address,  
the rest of the options are combo boxes which I could do in arabic  
simply by having the letters in there as a graphic.


Do you think I might be able to use something like the idea above for  
a simple name and email address? As I don't think there should be and  
bi-di in there, just rtl.


Thanks,
Piers
[EMAIL PROTECTED]





On 12 Mar 2008, at 16:32, Kerry Thompson wrote:


Piers Cowburn wrote:




I'm working on a pitch for a viral campaign for one of the larger



charities and one of the points on the brief is that it needs to be



accessible to anyone working in different languages and character



sets, what ever they may be.







There will be an element of data collection involved and I was just



wondering if anyone has any experience/advice for working with Flash



and user entry in a number of different character sets? For instance



I know with Arabic the shapes of letters change depending on their



place in a word, etc.




The Flash player currently doesn't support bi-di languages like  
Arabic,
Farsi, or Hebrew. Francis Cheng has told us that they're working on  
it, and
it will be out soon, but for now, no Arabic input. (I could be  
wrong, but I

think Urdu and Pashtoo are also r-t-l).



The issue with Arabic isn't just that the letters change shape.  
It's also
mostly right-to-left, but quotes from a ltr language are inserted  
left to

right. You can imagine the complications there. Plus, I believe that
numerals are ltr, which makes for some interesting issues identifying
decimals vs. periods.



Asian languages like Chinese and Japanese present unique issues.  
Both use

ideograms--a character that represents a concept like sky, happy,
person, etc.



In Chinese, each character represents a concept, but they are often  
combined
to make 2- or 3-character words. For example, the English word  
friendship
is 友誼 in Chinese (that’s two characters,  
“you” and “yi”. “Sexy”

is “性感”-two characters again.



To make it more fun, Chinese is usually written left to right, but  
can also

be written right to left or top to bottom. Plus you have two character
sets-traditional (used in Hong Kong, Taiwan, and many overseas  
communities),
and simplified (used on the Mainland, in Singapore, and, more and  
more,

overseas).



Japanese is even more fun, because they use 4 character sets-Kanji  
(Chinese
characters), Hirigana and Katakana (syllable-based phonetic  
characters), and

Romaji, or Western (Latin) characters.



With both Japanese and Chinese, you will have, at a minimum, over  
2,000

characters to deal with. The Japanese and Chinese have developed
software-based IME’s (Input Method Editors) because, of  
course, a
2,000-character keyboard would be impractical. The bottom line is  
that the

Chinese/Japanese/Korean use will only be able to do input on machines
enabled for their language. A Korean business person using the  
business
center at the Westin St. Francis in San Francisco probably  
won’t be able to

type in Korean.



Those are some of the issues you will face. It may sound daunting- 
and in

fact it is-but it’s been done before (except for bi-di).



Cordially,



Kerry Thompson

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


[EMAIL PROTECTED]
0207 631 3278


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


Re: [Flashcoders] [AS3] Memory leaks unloading

2008-03-12 Thread Henry Cooke
Wow, thanks for all the tips, guys. I forgot to mention that I was
removing all my listeners, too, but weak referencing definitely looks
useful, as does the rest of the stuff that Mr Skinner's written on
resource management. And I'll dig into my copy of Moock as soon as I
get the chance.

Thanks again! Any more suggestions welcome, of course ;)

On 12/03/2008, Matthew James Poole
[EMAIL PROTECTED] wrote:
 True, but its sounds like Henry has lots of stuff not marked for GC so
  he still has references somewhere, just a case of finding them... Easier
  said than done


  -Original Message-
  From: [EMAIL PROTECTED]

 [mailto:[EMAIL PROTECTED] On Behalf Of Allandt
  Bik-Elliott (Receptacle)
  Sent: 12 March 2008 16:30
  To: Flash Coders List
  Subject: Re: [Flashcoders] [AS3] Memory leaks  unloading

  as far as i know, there is no way of dumping the garbage manually - you
  have to wait for the flash plugin to dump it once it has been marked

  you can check chapter 14 of essential actionscript 3.0 (moock) for more
  info about that


  On 12 Mar 2008, at 15:54, Henry Cooke wrote:

   Hey all,
  
   I'm currently working on a Flash module to sit inside a larger Flash
   site being developed by another agency. This module needs to be loaded

   and unloaded as needed, and has a fair few library assets, quite
   substantial codebase and will be running PV3D or Away3D, so I need to
   be very careful about destroying everything when my module is finished

   with; the container site is pretty resource-hungry too.
  
   So, my current problem: I've built initialisation and destruction
   routines that run on Event.ADDED_TO_STAGE and
   Event.REMOVED_FROM_STAGE, and a test loader which loads and removes my

   module. However, watching the test loader unload my module in the
   Flash Player shows no noticeable drop in memory after my destructors
   have been called in the module and $loader.unload() has been called in

   the test loader, so it seems like a lot o stuff is gettign stuck in
   memory.
  
   Basically, my destructors set any class variables which reference
   objects to null, which I believe should mark them for garbage
   collection, if nothing else points to them? I also do things like
   removeChild() and bitmapData.dispose() where relevant.
  
   I've compiled in XRay, which shows what you'd expect: various bits
   present on stage while my module is loaded, all gone when it's not.
  
   So I guess my questions are: does anyone know any secret voodoo
   techniques to track down memory use in the Flash player? Is there
   anything better I can be doing than just setting pointers to null?
   Back in the AS2 day, I'd suspect the _global namespace of becoming
   cluttered and just try and nuke _global[ package_name ], but dirty
   hacks like that don't exist in our shiny new AS3 world, do they?
  
   I'd be grateful if anyone can offer any advice about how to properly
   clear up memory after unloading my module. This is my first AS3
   project, and none of my old tricks work :(
  
   Cheers,
   Henry
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  


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


 __
  This e-mail has been scanned for viruses by the Virtual Universe e-mail
  security system - powered by MessageLabs.
  http://www.virtual-universe.net

  __

  The contents of this email (which include its attachments) are confidential 
 and may be subject to legal privilege and protected by copyright. If you are 
 not the intended recipient any use, copying or disclosure of this e-mail to 
 any third party is strictly forbidden by the sender and we reserve all rights 
 and remedies against any person or entity making any such unauthorised use. 
 If you have received this email in error, please contact the sender 
 immediately by telephone or return the email to the sender and then delete 
 this email and any copies of it on your system. Virtual Universe Limited may 
 monitor the contents of emails sent and received via its network for viruses 
 and to ensure the lawful and authorised use of its systems. Virtual Universe 
 Limited will not be held responsible for any damage caused by viruses which 
 may be transmitted upon receipt of this email or the opening of any 
 attachment thereto. Any views or opinions presented in this email are solely 
 those of!
  th!
   e author and do not necessarily represent those of Virtual Universe Limited.

  Virtual Universe Limited is a company established under the laws of England 
 and Wales with registered number 03064568 and has its registered office at 1 
 Regent 

Re: [Flashcoders] [ AS3 ] - Problem with an AS3 application who use a swf AS2 who load images

2008-03-12 Thread Glen Pike

Not sure then, sorry.

david costard wrote:

Hey Glen thanks for your help.
I check for crossdomain but I think the problem is not with crossdomain.
I've got the problem in local and all of the swf in as2 in need to load are
one the same domain.



2008/3/12, Glen Pike [EMAIL PROTECTED]:
  

Check for crossdomain problems - look in the HTTP Requests for
crossdomain.xml - try loading this yourself to check it's there.  If
it is requesting crossdomain files, you probably need to have one setup
- this maybe one issue, may not be...

Glen


david costard wrote:


Hey list,

Since few days I'm developping my first AS3 application.
In this project I need to load some swfs who are developped in AS2.

One of them is a diaporama who load images.
The diaporama can load the first images but then he never load the other
images.
In the MovieClipLoader object the method onLoadInit() is never use
  

except at


the end of the first image loading.

I read in the adobe documentation :

   - The AVM1 content cannot load files into levels. For example, it
   cannot load files by calling loadMovieNum(url, levelNum).
   - The AVM1 SWF file that is loaded by an AVM2 SWF file cannot load
   another SWF file into this. That is, it cannot load another SWF file
   over itself. However, child Sprite objects, MovieClip objects, or
  

other AVM1


   SWF files loaded by this SWF file can load into this.


But why I can load the first image only ?

I watched what happened in Fiddler and TamperData.
For the first image there's a reuqest to the server but for the other
  

one


nothing happen.

If I use the diaporama alone there's no problem, everything is OK.
I've got the bug each time I load it in an as3 application.


Thanks for your help.
  
___

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



  

--


Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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


  


--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ScrollBar strangeness

2008-03-12 Thread Allandt Bik-Elliott (Receptacle)
ah right - so in order to use a component in actionscript, it needs  
to be in your library then?


a


On 12 Mar 2008, at 16:06, Cory Petosky wrote:


Drag the UIScrollBar component from the Components window to your
library. The components window isn't visible by default -- it's under
the Window menu option.

On 3/12/08, Allandt Bik-Elliott (Receptacle)
[EMAIL PROTECTED] wrote:

oh - i'm using flash cs3




 On 12 Mar 2008, at 15:14, Glen Pike wrote:


What are you coding in - Flash, Flex or Flash Dev - it maybe
because you are doing a Flex project, but trying to use a Flash
control bar, or similar.

Allandt Bik-Elliott (Receptacle) wrote:

hi guys

could you take a look at this please, i can't see what the problem
is? I think maybe this is a syntax thing that i'm not aware of

thanks
a


CODE:
package com.receptacle.timeline
{
//package imports
import fl.controls.ScrollBar;
import fl.controls.ScrollBarDirection;
internal class TAScrollBar extends ScrollBar // error:
1017: The definition of base class ScrollBar was not found.
{
// class variable declarations
   // constructor
public function TAScrollBar()
{
setVars();
}
   private function setVars():ScrollBar
{
direction = ScrollBarDirection.VERTICAL;
setSize(280, 40);
   return this;
}
}
}


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




--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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




--
Cory Petosky : Lead Developer : PUNY
1618 Central Ave NE Suite 130
Minneapolis, MN 55413
Office: 612.216.3924
Mobile: 240.422.9652
Fax: 612.605.9216
http://www.punyentertainment.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


RE: [Flashcoders] Arabic and other character sets text entry

2008-03-12 Thread Kerry Thompson
Piers Cowburn wrote:


 I found one idea online which I thought
 might be a shot, see it here: http://broadcast.artificialcolors.com/
 index.php?title=flash_rtl_via_a_simple_hack_non_rhetoric
 
 The only free-text fields I would need are name and email address,
 the rest of the options are combo boxes which I could do in arabic
 simply by having the letters in there as a graphic.
 
 Do you think I might be able to use something like the idea above for
 a simple name and email address? As I don't think there should be and
 bi-di in there, just rtl.

I'm not sure, but you might be able to get the combo box to display an
Arabic font. It's worth a try, and make for a lighter download than using
graphics.

But--won't the e-mail address be ltr? I'm not sure, but I think most e-mail
servers only handle ltr.

I have an Israeli friend in Dublin who is a Flash genius, and is currently
working on a Hebrew-language project. She's quite helpful, and knows a lot
more about bi-di issues than I do

I don't think she's on this list, though--she's on Flash_Tiger. You might
try posting over there. She might even still be working--I think it's only
about 7:00 in Dublin. Do it now, though, because St. Patrick's day is this
weekend ^_^

Cordially,

Kerry Thompson


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


Re: [Flashcoders] Passing vars with the the timer and events

2008-03-12 Thread Bob Leisle

Hi Helmut,

One option is extending Timer such that it dispatches your custom 
SoundTimerEvent rather than the built in TimerEvent.
Another option, if  _sound  is a class var, would be to have your 
timeEventHandler dispatch  the SoundTimerEvent.


hth,
Bob

Helmut Granda wrote:

I have a custom TimerEvent that I am using to pass some
information when the timer is up. My issue is that I dont need to pass the
information until the time is up but how can i pass the information to a
timer that is not available yet?

The basic setup is something like this:

public function myFunc ( varToPass : String, delay :
Number = 0 )

{

if ( delay  0 )

{

globalTimer = new Timer ( delay, 1)
globalTimer.start();
globalTimer.addEventListener (
TimerEvent.Timer, timerEventHandler)


} else {

dispatchEvent ( new SoundTimerEvent (
SoundTimerEvent.PLAY_VO , _sound ) ) ;
}


}

private function timeEventHandler ( te : TimerEvent )

{

// More stuff here
}

if no delay is added the event gets dispatched properly
and everything moves great but how would I add or pass a variable through
the globalTimer so that when the timer is up I can catch the _sound
property?

Any ideas?

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



  


--
Thanks,
~
Bob Leisle 
Headsprout Software  Engineering

http://www.headsprout.com
Where kids learn to read! 


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


Re: [Flashcoders] clean scripting

2008-03-12 Thread Dave Mennenoh
So yea...WTF? I can't believe after my years of AS2 coding that it would 
have taken me this long to notice.


I think I muttered those exact words. Bizzare behavior. Though I don't think 
I have ever run into it. Someone taught me long ago not to initialize class 
variables in their definitions. So I just never have done that. Really good 
to know though.


Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 


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


Re: [Flashcoders] Passing vars with the the timer and events

2008-03-12 Thread Helmut Granda
Hi Bob,

Thanks for the comment, that is the route that started working on after
posting the question and the only issue I am having is dispatching the
custom event when the timer has been reached, I did a soft search for
samples of extending the Timer Class with custom TimerEvents but wasnt able
to find any would you happen to know where I could find more info?

Thanks!!

On 3/12/08, Bob Leisle [EMAIL PROTECTED] wrote:

 Hi Helmut,

 One option is extending Timer such that it dispatches your custom
 SoundTimerEvent rather than the built in TimerEvent.
 Another option, if  _sound  is a class var, would be to have your
 timeEventHandler dispatch  the SoundTimerEvent.

 hth,
 Bob


 Helmut Granda wrote:
  I have a custom TimerEvent that I am using to pass
 some
  information when the timer is up. My issue is that I dont need to pass
 the
  information until the time is up but how can i pass the information to a
  timer that is not available yet?
 
  The basic setup is something like this:
 
  public function myFunc ( varToPass : String, delay :
  Number = 0 )
 
  {
 
  if ( delay  0 )
 
  {
 
  globalTimer = new Timer ( delay, 1)
  globalTimer.start();
  globalTimer.addEventListener (
  TimerEvent.Timer, timerEventHandler)
 
 
  } else {
 
  dispatchEvent ( new SoundTimerEvent (
  SoundTimerEvent.PLAY_VO , _sound ) ) ;
  }
 
 
  }
 
  private function timeEventHandler ( te : TimerEvent
 )
 
  {
 
  // More stuff here
  }
 
  if no delay is added the event gets dispatched
 properly
  and everything moves great but how would I add or pass a variable
 through
  the globalTimer so that when the timer is up I can catch the _sound
  property?
 
  Any ideas?
 
  TIA

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

 --
 Thanks,
 ~
 Bob Leisle
 Headsprout Software  Engineering
 http://www.headsprout.com
 Where kids learn to read!

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




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


Re: [Flashcoders] Passing vars with the the timer and events

2008-03-12 Thread EECOLOR
If we ever he need to pass extra arguments to the handler we use a delegate
class to pass them. Usage:

obj.addEventListener(Event.TYPE, Delegate.create(this, _handler, arg1,
arg2));

private function _handler(e:Event, arg1:Object, arg2:Object):void
{

};

I added our delegate class as an attachment.

Note that for class methods the scope (first argument of the create method)
has no influence.


Greetz Erik


On 3/12/08, Helmut Granda [EMAIL PROTECTED] wrote:

 Hi Bob,

 Thanks for the comment, that is the route that started working on after
 posting the question and the only issue I am having is dispatching the
 custom event when the timer has been reached, I did a soft search for
 samples of extending the Timer Class with custom TimerEvents but wasnt
 able
 to find any would you happen to know where I could find more info?

 Thanks!!


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


Re: [Flashcoders] [AS3] Memory leaks unloading

2008-03-12 Thread EECOLOR
In Flex Builder 3 they have added the profiler. You can use that to take
snapshots of your application and inspects its memory use, instantiated
objects etc.


Greetz Erik

On 3/12/08, Henry Cooke [EMAIL PROTECTED] wrote:

 Wow, thanks for all the tips, guys. I forgot to mention that I was
 removing all my listeners, too, but weak referencing definitely looks
 useful, as does the rest of the stuff that Mr Skinner's written on
 resource management. And I'll dig into my copy of Moock as soon as I
 get the chance.

 Thanks again! Any more suggestions welcome, of course ;)


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


Re: [Flashcoders] Passing vars with the the timer and events

2008-03-12 Thread Cory Petosky
That's a dangerous practice. It prevents you from using weak event
listeners -- because the only reference to your delegate function
object is the event listener itself, a weakly-referenced listener will
be garbage collected. Now have to manually remove your listener to
make sure your object is garbage collected -- but the only way to
remove event listeners is to pass the removeEventListener function a
reference to the function you want to remove... but you don't have
that reference!

If it's a one-time event, you can have the listener remove itself.
Your delegate function object can pass a reference to itself (using
arguments.callee) in to the real event listener function, which you
can use to remove the listener. In any other case, you'll have to
build a separate data structure (usually a Dictionary of Objects -
Functions) to keep a reference available to your code.

On 3/12/08, EECOLOR [EMAIL PROTECTED] wrote:
 If we ever he need to pass extra arguments to the handler we use a delegate
  class to pass them. Usage:

  obj.addEventListener(Event.TYPE, Delegate.create(this, _handler, arg1,
  arg2));

  private function _handler(e:Event, arg1:Object, arg2:Object):void
  {

  };

  I added our delegate class as an attachment.

  Note that for class methods the scope (first argument of the create method)
  has no influence.


  Greetz Erik



  On 3/12/08, Helmut Granda [EMAIL PROTECTED] wrote:
  
   Hi Bob,
  
   Thanks for the comment, that is the route that started working on after
   posting the question and the only issue I am having is dispatching the
   custom event when the timer has been reached, I did a soft search for
   samples of extending the Timer Class with custom TimerEvents but wasnt
   able
   to find any would you happen to know where I could find more info?
  
   Thanks!!
  
  

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




-- 
Cory Petosky : Lead Developer : PUNY
1618 Central Ave NE Suite 130
Minneapolis, MN 55413
Office: 612.216.3924
Mobile: 240.422.9652
Fax: 612.605.9216
http://www.punyentertainment.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] clean scripting

2008-03-12 Thread Andy Herrman
Here's my understanding of the reason behind this:

AS2 is basically just syntactic sugar over AS1, and gets compiled down
to the same thing.

When defining a class you're actually defining things on the
prototype, so doing this:
--
class MyClass {
  public var myArray:Array;

  public function MyClass() {
myArray = [];
  }

  public function push(o:Object):Void {
myArray.push(o);
  }
}
--

would be the same as:

--
MyClass = function() {
  this.myArray = [];
}

MyClass.prototype.push = function(o) {
  this.myArray.push(o);
}
--

If you set the value of the member variable at declaration:
--
  public var myArray:Array = new Array();
--

It turns into this:
--
MyClass.prototype.myArray = new Array();
--

Since you have just assigned an array instance to the prototype of the
class, that gets shared between all instances of the class (basically,
the value you set there is the initial value given to the myArray
member of the class on instantiation).

Well, assuming my understanding is correct. :)

  -Andy

On Wed, Mar 12, 2008 at 2:02 PM, Dave Mennenoh
[EMAIL PROTECTED] wrote:
 So yea...WTF? I can't believe after my years of AS2 coding that it would
  have taken me this long to notice.

  I think I muttered those exact words. Bizzare behavior. Though I don't think
  I have ever run into it. Someone taught me long ago not to initialize class
  variables in their definitions. So I just never have done that. Really good
  to know though.

  Dave -
  Head Developer
  http://www.blurredistinction.com
  Adobe Community Expert
  http://www.adobe.com/communities/experts/



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

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


Re: [Flashcoders] Passing vars with the the timer and events

2008-03-12 Thread Helmut Granda
I was a little bit concerned about the
Delegate approach and I was able to figure out that extending the Timer
class and adding a property to to the new class everything worked fine.
My issue was that once the handler the
extended timer class was casted to Timer rather than my custom class, so I
was able to overcome that by doing the following:

var tmr:SoundTimer = te.currentTarget as
SoundTimer ;

and now I am able to access the extra
parameters added to the SoundTimer class.

Now my question would be... would this
approach be properly or should I still have to dispatch a customEvent for
this specific feature. I know, if ain't broken, don need to fix it.

:)

On 3/12/08, Cory Petosky [EMAIL PROTECTED] wrote:

 That's a dangerous practice. It prevents you from using weak event
 listeners -- because the only reference to your delegate function
 object is the event listener itself, a weakly-referenced listener will
 be garbage collected. Now have to manually remove your listener to
 make sure your object is garbage collected -- but the only way to
 remove event listeners is to pass the removeEventListener function a
 reference to the function you want to remove... but you don't have
 that reference!

 If it's a one-time event, you can have the listener remove itself.
 Your delegate function object can pass a reference to itself (using
 arguments.callee) in to the real event listener function, which you
 can use to remove the listener. In any other case, you'll have to
 build a separate data structure (usually a Dictionary of Objects -
 Functions) to keep a reference available to your code.


 On 3/12/08, EECOLOR [EMAIL PROTECTED] wrote:
  If we ever he need to pass extra arguments to the handler we use a
 delegate
   class to pass them. Usage:
 
   obj.addEventListener(Event.TYPE, Delegate.create(this, _handler, arg1,
   arg2));
 
   private function _handler(e:Event, arg1:Object, arg2:Object):void
   {
 
   };
 
   I added our delegate class as an attachment.
 
   Note that for class methods the scope (first argument of the create
 method)
   has no influence.
 
 
   Greetz Erik
 
 
 
   On 3/12/08, Helmut Granda [EMAIL PROTECTED] wrote:
   
Hi Bob,
   
Thanks for the comment, that is the route that started working on
 after
posting the question and the only issue I am having is dispatching
 the
custom event when the timer has been reached, I did a soft search for
samples of extending the Timer Class with custom TimerEvents but
 wasnt
able
to find any would you happen to know where I could find more
 info?
   
Thanks!!
   
   
 

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


 --

 Cory Petosky : Lead Developer : PUNY
 1618 Central Ave NE Suite 130
 Minneapolis, MN 55413
 Office: 612.216.3924
 Mobile: 240.422.9652
 Fax: 612.605.9216
 http://www.punyentertainment.com

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




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


Re: [Flashcoders] pixel-accurate _xmouse tracking?

2008-03-12 Thread Matt S.
Is this something where AS3 would be superior to AS2? I know its
faster generally, can one expect better responsiveness here as well?

.m

On Wed, Mar 12, 2008 at 12:08 PM, Kerry Thompson
[EMAIL PROTECTED] wrote:

 Matt S. wrote:

   can anyone recommend a way to have pixel-accurate mouse tracking? If I
   move my mouse slowly it pretty much grabs them all, but any fast
   movements result in huge gaps in the _xmouse tracking, so instead of
   being 1,2,3,4,5,6,7,8,9,10,11,12 etc, it'll be
   1,4,6,9,12,15,16,23,30,35, etc. I need it it to be as accurate as
   possible. Can this be done?

  Nope. I can't even get that in my C++ programs, and C++ runs up to 100 times
  faster than Flash, maybe more.

  It's not really a Flash or C++ problem, anyway--it's a Windows problem.
  Windows sends a MOUSE_MOVE message whenever it can, but there is no way it
  can keep up if you zip across 2,000 pixels in 1/10 second.

  You'll see the same thing in any paint program, or, for that matter, on
  those electronic signature pads at the store. Ok, the signature pads
  probably use left-over 6502s, but even a fast processor can't keep up when
  you zip across the screen.

  You might try some sort of interpolation algorithm if you need every pixel,
  like in a drawing program.

  Cordially,

  Kerry Thompson




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

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


Re: [Flashcoders] pixel-accurate _xmouse tracking?

2008-03-12 Thread Allandt Bik-Elliott (Receptacle)
if you use updateAfterEvent() in your mouseMove event, you will get  
it as quick as the flash player will allow, irrespective of the  
framerate but you still won't get even close to every 10th pixel if  
the user gives it some welly


as3 does execute about 10 times faster (so they say - i'm sure  
someone here has a real-world amount there) so, yes, in theory - you  
would get a better response but bare in mind, it's still limited


if you need to track the mouse over large distances it may be worth  
your while to look at using javascript to get the mouse point from  
outside the flash movie (for a spank the monkey style game - see  
http://www.blitzgamer.com/play_games/miscellaneous/316/spank-the- 
monkey.html for the example) and then pass it to flash for the result.



On 12 Mar 2008, at 20:07, Matt S. wrote:


Is this something where AS3 would be superior to AS2? I know its
faster generally, can one expect better responsiveness here as well?

.m

On Wed, Mar 12, 2008 at 12:08 PM, Kerry Thompson
[EMAIL PROTECTED] wrote:


Matt S. wrote:

can anyone recommend a way to have pixel-accurate mouse tracking?  
If I

move my mouse slowly it pretty much grabs them all, but any fast
movements result in huge gaps in the _xmouse tracking, so instead of
being 1,2,3,4,5,6,7,8,9,10,11,12 etc, it'll be
1,4,6,9,12,15,16,23,30,35, etc. I need it it to be as accurate as
possible. Can this be done?


 Nope. I can't even get that in my C++ programs, and C++ runs up  
to 100 times

 faster than Flash, maybe more.

 It's not really a Flash or C++ problem, anyway--it's a Windows  
problem.
 Windows sends a MOUSE_MOVE message whenever it can, but there is  
no way it

 can keep up if you zip across 2,000 pixels in 1/10 second.

 You'll see the same thing in any paint program, or, for that  
matter, on

 those electronic signature pads at the store. Ok, the signature pads
 probably use left-over 6502s, but even a fast processor can't  
keep up when

 you zip across the screen.

 You might try some sort of interpolation algorithm if you need  
every pixel,

 like in a drawing program.

 Cordially,

 Kerry Thompson




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


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




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


Re: [Flashcoders] AAC Streaming in Flash Player

2008-03-12 Thread Mike Skinner
Hi, Steven, thanks for responding. (Do I remember you from the Direct- 
L list?):


OK--I was just looking for any advice. I did try it and got nowhere.  
That is, I can verify that a .m4a from the local drive can be played  
via a NetConnection/NetStream... but it doesn't seem as if I *can*  
play a binary signal from a rtsp connection. Can anyone else verify  
this, or is it more likely I'm doing something wrong? I've been given  
two different styles: rtsp://mm11.onlineradio.com/rock103S or rtsp://mm11.onlineradio.com:8080/rock103S.sdp 
 In each case, I get StreamNotFound.


I've also played around with an MP3 stream, http:// 
206.71.145.10:8006 from radioparadise.com. I get File Structure  
Invalid.


After some googling, I see that StreamPad is a service that uses a  
combination of Java app acting as a streaming server on your iTunes- 
equipped computer with a Flash interface to play your songs over the  
Internet. That makes it sound as if they must have done something like  
this. Does anyone know how they do it?


Thanks again
Mike

On Mar 10, 2008, at 6:08 PM, Steven Sacks wrote:

Are you asking because your initial attempt didn't work or just in  
general?  I haven't tried it.  You should give it a shot and let us  
know!  :)

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




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


RE: [Flashcoders] Passing vars with the the timer and events

2008-03-12 Thread Merrill, Jason
Haven't followed this thread, and don't even know what the original
question is other than the thread title, but I'll just jump in and add,
I don't think attaching variables to events is a good idea anymore, I
used to do it in AS2 all the time with Delegate, but now with the new
AS2 event model, I think a better approach is to dispatch and listen for
events, and grab properties from other places in your code when the
event is heard - use event.target as necessary and such. You can even
attach properties to the target instead of to the event, so
event.target.myProperty and the like.

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 Learning Blog  subscribe.




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


Re: [Flashcoders] pixel-accurate _xmouse tracking?

2008-03-12 Thread Matt S.
I've done some tests in AS3, and the response is definitely better.
Not pixel-accurate, as you all have noted, but definitely way more
granular than in AS2...

.m

On Wed, Mar 12, 2008 at 4:42 PM, Allandt Bik-Elliott (Receptacle)
[EMAIL PROTECTED] wrote:
 if you use updateAfterEvent() in your mouseMove event, you will get
  it as quick as the flash player will allow, irrespective of the
  framerate but you still won't get even close to every 10th pixel if
  the user gives it some welly

  as3 does execute about 10 times faster (so they say - i'm sure
  someone here has a real-world amount there) so, yes, in theory - you
  would get a better response but bare in mind, it's still limited

  if you need to track the mouse over large distances it may be worth
  your while to look at using javascript to get the mouse point from
  outside the flash movie (for a spank the monkey style game - see
  http://www.blitzgamer.com/play_games/miscellaneous/316/spank-the-
  monkey.html for the example) and then pass it to flash for the result.




  On 12 Mar 2008, at 20:07, Matt S. wrote:

   Is this something where AS3 would be superior to AS2? I know its
   faster generally, can one expect better responsiveness here as well?
  
   .m
  
   On Wed, Mar 12, 2008 at 12:08 PM, Kerry Thompson
   [EMAIL PROTECTED] wrote:
  
   Matt S. wrote:
  
   can anyone recommend a way to have pixel-accurate mouse tracking?
   If I
   move my mouse slowly it pretty much grabs them all, but any fast
   movements result in huge gaps in the _xmouse tracking, so instead of
   being 1,2,3,4,5,6,7,8,9,10,11,12 etc, it'll be
   1,4,6,9,12,15,16,23,30,35, etc. I need it it to be as accurate as
   possible. Can this be done?
  
Nope. I can't even get that in my C++ programs, and C++ runs up
   to 100 times
faster than Flash, maybe more.
  
It's not really a Flash or C++ problem, anyway--it's a Windows
   problem.
Windows sends a MOUSE_MOVE message whenever it can, but there is
   no way it
can keep up if you zip across 2,000 pixels in 1/10 second.
  
You'll see the same thing in any paint program, or, for that
   matter, on
those electronic signature pads at the store. Ok, the signature pads
probably use left-over 6502s, but even a fast processor can't
   keep up when
you zip across the screen.
  
You might try some sort of interpolation algorithm if you need
   every pixel,
like in a drawing program.
  
Cordially,
  
Kerry Thompson
  
  
  
  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  


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

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


Re: [Flashcoders] Passing vars with the the timer and events

2008-03-12 Thread Helmut Granda
Thanks Jason,

That is how I approached in the end. I was just getting stuck while
dispatching custom events from the extended Timer class. but I think all is
solved now.


On 3/12/08, Merrill, Jason [EMAIL PROTECTED] wrote:

 Haven't followed this thread, and don't even know what the original
 question is other than the thread title, but I'll just jump in and add,
 I don't think attaching variables to events is a good idea anymore, I
 used to do it in AS2 all the time with Delegate, but now with the new
 AS2 event model, I think a better approach is to dispatch and listen for
 events, and grab properties from other places in your code when the
 event is heard - use event.target as necessary and such. You can even
 attach properties to the target instead of to the event, so
 event.target.myProperty and the like.

 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 Learning Blog  subscribe.





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




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


Re: [Flashcoders] clean scripting

2008-03-12 Thread Muzak

MyClass.prototype.myArray = new Array();


That is indeed correct. 
It should be in the archives somewhere (if they go back that long).


regards,
Muzak

- Original Message - 
From: Andy Herrman [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, March 12, 2008 9:02 PM
Subject: Re: [Flashcoders] clean scripting



Here's my understanding of the reason behind this:

AS2 is basically just syntactic sugar over AS1, and gets compiled down
to the same thing.

When defining a class you're actually defining things on the
prototype, so doing this:
--
class MyClass {
 public var myArray:Array;

 public function MyClass() {
   myArray = [];
 }

 public function push(o:Object):Void {
   myArray.push(o);
 }
}
--

would be the same as:

--
MyClass = function() {
 this.myArray = [];
}

MyClass.prototype.push = function(o) {
 this.myArray.push(o);
}
--

If you set the value of the member variable at declaration:
--
 public var myArray:Array = new Array();
--

It turns into this:
--
MyClass.prototype.myArray = new Array();
--

Since you have just assigned an array instance to the prototype of the
class, that gets shared between all instances of the class (basically,
the value you set there is the initial value given to the myArray
member of the class on instantiation).

Well, assuming my understanding is correct. :)

 -Andy

On Wed, Mar 12, 2008 at 2:02 PM, Dave Mennenoh
[EMAIL PROTECTED] wrote:

So yea...WTF? I can't believe after my years of AS2 coding that it would
 have taken me this long to notice.

 I think I muttered those exact words. Bizzare behavior. Though I don't think
 I have ever run into it. Someone taught me long ago not to initialize class
 variables in their definitions. So I just never have done that. Really good
 to know though.

 Dave -
 Head Developer


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


[Flashcoders] Running Independent SWF

2008-03-12 Thread anuj sharma
Hi All
I made a desktop application( in AS 3.0 using Flash IDE) in which I am
loading bunch of SWFs in my UILoader. The file is working fine from Flash
Authoring tool( IDE). I publish my file using local files only. Now when I
am trying to run my independent SWF file, i am getting error
Error #2044: Unhandled ioError:. text=Error #2035: URL Not Found. URL:
file:///video/pic_8.swf.
The things are working fine if i open fla and hit ctr+Enter.I don't know why
its not working as an independent swf. Also the title of the player is
showing player 9, which means it is using the player it is supposed to use.
If i change my publish settings to
 network only nothing works at all.
i am just using XML to load external SWFs and videos in UIloader component.
Any body has any solution for this kind of problem.
I am putting all my code on main time line in Flash authoring tool and my
Operating system is XP
Thanks a lot.
Anuj
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Running Independent SWF

2008-03-12 Thread Bob Wohl
Is this from opening the swf or is this an air app? Does this behave this
way when testing from embeding in an html document?


B.

On Wed, Mar 12, 2008 at 3:08 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi All
 I made a desktop application( in AS 3.0 using Flash IDE) in which I am
 loading bunch of SWFs in my UILoader. The file is working fine from Flash
 Authoring tool( IDE). I publish my file using local files only. Now when I
 am trying to run my independent SWF file, i am getting error
 Error #2044: Unhandled ioError:. text=Error #2035: URL Not Found. URL:
 file:///video/pic_8.swf.
 The things are working fine if i open fla and hit ctr+Enter.I don't know
 why
 its not working as an independent swf. Also the title of the player is
 showing player 9, which means it is using the player it is supposed to
 use.
 If i change my publish settings to
  network only nothing works at all.
 i am just using XML to load external SWFs and videos in UIloader
 component.
 Any body has any solution for this kind of problem.
 I am putting all my code on main time line in Flash authoring tool and my
 Operating system is XP
 Thanks a lot.
 Anuj
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] FOTB was GREAT....will you get OFFF ?!!

2008-03-12 Thread laurent


http://www.offf.ws/

so much speakers, we had sun bath and T-shirt in juanary...january,

what else ?


this perhaps
http://roxik.com/pictaps/

Love you crazy people!


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