[Flashcoders] IE7 Crashing on FileReference.download()

2007-06-07 Thread Joshua Buhler

For 99% of our users, they can download images just fine via
FileReference.download().

However, one user in particular is using IE7, Windows XP, and without
fail, anytime FileReference.download() is called, IE will crash.
Doesn't matter whether it's our site, or other sites that allow
downloads that we've directed her to to test.

Anybody see a similar problem, or have any ideas?

She's using FP 9.0.45

- Josh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] SourceSafe??? Recommendations needed.

2006-04-21 Thread Joshua Buhler
Our company tried using SourceSafe for a while, but gave up on it  
after it kept corrupting files, or locking them up and not allowing  
anyone to access them, without an admin's intervention.  Also, we  
couldn't find a decent Mac client for it either.


We switched to Subversion after that, and have been using it since.  
It's free, and is pretty easy to setup. We really haven't had any  
problems with it either, and the ones we have had were user related.  
I'd definitely recommend the SVN route.


- Josh


On Apr 21, 2006, at 8:32 AM, JesterXL wrote:


Subversion.
http://subversion.tigris.org/

A Windows client:
http://tortoisesvn.tigris.org/

You can install yourself on your own server, or hosted.  I use  
these guys:

http://avlux.net/subversion/host.php

You will not be able to do a compare for binary files beyond Is  
this an
exact match or not?.  That's it.  Since Word, Excel, FLA, ect. are  
binary,

there is no such thing.

