[Flashcoders] URLRequest Unencoded Question

2009-11-10 Thread TS
Hello,

Can someone help me with this. I need to send a url request with the spaces
intact and not urlencoded.

Is there a way to do this?

var url:String = 'http://www.somesite.com/home?status=My Bikini Design ' +
shortenedLink;
var req:URLRequest = new URLRequest(url); 
navigateToURL(req,'_blank');

Thanks for any help!

-T

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


RE: [Flashcoders] URLRequest Unencoded Question

2009-11-10 Thread TS
Then why does this work when I put it in my url?

http://twitter.com/home?status=My Bikini Design http://www.chynnadolls.com/

Which results in the proper status update in Twitter. There must be a way to
do this as other client applications are updating twitter with spaces in
their status?



WHAT ARE YOU DOING?

My Bikini Design http://www.chynnadolls.com/



Thanks, T


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
Andersson
Sent: Tuesday, November 10, 2009 6:49 AM
To: Flash Coders List
Subject: Re: [Flashcoders] URLRequest Unencoded Question

TS wrote:
 Hello,

 Can someone help me with this. I need to send a url request with the
spaces
 intact and not urlencoded.

 Is there a way to do this?


No http client can do this, the http RFC requires the resource name to 
not contain any spaces. The encoding is required.
___
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] [MEMORY LEAK]

2009-10-02 Thread TS
Muzak, I've got that already.

function timerHandler(event:TimerEvent):void {
trace(this.removeChildAt(0)); // remove loaded swf from display list
mLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, 
onCompleteHandler);
mLoader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, 
onProgressHandler);   
mLoader.unloadAndStop();
mLoader = null;
mLoader =  new Loader(); // clear from memory
startLoad();
trace(timerHandler:  + event);
}

Thanks, T

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Muzak
Sent: Friday, October 02, 2009 5:38 AM
To: Flash Coders List
Subject: Re: [Flashcoders] [MEMORY LEAK]

I'd say, keep the loader instance (instead of creating a new one each time) and 
unload the loader content (the swf) using 
Loader.unloadAndStop.
http://kb2.adobe.com/cps/403/kb403670.html

http://www.gskinner.com/blog/archives/2008/07/additional_info.html

regards,
Muzak

- Original Message - 
From: Gregory Boland breakfastcof...@gmail.com
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, October 02, 2009 5:57 AM
Subject: Re: [Flashcoders] [MEMORY LEAK]


 All I can say is that you aren't releasing all of the references to this
 material that you are trying to release from memory.

 So after you make this call

 addChild(loadEvent.currentTarget.content);

 make that = to null as well as any other time that you are referring to this
 content you are trying to rid.

 I know if you run your program in Flex Builder and choose the profiler, you
 can actually purge the garbage manually and see if the object you want to be
 deleted gets purged.  If it hasn't then there is still something that is
 referencing it.  However, after looking at your code it seems that you are
 writing it on the timeline and i'm not sure how you would go about putting
 that into Flex Builder.

 best of luck

 greg

___
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] [MEMORY LEAK]

2009-10-01 Thread TS
Well I'm going to use gskinner's workaround by pulling the content swf from
a subdomain. I am not looking at task manager overall sys memory but, at the
privat working set from the processes tab. And I can see it get loaded then
every refresh it adds 2-4MB to the working set. On page refresh it drops
back to where it was.

Thanks, T

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Juan Pablo
Califano
Sent: Thursday, October 01, 2009 6:35 AM
To: Flash Coders List
Subject: Re: [Flashcoders] [MEMORY LEAK]



Every time it reloads
however, I watch firefox take away memory consistently and when I refresh
that page memory use drops back to normal.



First and most important, are you sure it's leak? The fact that Firefox (not
even the player itself) doesn't release memory right away doesn't mean
there's a leak. At all.

Sorry for the self reference, but a while ago I answered a question in
stackoverflow about an alleged memory leak.
http://stackoverflow.com/questions/1020146/why-sytem-totalmemory-keeps-incre
asing/1022648#1022648.
Perhaps it helps to get my point across.

Looking at Qindows manager or System.totalMemory is probably the worst
possible way to detect a leak, given how the player works. You'll get tons
of false positives and the info is rather useless anyway.

What has been of great help, at least for me, is using Flex Builder's
profiler. It lets you inspect objects in memory, force a gc, etc. Plus, if
you do find a leak, you can trace where the leaked object has been
allocated. A simple test for your scenario would be taking a snapshot before
loading your swf, then another when it's loaded, then unload, force a GC and
take another snapshot. Then you can compare memory at those points and be in
a better position to determine if there's a leak, and, in that case, what
could be causing it.

Hope it helps.

Cheers
Juan Pablo Califano





2009/9/30 TS sunnrun...@gmail.com

 Hello, this issue is killing me. I had a swf that loaded an xml file then
 loaded images from the xml file and then killed the display list, xml,
 images etc... then restarted based on a timer. Every time it reloads
 however, I watch firefox take away memory consistently and when I refresh
 that page memory use drops back to normal. So, I said screw this, I'm
going
 to create an empty swf and load the swf with all the magic in it and add
it
 to the empty swf. I figured if I add the swf to the main stage and kill
 that
 one reference to the swf when I was done with it, I should have fixed my
 problem. Here's my code. Can someone please tell me what is going on?


 stop();

 var mLoader:Loader = new Loader();
 function startLoad()
 {
var mRequest:URLRequest = new
 URLRequest(hasch_flash/currently_watched_videos.swf);
//var mRequest:URLRequest = new
 URLRequest(currently_watched_videos.swf);
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
 onCompleteHandler, false, 0, true);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
 onProgressHandler, false, 0, true);
