Re: [Flashcoders] how do i say string + anything?

2009-09-24 Thread strk
On Wed, Sep 23, 2009 at 05:36:20PM -0700, Steven Sacks wrote:
 var compareBranch:String = index/nav/home/whatever/else;
 
 if (compareBranch.indexOf(event.validBranch)  -1)

Would fail if the substring is found farther than the beginning.
Should be checked for being == 0 eventually.

--strk;


 Free GIS  Flash consultant/developer  ()  ASCII Ribbon Campaign
 http://foo.keybit.net/~strk/services.html  /\  Keep it simple! 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Searching all ActionScript in an FLA

2009-09-24 Thread Geografiek

Hi list,
I have a .fla with symbols in the library and a docClass.as going  
with it.

When I publish, I get the following waring message:
WARNING: Actions on button or MovieClip instances are not supported  
in ActionScript 3.0. All scripts on object instances will be ignored.


But I can't find any. Not with Edit - Find and Replace. And also the  
tree in the actions panel contains just 1 frame with one empty line 
(I'm absolutely sure, also no invisible characters).

What can I do to get rid of the annoying warning?
Thanks,
Willem van den Goorbergh

On 17-sep-2009, at 13:32, Glen Pike wrote:


F9 brings up the Actionscript editor for an open FLA file.

You can toggle the toolbox screen  (left of  2 column view) by  
clicking the rightmost icon in the icon bar of the Actions tab.


Glen

Karl DeSaulniers wrote:

If you need a screen shot I can send you one off list.

Best,

Karl


On Sep 17, 2009, at 6:14 AM, Karl DeSaulniers wrote:


You  can.
Try using find and replace, just make sure your not selecting  
anything. No frames, no MCs.
Click off stage once just to make sure before you use find and  
replace. It should search everything.


You can also find actions for everything in your FLA by looking  
at the window on the left of your actionscript pane (where you  
type your AS).
There are usually two windows just to the left. One on top with  
pre-written stuff and then a tree of all the frames and symbols  
that have AS on them.
If you select one it will take you to that spot in your AS pane  
so you can edit it. the AS you select will move to the top of the  
tree and be called Current Selection.


EG:  (a frame icon) Layer 1 : Frame 1

you may have to open these two windows up. they are not by  
default opened up (I think) but if you do, just look at the left  
edge of your AS pane.
on the edge in the middle of it, there will be a small box with a  
triangle in it. click it and you'll see what I mean,
then look at the bottom of that windows edge for another box with  
a triangle pointing up. this is the window you want.


HTH,

Karl


On Sep 17, 2009, at 5:53 AM, Arka Roy wrote:


I have FLA files from a client with numerous MovieClips and buttons
containing ActionScript all over the place.  I am not used to  
this, I only
started using Flash with AS3 and have always used a Document  
Class and

placed my ActionScript in external .as files.
I am trying to search through the ActionScript to find some  
text.  Is their
any way (tool etc.) to search through all ActionScript in a  
FLA?   Why
doesn't Adobe put in such a search function, it sounds so basic  
to me.  Or

am I not understanding something about Flash usage?

Thanks.
___
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


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





=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




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


Re: [Flashcoders] how do i say string + anything?

2009-09-24 Thread Nicolas Cacace
You have to cast the variable as a String before the concatination or the
two values might be incompatable
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FOTB

2009-09-24 Thread matt
Hey, did anyone attend/pay attention to Flash on the Beach?
Seems like some great content this year, was wondering what the list
thought.
Some cool stuff like Joa Ebert's Apparat  Andre Michelle's
sound/PixelBender stuff, but since this list generally runs toward the less
esoteric aspects of AS3, I was wondering if any content grabbed ya.

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


Re: [Flashcoders] FOTB

2009-09-24 Thread Mauro Martins
I liked the new path that Flash IDE is taking. More interaction between
coders and designers and better workflow between Flash Builder and Flash
IDE.

Code completion is nice!

2009/9/24 matt m...@moonbootmedia.com

 Hey, did anyone attend/pay attention to Flash on the Beach?
 Seems like some great content this year, was wondering what the list
 thought.
 Some cool stuff like Joa Ebert's Apparat  Andre Michelle's
 sound/PixelBender stuff, but since this list generally runs toward the less
 esoteric aspects of AS3, I was wondering if any content grabbed ya.

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




-- 
Cumprimentos, Mauro Martins
-
www.imauro.com || www.imauro.com/blog/
Web Designer || Flash  Flex Developer

Twitter: @Mauredo || LinkedIn: www.linkedin/in/mauromartins
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FOTB

2009-09-24 Thread Iestyn Lloyd
On Thu, Sep 24, 2009 at 3:51 PM, matt m...@moonbootmedia.com wrote:
 Hey, did anyone attend/pay attention to Flash on the Beach?
 Seems like some great content this year, was wondering what the list
 thought.
 Some cool stuff like Joa Ebert's Apparat  Andre Michelle's
 sound/PixelBender stuff, but since this list generally runs toward the less
 esoteric aspects of AS3, I was wondering if any content grabbed ya.

Yup, I went, as I live in Brighton. IMO, the best were @Joa,
@unitzeroone, @quasimondo, and @pburnett. (Forgive the use of Twitter
handles)

The elevator pitch was also great - 20 newbies giving 3 min talks.

Of course, the parties and networking are also fantastic :)

