Re: [Flashcoders] JPGEncoder and com folder

2009-09-27 Thread Bassam M
Mike I'm confuse can you tell me where to copy the folder, I don't know
where is com folder and the class I use Flash CS4



On Fri, Sep 25, 2009 at 7:49 AM, Mike Chambers mcham...@adobe.com wrote:

 You need to download the code from the as3corelib library:

 http://code.google.com/p/as3corelib/

 mike chambers

 m...@adobe.com


 On Sep 24, 2009, at 4:36 PM, Bassam M wrote:

  Hi guys anybody know where is the folder  com.adobe I'm confuse about the
 class I don't know wher it's and I want to use JPEGEncoder but I'm getting
 error 1172: Definition com.adobe.images:JPGEncoder could not be found.
 so I want to place it inside the exact folder
 any Idea
 ___
 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] JPGEncoder and com folder

2009-09-27 Thread Glen Pike

Hi,

   This is really a bit of a newbie question, so if you have any more 
really basic ones like this, I would suggest trying the other list - 
http://chattyfig.figleaf.com/mailman/options/flashnewbie/ - but to give 
you a bit of a pointer...
  
   You can unzip the as3corelib files anywhere you like.  If you unzip 
in the same location as your project / FLA file, then you should see a 
folder called com in there - Flash will compile your movie okay because 
the classpath automatically includes the folder the FLA is in.


   If you put them somewhere else, you need to tell Flash where to look 
when compiling - add to your classpath.  Search for this in the Flash 
help because there are 2 places you can set it (for each fla file and 
globally)


   HTH

   Glen

Bassam M wrote:

Mike I'm confuse can you tell me where to copy the folder, I don't know
where is com folder and the class I use Flash CS4



On Fri, Sep 25, 2009 at 7:49 AM, Mike Chambers mcham...@adobe.com wrote:

  

You need to download the code from the as3corelib library:

http://code.google.com/p/as3corelib/

mike chambers

m...@adobe.com


On Sep 24, 2009, at 4:36 PM, Bassam M wrote:

 Hi guys anybody know where is the folder  com.adobe I'm confuse about the


class I don't know wher it's and I want to use JPEGEncoder but I'm getting
error 1172: Definition com.adobe.images:JPGEncoder could not be found.
so I want to place it inside the exact folder
any Idea
___
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

  


--

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


Re: [Flashcoders] Best way to detect key KEY_DOWN on MovieClip

2009-09-27 Thread Glen Pike

Hi,

You should be able to do this with something like below. You can add 
your code on the timeline, or inside a class, it's up to you. You will 
need to make sure that the thing the code is inside has been added to 
the stage - you listen for keyboard events on the stage, not the 
movieclip, so you may have to implement some code to check what is in 
focus, or otherwise...


HTH

Glen

//Import your keyboard libraries.
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;

//when your movieclip or it's parent are added to stage, then use this 
to add a keyboard listener to the overall stage (not the individual 
movieclip!)

stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp);

//Handle the down event (you can ignore this if you just want the 
pressrelease of a key)

function onKeyDown(event:KeyboardEvent):void
{
if(event.keyCode == Keyboard.DELETE)
{
trace(Delete key is down);
}

}
//handle the key up event...
function onKeyUp(event:KeyboardEvent):void {
if(event.keyCode == Keyboard.DELETE)
{
trace(Delete key is up);
}
}

ktt wrote:

Hello,

I would like to add listener to movieclip, listenining for DELETE. What is the 
best way to do that? In Actionscript 3 it gets complicated.

Thank you in advance,
Ktt


  
___

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


Re: [Flashcoders] Flash Cache in IE FF

2009-09-27 Thread Charles Parcell
You can append a query string to any URL and this forces a reload of the
data from the CLIENT.

For example, as someone has already pointed out.

Main.swf?nocache=+(new Date()).getTime()

You can also do this to your data file.

myData.xml?nocache=+(new Date()).getTime()


As you might have noticed, I was specific about this working to force
reloading on the client. It has been my experience that this is not a 100%
solution. There are some instances where the server will cache the data and
query strings do not force the reloading of data. The server cache would
eventually update after a few hours though.

To be honest I do not know the solution to this part of the puzzle. I put
that issue on the laps of the server administrator. I know that it took his
several patches to fix the issue for users off domain. I do recall that
people on the same domain were still getting caching issues. This was
finally chalked up to a FOL (fact of life).

To provide full disclosure, this was a fairly complex network and domain
config. as it was for a major financial institution. So, the problem might
have been self induced and thus unique to the company.

Charles P.


On Fri, Sep 25, 2009 at 11:52 AM, Muzak p.ginnebe...@telenet.be wrote:

 Depending on your browser settings, it's both.
 But in general you only need to worry about the data caching.
 So appending a random number to the text file url should suffice.

 - Original Message - From: Don Schnell - TFE
 dschn...@toolsforeducation.com
 To: n...@joeflash.ca
 Cc: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Friday, September 25, 2009 3:35 PM
 Subject: Re: [Flashcoders] Flash Cache in IE  FF


  Chris/Joe, thanks a bunch, but here is my next question (just curious)...
 Is it the SWF which is not getting reloaded every time the page is viewed
 and thus my data is not getting reloaded or is it my data file that is
 cached and therefore the browser just keeps reloading the same old data
 file, or is it both?
 One other item I notice is that I entered the url for the actual text file
 i was attempting to load and when I previewed that file it also contained
 old content and did not update until I performed a CTRL F5. Even attempting
 to clear the browser cache didn't seem to help.

 *Don


 ___
 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