mLoader.load(mRequest);
 }

 function onCompleteHandler(loadEvent:Event)
 {
trace(load  + loadEvent.currentTarget.content);
trace(loadTarget  + loadEvent.target);
addChild(loadEvent.currentTarget.content);
 }
 function onProgressHandler(mProgress:ProgressEvent)
 {
var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
trace(percent);
 }
 startLoad();


 TimerExample();

 // Set off timer to kill carousel and restart movie
 function TimerExample() {
var myTimer:Timer = new Timer(3, 0);
myTimer.addEventListener(timer, timerHandler);
myTimer.start();
 }

 function timerHandler(event:TimerEvent):void {
trace(this.removeChildAt(0)); // remove from display list
mLoader = null;
mLoader =  new Loader(); // clear from memory
startLoad();
trace(timerHandler:  + event);
 }


 Thanks for any advice. T

 ___
 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] [MEMORY LEAK]

2009-10-01 Thread TS
I was just trying to clear that var. I thought if I said loader = new
Loader() it would make sure to kill the old loader and it's content?

Thanks, T

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ian Thomas
Sent: Thursday, October 01, 2009 2:18 AM
To: Flash Coders List
Subject: Re: [Flashcoders] [MEMORY LEAK]

Just out of interest - why are you recreating the Loader() and
re-adding the listeners each time? It should work if you just create
the Loader once, add the listeners once - then every time you call
load() with a new URLRequest, you'll get new progress and complete
events.

Might help with your leaks.

HTH,
   Ian

On Thu, Oct 1, 2009 at 2:28 AM, TS sunnrun...@gmail.com wrote:
 Thanks for the info. Still reading it but, fme, it seems silly there's not
 an ExitRestart() method or something.

 Thanks, T


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Chris
Foster
 Sent: Wednesday, September 30, 2009 7:08 PM
 To: Flash Coders List
 Subject: RE: [Flashcoders] [MEMORY LEAK]

 Hi T,

 No solution here, but this might relate to your current problem:
 http://www.gskinner.com/blog/archives/2008/04/failure_to_unlo.html


 C:


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of TS
 Sent: Thursday, 1 October 2009 10:53 AM
 To: 'Flash Coders List'
 Subject: [Flashcoders] [MEMORY LEAK]

 Hello, this issue is killing me. I had a swf that loaded an xml file
 then loaded images from the xml file and then killed the display list,
 xml, images etc... then restarted based on a timer. Every time it
 reloads however, I watch firefox take away memory consistently and when
 I refresh that page memory use drops back to normal. So, I said screw
 this, I'm going to create an empty swf and load the swf with all the
 magic in it and add it to the empty swf. I figured if I add the swf to
 the main stage and kill that one reference to the swf when I was done
 with it, I should have fixed my problem. Here's my code. Can someone
 please tell me what is going on?


 stop();

 var mLoader:Loader = new Loader();
 function startLoad()
 {
        var mRequest:URLRequest = new
 URLRequest(hasch_flash/currently_watched_videos.swf);
        //var mRequest:URLRequest = new
 URLRequest(currently_watched_videos.swf);
        mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
 onCompleteHandler, false, 0, true);

 mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
 onProgressHandler, false, 0, true);
        mLoader.load(mRequest);
 }

 function onCompleteHandler(loadEvent:Event)
 {
        trace(load  + loadEvent.currentTarget.content);
        trace(loadTarget  + loadEvent.target);
        addChild(loadEvent.currentTarget.content);
 }
 function onProgressHandler(mProgress:ProgressEvent)
 {
        var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
        trace(percent);
 }
 startLoad();


 TimerExample();

 // Set off timer to kill carousel and restart movie function
 TimerExample() {
        var myTimer:Timer = new Timer(3, 0);
        myTimer.addEventListener(timer, timerHandler);
        myTimer.start();
 }

 function timerHandler(event:TimerEvent):void {
        trace(this.removeChildAt(0)); // remove from display list
        mLoader = null;
        mLoader =  new Loader(); // clear from memory
        startLoad();
        trace(timerHandler:  + event);
 }


 Thanks for any advice. T

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 This e-mail, including any attached files, may contain confidential and
 privileged information for the sole use of the intended recipient.  Any
 review, use, distribution, or disclosure by others is strictly prohibited.
 If you are not the intended recipient (or authorized to receive
information
 for the intended recipient), please contact the sender by reply e-mail and
 delete all copies of this message.

 ___
 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] [MEMORY LEAK]

2009-10-01 Thread TS
 The mere fact that the
memory footprint grows doesn't mean there's a leak.

So, is there a way to keep that footprint from growing. Is it poor garbage
collection?

Thanks, T


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Juan Pablo
Califano
Sent: Thursday, October 01, 2009 1:24 PM
To: Flash Coders List
Subject: Re: [Flashcoders] [MEMORY LEAK]

I see. But when you refresh the page, the Flash Player instance is tore
down, so the player's memory is released. When you reload a stub swf, the
memory used by the player might or might not be released immediately. Most
likely it won't. That's not necessarily a bug or a leak. It could be, but my
point was that you should keep in mind that GC is not deterministic; because
maybe you don't have a leak in the first place. The mere fact that the
memory footprint grows doesn't mean there's a leak.

Cheers
Juan Pablo Califano



2009/10/1 TS sunnrun...@gmail.com

 Well I'm going to use gskinner's workaround by pulling the content swf
from
 a subdomain. I am not looking at task manager overall sys memory but, at
 the
 privat working set from the processes tab. And I can see it get loaded
