Re: [Flashcoders] Found an AS3 RegExp Bug.

2007-06-09 Thread Isaac Rivera
Thank you benny. I can see how this works, but why does my pattern(/[^ 
\\]'/) does not?



Isaac Rivera
Technology Director :: Experience Design Group
America Online :: New York City
p 212 652-6308 :: c 347 342-2195


On Jun 9, 2007, at 1:30 PM, Benny wrote:


var code:String = "alert('foo');";
code = code.replace(/'/g,"\\'");
trace(code);


___
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] Found an AS3 RegExp Bug.

2007-06-09 Thread Isaac Rivera

Let me correct a paste mistake there:

THE FOLLOWING CODE:

var pattern:RegExp = /[^\\]'/;
var code:String = "alert('foo');";
code = code.replace(pattern, "\\'");
code = code.replace(pattern, "\\'");

traces: "alert\'fo\');"

Should it not trace: "alert(\'foo\');" instead?

Isaac Rivera
Technology Director :: Experience Design Group
America Online :: New York City
p 212 652-6308 :: c 347 342-2195


On Jun 9, 2007, at 1:04 PM, Isaac Rivera wrote:


The following code:

var pattern:RegExp = /[^\\]'/;
var code:String = "alert(\'foo\');";
code = code.replace(pattern, "\\'");
code = code.replace(pattern, "\\'");

traces "alert\'fo\');" instead of "alert(\'foo\');"

Isaac Rivera
Technology Director :: Experience Design Group
America Online :: New York City
p 212 652-6308 :: c 347 342-2195


___
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] Found an AS3 RegExp Bug.

2007-06-09 Thread Isaac Rivera

The following code:

var pattern:RegExp = /[^\\]'/;
var code:String = "alert(\'foo\');";
code = code.replace(pattern, "\\'");
code = code.replace(pattern, "\\'");

traces "alert\'fo\');" instead of "alert(\'foo\');"

Isaac Rivera
Technology Director :: Experience Design Group
America Online :: New York City
p 212 652-6308 :: c 347 342-2195


___
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] Is AS2Unit a joke?

2006-04-21 Thread Isaac Rivera

never mind...

adding a methodName:String arg to the constructor solved the issues.

Isaac

On Apr 21, 2006, at 1:19 PM, Isaac Rivera wrote:

I have not been able to get AS2Unit to report anything useful other  
than the number of tests. It always reports "OK" no matter how  
impossible or bogus my test is. It never finds anything wrong or  
fails.


Case in point are the simple Name class below and its companion  
tester (NameTester) class. Notice the last method in the tester  
(testTestFails) is designed to fail.


Drop a AS2Unit instance on the stage, add the following code to the  
first frame:


import NameTester;
var classes:Array = [NameTester];

and run...

I get:

...
Time: 0.001 seconds

OK (3 tests)

!!!

Now, perhaps I am not doing things right do to the fact that there  
is NO DOCUMENTATION for AS2Unit that I could find other than the  
article on FlashMagazine in which the methods to use for assertions  
are enumerated... without argument signatures!!!


Anyone know how to get this "suite" to work, is it reliable?

Isaac


Class to test:

class Name {
private var firstName:String;
private var lastName:String;
private var middleInitial:String;

	public function Name(firstName:String, middleInitial:String,  
lastName:String) {

this.firstName = firstName;
this.lastName = lastName;
if(middleInitial == null) middleInitial = "";
		if(middleInitial.length > 1) middleInitial =  
middleInitial.substring(0, 1);
		if(middleInitial.length == 1) this.middleInitial = middleInitial  
+ ".";

else this.middleInitial = "";
}

public function getFirstName():String {
return this.firstName;
}

public function getLastName():String {
return this.lastName;
}

public function getMiddleInitial():String {
return this.middleInitial;
}

public function hasMiddleInitial():Boolean {
return this.middleInitial.length == 2;
}

public function equals(other:Object):Boolean {
if(other == null) return false;
if(!(other instanceof Name)) return false;
var that:Name = Name(other);
if(this.getFullName() == that.getFullName()) return true;
return false;
}

public function getFullName():String {
		return this.firstName + ((this.middleInitial.length == 2) ? (" "  
+ this.middleInitial + " ") : " ");

}

public function toString():String {
return getFullName();
}
}

Tester Class:


import Name;
import as2unit.framework.TestCase