If you're involved in Flash in any capacity, and you live in Europe,
it's essential you go!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] FOTB

2009-09-24 Thread David Hunter

Really wanted to go but left it late and missed out on tickets. Were any of the 
talks filmed and will they be posted online to watch?
Cheers,
Dave
 Date: Thu, 24 Sep 2009 07:51:37 -0700
 From: m...@moonbootmedia.com
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] FOTB
 
 Hey, did anyone attend/pay attention to Flash on the Beach?
 Seems like some great content this year, was wondering what the list
 thought.
 Some cool stuff like Joa Ebert's Apparat  Andre Michelle's
 sound/PixelBender stuff, but since this list generally runs toward the less
 esoteric aspects of AS3, I was wondering if any content grabbed ya.
 
 --Matt
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] RE: RE: swf behaving differently in different domain and other issues loading swf (Isaac Alves) (Keith Reinfeld)

2009-09-24 Thread Isaac Alves
Keith,

I´m sorry but the only reply I-ve found from you here (at least on
this topic) was this one where you talked about checking the xml file,
and I-ve only received it now, actually 45 minutes ago in my gmail
inbox

That aside I try to answer all the replies, but since I-ve been doing
so much work I believe some I don´t have the time or forget to answer
and there are maybe some that I don´t even notice ...

Anyway I appreciate your help and I-m sorry for that!
Isaac

ps: Sometimes I get kind of lost on this list, and I believe I haven´t
been using it correctly actually, for example, I have a doubt on how
to reply a message and include the original message in a way that I
don´t need to copy and paste the message, thus have the replied
message with the characters  in front of the lines and all that...

ps2: I solved this swf issue (you can see the message 9 on the issue n 25)

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


[Flashcoders] Invitation to connect on LinkedIn

2009-09-24 Thread Pedro Kostelec
LinkedIn


Pedro Kostelec souhaite se connecter à vous sur LinkedIn :
--

Marc,

I'd like to add you to my professional network on LinkedIn.

- Pedro

Accepter l'invitation de Pedro Kostelec
http://www.linkedin.com/e/XEzBlT6odM8buZtuxRkFg2aRojmbrRCwd4dkwunRTj8bdkAw2T/blk/I1458718226_2/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cBYScz8UcjsUdjgNiiZLq34MpRtJp2YOdPsUczkVdjsLrCBxbOYWrSlI/EML_comm_afe/