then
 every refresh it adds 2-4MB to the working set. On page refresh it drops
 back to where it was.

 Thanks, T

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Juan Pablo
 Califano
 Sent: Thursday, October 01, 2009 6:35 AM
 To: Flash Coders List
  Subject: Re: [Flashcoders] [MEMORY LEAK]

 

 Every time it reloads
 however, I watch firefox take away memory consistently and when I refresh
 that page memory use drops back to normal.

 

 First and most important, are you sure it's leak? The fact that Firefox
 (not
 even the player itself) doesn't release memory right away doesn't mean
 there's a leak. At all.

 Sorry for the self reference, but a while ago I answered a question in
 stackoverflow about an alleged memory leak.


http://stackoverflow.com/questions/1020146/why-sytem-totalmemory-keeps-incre
 asing/1022648#1022648.
 Perhaps it helps to get my point across.

 Looking at Qindows manager or System.totalMemory is probably the worst
 possible way to detect a leak, given how the player works. You'll get tons
 of false positives and the info is rather useless anyway.

 What has been of great help, at least for me, is using Flex Builder's
 profiler. It lets you inspect objects in memory, force a gc, etc. Plus, if
 you do find a leak, you can trace where the leaked object has been
 allocated. A simple test for your scenario would be taking a snapshot
 before
 loading your swf, then another when it's loaded, then unload, force a GC
 and
 take another snapshot. Then you can compare memory at those points and be
 in
 a better position to determine if there's a leak, and, in that case, what
 could be causing it.

 Hope it helps.

 Cheers
 Juan Pablo Califano





 2009/9/30 TS sunnrun...@gmail.com

  Hello, this issue is killing me. I had a swf that loaded an xml file
then
  loaded images from the xml file and then killed the display list, xml,
  images etc... then restarted based on a timer. Every time it reloads
  however, I watch firefox take away memory consistently and when I
refresh
  that page memory use drops back to normal. So, I said screw this, I'm
 going
  to create an empty swf and load the swf with all the magic in it and add
 it
  to the empty swf. I figured if I add the swf to the main stage and kill
  that
  one reference to the swf when I was done with it, I should have fixed my
  problem. Here's my code. Can someone please tell me what is going on?
 
 
  stop();
 
  var mLoader:Loader = new Loader();
  function startLoad()
  {
 var mRequest:URLRequest = new
  URLRequest(hasch_flash/currently_watched_videos.swf);
 //var mRequest:URLRequest = new
  URLRequest(currently_watched_videos.swf);
 mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
  onCompleteHandler, false, 0, true);
 
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
  onProgressHandler, false, 0, true);
 mLoader.load(mRequest);
  }
 
  function onCompleteHandler(loadEvent:Event)
  {
 trace(load  + loadEvent.currentTarget.content);
 trace(loadTarget  + loadEvent.target);
 addChild(loadEvent.currentTarget.content);
  }
  function onProgressHandler(mProgress:ProgressEvent)
  {
 var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
 trace(percent);
  }
  startLoad();
 
 
  TimerExample();
 
  // Set off timer to kill carousel and restart movie
  function TimerExample() {
 var myTimer:Timer = new Timer(3, 0);
 myTimer.addEventListener(timer, timerHandler);
 myTimer.start();
  }
 
  function timerHandler(event:TimerEvent):void {
 trace(this.removeChildAt(0)); // remove from display list

RE: [Flashcoders] [MEMORY LEAK]

2009-10-01 Thread TS
Yes I understand garbage collection(GC) and how it's SUPPOSE to work :)
However, there still remains the fact that my browser is at say 146,000K
private working set memory. Let my swf file sit there for a half hour or
more and now the working set is up to 300,000K. Refresh the page that the
swf is on and memory drops back to 146,000K. Now, turn off the mechanism
that kills the content swf and re-adds it to the main swf and viola, the
memory stays consistent at 146,000K.

So, is this code not removing the content.swf appropriately on my Timer?
Shouldn't GC be working appropriately and FF not adding additional memory?

function timerHandler(event:TimerEvent):void {
trace(this.removeChildAt(0)); // remove from display list
mLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,
onCompleteHandler); // clear from memory

mLoader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,
onProgressHandler); // clear from memory
mLoader.unloadAndStop();// clear from memory
mLoader = null; // clear from memory
mLoader =  new Loader(); // clear from memory
startLoad();
trace(timerHandler:  + event);
}

Thanks, T

PS I've been in IT since I was a kid and yes they still do mark the sectors
with a special character. The only secure erase from a drive is to do full
format and go a step further by writing back on the drive with garbage data
many times over until your paranoid self can feel good about it. However,
ultimately physically destroying the drive is the best way =)



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry
Thompson
Sent: Thursday, October 01, 2009 2:06 PM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] [MEMORY LEAK]

Juan Pablo Califano wrote:

 The mere fact that the
 memory footprint grows doesn't mean there's a leak.

Juan Pablo is correct, and it's important to understand why. (If you already
understand garbage collection, you need read no further, unless you want to
check the accuracy of my description :-)

As you create objects, or even variables, the Flash player allocates
memory--this is common to most runtime engines/virtual machines, including
Shockwave, C#, Java, Visual Basic (I think), and all the way back to UCSD
Pascal.

When you delete an object, or a variable goes out of scope, that memory is
no longer needed, and the Flash player notes that it is available for
re-use. It does not, however, immediately re-use the memory--in fact, it
probably doesn't even zero it out right away. The data are still there, but
the memory is marked as available.

These memory blocks are often not contiguous--your memory looks something
like a fragmented hard disk. You have a few bytes here, a couple K bytes
there. When the Flash player's memory gets too fragmented, it does a
garbage collection. That is, it moves currently-valid objects and
variables around to make everything contiguous (un-fragmented) again. It's
much like defragmenting your hard drive, except it is done in RAM (or
virtual RAM).

The browser is probably doing the same thing. If the user has navigated away
from your Flash page, it doesn't necessarily free that memory immediately.
In fact, it probably won't, so you can still navigate forwards and
backwards.

It's sort of like deleting a file on your disk used to be. I think it's
handled differently now, but in the bad old days, the OS would simply write
a special character into the first byte of the file. There were utilities we
used to recover accidentally deleted files--we could explore the disk, find
the data, change the first byte back to what it was supposed to be, and the
file was restored. (That's somewhat simplified, but it's the right concept).

HTH.

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] [MEMORY LEAK]

2009-10-01 Thread TS
I have 2 swfs. 

1) Loader SWF: no assets are on stage nor are they loaded into other than
the content swf. The code is a timer and a loader. The timer reloads the
loader every 30 seconds which pulls in the content swf. And yes the remove
something from the display list at position 0. is the content swf which
does disappear when removed from the display list. When I check for
numChildren there is indeed only one item in the display list which is then
removed.

2) Content swf: loads an xml file with 10 references to thumbnails, then
after finished it loads the thumbs into a carousel.

The timer essentially kills the content swf and reloads it. The purpose of
the entire app is to show thumbnails of videos currently being watched and
refreshes every 30 seconds.

Is it possible that the content swf is loading something that is running as
a global var or something which keeps it in the loader swf?

Thanks, T





-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Gregory
Boland
Sent: Thursday, October 01, 2009 3:39 PM
To: Flash Coders List
Subject: Re: [Flashcoders] [MEMORY LEAK]

TS,

what is the content that you are loading from this external swf every 30,000
milliseconds?  It is feasible that what you are loading is causing the
memory of the Flash player to increase?

I never saw where you ready the swf itself for garbage collection.  I see
that you are setting the loader to null but you still have the content on
the stage.  Although it looks like you are trying to remove something from
the display list at position 0.

Are you sure that you are removing what you are intending to remove?  Maybe
a more thorough emptying of the display list is in order such as a for loop
through the list, removing whatever might be on it.

And keep in mind that the garbage collection doesn't necc happen as soon as
you make something = null.  It happens on a garbage cycle when Flash feels
like it, not when u want it to.


In Flash Player 9, the garbage collector's operations are deferred. This is
a very important thing to understand. Your objects will not be removed
immediately when all active references are deleted. Rather, they will be
removed at some indeterminate time in the future (from a developer
standpoint). The garbage collector uses a set of heuristics that look at the
RAM allocation and the size of the memory stack, among other things, to
determine when to run.
 -

http://www.adobe.com/devnet/flashplayer/articles/garbage_collection.html

greg


On Thu, Oct 1, 2009 at 5:00 PM, TS sunnrun...@gmail.com wrote:

 Yes I understand garbage collection(GC) and how it's SUPPOSE to work :)
 However, there still remains the fact that my browser is at say 146,000K
 private working set memory. Let my swf file sit there for a half hour or
 more and now the working set is up to 300,000K. Refresh the page that the
 swf is on and memory drops back to 146,000K. Now, turn off the mechanism
 that kills the content swf and re-adds it to the main swf and viola, the
 memory stays consistent at 146,000K.

 So, is this code not removing the content.swf appropriately on my Timer?
 Shouldn't GC be working appropriately and FF not adding additional memory?

 function timerHandler(event:TimerEvent):void {
trace(this.removeChildAt(0)); // remove from display list
 mLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,
 onCompleteHandler); // clear from memory

 mLoader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,
 onProgressHandler); // clear from memory
mLoader.unloadAndStop();// clear from memory
mLoader = null; // clear from memory
 mLoader =  new Loader(); // clear from memory
startLoad();
trace(timerHandler:  + event);
 }

 Thanks, T

 PS I've been in IT since I was a kid and yes they still do mark the
sectors
 with a special character. The only secure erase from a drive is to do full
 format and go a step further by writing back on the drive with garbage
data
 many times over until your paranoid self can feel good about it. However,
 ultimately physically destroying the drive is the best way =)



 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry
 Thompson
 Sent: Thursday, October 01, 2009 2:06 PM
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] [MEMORY LEAK]

 Juan Pablo Califano wrote:

  The mere fact that the
  memory footprint grows doesn't mean there's a leak.

 Juan Pablo is correct, and it's important to understand why. (If you
 already
 understand garbage collection, you need read no further, unless you want
to
 check the accuracy of my description :-)

 As you create objects, or even variables, the Flash player allocates
 memory--this is common to most runtime engines/virtual machines, including
 Shockwave, C#, Java, Visual Basic (I think), and all the way back

RE: [Flashcoders] [MEMORY LEAK]

2009-10-01 Thread TS
Been letting it run for a few hrs now and firefox is now using almost a gig
of memory.

Thanks, T

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Gregory
Boland
Sent: Thursday, October 01, 2009 3:39 PM
To: Flash Coders List
Subject: Re: [Flashcoders] [MEMORY LEAK]

TS,

what is the content that you are loading from this external swf every 30,000
milliseconds?  It is feasible that what you are loading is causing the
memory of the Flash player to increase?

I never saw where you ready the swf itself for garbage collection.  I see
that you are setting the loader to null but you still have the content on
the stage.  Although it looks like you are trying to remove something from
the display list at position 0.

Are you sure that you are removing what you are intending to remove?  Maybe
a more thorough emptying of the display list is in order such as a for loop
through the list, removing whatever might be on it.

And keep in mind that the garbage collection doesn't necc happen as soon as
you make something = null.  It happens on a garbage cycle when Flash feels
like it, not when u want it to.