However, ASCII files (text ones), like TXT, AS, MXML, HTML, CSS and  
the rest
WILL do comparisons.  You can track changes all types of files, and  
see who
checked what in.  Newer versions of Subversion also have the  
ability to lock
a file so you cannot check something in (Visual Source Safe had  
this by

default, but many people didn't like it).


- Original Message -
From: Loren R. Elks [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Friday, April 21, 2006 10:18 AM
Subject: [Flashcoders] SourceSafe??? Recommendations needed.


Hi:

We are slowing building our eLearning group in our company.  We are
finding that we really need a system like SourceSafe.

The question is, does anyone know if SourceSafe (or some other system
handles):

FLA, SWF files
BMP, GIF, PNG, JPG files
WAV files
DOC files
PDF files
FM files (Framemaker) files
PSD files
Corel files
We are looking for one system running on a server that would be  
able to
house all of these file types (maybe more) and provide versioning,  
check

in / check out, etc.

Also, it would be nice if the system could do comparisons. (Although
this may be asking for too much).  For example, it could compare 2  
docs

and tell what the differences are.  However, this is a nicety, NOT a
requirement.

I appreciate any advice.


Sincerely,

Loren Elks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Find Nearest Color?

2006-03-21 Thread Joshua Buhler

That's what I actually ended up doing, and it worked out pretty good:

private function getClosest (red1:Number, green1:Number,  
blue1:Number):Number {


var totalColors:Number = __palette.length;
var tempDistance:Number;
var closestColor:Number;

for (var i:Number = 0; i  totalColors; i++) {
// first, break up the color to check
var red2:Number = (__palette[i]  0xFF)  16;
var green2:Number = (__palette[i]  0x00FF00)  8;
var blue2:Number = __palette[i]  0xFF;

// now, get the distance from the source
			var tempD:Number = Math.sqrt ((Math.abs(red1 - red2) ^ 2) +  
(Math.abs(green1 - green2) ^ 2) + (Math.abs(blue1 - blue2) ^ 2));


if ((tempD = tempDistance) || tempDistance == 
undefined) {
tempDistance = tempD;
closestColor = __palette[i];
}
}

return closestColor;
}


- Josh


On Mar 16, 2006, at 7:59 PM, Ron Wheeler wrote:

If a color can be treated as a point in a 3-d cube 256 units on  
each side, you can use the formula in this reference

http://www.uwm.edu/~ericskey/TANOTES/Ageometry/node10.html
to calculate the distance between 2 colors.

I have not tried this but it would seem logical that this would work

Ron

elibol wrote:

K, here is some better math for getRGB, performance will probably be
important:

return [c16, c8~0xFF00, c~0xF00];

You can also try using the ColorTransform or Color class to get  
the rgb

values, except they might be slower than getting the raw math right.

M.

On 3/15/06, Josh Buhler [EMAIL PROTECTED] wrote:


Thanks - I'll give it a shot and see how it goes.


- Josh

On Mar 15, 2006, at 3:10 PM, elibol wrote:



I tried comparing the hex values directly, but there were
inaccuracies,
maybe the same ones you've been having. I think since the value  
of a

particular color precedes with a 0 even when it's below 17(0F), the
preceding 0 causes a shifting in the comparison. It would, for
example,
cause 0x00 to seem farther to 0x123456 than 0x00FF00, where
visually you
can see clearly that black is closer to 0x00.

btw in my example, var a = 0x12345 where it should be 0x123456.

The numbers hold to be accurate after correcting this typo.

On 3/15/06, Josh Buhler [EMAIL PROTECTED] wrote:

I'm working on a project that requires that I take an uploaded  
image,

and convert it to use a limited palette of colors - around 5-10
colors.

I've got the custom palette I have to work with stored in an  
array,
and for each color in my image, I've got it finding the color  
in the

array it's closest to numerically, but the results aren't exactly
what I'm looking for.

Does anybody know of any formulas available for comparing multiple
colors and finding the ones that are the closest matches? I've  
been

searching Google for a while, with no luck. Any good resources on
color formulas  such would be appreciated.

- Josh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___

Re: [Flashcoders] Loading several images with one progressbar?

2006-03-14 Thread Joshua Buhler

Here's a couple of ideas:

If the image urls are fetched from an XML file, and the xml is  
generated dynamically, have the server write the filesize of the  
images into the xml. Or, if the images are added to the xml manually,  
add the filesize of each image to the XML.


Or, you could just display a number of total images loaded: Loading  
3 of 15 for example, instead of the total bytes loaded.


- Josh


On Mar 12, 2006, at 2:06 AM, Sascha Balkau wrote:


Hi Adrian,

thanks for the idea but this approach will not work in my case  
because the images are loaded sequencially. If one image is  
finished loading, my class starts loading the next and so on, one  
after one. And the amount of images varies (the image filenames are  
fetched from a XML file).
I'm now defining a segmentWidth by dividing the full progressbar  
width by the amount of images that are going to be loaded. That  
gives me the 100% for one image on the whol bar. I just haven't  
figured out yet how to make it work so that the bar doesn't start  
from 0 at every image. Any other idea?


Sascha





- Original Message - From: Adrian Park [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, March 12, 2006 3:24 AM
Subject: Re: [Flashcoders] Loading several images with one  
progressbar?



Say you have 3 images loading, use something like this:

var bytesLoaded:Number = 0;
var bytesTotal:Number = 0;

bytesLoaded += image1.getBytesLoaded();
bytesTotal += image1.getBytesTotal();
bytesLoaded += image2.getBytesLoaded();
bytesTotal += image2.getBytesTotal();
bytesLoaded += image3.getBytesLoaded();
bytesTotal += image3.getBytesTotal();

var percentageLoaded:Number = (bytesLoaded/bytesTotal) * 100;

There may be ways to optimise this code depending on your  
circumstances (e.g.
just calculate bytesTotal once and reuse it) but this shows the  
basic idea.


Adrian P.


On 3/11/06, Sascha Balkau [EMAIL PROTECTED] wrote:


Hi,
this is probably an old hat but I can't get it right. I want to  
display

the
load progress of several images with one progress bar. How do I  
calculate

the percentage of the bar?

Thanks alot,
Sascha

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash 8.5 on OSX

2005-11-01 Thread Joshua Buhler
Actually, I've had this problem in 10.4.2. The few things I published  
for 8.5 worked, but most of the examples I've found online don't work  
at all. Stuff like the PerlinForce from andre-michelle.com for example.


- Josh


On Nov 1, 2005, at 6:38 PM, Simon Lord wrote:

Just updated to OSX 10.4.3 and nothing published to Flash 8.5  
appears in the browser (yes, I installed the 8.5 plugin).


Can't revert the OS install and so can't determine if it's the  
upgrade that prevents the plugin from displaying 8.5 content.   
Everything published for 8 works fine, although some swf's like the  
Planetarium on neave.com brings Safari down like a rock.  But once  
I reverted back to 8.0 the Planetarium worked fine.

___
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