Voir l'invitation de Pedro Kostelec
http://www.linkedin.com/e/XEzBlT6odM8buZtuxRkFg2aRojmbrRCwd4dkwunRTj8bdkAw2T/blk/I1458718226_2/39vdz8Oe34Te3kQckALqnpPbOYWrSlI/svi/

--

Quel est l' intérêt de faire partie du réseau de Pedro Kostelec ?

Vous avez une question ? Le réseau de Pedro Kostelec a probablement une 
réponse :
La rubrique Réponses de LinkedIn vous permet de vous informer auprès de Pedro 
Kostelec et de votre réseau. Obtenez l'information que vous recherchez auprès 
de professionnels expérimentés. 

http://www.linkedin.com/e/ash/inv19_ayn/

 
--
(c) 2009, LinkedIn Corporation

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


RE: [Flashcoders] FOTB

2009-09-24 Thread Merrill, Jason
 Were any of the talks filmed and will they be posted online to watch?

Check this out:

http://cs5.org/?p=238



Jason Merrill 

Bank of  America   Global Learning 
Learning  Performance Soluions

Monthly meetings on making the most of the Adobe Flash Platform -
presented by bank associates, Adobe engineers, and outside experts in
the borader multimedia community - join the Bank of America Flash
Platform Community  (note: this is for Bank of America employees only)

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


[Flashcoders] building custom libraries and components using FlashDevelop and Flex SDK

2009-09-24 Thread Isaac Alves
Hello,

I'm giving a try on FlashDevelop with Flex SDK, and a lot of things
are new to me . My study background is on Graphic Design, so I know
little about programming.

One of the reasons I´m migrating to FD it is that I would like to
build my own libraries (menus , slideshows, and other stuff) and gain
productivity as well as flexibility.

For example I´ve been creating animations and menus for a lot of
websites, and so far I´m doing it like this:

I use a class I´ve made called SimpleMenu (which I copy, paste and
make changes for each project)

in the FLA file I have a movieclip (which I also copy, paste and make
changes for each project) of a menu Item and sometimes also the
menuSubItem, if needed.

and in the document class of the main .fla file I write something like that:

public var menuWhatever:SimpleMenu = new SimpleMenu;

// params: path, xPos, yPos, widthOffset, heightOffset, nColumns
menuWhatever.createSimpleMenu(String(menuXMLPath), 5, 143, 16, 5, 8);

The point is:

I feel that copy and pasting code and MovieClips from other projects
is not quite the best practice regarding ActionScript.

I believe that I could do this kind of stuff in a more efficient and
organized way by building my own components (SWC files? ) and
associating them to classes, and so on, but I have many doubts and
feel kind of lost and a little overwhelmed.

I would like to get some advices and tips on how to build my own
libraries and components, taking as start point this way of getting
things done that I-ve briefly described...

That´s it, thank you in advance!
Isaac

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


Re: [Flashcoders] Invitation to connect on LinkedIn

2009-09-24 Thread Gregory Boland
Pedro,

The flashcoders list is not someone's email from some guy named Marc.  It is
a list of people who all subscribe and can send emails to help get questions
answered or help answer questions.

the list is not a real person so I'm not sure how much luck your gonna have
inviting it to be friends with you.