In Flash Player 9, the garbage collector's operations are deferred. This is
a very important thing to understand. Your objects will not be removed
immediately when all active references are deleted. Rather, they will be
removed at some indeterminate time in the future (from a developer
standpoint). The garbage collector uses a set of heuristics that look at the
RAM allocation and the size of the memory stack, among other things, to
determine when to run.
 -

http://www.adobe.com/devnet/flashplayer/articles/garbage_collection.html

greg


On Thu, Oct 1, 2009 at 5:00 PM, TS sunnrun...@gmail.com wrote:

 Yes I understand garbage collection(GC) and how it's SUPPOSE to work :)
 However, there still remains the fact that my browser is at say 146,000K
 private working set memory. Let my swf file sit there for a half hour or
 more and now the working set is up to 300,000K. Refresh the page that the
 swf is on and memory drops back to 146,000K. Now, turn off the mechanism
 that kills the content swf and re-adds it to the main swf and viola, the
 memory stays consistent at 146,000K.

 So, is this code not removing the content.swf appropriately on my Timer?
 Shouldn't GC be working appropriately and FF not adding additional memory?

 function timerHandler(event:TimerEvent):void {
trace(this.removeChildAt(0)); // remove from display list
 mLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,
 onCompleteHandler); // clear from memory

 mLoader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,
 onProgressHandler); // clear from memory
mLoader.unloadAndStop();// clear from memory
mLoader = null; // clear from memory
 mLoader =  new Loader(); // clear from memory
startLoad();
trace(timerHandler:  + event);
 }

 Thanks, T

 PS I've been in IT since I was a kid and yes they still do mark the
sectors
 with a special character. The only secure erase from a drive is to do full
 format and go a step further by writing back on the drive with garbage
data
 many times over until your paranoid self can feel good about it. However,
 ultimately physically destroying the drive is the best way =)



 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry
 Thompson
 Sent: Thursday, October 01, 2009 2:06 PM
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] [MEMORY LEAK]

 Juan Pablo Califano wrote:

  The mere fact that the
  memory footprint grows doesn't mean there's a leak.

 Juan Pablo is correct, and it's important to understand why. (If you
 already
 understand garbage collection, you need read no further, unless you want
to
 check the accuracy of my description :-)

 As you create objects, or even variables, the Flash player allocates
 memory--this is common to most runtime engines/virtual machines, including
 Shockwave, C#, Java, Visual Basic (I think), and all the way back to UCSD
 Pascal.

 When you delete an object, or a variable goes out of scope, that memory is
 no longer needed, and the Flash player notes that it is available for
 re-use. It does not, however, immediately re-use the memory--in fact, it
 probably doesn't even zero it out right away. The data are still there,
but
 the memory is marked as available.

 These memory blocks are often not contiguous--your memory looks something
 like a fragmented hard disk. You have a few bytes here, a couple K bytes
 there. When the Flash player's memory gets too fragmented, it does a
 garbage collection. That is, it moves currently-valid objects and
 variables around to make everything contiguous (un-fragmented) again. It's
 much like defragmenting your hard drive, except it is done in RAM (or
 virtual RAM).

 The browser

[Flashcoders] [MEMORY LEAK]

2009-09-30 Thread TS
Hello, this issue is killing me. I had a swf that loaded an xml file then
loaded images from the xml file and then killed the display list, xml,
images etc... then restarted based on a timer. Every time it reloads
however, I watch firefox take away memory consistently and when I refresh
that page memory use drops back to normal. So, I said screw this, I'm going
to create an empty swf and load the swf with all the magic in it and add it
to the empty swf. I figured if I add the swf to the main stage and kill that
one reference to the swf when I was done with it, I should have fixed my
problem. Here's my code. Can someone please tell me what is going on? 


stop();

var mLoader:Loader = new Loader();
function startLoad()
{
var mRequest:URLRequest = new
URLRequest(hasch_flash/currently_watched_videos.swf);
//var mRequest:URLRequest = new
URLRequest(currently_watched_videos.swf);
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
onCompleteHandler, false, 0, true);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
onProgressHandler, false, 0, true);
mLoader.load(mRequest);
}

function onCompleteHandler(loadEvent:Event)
{
trace(load  + loadEvent.currentTarget.content);
trace(loadTarget  + loadEvent.target);
addChild(loadEvent.currentTarget.content);
}
function onProgressHandler(mProgress:ProgressEvent)
{
var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
trace(percent);
}
startLoad();


TimerExample();

// Set off timer to kill carousel and restart movie
function TimerExample() {
var myTimer:Timer = new Timer(3, 0);
myTimer.addEventListener(timer, timerHandler);
myTimer.start();
}

function timerHandler(event:TimerEvent):void {
trace(this.removeChildAt(0)); // remove from display list
mLoader = null;
mLoader =  new Loader(); // clear from memory
startLoad();
trace(timerHandler:  + event);
}


Thanks for any advice. T

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


RE: [Flashcoders] [MEMORY LEAK]

2009-09-30 Thread TS
Thanks for the info. Still reading it but, fme, it seems silly there's not
an ExitRestart() method or something.

Thanks, T


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Chris Foster
Sent: Wednesday, September 30, 2009 7:08 PM
To: Flash Coders List
Subject: RE: [Flashcoders] [MEMORY LEAK]

Hi T,

No solution here, but this might relate to your current problem:
http://www.gskinner.com/blog/archives/2008/04/failure_to_unlo.html


C:
 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of TS
Sent: Thursday, 1 October 2009 10:53 AM
To: 'Flash Coders List'
Subject: [Flashcoders] [MEMORY LEAK]

