RE: [Flashcoders] swf and xml caching?

2009-10-30 Thread David Hunter

thanks Carl,
what issues does it fix for IE, and would it also prevent the images being 
cached?
 Date: Thu, 29 Oct 2009 10:22:58 -0700
 Subject: Re: [Flashcoders] swf and xml caching?
 From: carlwelchdes...@gmail.com
 To: flashcoders@chattyfig.figleaf.com
 
 Matt's cachebuster works, but I also add this to the header of your html
 file (fixes IE related issues):
 
 META HTTP-EQUIV=Cache-Control CONTENT=no-cache
 META HTTP-EQUIV=expires CONTENT=0
 
 --Carl.
 
 On Thu, Oct 29, 2009 at 5:23 AM, David Hunter davehunte...@hotmail.comwrote:
 
 
  brilliant thanks for that, i'll give it a go. david
 
   From: mattsp...@gmail.com
   Date: Thu, 29 Oct 2009 07:44:39 -0400
   Subject: Re: [Flashcoders] swf and xml caching?
   To: flashcoders@chattyfig.figleaf.com
  
   The problem is xml caching, which can be fixed with the cachebuster
   trick. Where you have the path for the XML, use:
  
   'http://www.sitename.com/info.xml?cachebuster='+newhttp://www.sitename.com/info.xml?cachebuster=%27+newDate().getTime();
  
   Because it will generate a unique date and time every single time, it
   will force a fresh load of the xml file rather than grabbing the
   cached version.
  
   google as3 xml cachebuster for more info, there might be other
   versions of this trick as well.
  
   .m
  
   On Thu, Oct 29, 2009 at 7:39 AM, David Hunter davehunte...@hotmail.com
  wrote:
   
hi,
a while ago i did a portfolio site for a photographer which loads lots
  of images using an xml file. everything works fine. when you return to the
  site it loads more quickly as do the images, i guess because the browser has
  cached them. but sometimes after the site has been updated (ie. photos have
  been added to the portfolio and put in the xml file) it doesn't recognise
  that new content is there and loads the same old photos. only after clearing
  cache or private data and then returning to the site does it load the new
  images. obviously this is far from ideal.
i'm not sure if its because the swf gets cached or the xml gets cached
  or both.
i've just seen a note on the adobe site about using Expires header in
  an html page or PRAGMA header to prevent the contents being cached but it
  would be great to not cache the swf and xml which are very small files but
  cache the images so the site runs quicker.
thanks in advance for any help,
david
_
New Windows 7: Simplify what you do everyday. Find the right PC for
  you.
   
  http://www.microsoft.com/uk/windows/buy/___
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
 
  _
  Chat to your friends for free on selected mobiles
 
  http://clk.atdmt.com/UKM/go/174426567/direct/01/___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
 -- 
 Carl Welch
 http://www.carlwelch.com
 805.403.4819
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
New Windows 7: Find the right PC for you. Learn more.
http://www.microsoft.com/uk/windows/buy/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Recommended method for copying CDROM app to application folder on Mac

2009-10-30 Thread Ian Thomas
Paul,

The 'traditional' Mac way of doing this is to make the user drag the
files into their Application folder for a simple, self-contained app.

(Assuming you're using a projector) ideally, your additional four .swf
files should be bundled inside your .app folder i.e. all your user
sees when he opens the disk is the MyProjector.app (put them inside
MyProjector.app/Content/Resources). If you can't do this, create a
folder to contain all your app files, call it MyProjector, and replace
my references to the .app file in the following text...

Then the standard way to do things is:
- Put MyProjector.app at the root of the CD-ROM
- Put a _shortcut_ link to your Applications folder at the root of the
CD-ROM (this'll work no matter whose machine the disk opens on)
- Put a custom background on the CD-ROM folder with instructions like
'drag *this* (arrow to MyProjector.app) to *this* (arrow to
Applications link) to install'. And position the icons appropriately.

Hope that's helpful.

Ian


On Fri, Oct 30, 2009 at 12:34 PM, Paul Steven
paul_ste...@btinternet.com wrote:
 I am creating a cross platform CDROM using Flash CS3 and Toast 10. My client
 would like the app to be copied to the users hard drive rather than the user
 just playing it directly off the CDROM. I have therefore created an
 installer for the PC side of things using Inno installer. There does not
 appear to be any free or reasonably priced Mac installer maker software so I
 am seeking advice on the alternatives.

 My app contains a main application file plus 4 swf files (one for each of
 the 4 games) and a readme file.

 Any advice appreciated on what the best way to do this is. I am not very Mac
 savvy.

 Thanks

 Paul

 ___
 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] Colorizing Vector Drawn Image