2009/9/24 Pedro Kostelec pedrok...@gmail.com

 LinkedIn
 

 Pedro Kostelec souhaite se connecter à vous sur LinkedIn :
 --

 Marc,

 I'd like to add you to my professional network on LinkedIn.

 - Pedro

 Accepter l'invitation de Pedro Kostelec

 http://www.linkedin.com/e/XEzBlT6odM8buZtuxRkFg2aRojmbrRCwd4dkwunRTj8bdkAw2T/blk/I1458718226_2/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cBYScz8UcjsUdjgNiiZLq34MpRtJp2YOdPsUczkVdjsLrCBxbOYWrSlI/EML_comm_afe/

 Voir l'invitation de Pedro Kostelec

 http://www.linkedin.com/e/XEzBlT6odM8buZtuxRkFg2aRojmbrRCwd4dkwunRTj8bdkAw2T/blk/I1458718226_2/39vdz8Oe34Te3kQckALqnpPbOYWrSlI/svi/

 --

 Quel est l' intérêt de faire partie du réseau de Pedro Kostelec ?

 Vous avez une question ? Le réseau de Pedro Kostelec a probablement une
 réponse :
 La rubrique Réponses de LinkedIn vous permet de vous informer auprès de
 Pedro Kostelec et de votre réseau. Obtenez l'information que vous recherchez
 auprès de professionnels expérimentés.

 http://www.linkedin.com/e/ash/inv19_ayn/


 --
 (c) 2009, LinkedIn Corporation

 ___
 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] Flash Cache in IE FF

2009-09-24 Thread Don Schnell - TFE

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


Re: [Flashcoders] Flash Cache in IE FF

2009-09-24 Thread William Chadwick
Not sure what you want, as there is no text in your message.

But if you want to know about how SharedObject's work, here you go.
Local SharedObjects (AKA 'Flash Cookies') are stored in the following path
in a directory with a random name:
C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash
Player\#SharedObjects

There are some really clear articles on them on Adobe's devnet.

William Chadwick

On Thu, Sep 24, 2009 at 5:06 PM, Don Schnell - TFE 
dschn...@toolsforeducation.com wrote:


 ___
 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] Best way to detect key KEY_DOWN on MovieClip

2009-09-24 Thread ktt
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


[Flashcoders] JPGEncoder and com folder

2009-09-24 Thread Bassam M
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


Re: [Flashcoders] audio pause/resume problem

2009-09-24 Thread Steven Sacks

http://www.stevensacks.net/2008/08/07/bug-with-sound-channel-position-and-mp3s-less-than-128kbps


On Sep 23, 2009, at 6:19 AM, Rodrigo Augusto Guerra wrote:


c'mom guys...no one knows?  i'm in a dead end here
i can't guarantee that everybody will have FP 10 to avoid this
:)

- Original Message - From: Rodrigo Augusto Guerra rodr...@alumni.org.br 


To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday, September 22, 2009 6:56 PM
Subject: [Flashcoders] audio pause/resume problem


hi coders!

I have a system that it's a dialog between 2 people (one the  
computer the other is the user) the computer start talking ( it's 1  
mp3 file loaded with all the computer speech) when it's the user  
turn I have an action to pause the mp3 (well it stores the current  
audio position and stops the audio) and then when he finish  
recording his speech it start playing from where it was. (passing  
the audio position to the audio object)




The problem is that when it resumes the mp3, it doesn't start from  
where it stopped, it goes forward. no logic at all
well it's working on FP version (WIN 10,0,2,54) but not in FP WIN  
9.0.124.0.


I really would like some light on this as I don't know where to look  
anymore and I don't want to believe that it's a FP9 problem.




I isolated and reproduced the error here:
(i putted the text so you can follow the jumps.)
http://www.alumni.org.br/tmp/rodrigo/som.html

any help will be appreciated.
thanks coders!



this is the code:

audioObj = new Sound();
audioObj.loadSound(http://www.alumni.org.br/elearning/cursos/LetsTravel/Audio/audio16.mp3 
, false);



//qdo carregar audio comeca e atulzia o status
audioObj.onLoad = function(success:Boolean) {

aaa.text = loaded
if (success) {
audioObj.start();

//nao carregou audio
} else {
aaa.text = not loaded
}

}


btstop.onRelease = function(){
_root.flag1=true
_global.soundPosition2 = Math.round(audioObj.position/1000);
audioObj.stop();
_root.aa.text = _global.soundPosition2
}