class NameTester extends TestCase {

private static var FIRSTNAME:String = "Isaac";
private static var MIDDLEINITIAL:String = "";
private static var LASTNAME:String = "Rivera";
	private static var CONTROLNAME:Name = new Name(FIRSTNAME,  
MIDDLEINITIAL, LASTNAME);


public function NameTester() {}

public function testGettersReturnCorrectValues():Void {
var testName:Name = new Name(FIRSTNAME, MIDDLEINITIAL, 
LASTNAME);

assertNotNull(testName);
assertNotNull(CONTROLNAME);

assertNotNull(testName.getFirstName());
assertNotNull(CONTROLNAME.getFirstName());
assertNotNull(testName.getMiddleInitial());
assertNotNull(CONTROLNAME.getMiddleInitial());
assertNotNull(testName.getLastName());
assertNotNull(CONTROLNAME.getLastName());

assertEquals(FIRSTNAME, testName.getFirstName());
assertEquals(MIDDLEINITIAL, testName.getMiddleInitial());
assertEquals(LASTNAME, testName.getLastName());

assertFalse(testName.hasMiddleInitial());
}

public function testEqualsWorksCorrectly():Void {
var testName:Name = new Name(FIRSTNAME, MIDDLEINITIAL, 
LASTNAME);

assertNotNull(testName);
assertNotNull(CONTROLNAME);

assertEquals(CONTROLNAME.getFirstName(), 
testName.getFirstName());
		assertEquals(CONTROLNAME.getMiddleInitial(),  
testName.getMiddleInitial());

assertEquals(CONTROLNAME.getLastName(), testName.getLastName());

assertTrue(testName.equals(CONTROLNAME));
}

public function testTestFails():Void {
var testName:Name = new Name(FIRSTNAME, MIDDLEINITIAL, 
LASTNAME);

assertNotNull(testName);

assertEquals("Carlos", testName.getFirstName());
assertEquals("Vi

[Flashcoders] Is AS2Unit a joke?

2006-04-21 Thread Isaac Rivera
I have not been able to get AS2Unit to report anything useful other  
than the number of tests. It always reports "OK" no matter how  
impossible or bogus my test is. It never finds anything wrong or fails.


Case in point are the simple Name class below and its companion  
tester (NameTester) class. Notice the last method in the tester  
(testTestFails) is designed to fail.


Drop a AS2Unit instance on the stage, add the following code to the  
first frame:


import NameTester;
var classes:Array = [NameTester];

and run...

I get:

...
Time: 0.001 seconds

OK (3 tests)

!!!

Now, perhaps I am not doing things right do to the fact that there is  
NO DOCUMENTATION for AS2Unit that I could find other than the article  
on FlashMagazine in which the methods to use for assertions are  
enumerated... without argument signatures!!!


Anyone know how to get this "suite" to work, is it reliable?

Isaac


Class to test:

class Name {
private var firstName:String;
private var lastName:String;
private var middleInitial:String;

	public function Name(firstName:String, middleInitial:String,  
lastName:String) {

this.firstName = firstName;
this.lastName = lastName;
if(middleInitial == null) middleInitial = "";
		if(middleInitial.length > 1) middleInitial = middleInitial.substring 
(0, 1);
		if(middleInitial.length == 1) this.middleInitial = middleInitial +  
".";

else this.middleInitial = "";
}

public function getFirstName():String {
return this.firstName;
}

public function getLastName():String {
return this.lastName;
}

public function getMiddleInitial():String {
return this.middleInitial;
}

public function hasMiddleInitial():Boolean {
return this.middleInitial.length == 2;
}

public function equals(other:Object):Boolean {
if(other == null) return false;
if(!(other instanceof Name)) return false;
var that:Name = Name(other);
if(this.getFullName() == that.getFullName()) return true;
return false;
}

public function getFullName():String {
		return this.firstName + ((this.middleInitial.length == 2) ? (" " +  
this.middleInitial + " ") : " ");

}

public function toString():String {
return getFullName();
}
}

Tester Class:


import Name;
import as2unit.framework.TestCase

class NameTester extends TestCase {

private static var FIRSTNAME:String = "Isaac";
private static var MIDDLEINITIAL:String = "";
private static var LASTNAME:String = "Rivera";
	private static var CONTROLNAME:Name = new Name(FIRSTNAME,  
MIDDLEINITIAL, LASTNAME);


public function NameTester() {}

public function testGettersReturnCorrectValues():Void {
var testName:Name = new Name(FIRSTNAME, MIDDLEINITIAL, 
LASTNAME);

assertNotNull(testName);
assertNotNull(CONTROLNAME);

assertNotNull(testName.getFirstName());
assertNotNull(CONTROLNAME.getFirstName());
assertNotNull(testName.getMiddleInitial());
assertNotNull(CONTROLNAME.getMiddleInitial());
assertNotNull(testName.getLastName());
assertNotNull(CONTROLNAME.getLastName());

assertEquals(FIRSTNAME, testName.getFirstName());
assertEquals(MIDDLEINITIAL, testName.getMiddleInitial());
assertEquals(LASTNAME, testName.getLastName());

assertFalse(testName.hasMiddleInitial());
}

public function testEqualsWorksCorrectly():Void {
var testName:Name = new Name(FIRSTNAME, MIDDLEINITIAL, 
LASTNAME);

assertNotNull(testName);
assertNotNull(CONTROLNAME);

assertEquals(CONTROLNAME.getFirstName(), 
testName.getFirstName());
		assertEquals(CONTROLNAME.getMiddleInitial(),  
testName.getMiddleInitial());

assertEquals(CONTROLNAME.getLastName(), testName.getLastName());

assertTrue(testName.equals(CONTROLNAME));
}

public function testTestFails():Void {
var testName:Name = new Name(FIRSTNAME, MIDDLEINITIAL, 
LASTNAME);

assertNotNull(testName);

assertEquals("Carlos", testName.getFirstName());
assertEquals("Vizcarondo", testName.getMiddleInitial());
assertEquals("M.", testName.getLastName());

assertTrue(testName.equals(new Object()));
}

}

___
Flashcoders@chattyfig.figleaf.com
To change y

[Flashcoders] ScrollPane wont load contentPath ?

2006-04-12 Thread Isaac Rivera

Anyone experienced ScrollPane Denial Of Service Attack?

Two movies. In one in both I post MM's example. In one it works, in  
the second one nada. The second one is the project Fla in interested  
in working with of course.


this.createClassObject(mx.containers.ScrollPane, "my_sp", 10);
my_sp.setSize(320, 240);
my_sp.contentPath = "http://www.helpexamples.com/flash/images/ 
image1.jpg";


The ScrollPane component is in the library.
It shows on the stage, but no content.

trace(this.my_sp); // _level0.my_sp
trace(this.my_sp.content); // undefined
trace(this.my_sp.contentPath); // http://www.helpexamples.com/flash/ 
images/image1.jpg


Any insights?

Isaac Rivera
___
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] File Exists - a better way?

2006-03-18 Thread Isaac Rivera

Alright...

I have a minute now...

This may be an issue of semantics, but if what we want to know is  
whether the file exists or not on an HTTP connection, then the only  
way is to wait for the success boolean. HTTP servers do respond when  
a requested resource is not available. This is the classic 404 HTTP  
status. Unfortunately there is no way of knowing if the response  
coming back from the server is the requested resource or an Error  
type HTTP response until the response is downloaded and we can either  
see the HTTP response headers (flash 8) or test the success boolean.  
The only other possible condition is whether the resource requested,  
existing or not, is available. By this I mean whether the connection  
to the server was achieved and the request is processed in  
"reasonable" time. This is where a time out comes in. I think time  
out subjectivity can be minimized by testing for the first few bytes,  
not whether the full response happens or not. There is a huge  
difference if we give 10 seconds to get a full response to a 50K file  
or the same 10 seconds to just test the first few bytes of the same  
file.


In other words... if in 10 seconds you have not loaded a single byte,  
then forget it, the response is either not coming or too slow. On the  
other hand, if you did get a single byte on those 10 seconds, then  
you are going to have to wait for the full response to find out  
whether that response indicates that the resource exists or not.


Again, to that effect:

// code --
function fileExists() {}
function fileDoesNotExist() {}

var timeout:Number = 1; // 10 seconds...
var app:MovieClip = this;

var lv:LoadVars = new LoadVars();
lv.onLoad = function(success:Boolean) {
clearInterval(app.interval);
if (!success) {
app.fileDoesNotExist();
} else {
app.fileExists();
}
};

var startTime:Number = getTimer() + timeout;
lv.load(url);

var interval:Number = setInterval(function () {
var loaded:Number = app.lv.getBytesLoaded();
if (loaded == 0 && getTimer() >= app.startTime) {
app.lv.onLoad = null;
delete app.lv;
clearInterval(app.interval);
app.fileDoesNotExist();
} else if(loaded > 0) {
clearInterval(app.interval);
}
}, 25);
// code --

This essentially tests whether a there has been no response in the  
given timeout. If there hasnt it clears out. If on the other hand,  
there has, it waits for the load to determine whether the file exists  
or not.


I think only a simple server side proxy script, or perhaps even an  
AJAX script, could bypass the hassle of waiting for the full response.




On Mar 18, 2006, at 6:53 AM, Ian Thomas wrote:


Bart,
  Firstly, I'm not sure why that's a reply to my posting - and
secondly, why would you want to do that..?

  The original poster asked if there was a way of checking whether a
file exists sooner than waiting for the whole file to load. Your
solution loads the whole file via LoadVars - which would take the same
amount of time as loading it normally. My solution is a quick call to
a webserver and a few bytes worth of response - much quicker than
(say) loading a 250Kb file...

Ian

On 3/18/06, Bart Wttewaall <[EMAIL PROTECTED]> wrote:

Ian: "There's no Flash native hack as far as I know."

You can check (and cache while you're at it) any file by using  
LoadVars:


var file:String = "anyFileType.exe";

var fileExists:LoadVars = new LoadVars();
fileExists.onLoad = mx.utils.Delegate.create(this, doCheck);
fileExists.load(file);

function doCheck(success:Boolean) {
if (success) trace("File "+file+" exists.");
else trace("File "+file+" does not exist.");
}



___
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] File Exists - a better way?

2006-03-17 Thread Isaac Rivera

I backtracked on this thread...

I guess the questions are:

1) what are you trying to load?

2) what onLoad(success:Boolean) are you using?

Are you using the XML or LoadVars?

Assuming you are using the LoadVars, a more reasonable "timeout"  
approach would be something like:


// code --
function fileExists() {}
function fileDoesNotExist() {}

var timeout:Number = 1; // 10 seconds...
var app:MovieClip = this;

var lv:LoadVars = new LoadVars();
lv.onLoad = function(success:Boolean) {
clearInterval(app.interval);
if (!success) {
app.fileDoesNotExist();
} else {
app.fileExists();
}
};

var startTime:Number = getTimer() + timeout;
lv.load(url);

var interval:Number = setInterval(function () {
var total:Number = app.lv.getBytesTotal();
if (total > 4) {
clearInterval(app.interval);
app.fileExists();
} else {
if (getTimer() >= app.startTime) {
clearInterval(app.interval);
app.fileDoesNotExist();
}
}
}, 25);

// code --


On Mar 17, 2006, at 10:31 AM, Yotam Laufer wrote:


[Theres no "reasonable" amount of time on networked connections of
unknown hardware specs...]

And yet timeout times are set somehow... I think it's a subjective  
decision.

I wouldn't do it like this, but if someone has to?

Yotam.
___
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] File Exists - a better way?

2006-03-17 Thread Isaac Rivera
Theres no "reasonable" amount of time on networked connections of  
unknown hardware specs...


Have you looked into onData instead? I believe it will allow you to  
know if the file exists bases on the first packet of the response.


Isaac Rivera
Senior Flash Developer
Audience Programming,
America Online



On Mar 17, 2006, at 9:14 AM, Yotam Laufer wrote:

If onload fires immediately with success==false then you know that  
there's
no file, so why don't you wait for a reasonable interval and then  
if it's
not fired than assume the file exists. not the best of solutions  
but should

work.

Yotam
___
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] updating the ide-players

2006-03-16 Thread Isaac Rivera
You are assuming the player is updated and the IDE is miss-reporting  
the version.


How do you come to this conclusion?

Assuming the players are the same inside and outside the IDE, why do  
they report the correct version when run outside the IDE (i.e.  
clicking on a swf on the desktop and  running a projector)?


Since the property strings "8,0,24,0" and "8,0,22,0" are probably  
coming from the same sources no matter where you run the players from  
(unless Adobe hard-codes in the IDE the version of the player it  
releases the IDE with), my assumption is that there is a player not  
updated somewhere in the resources of the IDE.


This is my concern more than the string itself.

Isaac

On Mar 16, 2006, at 1:02 PM, Michael Stuhr wrote:


Fumio Nonaka schrieb:

Thank you for your comments, micha and Isaac.
I ran the uninstaller before installed the players. And all the  
players in the players folder in Flash 8 seem to be updated to  
8.0r24.
But only in the Test Movie, [List variables], getVersion() and  
System.capabilities.version return 8,0,22,0. I got the same result  
in Flash 8/Winsows XP (SP1).

_


well if you check the file's themselves, and they say .24 i guess  
they're ok.
it's annoying - even dangerous - that the ide states an older  
version, but i think we can live with that.


btw:

i suppose anyone who has some time left, to check their  
versioncheckers and update them so users are warned when having an  
older version.

what do you guys think ?

micha
___
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] updating the ide-players

2006-03-16 Thread Isaac Rivera

That has nothing to do with this issue.

The uninstaller removes the internet player, not the stand alone  
players. Running the uninstaller and then checking for the stand- 
alones confirms it.


However, just to prove myself wrong and solve the issue. I did. Then  
re-installed.


In any case, the stand alones and the internet plug in are all  
updated. Getting info on them confrims that they are version 8.0 r24.  
Running them outside the authoring environment also shows the correct  
version.


BUT ON THE FLASH AUTHORING ENVIRONMENT

trace(getVersion()) // 8,0,22,0  !!!

Nothing has changed except now I wasted another 5 minutes on updating  
the players in vain!


Why cant Adobe just provide a bug-free installer? I mean, they have  
been making Apple software for a long time.


Isaac

On Mar 16, 2006, at 12:20 PM, Michael Stuhr wrote:


Fumio Nonaka schrieb:
I installed the players on Flash 8/Mac OS X.  While the plug-ins  
and the standalone players seem to be updated, getVersion() in the  
test movie returns 8,0,22,0, which is not new version of 8.0r24.

Could any Mac users successfully update the Test Movie Player?
_


have you uninstalled all players ?

micha

___
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] More Player update problems...

2006-03-16 Thread Isaac Rivera
Ok, not only I cant get the player in the authoring environment to  
update (it continues to trace "8,0,22,0"), but
after replacing the projector players included in the macromedia  
downloads for mac:


http://download.macromedia.com/pub/flashplayer/updaters/8/ 
sa_flashplayer_8_all_release.hqx


and

http://download.macromedia.com/pub/flashplayer/updaters/8/ 
sa_flashplayer_8_all_debug.hqx


When I export a Mac projector, the icon of the publised file is black  
and white, super pixelated and unrecognizable...


ADOBE: INCLUDE INSTRUCTIONS ON YOUR UPDATE DOWNLOADS OR THE DOWNLOADS  
PAGE!!!


There are a .rscr and a .data files in the downloads, but no hint as  
to where to place these. There are no originals of those to replace  
in the usual player paths and spotlight does not return an such file  
on the system.


THIS IS FRUSTRATING. I SHOULD NOT HAVE TO SPEND SO MUCH TIME UPDATING  
A STUPID PLAYER.

___
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] Updating the authoring player.

2006-03-15 Thread Isaac Rivera
Yesterday I got an ran the stand-alone updater for Mac. All 3 players  
inside Macromedia Flash 8 folder have been updated. These are:


* /Applications/Macromedia Flash 8/Players/SAFlashPlayer
* /Applications/Macromedia Flash 8/Players/Debug/SAFlashPlayer
* Applications/Macromedia Flash 8/Players/Release/SAFlashPlayer

Getting info on these shows version 8.0 r24. However, in authoring  
environment:


trace(">> player version: " + getVersion());

produces: ">> player version: MAC 8,0,22,0"  !!!

Is this an updated player error (i.e. someone forgot to change a  
string and it reports incorrectly) or is there a player somewhere  
beyond the scope of Spotlight that needs updating as well?


Isaac Rivera
___
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] Authoring Test player version update?

2006-03-15 Thread Isaac Rivera
Yesterday I got an ran the stand-alone updater for Mac. All 3 players  
inside Macromedia Flash 8 folder have been updated. These are:


* /Applications/Macromedia Flash 8/Players/SAFlashPlayer
* /Applications/Macromedia Flash 8/Players/Debug/SAFlashPlayer
* Applications/Macromedia Flash 8/Players/Release/SAFlashPlayer

Getting info on these shows version 8.0 r24. However, in authoring  
environment:


trace(">> player version: " + getVersion());

produces: ">> player version: MAC 8,0,22,0"  !!!

Is this an updated player error (i.e. someone forgot to change a  
string and it reports incorrectly) or is there a player somewhere  
beyond the scope of Spotlight that needs updating as well?


Isaac Rivera
___
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] clicking through an iframe on mozilla-based browsers ?

2006-03-07 Thread Isaac Rivera
I happen to be trying to make this work for a flash movie behind the  
transparent iframe, but it could be anything interactive behind the  
iframe the problem is the same.


On mozilla based browsers, the iframe prevents a click through it to  
whaever is behind, not so on IE/PC where the interactive content  
behind the iframe is accessible to the mouse. This seems to be true  
for Safari and Firefox for mac and pc.


Any suggestions?
___
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] When singletons go bad

2006-02-20 Thread Isaac Rivera

I do not understand your implementation of this pattern.

Classically, in single-threaded environments like the flash player,  
Singleton is implemented as below (using your nomenclature):


class MyManager {
private static _myManager: MyManager = null;

public static function getInstance(): MyManager {
if(_myManager == null) {
_myManager = new MyManager();
}
return _myManager;
}

private function MyManager() {
// constructor stuff here...
}
}

This works. I use it regularly.

The strange bit in your code is:


if(_myManager==null){
   _myManager=this;
}


Since _myManager is a PRIVATE and STATIC property set JUST BEFORE  
calling the constructor the FIRST TIME, why should the constructor  
attempt to set it? Specially when it does so as an instance property  
(ie. Not declaring the Class scope first as in:


MyManager._myManager = this;

What is the advantage of this block?

izk

On Feb 20, 2006, at 9:14 AM, Manuel Saint-Victor wrote:


Jesse,
Here is the getInstance that I am using


private function MyManager() {
// constructor
if(_myManager==null){

_myManager=this;
}

init();
}

public static function getInstance() : MyManager{
if(_myManager==null){

_myManager=new MyManager();
}
return _myManager;
}



I switched the name of the class a bit but everything else is  
unchanged in

these two methods.

Mani
___
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 player 8.5 and ActionScript 3.0

2005-10-09 Thread Isaac Rivera
But we CAN see how it has so far gone with .NET. No official port for  
Mac. And that has been out for several years.


Avalon will probably not be implemented for Mac at all. Nor other  
platforms (OSes) which means it will not be a realistic platform for  
web, as opposed to Flash... or Java.


Isaac

On Oct 9, 2005, at 12:01 PM, Weyert de Boer wrote:

Yes, but it's not sure how the Avalon stuff will be implementated  
for the MacOSX. It's only known it will be implementated for  
Avalon. If I recall directrly it's not /even/ known which parts of  
Avalon _will_ be supported under MacOSX. Oh well, this is so  
2006 ;-) No need to talk about this any further -- we just don't  
know it yet.










___
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 player 8.5 and ActionScript 3.0

2005-10-09 Thread Isaac Rivera

I was answering a specific statement.

Read Ryanm's entry, I believe it was quoted in my response. It stated  
that all platforms with IE7 would be able to consume Avalon web apps.  
Apparently IE7 will carry the .NET runtime as part of the application.


There is no IE7 for Mac.

Isaac

On Oct 9, 2005, at 10:58 AM, Weyert de Boer wrote:

You can't yet know how Microsoft will implementate Avalon for  
MacOSX :-)


___
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 player 8.5 and ActionScript 3.0

2005-10-09 Thread Isaac Rivera
Microsoft officially abandoned IE development for the Mac with  
version 5.0.3, so Avalon apps will not be "consumable" from a mac.


You PC developers need to be up to date on your own news.

Isaac

On Oct 8, 2005, at 7:48 PM, ryanm wrote:

Yes, .NET web applications running on MS can be consumed from any  
platform,


But I believe the point he was making was regarding Avalon apps.   
Isn't Avalon for developing desktop apps?


That is the point I was talking about.


   Apps for Avalon may be delivered as desktop apps or as web apps,  
through IE7. Avalon apps may be delivered to any platform that has  
IE7 and the runtime, which should be available for Win, OSX, and  
probably some flavors of linux.


   So, no, it's not just for desktop apps, and not just for  
Windows. In fact, according to their marketing materials, it  
doesn't even have to be served from IIS.


ryanm
___
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 player 8.5 and ActionScript 3.0

2005-10-08 Thread Isaac Rivera

I would say all too common... when it comes to MS...


On Oct 8, 2005, at 7:17 PM, Weyert de Boer wrote:


:-) Always possible.
___
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 player 8.5 and ActionScript 3.0

2005-10-08 Thread Isaac Rivera
I know that MS has stated that they would port .NET to ALL platforms.  
Let's see.


Until there is an official, up to date, fully capable, Darwin port,  
there is an even better alternative than mono... JVM can be developed  
and deployed everywhere with community-approved products.


Isaac

On Oct 8, 2005, at 5:42 PM, Weyert de Boer wrote:

Microsoft is planning to make a runtime available for MacOSX.  
That's what I read somewhere, though. The .NET runtime (only  
windows and freebsd) is not available for MacOSX but you can use  
the opensource alternative Mono (go-mono.com) and use that it. It  
works like charm even while its not feature complete.

___
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 player 8.5 and ActionScript 3.0