2009-10-30 Thread Dave Dev
What's a quick way to colorize an image drawn with vector shapes in various
shades of gray. I have a character with a t-shirt and I want to be able to
change the color of the t-shirt using code at runtime. The t-shirt was drawn
in illustrator and uses various shades of gray to depict the details.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Colorizing Vector Drawn Image

2009-10-30 Thread Ian Thomas
If you just want to change the colour of the entire T-shirt, take a
look at the class:

flash.geom.ColorTransform

(accessed via displayObject.transform.colorTransform)

or look at doing it via a filter:

flash.filters.ColorMatrixFilter

If you want to colour the individual segments of the shirt separately,
you need to split the image apart into different clips/layers first,
then use one of the two method above.

HTH,
   Ian

On Fri, Oct 30, 2009 at 1:01 PM, Dave Dev davedev...@gmail.com wrote:
 What's a quick way to colorize an image drawn with vector shapes in various
 shades of gray. I have a character with a t-shirt and I want to be able to
 change the color of the t-shirt using code at runtime. The t-shirt was drawn
 in illustrator and uses various shades of gray to depict the details.
 ___
 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] Colorizing Vector Drawn Image

2009-10-30 Thread Henrik Andersson

Ian Thomas wrote:

If you want to colour the individual segments of the shirt separately,
you need to split the image apart into different clips/layers first,
then use one of the two method above.


Do note that layers are not separately controllable, you really need 
separate movieclips for that.

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


Re: [Flashcoders] Recommended method for copying CDROM app to application folder on Mac

2009-10-30 Thread Karl DeSaulniers
You could create a custom DMG file using Disk Utility. That is free  
with the os.

JAT

Karl

Sent from losPhone

On Oct 30, 2009, at 7:34 AM, Paul Steven  
paul_ste...@btinternet.com wrote:


I am creating a cross platform CDROM using Flash CS3 and Toast 10.  
My client
would like the app to be copied to the users hard drive rather than  
the user

just playing it directly off the CDROM. I have therefore created an
installer for the PC side of things using Inno installer. There does  
not
appear to be any free or reasonably priced Mac installer maker  
software so I

am seeking advice on the alternatives.

My app contains a main application file plus 4 swf files (one for  
each of

the 4 games) and a readme file.

Any advice appreciated on what the best way to do this is. I am not  
very Mac

savvy.

Thanks

Paul

___
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] How many weeks remaining from a given fixed date?

2009-10-30 Thread ACE Flash
Hi there,

I was trying to deal with the script in my application, it should display
how many weeks left...

Say: for instance, I set 1st May 2010 in my application and it should
compare the local time.

The following code seems doesn't work correctly, am I missing something?
would you mind to have a look?

Thank you

--

oneDay = 1000*60*60*24;
oneWeek = oneDay * 7;

localDate = new Date();
targetDate = new Date ( 2010 , 5 , 1 );


date1Ms=targetDate.getTime();
date2Ms=localDate.getTime();

differenceMs = date1Ms - date2Ms;

weeks = ( differenceMs/oneWeek );


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


RE: [Flashcoders] How many weeks remaining from a given fixed date?

2009-10-30 Thread Keith Reinfeld
May = 4 not 5. January = 0, February = 1, etc.

Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of ACE Flash
Sent: Friday, October 30, 2009 9:01 AM
To: Flash Coders List
Subject: [Flashcoders] How many weeks remaining from a given fixed date?

Hi there,

I was trying to deal with the script in my application, it should display
how many weeks left...

Say: for instance, I set 1st May 2010 in my application and it should
compare the local time.

The following code seems doesn't work correctly, am I missing something?
would you mind to have a look?