btplay.onRelease = function(){
if(_root.flag1){
audioObj.start(_global.soundPosition2);
_root.flag1=false;
_root.bb.text =  Math.round(audioObj.position/1000);
}else{
audioObj.start();
}

}
___
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] Flash Cache in IE FF

2009-09-24 Thread Don Schnell - TFE


Thanks William, I am not sure why there was no text in my original post 
but my issue is how to prevent data from being cached in IE  Firefox.
My SWFs load in data from a flat text file and I tried using the 
following No-Cache settings before the head but they don't seem to 
prevent this issue.


// prevent browser cache
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);



William Chadwick wrote:

Not sure what you want, as there is no text in your message.

But if you want to know about how SharedObject's work, here you go.
Local SharedObjects (AKA 'Flash Cookies') are stored in the following 
path in a directory with a random name:
C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash 
Player\#SharedObjects


There are some really clear articles on them on Adobe's devnet.

William Chadwick

On Thu, Sep 24, 2009 at 5:06 PM, Don Schnell - TFE 
dschn...@toolsforeducation.com 
mailto:dschn...@toolsforeducation.com wrote:



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
mailto: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] Flash Cache in IE FF

2009-09-24 Thread Chris Foster
Hi Don,

The conventional way to avoid loading cached content into Flash is to
call a unique URL for the content every time. One way to do this is to
append a random number or UTC timecode (in milliseconds) to your URL,
for example (AS3):

var l:Loader = new Loader();
var req:URLRequest = new URLRequest(your url here);
var vars:URLVariables = new URLVariables();
req.method = URLRequestMethod.POST;
vars.antiCache = Math.round(Math.random()*99);
req.data = vars;
l.load(req);

Hope that helps...
C:


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Don
Schnell - TFE
Sent: Friday, 25 September 2009 1:07 PM
To: William Chadwick
Cc: Flash Coders List
Subject: Re: [Flashcoders] Flash Cache in IE  FF


Thanks William, I am not sure why there was no text in my original post
but my issue is how to prevent data from being cached in IE  Firefox.
My SWFs load in data from a flat text file and I tried using the
following No-Cache settings before the head but they don't seem to
prevent this issue.

// prevent browser cache
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);



William Chadwick wrote:
 Not sure what you want, as there is no text in your message.

 But if you want to know about how SharedObject's work, here you go.
 Local SharedObjects (AKA 'Flash Cookies') are stored in the following 
 path in a directory with a random name:
 C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash 
 Player\#SharedObjects

 There are some really clear articles on them on Adobe's devnet.

 William Chadwick

 On Thu, Sep 24, 2009 at 5:06 PM, Don Schnell - TFE 
 dschn...@toolsforeducation.com 
 mailto:dschn...@toolsforeducation.com wrote:


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 mailto: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, 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


Re: [Flashcoders] Flash Cache in IE FF

2009-09-24 Thread Joseph Balderson
You cannot prevent a file from being cached in the browser; what most cache 
settings are designed to do is prevent session information and cookies from 
being cached. The best you can do is force the browser to grab the file from the 
server each and every time it is viewed, which acheives the desired effect.


To do that, all you need is to add the following js to your html file:

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

I wrote a tutorial on adding this to the flex html template:
http://www.communitymx.com/abstract.cfm?cid=32F44

This appends a unique number on the end of the file name, tricking the browser 
into thinking it's getting a new file every time, thus downloading the SWF from 
the server every time. You can use an equivalent of this technique in 
ActionScript for loading modules you don't want cached as well.


I would not recommend this technique for production, as it will spike your 
server load something terrible, but for testing it's essential.

___

Joseph Balderson, Flex  Flash Platform Developer :: http://joeflash.ca
Author, Professional Flex 3 :: http://tinyurl.com/proflex3book


Don Schnell - TFE wrote:


Thanks William, I am not sure why there was no text in my original post 
but my issue is how to prevent data from being cached in IE  Firefox.
My SWFs load in data from a flat text file and I tried using the 
following No-Cache settings before the head but they don't seem to 
prevent this issue.