2005-10-08 Thread Isaac Rivera
Yes, .NET web applications running on MS can be consumed from any  
platform,


But I believe the point he was making was regarding Avalon apps.  
Isn't Avalon for developing desktop apps?


That is the point I was talking about.

Isaac

On Oct 8, 2005, at 1:38 PM, ryanm wrote:

I fail to see the relationship between the ".NET" part of the   
statement and the possibility of "cross-platform" part.



   .NET apps can be *consumed* from any platform.

ryanm
___
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 player 8.5 and ActionScript 3.0

2005-10-07 Thread Isaac Rivera

Just to clarify, Vista is the new operating system, the stuff MS is
doing is the Avalon framework which is edited using the Sparkle
toolset/ide.

However, Avalon is fully implemented in .NET so it is *possible*,  
though

my guess is unlikely, to be cross-platform.



I fail to see the relationship between the ".NET" part of the  
statement and the possibility of "cross-platform" part.


Did I wake up in a different universe this morning? Has .NET been  
ported to anything not Microsoft? Are there known efforts other than  
a vague promise by MS?


In my opinion as Java programmer, J programmers being tempted by .NET  
are missing the real point of Java.


It would be like programming flash apps that make use of those few  
features available only on IE for PC--the whole point, unlike DTML  
for instance, is cross-everything in a medium (the webb) that is  
inherently diverse. In one technology, and a ubiquitous one, you can  
deliver all media and content, all wrapped up in a small and powerful  
little package, regardless of the diversity out there.


But perhaps you meant, "cross-os" as in all the windoze flavors and  
versions. If I was a windoze user who makes windoze apps only for  
windoze desktops and servers, I would definitely be using C#  
and .NET, but then again...


Isaac Rivera



Although, MS has actually
come up with quite a compelling tool. You basically get a flash-like
tool with timelines and graphics (plus 3D), but with the entire  
power of
the .NET platform. I have been a long-time Java fan, but with  
direction

of .NET, I have been seriously considering making the switch. (And of
course keeping Flash for the web stuff :) )

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter
Kaptein
Sent: Friday, October 07, 2005 7:40 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash player 8.5 and ActionScript 3.0

Reading this thread I am curious to know how MM sees the up and coming
Microsoft Vista-platform.

My feeling is that MS is basically -- again -- hooking up in the Rich
Internet Applications area (as previously tried & done with their  
DHTML

implementation, DataBinding and ActiveX controls).

Though -- again -- Vista very likely only works (properly) on the MS
Platform, they do introduce some cool 3D-like options to build  
GUI's and

the
performance seems to be OK.

Peter

==
Peter Kaptein
Instant Interfaces (www.instantinterfaces.nl) | MediaRijk
(www.mediarijk.nl)
Senior Technical Consultant
06 284 310 14

- Original Message -
From: "Muzak" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, October 07, 2005 1:15 PM
Subject: Re: [Flashcoders] Flash player 8.5 and ActionScript 3.0




There's no Flash 8.5 IDE.
There's no upgrade to Flash 8.

Flash 9 will support AS3.0 (alpha released in Spring 2006)

Muzak


- Original Message -
From: "Mike Mountain" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, October 07, 2005 12:29 PM
Subject: RE: [Flashcoders] Flash player 8.5 and ActionScript 3.0


Mike



Just to clarify. There is no update for Flash Authoring planned.

There will be an early alpha of the next full version of
authoring that includes ActionScript 3 support. This will be
available in the spring.

mike chambers

[EMAIL PROTECTED]



Great features and it's good that the 'flash platform' is moving
forward.

Reading between the lines - we'll have to pay for the 8.5 IDE, or are
you taling about an alpha of the flash 9 IDE? - If it's 8.5 then


great,


like I'm going to be able to convince my manager I need to upgrade
everyone in my team again. Adobe did the same with CS and CS2.

Looking forward to Flash 8.75 and Flash 8.9

What was the reasoning behind not holding off the release and putting
this in 8, or waiting and pushing it in 9?

Should people who haven't yet upgraded to 8 hold off for the 8.5
upgrade?

Will you still operate the same upgrade from any version policy?

I need to carefully plan my software budget and you guys aren't


helping.



Cheers

Mike


___
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] Flash player 8.5 and ActionScript 3.0

2005-10-07 Thread Isaac Rivera

Just to clarify, Vista is the new operating system, the stuff MS is
doing is the Avalon framework which is edited using the Sparkle
toolset/ide.

However, Avalon is fully implemented in .NET so it is *possible*,  
though

my guess is unlikely, to be cross-platform.