Hello, this issue is killing me. I had a swf that loaded an xml file
then loaded images from the xml file and then killed the display list,
xml, images etc... then restarted based on a timer. Every time it
reloads however, I watch firefox take away memory consistently and when
I refresh that page memory use drops back to normal. So, I said screw
this, I'm going to create an empty swf and load the swf with all the
magic in it and add it to the empty swf. I figured if I add the swf to
the main stage and kill that one reference to the swf when I was done
with it, I should have fixed my problem. Here's my code. Can someone
please tell me what is going on? 


stop();

var mLoader:Loader = new Loader();
function startLoad()
{
var mRequest:URLRequest = new
URLRequest(hasch_flash/currently_watched_videos.swf);
//var mRequest:URLRequest = new
URLRequest(currently_watched_videos.swf);
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
onCompleteHandler, false, 0, true);

mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
onProgressHandler, false, 0, true);
mLoader.load(mRequest);
}

function onCompleteHandler(loadEvent:Event)
{
trace(load  + loadEvent.currentTarget.content);
trace(loadTarget  + loadEvent.target);
addChild(loadEvent.currentTarget.content);
}
function onProgressHandler(mProgress:ProgressEvent)
{
var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
trace(percent);
}
startLoad();


TimerExample();

// Set off timer to kill carousel and restart movie function
TimerExample() {
var myTimer:Timer = new Timer(3, 0);
myTimer.addEventListener(timer, timerHandler);
myTimer.start();
}

function timerHandler(event:TimerEvent):void {
trace(this.removeChildAt(0)); // remove from display list
mLoader = null;
mLoader =  new Loader(); // clear from memory
startLoad();
trace(timerHandler:  + event);
}


Thanks for any advice. T

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
This e-mail, including any attached files, may contain confidential and
privileged information for the sole use of the intended recipient.  Any
review, use, distribution, or disclosure by others is strictly prohibited.
If you are not the intended recipient (or authorized to receive information
for the intended recipient), please contact the sender by reply e-mail and
delete all copies of this message.

___
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] Seek bar not working with FLVPlayback Component?

2009-07-29 Thread TS
Anyone have any ideas why the playback seek bar isn't working?

The video was encoded using FFMPEG. 

http://labs.cleargraphix.com/AS3/flvplayer/

Does it need to be encoded a certain way with cue points or something?

Thanks ahead, T

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


RE: [Flashcoders] Seek bar not working with FLVPlayback Component?

2009-07-29 Thread TS
Thanks Karl

Am I using the right terminology. Do I need to look for something that can
add cue points? If so, would it be possible to inject cue points as the
movie is downloaded progressively. Like in a while receiving data loop or
something?

Thanks, T


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Wednesday, July 29, 2009 3:09 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Seek bar not working with FLVPlayback Component?

Yes.

On Jul 29, 2009, at 3:14 PM, TS wrote:

 Anyone have any ideas why the playback seek bar isn't working?

 The video was encoded using FFMPEG.

 http://labs.cleargraphix.com/AS3/flvplayer/

 Does it need to be encoded a certain way with cue points or something?

 Thanks ahead, T

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

Karl DeSaulniers
Design Drumm
http://designdrumm.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] Seek bar not working with FLVPlayback Component?

2009-07-29 Thread TS
Hmm, I feel like there should be a way to seek by time without cuepoints. I
mean if I play it locally in MediaClassicPlayer on windows, their seek bar
works fine. Very strange.

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Wednesday, July 29, 2009 4:05 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Seek bar not working with FLVPlayback Component?

Um. I am not sure dynamically, but my experience is to make your cue  
points in your movie then export your movie. Import that into flash  
flv maker and it will read the cue points in your movie and will  
display them so you can assign them var names. Been a while though and  
I was working in AS2.

Karl

Sent from losPhone

On Jul 29, 2009, at 4:51 PM, TS sunnrun...@gmail.com wrote:

 Thanks Karl

 Am I using the right terminology. Do I need to look for something  
 that can
 add cue points? If so, would it be possible to inject cue points as  
 the
 movie is downloaded progressively. Like in a while receiving data  
 loop or
 something?

 Thanks, T


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
 DeSaulniers
 Sent: Wednesday, July 29, 2009 3:09 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] Seek bar not working with FLVPlayback  
 Component?

 Yes.

 On Jul 29, 2009, at 3:14 PM, TS wrote:

 Anyone have any ideas why the playback seek bar isn't working?

 The video was encoded using FFMPEG.

 http://labs.cleargraphix.com/AS3/flvplayer/

 Does it need to be encoded a certain way with cue points or  
 something?

 Thanks ahead, T

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

 Karl DeSaulniers
 Design Drumm
 http://designdrumm.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
___
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] AS2 How To Clean getURL before sent

2009-06-19 Thread TS
I just have a getURL triggering after an alert is closed and it's sending
all these vars through with it. Is there a way to get rid of these var names
and values before sending them out?

reset=[type+Function]obj=_level0.depthChild0uploadURL=http%3A%2F%2F
%2Fupload%2Falbums.php%3Faction%3Dupload_content%26system_member_id%3D58669%
26album_id%3D25%26album_name%3DProfile+Pictures%26album_type%3Dphotofiles=[
object+Object]totalSize=0uploadingFileIndex=1uploading=falseuploadedSize
=114852allTypes=[object+Object]imageTypes=[object+Object]listener=[object
+Object]alertClickHandler=[type+Function]fileRef=[object+Object]btnCancel
Listener=[object+Object]btnBackListener=[object+Object]btnAddFilesListener
=[object+Object]btnUploadListener=[object+Object]searchKey=9598

Thanks, T

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


[Flashcoders] AS 2.0 FileReference issue I/O error thrown

2009-06-18 Thread TS
My uploader works on every other platform except for Mac. The file uploader
never completes and throws an ioError? Latest Player installed on FF. Using
PHP as the file handler on the backend. Anyone else have this issue or know
a workaround?

Thanks, T

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


[Flashcoders] LoadVars need to pass a var that is a keyword to a php script

2009-06-09 Thread TS
Hello,

Ver: AS2

I have an authentication form that needs vars passed to it via a loadVars
object POST. I'm building my object up as such:

message.uid = jimbo;
message.for = somesite.com;

I have to use for as the var name to send to the auth.form script.
However, the Compiler obviously has a problem with this. Does anyone know a
workaround for this?


At least this is an attempt to solve the problem of authenticating the swf
inside the members area. Every time the swf file tries to call up a file
within the members area, it sends back the login page. 

Thanks ahead, T

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


RE: [Flashcoders] AS3 Object reference

2009-03-30 Thread TS
Ok that was my other question. Bouncing back from PHP to AS3 is making me
insane. Thanks for the info. Arrays are def the way to go.

Thanks again, T


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Muzak
Sent: Saturday, March 28, 2009 7:50 PM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 Object reference

There's no _width in AS3.. it's width.
Array access notation should work fine:

photoStrip_mc[thumbnail + i + _mc].width;


As a sidenote, you're better off storing references in an array for easy
access later.

myClips = new Array();
var len:uint = 10;
for(var i:uint=0; ilen; i++) {
var mc:MovieClip = new MovieClip();
photoStrip_mc.addChild(mc);
myClips.push(mc);
}


If you need to access the clips at some later time, just loop through the
myClips Array.

var len:uint = myClips.length;
for(var i:uint=0; ilen; i++) {
var mc:MovieClip = myClips[i];
mc.width = someValue;
}

regards,
Muzak


- Original Message - 
From: TS sunnrun...@gmail.com
To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Sunday, March 29, 2009 3:09 AM
Subject: [Flashcoders] AS3 Object reference


 Trying to cylec through some objects. This doesn't seem to work in AS3 as
it
 does in AS2. Is there an equivalent in AS3?
 
 
 
 photoStrip_mc[thumbnail + i + _mc]._width
 
 
 
 Thanks ahead, T
 

___
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 Object reference

2009-03-28 Thread TS
Trying to cylec through some objects. This doesn't seem to work in AS3 as it
does in AS2. Is there an equivalent in AS3?

 

photoStrip_mc[thumbnail + i + _mc]._width

 

Thanks ahead, T

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


[Flashcoders] Using replace function to replace all occurences not just one?

2009-03-26 Thread TS
I want to replace all occurrences of the  with [LT] not just one

var removed:String = hell/HELLO;

var pattern:RegExp = //; 
removed = removed.replace(pattern, [LT]);

Can someone point me in the right direction?

Thanks, T

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


[Flashcoders] RE: Using replace function to replace all occurences not just one?

2009-03-26 Thread TS
Nevermind

Apparently there are flags like adding the g for global. :) Thanks

var pattern:RegExp = //g;

-Original Message-
From: TS [mailto:sunnrun...@gmail.com] 
Sent: Thursday, March 26, 2009 3:33 PM
To: 'Flash Coders List'
Subject: Using replace function to replace all occurences not just one?

I want to replace all occurrences of the  with [LT] not just one

var removed:String = hell/HELLO;

var pattern:RegExp = //; 
removed = removed.replace(pattern, [LT]);

Can someone point me in the right direction?

Thanks, T

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


[Flashcoders] Looking for a configurable Flash Live Chat Box With Rooms Optional

2009-03-17 Thread TS
Does anyone have a good link to something like this for reasonable price or
free?

Configurable meaning skinnable and sizeable?

Thank you everyone :)

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


RE: [Flashcoders] Looking for a configurable Flash Live Chat Box With Rooms Optional

2009-03-17 Thread TS
Yeah I did see this. It seems great except it has some quarks that are a
little unbearable.

Thanks for the info.

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike
Sent: Tuesday, March 17, 2009 5:33 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Looking for a configurable Flash Live Chat Box
With Rooms Optional

Hi,

I found this a few years ago which worked out of the box.
   
http://www.tufat.com/s_flash_chat_chatroom.htm
   
It's a bit cheeky tho' because the guy is packaging up some stuff 
with AMFPHP and not honouring the license properly...

Glen

TS wrote:
 Does anyone have a good link to something like this for reasonable price
or
 free?

 Configurable meaning skinnable and sizeable?

 Thank you everyone :)

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


   

-- 

Glen Pike
01326 218440
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] Looking for a configurable Flash Live Chat Box With Rooms Optional

2009-03-17 Thread TS
I guess another nice feature or feature instead of any other feature would
be just a shoutbox similar to facebook's instant messaging app. Where the
state gets saved from page to page. Anyone seen anything like this?




-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Taka Kojima
Sent: Tuesday, March 17, 2009 6:07 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Looking for a configurable Flash Live Chat Box
With Rooms Optional

I built a flash chat room client (using the Flash IDE) about 3 months
ago using Jabber (OpenFire) as the chat server and the XIFF API

http://www.igniterealtime.org/projects/xiff/

The only real issue I ran into was that the XIFF API uses native Flex
classes, so I had to figure out how to get those into a format I could
use in Flash.

In the end, I found a solution that enabled me to compile all of the
neccessary Flex classes in to an swc and use them as an RSL, worked
like a charm. I didn't have to modify any of the API source code, or
the code on the Flex classes either.