// prevent browser cache
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);



William Chadwick wrote:

Not sure what you want, as there is no text in your message.

But if you want to know about how SharedObject's work, here you go.
Local SharedObjects (AKA 'Flash Cookies') are stored in the following 
path in a directory with a random name:
C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash 
Player\#SharedObjects


There are some really clear articles on them on Adobe's devnet.

William Chadwick

On Thu, Sep 24, 2009 at 5:06 PM, Don Schnell - TFE 
dschn...@toolsforeducation.com 
mailto:dschn...@toolsforeducation.com wrote:



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
mailto: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] Flash Cache in IE FF

2009-09-24 Thread Chris Foster
Sorry - formatting got screwed up there... one more try...

AS3 example of 'anticache' technique.
-

var l:Loader = new Loader();
var req:URLRequest = new URLRequest(your url here); 
var vars:URLVariables = new URLVariables(); 
req.method = URLRequestMethod.POST; 
vars.antiCache = Math.round(Math.random()*99); 
req.data = vars; 
l.load(req); 


Regards,
C:

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Don
Schnell - TFE
Sent: Friday, 25 September 2009 1:07 PM
To: William Chadwick
Cc: Flash Coders List
Subject: Re: [Flashcoders] Flash Cache in IE  FF


Thanks William, I am not sure why there was no text in my original post
but my issue is how to prevent data from being cached in IE  Firefox.
My SWFs load in data from a flat text file and I tried using the
following No-Cache settings before the head but they don't seem to
prevent this issue.

// prevent browser cache
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);



William Chadwick wrote:
 Not sure what you want, as there is no text in your message.

 But if you want to know about how SharedObject's work, here you go.
 Local SharedObjects (AKA 'Flash Cookies') are stored in the following 
 path in a directory with a random name:
 C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash 
 Player\#SharedObjects

 There are some really clear articles on them on Adobe's devnet.

 William Chadwick

 On Thu, Sep 24, 2009 at 5:06 PM, Don Schnell - TFE 
 dschn...@toolsforeducation.com 
 mailto:dschn...@toolsforeducation.com wrote:


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 mailto: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, 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


Re: [Flashcoders] Flash Cache in IE FF

2009-09-24 Thread Don Schnell - TFE
Thanks Chris, I forgot all about that technique (been away from this for 
a little bit)!


*Don *


Chris Foster wrote:

Sorry - formatting got screwed up there... one more try...

AS3 example of 'anticache' technique.
-

var l:Loader = new Loader();
var req:URLRequest = new URLRequest(your url here); 
var vars:URLVariables = new URLVariables(); 
req.method = URLRequestMethod.POST; 
vars.antiCache = Math.round(Math.random()*99); 
req.data = vars; 
l.load(req); 



Regards,
C:

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Don
Schnell - TFE
Sent: Friday, 25 September 2009 1:07 PM
To: William Chadwick
Cc: Flash Coders List
Subject: Re: [Flashcoders] Flash Cache in IE  FF


Thanks William, I am not sure why there was no text in my original post
but my issue is how to prevent data from being cached in IE  Firefox.
My SWFs load in data from a flat text file and I tried using the
following No-Cache settings before the head but they don't seem to
prevent this issue.

// prevent browser cache
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);



William Chadwick wrote:
  

Not sure what you want, as there is no text in your message.

But if you want to know about how SharedObject's work, here you go.
Local SharedObjects (AKA 'Flash Cookies') are stored in the following 
path in a directory with a random name:
C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash 
Player\#SharedObjects


There are some really clear articles on them on Adobe's devnet.

William Chadwick

On Thu, Sep 24, 2009 at 5:06 PM, Don Schnell - TFE 
dschn...@toolsforeducation.com 
mailto:dschn...@toolsforeducation.com wrote:



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
mailto: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, 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