Re: [Flashcoders] Good component sets? (was: Re: XP Components gonebad)

2006-06-22 Thread judah
While not trying to pimp my own stuff I'd like to add 
http://drumbeatinsight.com to the list. It is a small set of components 
that covers what I think were missing most from the V2 components. They 
work with all the V2 components, extend them and fixes what I considered 
were the main problems with them. If you want, check them out. They are 
as up to date as one month ago, with version 3, and you can purchase the 
source code for them if you need it.


Ville Walveranta wrote:
The documenation is detailed, but there is so much stuff in the  
XP components that the documenation would have to be massive 
to cover it all.



The XP Components documentation is mostly autogenerated (from code) with
AS2DOC and while it describes the classes' methods and properties fairly
well, IT HAS VIRTUALLY NO CODE EXAMPLES! That annoys heck out of me; just
*one* simple this-is-how-you-instantiate-XP-Component-from-custom-class
example would have made my day (or, two weeks, rather). Instead all examples
use their xp.system.Application.Run() mehtod. Perhaps this means that's the
only way to use them, but why?

They're in Hong Kong, I think.

Ville

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Todd Hivnor
Sent: Wednesday, June 21, 2006 16:57
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Good component sets? (was: Re: XP Components
gonebad)

I just posted a similar question, look for the thread with subject line 
Best component set for Flash 8 / MTASC development?


Quickly, tho, I'm feeling the same way: 
 There seems to be a lack of good component 
sets these days.


The XP components look very comprehensive, 
and have good keyboard control. But they don't 
seem to be under active development. 
The lead developer has responded to my initial questions,

but seems to be in a far east timezone so responses
take full day to get. The documenation is detailed, 
but there is so much stuff in the  XP components
that the documenation would have to be massive 
to cover it all. I haven't spent too much time with them,

but haven't been able to get a lot done in the time
I've spent. 


There are a couple of open source projects under
development, but are in either alpha or beta state. 

Ghostwire has poor keyboard control. 


David Rorex [EMAIL PROTECTED] wrote: There seems to be a lack of good
component sets these days.

Ghostwire: Maybe the best, but done in old-style AS1
mCom: Pretty good, but a couple showstopper bugs, little to no support from
developer. poor documentation.
XP: see previous message
MM v2: bloated, bugs
Flex 2: requires flash 9

What am I missing here? Are there any other full component sets I don't know
about?

-David R


-
Sneak preview the  all-new Yahoo.com. It's not radically different. Just
radically better. 
___

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

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


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

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

  



--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Adding more than one icon in Tree components

2006-05-25 Thread judah
If you want to use another icon from the library you can use the 
Tree.iconFunction or the Tree.iconField property. 
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part6_Component_Reference.html


If you want to load in an external image say from a URL then you would 
need to create a custom cellrenderer like this one 
http://www.drumbeatinsight.com/examples/dndTree/dynamicimages/dndTreeDynamicImages.html
This was a bit tricky because the icon is not part of the cell in the 
Tree component.


Best,
Judah

Santhakumar K wrote:

Flashcoders,
  Is it possible to add two icons in the Tree components. In the 
component

reference library it is mentioned that we can able to modify icon in the
existing icon field.

Thanks,
santhakumar
___
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




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Adding more than one icon in Tree components

2006-05-25 Thread judah
Sorry, that link is supposed to point to 
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?href=3713.html


judah wrote:
If you want to use another icon from the library you can use the 
Tree.iconFunction or the Tree.iconField property. 
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part6_Component_Reference.html 



If you want to load in an external image say from a URL then you would 
need to create a custom cellrenderer like this one 
http://www.drumbeatinsight.com/examples/dndTree/dynamicimages/dndTreeDynamicImages.html 

This was a bit tricky because the icon is not part of the cell in the 
Tree component.


Best,
Judah

Santhakumar K wrote:

Flashcoders,
  Is it possible to add two icons in the Tree components. In the 
component

reference library it is mentioned that we can able to modify icon in the
existing icon field.

Thanks,
santhakumar
___
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







--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Adding more than one icon in Tree components

2006-05-25 Thread judah
Well, with a cell renderer you can add 10 icons if you wanted. A cell 
renderer lets you attach movieclips, controls, images, etc through code 
to the space in the row movieclip directly to the right the node icon. 
It lets you draw the row rather than the Tree.


Santhakumar K wrote:

Judah,
I saw it is good. But I need know is it possible to add two Icon 
fields in

one  tree node.
Thanks,
santhakumar




On 5/26/06, judah [EMAIL PROTECTED] wrote:


If you want to use another icon from the library you can use the
Tree.iconFunction or the Tree.iconField property.

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part6_Component_Reference.html 



If you want to load in an external image say from a URL then you would
need to create a custom cellrenderer like this one

http://www.drumbeatinsight.com/examples/dndTree/dynamicimages/dndTreeDynamicImages.html 


This was a bit tricky because the icon is not part of the cell in the
Tree component.

Best,
Judah

Santhakumar K wrote:
 Flashcoders,
   Is it possible to add two icons in the Tree components. In the
 component
 reference library it is mentioned that we can able to modify icon 
in the

 existing icon field.

 Thanks,
 santhakumar
 ___
 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



--
Always bear in mind that your own resolution to succeed is more 
important

than any one thing.

You can have anything you want - if you want it badly enough. You 
can be
anything you want to be, do anything you set out to accomplish if you 
hold

to that desire with singleness of purpose.

- Abraham Lincoln

___
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








--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

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

2006-05-23 Thread judah

Adam,
I hear what you're saying. It is frustrating to have to shell out money 
for two different products.


Here's the history. The Flash IDE has had numerous workflow problems, 
intrinsic problems and limitations in the language (prototype based), 
slow engine (in comparison to fp9) and other subtle but nasty bugs. 
Flash started out and was an animation program that has been upgraded 
again and again with new features on top of the previous program and new 
features added to the previous renderer. For example, AS2 is compiled 
down to AS1.


Rather than built on a shaky foundation Macromedia realized the need to 
create a new sturdy foundation and fix the problems that plagued the 
original program and AS1 engine. So looking at all the things they 
wanted to do and fix they created a new rendering engine from the ground 
up and rather than reinvent the wheel, took one of the best development 
environment of the time and built a new product called Flex Builder off 
of it. They set the focus on making it create Applications for the web. 
They set out and fixed a whole huge mess of problems for us. No more 
having to built our own preloaders, awesome event handlers that bubble 
up, great layout tools, new states and transitions with a few lines of 
code, easy bookmarking in the browser and a whole lot of other things 
they knew we would be using it for. Plenty of things were planned in the 
design and implementation.


Most of the benefits are realized once you use it. It would not have 
worked as well to have overhauled the Flash IDE.


A lot of people are trying to differentiate the two by saying one is for 
animation and design and one is for applications and forms. Well yes and 
no. You have to try it but I'm going to say you can do 90% of what is on 
the web with Flex. I made this site in about an hour as practice to see 
if it could be used for websites. Copying and pasting of course (sorry 
it lost some formatting). 
http://www.judahfrangipane.com/examples/main.html. Flex uses MXML and 
ActionScript 3. You still have a design view but you can edit the html, 
I mean xml, I mean MXML. So the layout is very powerful. I could easily 
add smooth transitions and states to that site in about 15 minutes by 
adding transitions tags. The same thing would have taken a lot longer in 
Flash. The one main thing you do lose in Flex is the animation timeline. 
So if you want to do animation with a timeline then you would use Flash.


So we come to now. Adobe has two products that output to FP9 player. 
They both overlap in functionality and you now have two products to 
choose from. The Flex Builder is not out yet so it's feature set is not 
set in stone. Remember the Macromedia guys, who btw are very smart 
blokes, have been in the lab two years scheming like mad scientists to 
make the best new Flash / web content producing ide out there.


The only thing I'm concerned about is if they don't add in the features 
in Flex we need because it is out of scope of RIA development. This 
would be a drag. I plan to use Flex 2 for everything on the web. Not 
just applications. Even if some aspect is a bit more work in Flex I'd 
rather use it. HTH


peace,
Judah


Adam Pasztory wrote:

I am very frustrated by the IDE being split into two product lines.  Like
many other Flash developers, I do both games and animation projects 
and also
RIA projects, so it looks like I'm now going to have to invest two 
products
from now on!  This is just one reason why I'm shifting more and more 
to open

source tools.

I also feel that Adobe/Macromedia has not done a good job explaining the
need for two products, or why I would want to use one or another for a
particular project.  I mean, a deeper explanation than: Flash is for 
games

and animations; Flex is for Form-based RIAs.
___
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




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

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

Adam Pasztory wrote:


While I think the concept of a beta program is great, I spent quite a few
hours poring over the documentation, and followed a few tutorials, and 
I did
not find the clear explanations I was hoping for.  Maybe that makes me 
a bad

developer.  But I assume Adobe wants to sell to bad developers as well as
good ones.  :)  This was a few months ago, so maybe things have improved.
I agree. Not about the bad developer part. About the clear explanations 
part. I had to actually start using it to see the differences myself.


If I'm wrong, please point me to the documentation, FAQs, etc. from Adobe
that clearly explain the diferences between Flex IDE and Flash IDE, or
details about how to integrate Flex into my workflow.  Maybe this is all
coming after the release.  Or maybe it's been added since I looked 
through

the labs site.  Where is the practical tutorial for Flash Developers who
want to transition to Flex?
These would be helpful. I think thats exactly what the Flash communtiy 
needs. Some reviews, side by side comparisons, pros and cons of each 
type of things. I know this things will come out eventually. I wrote a 
post recently that has a little bit of comparison for the Flash 
developer but I don't go into too much detail. Check out these links 
http://www.judahfrangipane.com/?p=22 and 
http://www.judahfrangipane.com/?p=20


Judah


--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Image in HTML-TextField doesn't get loaded

2006-05-22 Thread judah

Hi Sönke,

Try using the full path to the image. I've had some issues with relative 
paths in the past. Sometimes it does not show up if I have used or I 
leave out the www in the url.


Judah

Sönke Rohde wrote:

Hi,

I got the problem, that images within HTML-Textfields don't show up. When I
test the site on my local webserver all works fine but not online on my
server. I can't imagin any problems with my server or any chmod issues.

Here an example:
The part within the content-node is set as text:
content![CDATA[pimg src=img/test.jpgHere is text./p]]
/content

Tested with Flash Player 8  9.

Any ideas?
Sönke

___
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

  



--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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 3.0 Cheatsheets!!

2006-05-02 Thread judah

Hi thotskee,

Thanks for making this. It is not printing out very well on my ribbon 
jet printer. Could you post a pdf or a higher res image? Thanks,


Judah

thotskee wrote:

Flashcoders,

The ActionScript 3.0 cheatsheet family has been born. There will be 
additional sheets created in the (hopefully) near future so be sure to 
come back to the blog in the next few weeks.


For now you can download the first three AS3.0 cheatsheets here:
AS3.0 Top Level Classes
AS3.0 Packages
AS3.0 flash.display Classes

http://actionscriptcheatsheet.com/blog/

As always suggestions and creative criticism are very welcome... I got 
flamed for posting the AS2 Cheatsheet and I think once is enough. If 
you hate these sheets please just keep it to yourself :)


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




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Flash Player 6 on PSP

2006-04-25 Thread judah

quote:
There are quite a few updates in this release [PSP Firmware 2.7] so hold 
on to your hats as we take you down the rabbit hole. To break the ice we 
start off with a few networking updates, notably the largest update 
would be including partial Flash 6 support. Flash support is a great way 
to add a few games and movies to your PSP collection on the go, the only 
noteable issue with integrated Flash support is that some functions are 
not supported in addition to the obvious fact that Flash 6 is somewhat 
outdated.


There is no more info about what functions are not support...

Judah

--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

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

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


Re: [Flashcoders] Flash Player 6 on PSP

2006-04-25 Thread judah

Thanks JD! I'll wait for Bill to update his blog for more information.

John Dowdell wrote:
heh, wouldn't you know it, just after sending that reply I got some 
fresh info ;-)


Bill Perry will have the best word, here:
http://www.flashdevices.net/

I saw a paper document which detailed some of the not supported 
caveats... takeaways I had included: clipboard; video (some? all?); 
context menu; printing; LiveConnect (FSCommand); FlashComm stuff like 
HTTP Tunneling and Screen Sharing; XMLSocket; WMODE transparency. They 
also advise a top filesize of 1.5M or so, to check on device fonts, 
differences in mouseOut in some situations.


Bill will have better info than me here, but the above should be the 
gist of it, from what I currently understand. Good?


jd







--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Remove cellPress Listener on DataGrid

2006-03-17 Thread Judah
Hi Phillipe,

Try:

datagrid.removeEventListener(cellPress, ListenerObj);

Judah

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Felipe
Fernandez
Sent: Friday, March 17, 2006 2:53 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Remove cellPress Listener on DataGrid

Hi, is that possible? How could I do that?

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

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

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

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


[Flashcoders] Anyway to check if a file exists?

2006-03-17 Thread Judah
I saw the thread a few threads ago but I'm really wanted to start my own. Is
there an error or event that loadMovie dispatches if it does not find a swf?


 

exteriorMenuBoard_mc.loadMovie(path + lang +  + dtboarddesc + .jpg);

 

Flash is tracing the famous file not found message in the output window
but that doesn't help me here.

 

Judah

___
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] Function Point Analysis - Estimating projects

2006-03-14 Thread Judah
Does anyone use Function Point Analysis (FPA) for their Flash projects?
Function Point Analysis is extremely useful in estimating projects, managing
change of scope, measuring productivity, and communicating functional
requirements.We've found the category names or definitions to be very
non-specific to us. So the final result would vary greatly from person to
person. We are researching this right now if anyone would like to share in
the research please contact me offlist (unless no one objects). 

 

What we are looking for is any FPA software tools and Flash definition
templates (what Flash services are defined under what categories)?

 

Definition:

FPA has been proven as a reliable method for measuring the size of computer
software. In addition to measuring output, Function Point Analysis is
extremely useful in estimating projects, managing change of scope, measuring
productivity, and communicating functional requirements. 

There have been many misconceptions regarding the appropriateness of
Function Point Analysis in evaluating emerging environments such as real
time embedded code and Object Oriented programming. Since function points
express the resulting work-product in terms of functionality as seen from
the user's perspective, the tools and technologies used to deliver it are
independent. More info at http://www.qpmg.com/fp-intro.htm

 

 

Judah

 

___
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] Function Point Analysis - Estimating projects

2006-03-14 Thread Judah
Does anyone use Function Point Analysis (FPA) for their Flash projects?
Function Point Analysis is extremely useful in estimating projects, managing
change of scope, measuring productivity, and communicating functional
requirements.We've found the category names or definitions to be very
non-specific to us. So the final result would vary greatly from person to
person. We are researching this right now if anyone would like to share in
the research please contact me offlist (unless no one objects). 

 

What we are looking for is any FPA software tools and Flash definition
templates (what Flash services are defined under what categories)?

 

Definition:

FPA has been proven as a reliable method for measuring the size of computer
software. In addition to measuring output, Function Point Analysis is
extremely useful in estimating projects, managing change of scope, measuring
productivity, and communicating functional requirements. 

There have been many misconceptions regarding the appropriateness of
Function Point Analysis in evaluating emerging environments such as real
time embedded code and Object Oriented programming. Since function points
express the resulting work-product in terms of functionality as seen from
the user's perspective, the tools and technologies used to deliver it are
independent. More info at http://www.qpmg.com/fp-intro.htm

 

 

Judah

 

___
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] textArea background colour

2006-03-09 Thread Judah
Hi Simon,

textinput.setStyle(backgroundColor, transparent);
textinput.setStyle(borderStyle, none);

Judah

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Simon Lord
Sent: Tuesday, March 07, 2006 6:03 PM
To: Flashcoders mailing list
Subject: [Flashcoders] textArea background colour

How can I remove the border and background fill of a textArea component?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


Re: [Flashcoders] RE: getDepth: highest depth, middle depth, lowest depth

2006-03-08 Thread judah
I've found very little info on the DepthManager class. afaik, you need 
to increment the kTop property when you use it:


var new_mc = myMovie.createObject(__rowRenderer, new_mc, 
DepthManager.kTop++, {owner:this, styleName:this});


At the same time I find it useful to get the next highest depth of the 
movieclip I want to be over. This next statement adds the movieclip to 
myMovie at myMovies's next highest depth. So if myMovie has one other 
object on it at depth 1 then myMovie.getNextHighestDepth() returns 2.
var new_mc = myMovie.createObject(__rowRenderer, new_mc, 
myMovie.getNextHighestDepth(), {owner:this, styleName:this});


I've had problems using _root.getNextHighestDepth() in a class. It stops 
at a certain number and any new movieclips replace the movie that is at 
the same depth.


if createObject is not available (for use mostly with components) use 
attachMovie in it's place...


Judah

Scott Pobiner wrote:


Hey Mel,

Take a look at the DepthManager.  You can use it for exactly what you  
are trying to do.  The catch is that you have to instantiate the  
MovieClips  you want to use via actionscript with the DepthManager  
functions.  Remember to do this because the DepthManager needs to  
keep track of all elements you want to sort.  Then all you have to do  
is use the constants DepthManage.kTop, DepthManage.kBottom, etc.  The  
manager sorts its children instances using these constants by putting  
each call to kTop in depth 201 and then moving the rest down  
sequentially (actually vice versa).


Hope this helps,

_S



Hello,

I have another question for the group:

I was using this...

for (var i in this) {
if (typeof (this[i]) == movieclip) {
trace(movie clip '+this[i]._name+' is at depth
+this[i].getDepth()*-1);
}
}

...to discover the depth of the movieclips I have on the stage.

Then I wrote this...

postcard_amt = [1, 2, 3];
for (i=0; ipostcard_amt.length; i++) {
postcard_itm = postcard+i+_mc;
_root[postcard_itm].onPress = function(){
trace(this.getDepth());
}
}

...to specifially single out the _mc's I wanted.
Not sure if that is the best way to write it, but that's not my  
question

(althought I am open to more efficient ways).

/*

My question:
What is the best approach to finding the highest depth, the middle  
depth and

the lowest depth?

*/

Backstory:
Ideally, what I will be doing is swapDepths() with these _mc's and
reshuffling them accordingly.

if original state is...

1
2
3

...onEvent...

2
3
1

...then another Event...

3
1
2

...and so on.

Thanks for the advice,
fm





___
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




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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 does goowy do it? (HTML in Flash)

2006-03-05 Thread judah

Hi Mike,

Here are links to some examples. http://www.judahfrangipane.com/?p=6.

Judah

Mike Britton wrote:


Does anyone have a working example of the Drumbeat comp?  All I know is if
you need to drop a div on top of your flash app using FSCommand, you may as
well build the app with AJAX.

I didn't see online examples of this component, just screenshots.  Can
someone set me straight?

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

 




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Using Window component mouse overs are still listening

2006-03-02 Thread Judah
I'm using the Window component in modal mode. That works fine. But when I
move the mouse over other parts of my project the mouse overs, mouse ups and
mouse downs are still firing off. Is this a bug or a feature? 

 

Judah

___
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 on PSP!

2006-02-28 Thread Judah
This is great news!!!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alias
Sent: Tuesday, February 28, 2006 11:43 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Flash on PSP!

Hi guys,

Looks like someone's gotten a homebrew flash player working on the
PSP! Looks pretty good, although apparently it's still early days.
Works on 1.5 firmware.

http://files.psphacks.net/details.php?file=93

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

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

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

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


RE: [Flashcoders] Order of dispatched events?

2006-02-28 Thread Judah
Thanks!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johannes Nel
Sent: Tuesday, February 28, 2006 10:28 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Order of dispatched events?

in the order you added the listeners.
it just loops through an array and executes the methods one by one

On 2/28/06, Judah [EMAIL PROTECTED] wrote:

 Is there a way to make the order that events are called Fixed?



 Are they guaranteed to be executed in a particular order?



 Judah

 ___
 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




--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


RE: [Flashcoders] Cannot attach movieclip to root???

2006-02-27 Thread Judah
Yeah, it's doing what I want. The real _root is where I wanted my movieclip
to be attached. Since I cannot use library assets from one .swf in another I
copied the resource to the loader movieclip and then it does what I want. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan
Matsikas
Sent: Monday, February 27, 2006 11:22 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Cannot attach movieclip to root???

yer getRoot function is useless, it will step back until yer in the _root of
the loader

On 2/26/06, judah [EMAIL PROTECTED] wrote:

 Hi Adrian,

 That is indeed what is happening. I copied the library resource in my
 second movie into the first movie and it did then work. Although the
 asset is duplicated which is not a big deal in this situation.

 Judah

 Adrian Park wrote:

 Firstly, I'm new to this list so hi!
 
 I suspect your problem may be to do with the fact that you cannot use
 library assets from one .swf in another.
 
 From your description, I understand that your dndNodeDragger asset is
 in
 the library of the second swf - if this is true you will not be able to
 load
 it into any timeline of the first swf. This is an intentional limitation
 in
 Flash.
 
 In a message yesterday, JesterXL pointed out that you can re-parent a
 movie
 clip in Player 8.5 - I'm not sure how to do this but it may just provide
 a
 workaround for this. I intend to investigate!
 
 Hope this helps!
 
 Adrian
 
 On 2/26/06, judah [EMAIL PROTECTED] wrote:
 
 
 Here is what I'm using...
 
 // find root movieclip
 public function getRoot(mc) {
 var rootReference:MovieClip;
 rootReference = mc;
 trace(getting root =  + rootReference);
 
 // find root
 while (rootReference._parent !=undefined){
 rootReference = rootReference._parent;
 trace(getting root =  + rootReference)
 }
 
 // return reference to root movieclip
 return rootReference;
 }
 
 
 Ryan Matsikas wrote:
 
 
 
 I would guess your getRoot() function is returning the incorrect root
 and
 trying to attach and then failing.
 
 What's the method look like?
 
 On 2/25/06, judah [EMAIL PROTECTED] wrote:
 
 
 
 
 I have two swfs. The first swf loads in the second swf. The second swf
 uses a function that *finds* the real _root and then uses attachMovie
 to
 attach a movieclip to it. The second swf works by itself but it does
 *not* work when loaded into another swf. Specifically, if I use:
 
 var root_mc:MovieClip = getRoot(this);
 var d_mc = root_mc.attachMovie(dndNodeDragger, d_mc,
 DepthManager.kTop++);
 trace(d_mc=+d_mc)
 
 I get a reference when it is not loaded into another swf. I could
 really
 use some insight on this.
 
 Judah
 
 --
 Always bear in mind that your own resolution to succeed is more
 
 
 important
 
 
 than any one thing.
 
 You can have anything you want - if you want it badly enough. You can
 
 
 be
 
 
 anything you want to be, do anything you set out to accomplish if you
 
 
 hold
 
 
 to that desire with singleness of purpose.
 
 - Abraham Lincoln
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
 
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
 
 
 
 
 --
 Always bear in mind that your own resolution to succeed is more
 important
 than any one thing.
 
 You can have anything you want - if you want it badly enough. You can
 be
 anything you want to be, do anything you set out to accomplish if you
 hold
 to that desire with singleness of purpose.
 
 - Abraham Lincoln
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
 
 


 --
 Always bear in mind that your own resolution to succeed is more important
 than any one thing.

 You can have anything you want

Re: [Flashcoders] haXe Flash

2006-02-26 Thread judah

give it time guys. they will come soon enough.

Troy Rollins wrote:



On Feb 24, 2006, at 11:20 AM, eric dolecki wrote:


Ah ok... but I'd still like to see some demos of anything built using
haXe...



Same here.

--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


___
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




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Cannot attach movieclip to root???

2006-02-26 Thread judah

Hi Adrian,

That is indeed what is happening. I copied the library resource in my 
second movie into the first movie and it did then work. Although the 
asset is duplicated which is not a big deal in this situation.


Judah

Adrian Park wrote:


Firstly, I'm new to this list so hi!

I suspect your problem may be to do with the fact that you cannot use
library assets from one .swf in another.


From your description, I understand that your dndNodeDragger asset is in

the library of the second swf - if this is true you will not be able to load
it into any timeline of the first swf. This is an intentional limitation in
Flash.

In a message yesterday, JesterXL pointed out that you can re-parent a movie
clip in Player 8.5 - I'm not sure how to do this but it may just provide a
workaround for this. I intend to investigate!

Hope this helps!

Adrian

On 2/26/06, judah [EMAIL PROTECTED] wrote:
 


Here is what I'm using...

   // find root movieclip
   public function getRoot(mc) {
   var rootReference:MovieClip;
   rootReference = mc;
   trace(getting root =  + rootReference);

   // find root
   while (rootReference._parent !=undefined){
   rootReference = rootReference._parent;
   trace(getting root =  + rootReference)
   }

   // return reference to root movieclip
   return rootReference;
   }


Ryan Matsikas wrote:

   


I would guess your getRoot() function is returning the incorrect root and
trying to attach and then failing.

What's the method look like?

On 2/25/06, judah [EMAIL PROTECTED] wrote:


 


I have two swfs. The first swf loads in the second swf. The second swf
uses a function that *finds* the real _root and then uses attachMovie to
attach a movieclip to it. The second swf works by itself but it does
*not* work when loaded into another swf. Specifically, if I use:

var root_mc:MovieClip = getRoot(this);
var d_mc = root_mc.attachMovie(dndNodeDragger, d_mc,
DepthManager.kTop++);
trace(d_mc=+d_mc)

I get a reference when it is not loaded into another swf. I could really
use some insight on this.

Judah

--
Always bear in mind that your own resolution to succeed is more
   


important
   


than any one thing.

You can have anything you want - if you want it badly enough. You can
   


be
   


anything you want to be, do anything you set out to accomplish if you
   


hold
   


to that desire with singleness of purpose.

- Abraham Lincoln

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

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



   


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

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



 


--
Always bear in mind that your own resolution to succeed is more important
than any one thing.

You can have anything you want - if you want it badly enough. You can be
anything you want to be, do anything you set out to accomplish if you hold
to that desire with singleness of purpose.

- Abraham Lincoln

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

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

   


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

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

 




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Cannot attach movieclip to root???

2006-02-25 Thread judah
I have two swfs. The first swf loads in the second swf. The second swf 
uses a function that *finds* the real _root and then uses attachMovie to 
attach a movieclip to it. The second swf works by itself but it does 
*not* work when loaded into another swf. Specifically, if I use:


var root_mc:MovieClip = getRoot(this);
var d_mc = root_mc.attachMovie(dndNodeDragger, d_mc, 
DepthManager.kTop++);

trace(d_mc=+d_mc)

I get a reference when it is not loaded into another swf. I could really 
use some insight on this.


Judah

--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Cannot attach movieclip to root???

2006-02-25 Thread judah

Here is what I'm using...

   // find root movieclip
   public function getRoot(mc) {
   var rootReference:MovieClip;
   rootReference = mc;
   trace(getting root =  + rootReference);
  
   // find root

   while (rootReference._parent !=undefined){
   rootReference = rootReference._parent;
   trace(getting root =  + rootReference)
   }
  
   // return reference to root movieclip

   return rootReference;
   }


Ryan Matsikas wrote:


I would guess your getRoot() function is returning the incorrect root and
trying to attach and then failing.

What's the method look like?

On 2/25/06, judah [EMAIL PROTECTED] wrote:
 


I have two swfs. The first swf loads in the second swf. The second swf
uses a function that *finds* the real _root and then uses attachMovie to
attach a movieclip to it. The second swf works by itself but it does
*not* work when loaded into another swf. Specifically, if I use:

var root_mc:MovieClip = getRoot(this);
var d_mc = root_mc.attachMovie(dndNodeDragger, d_mc,
DepthManager.kTop++);
trace(d_mc=+d_mc)

I get a reference when it is not loaded into another swf. I could really
use some insight on this.

Judah

--
Always bear in mind that your own resolution to succeed is more important
than any one thing.

You can have anything you want - if you want it badly enough. You can be
anything you want to be, do anything you set out to accomplish if you hold
to that desire with singleness of purpose.

- Abraham Lincoln

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

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

   


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

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

 




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] DataGrid Columns question

2006-02-22 Thread Judah
Hi Oleg,

Use the columnNames property before setting your dataprovider:

// only show column1 and column2
datagrid.columnNames = [column1, column2]
datagrid.dataProvider = myDP; 
datagrid.columns[0].headerText = Olegs Column

Datagrid columnName:
http://livedocs.macromedia.com/flash/8/main/3271.html

Datagrid strategies:
http://livedocs.macromedia.com/flash/8/main/3253.html

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Oleg
Filipchuk
Sent: Wednesday, February 22, 2006 8:32 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] DataGrid Columns question

Thanks all,
I've found solution by setting up columns ahead of time:

private function createColumn( prop:String, label:String ):DataGridColumn {
var clmn:DataGridColumn = new DataGridColumn(prop);
clmn.headerText = label;
   return clmn;
}

dataGrid.addColumn(createColumn(nickname, NickName));
dataGrid.addColumn(createColumn(fullname, Full name));
dataGrid.addColumn(createColumn(tel, Telephone));
dataGrid.addColumn(createColumn(address, Address));

and after that I can asign data provider safely.

But there is the nasty quirk - if I call dataGrid.spaceColumnsEqually()  -
dataGrid shows no column at all, so I have to set up width of every column
individually.

Thanks all for help,
Oleg
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


Re: [Flashcoders] OOP Concepts

2006-02-21 Thread judah

Rob,

I would *highly* recommend C# A Programmers Introduction by Deitel and 
Deitel. I had a similar background and it laid a framework I could 
understand. It explained OOP to me better than any other book I've read. 
The stuff you will learn from it will help you not only in Flash but any 
other language in the future as well (no I don't work for them).


That will help and just doing it and asking a lot of questions.

Judah

Hairy Dog Digital wrote:


Danny,

 

It works, but seems fundamentally wrong, as I understood it was bad 
practise
 

to add methods to an object dynamically. Should I make the 
class listen for clicks on the nested clip or is there 
another solution?


There's nothing wrong with adding methods to an object 
dynamically. What's slightly dodgy is 'talking to' a child or 
property of an object directly. 
It's better OO practice for the object to be in charge of its 
own properties, and to talk to it by some kind of accessor 
method. So you might say
   



The original post and your reply, raised a question in my mind.

I got my start in programming with languages like Basic, Pascal, and C (no,
not C++ or C#). I latched onto Hypercard and Supercard in the beginning of
the 90s. (Yeah, I'm showing my age.) Later, as the web moved into the
commercial sector, I got into JavaScript, followed by Director and Flash. 


I brought with me a lot of line-by-line coding bad habits. As much as I
understand OOP and try to utilize OOP in my projects, I often relapse into
scripting mode simply because it is natural to me.

Would you -- or anyone else out there -- have a good self-study book, web
site, online course, or other general recommendation, for breaking me out of
my existing mind set? It's got to be straightforward enough so that I grasp
it, but not so easy that I get bored by Hello World exercises (eg, Sam's
Teach Yourself in 24 Hrs), or so didactic that my intelligence is insulted
(eg, _ for Dummies).

My first thought was to jump into Java or some other environment that will
inhibit my ability to fall off the OOP wagon, so I picked up the books Head
First Java and Head First Design Patterns and am just starting to devour
them.

Thoughts? Suggestions?

FWIW, I did pick up the book 


...Rob




___
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

 




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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: When singletons go bad

2006-02-20 Thread Judah

Slightly off the subject but why does he have to use getInstance()?
Isn't there a way to use a singleton without calling getInstance? Why can't
he directly use the class like this:

import MyManager;

MyManager.doSomething();

The Math class, Delegate class and other classes let you use methods without
calling getInstance() first. 

Judah

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jack Doyle
Sent: Monday, February 20, 2006 11:53 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Re: When singletons go bad

Just curious if this works better for you:

private function MyManager() {
 // constructor
 return getInstance();
}

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

Sorry, I haven't had the time to follow the whole discussion, but I figured
I'd throw this your way and see if it helps. 

Good luck.

Jack



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

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

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

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


RE: [Flashcoders] Re: When singletons go bad

2006-02-20 Thread Judah
That's what I love about this list. The stuff I learn is invaluable. :)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: Monday, February 20, 2006 12:52 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Re: When singletons go bad

If you use getInstance(), a constructor gets called - which is often handy
if you need to run any kind of initialisation code for your singleton (that
you couldn't just do with initial property values).

If you just used statics, you might end up having to do something like:

public static function doSomething()
{
   if (!_initialised)
   {
  _initialiseMe();
   }
   // Do whatever this function is supposed to.
}

for every function that cared about the initialisation. Which is a pain.

I often pre-emptively use getInstance in case I need to go back and add any
sort of initialisation to a class later on. If it's clearly a utility only
class (for example, string utilities, math utilities - just a collection of
helper functions in a class) then I tend to use purely statics.

Cheers,
   Ian

On 2/20/06, JesterXL [EMAIL PROTECTED] wrote:

 He can, but every other progammer (well, ok, mainly Java developers) are
 familiar with the getInstance convention.  It clearly illustrates that the
 class is a Singleton.

 I only use it when my boss says to; otherwise, static all the way baby.

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

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

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

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


Re: [Flashcoders] Printing in landscape

2006-02-19 Thread judah

yeah. that sortof worked. flash doesn't seem to like showing the text.

henning martens wrote:


just a thought,
can't you rotate  scale your target movieclip to match the landscape 
orientation outside of the stage and print that? just thought
that might work.
i never worked with any print functionality within flash myself.

cheerz,
henning

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of judah
Sent: Saturday, February 18, 2006 4:39 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Printing in landscape

Yeah. That would be an ok workaround. Just wanted to make sure before I 
worked it out. Thanks!


Judah

Dave Wood wrote:

 


Has anyone found a way to set the print orientation to landscape?
 

I don't think you can. Are you able to alert the user to the need for  
landscape before initiating the PrintJob?
You can then test for whether they have chosen it with  
Printjob.orientation.


David
   



___
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

 




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Event Dispatcher

2006-02-18 Thread judah
Can you give an example of the memory leak you are talking about and 
also an example of the arguments.caller remove listener? I have not 
heard of this before.


Is the memory leak issue caused when you nest a function inside a class?

class myClass {

   function myClass() {

obj.addEventListener(onWhatever, Delegate.create(this, 
myCustomMethod));

// nested function not member of class - this causes memory leak???
function myCustomMethod(evtObj:Object):Void
{
// code
}

   }
}


Johannes Nel wrote:


what john is outlining here is fine in essence, but unless you never want to
remove this event listener this will cause a memory leak. either you create
the delegate function on a class scope or you use arguments.caller in the
handler function to remove the event listener

On 2/17/06, John Grden [EMAIL PROTECTED] wrote:
 


Must resist...the crack...habbit...

 and if you want to point that dispatched to a custom method not named
the same as the event:

obj.addEventListener(onWhatever, Delegate.create(this, myCustomMethod));

private function myCustomMethod(evtObj:Object):Void
{
  // code
}

Also, you don't need to include target in your dispatch, EventDispatcher
includes that for you.

On 2/17/06, Aaron Smith [EMAIL PROTECTED] wrote:
   


Just make sure int he constructor you initialize it::
EventDispatcher.initialize(this)..

also you ned to have these var definititions:

public var addEventListener:Function
public var removeEventListener:Function;
private var dispatchEvent:Function


then to dispatch:

dispatchEvent( { type:'whatever', target:this,
someOtherProp:'somothervalue' } )

all those props in the dispatchEvent call are just properties in a
basic Object. you must have type though.


SMITH



On Feb 17, 2006, at 12:44 PM, Jamie Alpers wrote:

 


This may be a duh question, but when you use dispatchEvent in a
custom
created component, can I use my own event name or do i have to use
one of
the built in ones of an object.  For example, I am creating custom
quiz
component (the built in ones dont have the flexibility we need) and
would
like to add a 'QuestionCompleted' event.  Is this possible?

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

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


   


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

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

 



--
John Grden - Blitz
___
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

   





--
j:pn
___
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

 




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Printing in landscape

2006-02-18 Thread judah
Yeah. That would be an ok workaround. Just wanted to make sure before I 
worked it out. Thanks!


Judah

Dave Wood wrote:


Has anyone found a way to set the print orientation to landscape?



I don't think you can. Are you able to alert the user to the need for  
landscape before initiating the PrintJob?
You can then test for whether they have chosen it with  
Printjob.orientation.


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




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Printing in landscape

2006-02-17 Thread Judah
I'm sure this has asked before but I cannot find anthing in the archives. 

 

Has anyone found a way to set the print orientation to landscape? 

 

Best Regards,

Judah

___
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] coding the main stage as if it were a class

2006-02-17 Thread Judah
There is another method we use. When you start your project create a
movieclip and at it to the stage at 0,0. Open it up and add all your GUI to
that as you would the stage. Then in your library assign your class to the
movieclip. 

Judah

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manuel
Saint-Victor
Sent: Friday, February 17, 2006 11:13 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] coding the main stage as if it were a class

Okay- actually I like that approach.  I had seen you do part of that in a
tutorial before but not with actually setting the class as the view from the
timeline.  It actually makes it a lot clearer now.

I guess it's not as much not being comfortable with it as much as sometimes
during a quick scripting I hesitate to create a class for a really small
app.  But as you know then a request here and there suddenly has the app
doing a lot more and while I'm waiting for the downtime to put it in a class
I regret every new line of code that I'm putting in _root and antiucipating
trying to place in a class file.

I know that if I code it correctly on root to begin with the transition is
not that big a deal but it still makes me cringe.


Thanks again- I'll probably use that as my crutch method at times when I'm
not quite ready to drop something in a class file.

M


On 2/17/06, JesterXL [EMAIL PROTECTED] wrote:

 What aren't you comfortable with?  Some don't like extending the timeline,
 and do something like:

 class MyController
 {
 private var view:MovieClip;

 function MyController ( mc:MovieClip )
 {
 view = mc;
 }
 }

 And then on _root;

 controller = new MyController(this);

 or:

 class MyController
 {

 private var view:MovieClip;

 public static function init ( mc:MovieClip )
 {
 view = mc;
 }
 }

 and then on _root:

 MyController.init(this);

 there are a few other variations.  I like making _root a class, though!
 - Original Message -
 From: Manuel Saint-Victor [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, February 17, 2006 9:19 AM
 Subject: [Flashcoders] coding the main stage as if it were a class


 I've seen this done in a few tutorial where the code placed in the main
 time
 line is written as if it were in a class file.  By this I mean things like
 writing addEventListener(this); and having the functions sitting in the
 main
 timeline that handles the event.  I think this is a convenient approach-
 and
 I know the response by siome will be--well just make the main timeline a
 class- etc and sometimes I do that but others I'm not fully comfortable
 doing that but have found this to be a good halfway point.  Can anyone who
 uses this approach tell me the their thoughts on this.  I wish I could
 think
 of some more examples of this but am coming up blank right now.

 Thanks,

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

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

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

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

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

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

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

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


RE: [Flashcoders] Multithreaded AS1 - AS2 - AS3 - AS4 - AS5

2006-02-16 Thread Judah
Is that a viable way or you just saying that is the only that stops flash
execution? If so how do you take advantage of that without popping up a
print dialog to the user? 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Wednesday, February 15, 2006 6:46 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Multithreaded AS1 - AS2 - AS3 - AS4 - AS5

Flash Player is single threaded, including the new Flash Player 8.5 which 
uses AS3.

The only way to block as a developer in Flash is PrintJob.send.

- Original Message - 
From: Judah [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 15, 2006 7:13 PM
Subject: [Flashcoders] Multithreaded AS1 - AS2 - AS3 - AS4 - AS5


Is AS3 multithreaded? I think I've read somewhere that AS2 (or AS1) is
single threaded. Is that right? Can we use sleep commands in AS3? If not
will AS4 be multithreaded or would that prevent it from running on certain
devices or platforms?



Judah

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

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

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

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

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

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


RE: [Flashcoders] Making the text centered vertically in a combo box

2006-02-16 Thread Judah
Awesome! That did it. 

cmb.doLater(this, reposText);
function reposText() {
cmb.text_mc.label._y = -.5
cmb.text_mc.label._height = 15
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johannes Nel
Sent: Wednesday, February 15, 2006 7:42 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Making the text centered vertically in a combo
box

the reason it does not work on the stage is because when you are setting it
theat component is most prob not created. remember that v2 components take a
frame (in some cases 2 frames ) to be created (love this about flex, you
have a creationComplete event). i would suggest trying to poll opver frames
(you can use doLater or an onterFrame (beacon is advised) to do this.


On 2/15/06, Judah [EMAIL PROTECTED] wrote:

 That might have worked by itself but the combo box didn't like it. I could
 still use some help.

 I used XRAY specticles to find the label in the combobox but none of my
 changes take effect outside of using the trace/exec window in XRAY.

 // this code works inside XRAY exec window but not on the stage oddly???
 cmb['text_mc']['label']['_y'] = -5;
 cmb.focusTextField.label._y = -5
 cmb.text_mc.label._y = -5

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Marc
 Hoffman
 Sent: Wednesday, February 15, 2006 5:47 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Making the text centered vertically in a combo
 box

 I don't know how to properly fix it, but as a hack how about
 appending a couple of line returns to the text?

 -Marc

 At 03:30 PM 2/15/2006, you wrote:
 I am using a small font and a small height in my combobox but the bottom
 of
 the text is getting cut off. Does anyone know how to fix this? Or does
 someone know how to access the textfield in the combobox so I can move it
 up
 a bit?
 
 
 
 Here is how to reproduce it:
 
 
 
 1. drag a combo to the stage and name it cmb
 
 2. in actionscript:
 
 
 
 cmb.setSize(cmb._width, 16);
 
 cmb.setStyle(fontSize, 10);
 
 cmb.addItem({label:10});
 
 cmb.dropdown.rowHeight = 14;
 
 
 
 notice the text is cut off at the bottom!
 
 
 
 Judah
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


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

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

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

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




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

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

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

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


[Flashcoders] Making the text centered vertically in a combo box

2006-02-15 Thread Judah
I am using a small font and a small height in my combobox but the bottom of
the text is getting cut off. Does anyone know how to fix this? Or does
someone know how to access the textfield in the combobox so I can move it up
a bit? 

 

Here is how to reproduce it:

 

1. drag a combo to the stage and name it cmb

2. in actionscript:



cmb.setSize(cmb._width, 16);

cmb.setStyle(fontSize, 10);

cmb.addItem({label:10});

cmb.dropdown.rowHeight = 14;

 

notice the text is cut off at the bottom! 

 

Judah

___
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] Making the text centered vertically in a combo box

2006-02-15 Thread Judah
That might have worked by itself but the combo box didn't like it. I could
still use some help. 

I used XRAY specticles to find the label in the combobox but none of my
changes take effect outside of using the trace/exec window in XRAY. 

// this code works inside XRAY exec window but not on the stage oddly???
cmb['text_mc']['label']['_y'] = -5;
cmb.focusTextField.label._y = -5
cmb.text_mc.label._y = -5

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Hoffman
Sent: Wednesday, February 15, 2006 5:47 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Making the text centered vertically in a combo
box

I don't know how to properly fix it, but as a hack how about 
appending a couple of line returns to the text?

-Marc

At 03:30 PM 2/15/2006, you wrote:
I am using a small font and a small height in my combobox but the bottom of
the text is getting cut off. Does anyone know how to fix this? Or does
someone know how to access the textfield in the combobox so I can move it
up
a bit?



Here is how to reproduce it:



1. drag a combo to the stage and name it cmb

2. in actionscript:



cmb.setSize(cmb._width, 16);

cmb.setStyle(fontSize, 10);

cmb.addItem({label:10});

cmb.dropdown.rowHeight = 14;



notice the text is cut off at the bottom!



Judah

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

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


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

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

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

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


[Flashcoders] Multithreaded AS1 - AS2 - AS3 - AS4 - AS5

2006-02-15 Thread Judah
Is AS3 multithreaded? I think I've read somewhere that AS2 (or AS1) is
single threaded. Is that right? Can we use sleep commands in AS3? If not
will AS4 be multithreaded or would that prevent it from running on certain
devices or platforms?

 

Judah

___
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] vardump an object in ActionScript?

2006-02-14 Thread judah

Hi Josh,

You can check out this Enumerator class at this dudes website 
www.judahfrangipane.com. Heard he's a weirdo tho.


Josh McDonald wrote:


Hi, I'm wondering if there's any way to just dump out all there is to
know about an object in ActionScript similar to PHP's vardump()? It's
easily done with for(foo in bar) in JS, but that doesn't seem to work.

Any pointers much appreciated :)

Cheers,
-Josh

 




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

___
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] Component and Live Preview ~ problems

2006-01-30 Thread judah
I wrote a post on working with live preview on my lame ass blog at 
http://www.judahfrangipane.com/?p=13.


Judah

JesterXL wrote:

It's because LivePreview variables are different SWF's, but same depth. 
Gary wrote the original LivePreview.as file (in includes in Flash MX 2004's 
install directory), and you can take a look at it to see how it works.


I had the same problem with my Flowchart components.  Basically, things were 
getting created correctly in different movieclips, but the actual data was 
referencing a previous component.  I had to hack the LivePreview.as with a 
few modifications on the 2 main functions that update the component, but I 
never fully resolved it.


My suggestion is to start tweaking that file since it's the one that pretty 
much runs LivePreviews.


...or, create your own, and do it the MX way where you code the refreshing 
yourself, export a SWF, and point your component to that vs. using the 
internal Flash MX 2004 component LivePreview-auto-gen.


- Original Message - 
From: [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Monday, January 30, 2006 11:21 PM
Subject: [Flashcoders] Component and Live Preview ~ problems


Hello All ---

I posted this on FlashNewbie and didn't have much luck getting it resolved. 
I also found a number of posts on Actionscript.org referencing this same 
problem, but I couldn't find any solutions, so I thought I would try here. I 
created a custom button component with live preview enabled for the label. 
The live preview works great with only one button component on stage. 
However, if I put another instance of my btn component on stage, both btn 
components are updated to the most recent component's label. Both buttons 
have different instance names.


Any ideas on how to resolve this issue?

Thanks for any and all replies.




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


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

 




--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

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


Re: [Flashcoders] Q: All OOP or ??????

2006-01-28 Thread judah

Hans hit the nail on the head.

I break it down to is it a small project, scoped defined or not? If not 
then I throw some things on the timeline. But more and more I'm moving 
away from that. It is taking *more* time to do it non OOP than it is to 
do it quick. With scope creep comes more code, more maintanence.


What I ask myself on new projects is what parts of this can I reuse? 
Can I put this behavior in a class or a component? It's more work up 
front to make your classes for your daily tasks (not much more work) but 
on project 2 or project 3 your work will pay off.


Judah

j.c.wichman wrote:



Hi,
You are probably going to hear this a lot: it depends.
You'll find a lot of people doing 1, you'll find a lot doing 2... 3   4  5
6 etc.

For example, (just a few examples, books could probably be written on this
subject), an animation of a car driving down a road, sliding, going through
corners etc:
- could be an animation on a timeline
- could be coded using positions, vectors etc
- could be coded using displacements maps
- could be coded by recording all the positions of an object during a tween
and playing it back (altered or not)
- ..?
Which is the most appropriate to your project? Do the animations have to be
very specific, are they updated a lot? When they do have to be updated, do
you have to go to heaps of code, just becoz u have a timelinephobia? Etc etc

These are all questions u could ask yourself. I took the example of an
animation, but you could ask these kinds of things for databases as well
(which database? One or more? Do we have to switch between dbs? Etc).
No matter what I think u should be able to answer the 'why?' questions for
yourself. Why do I do it like this?
For example, why do I use a timeline animation in case A, and a coded
animation in case B?
Well because in case A the animation is well defined and very simple, and I
want to be able to update it quickly, in case B the animation is very
complex, it depends on factors like gravity and the like, and I don't want
to go there timeline wise.

What? So you use different options at the same time! Sometimes yes ;). The
beauty of grey ;). Note that I don't mean to sound like a know-it-all,
because the issues you raised are issues I think a lot of us struggle with
everyday (I know I do!), so I don't claim to have all the wisdom, I'll just
try to give you one view (my view) of the story.
Anywayz, back to the example...

So different options at the same time... The animation example is taken from
real life, from a project I'm working on as we speak. I always try to think
of it as, if I don't have a clue about HOW I'm going to do it (99%) I stop
and remind myself of the WHAT (as I should do all the time :)). So.. We have
an abstraction: an Animation class.
What does it do? It plays, it stops, etc. How? No clue, an Animation
subclass could be an animation built on top of Fuse, an movieclip with a
timeline, a handwritten piece of code, I don't care, as long as it plays and
stops and

So I don't think this falls within either option 1 or 2, but within option
x... And I wish I knew how to describe option X :).

With regard to design patterns and MVC... First of all, I think design
patterns are a means to an end. Design patterns have multiple
goals/attributes:
- they solve (part of) a difficult architectural problem for you
- they increase reuse, robustness, maintainability
- they help documentation your code, instead of describing class a,b,c,d you
say, I used this pattern, and these classes play these roles
- they might increase the complexity of your application

Looking at the second point, reuse, robustness etc, the first patterns that
come to mind, might not even be considered as patterns.. Low coupling, high
cohesion, that kind of thing. Even without learning dozens of patterns, a
lot of times the questions are as simple as:
- if at one point I want to incorporate this into my programm, what happens?
- if I pull this string, what happens?
- if ...
- if ..
- if .

If the answers to these kind of questions are: well, then I'd have to throw
it all away and start over, some of the basic patterns may have been
overlooked. On the other hand the answer might as well be: listen, you are
trying to fit a square peg into a round hole, you are treading outside of
the scope this code was meant to handle. One more note on design patterns,
one of the most difficult things I encountered is that sometimes these
patterns have not different goals but OPPOSING goals, one might increase
reuse but break encapsulation, one might improve encapsulation but break
reuse etc.

With regard to the MVC pattern, I often collapse the controller and view.
Most important for me are clear cut responsibilities, a model with no
dependencies on the view. If another view has to be created, I might
refactor my collapsed view/controller. Lot of times there is even discussion
on whether it IS collapsed or not. For example 2 options:
- I write a movieclip, put a few

[Flashcoders] File upload with PHP example

2006-01-20 Thread Judah Frangipane
Anyone know of a good to great File Upload example using PHP? Or does 
anyone have any of their own working examples they can send me? If it 
supports Remoting (amfphp) that would be even better.


Judah
PS I'd be willing to buy something if it has been in a production 
enviornment and works around many of the bugs I've seen (onComplete 
event not always firing on mac? or pc?, file uploads page requested 
twice, any php issues, etc.

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


Re: [Flashcoders] Documenting my code

2006-01-19 Thread Judah Frangipane
Let's all get on MM-Adobe wish list and ask for this! This has been such 
a huge issue in every project I've worked on that it puts me back months 
to do documentation.


http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform

Judah


Johan Lopes wrote:


Another thing to note is that there was a mention at the Spark
Conference in Europe that MM-Adobe is considering releasing the
documentation tool their Dev team uses internally. We'll see, perhaps
with the next big release of the Flash IDE? :)

HTH,

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



 



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


Re: [Flashcoders] Documenting my code

2006-01-19 Thread Judah Frangipane
There are a lot of JavaDoc documentation products but very little that 
produce the mxi, custom actions and flash help. This takes up a huge 
development time. If you have a developer doing Flash Help thank him. 
It's actually a lot of work. It's like going back to hand coding html 
pages when you've got Dreamweaver 8 on your desktop.


I do not know of any good ones out right now but AS2Doc is close. The 
problem with AS2Doc is that the developer has vanished. No emails I have 
ever sent to support have been returned and the company that sells his 
product can no longer get hold of him. This would have been a great 
circumstance for a source code escrow service. I've just downloaded 
BLDocs but they've been in beta for a ~year?? So I'm not sure where they 
are at.


Judah
PS I will post my notes on how I have got AS2Doc to work for me.

Johannes Nel wrote:


i would much rather them work on releasing a good product than building
stuff like editors(zorn is nice however) and documentation applications when
there are a aready numerous things out there.

On 1/19/06, Judah Frangipane [EMAIL PROTECTED] wrote:
 


Let's all get on MM-Adobe wish list and ask for this! This has been such
a huge issue in every project I've worked on that it puts me back months
to do documentation.

http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform

Judah


Johan Lopes wrote:

   


Another thing to note is that there was a mention at the Spark
Conference in Europe that MM-Adobe is considering releasing the
documentation tool their Dev team uses internally. We'll see, perhaps
with the next big release of the Flash IDE? :)

HTH,

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





 


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

   





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



 



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


Re: [Flashcoders] Documenting my code

2006-01-19 Thread Judah Frangipane

Hi Jobe,

I just wrote up a document for using this.

Here it is below:
Email me offlist to get the template file I created.

***

Packaging a component can be quite troublesome. Here are some steps to 
help you get the most out of it.







- Create a directory called Release 1.0.0 (replace 1.0.0 with the 
current version number) in the directory of your component.


- Copy the AS2Doc config file to the component root directoy. Rename it 
to fit your component.



AS2DOC Section

Open AS2DOC and open your as2doc.xml file.

Project Tab
- In the projects tab type in a new description. Be sure to save your 
file at each step.


- When you save it delete the file that is there before because 
sometimes it does not get saved.



Source Tab

- Switch to the Source tab and select the correct path to your class 
file or class directory. For example, select the directory that contains 
all your classes, com or select the main component class, 
MyComponent.as. Sometimes duplicate files are listed when you select a 
directory. This happens when you have a copy of the file and leave it in 
the same directory, Copy of myComponent.as. Remove this backup to 
another location.



Output Tab

- In the output directory select the Release 1.0.0/documentation directory.

- In the stylesheet section select Flash MX 2004 Documentation

- In the stylesheet information section click the configure button.

- In the configuration screen check the checkbox Omit file tags for .as 
sources.

- Enter footer information, © ACME 2005 - 2006.
- In MXI Title enter ACME Inc. Component.
- In MXI Version enter the version 1.0.0.
- In MXI Type enter Flash Component.
- In MXI Author type your name or company name
- In MXI Description enter component description, ACME XYZ component 
for Flash MX 2004 and Flash 8
- In MXI UI Access describe how to get to the component in the Flash 
IDE, After installing the extension, you can access it under Components 
 ACME  MyComponent. Help can be found in the Help Panel under ACME  
MyComponent



Options Tab

- In the options tab check the Public Members checkbox.
- Go back and save your file again.


Log Tab

- Press the generate button.

Now goto the Release 1.0.0\documentation\HelpPanel\Help\myComponent 
directory and open the introduction.html page in a browser.


This allows you to read your help documentation as if you were reading 
it from within the Flash IDE. Take the time now to read through the 
documentation following the built in links.


- As you read through the introduction page go to the Project tab and 
change any part of the description you need to.


- As you read through the help documentation open up your class file and 
make changes as you need to.


- All comments that contain  pre  tag enclosed code should be 
indented one tab.

For example,
   pre
   somecode
   /pre


Now that you've made the changes you need to regenerate the help docs 
again. Go into the directory Release 
1.0.0\documentation\HelpPanel\Help\myComponent and delete all the files 
there.


Go back into AS2Doc and press the generate button again.

***



Jobe Makar wrote:


Hi guys,

I've recently purchased AS2Doc to generate documentation from my 
ElectroServer class file. The software works pretty well, but it 
appears the Mirell (company that owns it) is now a ghost town or 
something. There are no responses to my support requests at all. 
Emails to their busdev address bounce.


My question is this: does anyone know of a good place where I could 
find support on AS2Doc. Or, can anyone suggest an alternative software 
that takes the java-doc style comments and create documentation?


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104

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





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


[Flashcoders] Scope Chain in AS2

2006-01-16 Thread Judah Frangipane
If anyone has the book JavaScript - The Definitive Guide please read the 
following pages on scope:


JavaScript - The Definitive Guide 1.5
--
4.3.0 Variable Scope
4.3.1 No Block Scope
4.6.1 The Global Object
4.6.2 Local Variables: The Call Object
4.6.3 JavaScript Execution Contexts
4.7 Variable Scope Revisited
11.4 Lexical Scoping and Nested Functions
19.1.5 Event Handlers and the this Keyword
19.1.6 Scope of Event Handlers

From what I've read, it appears that Action Script 2.0 follows the 
implementation.  But the information at the link below keeps me from 
adopting this description.


quote,
Event handling is simplified in ActionScript 3.0 thanks to its built-in 
delegation. In ActionScript 2.0, method closures would not remember what 
object instance they were extracted from, leading to unexpected behavior 
when the method closure was invoked.

http://labs.macromedia.com/wiki/index.php/ActionScript_3:overview#Delegation

Can someone please put this into context?

Best Regards,
Judah Frangipane

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


[Flashcoders] Flash Component for use in Dreamweaver

2006-01-06 Thread Judah Frangipane
I didn't know this was possible but I think that you can take your Flash 
component and use it in Dreamweaver. Has anyone made an extension to 
package their components for use in Dreamweaver? I have no idea where to 
start on this.


I'm also wondering if Dreamweaver will inherit the property inspector 
list for the component. I've seen some Flash for Dreamweaver extensions 
show a property inspector type list in the tag panel. Can someone verify 
this?


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


Re: [Flashcoders] Remote Debugging + Flash Remoting = Frozen Browser. FP8 Bug?

2005-12-30 Thread Judah Frangipane
I don't think it captures that but it might be a feature that can be 
added. I would ask on the Service Capture feature forum.


http://kevinlangdon.com/phpBB2/


elibol wrote:


I've got a question, is there a way to set Service Capture to detect the
requests made by the client? Is there a way to detect remote client service
activity?

H

On 12/30/05, elibol [EMAIL PROTECTED] wrote:
 


Thanks for your reply Judah, I accually use service capture myself!

Well, I will see to it that this debugger bug (the irony) is
acknowledged...

H

On 12/29/05, Judah Frangipane [EMAIL PROTECTED] wrote:
   


I'm not using cf but in my remoting endevors Service Capture has helped
many times (http://www.kevinlangdon.com/phpBB2/). It is well worth it
compared to the time spent tracking down bugs.

Judah
PS No, I do not work for them :)

elibol wrote:

 


Hi everyone,

I use the remote debugger all the time, and now with the release of
   


flash 8,
 


debugging an application that makes a flash remoting call (CF serving
   


CFC)
 


will either freeze or crash the subject browser. In the case that it
freezes, my application will sometimes recover if I stop the debugger.

What happens is my CPU usage maxes out when a remote function call is
   


made
 


in the application (while I'm running the remote debugger for that
application), and the there may be an inifinite loop that's slowing
   


your
 


machine down dialogue appears since the player mistakes the situation
   


as an
 


infinite loop.

I'm using CF with a CFC Oracle database facade; is anyone else
   


experiencing
 


the same problems as I am under either the same or different server
technologies? Has this bug been acknowledged?

Thanks so much for reading about my problem,

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





   


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

 

   


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



 



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


[Flashcoders] Flash Class Array bug - Please verify

2005-12-29 Thread Judah Frangipane
It seems like Flash is creating static members out of public arrays that 
are initialized in the class declaration. Can someone confirm this? Is 
this not legal, is it implied behavior or a bug?


// create a class called myClass
class myClass {
   // initialize the array in the declarations
   var myArray:Array = new Array();

   function myClass {
  trace(myArray.length=+myArray.length)
   }

   function addToArray() {
  myArray.push(10)
  myArray.push(20)
   }

}


// on the actions frame
import myClass

var a = new myClass();
a.addToArray();
a.addToArray();
a.addToArray();
var b = new myClass();

// trace outputs
myArray.length=0
myArray.length=3

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


Re: [Flashcoders] Flash Class Array bug - Please verify

2005-12-29 Thread Judah Frangipane

Hi Glenn,

Flash is still treating the array as a static member.

// treated as an instance variable
var myArray1:Array;
// treated as a static variable
var myArray2:Array = new Array();

Test this code:

// in actions frame 1
import myClass

trace(Creating instance a)
var a = new myClass();
a.addToArray();
a.addToArray();
a.addToArray();
trace(Creating instance b)
var b = new myClass();

// in class
class myClass {
   // treated as an instance variable
   var myArray1:Array;
   // treated as a static variable
   var myArray2:Array = new Array();
   static var myArray3:Array = new Array();
  
   function myClass() {

   trace( myArray1.length=+myArray1.length)
   trace( myArray2.length=+myArray2.length)
   trace( myArray3.length=+myArray3.length)
   }

   function addToArray() {
myArray1.push(10);
myArray2.push(10);
myArray3.push(10);
   }
}


Glenn J. Miller wrote:


Hey Judah,

Try this:

class myClass {
   // initialize the array in the declarations
   private var myArray:Array = new Array();

   function myClass {
  trace(myArray.length=+this.myArray.length)
   }

   public function addToArray() {
  this.myArray.push(10);
  this.myArray.push(20);
   }
} // end class

Run your code again, I think it'll execute the way you're expecting it to at
that point...

Peace...

--
Dok
Skyymap, Inc.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Judah
Frangipane
Sent: Thursday, December 29, 2005 3:30 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Flash Class Array bug - Please verify

It seems like Flash is creating static members out of public arrays that 
are initialized in the class declaration. Can someone confirm this? Is 
this not legal, is it implied behavior or a bug?


// create a class called myClass
class myClass {
   // initialize the array in the declarations
   var myArray:Array = new Array();

   function myClass {
  trace(myArray.length=+myArray.length)
   }

   function addToArray() {
  myArray.push(10)
  myArray.push(20)
   }

}


// on the actions frame
import myClass

var a = new myClass();
a.addToArray();
a.addToArray();
a.addToArray();
var b = new myClass();

// trace outputs
myArray.length=0
myArray.length=3

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

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



 



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


Re: [Flashcoders] Flash Class Array bug - Please verify

2005-12-29 Thread Judah Frangipane

Thanks for help guys!

JesterXL wrote:


Sorry, missed 1 of the traces:

// notice the array is on the prototype,
// thus all class instances point to it
foo.prototype_array.push(foo_d);
trace(foo.prototype_array);
trace(bar.prototype_array);

should be:

// notice the array is on the prototype,
// thus all class instances point to it
foo.prototype_array.push(foo_d);
trace(foo.prototype_array); // b, foo_d
trace(bar.prototype_array); // b, foo_d

- Original Message - 
From: JesterXL [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, December 29, 2005 3:39 PM
Subject: Re: [Flashcoders] Flash Class Array bug - Please verify


Nope, they are prototype scoped arrays, not static.

AS1:
function MyClass(){}

AS2:
class MyClass{}

AS1 - static:
MyClass.my_array = [];

AS2 - static:
class MyClass
{
   static var my_array:Array = [];
}

AS1 - prototype:
MyClass.protoytpe.my_array = [];

AS2 - prototype:
Same as above, or:
class MyClass
{
   var my_array:Array = [];
}

Prototype values, even in the class intstance, point to the prototype value
when read, but as soon as an instance modifies this value, it makes it's own
copy if it's a primitive (String, Number).  If it's an Object, it still
points to the prototype reference.  Example:

// The Class
class MyClass
{
static var static_array:Array = [a];
var prototype_array:Array = [b];
var instance_array:Array;

var prototype_name:String = MyClassName;

function MyClass()
{
 instance_array = [c];
}
}

// And here, the usages:

import MyClass;

trace(MyClass.static_array); // a
trace(MyClass.prototype.prototype_array); // b
trace(MyClass.prototype.instance_array); // undefined

var foo:MyClass = new MyClass();
trace(foo.prototype_array); // b
trace(foo.instance_array); // c

var bar:MyClass = new MyClass();
trace(bar.prototype_array); // b
trace(bar.instance_array); // c

// notice the array is on the prototype,
// thus all class instances point to it
foo.prototype_array.push(foo_d);
trace(foo.prototype_array);
trace(bar.prototype_array);

// however, for primitives, instances
// will get their own copy once they
// change it

// before
trace(foo.prototype_name); // MyClassName
trace(bar.prototype_name); // MyClassName
foo.prototype_name = MegaFoo;
// after
trace(foo.prototype_name); // MegaFoo
trace(bar.prototype_name); // MyClassName



- Original Message - 
From: Judah Frangipane [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, December 29, 2005 3:30 PM
Subject: [Flashcoders] Flash Class Array bug - Please verify


It seems like Flash is creating static members out of public arrays that
are initialized in the class declaration. Can someone confirm this? Is
this not legal, is it implied behavior or a bug?

// create a class called myClass
class myClass {
   // initialize the array in the declarations
   var myArray:Array = new Array();

   function myClass {
  trace(myArray.length=+myArray.length)
   }

   function addToArray() {
  myArray.push(10)
  myArray.push(20)
   }

}


// on the actions frame
import myClass

var a = new myClass();
a.addToArray();
a.addToArray();
a.addToArray();
var b = new myClass();

// trace outputs
myArray.length=0
myArray.length=3

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

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


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



 



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


Re: [Flashcoders] Flash Class Array bug - Please verify

2005-12-29 Thread Judah Frangipane
The thing that bothers me is that no one seems to care if this is a bug 
or not. I didnt realize that initializing an Array in the declaration 
would make a static like variable. Its not really static and it doesn't 
work the same for primitives. I spent almost 2 days going over code 
trying to solve this. I had to post it here and show it to another 
developer to pinpoint the problem. So do I report this as a bug? Do I 
announce it for others to take note of? Does it exist in AS3? Do I live 
with it until I move to AS3? Yeah, I don't know...


elibol wrote:


The only response that accually addresses the problem is JesterXL's, he
seems to have hit the nail right on the head. It seems the only
differentiating aspect of static and prototype members is the way they treat
by refrence types.

On 12/29/05, JesterXL [EMAIL PROTECTED] wrote:
 


Sorry, missed 1 of the traces:

// notice the array is on the prototype,
// thus all class instances point to it
foo.prototype_array.push(foo_d);
trace(foo.prototype_array);
trace(bar.prototype_array);

should be:

// notice the array is on the prototype,
// thus all class instances point to it
foo.prototype_array.push(foo_d);
trace(foo.prototype_array); // b, foo_d
trace(bar.prototype_array); // b, foo_d

- Original Message -
From: JesterXL [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, December 29, 2005 3:39 PM
Subject: Re: [Flashcoders] Flash Class Array bug - Please verify


Nope, they are prototype scoped arrays, not static.

AS1:
function MyClass(){}

AS2:
class MyClass{}

AS1 - static:
MyClass.my_array = [];

AS2 - static:
class MyClass
{
   static var my_array:Array = [];
}

AS1 - prototype:
MyClass.protoytpe.my_array = [];

AS2 - prototype:
Same as above, or:
class MyClass
{
   var my_array:Array = [];
}

Prototype values, even in the class intstance, point to the prototype
value
when read, but as soon as an instance modifies this value, it makes it's
own
copy if it's a primitive (String, Number).  If it's an Object, it still
points to the prototype reference.  Example:

// The Class
class MyClass
{
static var static_array:Array = [a];
var prototype_array:Array = [b];
var instance_array:Array;

var prototype_name:String = MyClassName;

function MyClass()
{
 instance_array = [c];
}
}

// And here, the usages:

import MyClass;

trace(MyClass.static_array); // a
trace(MyClass.prototype.prototype_array); // b
trace(MyClass.prototype.instance_array); // undefined

var foo:MyClass = new MyClass();
trace(foo.prototype_array); // b
trace(foo.instance_array); // c

var bar:MyClass = new MyClass();
trace(bar.prototype_array); // b
trace(bar.instance_array); // c

// notice the array is on the prototype,
// thus all class instances point to it
foo.prototype_array.push(foo_d);
trace(foo.prototype_array);
trace(bar.prototype_array);

// however, for primitives, instances
// will get their own copy once they
// change it

// before
trace(foo.prototype_name); // MyClassName
trace(bar.prototype_name); // MyClassName
foo.prototype_name = MegaFoo;
// after
trace(foo.prototype_name); // MegaFoo
trace(bar.prototype_name); // MyClassName



- Original Message -
From: Judah Frangipane [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, December 29, 2005 3:30 PM
Subject: [Flashcoders] Flash Class Array bug - Please verify


It seems like Flash is creating static members out of public arrays that
are initialized in the class declaration. Can someone confirm this? Is
this not legal, is it implied behavior or a bug?

// create a class called myClass
class myClass {
   // initialize the array in the declarations
   var myArray:Array = new Array();

   function myClass {
  trace(myArray.length=+myArray.length)
   }

   function addToArray() {
  myArray.push(10)
  myArray.push(20)
   }

}


// on the actions frame
import myClass

var a = new myClass();
a.addToArray();
a.addToArray();
a.addToArray();
var b = new myClass();

// trace outputs
myArray.length=0
myArray.length=3

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

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

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

   


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



 



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


Re: [Flashcoders] Remote Debugging + Flash Remoting = Frozen Browser. FP8 Bug?

2005-12-29 Thread Judah Frangipane
I'm not using cf but in my remoting endevors Service Capture has helped 
many times (http://www.kevinlangdon.com/phpBB2/). It is well worth it 
compared to the time spent tracking down bugs.


Judah
PS No, I do not work for them :)

elibol wrote:


Hi everyone,

I use the remote debugger all the time, and now with the release of flash 8,
debugging an application that makes a flash remoting call (CF serving CFC)
will either freeze or crash the subject browser. In the case that it
freezes, my application will sometimes recover if I stop the debugger.

What happens is my CPU usage maxes out when a remote function call is made
in the application (while I'm running the remote debugger for that
application), and the there may be an inifinite loop that's slowing your
machine down dialogue appears since the player mistakes the situation as an
infinite loop.

I'm using CF with a CFC Oracle database facade; is anyone else experiencing
the same problems as I am under either the same or different server
technologies? Has this bug been acknowledged?

Thanks so much for reading about my problem,

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



 



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


Re: [Flashcoders] Can an object delete itself?

2005-12-23 Thread Judah Frangipane

Mark Burvill wrote:


   public function die():Void {
   trace (deleting);
   removeMovieClip (baddie_mc);
   delete this;
   trace (Am i still alive?);
   }

The movieclip is successfully removed, but I would expect the second 
trace Am I still alive NOT to appear as the object has been deleted, 
but it does.
I read somewhere that it is illegal for an object to delete itself - 
is this true?

Is there another easy way of doing this?


I use the delete all the time like you are doing. Flash continues to run 
your code until the end of the statement block. I thought that once you 
delete something that garbage collection would take over after the 
function exits. Someone correct me if I'm wrong.


for example, run this in a new fla

index = 0;
this.onEnterFrame = function () {
   if (index==10) {
   delete onEnterFrame;
   trace(i can still run code but only until the function closes)
   }
   trace(index=+index++)
}

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


[Flashcoders] Draw a bitmap on a path

2005-12-22 Thread Judah Frangipane
I have the task of drawing an image or movieclip along a path. So for 
example, I have the task of drawing a rainbow, ideally I would get a 10x 
60 image of 3 colors. Next I would want to draw that movieclip along a 
path. But the question is I have no idea where to start or if this is 
even possible with Flash. Any ideas?


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


Re: [FlashCoders] game slowing down - eventListener

2005-12-21 Thread Judah Frangipane

Hi Dimirtrios,

I've had a couple issues with intervals in the past. I'm not sure why 
but sometimes they would not get deleted. This would cause build up as 
they kept getting created.


I have a enumerator class that has a process timer on it. This would 
trace out the time in milliseconds from the beginning of a process to 
the end of it. I was going to release this class but I found some 
problems with it. I'll make another attempt and try and post it in the 
next day or so.


Judah

Dimitrios Bendilas wrote:


Anyone else has anything to suggest?
Has anyone experienced memory build up
with the use of Delegates or Proxy (with parameter support)?

Thank you

Dimitrios


- Original Message - From: Cedric Muller [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, December 15, 2005 2:26 PM
Subject: Re: [FlashCoders] game slowing down - eventListener



how do you generate the tiles ?
are they removed (removeMovieClip) when going outside the boundaries 
of the visible area ?


because such memory size must have something to do with bitmaps or 
sounds 


??
Cedric


Thank you for the suggestions Hans.

I'm pretty sure I've taken care of all listeners
and intervals and destroy them before I delete
an object.

The memory when it's running slower 6-7MBs
more than when running fast. (46MB - 52MB)

I've tried digging in with xray before, I guess
I'll do it again.

Any other thoughts anyone?

Dimitrios



- Original Message - From: Hans Wichman [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, December 15, 2005 1:39 PM
Subject: Re: [FlashCoders] game slowing down - eventListener




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





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


Re: [Flashcoders] Faster code?

2005-12-21 Thread Judah Frangipane
This happens all too often. As common as this is, it is something you 
*must* do. Especially if you are the person that has to go back and 
change stuff at a later date. I dont know how many times I have gone 
back and looked at my code and I was like, what the (explicitive 
deleted) was I doing. Now I write code for readability.



// bad (IMHO)
if (getIsTrue(myTest)) {
   return (10/2 + 5)/mc._x;
}

// good
var isSomethingTrue = getIsTrue(myTest)

if (isSomethingTrue) {
   var retVal = (10/2 + 5)/mc._x;
   return retVal;
}

Trust me dude, I am having to rewrite an asp app in flash remoting 
asp.net and none of the code is commented. So I have spent 3/4ths of my 
time trying to interprit another persons code and the other half writing 
a flash remoting version of it. Readability is more important than speed 
(IMHO). Either way comment. :)


Judah

JesterXL wrote:

What I want to know is who is paying for #2?  Very rarely do I ever get time 
to comment anything, and even if I did, the code I commented changes the 
next day, rendering the whole endeavor fruitless.


...not to mention most service work is always a custom job/rewrite anyway.

- Original Message - 
From: Paul BH [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 21, 2005 4:49 PM
Subject: Re: [Flashcoders] Faster code?


I think these are all great, but if I can be the voice of caution for
a moment...

remember that when you write code, it is for 2 interpreters:

1) the Actionscript VM
2) the person who has to go back and change stuff at a later date,
which may or may not be you...

Its often very easy to forget number 2 - so, while writing doing
things like avoiding function calls may be faster for 1) it can end up
making things a lot slower for 2)

Also, when you go through your code  optimise it, make sure you are
efficient with your efforts - you will probably find you can nail down
key performance spikes to just a few functions / algorithms... be
careful not to optimise to death, and try and measure your gains at
each step

I'm not saying code shouldnt be optimised at the expense of (human)
readability, just that sometimes it gets a little overdone...

ta

PBH

On 12/21/05, Steven Sacks [EMAIL PROTECTED] wrote:
 


the fastest loop through an array is:
 var len = myArray.length;
 while( len-- ) {
   ...
 }
yes, it's faster then for..in.
 


Not always. Sometimes, this loop is faster than a while (i--)

for (var i = items.length; --i - (-1); ) {
  ...
}

It's ugly, yes, but it is faster than while (i--) depending on how many
items you're iterating through.  Run some tests if you don't believe me. 
:)


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

   


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


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



 



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


[Flashcoders] Live Preview Woes

2005-12-14 Thread Judah Frangipane


I am working on a component that attaches a movieclip. When I drag it to 
the stage it attaches multiple copies of this movieclip skipping my 
checks and balances. But when I test the movie it works fine and only 
shows one instance like i designed it to. Is there anyway to find out in 
my component class file if the instance is on the stage or in a test movie?


class myComponent extends TextInput {

  // constructor
  function myComponent() {

  }

  function init() {
 if (onTheStage) {
// exit out and do not attach movie
 }
 else {
// attach movie
 styleRequired()
  }

  }

   // style the text box when the value is valid
   function styleRequired() {
   trace(style required)
   required_mc = 
_parent.attachMovie(required_mc,this+_required, 
this._parent.getNextHighestDepth());

   if (required) {
   trace(required=+required)
   if (requiredAlign==left) {
   required_mc._x = _x - required_mc._width;
   required_mc._y = _y;
   }
   else {
   required_mc._x = _x + __width;
   required_mc._y = _y;
   }
   }
   else {
   required_mc._visible = false;
   }
   }
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Live Preview Woes

2005-12-14 Thread Judah Frangipane

That worked. Thanks :)

// in my class
// traces 'true' in components on the stage and 'undefined' in test movie
trace(_global.isLivePreview =  + _global.isLivePreview)


Derek Vadneau wrote:

If your component live preview is generated by Flash, when you specify an 
AS2 class in the Component Definition dialog, then you can check for 
_global.isLivePreview in your class code.  Some of the V2 components use 
this.


That variable is populated by Flash when your live preview is generated 
that way.


If your live preview is a SWF that you've published, then you can just 
provide a variable such as this yourself.



Derek Vadneau


- Original Message - 
From: Judah Frangipane [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 14, 2005 2:22 PM
Subject: SPAM-LOW: [Flashcoders] Live Preview Woes



I am working on a component that attaches a movieclip. When I drag it to
the stage it attaches multiple copies of this movieclip skipping my
checks and balances. But when I test the movie it works fine and only
shows one instance like i designed it to. Is there anyway to find out in
my component class file if the instance is on the stage or in a test 
movie?



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



 



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


Re: [Flashcoders] alpha -= 10 = wtf

2005-12-14 Thread Judah Frangipane

how come floats arent exact? jk

will floats be exact in AS3? or will future versions of flash support 
big ints?


judah

John Dowdell wrote:


Jason Rayles wrote:


Has this been discussed?
Flash player 8

trace(this._alpha);
this._alpha -= 10;
trace(this._alpha);

Output:
100
89.84375



Not that I can readily recognize, although from the fragments above it 
looks vaguely like the normal how come floats aren't exact topic.


jd







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


[Flashcoders] Cancel Keypress

2005-12-13 Thread Judah Frangipane
I'm trying to restore the previous text in a text field if a user 
presses the Escape key. I set up a listener for the key down event. I 
have got it to restore the previous value but I cannot find a way to 
cancel the escape key from entering a  symbol. You can see this 
symbol by adding a TextInput to the stage and pressing the ESC key in it.


   // here is my listener function
   function keyDownEvent() {
   // get key code
   var key = Key.getCode();
   var prevText:String = previousText;
  
   // if user presses key then

   if (key == Key.ESCAPE) {
   trace(_name +  ESCAPE key pressed)
   trace(prevText=+prevText)
   // restore previous dudes text
   setText(prevText);
   }
   }

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


Re: [Flashcoders] Book sequence...

2005-12-12 Thread Judah Frangipane
You pick up a lot of good video tutorials (both beginner and advanced) 
from this site:

http://www.flashextensions.com/

I recommend viewing it after your second book.

Judah

Flash guru wrote:


Agreed

1. Essential ActionScript 2.0
2. Object-Oriented Programming with ActionScript 2.0

Garage has some good things in it but not worth reading first, but a skim
through for sure.
Hacks last, by the time you finish with the first two new hacks will have
been developed for flash 8 bugs.


On 12/12/05, eric dolecki [EMAIL PROTECTED] wrote:
 


my 2 cents:

1. Essential ActionScript 2.0
2. Object-Oriented Programming with ActionScript 2.0
3. ActionScript 2.0 GARAGE (never heard of it)
4. Flash Hacks (last for sure)

On 12/12/05, Carlos Gustavo Corrêa da Costa [EMAIL PROTECTED] wrote:
   


Hello there, just a newbie-to-go question... I've a friend who is a
'book-addicted', and he's going on vacation trip and did lend me all
his Flash books! How great is that? Alright, I should buy a few, but
I'm moneyless. (that's not the point). So, the question is, with all
this books, where should I begin? And after?

Here are the books:

• ActionScript for Flash MX The Definitive Guide
• Essential ActionScript 2.0
• Flash Hacks
• ActionScript 2.0 GARAGE
• Actionscript Cookbook
• Object-Oriented Programming with ActionScript 2.0

Sorry about the bad english, but I just can't lose this oportunity.
 


Thanx.
   


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



 


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



   




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



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


Re: [Flashcoders] These [EMAIL PROTECTED] Flash 8 Linkage Publish Errors

2005-12-09 Thread Judah Frangipane

Hi Varfoo,

Somewhere in your library there is another symbol using the linkage id 
of BoundingBox.


Best Regards,
Judah

varfoo wrote:


What the *^%$ is this?

**Warning** The linkage identifier 'BoundingBox' was already assigned to the 
symbol 'com/yellowjacketsoftware/ui/components/Flash UI Components 2/Component 
Assets/BoundingBox', and cannot be assigned to the symbol 'Flash UI Components 
2/Component Assets/BoundingBox', since linkage identifiers must be unique.

And how to I get rid of it?  I've already changed the linkage ids on my 
symbols, but what can I do about Flash?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 



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


[Flashcoders] FAQ Adobe acquisition of Macromedia

2005-12-07 Thread Judah Frangipane

FAQ Adobe acquisition of Macromedia
http://www.adobe.com/aboutadobe/invrelations/adobeandmacromedia_faq.html

Interesting key points:

*How long will it take to integrate Flash Player and Adobe Reader?*

  It will be a multiyear effort. Ultimately, our goal is to combine
  both in a single client. Combining PDF and Adobe Reader with Flash
  and the Flash Player will allow us to deliver a truly ubiquitous
  platform that sits on...

*Are there immediate plans to discontinue any Adobe or Macromedia 
products?*

  All products continue to be available for purchase. We are a
  customer-driven company and, as always, we will continue to evaluate
  and respond to customer demand to shape our product mix.

*What will happen to the Macromedia corporate brand? What will happen to 
product and technology brands, such as Dreamweaver and Flash?*

  Adobe will continue investing in key Macromedia product brands.
  Initially, product brands acquired from Macromedia will include the
  Macromedia name (for example, Macromedia Dreamweaver). Over time,
  Macromedia products will migrate to the Adobe brand (for example,
  Adobe Dreamweaver) during planned release cycles when packaging
  materials and user and marketing collateral are updated.

*We are now Adobe developers...:)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash and ASP.NET

2005-12-07 Thread Judah Frangipane

Hi Zoli,

Can you send links?

Judah

Zoltan Csibi wrote:


Hi Michael

Don't know if this is in your timeframe but we are preparing the alpha
release of the Fluorine .NET remoting gateway. This works like the MM one
for .NET and additionally supports pageable recordsets and .NET custom
authentication
(Fluorine is open source)

Zoli

-Original Message-
From: Michael Appelmans [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 12:15 PM

To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] flash and ASP.NET

I need to create a Flash application for a small non-profit can't afford the
$999 price tag of MM's Flash Remoting gateway. Is there a third party
remoting solution like AMFPHP that I could use? Essentially I need to read
and write to an Access database on a Windows web host.

Thanks for any suggestions and pointers to examples for this.

Michael


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



 



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


Re: [Flashcoders] FAQ Adobe acquisition of Macromedia

2005-12-07 Thread Judah Frangipane
It sounds like they will have for download Flash Player 8 and Adobe 
Reader for download for a while and eventually create a Flash Player X.


Flash Player X = Flash Player 8 + Adobe Reader

I wouldn't call it a central tho. Hopefully the file size will remain 
small or only marginally increase.


Judah

hank williams wrote:


This new client is not in place of the current lightweight player. It
is a separate thing, like central. So there will always be separate
browser plugins for pdf and swf.

Regards
Hank

On 12/7/05, Chad Mefferd [EMAIL PROTECTED] wrote:
 


Gone are the days of a lightweight flash player.

On Dec 7, 2005, at 10:07 AM, Mike Mountain wrote:

   


Our long-term plan is to develop a universal client by
combining PDF, Flash and HTML in a single, integrated
runtime.
   


How does this differ from a browser?

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

 


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

   


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



 



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


Re: [Flashcoders] Selection.setFocus()

2005-12-02 Thread Judah Frangipane

Hi Manuel,

We are needing something like this as well. We set the tab order in code 
or use the accessability window. When we tab to a v2 button then the 
tabbing breaks. If it makes you feel any better I could not get this to 
work either.


A thing to note is the help docs have qoutes around the setFocus parameter.

Selection.setFocus(this.dataPanel.titleMc.input1.iField);

Also be aware of scope issues with this code. Be sure to trace out your 
dot notation paths.


trace(this.dataPanel.titleMc.input1.iField=+this.dataPanel.titleMc.input1.iField)

to make sure you do not get undefined. When writing code like this break 
it down and get it to work by itself and move up from there. Listener 
objects are notoriously issue prone.


Judah

Manuel Gonzalez wrote:


Hi,
Has anyone had any luck with Selection.setFocus()...?

For some reason I haven't had any luck getting the tabIndex to work in a 
project I'm working on so I have resorted to a hack, but now the hack isn't 
working either.  All I'm trying to do is gain focus on input fields in my movie 
clip.
The first time I call Selection.setFocus() it works but after tabbing it 
doesn't visually focus on the next input field.


Here's my code :

function setUpTabIndex():Void {

//automaticaly focus on first input field
Selection.setFocus(this.dataPanel.titleMc.input1.iField);
Selection.setSelection(0, 0);
//
tabKeyListener = new Object();
tabKeyListener.onKeyDown = function() {
if (Key.getCode() == Key.TAB) {
//trace(Selection.getFocus())
if (Selection.getFocus() == null) {

Selection.setFocus(this.dataPanel.titleMc.input1.iField);
Selection.setSelection(0, 0);

} else if (Selection.getFocus() == 
_level0.tab_forms.tab2.dataPanel.titleMc.input1.iField) {
Selection.setFocus(null);

Selection.setFocus(this.dataPanel.createdByMc.input2.iField);
Selection.setSelection(0, 0);
//trace(Selection.getFocus())

} else if (Selection.getFocus() == 
_level0.tab_forms.tab2.dataPanel.createdByMc.input2.iField) {
Selection.setFocus(null);

Selection.setFocus(this.dataPanel.starringMC.input3.iField);
Selection.setSelection(0, 0);

} else if (Selection.getFocus() == 
_level0.tab_forms.tab2.dataPanel.starringMC.input3.iField) {
Selection.setFocus(null);

Selection.setFocus(this.dataPanel.titleMc.input1.iField);
Selection.setSelection(0, 0);
}
}
};
Key.addListener(tabKeyListener);
}

Any thoughts?



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



 



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


Re: [Flashcoders] Martian Dataprovider confusion

2005-11-29 Thread Judah Frangipane

Cort,

I've have often wanted to use the dataprovider on it's own in my 
projects as well. Would you post back to the list your findings. What 
you've got to work. Thanks!


Judah
PS When I was starting out I used the dataprovider in a list component 
and set the list invisible. Then as my project progressed I needed to 
display the dataprovider data. It was funny that when I made the list 
visible all the work was done for me. :)


Cortlandt Winters wrote:


Thanks a lot Hans,

Just after sending that message (and thus having tried everything that
seemed to make sense) I tried new Array() and it did work. Your explaination
makes sense and it is marked as an api in a note of the components language
reference, but then it's also described as a class. I understand the
mechanics of mixins, but it still makes no sense to me as to why something
would want to be like this. I guess the good news is that I still have lots
to learn.

Initialize isn't listed in the documentation, I'll do some searching and
find out if I can learn anything more about that. I think I need to forget
that as1 ever existed if I'm ever going to enjoy as2 in time to forget it
ever existed and enjoy as3.

Thanks again.

 



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


[Flashcoders] Flash Remoting with ASP.NET

2005-11-29 Thread Judah Frangipane
I had a project setup running Flash Remoting with ASP.NET. We are 
working with another company and they backed up and cleaned the root 
directory of the site. I went into the backup and restored my files and 
now I no longer receive any sort of feedback from Flash Remoting calls. 
Not a onResult or an onFault event are triggered. My aspx pages work fine.


Is there anyway to test Flash Remoting is working? Or does this sound 
familiar to anyone?


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


Re: [Flashcoders] Array Madness - test yourself

2005-11-21 Thread Judah Frangipane
i spoke too soon. the alternative methods listed here do not work inside 
my classes. they did work in tests on frame 1.


i ran into this situation inside a class.

does not work:

array.slice(0)
array.length = 0;
array = [];

works:

//any loop
array.pop()
//any loop end

i dont know what it is but they are not getting removed unless i 
specifially use array.pop(). offhand, could it be related to the fact 
that i'm referencing a static array? flash ide throws errors if i do 
anything but use static arrays in this class.


judah


Mark Winterhalder wrote:


On 11/21/05, Robert Edgar [EMAIL PROTECTED] wrote:
 


Why wouldn't you use splice(0)?
   



because i wouldn't have thought of that :)
seriously, splice obviously is the best solution.

Judah:
no, i don't remember ever needing to do that, and frankly, can't think
of such a situation right now. i figured you'd know one since you
asked :)

mark

--
http://snafoo.org/
jabber: [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 



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


Re: [Flashcoders] Array Madness - test yourself

2005-11-21 Thread Judah Frangipane
i think the problem was i was using slice instead of the more 
appropriate splice


in the weee hours of the morning they look so much alike. :)

i will post again when i awake with a clearer head

Robert Edgar wrote:


Of cos array.length isnt really read only :-)

I would suggest you post the whole function that you are using to do this as
the lines of code people have suggested are correct and do work so the
problem is not those lines of codes but something else and its difficult to
figure this out in isolation.

Rob
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Edgar
Sent: Sunday, November 20, 2005 10:12 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Array Madness - test yourself


Well...

 


does not work:

array.slice(0)
 


Cos its splice not slice

 


array.length = 0;
 


Cos length is read only

 


array = [];
 


Cos your only changing what the call parameter references not the underlying
object

So like I said before use splice(0)

Rob

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Judah
Frangipane
Sent: Sunday, November 20, 2005 10:01 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Array Madness - test yourself


i spoke too soon. the alternative methods listed here do not work inside 
my classes. they did work in tests on frame 1.


i ran into this situation inside a class.

does not work:

array.slice(0)
array.length = 0;
array = [];

works:

//any loop
array.pop()
//any loop end

i dont know what it is but they are not getting removed unless i 
specifially use array.pop(). offhand, could it be related to the fact 
that i'm referencing a static array? flash ide throws errors if i do 
anything but use static arrays in this class.


judah


Mark Winterhalder wrote:

 


On 11/21/05, Robert Edgar [EMAIL PROTECTED] wrote:


   


Why wouldn't you use splice(0)?
  

 


because i wouldn't have thought of that :)
seriously, splice obviously is the best solution.

Judah:
no, i don't remember ever needing to do that, and frankly, can't think
of such a situation right now. i figured you'd know one since you asked 
:)


mark

--
http://snafoo.org/
jabber: [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





   



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



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



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



 



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


[Flashcoders] Cannot change color on extended TextInput

2005-11-21 Thread Judah Frangipane
I have extended the TextInput class and I have not been able to set the 
color of the text. I can do it on the stage to a normal textInput with 
this code:


red_btn.onRelease = function() {
  // works
  redTextInput_txt.setStyle(color, 0xFF);
  // does not work except if the text field is first blank and then 
text is typed in

  // assigning text through the text property cause it to revert to black
  extendedTextInput_txt.setStyle(color, 0xFF);
}

In my class i try to set this same value and the text color does not 
change at all


theOwner.setStyle(color, 0xFF);
label.setStyle(color, 0xFF);
this.setStyle(color, 0xFF);
theOwner.setStyle(color, 0xFF);
label.setStyle(color, 0xFF);
this.setStyle(color, 0xFF);


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


[Flashcoders] Array Madness - test yourself

2005-11-20 Thread Judah Frangipane
I just want to bring to your attention a rare array problem that eluded 
me for years. I just realized what is going on.


Whenever I tried to clear an array I would use a for loop, iterate 
through all the items and pop each one off. Every once in a while the 
arrays would still contain values and not be completely erased. Can you 
spot the error? Here is the code:


*
wrong way
*
// create an array
errors = new Array()
// add two items
errors.push(item 1)
errors.push(item 2)

// loop through each item
for (var i=0;i  errors.length; i++) {
   trace(removing item)
   errors.pop()
}
// errors.length = 1
trace(errors.length=+errors.length)


*
right way
*
// create an array
errors = new Array()
// add two items
errors.push(item 1)
errors.push(item 2)
var len = errors.length;

// loop through each item
for (var i=0;i  len; i++) {
   trace(removing item)
   errors.pop()
}
// errors.length = 0
trace(errors.length=+errors.length)


Look at the condition (i  errors.length).

If we pop an item off the end of the array then the length of the array 
is decreased and we do not iterate through all items in the array. Hope 
this helps someone.


Best Regards,
Judah



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


Re: [Flashcoders] Array Madness - test yourself

2005-11-20 Thread Judah Frangipane
i think that's why i couldn't use that (at the time). can you remember 
the situations this came up in?


Mark Winterhalder wrote:


On 11/21/05, JesterXL [EMAIL PROTECTED] wrote:
 


Better yet, why not just:

myArray = [];

done?
   



usually that's what i do, but other references to the array still
point to the old one, so it only works if you know for sure what
references it.

mark

--
http://snafoo.org/
jabber: [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 



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


Re: [Flashcoders] leaf name conflict

2005-11-20 Thread Judah Frangipane
I recently had this problem and I noticed that I was importing the class 
I was creating.


In my main class:

import com.T8.forms.formatting.*;


In my NumberFormatter class:

import com.T8.forms.formatting.NumberFormatter;

class com.T8.forms.formatting.NumberFormatter {
}

It wasn't obvious in the main class that this was going on.

I also had empty MyClass.as files in the package directory. IE they were 
blank. not sure if that had anything to with it or not.


HTH someone,

Best Regards,
Judah Frangipane

Tom Lee wrote:


Hi guys,



I just compiled one of my major projects with Flash 8 for the first time.
Wouldn't you know it: I now get a brand new error I've never seen before:



The class package1.classname cannot be imported because its leaf name is
already being resolved to imported class package2.classname 



Oddly, I can't find this exact error in the help docs.  However, it seems to
correspond roughly to Error 1190:



The class A.B cannot be imported because its leaf name is already
resolved to a previously imported class C.B



For example, compiling import jv.util generates Error 1190 if the statement
import mx.util also appears in the AS file.



So, my question: what's wrong with importing package1.classname in the same
frame as package2.classname?  Why is this now taboo?





Thanks,



-tom

 




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



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


Re: [Flashcoders] embedFonts oddity

2005-11-18 Thread Judah Frangipane

Hi Ian,

I had this issue too. I solved it somehow and I'll have a example up 
later tonight. Here is part of it.


**
Static Textfields - If you only use static fields you do not need to 
embed any fonts.


Input textfields - You have two methods to embed fonts. In both cases 
you must have the font symbols in the library (not named the same as the 
font). The first method is to,
1. Embed fonts by including all the embedded characters in the embed 
property (in the property inspector) or

2. Use actionscript and set the embed property to true (see code)

Dynamic textfields - Same as input textfields.

TextInput - You can only embed fonts for text inputs by enabling the 
property in code. Font symbols must be in the library (not named the 
same as the font). (see code)


Textarea - You can only embed fonts for text inputs by enabling the 
property in code. Font symbols must be in the library (not named the 
same as the font). (see code)

**

The example has code as well.

Best Regards,
Judah Frangipane



Ian Thomas wrote:


(MX2004)

I'm having a bit of trouble with embedFonts (but not the usual 'can't find
font' trouble!).

I have a bunch of perfectly happily working dynamic TextFields, all created
in ActionScript.

They are all multiline, with wordWrap turned on.

They work perfectly well if I'm not using am embedded font - just relying on
the system fonts.

If I recompile with embedFonts set to true, the text is displayed in its
lovely anti-aliased goodness;
but it doesn't wrap any more - it just carries off to the right and gets
truncated by the edge of the field.

Googling pulls up a conversation on ActionScript.org - where the same
symptom had been seen
(but only with the last line of text - which is different from my
experience). A number of people
had reproduced the problem, but no-one had solved it.

Anyone come across this before? Any solutions? I've tried reordering the
embedFonts=true call with
the setTextFormat/set multiline/set wordwrap/setNewTextFormat calls, but
that makes no difference.

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



 



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


Re: [Flashcoders] New Hire Resources list. Input needed.

2005-11-16 Thread Judah Frangipane

I really like this site. I would put someone through this to begin with.

*School of ActionScript*

These are video tutorials taking you from reading the book to real world 
usage. I recommend going through this ~2 day course. Broken down into 
sections.




*ActionScript 2.0 Class Fundamentals*



This series on writing ActionScript 2.0 Classes will introduce you to 
all the essentials elements needed to build sophisticated Flash 
applications. They continue to get progressively more difficult in skill 
level the further the lessons go building on what you have already 
learned in the previous segment. I have included in this series 
techniques I have made while using this language. I believe all who 
watch these videos will learn something from them. Below is an outline 
highlighting the discussion points.




http://www.flashextensions.com/categories/as2f/index.php



*ActionScript 2.0 Class Intermediate *



This series, we go beyond the basics of classes and focus on class types 
and implementation. This video series will complete the know-how of 
class strutures and prepares you for the final segment ActionScript 2.0 
Class Advanced which focuses strictly on implementation of components 
and applications. It is recommended to view the ActionScript 2.0 
Fundamentals http://www.flashextensions.com/categories/as2f/index.php 
series before viewing this series.




   http://www.flashextensions.com/categories/as2i/index.php





   *Design Patterns

*

Design Patterns are solutions to common problems developors face when 
designing an Object-Oriented system. This series will thoroughly cover 
over 25 common patterns. 




   http://www.flashextensions.com/categories/dp/index.php





   *Flash Tips*

  


   Quick tips and techniques to building better Flash applications.



   http://www.flashextensions.com/categories/ftips/index.php



Wade Arnold wrote:

I am working on a list of resources that I would like to give to 
people  that are migrating to flash from other languages. We have just 
hired a  couple people that are CS graduates and others that have been 
in the  java world for the last ten years. Any feedback on what you 
would want  your new hires to review?



We have several good books that will get you started in comprehending  
flash.

Books:
Macromedia Flash MX 2004 Hands-On Training
You have to start somewhere
Action Script for Flash MX
aka the bible
Flash Communication Server
Wonderful overview of the technology
Extending Flash MX 2004
Automating the flash programming environment
(still waiting for a good flash remoting book)
   


Weekly websites to review and bookmark:
http://osflash.org/
http://www.actionscript.com/
http://weblogs.macromedia.com/mxna/



Mailing lists:
FlashCoders:: Salvation for flash developers. Please don’t ask 
dumb  questions on this list

http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

OSFLASH

http://osflash.org/mailman/listinfo/osflash_osflash.org
Extending Flash
http://www.flashguru.co.uk/extending-flash-mailing-list/

Flash Documentation:
This is the online version of what is already in your help files  
inside of flash.

http://www.macromedia.com/livedocs/flash/mx2004/

Flash Technologies that we use:
Read and understand all Actionscript 2.0 documentation.
http://www.macromedia.com/devnet/mx/flash/actionscript.html

Read and understand all of the version 2 component information.
http://www.macromedia.com/devnet/mx/flash/components.html

The Macromedia component Architecture.
http://www.macromedia.com/devnet/flash/articles/ 
component_architecture_03.html


Flash Remoting: This link is also included in your help files.
http://livedocs.macromedia.com/flashremoting/mx2004/ 
actionscript_api_reference/frameset.html


Links to remoting examples:
http://www.macromedia.com/devnet/flashremoting/


Example Applications to learn from others~!
http://www.macromedia.com/devnet/mx/flash/sample_apps.html
http://www.sephiroth.it/download.php



Software Development:

All software is designed first so you need to understand basic UML  
concepts. If you have not worked with UML it would be good to 
research  UML on the web and start learning it as it is expect that 
you  understand how to mark up a UML document and translate UML to code.


http://www.actionscript.com/index.php/fw/1/an-introduction-to-uml-key- 
concepts-applied-to-flash-development/


Design Patterns. You will find that we use many design patterns here.  
We ask ourselves “why”, If we find ourselves not using a pattern.

http://www.macromedia.com/devnet/mx/flash/articles/mv_controller.html
http://www.moock.org/lectures/introToPatterns/
http://java.sun.com/blueprints/patterns/


Requirments Gather. We use the Volere templates for all internal and  
client work. It will be good for you to understand these concepts and  
read through all the 

Re: [Flashcoders] Offline/Online Security in FP8

2005-11-09 Thread Judah Frangipane
This issue has come up numerous times for us too. A few of us have read 
the articles and they are very confusing. If I understand this concept I 
would write up a helpful chart or article but I still get errors. Even 
following the advice of using


System.security.allowDomain(http://localhost;); 

does not work for us. Hoping this topic can be put to rest finally in 
this discussion. Once this is done let's put this article in the 
FlashCoders wiki.


A chart like this:

swf location|   access to   |   usage

local|   remote   |   set config file on server 
like... xml   allow domains=*   /xml 


local ide|   remote  |   (different rules)

remote server  |   local  |   (different rules)


Judah

JesterXL wrote:


What browser and what Flash Player version?

- Original Message - 
From: franto [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 09, 2005 11:10 AM
Subject: Re: [Flashcoders] Offline/Online Security in FP8


i have created cfg file as it was written in
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1610.html

but still doesnt work :(
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 


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



 



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


[Flashcoders] Flash remoting - when is the service call made?

2005-11-09 Thread Judah Frangipane
We are using flash remoting and I am trying to figure out when the call 
is getting made. Is it at the time that I call the service method or 
after I create the Relay Responder object? Does the pending call object 
get and hold the data until a relay responder has been created or after 
it has been created?


// call service
var temp_pc:PendingCall = myService.readDirectory(dirPath);

// create a responder.
temp_pc.responder = new RelayResponder(this, gotMilk, gotFault);

function gotMilk( re:mx.rpc.ResultEvent ):Void {
   // do stuff
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] passing a variable to a function

2005-11-09 Thread Judah Frangipane
That's what I was thinking too. This article may be helpful in this 
situation http://osflash.org/flashcoders/as2?s=delegate.


Judah

Glenn J. Miller wrote:


My guess here is that your reference to _root is 'lost' in terms of scope,
as you're handling the onLoad event locally (on the stack) within the
loadDescriptions() function. Might try this with your current approach:

// namespace for this module
if(_global.LoadNS == undefined) {
   _global.LoadNS = this;
}

function loadDescriptions() {
for (var i = 0; i  _root.menuItems_array.length; i++) {
var thisTextLoadVars = new LoadVars();
thisTextLoadVars.onLoad = function(success) {
trace(LoadNS.menuItems_array[i]);
};
var thisDoc = _root.menuItems_array[i];
trace(thisDoc:  + thisDoc);
var textDoc = _root.menu[thisDoc].description;
thisTextLoadVars.load(textDoc);
}
}

Hope this helps...

--
Dok
Skyymap Inc.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of allandt
bik-elliott (Receptacle)
Sent: Wednesday, November 09, 2005 12:11 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] passing a variable to a function

k - sorry for spamming this board all day but it's all been from the same
problem

i've boiled the whole thing down to this:

how do i pass a variable to an onLoad() function?

here is my script
function loadDescriptions() {
for (var i=0; i_root.menuItems_array.length;i++) {
var thisTextLoadVars = new LoadVars();
thisTextLoadVars.onLoad = function(success) {
trace (_root.menuItems_array[i]);
};
var thisDoc = _root.menuItems_array[i];
trace (thisDoc: +thisDoc);
var textDoc = _root.menu[thisDoc].description;
thisTextLoadVars.load(textDoc);
}
}

the trace in the the onLoad function returns undefined. Can anyone tell me
how to get around this please?

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

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



 



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


[Flashcoders] Cost of set interval

2005-11-03 Thread Judah Frangipane
Is there any noticable performance loss in using set interval? I've 
stayed away from them for years because I thought they might slow down 
an application but that was 5 years ago. I'm thinking of calling (to 
update) something every second. Maybe less maybe more. Any performance 
hit with watch?


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


Re: [Flashcoders] Flash capabilities

2005-11-02 Thread Judah Frangipane
To stream an mp3 all you need is a path to the file. The flash player 
will handle the streaming.


For database interaction all you need is flash remoting. It is one of my 
favorite features of flash. It ROCKS! You can check out the free 
amfphp.com or the commercial versions for asp.net, cold fusion, etc. We 
have been using both and it makes it very easy to connect to a database. 
You do need to know the related server-side technology (php, asp, 
asp.net, cf, etc) to use it.


Judah

8ball Developer wrote:


1. Can flash play audio streamed from Helix (Real Server)?
 


flash streams mp3. thats all. (why it doesnt do ogg, i dont know.. :)
   



Sorry. I meant to say: can a flash player, play mp3 streamed from Helix? Or
does it have to come From Flash comm?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 



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


Re: [Flashcoders] DHTML and FLash Player 8 Bugs Fixed

2005-11-02 Thread Judah Frangipane

Nice guys! :)

Yes, I'm rooting for deng and for flash 8.5 and more html support in 
textfields but ho is there for people that still need straight html. 
Drag and drop from component panel into flash. But it would be cool to 
update it with Flash 8 External Interface.


http://drumbeatinsight.com/examples/htmlOverlayFullScaleIFrame_files/htmlOverlayFullScaleIFrame.swf 


http://drumbeatinsight.com/examples/htmloverlay/debug/htmlOverlayDebug.html
http://drumbeatinsight.com/examples/htmloverlay/queue/htmlOverlayMultipleSampleQueueExample.html 

http://drumbeatinsight.com/examples/htmloverlay/stretch/htmlOverlayFullScale.html 


http://drumbeatinsight.com/examples/htmloverlay/withlist/htmlOverlayWithList.html

Check out the debug example. There are *three* html overlays on that 
page. Can you spot the other ones?


Judah

Andy Weisner wrote:

Heres a HO like ,similar seamless  HTML layer - over flash interface 
example I implemented 2 years ago:

http://www.wsw-online.de/verkehr/index.html
(its in a popup ,so wont work with popup, click wsw-mobicenter link)

Its working quite good on most browsers but probably not all..but was 
a pain to implement.


If maybe a easy framework  for this can be made like HO it definetly 
has potential with flash8 .


there is another way  possible now if one want to  make a seamless 
flash  like a frame around  the HTML layer using
like 3-4 different embeded flash movies which all comunicate and 
synchronize with flash local connection...and via javacript /external 
interface with the content.The content could sometimes be another a 
5th flash movie which communicates with the others so make it even 
more seamless.

 I will try this approach on a project soon.
Wont work on any layout but works fine for many,and should have  no 
problems with browsers like the HO approach.


Andy


Stan Vassilev wrote:

The fact we can get HO working consistently accross wider range of 
browsers is exciting since I've been trying to get it done properly 
for ages now (mixing Flash and HTML as if it's all in Flash).
However it still remains buggy and limiting (example - missing text 
cursors, focus issues and the fact html is always on top means no 
custom cursors or movieclips over it etc. etc.).


It also requires too much from the user - JS on, recent Flash player, 
recent browser version, and right platform.


With flash 8.0 adding advanced bitmap operations and 8.5 adding 
blazing math speed to the runtime, I think we're a lot closer to 
having full-blows DHTML renderer in Flash which is almost as fast as 
any browser out there (in other words: like Deng, except couple of 
hundred times faster ;) ).


Regards, Stan Vassilev

I'm not sure how your site is built but the purpose of the HTML 
Overlay (HO for short) is to get HTML from a database (using ASP, 
PHP, etc) and update the div that is displayed transparently over 
your flash document. The html content can come from an html element 
on the page or be set in flash like this:


// set the html in dynamically created div
my_ho.setHTML = some html
// move the div to a new location relative to where it is on the 
flash stage

my_ho.moveTo(10,30)
my_ho.setHTML = new html

Is really one of my personal favorite projects. It is to give Flash 
all the features of HTML from within the Flash IDE. Now with 
External Interface we have a even more features. I still get info 
that people do not know it's uses. I'll post some links to live 
demonstration shortly.


Best Regards,
Judah


Sander wrote:

The principle works indeed. But the HTML has to come from Flash. In 
a large site where dynamic (ASP) pages create the menu's, it can't 
be used.




On 01 Nov 2005, at 07:01, Helmut Granda wrote:

Great work! By any chance Do you have a list of platforms you have 
tested this on? The main problem I have is with Linux.


Thanks

...helmut

Judah Frangipane wrote:



Hi Saunder,

It is possible. Until I send some example links you can look at  
these screenshots here:


http://drumbeatinsight.com/system/files?file=screenshot1.jpg
http://drumbeatinsight.com/system/files?file=screenshot2.jpg
http://drumbeatinsight.com/htmloverlay

I am thinking of making this open source if anyone is interested.

Best Regards,
Judah

Sander wrote:


Er... Linux issue only? How do you layer *any* content above  
flash? It's just not possible! Even a layer with plain text 
with  a higher ID will drop under flash...



Thanks for all your help, not only I learned how exactly  
indetify the problem but also how to post more accurate  
subjects to the list. I will try to get the source info for  
this problem and post it back to the list.





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






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

Re: [Flashcoders] DHTML and FLash Player 8 Bugs Fixed

2005-11-01 Thread Judah Frangipane
I'm not sure how your site is built but the purpose of the HTML Overlay 
(HO for short) is to get HTML from a database (using ASP, PHP, etc) and 
update the div that is displayed transparently over your flash document. 
The html content can come from an html element on the page or be set in 
flash like this:


// set the html in dynamically created div
my_ho.setHTML = some html
// move the div to a new location relative to where it is on the flash stage
my_ho.moveTo(10,30)
my_ho.setHTML = new html

Is really one of my personal favorite projects. It is to give Flash all 
the features of HTML from within the Flash IDE. Now with External 
Interface we have a even more features. I still get info that people do 
not know it's uses. I'll post some links to live demonstration shortly.


Best Regards,
Judah


Sander wrote:

The principle works indeed. But the HTML has to come from Flash. In a  
large site where dynamic (ASP) pages create the menu's, it can't be  
used.




On 01 Nov 2005, at 07:01, Helmut Granda wrote:

Great work! By any chance Do you have a list of platforms you have  
tested this on? The main problem I have is with Linux.


Thanks

...helmut

Judah Frangipane wrote:



Hi Saunder,

It is possible. Until I send some example links you can look at  
these screenshots here:


http://drumbeatinsight.com/system/files?file=screenshot1.jpg
http://drumbeatinsight.com/system/files?file=screenshot2.jpg
http://drumbeatinsight.com/htmloverlay

I am thinking of making this open source if anyone is interested.

Best Regards,
Judah

Sander wrote:


Er... Linux issue only? How do you layer *any* content above  
flash?  It's just not possible! Even a layer with plain text with  
a higher ID  will drop under flash...



Thanks for all your help, not only I learned how exactly  
indetify  the problem but also how to post more accurate  subjects 
to the  list. I will try to get the source info for  this problem 
and post  it back to the list.





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






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







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




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





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


Re: [Flashcoders] blog presentation flash

2005-10-31 Thread Judah Frangipane
Hi dc,

I started a Flash UI for drupal project a while ago. After my research I
figured you could do a Flash front end to display data but it would be
difficult to do the data entry. So the option would be a mixed site with
Flash to display content and HTML to create it. I came to the conclusion
that Drupal needed an xml api to pull in straight from the index.php
page otherwise I would have had to write my own xml api or parse the
html in an xml object. At the time (~Feb, 05) someone said they had made
an xml api but it was not ready to be released to the public. My
conclusion is that you can easily enough use Flash for sections of the
site template but not the whole thing. Looking at it now it may take
just as much time to setup flash remoting and pull in data from the
drupal database or a custom database. The only advantage of drupal at
this point is using the editors and login system already built into it.
I still have the design documents (rough drafts) if you are interested. HTH

Judah

dc wrote:

I need to do a product site which is viewed in flash, but want to use a
blogging system to manage the content updates.

seems like wordpress has well documented DB apis etc to pull the post
content out of; 
has anyone seen other blogging systems that someone has written a flash
presentation layer on top of? are there any open source projects in this
direction?

I like Drupal's UI as a way to input content, but the API is a little much
to pull data out of ...
I havent looked at mambo, but it may work.

I could also use a wiki, as the site content is not really -timeline-
oriented, but most wiki systems seem a little too free-form with the data.

Thanks!

/dc
---
   David DC Collier
mailto:[EMAIL PROTECTED]
   +81 (0)80 6521 9559
   skype: callto://d3ntaku
---
   Pikkle 株式会社
   http://www.pikkle.com
--- 


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



  


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


Re: [Flashcoders] Why Flex?

2005-10-28 Thread Judah Frangipane
right on. that's what i'm talking about. flash was about 80%-90% there 
for developers and then they forked the sucker. are they focus on 
developers in the next version of flash authoring since 8 was a designer 
oriented release? i like flex and where it can be used but i'd like to 
see the features in flex syncronized in/with flash authoring. that would 
be killer.


ryanm wrote:

   One might ask, however, why, instead of creating a whole new 
development platform, they didn't just release better components that 
are easier to skin, better CSS support, better html support, and just 
make Flash a whole lot more capable and eay to develop for. Sure, 
skinning is easy in Flex, but why not make skinning components easy in 
Flash, rather than making skinning is easier in Flex a marketing 
campaign for Flex?


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





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


Re: [Flashcoders] Job Offer :: employee search

2005-10-27 Thread Judah Frangipane
The positions we have open are for experienced flash developers and 
software engineers. These are on-site positions. What we are looking for 
is a:


Flash Developer / Software Engineer

Required Skills:
Computer Science Degree or appropriate experience
OOP

Desired Skills:
Actionscript 2.0
Server side scripting languages (ASP.NET, PHP, ASP, CF, etc.)
Flash Remoting ASP.NET
Flash Remoting AMFPHP
SQL Server, mySQL
XML
C#
Flex
Javascript
RegExp
Fluent in English

When contacting us please include resume and portfolio (with links). You 
need to be able to work on-site in Cedar Falls, Iowa.  Pay scale is 
based on portfolio and experience from $33k to $60k. Please email me for 
further details.


Best Regards,
Judah Frangipane
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] When migrate to Flash 8?

2005-10-27 Thread Judah Frangipane
I'd upgrade to Flash 8 even though you are doing Flash 6 and 7. It has a 
lot of little things that make development quicker. So even though you 
are exporting to Flash 7 you can still take advantage of the new text 
resizing handles (something I use everyday) and other neat little 
changes. Or wait until 8.2 update (if one comes out).


Best,
Judah

Gregory wrote:


Hello flashcoders,

I haven't upgrade to Flash 8 so far. Of course I'll do it soon ;-).
But I have already read some of the manuals (AS reference, components etc)

New features are great, definitely worth buying/using/migrating.
The only question is when?

Example:
My product, Dynamic Blend v.2 Flash MX 2004 component, uses Color class (Flash 
5-7).
Have a look: http://www.gousable.com/flash/dynBlend.html

Now in Flash 8 Color class became deprecated (in favor of the 
flash.geom.ColorTransform class).
No doubt flash.geom.ColorTransform class is better, but it's flash8-only.

Most other deprecated functions are from Flash 4, so I think Color
class will be supported until version 10 (or even 12 ;-).

On the other hand, during the last year approx. 80% of my clients require 
compatibility with
Flash Player 6, and approx 30% - with Flash Player 5!

If possible, I don't want to force user to install something...

I'd like to hear your opinion regarding this.  

 



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


Re: [Flashcoders] Flash vs Flex

2005-10-27 Thread Judah Frangipane
I'm all for making plugins and updates to FB but if this is a huge 
upgrade you might want to submit your feature requests to 
labs.macromedia.com first. They released FB2 as alpha so that the Flash 
community could talk about what needs to be added. I'm not sure how open 
MM will be about this but you can ask them if they have this feature in 
the plan IMHO.


Judah

Spike wrote:


On 10/27/05, Mike Britton [EMAIL PROTECTED] wrote:
 


Not totally sure what you mean by that...
 


Map symbols to classes via some kind of package explorer wizard: if you
create a movieclip in Flash, it goes into the Flash Library as a symbol.
When you right-click this new symbol in the Library and choose
'properties'
you'll see a wizard in which you can associate the symbol with an
actionscript class. It would be nice to have the same capability in this
hypothetical Library plugin for Eclipse, only you can surf to the class
and
choose it instead of having to write 'com.arp.blah.blah...'.
   