Thank you

--

oneDay = 1000*60*60*24;
oneWeek = oneDay * 7;

localDate = new Date();
targetDate = new Date ( 2010 , 5 , 1 );


date1Ms=targetDate.getTime();
date2Ms=localDate.getTime();

differenceMs = date1Ms - date2Ms;

weeks = ( differenceMs/oneWeek );


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.423 / Virus Database: 270.14.39/2468 - Release Date: 10/29/09
19:49:00

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


RE: [Flashcoders] Recommended method for copying CDROM app to application folder on Mac

2009-10-30 Thread Paul Steven
Thanks Ian

I am creating the projector using MDM Zinc and I cannot see a way to include
the files inside the .app folder. 

Anyway I am trying to do it by creating a folder to contain all my files
including the .app file.

I cannot see any way of arranging the icons to appear in specific positions
though I  have found an option to use a background image.

Paul

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ian Thomas
Sent: 30 October 2009 12:50
To: Flash Coders List
Subject: Re: [Flashcoders] Recommended method for copying CDROM app to
application folder on Mac

Paul,

The 'traditional' Mac way of doing this is to make the user drag the
files into their Application folder for a simple, self-contained app.

(Assuming you're using a projector) ideally, your additional four .swf
files should be bundled inside your .app folder i.e. all your user
sees when he opens the disk is the MyProjector.app (put them inside
MyProjector.app/Content/Resources). If you can't do this, create a
folder to contain all your app files, call it MyProjector, and replace
my references to the .app file in the following text...

Then the standard way to do things is:
- Put MyProjector.app at the root of the CD-ROM
- Put a _shortcut_ link to your Applications folder at the root of the
CD-ROM (this'll work no matter whose machine the disk opens on)
- Put a custom background on the CD-ROM folder with instructions like
'drag *this* (arrow to MyProjector.app) to *this* (arrow to
Applications link) to install'. And position the icons appropriately.

Hope that's helpful.

Ian


On Fri, Oct 30, 2009 at 12:34 PM, Paul Steven
paul_ste...@btinternet.com wrote:
 I am creating a cross platform CDROM using Flash CS3 and Toast 10. My
client
 would like the app to be copied to the users hard drive rather than the
user
 just playing it directly off the CDROM. I have therefore created an
 installer for the PC side of things using Inno installer. There does not
 appear to be any free or reasonably priced Mac installer maker software so
I
 am seeking advice on the alternatives.

 My app contains a main application file plus 4 swf files (one for each of
 the 4 games) and a readme file.

 Any advice appreciated on what the best way to do this is. I am not very
Mac
 savvy.

 Thanks

 Paul

 ___
 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] Please help me test a site

2009-10-30 Thread Valentin Simonov
Hello guys.

Please help me test my newest project at http://va.lent.in
It is an experimental portfolio site.
A bit heavy and CPU intensive.
I'd like to hear what you guys think and if you get any performance issues
or bugs.

Thank you.
Valentin.


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


[Flashcoders] so they confirmed microphone access in FP 10.1 (not just air) and I didn't know about it?

2009-10-30 Thread Anthony Pace
I know this article has been out for a while; yet, I don't read the 
devnet articles all that often, so I am really happy that it has finally 
been confirmed to be in the Flash Player.

*
*According to* Adobe :

*New requests started coming in pretty quickly with great ideas for how 
the microphone data could be used to make entertainment, communication, 
and productivity applications. In Flash Player 10.1, you will now have 
access to the same sort of data that you get from MP3 files today---but 
coming from the microphone. For right now, this new API will be 
available on desktop computers only. *
*(Justin Everett-Church, 
http://www.adobe.com/devnet/logged_in/jchurch_flashplayer10.1.html?devcon=f4 
)


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


Re: [Flashcoders] re: alpha for dynamic text without embedding font

2009-10-30 Thread Kevin McFarland
Ah, didn't realize this! (I'm still using CS3). Thanks for clarifying,
Kenneth.

I did say this before, but you can do this in Flash 10 - you do not
need to embed fonts to apply alpha values to TextFields.
--
Kenneth Kawamoto
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders