[Flashcoders] FlashComm not recording streams...

2006-10-27 Thread ryanm
   I have a 1.5 comm server and I added in some code to record streams, and 
when the record method is called, it creates the idx file but no flv. Any 
idea why?


ryanm 


___
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] Moving to AS2, array always undefined

2006-10-10 Thread ryanm

Plenty of research has been done on the subject of icons versus words
but suffice to say we don't write 100 dollars and 0 cents, we write
$100.00.  When you write music you don't write QUARTER NOTE C.  You just
draw a quarter note symbol on the C line.  That's how I look at writing
code.
:)

   Assembly/machine languages are iconic, programming languages are 
supposed to be verbose. ;-)


ryanm 


___
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] XML question

2006-08-24 Thread ryanm

But I found out I can do a find and replace on the empty lines in
Dreamwever so I`m gonna play with that!

   If you have access to any decent text editor you should be able to get 
rid of them. I use UltraEdit for this, because it supports RegExp in the 
replace dialog. Basically, you just want to replace \r\n (or whatever the 
equivalent is in your text editor) with \n, and that should fix it. Be 
aware, though, that you will have to use different expressions for this in 
different editors.


   In essence, \r is a hard return and \n is a line feed (or newline), 
and some databases/operating systems/languages/etc insert only a hard 
return, some insert only a line feed, and some insert both. So in your text 
editor, find out how to do a find and replace on only the hard return 
character. In UltraEit, when *not* using RegExp, you can use ^r and ^n as 
search terms for \r and \n, and you can use ^p (paragraph break) as a 
search term for \r\n, and then replace it with ^n (just a newline 
character). With RegExp enabled in the replace dialog, you can just use the 
\r and \n, as is usual in RegExp. You might want to look and see if you can 
find a demo copy of UltraEdit just for this replacement, it's very useful 
for this sort of thing. I used it to reformat over 120 files all in one 
swoop with it, which saved me tons of time.


ryanm 


___
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] XML question

2006-08-24 Thread ryanm

Here's one way:

myString.split(\r).join();
myString.split(\n).join();

   It sounds to me like he's trying to take a database and turn it into 
something that can be loaded directly by Flash, maybe for a distributed 
standalone app (CD, web download, etc). Depending on the size of the data, 
it probably would be a good idea to do this before hand, to the file itself, 
rather than making Flash parse it out every time the end user opens the app.


ryanm 


___
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] vars with $

2006-08-21 Thread ryanm

Curious, what does, mechanically generated code mean? Space robots?

   ...with the kicking and the biting with the metal teeth and the hurting 
and shoving.


ryanm 


___
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 7,8,9 , AS 2 and 3 - clarify the situation

2006-08-19 Thread ryanm

I asked, and nobody had any idea how they got Player 9. They were even
surprised that they had it.

   I'd be willing to bet that MySpace did it. They're doing the live 
update thing to Flash 9.


ryanm 


___
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 7,8,9 , AS 2 and 3 - clarify the situation

2006-08-18 Thread ryanm

actually the flash 9 player is the current version, allthough I doubt many
people in the world have it, since version 8 just got released not too 
long ago.
   Actually, with MySpace requiring Flash 9, I would expect the penetration 
to reach 80%+ within a couple months.


ryanm 


___
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] Uncompress a gzipped file

2006-08-10 Thread ryanm

Imagine compressing XML files to a tiny
fraction of their original size and decompressing them within flash!

   No need, you can do this now. If you gzip a file and send it via post 
response (sendAndLoad), the browser will decompress it for you automatically 
(as long as the header says it's compressed). I implemented it in an app I 
built almost 2 years ago, where all XML data from the server was compressed. 
The only downside is that you lose the ability to getBytesLoaded, because 
the browser can't uncompress the file until it is completely loaded, and 
flash doesn't get any of the file until it is uncompressed.



The uses are endless, especially when you start to think about
compressing files within flash and sending them other places.

   The problem there is that the CPU power required to zip any sizeable 
amount of data with any reasonably good compression scheme will bring the 
Flash player to its knees. And if the data isn't that large, it doesn't 
really need to be compressed, does it? I, too, am working on some 
compression classes, but I'm pretty busy with other stuff right now and 
haven't had time lately to mess with it.



Anyway, making a custom format is out of my league it seems. I tried
working something out with Python but I can't pull it off. Surely the
throngs of people interested in this would figure something out,
unless I'm alone...

   I wrote an RLE class a while back, but it's not useful for anything 
large, and for smaller stuff the compression isn't that great. And you would 
also have to write the same class on the server side if you wanted to use it 
anywhere but flash. It's mostly useful for storing large, repetitive blocks 
of text for reuse in Flash later.


ryanm 


___
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] Uncompress a gzipped file

2006-08-10 Thread ryanm

Personally the ideal situation for me would be a customized version of
something like gzip, only one that provided the proper checksums that
Flash wants. Expecting the server to compress this might be too much,
all i had in mind were pre-compressed files. Choosing whether or not
to compress them is a choice based on the advantages versus the
disadvantages. In my case it's a huge advantage, since even the
fastest compression shrinks my particular file by 60%, I'm sure most
huge text/xml files could easily beat that.

   To me, the most useful thing would be a a standardized implementation, 
so that it could be compressed at runtime or in advance, so that it can be 
used with packages like you were describing, or individual (possibly 
dynamic) files compressed by the server. Something like that will have to 
use the same CRC as the other common implementations of the same 
compression, so it will likely have to be entirely AS and not use the built 
in player compression.


ryanm 


___
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] quotes in XML

2006-08-08 Thread ryanm

I actually XML-encoded the string in PHP using pipes instead of ampersands
and then converted the pipes back to ampersand in Flash once the string 
was

received.  The conversion from XML-encoding to regular characters is done
automatically.

   Another solution would be to use the XML object in Flash, and either XML 
encode the data or use the CDATA block in the XML. It would be more robust 
and flexible, not to mention more compatible with other client and server 
technologies.


ryanm 


___
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] HTML in XML

2006-08-08 Thread ryanm

As you can see, you have to iterate through all the children of
newsitem, rather than just using the firstchild.

   newsNode.childNodes[i].firstChild.nodeValue.toString() should work also, 
since it would render the node and all of its children as a string.


ryanm 


___
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] XPathAPI problems with wildcard searches

2006-08-01 Thread ryanm

r = XPathAPI.selectNodeList(x,/*/item);

   The problem is that / and * are both node operators and math operators, 
so your statement is ambiguous. The obvious answer, based on your example 
XML, is to use ./items/item, but I don't know if your real XML is more 
complex or not. If it is, you just need to make your select statement more 
explicit.


ryanm 


___
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] XPathAPI problems with wildcard searches

2006-08-01 Thread ryanm

The reason I am trying to do the wildcard search is because I have nodes
of the same name at different levels and I need them all. So giving a
specific path wouldn't give me all of the nodes I need.


   That's not what your select says, the * wildcard only selectes children.

/*/item = select all item nodes which are one level below the root 
(grandchildren of the context node).
//item = select all item nodes on any level of the document (all 
descendants of the context node).



Yes * and / are mathematical operators but in the context of a xpath
search they are used as you expect if you were doing a regex search...
which also supports the * and /

   If you read the W3C spec, they specifically mention this ambiguity and 
the problems that can arise. It is a known issue with wildcards in XPath, 
and you should not expect it to behave the same way as any particular 
implementation of RegEx.



What I am attempting to do is get all the node nodes by doing
r = XPathAPI.selectNodeList(myXML,/*/node);


   What you want is:

r = XPathAPI.selectNodeList(myXML,//node);

ryanm

___
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] Array Empowerment

2006-07-27 Thread ryanm
To me it has always seemed more logical to use if this.length == 0 for the 
very reason of explicitness that you stated; and thus, using the 
alternative !this.length was less enticing. I speculated (wrongly) after 
reading your post that there might be some sort of speed optimization 
inherent to checking if something is false than actually checking for a 
specific length defined explicitly in your code. I don't know why I 
thought that, and obviously I am wrong for the various reasons stated 
earlier.


   Further, !this.length is very likely slower. Conditions are meant to 
resolve to a boolean, but the implicit cast is to a string, which means 
walking the prototype to find the property, and if it exists (!=undefined), 
casting it to a string, and then recasting it to a boolean. Meanwhile, 
this.length==0 resolves directly to a boolean, and, as such, should be a bit 
faster. It wouldn't be a noticable difference in speed in a single 
condition, but in a recursive loop where it might be evaluated thousands of 
times, it could make a significant difference.


ryanm 


___
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] Array Empowerment

2006-07-27 Thread ryanm

If you want to do some deeper comparison to see if objects in an array
are identical in content but different instances, then I think 'every'
is the proper method to use and you just pass your comparison function
as the argument.

Any thoughts?

   I think you need both. Maybe name this one same (or sameAs) and the 
other one equal (I'd add the s: equals), because what the strict 
comparison is really doing is saying that this is a reference to the *same* 
object as the one passed as an argument, not that they are equivalent. 
Equivalency really suggests a comparison between different objects, not just 
a check to see if they are the same object. Basically, you need an 
Object.compare function that you can call from this function. That would 
make life much easier, and you could even have it return a tri-state value, 
e.g. 0=false (not equivalent), 1=true (equivalent), 2 or -1 or null or 
whatever = duplicate reference (a==b).


ryanm 


___
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] Array Empowerment

2006-07-27 Thread ryanm

That's the real source of sloppiness, Java has eliminitaed these
discussions by the simple expeditent of requiring that the conditional
resolves to a boolean, nothing wlse will do. THe real question to me
is does AS3 change this behavior?

   Well, the Flash answer to this is that all conditionals are cast to 
boolean, so if(condition) is effectively executed as if(Boolean(condition)), 
which makes it work, but at the same time it makes it easy to be sloppy.


ryanm 


___
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] Array Empowerment

2006-07-26 Thread ryanm

every and some come from php.

   Php is probably a bad place to take naming conventions from. It is a 
prime example of the mess that open source can cometimes bring, considering 
they have split and join *and* explode and implode, not to mention about 2 
dozen different functions that do the same things to strings. There is no 
agreed-upon naming convention or standard in php, and the resulting mess has 
a cobbled-together and almost impossible to predict naming convention (if 
you could call it that), so I would recommend looking to a stricter and more 
well established language for a naming convention, like Java or even C++.


ryanm 


___
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] Array Empowerment

2006-07-26 Thread ryanm

Remove and delete are essentially synonymous.

Backspace and Delete, Enter and Return...which is right?  :)

   Well, if you want to get into the semantics, return and enter are 
different, and backspace and delete are different. Enter just means 
execute, while return actually means carriage return + line feed. 
Backspace means move the cursor back a space, deleting any character that 
may be in that position, while delete means delete the character in the 
current cursor position.


   Remove and delete aren't synonymous, and I think remove is much better 
suited to what is happening in the function. Without looking at the function 
or reading any documentation, I would assume that a delete method destroyed 
the object, not just removed it from the array. An Array.delete function 
should really delete the array.


ryanm 


___
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] Weird problem with encryption...

2006-07-25 Thread ryanm
   I'm working on some encryption classes, and I've run into an extremely 
odd problem. Let me give you an example:


http://www.horsefish.net/businesstools/sample.html

   Scroll to the bottom to the Encryption Test and type asdf in the clear 
text string field. You'll notice that it breaks when you type the f. 
However, if you change any character in the string or any character in the 
key, it works fine. If you continue typing asdf repeatedly you'll see that 
it breaks at predictable intervals. My first thought was that something must 
be wrong with the characters being used to pad the strings, since it always 
seems to break when you reach half a block. So I spent all kinds of time 
going through the algorhithm  and replacing the pad characters to see what I 
was doing wrong, etc, but found nothing. Then I noticed something odd. If 
you switch to XXTEA using the combobox in the top right corner, you can 
produce the same error. Type Hello, my name is  (including the space at 
the end) and you'll see the same thing happening. Add a character or change 
any character in the string and it encrypts and decrypts correctly. Needless 
to say, I find it exceedingly odd that both ciphers would suffer the same 
flaw, despite the same flawed developer working on both of them. I don't 
know if the MD5 class suffers the same problem, since it's one way and I 
don't have a good way to check it short of using someone else's 
implementation to repeatedly check strings until I find a  key/message pair 
that produce the wrong result.


   So, the point of all of this is that I believe, after banging on this 
for some time, that there must be some character that is being generated by 
the cipher that Flash isn't handling properly. The encrypted string is 
generated in both classes by using bitwise operators to alter character 
codes, and what I think may be happening is some non-printable or otherwise 
unimplemented or incorrectly implemented character code is being generated 
in the cipher text, which is causing it to output garbage instead of valid 
cipher text. Of course, when I try to decrypt the garbage, it only returns 
garbage.


   Does anyone have any ideas on this? Has anyone experienced anything 
similar? Any light you guys can shed on this would be helpful.


ryanm 


___
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] Weird problem with encryption...

2006-07-25 Thread ryanm
   I'm working on some encryption classes, and I've run into an extremely 
odd problem. Let me give you an example:



   Nothing? Not a single response on the list?

ryanm
___
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] Array Empowerment

2006-07-25 Thread ryanm

Here is the next iteration - new and improved.   Again, all
comments and optimizations, including conversations about
optimizations, are most welcome!

   Those are great additions. You need a duplicate_deep and a 
replicate_deep, though. Right now, any obejcts stored in the array will be 
references in the new array. A _deep method would make copies of those too, 
recursively caling Array.duplicate, or Object.duplicate. ;-)


ryanm 


___
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] semi-OT: Pseudo-random number sequence

2006-07-19 Thread ryanm

 - there are n integers in the sequence
 - the sum of the integers in the sequence is x
 - the value of each integer in the sequence is between 1 and 6, inclusive



   There are a couple of things that I'm not following.

1. Does the board have a static number of spaces?
2. Are there a set number of turns, or can it take as long as it takes?
3. Why do you need to know all of the rolls in advance, can't you just make 
your roll function ensure that the last roll is always exactly the right 
number of spaces?


   The following function will generate a (semi-) random number from 1 to 
6, and always cause the last roll to land exactly on the last game board 
space:


function roll(current:Number):Number{
   var iBoardSize:Number = 50; // 50 spaces on the board
   current = (current==undefined)?0:current; //  make sure current is set
   var maxroll:Number = iBoardSize - current; // largest number you can 
roll

   var r:Number = Math.floor(Math.random()*5)+1; // generate random number
   r = (rmaxroll)?maxroll:r; // if roll is larger than maxroll, substitute 
maxroll

   return(r);
}

   Prior to the last 6 spaces, the roll can never be larger than maxroll, 
because maxroll will be like 35 and the roll is only 1-6. But on the last 6 
spaces, it is possible for the roll to be higher than the last space, so you 
substitute maxroll. It gets more complicated if you need to know all the 
roll sin advance, or if there are always a set number of turns, etc, but not 
too much more complicated.


ryanm 


___
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] ActionScript Application Framework

2006-07-19 Thread ryanm

How you like them apples?  :)

   Unfortunately, there is no baked in configuration for peach cobbler, 
blackberry pie, and apricot fried pies, and since my clients aren't 
interested in plain old apple pie, ROR is mostly useless for me. ;-)


ryanm 


___
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] Difference between null and undefined?

2006-07-19 Thread ryanm

That is really weird, huh?

Well, for strings, I think it's often better to use .length for Boolean
tests, anyway:

function test(s:String) {
if (s.length) {
// Catches any nonempty string.
} else {
// Catches null, undefined, and empty strings.
}
}



   Ok, this is why people have such a hard time with strict typing. First 
of all, you should not be treating false, 0, null, and undefined as 
interchangable, because they are not. This is the most basic of best 
practices: say what you mean, and be explicit. Using an evaluation that is 
not boolean as a boolean evaluation is just lazy code. Period. And later, 
when you can't figure out where the bug came from, you'll spend hours 
hunting down where a condition fell through the cracks. Oops, the new player 
changed the implicit return value of the datatype you were using in your 
condition, or changed the way different types are compared, and your whole 
application broke as a result, when an extra 2 characters (0) could've 
avoided the issue.


   Also, no one ever actually answered the OPs question. The difference 
between null and undefined is that undefined means the variable was never 
initialized or has been deleted. You should never *set* a variable to 
undefined, you should always use null instead, otherwise you ruin the whole 
distinction between an uninitialized variable and one that you have set to 
null.


var a:Number;
trace(a); // undefined
a = 1; // set it
trace(a); // 1
a = null; // empty it
trace(a); // null
delete a; // uninitialize it
trace(a); // undefined

   It is useful to have two different types of no value assigned, because 
you can tell the difference between a variable that is just currently 
without a value, and one that has either never been assigned a value or has 
been deleted. It is even more useful in complex datatypes.


var o:Object;
trace(o); // undefined
o = new Object(); // initialize
trace(o); // [Object object]
o = String(blah); // assign a primitive as an object
trace(o); // blah
o = String(); // set to empty string
trace(o); // (empty string, *not* undefined)
o = null; // empty it
trace(o); // null
delete o; // destroy it
trace(o); // undefined

   So you can see, it can be useful to be able to make the distinction 
between a variable that has been initialized and then emptied, and a 
variable that has never been initialized. The most common place to do this 
is in something like this:


class Example{
var o:Object;
   function Example(){
   // code
   }
   function SomeOtherFunction(){
   // ensure the object has been initialized
   // you may not want to reinitialize it if the value is null,
   // since null may have some other meaning in this context.
   if(o==undefined) o = new Object();
   }
}

ryanm 


___
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] ActionScript Application Framework

2006-07-19 Thread ryanm

At one time, Director developers were saying Flash was just hype.
Macromedia just had great marketing but their product wasn't very good.
Flash sucks.  :P

   I think that says more about the average Director developer than about 
Flash or Macromedia. ;-)


ryanm 


___
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] Project feedback, anyone?

2006-07-08 Thread ryanm

I worked on it and squeezed it out narrowly by the deadline they had set.
They were not happy at all. Supposedly the program is not useable by 
them
(for reasons that haven't been explained to me, even though everything 
that

was initially asked was implemented), and supposedly the code is too
complicated for another programmer to continue work on it.

   I played with it, it seems to do what it is intended to do, so as long 
as what it does is what was defined in the spec, I don't see any problems. 
Being too complicated for their other Flash guy is not your problem, unless 
it was specifically mentioned in the specs that it should be done on the 
timeline so that their guy can take over.


   In my opinion, and I do enough freelance work to have experienced this a 
time or two myself, you need to invoice them and tell them that if they want 
further changes that it's a new project and will require a new quote. Tell 
them you can only make it do the things they want if thery can tell you what 
those things are, and you need to know *before* you start working on it in 
order to be able to deliver it on time and within the budget. Make them 
define not usable for you, and break it down to process flows that don't 
work.


   There is nothing wrong with the code that I could see. You delivered a 
product, and you should get paid on it before you do anything else with that 
client, IMO. If you value the client more than the cost of this one job, 
then you might want to do some additional work to make them happy, but keep 
in mind that once you set the precedent that you'll go above and beyond what 
you were paid for, they will expect it in the future.


ryanm 


___
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] Project feedback, anyone?

2006-07-08 Thread ryanm

billed for. Thus unless a project is very large, it's generally not worth
client's while to have a binding estimate created as it consumes time that
otherwise could already be used for developing the project.

   You're right, a binding estimate is not always worthwhile, but a binding 
*contract* stating your expectations to be paid for your time regardless of 
how many times they change their mind, your right to adjust the cost as new 
features are added, what the resulting source code should look like, and who 
owns the rights to what after it's all said and done. That way you're 
covered even if they're not happy at the end.



But it's live and learn :). This was a good learning experience even
though it's unfortunate that a client relationship had to be destroyed in
the process.

   I've found that sometimes client relationships aren't worth keeping, 
regardless of the history. As you grow as a developer, your rates should 
increase to reflect it. Not many clients want to pay someone more than what 
they've paid them in the past, regardless of what they may have learned.


ryanm 


___
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] AS3 faster ??

2006-07-07 Thread ryanm

there are two VM's in the new player. the new VM is real snell.


   snell (schnell) == fast

For the English-only crowd. ;-)

ryanm
___
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] euro symbol fight

2006-07-06 Thread ryanm
I access it with AMFPHP, are you saying I have to modify every 
single object returned from AMF?



   Are you using UTF-8? And if not, why not?

ryanm
___
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] Which remoting server?

2006-07-06 Thread ryanm

If you need a persistant realtime connection, I can recommend moock's
Unity server. While it hasn't recieved any updates in quite some time,
it is pretty solid, and the unlimited connection version is quite
cheap (compared to flashcom for e.g.). It requires you to write
serverside code in Java, however you can make calls out to other
languages if you wish. Other servers I know of, but have not tested,
are ElectroServer and Oregeno.

   I need a persistant connection (socket server), and I'm looking at 
Oregano right now. But I get resistance from my executives about using open 
source/free software because it has no support, and I can't show them 
examples of high-profile, data-heavy, enterprise apps that use it. They 
would rather pay $20k per cpu for FDS2 and have support from Adobe than get 
Oregano for free. Unless there is a compelling reason not to. I'm looking 
for a compelling reason to use something smaller and lighter than FDS2.


ryanm 


___
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 9 Public Alpha ...

2006-07-06 Thread ryanm

Serious benefits you be would required
to rely on = Flash 9 IDE.


   Ding! Nail... head... and so on...

ryanm
___
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] Which remoting server?

2006-07-05 Thread ryanm
   I have a very simple need, and I'm trying to find the simplest way to 
satisfy it. I have essentially a single remote shared object on a comm 
server that is getting entirely too much traffic and I want to offload it to 
some other kind of server (that doesn't have connection limits). It is 
basically a client state object that keeps a very small amount of data 
about each client that is connected to the app (mainly their connection 
object and an id) so that data can be pushed to them. But it's expensive 
doing this on Comm Server.


   I basically just want to offload that one piece to some remoting server 
that is fast and has no connection limits. It needs to run on Windows, it 
would be nice if it could connect to my database servers, and it needs to be 
lightweight and fast. I don't mind paying for it (the FDS2 price tag isn't a 
problem), as long as it has good support. The servers I'm looking at now are 
FDS2 and Oregano. I get resistance to the OSS direction, but can work around 
it if the product is solid. My main concern about FDS is that it's way 
overkill for what I need to do.


   What server should I be looking at for this?

ryanm 


___
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] 50 stars blinking... app gets too slow

2006-07-03 Thread ryanm
I´ve created 50 star movieclips with random sizes, rotation and scale. 
Till there, everything went fine, the sky´s got good looking, but the 
stars needed some life, so I thought in adding a fade-in / fade-out 
tween to each of them - and here comes the problem - I´ve attached a 
onEnterFrame event to each of them and have written a simple code that 
does the blinking..
It works, but the app gets too slow. I don´t know if it´s becouse of the 
rendering engine that doesn´t manage to render 50 stars blinking or if 
it´s becouse of the 50 onEnterFrame events with code to do the 
fade-in/fade-out.

Any ideas?



Bottom of the page...
http://www.horsefish.net/elementalfx/what.html

ryanm 


___
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] Ajax and ActionScript 2.0

2006-06-30 Thread ryanm
but I see very much job postings with With a good knowledge of PHP, ASP, 
ASP.NET, XHTML, HTML, CSS, PERL, JS, SQL, C# etc etc...



   I could answer that ad, couldn't you? ;-)

   It's actually the part where they want all of those skills and the job 
only pays $30k that bothers me.


   Here's my sample job posting:

-
We're a small interactive agency woirking for top clients that we can't tell 
you about. It's a fun enviornment and we're like a big family.


Requirements: PhD in Physics, 10+ years experience in aerodynamics and 
aircraft design, 8+ years working experience with particle accelerators, a 
doctorate in divinity, familiarity with the layout of the human genome, and 
PhotoShop CS.


Pay: $23k

Oh, and we need you to relocate to Dubai.
-

;-)

ryanm 


___
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] Re: Biased Random Particle Distribution

2006-06-29 Thread ryanm

No web site is configured at this address.

   Yeah, my wife lost the credit card and had to get it replaced, and I 
forgot to update the host. :-P


   It should be back up tomorrow afternoon.

ryanm 


___
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] Text arching

2006-06-28 Thread ryanm
My real question is, if this image-manipulation is available in the IDE, 
how difficult is it to provide in the client or within AS3? I guess the 
answer is very difficult or more trouble than it's worth?


   No, the answer is see the documentation on bitmapData. You have to do 
it the old-fashioned way, by shifting pixels.


ryanm 


___
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 9 player is public? Whereto getFlash 8 codebase?

2006-06-28 Thread ryanm

Well, good, :) then maybe you can explain why with IE when upgrading
from Flash player 7, I clicked the download Flash 9 link, it installed
Flash 8 and said I had Flash 7.  Then when I did it again with Flash 8,
it updated to Flash 9 successfully and THEN said I had Flash 8
installed.  So then curious, with Flash 9 installed, I went in and
clicked install once more for kicks, and only THEN it said I had Flash 9
installed...  not going crazy, that really happened. :)  Something
screwy with the player detection?

   The little box that says what version you have loads before the update 
is complete, so it actually seems to report the previous version you had. 
And it will get even hinkier if you have other browser windows open.


ryanm 


___
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] Text arching

2006-06-28 Thread ryanm

Yeah, that's the answer I'd rather not contemplate. g
   Well, that is how most of the Java applets work. You can probably find 
Java source code if you google for it and port it to AS.


ryanm 


___
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] Oregano forum/mailing list/etc

2006-06-26 Thread ryanm

   I posted this last week and got exactly 0 responses. Anyone?

  Where can I find an Oregano forum or mailing list? I'm getting some 
errors and I need an archive to

search. ;-)

ryanm

___
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] Fjax... does this seem ridiculous to anyone else?

2006-06-23 Thread ryanm

http://www.fjax.net/

ryanm
___
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] Fjax... does this seem ridiculous to anyone else?

2006-06-23 Thread ryanm

Of course I am not an ajax programmer, but if its as hard as they say, and
if it makes it easier for ajax programmers to code then why not?

   Because it makes your web site dependant on the Flash plugin when it 
doesn't need to be. You're trading the effort of browser compatibility for 
the effort of Flash versioning, which are about equal to begin with. But 
browser compatibility doesn't require VBScript. :-P


ryanm 


___
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] Oregano forum/mailing list/etc

2006-06-23 Thread ryanm
   Where can I find one? I'm getting some errors and I need an archive to 
search. ;-)


ryanm 


___
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] For...in counts backwards?

2006-06-20 Thread ryanm

Why is the data output in reverse order and is there any way of ordering
it one,two,three?


   Because object are FILO, and yes, use the numbered index.

ryanm
___
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 extending TextField usable with AS2?

2006-06-16 Thread ryanm

RTFM where it says all about classes.

   You're taking this attitude farther than is useful. TextField is *not* 
simply a class like any other, it cannot be instantiated without a call to a 
specific constructor function that is not even in the TextField class 
itself. This was not a post that deserved an RTFM response, because nowhere 
in the manual does it explain how to extend TextField.


To the OP,

   You're better off making a class that extends movie clip and creates a 
text field. The way I usually do it is give the class getter/setters for 
width, height, text, etc, and give it a draw() function. The constructor 
sets some default settings and calls draw, and each of the setters calls 
draw after setting the value. Depending on how complex you want to get, you 
can make getter/setters for all kinds of stuff, like label alignment, font 
face, bold or not, font size... basically all the parameters of a TextField. 
The you have an object that can be used as simply as:


var MyLabel = this.attachMovie(LabelClass,MyLabel,1,{_x:100,_y:100});
MyLabel.text = Sample Text;

   ...or you can change all of the parameters, like tis:

var MyLabel = this.attachMovie(LabelClass,MyLabel,1,{_x:100,_y:100});
MyLabel.text = Sample Text;
MyLabel.bold = true;
MyLabel.fontFace = Arial;
MyLabel.size = 14;
MyLabel.setTextFormat(MyTextFormat);

   The idea is that the getter/setters just pass through to the real 
TextField inside, but it is contained in your class so you can add new 
features.


ryanm 


___
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] Eolas fix and backspace key flash bug

2006-06-14 Thread ryanm

Perhaps there is a magic sweet spot between the execution
of deferred scripts and window.onload when elements can be inserted into 
the

document without click to activate.

   There's no magic there, the embedded object cannot exist prior to the 
onload event firing or it will require activation. Period. Don't use a 
delay, use the onload event. A delay is unpredictable because you are 
working on the client side, where bandwidth, network congestion, and the 
size of the images and other files loaded into the page will cause the 
amount of time before the onload event fires to vary drastically. To state 
that more clearly, you will *never* accomplish this in any predictable way 
using a time delay, not even if you make the delay over 1 minute, because 
somewhere there is still a guy using a 14.4 modem.


ryanm 


___
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] The Delegate class ...

2006-06-14 Thread ryanm

What is the difference between that and this:

class SomeClass {
   private var a:Number = 3;
   function SomeClass(mc:MovieClip){
   var thisObj = this;
   // Set a reference to this
   mc.onRelease = function(){
   thisObj.onRelease();
   }
   }

   function onRelease(){
   trace(this.a: +this.a);
   }
}

   Not much, just cleaner and more convenient code. You code can be 
rewritten as:


import mx.utils.Delegate;
class SomeClass {
  private var a:Number = 3;
  function SomeClass(mc:MovieClip){
  mc.onRelease = Delegate.create(this,onRelease);
  }
  function onRelease(){
  trace(this.a: +this.a);
  }
}

   It's shorter, cleaner, less typing, and accomplishes exactly the same 
thing. Except you could also do this:


mc.onRelease = Delegate.create(_root.someotherclip,onRelease);

   ...or...

mc.onRelease = Delegate.create(_parent._parent,onRelease);

   ...and so on. You could, of course, do the same thing by defining 
thisObj as whatever scope you want to use, but it just seems cleaner and 
easier to do it with Delegate. The only downside being passing parameters, 
but that can be gotten around.


ryanm


___
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 coders content degrading

2006-06-13 Thread ryanm

I have the files all neatly bundled up in a zip file. I have a readme
describing my problem I have checked all my links (twice) to make
sure they all work.

   If you spent half as much time reading the documentation as you did 
packaging the files and typing that email, you'd have figured it out on your 
own already.


ryanm 


___
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 coders content degrading

2006-06-13 Thread ryanm

Your response to Try searching the archives or google for your answers
before asking the list is If you don't want to help me, shut up.
Apparently, petulant children have taken over.

   Excellent summarization. The problem is, this tells me more about you 
than it does about the list. This is probably your first time to see an 
email list go full cycle. Eventually you'll move on to another list that is 
better for you, it'll rule for a while, and then the same thing will happen: 
the newbs will take over, and you'll have to move on again. For me, having 
cut my teeth on BBSes, usenet, and gopher, the entire internet has gone to 
the newbs, and I'm waiting for the next internet to be invented so that I 
can move on. ;-)


ryanm 


___
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 coders content degrading

2006-06-12 Thread ryanm

I just seem to find myself scanning over/deleting instantly more and
more posts, whereas 8-12 months ago I was reading the vast majority

   It's cyclical, like everything else. In the absence of stimulating 
discussion of complex and interesting problems, some newbie questions and OT 
posts don't bother me. Keep in mind, though, that 8-12 months ago we were 
anticipating a new release, talking about what may or may not be in it, and 
what it may mean for the future of Flash. There has also been a FlashCom 
release, a Flex beta that includes AS3, and a MM was aquired by Adobe, so in 
the wake of all that, it would be surpising if it didn't seem a little 
boring around here for a while. ;-)


   I get, on average, around 500 real emails a day (as opposed to what 
catches in my spam trap and the crap that gets through), so I'm used to 
deleting the majority of them anyway. Deleting 100 a day to get to the 
handful that I want to read isn't a big deal for me.


ryanm 


___
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] Performance of Flash 8 filters

2006-06-02 Thread ryanm

I know the filters are built in to the player, but does this mean there
really isn't much performance issues at all? Has anyone seen any online 
test

results from such things?

   I don't have numbers because I haven't done tests for performance with 
the objective of getting numbers, but the filters do hit the processor 
pretty hard. As a general rule, if you have a bunch of objects and you want 
drop shadows on them all, it is more efficient to take a snapshot of them 
all as a BitmapData on every frame and apply the shadow filter to the bitmap 
than it is to apply a shadow to each object or to apply the shadow to a 
parent/container object.


   Basically, the more filters you use, the more noticable the performance 
hit will be, so just try not to layer too many of them or use too many 
instances. Instead, try to combine objects that need similar effects and 
apply filters to them all at once.


ryanm 


___
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] Weird OOP ability... Need a description of why, or at least some documentation

2006-06-01 Thread ryanm

MyTestClass(myInst).runTest();

   What's weird? You're just casting myInst as a MyTestClass, which 
contains the function runTest in its prototype.


ryanm 


___
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] OOP 101: Is import really necessary?

2006-05-25 Thread ryanm

Then how do you explain my results?

   Because some of those classes instantiate other classes (in the UIObject 
hierarchy), so those classes are compiled even though you didn't instantiate 
the first class. Importing *any* of the MM UI components will instantiate 
all kinds of lower-level classes, causing the entire UIObject hierarchy to 
be compiled even if you never use the class you actually imported.


ryanm 


___
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] Re: Flex vs. Flash IDE

2006-05-24 Thread ryanm

   To responde to your post in reverse...

For someone like me - someone who's not a Flash developer - the Flash IDE 
is
somewhat overwhelming, and has a bunch of things in it that don't even 
make

sense from a forms-based application development perspective.

   That's half of what I was saying: making an uber-IDE wouldn't make you 
or any other developer from a non-Flash background happy, it would give you 
a large and confusing interface that might make you wonder if it's worth the 
trouble. Meanwhile, the Flash designer-types would see such a release as 
largely useless, because they don't care about a better code editing panel 
in Flash. So when I say it's not a good business model, I don't necessarily 
mean  ooh, they're greedy and want to sell it to us twice, I literally 
mean I understand it wouldn't be a good decision to release it that way 
right now. However...


You've heard the expression good, fast and cheap - pick any two, right? 
I

don't think it would have been possible for Macromedia/Adobe to deliver a
good, affordable multipurpose IDE in a reasonable timeframe. It's not just
about code view, but rather the whole look/feel/approachability of the 
IDE.


   Frankly, I just need good, the other two are relative (not to mention 
being tax deductible ;-) ). What worries me is the previaling opinion that 
the Flash IDE doesn't need the features that are being built into Flex 2. It 
needs them *desperately*. Flex shouldn't be a seperate app, it should be a 
subset of the Flash Studio IDE (even better as an eclipse plugin), as 
should the classic Flash IDE. If all you need is to build timeline 
animations for banner ads or site intros, you just need the animation 
package. If all you need is to write code for forms apps, you just need 
Flex. But I want the whole studio, and I want it in one package so that I 
don't have to switch apps to work on different parts. Visual Studio isn't 
just a form designer IDE, it is much, much more than that. It lets you build 
both the client and the server-side code, the database connectivity, desktop 
applications and web applications, and so on. Flash needs to fill a similar 
space, and right now you have to either make a choice between the two or 
deal with working in both. Why can't I edit the html file the flash piece 
will be embedded in insoide the IDE? Why can't I edit xml data files in the 
IDE? Is there actually a good reason, or does someone just thing it's not 
important? I didn't mind paying for Visual Studio, I didn't mind working 
past the buggy and delayed releases, and I wouldn't mind the same problems 
from Flash. I may voice my complaints equally loudly on the appropriate 
forums, but that doesn't mean I don't appreciate what those apps have to 
offer. ;-)


ryanm 


___
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] Re: Flex vs. Flash IDE

2006-05-24 Thread ryanm

Look at building Windows apps--you can use C, C++, MFC,
Visual Basic

   All of which takes place in a single IDE: Visual Studio. Where is Flash 
Studio?



To build HTML Web Apps you might use all or a mix of Dreamweaver,
Fireworks, Photoshop, JSP, ASP, CF. Etc.

   Or you might just use Visual Studio, if the design team delivers 
finished assets. The catch being that the finished assets in Flex are often 
Flash files, which require code that the designers often can't write, so you 
need to be able to modify them. The overlap is larger than I think Adobe 
realizes.



As we release Blaze and we have AS3 in both Flash and
Flex, it will become easier still to integrate the two, and you will see
more and more focus on workflow over time.

   I look forward to this, because this workflow integration is essential 
to many of us, where the roles may not be as clear cut as designer, 
developer, etc. The power of Visual Studio is that layouts put together by 
a designer generate code that developers can modify directly. I can't count 
the number of times I've had to completely rebuild design assets that were 
handed to me in a Flash file because the designer couldn't write a line of 
code and did absolutely everything with the timeline..



In fact, back then, I was running the FreeHand product line at
Macromedia (among other things)--should we have said, why
add another vector graphics tool to our product line, lets just
add a timeline to FreeHand?  It would have been a frankenstein.
I think the same is true of FlexBuilder and Flash.

   Frankly, I think the fact that you see those as anologous may be the 
fundamental problem. FreeHand produces static output, more like photoshop, 
illustrator, et al.  Both Flash and Flex produce interactive content, and 
are in no way comperable to FreeHand; Flash is more like AfterEffects than 
FreeHand. Saying that there is some overlap is vastly understating the 
facts. The bottom line is, the designers who work in design departments very 
often can't write an if...then statement, and don't want or need to learn 
how to. But basic Flash assets can't be developed without code, which means 
developers *must* get involved. Your vision of segmenting the workflow is 
ruined by the very fact that Flash is so powerful and flexible: the 
developers *muist* be involved in the design of assets regardless of whether 
it is a small company, one- or two-man team situation, or a large-scale, 
multi-team situation. Why does Dreamweaver have a designer view and a 
developer view, but each has access to the features of the other? Why does 
Visual Studio allow a designer to lay out an app and then let the developer 
come in and add the code that makes the assets do their thing? These are 
both clearly because the teams must overlap, and forcing designers and 
developers to use different tools would be enough to drive many users away 
to other tools that implemented both. I would happily move to a code-only 
development paradigm, but my clients and their design departments won't let 
me, and I think that problem is only becoming more widespread as the 
fundamental trend of RIA development continues.


Just my $0.0015 (adjusted for inflation ;-) )

ryanm 


___
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] Re: Flex vs. Flash IDE

2006-05-23 Thread ryanm

1. Build a single uber-IDE capable of serving traditional Flash developers
and Flex developers. Of course, given the fundamental differences between
how these development models work, this would essentially consist of
shoehorning two IDEs within one program - there would be very little
commonality between them. Because they'd be building all this stuff from
scratch, it would presumably be more expensive and less reliable.

   I don't necessarily agree with you here. The Flash IDE *could* have a 
robust and useful code view that could also be used to build flex apps 
without ever creating an fla file. That could be used to edit classes and 
even timeline code, while the traditional Flash IDE view could be used to 
make fla files, edit timeline animations, etc. I think it *could* be one 
uber-IDE, as you called it, without necessarily being either more expensive 
or less reliable. The root of the problem is that it's more profitable to 
have two IDEs, because one makes developers from other languages happy and 
one makes the users of previous Flash versions happy, and in the middle is a 
rather large group of people who will have to pay for both. Making one IDE 
would only make those in the middle happy, and would require Adobe to 
rethink a lot of their existing code base instead of simply polishing up 
the existing code base. More work and less profit doesn't make for a good 
business model.


ryanm 


___
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] \r

2006-05-16 Thread ryanm

Remove an empty string  from the second statement.  Is it also expected?

   Well, it seems inconsistant, but it's not really unexpected. Without the 
empty string both hard returns are appended to the end of the previous line, 
which isn't technically correct, but makes sense in context. With the empty 
string there is an empty line (your new line), so a line feed is used to go 
to the next line. Hard return ends a span of text by breaking to the next 
line. Line feed passes over an empty line without moving the cursor, which 
is why a hard return (a.k.a. a carriage return) is needed at the end of a 
span of text. It's old-school logic based on how it would render on paper. 
If you used a line feed without a carriage return, the proper way to 
render it would be to move down one line without moving to the first column. 
Without the empty string, though, there is no new line to pass over, so the 
html kluge is to simply hard return again.


ryanm 


___
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] \r

2006-05-15 Thread ryanm
Even if you manipulate newline only with string, you might get annoying 
result:


// Frame action
var my_str:String = newline;
my_str += +newline;

// [Debug]  [List Variables]:
Variable _level0.my_str = ¥n¥r

   That's expected. One line break is a hard return, two of them is not 
two hard returns, it is a hard return and a line feed.


ryanm 


___
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] Saving images server-side...

2006-05-10 Thread ryanm
   I know we've been through this and the answer is always you'll have to 
send it to a server-side script, but has anyone come up with a usable 
solution to modifying bitmap data and then resaving it over the web? I'm in 
a .NET envornment, using AS2/Flash 8, and I need to make thumbnails out of 
larger pictures (with user interaction), and then save them back to the 
server. I wrote an RLE class a while back, but it seems like there should be 
a more efficient way. Has anyone implemented anything that is fast enough to 
be usable in a business enviornment? Freebie code would be great, but even 
hints as to how such a thing was implemented in a usable fashion would be 
just as good.


ryanm

___
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] Solved: XRAY breaks my movie

2006-05-04 Thread ryanm
ok i am stupid! i deleted the component from the library and now my  movie 
compiles again. but i still wonder what that recursive problem is about.


   Xray crawls your project, getting info about all of the objects (movie 
clips, arrays, etc). You need to turn off autoupdate so that it isn't 
constantly trying to loop through everything. It happened to me on a big 
project too.


ryanm 


___
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] Solved: XRAY breaks my movie

2006-05-04 Thread ryanm
How do you turn on autoupdate?  I've installed the latest xray connector 
and
standalone, and looked at all the menus in the standalone app, and looked 
at

the parameters on the connector.  I don't see autoupdate anywhere.  If
autoupdate would keep me from having to take screenshots repeatedly, I 
would

really like that.

   I think it's called Recursive Searchs? or something like that on the 
Tools menu. If you turn it off, it won't recursively reflect the whole 
application, you have to click on a node for it to update the children.


ryanm 


___
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] Newbie security issues?

2006-05-03 Thread ryanm
I would also be very interested in reading about ways to protect content 
that is embedded in a flash movie (especially fonts). Is it possible to 
include art and fonts in a swf file, in a way that makes it impossible to 
get those objects out of the swf movie?


   The bottom line is, if you put it on the internet, it is possible to 
steal it. There is no such thing as a sure way to protect anything that is 
publicly available on the web. What you can do, however, is make it 
difficult to dissuade all but the most determined hackers. If someone is 
sufficiently determined and skilled, there is no security that will keep 
them out. But your average browser isn't going to spend the time and effort 
in most cases. But all it really takes to steal artwork is alt + print 
screen (capture window to clipboard). So the question is, how secure does it 
really need to be? The usual way this is done is only low-res, low-quality 
assets are used online, that way someone who steals it will have to work 
with a crappy, compressed file. Beyond that, it takes more effort to pull an 
image from an swf than it does to right-clck and save as, which is often 
enough to keep most people from stealing it.


ryanm


___
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] Newbie security issues?

2006-05-03 Thread ryanm
I think you are right that there is just no way to protect content in a swf 
file. Maybe the question to ask is, how can we go about convincing fearful 
IP holders to allow their IP to be embedded in the swf format.


   More importantly, there is no way to protect IP in any form if you put 
it on the web. It can all be stolen by someone who is sufficiently 
determined. The whole idea behind the internet is making IP available, it is 
fundamentally contrary to the way the internet works to try to keep people 
from being able to aquire copies, since copies are required to view it in 
the first place. So forget about keeping people from getting the images, you 
siply can't. If they can see it, they can steal it. However...


You mentioned relying on the law, and I think that's the right angle. In 
general, do you really have to worry about what some script kiddies might 
do with your content once they've stolen it? It seems most of these kinds 
of concerns are just a waste of worry - it's professionals that license 
IP, not script kiddies that just want to make a l337 logo for their 
personal website. Just have a stack of cease and desist papers ready to go 
out when you spot an IP violation.


   Like you said, are you (and by you I mean your client) worried about me 
downloading a picture and making it my desktop or using it on a flyer for my 
band, or are you worried about other companies who will actually profit 
through the use of your IP? If you're worried about the former, you're 
excessively paranoid and should keep your stuff off the internet entirely. 
In fact, you're probably better off cancelling your ISP account alltogether, 
because they use it to listen to your thoughts. ;-) If you're worried about 
the latter, your recourse is after the fact, when you can show that their 
use is infringing, and your venue is through the courts. You can't stop 
people from stealing it, and money spent trying to stop IP theft is very 
often money wasted. What you *can* do is enforce your copyrights through the 
courts. Of course wrapping it in flash eliminates the causual save as 
theft, but that's about all it does as far as security is concerned.


ryanm 


___
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] quick question about buttons

2006-05-02 Thread ryanm

You can do this:

myButton_btn.onRelease = myButton_btn.onPress = myButton_btn.onRollOver =
function(){
doStuff();
}

   In my experience that doesn't work. It *should*, but for some reason, 
the function never gets assigned to most or all of the events. Better is to 
use Delegate.


import mx.utils.Delegate;

function doStuff(){
   // code...
}
myButton_btn.onRelease = Delegate.create(this,doStuff);
myButton_btn.onPress = Delegate.create(this,doStuff);
myButton_btn.onRollOver = Delegate.create(this,doStuff);

   What that does is assign the function doStuff to the event, and it 
will be executed within the scope specified (in the above example, this is 
the scope). It's still 3 lines, but at least it's not a new function 
defenition for each line, it's just an assignment.


ryanm 


___
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] lightweight 3rd party combobox component recommendation...

2006-05-01 Thread ryanm
I need a lightweight 3rd party combobox component, and don't really have the 
time to go download a bunch of demos and try them out. Can anyone recommend 
a good one? Most important is size, easy skinnability for the designer types 
who will mostly be using it is second, and complex functionality like 
autocomplete and stuff like that is lower on the list.


TIA,

ryanm 


___
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] A different kind of FOR loop ???

2006-04-29 Thread ryanm

for (posArray = [], i = 0; i  this.length; posArray[i] = i++) {}

   It's just shorthand. The first part, seperated by a comma, is just a 
declaration within the scope of the loop. So posArray and i are declared and 
a value assigned to them. The second part is a simple conditional: 
ithis.length. When i is = this.length, the loop will end. The last part 
just assigns the value of i to the array and then increments it, in that 
order. If it said posArray[i] = ++i instead, it would increment i before 
assigning the value to the array.


   All that's really different about that loop is an extra declaration in 
the declaration parameter and an assignment in the increment parameter. It's 
valid syntax for most implementations of ECMAScript, and would work in 
JavaScript too.


   What confused me was the use of this.length, until I realized it was a 
prototype for the Array object, and this.length would be the length property 
of the array.


ryanm 


___
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] Are you a help vampire?

2006-04-27 Thread ryanm
I've been a member of a group , more strict than any other groups. It's 
a place for C/C++ programmers where Help Vampires more than often get 
these replies :


   Heh, that's old school. Back in the day, when all this kind of 
discussion took place on newsgroups, that was standard fare. Except that 
there wasn't any google, and vampires were told to restate their questions 
in the form of a haiku.


   Ah, the good old days when flame cascades were relegated to afk-mn 
(alt.fan.karl-malden.nose for the uninitiated)... good stuff. There is no 
cabal.


ryanm 


___
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] Are you a help vampire?

2006-04-26 Thread ryanm

It's true that females are not as inclined to become Help Vampires.
We will ask for directions sooner than most men, but we will consider
our options considerably before asking technical questions.  And our
brains just work better anyway, really. :P


   Just not at forming proper sentences in English, I guess... ;-)

   Normally I wouldn't stoop to a spelling lame, but when you close your 
email with our brains just work better, you're asking for it. :-P


ryanm 


___
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] New wrinkle in IE activation issue...

2006-04-21 Thread ryanm
Do you happen to know of any way to either stop a loading activex or to 
prevent it from loading?


   Yes, don't write it to the page until you are ready for it to load. HTML 
is stateless, it's either there or it isn't. If it's there, it will load, if 
it's not, it won't. Use DHTML to add the tag to the page when you are ready 
for it to start loading.


ryanm 


___
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] New wrinkle in IE activation issue...

2006-04-21 Thread ryanm
Following my previous email, I thought of a better way to test 
display:none

with flash.

   Display:none causes the object not to be rendered, but it is still 
instantiated in memory. The object exists and will begin loading, but but 
will not be displayed or consume any real estate on the page. The visibility 
style doesn't affect how the element is rendered, it only affects whether it 
is visible or not, so an invisible elemnt still takes up real estate on the 
page, you just can't see it. So if you have a table with display:inline that 
is invisible, the space will be reserved for the table, but it will not be 
rendered to the page. The display style sets the display mode of the element 
(inline, block, or none), and determines how page space is reserved for the 
element. It does not, however, tell the element anything at all about 
whether to begin loading, elements will load according to their defined 
behavior as soon as they exist on the page.


ryanm 


___
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] New wrinkle in IE activation issue...

2006-04-20 Thread ryanm

Maybe it's time for Adobe to start promoting the use of
Firefox/alternative web browsers...

   Why? ActiveX is a far superior plugin framework to Mozilla plugins. 
You're only one step from the slashdotters, who say you should just stop 
using Flash alltogether.


ryanm 


___
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] New wrinkle in IE activation issue...

2006-04-19 Thread ryanm

Ryan you seem to have hacked this problem inside and out
with no luck. Could you and others with a solid understanding
on this problem explain exactly what has been tried as work
arounds? Maybe we can find a solution if we're all caught up
with what's already been done.

   As best as I can tell, it's a bug in the new patch and it's not fixable 
(except by MS). In some cases, enabling client-side script debugging and 
rebooting fixes it, in other cases it doesn't. IMO, it's just a buggy 
update.


ryanm 


___
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: Re: [Flashcoders] New wrinkle in IE activation issue...

2006-04-19 Thread ryanm

This might be a question with an obvious answer.
Why is this (EOLAS) problem only occurring with IE an not with other 
browsers?

Is the way IE embeds different to how other browsers handle the embed?

   Nope, EOLAS plainly stated that they are doing it to hurt and take money 
from MS, and that they will not be going after Mozilla (FireFox) even though 
they knowingly violate the very same patent. MS has deep pockets, so when it 
comes time to sue, they're the ones that take the brunt of it.


   And no, there was no court order forcing MS to do this, but there was a 
court order telling them to comply, either by paying for license or removing 
the functionality. They chose to remove the functionality, which was the 
right decision, no matter how painful it is for us developers.


ryanm 


___
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] New wrinkle in IE activation issue...

2006-04-19 Thread ryanm
This article shed's a little more light on the reality of Microsoft's 
browser changes.


http://it.slashdot.org/article.pl?sid=06/03/31/1840255

   I have a hard time taking anyone who describes an article on slashdot as 
shedding more light on reality seriously. :-P


ryanm 


___
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] New wrinkle in IE activation issue...

2006-04-18 Thread ryanm

You need to load your flash into your HTML from an external
.js file.  See adobe/macormedia's site for more information.

   No, we all know about that. This is happening *after* using the 
innerHtml method to write object tags. All of the workarounds fail in some 
cases, apparently diue to an MS bug.


ryanm 


___
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] Active X and Microsoft IE ...

2006-04-11 Thread ryanm

What happens to a current browser if you make the switch?


   Nothing, it degrades gracefully.

ryanm
___
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] large projects

2006-04-05 Thread ryanm
This is a general question about workflow. For a long time I have  been 
working on Flash projects independently. Over time everything  has gotten 
bigger. Projects are now at a scale where I must  collaborate with other 
Flash programmers. I am looking for  suggestions about best practices for 
organizing and dividing up work  on large Flash projects. What are 
problems and solutions that people  have encountered when sharing work?


   I would just echo Aron's and Jester's posts, you're crossing a line and 
moving from website development to application development, and you'll 
need to treat it that way. Likely the most difficult thing to convince your 
higher-ups about will be the necessity of redundancy and planning. They seem 
expensive at first glance, especially if they are used to telling you what 
they want and seeing it show up on the production server a week later. But 
as soon as you add other developers into the mix, planning ahead becomes 
vital, and having a staging enviornment that is an exact duplicate of your 
production enviornment is critical. And nothing should go to production 
without regression testing. It will make things take longer, but not nearly 
as long (or expensive) as putting bad or incompatible code out to production 
and having to go troubleshoot it and fix it there.


   And get familiar with your source control, it is a life saver.

ryanm 


___
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] Using Flash with Ruby on Rails

2006-03-24 Thread ryanm

'It influences a part of the brain called Shatner's Bassoon'


   I'm stealing that. :-P

ryanm
___
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] Wherefore the evils of _global?

2006-03-23 Thread ryanm

What I don't understand -- and I hasten to say I have no opinion on
the matter, yet -- is why _global is so shunned.  After all, _global is
exactly where AS2 classes are located.  Is this a religious issue?  Is it
because of how _global gets shared (or not?) among dynamically
loaded SWFs?

   Because global variables are contrary to the basis of OOP, which is all 
about abstraction and encapsulation. If you need to store variables 
somewhere so that they can be reached anywhere, use a singleton, or a static 
class, or an application object, and so on.


ryanm 


___
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] Wherefore the evils of _global?

2006-03-23 Thread ryanm

Okay, I'm with you.  That jibes with my understanding of OOP in
a universal sense.  In ActionScript, however, classes *are* properties
of the _global object, which is what prompted my question.  Programmers
in general may agree to avoid global variables in principle, and what
I'm hearing is that ActionScript programmers, in a sense, pretend
_global isn't being used unless invoked explicitly.

   Essentially, yes. The fact that classes are stored in _global is kind of 
like the red-headed bastard child we don't talk about. ;-) Macromedia used 
an ugly kluge to make it look kind of like a real namespace, so we look the 
other way and pretend it's not there until they fix it. Just because that's 
how they did it doesn't make it right, and it doesn't mean it should be part 
of good AS coding practices.


   Global space has its place and can be very useful. But it can also be a 
debugging nightmare, and as such it is best to avoid it except in very 
simple cases. With an application object you can use getters and setters to 
track changes and raise events when things change, that way you know who set 
that global property and why, you can do validation on the values being set, 
etc. It's not an absolute no-no to use _global, but if you can save yourself 
some headaches in integration and debugging by going slightly out of your 
way not to use it, it's time well spent.


In my opinion, of course...

ryanm 


___
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] What's your job title?

2006-03-10 Thread ryanm

Here's a non-technical question: what is your job title?

   My business card is all white, with just one word in the middle: God. 
;-)


ryanm 


___
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 Web Browser Component

2006-03-09 Thread ryanm

Yeah, Zinc lets you embed an IE ActiveX control; it basically positions
it over top of your Flash.  However, that's EXE only.

   H... flash, with a web broswer control in it... with a flash piece 
in it... 8-O


ryanm 


___
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] Do getters and setters add any size to a file

2006-03-07 Thread ryanm

In particular doe a bunch of getters and setters contribute to
end weight such that if a client wants the lightest outcome they
might be a factor or is it negligable.

   In general, code changes are not going to add noticable weight to the 
bytecode. Your library assets will usually be the bulk of the swf files 
weight, and changes/additions in code are going to be so small as to either 
be unnoticable or will be measurable in hundreds of bytes, not kilobytes.


   Obviously, there are exceptions. Adding heavy classes like compression 
algorhithms, or anything with a big library or hash table, will obviously 
add more weight, but even then it is usually only several kilobytes.


ryanm 


___
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] 2D first person shooter

2006-03-05 Thread ryanm

 2D First Person Shooter


I'm not sure such a thing is possible.

FirstPerson != 2D
FirstPerson == 3D


   You can fake it with sprites and aligned slices, like this:

(use the arrow keys to move around)
http://www.horsefish.net/hoth

(pick a model, perspective, and use the slider to rotate)
http://www.horsefish.net/hoth/objectmapping/

   That was something John Grden and I were kicking around for a while, but 
we both got busy with other things. It uses the same methods that were used 
in the first FPS games, like Wolfenstein and Doom.


ryanm 


___
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] eval gone in AS3, how to get reference to mc via target name?

2006-03-04 Thread ryanm

With the eval being gone in AS3, does anyone know how to get to the
reference of a movieclip (via the target name string) without using eval?
I know we can instantiate the class via the _global namespace but not
positive about mc's.



   Using the object collection, like you should've been doing since eval 
was depreciated.


parentclip[clipname]

   Works for nested targets too:

parentclip.subclip[clipname]
   or
parentclip[subclip][clipname]

   Like this:

trace(parentclip[subclip][clipname]._x);
   or
trace(_root[clip1][clip2][clip3][clip4]._x)

ryanm 


___
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] eval gone in AS3, how to get reference to mc via target name?

2006-03-04 Thread ryanm

The problem is when you get an entire string (the
target name), you just want to get to the reference in
one shot (e.g. mc1.mc2.mc3).  The collection method
requires parsing before you can get to the reference.
I was hoping Macromedia would provide at least a
similar way to get to it when they retire eval in AS3.

   Don't get the whole thing as a single string. Change your approach, 
rather than trying to find ways to make the language do something it's not 
intended to do.


ryanm 


___
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] RIA patent granted

2006-03-02 Thread ryanm
so, here in europe we dont have to concern about all this 
softwarpatentshit as it isnt legal here...


   Actually, European patent and copyright law is even more ridiculous than 
US patent and copyright law. You have such wonderful concepts as inherent 
copyright, which means the moment you put any work in a concrete medium, it 
is automatically copyrighted without the need to file or even mark it as 
copyrighted, causing years of endless grief to anyone wanting to use any 
software published to any internet medium, say for example, this mailing 
list. So, in other words, if you've ever copied and pasted code from this 
email list without express written consent from the original author, and you 
live in Europe, you are in violation of EU copyright law. If you've 
downloaded code samples from any website and used them in production work, 
you are in violation of EU copyright law. And so on. The major difference 
is, Europe's enforcement is an even bigger joke than it's laws.


ryanm 


___
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] RIA patent granted

2006-03-02 Thread ryanm

That's suprising information, except, I wonder its accuracy... No offense
friend, so many come and run a mouth, I don't know what to take seriously
anymore.

   Don't expect me to do your homework for you. US copyright and patent law 
is bad and getting worse, but it is largely because some idiot thought it 
would be a good idea to model it after the current EU copyright and patent 
law. The fact that Europe had inherent copyright and both patents and 
copyrights that last into perpetuity was used as justification for many of 
the stupidest parts of the DMCA and other current US legislation. Despite 
the fact that it directly contradicts the US Constitution.


sigh... my government...

ryanm 


___
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] RIA patent granted

2006-03-02 Thread ryanm

A good copyrightexample btw. is the micky mouse


   Except that mickey Mouse should be in the public domain already.

ryanm
___
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] v8 HTML Rendering bugs... and broken asfunction?

2006-02-22 Thread ryanm
   I have this high volume chat app, and I was having a problem before 
because we were compiling to a v7 swf, and when people would view it in the 
v8 player the formatting would occasionally go wacky. Basically, everything 
would be fine for a while, but then every now and then, when the field was 
updated, all of the text would wrap at something like 50 pixels, which 
pretty much makes the text unreadable. Then as soon as the next message was 
added it would straighten itself out. I hammered on this problem for a week 
straight, trying all kinds of different things, and used xray to view the 
HTMLtext for the field to see if there was some broken HTML in there that 
was screwing up the way it rendered. Nothing. I even tried going back to 
using plain text and TextFormat objects, but it was way too processor 
intensive to loop through the whole chat history and mark up the names and 
stuff every time a new message showed up. So I gave up and tried exporting 
for v8, figuring that it was some kind of bug with v7 text fields under 
Saffron or something like that.


   Now I have a whole new problem. Everything renders great, the old bug is 
gone. But my chat history field allows you to click on a user's name to view 
their profile, using asfunction to call a method in the main class (a 
href='asfunction:_root.Main.SelectUser,123' where 123 is the user's id). 
This works fine too, except that when you click on a user name, the 
formatting breaks. Worse, it's like the closing /a tag gets removed, 
because all of the text in the message becomes a link, and incidentally, 
becomes bold and underlined, just like the user's name. It doesn't happen 
before you click, everything renders just right before you click, but as 
soon as you click on a user name, the whole thing breaks. What is up with 
that?


   Can anyone shed any light on either of these problems? Optimally, I 
would like to go back to compiling for v7 and just not have the formatting 
bug, but if that's not possible, I'd be happy just to have asfunction work 
properly under v8.


   I can post sample code, html output, or screenshots if it will help.

ryanm 


___
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] htmlText formatting problems...

2006-02-10 Thread ryanm
   I need to find out if this is a known bug, or if it's something unique 
to my app. What I have is a chat that uses htmlText to display the chat 
history. Sometimes, for no apparent reason, the text seems to break at about 
every 2-3 words, wrapping so that it is impossible to read. As soon as the 
next message is rendered it formats correctly, but it seems like either some 
invalid html is being put into the field (which I've checked for, and all 
the html is valid), or the width of the text field is being read incorrectly 
internally, causing the text to wrap at a ridiculously short width.


   What is this, has anyone seen this bug before? What can I do about it?

ryanm 


___
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] htmlText formatting problems...

2006-02-10 Thread ryanm
   No, the html that is being pushed into the field all looks good. I seem 
to remember a problem with the htmlText truncating a few characters off the 
end of the string, though, which could jack up html formatting pretty quick, 
but it happens so intermittantly that it's unlikely that this is the 
problem.


ryanm 


___
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] How do you code your Flash applications?

2006-02-06 Thread ryanm
What are the situations that you have come across where only manual  depth 
management would work? Do you have other ways of managing depth?


   It's not a matter of getNextHighestDepth not working, it's a matter of 
controlling the depth to avoid unexpected behaviors. I've never had a 
problem with accidentally creating a movie clip at the same depth as 
something else, and that's one less thing I have to think about when 
debugging.


   The only time when setting depth constants was inconvenient for me was 
in a windowing system I built, in which case I built a window manager class 
that managed depth for me. The window manager class kept windows on a 
timeline where nothing but windows would ever be created, and always kept 
the depths of the windows consecutive, so when a window was closed it was 
swapped to the top before closing, and there were never gaps in the depths. 
I *could* have used getNextHighestDepth and saved myself the trouble of 
swapping windows to the top before closing them, but then if a user left the 
app open overnight and used it for several days in a row, they could 
theoretically open enough windows to hit the 65,535 depth limit and 
unexpected things could happen. So I went ahead and wrote the extra 10 lines 
of code to keep the depths consecutive, and circumvented the problem before 
it ever occurred.


ryanm 


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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-05 Thread ryanm
and you want to add something between the content and the footer,  then 
just add it in between:


buildHeader();
buildContent();
buildMoreContent();
buildFooter();

Guess where the new stuff ends up? No figuring out what depth to  assign, 
no re-assigning depths, no collisions. Nice and simple.


   What if it's not supposed to be built at the same time as the other 
elements? There are thousands of what ifs that might make your example not 
work. All of this becomes moot with the AS3 DisplayList, but as long as you 
have to work with the current depth system, it is a good idea to keep track 
of where you are putting stuff, rather than depending on execution order to 
place them in the right depths.


ryanm 


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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread ryanm

No, but what Ryan describes is exactly what getNextHighestDepth() is  for.

   Not at all. If you have a content container at 1, a navigation container 
at 2 (so that drop downs lay on top of the content), and a footer container 
at 3, and you need to add another content container (for rotating ads or 
something), you want it to be next to the other content in depth so that 
it's under the navigation. I avoid getNextHighestDepth like the plague, it 
is an evil monkey living in your closet that wants to kill you. Or at least 
be a major pain in the ass while you try to figure out why you can't control 
the z-position of your elements. I don't even use it in loops when I'm 
generating a bunch of movie clips, like rows in a select box or something, I 
use the iterator for the loop, that way their depth and their index in the 
array is always the same. The only time I've ever used getNextHighestDepth 
was in one-off projects where I didn't know or care where the elements ended 
up because they were created and forgotten. Anything that might have to be 
referenced or moved later should probably have its depth set explicitly.


ryanm 


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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread ryanm

I completely agree with what Ryan says, but if you still
want to use getNextHighestDepth(), as Nathan
commented, you could do something like this and get a
similar result:

...getNextHighestDepth() + 10;



   No! Bad bad bad! Now you *really* have no way to find your objects. Why 
not just do this:


getNextHighestDepth()+10*152/36%23*Math.random()*362;

   ... it would be equally as useful. The whole idea is that you keep 
things at *predictable*, and whenever possible explicitly defined, depths so 
that things are easy to manage. If you need getNextHighestDepth, that means 
you don't know what the current highest depth being used is, and that means 
you aren't in control of the z-depth of your objects. That's a bad thing. At 
any given time, you should be able to say I know that objects A, B, C, and 
D are at depths 35, 36, 37, and 38, so it is safe to put this new object at 
40, and so on. And even better is to set constants in the class that 
defines those objects, that way you can just add a new constant for the new 
object, and you can see what the other depths are for reference when you are 
defining it.


ryanm 


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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-02 Thread ryanm

1) If I can help it, I keep all my code in one place.  All in one
frame, all the better.  All in one swf?  Better yet.


That's one of the worst things I've ever heard.  Maybe you should get on
medication for your OCD.


   Sigh...

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


Re: [Flashcoders] Tell me more about _global

2006-02-01 Thread ryanm
7/10 are interactive advertising, which means that I have usually 2 
weeks(at
best) to do something that doesn't relate and never had the time to make 
me

own framework.

   Has it occurred to you that if you built a class and got in the habit of 
using it, it would take exactly the same amount of time and have 10x the 
flexibility of your faster way? See, the whole idea of an architecture 
is to not have to redesign it for every app; you resuse it every time so 
that once it's there, you can use that codebase to build anything you want.


   All this talk about real programmers and theorycoders is pretty 
laughable. I especially like the part about using OOP techniques as job 
security so that they can't bring anyone else in to read your code, when 
that's actually pretty much the opposite of the reality of the situation: 
any *competent* programmer could understand it, and your problems with these 
methodologies speak more about you than your breadth of experience.


   I routinely have Java and C# programmers do code reviews on my AS2 code. 
You know how that's possible? I use OOP techniques, so that it is apparent 
what the code is doing even though the guy doing the review doesn't 
understant the specific of the APIs I'm accessing. They don't need to know 
specifically why these APIs work the way they do, all they need to do is 
read my inline comments and look at the code changes, and it is immediately 
apparent to them what was changed and why. Any of those guys could replace 
me with a bit of time spent learning the APIs, the syntax is essentially the 
same and my codebase is clean and well documented, so it would be easy for 
anyone with any experience to take over it with a minimal learning curve.


   It's true, designing interactive banner ads generally does not require 
these lengths, but neither do banner ads usually require maintenance, so 
what difference does it make? If you build one-off, deliver-it-and-forget-it 
Flash work, good for you, your coding style is irrelevant, both to you and 
to the rest of the world, because no one will ever have to look at it again. 
For those of us who do actually have to revisit and maintain code, and who 
sometimes inherit large codebases, these things are not only important, they 
are essential.


I'll just close with a great quote from earlier in the thread:

'Not understanding why something is done in a particular way does not make 
it lame.'


ryanm 


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


Re: [Flashcoders] Noise Cancelling in Flash

2006-02-01 Thread ryanm

8.5 actually provides write as well as read access to the
waveforms? I haven't looked into it much, but i've only
seen people making visualizations of sounds, not actually
modifying or generating them in real-time.

   I don't know, but there was talk of it at one time. What I said was *if* 
8.5 provides low-level access, then you can make your own filters. ;-)


ryanm 


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


Re: [Flashcoders] clearing variables from memory after use...

2006-02-01 Thread ryanm

my_var = null; and delete my_var; should do exactly the same
thing...delete doesn't actually delete the object, only the reference
to the object. it doesn't get removed from memory until later
(when the GC feels like it)

   Well, technically they do *slightly* different things, but usually with 
almost the same end result. Delete destroys the reference, allowing the 
object to be cleaned up by the GC (assuming there are no other references to 
it), and assigning null to the reference reassigns the reference to a 
different object, so your original object will be cleaned up by the GC, 
however, the reference will still exist, it just points to null. Delete 
actually dumps both the object and the reference (eventually, when the GC 
gets around to it), while assigning null only dumps the object (again, when 
the GC gets to it).


ryanm 


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


Re: [Flashcoders] Tell me more about _professionalism

2006-02-01 Thread ryanm
but as far as type-checking goes, I'm going to take as much 
of it as I can get.



   1us3r n3wb!!! l0l!

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


  1   2   >