The XIFF API makes it easy, all in all I got it done in about 3 days.
Granted, it's not the most feature rich chat client, but basic
functionality is there.

http://gigafied.blogspot.com/2008/12/using-flex-classes-in-flash-cs3.html
(here's my post on getting Flex classes into the Flash IDE).

- Taka

On Tue, Mar 17, 2009 at 4:33 PM, Glen Pike postmas...@glenpike.co.uk
wrote:
 Hi,

   I found this a few years ago which worked out of the box.
     http://www.tufat.com/s_flash_chat_chatroom.htm
     It's a bit cheeky tho' because the guy is packaging up some stuff with
 AMFPHP and not honouring the license properly...

   Glen

 TS wrote:

 Does anyone have a good link to something like this for reasonable price
 or
 free?

 Configurable meaning skinnable and sizeable?

 Thank you everyone :)

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




 --

 Glen Pike
 01326 218440
 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] Tutorial for ASP.NET 2.0 using C# and AS3

2009-03-11 Thread TS
Hello, 

I can't seem to find a good tutorial using ASP.NET 2.0 using C# and AS3. I'm
trying to figure out how to POST vars to an .aspx page or rather I think my
Flash code is correct so I need the code to catch the vars in the .aspx
page. I'm totally familiar with PHP but, not the M$ way =8o)

Thanks for any help.
 

This is the code I've currently got for the flash side of things.


var someVar:String = my var;
var variables:URLVariables = new URLVariables();
variables.anotherVar = someVar;
var myURLRequest:URLRequest = new URLRequest();
myURLRequest.url = 'mydotnetfile.aspx';
myURLRequest.method = URLRequestMethod.POST;
myURLRequest.data = variables;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.BINARY;
addLoaderListeners(loader);
try 
{
loader.load(myURLRequest);
} 
catch (error:Error) 
{
trace('Unable to load the document.');
}

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


RE: [Flashcoders] Tutorial for ASP.NET 2.0 using C# and AS3

2009-03-11 Thread TS
Hello,

Here's my code for the asp.net part. I realize it would be similar to PHP
but, it's so hard to find code to do what I want. Anyway let's say with my
previous code I was posting a var name to an aspx page and I want that aspx
page to use that name to create a new blank text file with that name and
save it. I'm close but, don't have the save file code yet.

Here's how to capture code in .aspx using C#

%@ Page Language=C# ContentType=text/html ResponseEncoding=utf-8 %

% 

Request[myFlashVar]; // how to access the POST var
Response.Write(sent= + OK); // how to send a var back

%







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike
Sent: Wednesday, March 11, 2009 7:02 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Tutorial for ASP.NET 2.0 using C# and AS3

Try making the server side page use GET and POST, then debug your page 
in the browser with a normal query string to make sure that works first...

Then plug it into Flash - you can use LiveHTTPHeaders for get requests, 
or a debugging proxy for more serious stuff :)

Dave Watts wrote:
 I can't seem to find a good tutorial using ASP.NET 2.0 using C# and AS3.
I'm
 trying to figure out how to POST vars to an .aspx page or rather I think
my
 Flash code is correct so I need the code to catch the vars in the .aspx
 page. I'm totally familiar with PHP but, not the M$ way =8o)

 ...

 This is the code I've currently got for the flash side of things.
 

 Your Flash code looks fine, and in any case would be the same whether
 you're using PHP or ASP.NET or whatever. Why don't you post the
 ASP.NET code? Or are you saying you don't have that at all yet (rather
 than having it, but it doesn't work yet)?

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/

 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 ___
 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] Bag Builder Feedback Please

2008-05-15 Thread TS
I'm really new to interface design and was wondering if I could please get
some feedback on this and how I can make it better? ANY advice would be
appreciated and/or if you like it.

http://labs.worthwhileindustries.com/as2/bagBuilder/

Much Appreciation, T

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


RE: [Flashcoders] Bag Builder Feedback Please

2008-05-15 Thread TS
Thanks for the input. I'm really stumped on the design part.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Thursday, May 15, 2008 2:47 PM
To: Flash Coders List
Subject: RE: [Flashcoders] Bag Builder Feedback Please

Looks good, I like the interactivity.  From a usability perspective,
there is an issue you will definitely want to fix.  I would make
clicking on a color stick better than you currently do so that a new
color does not get changed on the bag when you roll out of the area.
Otherwise, to change a color and make it stick, you have to carefully
roll your cursor straight up or down to get out of the color selection
area.   instead, make rolling over change colors inside a smaller
version of the bag, and when you click a color, make it stick on the
final larger view of the bag, or something like that.  Or do away with
the rollovers alltogether and only make the colors change on the bag
when you click on a color, then it would stick and you wouldn't have the
rollover change conflicts.  I know you have some kind of click to make
it stick functionality already, but it's getting erased by the
rollovers. I tried making a bag all red or all yellow and found it
difficult becauase the colors kept changing due to the rollovers.

Also, the black font's face and weight are a little bland, especially
against the grey.  Grey is good, but overall it's a little blah.  Not
too bad though.  I would also dump the standard add to cart Flash
button in favor of a nicer looking custom one with an icon.

Jason Merrill 
Bank of America 
Global Technology  Operations LLD 
eTools  Multimedia 

Join the 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. 

 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of TS
Sent: Thursday, May 15, 2008 4:27 PM
To: 'Flash Coders List'
Subject: [Flashcoders] Bag Builder Feedback Please

I'm really new to interface design and was wondering if I 
could please get some feedback on this and how I can make it 
better? ANY advice would be appreciated and/or if you like it.

http://labs.worthwhileindustries.com/as2/bagBuilder/

Much Appreciation, T

___
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