I fail to see the relationship between the ".NET" part of the  
statement and the possibility of "cross-platform" part.


Did I wake up in a different universe this morning? Has .NET been  
ported to anything not Microsoft? Are there known efforts other than  
a vague promise by MS?


In my opinion as Java programmer, J programmers being tempted by .NET  
are missing the real point of Java. It would be like programming  
flash apps that make use of those few features available only on IE  
for PC.


But perhaps you meant, "cross-os" as in all the windoze flavors and  
versions. If I was a windoze user who makes windoze apps only for  
windoze desktops and servers, I would definitely be using C#  
and .NET, but then again...


Isaac Rivera



Although, MS has actually
come up with quite a compelling tool. You basically get a flash-like
tool with timelines and graphics (plus 3D), but with the entire  
power of
the .NET platform. I have been a long-time Java fan, but with  
direction

of .NET, I have been seriously considering making the switch. (And of
course keeping Flash for the web stuff :) )

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter
Kaptein
Sent: Friday, October 07, 2005 7:40 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash player 8.5 and ActionScript 3.0

Reading this thread I am curious to know how MM sees the up and coming
Microsoft Vista-platform.

My feeling is that MS is basically -- again -- hooking up in the Rich
Internet Applications area (as previously tried & done with their  
DHTML

implementation, DataBinding and ActiveX controls).

Though -- again -- Vista very likely only works (properly) on the MS
Platform, they do introduce some cool 3D-like options to build  
GUI's and

the
performance seems to be OK.

Peter

==
Peter Kaptein
Instant Interfaces (www.instantinterfaces.nl) | MediaRijk
(www.mediarijk.nl)
Senior Technical Consultant
06 284 310 14

- Original Message -
From: "Muzak" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, October 07, 2005 1:15 PM
Subject: Re: [Flashcoders] Flash player 8.5 and ActionScript 3.0




There's no Flash 8.5 IDE.
There's no upgrade to Flash 8.

Flash 9 will support AS3.0 (alpha released in Spring 2006)

Muzak


- Original Message -
From: "Mike Mountain" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, October 07, 2005 12:29 PM
Subject: RE: [Flashcoders] Flash player 8.5 and ActionScript 3.0


Mike



Just to clarify. There is no update for Flash Authoring planned.

There will be an early alpha of the next full version of
authoring that includes ActionScript 3 support. This will be
available in the spring.

mike chambers

[EMAIL PROTECTED]



Great features and it's good that the 'flash platform' is moving
forward.

Reading between the lines - we'll have to pay for the 8.5 IDE, or are
you taling about an alpha of the flash 9 IDE? - If it's 8.5 then


great,


like I'm going to be able to convince my manager I need to upgrade
everyone in my team again. Adobe did the same with CS and CS2.

Looking forward to Flash 8.75 and Flash 8.9

What was the reasoning behind not holding off the release and putting
this in 8, or waiting and pushing it in 9?

Should people who haven't yet upgraded to 8 hold off for the 8.5
upgrade?

Will you still operate the same upgrade from any version policy?

I need to carefully plan my software budget and you guys aren't


helping.



Cheers

Mike


___
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] Scroll pane first-click bug?

2005-10-07 Thread Isaac Rivera
That might be true, but ScrollPane worked fine for me before and now  
it has at least 3 related bugs that are notorious and annoying. What  
did I do to get them? I reexported an application as version 7 in  
Flash 8!



On Oct 6, 2005, at 4:39 PM, Michael Stuhr wrote:


Isaac Rivera schrieb:



A little further investigation:

the mx.containers package in Flash 8 is not identical to the   
mx.containers package of Flash MX 2004 Pro. There are a couple of   
subtle differences in the ScrollPane.as classes for instance.  
These  even include clear AS errors like moving a super() call  
from the top  of the method (where it should be) to the bottom of  
the method!


In any case these subtle changes impact enough exporting MX2004   
applications that use ScrollPane in Flash 8 as version 7 that  
serious  bugs are introduced.


Not being able to use the arrow keys or the scroll buttons to go  
all  the way to the bottom of the component is one.


No scrolling of the contents of the ScrollPane when a single  
click  under the scroll bar is executed is another.


Backing up the ScrollPane.as and copying the one from Flash MX  
2004  Pro over is enough to fix these.


Those packages should be identical, if the product claims to be   
backward compatible.





wow, that is of much help for bugtracking. but if i understood this  
coorect, MM changes some subtle things, so this might erase some  
bugs in v2 containers ? have you tested some ?


micha
___
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