ok, I think I see what you mean now.

I'll wait and see what happens when Flash authoring gets update for AS 3 and
Flash 8.5. My understanding is that everything will be a class and that
symbols won't really exist any more.

I can look at picking apart .swc files and seeing how much of that I can
display. I did that already for the Flex 1.5 framework, so I know quite a
bit about what's going on in there, it's just a question of how much it's
changed since then.

 


2. Import existing Libraries from Flash and maintain symbols' package
paths
   


Existing libraries in what format?
 


A designer creates a new Flash file and creates the visual interface.
He/she
arranges his native Flash IDE Library, naming symbols and such. A
developer
then goes into Eclipse and from this hypothetical plugin can import that
native Flash Library.
   




ok, in what format is the library saved from the Flash IDE?

.fla, .swf or .swc

.swc is by far the easiest to deal with, but that doesn't help if there are
.swf files inside.

It will be possible to run an instance of the flash player inside the
library plugin, so that would allow display of .swf assets.

.fla files would be the trickiest of the lot and I'm inclined to say that
it's probably better not to bother since they need to be turned into either
a .swf or .swc to use them in a project anyhow.

 


There may be issues with components/EULA.
   


yep, will need to look into that
 


This is keeping people from sharing source and that is bad. Can't they
just
open source the components? Come on! (Bangs fist on keyboard.)
   




heheheh

Yeah, dammit!

and while they're at it, I'll have a copy of the flash paper source so I can
sort out this text table problem I'm struggling with.

Mike
 


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

   





--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 



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


[Flashcoders] Creating a compiled component or compiled clip?

2005-10-21 Thread Judah Frangipane
We have created a calculator component for reuse but I am not sure if we 
should create it as a compiled clip or component due to the way it was 
built.


On the stage we have a movieclip and inside of it it has multiple 
textinputs, buttons, radio groups and graphs. We didn't use a bounding 
box or create the layout using actionscript mainly because we want to be 
able to easily change the layout if need be. It has working inspectable 
properties.


Should this be a compiled clip or component? We are exporting it as 
component right now and without delving too much into the cause of it 
yet, when we drag it from the components panel into a new blank project 
the layout is screwed up (graphics are moved around) and the components 
do not show up until we compile the clip.


Best Regards,
Judah

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


[Flashcoders] Job Offers

2005-10-21 Thread Judah Frangipane
We have several full-time positions open for experienced flash developers and software engineers to work on high profile, exciting 
and challenging projects. These are on-site positions and we are not currently looking for contractors. 
These projects are both creatively and technically innovative and will have extensive promotion throughout the USA.


1. Flash Developer / Software Engineer

Required Skills:
Computer Science Degree or appropriate experience
Actionscript 2.0
OOP

Desired Skills:
Flash Remoting ASP.NET
Flash Remoting AMFPHP
Server side scripting languages (ASP.NET, PHP, ASP, CF, etc.)
SQL Server
XML
C#
Flex
Javascript
Fluent in English

When contacting us please include resume and portfolio (with links). You need to be able to work on-site in Cedar Falls, Iowa.  Pay scale is based on portfolio and experience. 


Please email me for further details.

Best Regards,
Judah Frangipane

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


Re: [Flashcoders] Learn AS2 or AS3?

2005-10-21 Thread Judah Frangipane
This may be a little late to this conversation but I'd have to disagree. 
I would learn AS3 and skip AS2. You can only learn and experiment with 
AS3 in Flex Builder 2 (as far as i know) since Flash Authoring (the next 
version of Flash) is not out yet.


Looking at the specs and transitions from AS2 to AS3 a lot has changed. 
Look at this list 
http://livedocs.macromedia.com/labs/1/flex/langref/migration.html
In fact it's a whole new engine reworked from the ground up. Some 
functions have changed, moved or been removed so you are going to learn 
about a lot of syntax and methods and functions and by the time you 
learn it and get it down you will have to throw it out because AS3 is 
vastly different. It's just a personal opinion but this late in the game 
it might just end up confusing you to learn AS2 now.


Judah Frangipane

Merrill, Jason wrote:


Pretty much everything you'll learn in Moock's AS2 book, you'll need for
AS3, so learning AS2 is a great place to start. Plus, there aren't any
AS3 books out there yet anyway.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: Friday, October 21, 2005 6:06 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Learn AS2 or AS3?

I have never really got around to learning AS2 and tend to program
everything in AS1 - tutt tutt!!

Anyway I was thinking it is about time I got with the times and was
 


going to
 


start working through the book I bought a while ago Essential
 


Actionscript
 


2 by Colin Moock. I bought this a while ago but never got round to
 


reading
 


it.

Well there is alot of talk about AS3 these days. I would like to know
 


if is
 


better to just learn AS3 rather than AS2 first? Or does one naturally
 


lead
 


onto the other?

Thanks

Paul


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


NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 



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


[Flashcoders] When can we deploy Flex Builder 2 apps?

2005-10-20 Thread Judah Frangipane
I played with Flex Builder 2 a bit and I think I see where this is 
going. Is it safe to say that this Alpha is just to get used to what MM 
is working on just make example projects? Is it recommended we can start 
creating apps that may be deployable a year from now (to coincide with 
the final release of FB2? or to deploy next spring with the flash player 
8.5 public release)?


And when will it be possible to make swfs in flex that can be imported 
into Flash Authoring? Or the other way around (I'm not familiar with the 
best method)? Because I know in our apps we will do animation, tweens, 
fades and effects.


Thanks,
Judah Frangipane
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] More on JSFL

2005-10-20 Thread Judah Frangipane

Hi Danny,

It's hard to say without being able to look at your loop code. The times 
that my JSFL scripts have stopped were usually due to trying to access a 
locked or hidden layer. I don't think I got an error (but I don't 
remember for sure). So check that thats not the case. Also, you might 
get some answers from the extending flash list  
http://lists.flashguru.co.uk/mailman/listinfo/extendflash.


Judah

Danny Kodicek wrote:


My JSFL script appears to be unaccountably dying half-way through. It's a
pretty hard-working script, but there's nothing to make it stop where it
does (just half-way through a perfectly ordinary loop it's already 
traversed
successfully several times). Is there some limit on the amount of code 
that
can run in one JSFL script? Other people have talked about running 
scripts

for long enough to get the 'Flash has been doing stuff for ages, want to
stop?' message, and I'm nowhere near that stage, but perhaps there's a
memory limit - I'm creating quite a few objects during this process.

Any thoughts welcome

Danny


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





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


[Flashcoders] Will ActionScript 3 require me to rewrite my apps to use it?

2005-10-19 Thread Judah Frangipane
I was just looking at the AS2 to AS3 migration language reference 
(http://livedocs.macromedia.com/labs/1/flex/langref/migration.html) and 
I have a couple of important questions.


1. A lot of things have change and moved in AS3. Will my flash app have 
to be converted to compile to AS3?
2. Will there be some sort of way to have a V2 AS2 component run inside 
a AS3 app? Or will old functions be deprecated or completely removed?


Is it safe to say that our apps will require major conversion to work 
with AS3? Or possibly written from the ground up?


This is understandably a huge step to take if you want to compete and 
make the AS3 / AVM3 engine a competitor to C# and others and I can see 
why it *has* to be done but I want to know if it is as huge a step as I 
think it is (completely rewrite my apps). Yes? If so can this be the 
last major AS change? Can you do whatever it is you need to do in this 
release rather than making a change in the future. I feel if that is the 
case to not hold off now (like adding reflection) if later on it will 
cost us developers, type of thing.


Best Regards,
Judah Frangipane
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Macromedia unveiling Flex 2 and Flash 9 :communication or cacophony ?

2005-10-18 Thread judah

Same emotional ride here plus more (flash component developer).

If Macromedia wants to get programmers on board to Flex Builder they 
need to make it an attractive price. We have already spent and invested 
time, money and more to get to the level where we are at. Even if they 
set the price (say $1000 or $600) is what it's worth, you would still 
put off many of the people that might want to embrace it because it is 
too steep a jump for those that just purchased Flash 8 or Macromedia 
Studio. Like the XBOX and Playstation and all the consoles, they may 
need to do something to get people on board especially the people that 
have supported them and rallied for Flash for so long.


Best Regards,
Judah Frangipane

JesterXL wrote:

You've hit most of the Flash to Flex emotional ride.  You appear to be on 
frustration.


Here are the phases:
- indifference
- exploration
- contemplation
- understanding of segmentation
- frustration
- renewal
- decision

To elaborate, one hear's about Flex.  Sounds interesting, but they aren't 
sure what it's about.  Their curiosity is destroyed when they hear about the 
price.  Some has been re-kindled by the preliminary price announcement as 
well as all the Flex 2 announcments.


You learn and explore what Flex is all about, what it has that Flash does 
not.  You comprehend how to develop Flex apps.


You contemplate how would this apply to you?  To your current target work 
market?  Do you build apps or souped-up functional websites? Games?  Where 
does Flex fit?


You then the see the segmentation of Flex and Flash's goals.  Flex 
originally got the enterprise developers on board, and is now taking the 
rest of the programmers with it al la Flex 2.  Flash 8 glaringly points out 
the difference when you compare the two.


You get frustrated; wtf?  15,000k + a server requirement for 3 year-old 
components?  This isn't fair!  Do they not care about the people who got 
them here?  Hell, the AJAX'ers stole OUR MONIKER!


Renewal, which thankfully came about via Flex 2's annoucement, is the 
attainable price range, with features that are marketable vs. workflows that 
are desriable for a developer but hard to sell as ROI.  Both Flex and 
ActionScript projects are supported, the speed is way up to par, the new 
features are tight, and the language is sweet... and you can play and give 
feedback before it's even released.


Decision; what to do?

A long time ago, Nigel tried to predict what this meant for Flash 
Developers:

http://www.macromedia.com/devnet/flex/articles/flash_perspective.html

There are existing markets that will embrace this, others shun, and new 
markets will be created.


Where do you fit in?  THAT is the real question, not what an RIA is, but 
what will we make an RIA become?


 



--
Always bear in mind that your own resolution to succeed is more important than any 
one thing.

You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 


- Abraham Lincoln

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


Re: [Flashcoders] localToGlobal ?

2005-10-07 Thread Judah Frangipane

Giles,

Thank you for this excellent explanation. I'd get confused by this too 
from time to time. Especially because there were different ways to use 
it. Now I have another good way to explain it.


If you are in HTML you already know what localToGlobal is. Just 
different terms. Local to global is a way of saying relative to 
absolute. I would have understood this earlier if the function was 
renamed relativeToAbsolute or relativePositionToAbsolutePosition.


Maybe some new functions should be made that would make more sense to 
people like me:


// returns point object with absolute (global) x and y of my_mc
var globalPosition:Object = my_mc.absolutePositionInStage()

// returns relative position of nested_child_mc to ancestor_mc
var relativePosition:Object = 
nested_child_mc.relativePositionTo(nested_child_mc._parent._parent)
var relativePosition:Object = 
nested_child_mc.relativePositionTo(_root.parent_of_nested_mc)


maybe you could give an explanation of global to local?

judah


Giles Taylor wrote:


Say you have a movieClip called A_mc on the stage that you move to
x:20 y:20, then you have a movieClip in A_mc called B_mc that you
place at x:20 y:20.

When looking at the stage A_mc will be at x:20 y:20, but B_mc will
be at x:40 y:40.

However, if you ask what B_mc._x is then it will say 20 because it
relates it to it's parent movieClips registration point(x:0 y:0).

So to find out when B_mc actually is on the stage you use:
var myPoint:Object = {x:B_mc._x, y:B_mc._y}
B_mc.localToGlobal(myPoint);
Trace(myPoint is now relative to the Stage: ( + myPoint.x + : +
myPoint.y + ));

So, in your case you would say:
var myPoint:Object = {x:MAP.springfield._x, y:MAP.springfield._y}
MAP.springfield.localToGlobal(myPoint);
Trace(myPoint is now relative to the Stage: ( + myPoint.x + : +
myPoint.y + ));

Hope that help you get it.
Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kurt
Dommermuth
Sent: 07 October 2005 11:39
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] localToGlobal ?

Hello,

How localToGlobal is to be used has confounded me from day 1.  I never
get it and usually end up doing things in some assbackwards way to
accomplish what I want.

Hopefully someone can put me out of my misery once and for all.

at least in terms of localToGlobal.

I have a an MC called MAP .  Within MAP I mark certain towns with nested
movie clips with unique names such as springfield.

I want to pass a function located in _root the _x and _y values of
springfield and have the map move so springfield is in the center of
the stage.

I know this should be a simple task and yet I waste hours every time I'm
faced with this type of problem.

Hope I'm being clear.

thank you!
Kurt 


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



 



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


Re: [Flashcoders] Flash player 8.5 and ActionScript 3.0

2005-10-07 Thread Judah Frangipane
I wish this would make sense to me. Either this is really obvious or I'm 
baffled.


Flash 8 just came out
Flash Alpha (next version NOT allowed to be called Flash 9 for some 
reason) is coming out in the spring of 2006 and will be available free 
to the public or current Flash 8 users
Flash Alpha final (after alpha and beta) will be shipped in the first 
half of next year (2006) julyish

Flash 8 users will have to buy Flash Alpha

Was Flash 8 really Flash 7.5 so it could be included in the new 
Macromedia Studio? Does this have to do with the whole unsyncronized 
thing or the Adobe merger/rebranding? I'm just trying to understand 
this. Maybe translate into ActionScript 2.0. ;)


Judah


David Mendels wrote:


Hello,

Alpha at MAX on Oct 17.

Final shipment in the first half of next calander year.

-David 

 


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Merrill, Jason

Sent: Thursday, October 06, 2005 7:47 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Flash player 8.5 and ActionScript 3.0

Yeah, I know, I was just guessing since if you have an alpha 
in the spring, I couldn't figure how the final version 
wouldn't be out until 2007, but what do I know.  This is 
really exciting stuff.  

Jason Merrill  










   


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mike 
Chambers

Sent: Thursday, October 06, 2005 7:19 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash player 8.5 and ActionScript 3.0


Yes. Except, i didn't say that Flash 9 (or whatever it is called), 
will be out in a year.


Historically the release cycles for Flash have been 18 - 24 months.

mike chambers

[EMAIL PROTECTED]

Merrill, Jason wrote:
   

Thanks Darron and Cortlandt - that makes more sense now.  
 


So if I have
   


this right, in the spring, we get an alpha version of a
 


partial Flash
   


9 which has AS3 to play with, but this is nothing to buy,
 


just to test
   


in the 8.5 player.  The next update to Flash will NOT be a
 


dot release,
   


it will be Flash 9 with AS3 which will be available to
 


purchase maybe a
   


year or so from now.  So this is a somewhat shorter
 


development cycle
   

than usual. 


Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com











 


-Original Message-
From: [EMAIL PROTECTED]
 


[mailto:flashcoders-
   


[EMAIL PROTECTED] On Behalf Of Cortlandt Winters
Sent: Thursday, October 06, 2005 3:52 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash player 8.5 and ActionScript 3.0

Hi Jason

I think the next full version of flash authoring will be
 


flash9, and
   


that an

 


early alpha might be availble in the spring, but there
 


will be no QA'd
   


update to 8 to support As3. You can probably put this in
 


the context
   


of MM

 

will be Adobe soon, so that even if they wanted to just 
 


support an
   


as3

 


update to flash8, it would probably be a logistical nightmare. So
 


whatever

 

is available in the spring it will be a part of the next 
 


release of
   


the

 


authoring environment, not a free update to the current release.

I'm not an MM employee, but that's how I read it.

-Cort

On 10/6/05, Merrill, Jason [EMAIL PROTECTED] wrote:

 


Mike Chambers, can you clarify?

Judah wrote:

   

Could you clarify what Flash Authoring is and what 
 


the next
   


full

 


version of authoring is?
 


So Mike Chambers replied:

   


Flash Professional 8
Just to clarify. There is no update for Flash Professional 8
   


planned.

 


But Mike Chambers also wrote:

   


There will be an early alpha of the next full version of
   


authoring

 


that includes ActionScript 3 support. This will be
   


available in
   


the

 


spring.
   


So now I'm really confused! Those sound like contradictory
   


statements.

 

If Flash Authoring = Flash 8 (Flash IDE) and the next 
   


full version
   


of

 

authoring will be available in the spring, then how can 
   


no update
   


for

 

Flash be planned? Is this authoring you're referring 
   


to NOT the
   


Flash

 

IDE? Can you clarify what this thing is that will be 
   


released in
   


the

 


spring or at least explain the contradiction?

Thanks.

Jason Merrill | E-Learning Solutions |
   


icfconsulting.comhttp://icfconsulting.com

 



NOTICE:
This message