Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-15 Thread Chris Hill

ON TOPIC:

I can see that most of us feel very strongly about this bug. Adobe has 
made it clear that their formal channel to do something about it is to 
vote in their ticketing system for the bug. If there already is a bug, 
can someone link to it? Otherwise let's get a bug in there. And then 
let's vote for it. I'm pretty sure that based upon the support here we 
can make this the #1 bug in their database.


Apologies if someone has already mentioned this. This thread is long and 
noisy.

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


[Flashcoders] Developers wanted.

2007-09-13 Thread Chris Hill
We are looking for quality flash developers for contract and full-time 
positions. Telecommute is ok. Please email me offlist with your resume 
and availability.


Must be based in US, sorry.
Thanks,
Chris
___
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] Modifying Publish Settings with JSFL

2007-08-22 Thread Chris Hill
I know this has been talked about before but I figured I'd revisit it 
since CS3's been out:


We're merging two subversion repositories, and I need to migrate about 
20 or so flash files to export to a different directory. Of course I can 
go ahead and modify them all by hand, and I may do that after all, but 
that'd be silly. What I really want is for JSFL to come to the rescue so 
I don't have to do this again in the future. Barring that I think that 
maybe Ant with some regular expressions and jsfl love may be able to 
provide a solution. Has anyone solved this problem before? I could 
really use some tips.


Thanks
C
___
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] Modifying Publish Settings with JSFL

2007-08-22 Thread Chris Hill

Great! Exactly what I'm after. I don't know why Google didn't hit that.

Argh, that's annoying as we set our classpaths on a per-file basis quite 
often. Hmm...and no way to modify the classpaths of the files by jsfl, 
huh? Big piratey arrrgh.


Thanks, Steve,
Chris

Steven Sacks wrote:

I blogged about this last August.

http://www.stevensacks.net/2006/08/06/using/

Keep in mind that due to a known and really nasty bug that STILL 
hasn't been fixed, when you import a publish profile.xml, all class 
paths for that file are erased.  It really sucks, but the trade off is 
you don't have to manually enter all those publish paths.  ;)




Chris Hill wrote:
I know this has been talked about before but I figured I'd revisit it 
since CS3's been out:


We're merging two subversion repositories, and I need to migrate 
about 20 or so flash files to export to a different directory. Of 
course I can go ahead and modify them all by hand, and I may do that 
after all, but that'd be silly. What I really want is for JSFL to 
come to the rescue so I don't have to do this again in the future. 
Barring that I think that maybe Ant with some regular expressions and 
jsfl love may be able to provide a solution. Has anyone solved this 
problem before? I could really use some tips.


Thanks
C
___
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] Contractors and Full-Time needed

2007-06-12 Thread Chris Hill
We are looking for up to 2 of each in either the Phoenix, AZ or Tucson, 
AZ areas:


ActionScript Programmer
Flash Production Artist

More information about all open positions is at:
http://terralever.com/about-us/careers/

We are also looking to make contact with more freelancers (telecommute 
ok). If you have emailed me before, I'm sorry but I have lost all my 
contact information. Please email me again!


Thanks,
Chris Hill
Director of Interactive
Terralever
520 393 3240


___
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] Dynamic E4X

2007-05-16 Thread Chris Hill

The as3 examples for XML show the following:
var node:String = zip;
trace(employees.employee[0].address[node]); // 98765

What I'd like to do is something like this:
var node:String = zip;
trace(employees..[node]); // 98765

ie: Find all nodes that are called 'zip' in the document, but do it 
dynamically.


any ideas?
C
___
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] Dynamic E4X

2007-05-16 Thread Chris Hill

That works great! Thanks a lot.
C

Juan Carlos Anorga wrote:

check out the docs for the descendants method in the XML class.

http://livedocs.adobe.com/flex/2/langref/XML.html#descendants()

you should be able to do this:

var node:String = zip;
employees.descendants(node);

- juan

On May 16, 2007, at 4:57 PM, Chris Hill wrote:


The as3 examples for XML show the following:
var node:String = zip;
trace(employees.employee[0].address[node]); // 98765

What I'd like to do is something like this:
var node:String = zip;
trace(employees..[node]); // 98765

ie: Find all nodes that are called 'zip' in the document, but do it 
dynamically.


any ideas?
C
___
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] Need contractor - AS2 Developer

2007-02-07 Thread Chris Hill
We're looking for a contractor to handle some work on an existing site. 
We are looking for someone to do the AS2 programming, and has a good eye 
for design. You would be working with our internal team 
prototyping/implementing new functionality, and making revisions to the 
existing site.


The timeline is a bit rushed, but it is quality work for a quality client.
Telecommute is ok.
Please send your resume and rate to [EMAIL PROTECTED]

Thanks a lot
Chris Hill
Terralever.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] Fisix Engine Release

2006-12-18 Thread Chris Hill

On behalf of Oz, and also because its a really great project:

Hello,

I'm sending out this email to let people know about the release of a new 
AS3.0 physics engine aimed at game developers. The Fisix Engine is 
available to download over at www.fisixengine.com. You can also check 
out some engine demos on the site and take advantage of the tutorials 
and documentation as well as the wiki and discussion board.


Best,
Oz
___
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] remote accessing flv

2006-12-04 Thread Chris Hill

You probably shouldn't have 'secure' in there.

Just to make sure: You put that file on the server with the video, or 
the server with the swf? That file should go on the server with the video.


And if that doesn't fix it, I really don't know what the issue would be.

Thanks
C

Venable, John B wrote:


I guess I should have mentioned that, I put in this one when I started having 
issues.

?xml version=1.0?
!DOCTYPE cross-domain-policy SYSTEM 
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
cross-domain-policy
  allow-access-from domain=* secure=false /
/cross-domain-policy

am I wrong or shouldn't that allow anything?

John

-Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]  On Behalf Of Chris Hill
Sent:   Monday, December 04, 2006 3:07 PM
To: Flashcoders mailing list
Subject:Re: [Flashcoders] remote accessing flv

Chances are you are running into a security policy issue, attempting to 
stream a video from a domain that doesn't have a cross domain policy file:


A crossdomain xml file is a file placed within the root of a domain to 
allow flash to access assets(flash,images,audio,video,web services) on 
that domain from another domain. Unlike HTML, which allows direct 
linking from any domain to any other domain, flash has a very strict 
security policy to prevent leeching, spoofing, or malicious usage.


Save and customize the crossdomain.xml file below, and place it in the 
*root* of your domain that the flash is connecting /to/.


  cross-domain-policy
 allow-access-from domain=*.domain.com /
 /cross-domain-policy


Venable, John B wrote:

 


I'm not sure if this is the right place for this, but has anyone had this 
problem before. In an attempt to use the flash streaming services from RBN I 
began by following their directions to stream a video.  These instructions 
follow a basic process to get a video streaming from a .swf.  You drop a video 
component onto the stage of your flash project, place the rtmp address of the 
.flv file on RBN's servers into the inspector for that component and publish 
the flash project.  The .swf from the published flash movie is then placed into 
an html page.  If this page is opened locally the flash video will stream.  
However, if the page is placed onto the development or production servers the 
flash video ceases to play.

John Venable


___
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] Firefox and navigateToUrl

2006-12-04 Thread Chris Hill
We have confirmed this problem exists with one of our projects, too. 
Anyone else have this issue?


Running Apache2 (on windows) on server. Not much else to say, as this is 
a client side FF issue. Firefox 2, but confirmed in 1.5 also.


Thanks
Chris

Arjen Veneman wrote:


Hi all,

I'm using navigateToUrl in flash 9.
In combination with a firefox browser i get strange results, sometimes 
the external link opens correctly , sometimes nothing happens and 
sometimes firefox gives a popup blocker message.


I saw people having the same problem: 
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg44617.html, 
but could not find any solution yet...


Any ideas?

Thanks!
Arjen.
___
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] [OT] SCM/Project management tool

2006-11-29 Thread Chris Hill
I'm really curious how you install your apps to the server using ant. We 
currently use svn update for some of our staging stuff. Which tasks do 
you use to install/deploy? I'd like to see something that would 
automatically synchronize via ftp in ant but I never thought doing 
something like that would work.


Thanks
C

Ian Thomas wrote:


On 11/29/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:

 * How do you handle projects that consists of a client (flash) and a 
server

written in another language? A trac enviroment for both of them?



No - we use the same environment for both, and Ant build scripts to
install the appropriately built code to the server/client. Or
sometimes directly SVN update into the appropriate working directory
on the server, depending on the complexity of the project.

Personally I think it'd be crazy to seperate the front-end and
back-end code into different repositories - it's the same project, you
want to be able to version track/bugfix the same project (is that bug
in the front end or back end?) and, importantly, you want to be able
to branch and tag the same project.


* About the syntax highliting, is there support for AS2/AS3?


Don't know, I'm afraid.

HTH,
 Ian
___
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] [OT] SCM/Project management tool

2006-11-28 Thread Chris Hill

Sorry, just saw this post, hope i'm not being redundant or too OT.

We use trac, but we don't use it with clients, only internally. We could 
potentially allow client access, but our custom-built system doesn't 
have much in the way of access control.


Checking out the permissions page in my WebAdmin plugin, trac has the 
following priveleges you can grant deny on a per user/group basis:


view/create/modify/grant/delete/admin/etc. (depends on item)

on

milestone/report/ticket/trac/wiki/log/file/etc.

And we love Trac and Subversion. Definitely worth every penny ;)
Peace
C

Marcelo de Moraes Serpa wrote:


Oh Ok.. thanks for the help!

On 11/28/06, Ian Thomas [EMAIL PROTECTED] wrote:



Oh - I should also point out that there are a bunch of plugins
available, IIRC - one of them might have the functionality you need.

Ian

On 11/28/06, Ian Thomas [EMAIL PROTECTED] wrote:
 Hi Marcelo,
   To be perfectly honest, I have no idea. :-) Sorry!

   However, at the worst, trac uses web-based forms. There's nothing to
 stop you writing a custom front end for your client that then posts
 appropriate data to Trac.

   I'd suggest you just download it and have a play with the options;
 it's a very straightforward install.

 Cheers,
   Ian

 On 11/28/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:
  Hey Ian, thanks again :)
 
  I would like to know something else: What if you want to use trac 
as a
  ticket interface between you and your client. Clients could login 
and

send
  tickets. However, let's say that I wouldn't like clients to see any
code on
  the svn. Is this level of granularity possible on trac?
 

___
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] [OT] SCM/Project management tool

2006-11-28 Thread Chris Hill
I apologize, but I said grant / deny, but you can only grant privileges 
in Trac.


Chris Hill wrote:


Sorry, just saw this post, hope i'm not being redundant or too OT.

We use trac, but we don't use it with clients, only internally. We 
could potentially allow client access, but our custom-built system 
doesn't have much in the way of access control.


Checking out the permissions page in my WebAdmin plugin, trac has the 
following priveleges you can grant deny on a per user/group basis:


view/create/modify/grant/delete/admin/etc. (depends on item)

on

milestone/report/ticket/trac/wiki/log/file/etc.

And we love Trac and Subversion. Definitely worth every penny ;)
Peace
C

Marcelo de Moraes Serpa wrote:


Oh Ok.. thanks for the help!

On 11/28/06, Ian Thomas [EMAIL PROTECTED] wrote:



Oh - I should also point out that there are a bunch of plugins
available, IIRC - one of them might have the functionality you need.

Ian

On 11/28/06, Ian Thomas [EMAIL PROTECTED] wrote:
 Hi Marcelo,
   To be perfectly honest, I have no idea. :-) Sorry!

   However, at the worst, trac uses web-based forms. There's 
nothing to

 stop you writing a custom front end for your client that then posts
 appropriate data to Trac.

   I'd suggest you just download it and have a play with the options;
 it's a very straightforward install.

 Cheers,
   Ian

 On 11/28/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:
  Hey Ian, thanks again :)
 
  I would like to know something else: What if you want to use 
trac as a
  ticket interface between you and your client. Clients could 
login and

send
  tickets. However, let's say that I wouldn't like clients to see any
code on
  the svn. Is this level of granularity possible on trac?
 

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

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


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

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



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

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


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

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


Re: [Flashcoders] Flash environment variables?

2006-10-25 Thread Chris Hill
I know this isn't what you're asking, but I'd strongly recommend you 
don't put your classes on a network share, because it wreaks havoc with 
your aso caching.


And to attempt to answer your question, I don't think its possible, but 
unsure. It would be awesome if flash recognized environment variables!


Peace
C

[EMAIL PROTECTED] wrote:


Hi there,

Just wondering if there is a way to create a new variable to use within the IDE?
I'm not sure if that is clear enough so I'll explain what I'd like to do...

When setting the ClassPath in Flash 8 I see the default one is:
'$(LocalData)/Classes'

What I'd like to do is create something like '$(ProjectFolder)/Classes' so every
member of the team can point to one location (most likely on a network).

Is this possible?

Thanks

*.*  Sherri

___
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] Huge block of scrolling text: Choppy animation.

2006-09-15 Thread Chris Hill
The fastest way to animate this is to use runtime bitmap caching, mixed 
with the scrollRect property.


// this is almost pseudo-code, untested, but you should get the idea

r = new Rectangle(0,0,width,height);
container.cacheAsBitmap = true;
container.scrollRect = r;

container.onEnterFrame = function(){
   //modify the scrollRect to move the text
   r.y += 1;
   container.scrollRect = r;
}

This will convert the text to one big bitmap, and use fast pixel copying 
to display just the rect you want.

Peace
C

Vibol Hou wrote:

Are you using a pixel font? I a similar issue with a large block of 
pixel fonts and motion+shape tweening. The only solution I found was 
to anti-alias the pixel font for the large block of text.


-V

Micky Hulse wrote:


Hi,

I am working on a simple Flash project... at end of the animation I 
have a text block of 80 names, kinda like movie credits, that scroll 
from bottom of screen to top of screen... it looks like crap using 
motion tween. Very choppy movement, not smooth at all.


Any fixes?

I am assuming that the choppyness is due to the complexity of the 
text object/block.


Know of any AS scripts that might make this less of a problem?

I am using F8 and outputting a projector...

Any help would be great.
Cheers,
Micky



___
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] Flex and subversion don't play nice? - slightly OT

2006-09-07 Thread Chris Hill
We've just started some as3 and flex projects and are having some pretty 
weird problems with Flex copying .svn directories and wreaking havoc.


http://www.jessewarden.com/archives/2006/02/subversion_flex.html

After much head-scratching, we determined that this is what's happening 
to us. We put our 'htm-template' folder under version control  and the 
deployment folder was being 'converted' into the html-template folder 
when the .svn dir was copied.


In another unrelated project we had our source folder replaced(!) with 
the html-template folder. While the first project we've got a grasp on 
why it happened and will simply not put html-template under version 
control, we're still uncertain as to why the src folder had its .svn 
folder copied into it. The one difference is that this is a flex 
project, and the first is a pure as3 project.


Does anyone use subversion with flex? Have you had similar issues? What 
is good and what isn't good to put under version control?


Thanks,
Chris Hill
___
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] jsfl - set all bitmaps in library to photo compression

2006-08-30 Thread Chris Hill
You put it in the Commands folder in your user configuration folder. For 
example:
C:\Documents and Settings\MyUserName\Local Settings\Application 
Data\Macromedia\Flash 8\en\Configuration\Commands


You might need to show hidden files.


Here's my image settings command, while we're sharing:

Image Settings.jsfl
---
// :mode=javascript:

settings=flash.getDocumentDOM().xmlPanel(fl.configURI+ 
'Commands/imageSettingsGUI.xml');

if(settings.dismiss == accept)
{
   imageQuality = settings.imageQuality;
   imageSmoothing = Boolean(settings.imageSmoothing);
   imageCompression = settings.compressionType;
   useImportedJpegQuality = Boolean(settings.useImportedJpegQuality);
  
   var library = fl.getDocumentDOM().library;

   var selItems = library.getSelectedItems();
   fl.trace(Selected items length:+selItems.length);
   for(var i=0;iselItems.length;i++){
   var item = selItems[i];
   if(item.itemType == bitmap){
   if(useImportedJpegQuality == true){
   item.useImportedJpegQuality = true;
   }else{
   item.useImportedJpegQuality = false;
   item.compressionType = imageCompression;
   if(imageCompression == photo){
   item.quality = Number(imageQuality);
   }
   }
   item.allowSmoothing = imageSmoothing;
   }
   }
}

---
imageSettingsGUI.xml
---
dialog title=Set Image Options buttons=accept,cancel
   label value=Compression Type:/
   menulist id=compressionType
   menuitem label=PNG/Lossless value=lossless/
   menuitem label=JPEG value=photo/
   /menulist
   label value=Image Quality (leave blank for default)/
   textbox id=imageQuality value=50/
   checkbox label=ImageSmoothing? id=imageSmoothing checked=true/
   checkbox label=Use imported JPEG Quality(only if a jpeg) 
id=useImportedJpegQuality/

/dialog
---

James Deakin wrote:


This will come in very handy. Just one thing though. I have no Idea
where to put this file. And how to exicute it. Could you please point
me in the right direction.

Kind regards

James Deakin

On 8/25/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:



I had a project recently that was originally developed as a CDROM by a
3rd party, but then had to be migrated to the web. Many of the lib items
(1000's of items) had been set with specific compression values or
Lossless. This ended up with a 60MB swf file. Ick.

So I brewed up this little JSFL that sets all bitmaps in the library to
document level photo/jpeg compression.

Hope this helps anyone who has or will have a similar headache.

//--
var lib = fl.getDocumentDOM().library;
for(n=0;nlib.items.length;n++){
var item=lib.items[n];
if(item.itemType==bitmap){
lib.selectItem(item.name);
lib.setItemProperty('compressionType', 'photo');
fl.outputPanel.trace(SET COMPRESSION TO PHOTO
ON:+item.name);
}
}
//--

___
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] Looking for resumes/contractors, please fill in the blank :)

2006-08-29 Thread Chris Hill

Hello fellow Flashcoders,

I'm getting a new job soon, and will be running the interactive division 
for a small/medium sized technology marketing firm. I'm trying to build 
a solid portfolio of prospects:


Contractor resumes:
Both programmer and designer jobs. Please give your rate if you have one.
No agencies, principals only.
Telecommute is ok.

Employment resumes:
OOP AS2 and 3 mid/senior-level programmers.
Mid-level designers. Ability to handle production is a plus.
Applicants should be in the Tucson or Phoenix areas, or willing to relocate.

Terralever is an innovative, high-energy interactive marketing and technology 
firm aimed at creating online experiences that not only build brands for our 
clients but more importantly generate business for them.

If you have any questions, please ask!

Thanks
Chris Hill
(Soon to be) Director of Interactive
Terralever



___
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] OT: TRUMATCH hex colors

2006-08-22 Thread Chris Hill

Heya Steven,

If you can't find one, you might try using Adobe Illustrator's 
javascript to create the xml:

http://partners.adobe.com/public/developer/en/illustrator/sdk/AIJavaScriptReference.pdf

Page 192 has information regarding the swatch accessibility, so it 
sounds feasible.


I also checked the trumatch.ai swatch document, but it looks like it may 
be in a binary blog :S. I thought perhaps you could grep out the data 
from the raw file, but probably not.


HTH,
Chris

Steven Sacks | BLITZ wrote:


Hello,

Sorry for the OT post, but I'm wondering if anyone knows if there is
some sort of data file that contains all the colors of TRUMATCH in hex
format?  An XML file would be perfect, but I need it for a Flash color
picker and the client wants to use TRUMATCH colors.

Thanks!

___
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: Workaround for loadvars size limitation (Chris Hill)

2006-08-18 Thread Chris Hill



I've found that you can overload the XML object within flash
   



We aren't using XML. 
 

I'm not saying you could use XML, but what you can do is overload the 
XML object and you can write whatever you like to your POST data. This 
may be able to get around whatever limit you are hitting (or maybe not).


This is an XML object, but I've hacked it to send a normal querystring:
http://ubergeek.tv/code/RawPost.as


querystring as you like?

So is no limit using this method?  Looks like we're heading towards
250KB in a hurry.

 

If you are using POST, I'd imagine that there isn't any limit on the 
data you are sending, unless there is an imposed limit by flash that I 
don't know about. If someone who sends large POST data on the list could 
clarify, that'd be wonderful, but I'm going to go out on a limb and say 
that you should NOT be running into a limit on POST data size.


Chris
___
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] DataGrid woes

2006-08-18 Thread Chris Hill
I'm in a real bind, with no real solution. I'm using the DataGrid, which 
I've used before, but the problem is that multiple selection and 
re-ordering seems to be unbelievably broken. I've never used these 
features, and I've googled just about every possibility to shed light on 
the subject and found nothing. I guess that noone out there has created 
a data grid and tried to make it sortable?


I've got a datagrid. Users ideally would be able to select multiple rows 
a la shift-click. Then they click either 'move down' or 'move up', which 
modifies the data provider, sets the grid's data provider, then sets the 
selectedIndices to what it was before. This results in terrible 
graphical glitches, and its also reporting the wrong number of lines.


I'd preferably at this point either:

A: Find some magic fairy dust to fix the DataGrid
B: Find some replacement component that does what the DataGrid does, but 
does not suck.


If i don't do that then I have to:

C: Write my own DataGrid, which is fine, and I need to do it anyway, but 
not right now if I can help it.


Thanks
Chris
___
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] Workaround for loadvars size limitation

2006-08-17 Thread Chris Hill
The limit on a querystring is not 64KB in browsers, its less than that 
in browsers:


http://www.aspfaq.com/show.asp?id=

Anyway, need more information:

Are you using GET or POST? Are you limited to one or the other?

I've found that you can overload the XML object within flash, and write 
arbitrary strings to raw POST data. So its possible that you could 
create a POST querystring using this method, and turn it into variables 
server side. AFAIK if there is a limit on POST in LoadVars, you could 
theoretically use this method to create as long of a querystring as you 
like?




Randy Tinfow wrote:


We wrote an app using the loadvars method to send data back and forth to
a database.  The app has been succesful, which means that we are pushing
up against the limitation in the length of an html query string...64KB.


We can't use Flash Remoting in this environment.  Any suggestions on how
to divide the data into multiple query strings so we don't have to
totally rewrite the app?

Thanks,

Randy Tinfow
___
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] scrollRect....bad idea?

2006-08-11 Thread Chris Hill
Last night I learned about how cool scrollRect is. It made things a lot 
simpler, and faster, for basic rectangular masking. I was pretty stoked. 
So stoked that I decided to replace my mask within my BaseComponent 
class with a scrollRect. This worked ok for a bit, until I used a class 
that drew directly into BaseComponent, and got flash to consistently 
blow up in my face:


http://newmedia.cdws.ucf.edu/b2evolution/index.php?blog=6title=scrollrect_mystery_crashmore=1c=1tb=1pb=1

Thankfully this smart guy has already dealt with it. I went and 
retrofitted my classes to not draw into the root of BaseComponent, and 
things no longer crashfor now.


So my question is: Do you use scrollRect? Does it work for you? Do you 
have to constantly be careful of this problem, or do you just not use 
scrollRect and live with the performance hit?


Thanks,
Chris Hill
Director of Flash Interrogation
___
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] Tooltip rollovers for textinput..help plss

2006-08-10 Thread Chris Hill
Yeah, I tried a lot of methods to attempt to get the tooltip to 
disappear and ran into just too many problems. I'm sure there's a way 
tho using some ridiculous workaround. If you find the answer, please 
post it!


And, perhaps I should've mentioned this earlier, but I do have a ToolTip 
class available on my website:

http://ubergeek.tv/article.php?pid=96

I just updated it with the latest version, which has a couple 
fixes/features added. For my own projects, I don't actually use 
onRollOver/Out etc. for toolitps because they generally muck up event 
handling elsewhere. I don't recommend my method necessarily but it has 
worked for me in the past better than mucking with event handling. 
Adding a tooltip to a TextInput using my method is as simple as this:


ToolTip.getInstance().addClip(txt, My tooltip text);

You can download the zip, check out the fla, and install and modify the 
packages if it works for you.


C

Subba Chalamalasetty wrote:


Hey chris,

Thank you very much for your help and time.I have good news about this
program. focusIn and focusOut events worked and now as long as I am not
using onRollOver, onROllOut, onPress, onRelease the program is working
fine. But there is one problem when I use focus in and out..i.e when I
click on the textinput, I am getting the rollover and also could enter
data, but when I come out (focus out)...untill I click somewhere else,
that rollover is getting carried. If that small problem is solved..that
will be a huge conquer for me. I am trying different ways to get it. If
you have time, can you please suggest me some ideas from your side. Once
again thank you very much for your help...here is the code

 txt.addEventListener(focusIn,Delegate.create(this,txtOver));

 txt.addEventListener(focusOut,Delegate.create(this,txtPress));

private function txtOver(){
tt786 = new
customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
tt786.showTip(Total sales.);

}

private function txtPress(){
   tt786.removeTip();
 // TRIED onRollOut also
  tx.onKillFocus = function(){
tt786.removeTip();
trace(is it coming out?);
	   }   
   }



Thanks,
Subba
	 
-Original Message-

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 6:23 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

wow, ok, I've spent way too much time on this so I have to get back to 
work. But here's what my last hour showed me:


txt has no onPress, onRelease, etc.
You cannot determine if the TextField inside a TextInput is rolled over 
or out. There are no onRollOver/onRollOut methods to use.
You can determine if the TextInput receives focus(ie is clicked in or 
tabbed to) with

txt.addEventListener(focusIn,this);
txt.addEventListener(focusOut,this);

You can consistently determine a way to show the clip by putting an 
invisible button above the text field. But this stops the text field 
from receiving input, and so you must set _visible=false on the button 
after its rolled over. But now we have no way of determining when we've 
rolled off the textfield, and so there's no way to turn off the tooltip.


I never realized how broken this whole thing is. But it seems like 
TextField (not TextInput) objects don't have any event handling, and 
instead whatever behind them will receive onRollOver/Out events. This 
makes it really hard to do anything like a tooltip with them.


Sorry I couldn't give you a better answer!
Chris



Subba Chalamalasetty wrote:

 


I did change it when using it for the first time...I noticed the
function names are different and changed them so that they are same.
I also tried this

txt.onRollOver = txt.onPress = Delegate.create(this, txtOver);
txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

private function txtOver(){
tt = new
customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
tt.showTip(Total sales.);

}

  private function txtPress(){
 tt.removeTip();
 oldOnPress.apply(txt);
  }

I am still having the same problem.

Thanks,
Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Subba
Chalamalasetty
Sent: Wednesday, August 09, 2006 5:07 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Tooltip rollovers for textinput..help plss



I tried this also...still same problem..

Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 4:52 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

This:

 txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

Should be this:

 txt.onRollOut = txt.onPress = Delegate.create(this,txtOut);

According to the code given.

See

Re: [Flashcoders] print question

2006-08-10 Thread Chris Hill
Not to sound like a jerk, but you really should check google before 
posting such beginner questions:


http://www.devx.com/webdev/Article/27318

Peace
Chris

Flash guru wrote:


Hey,

Can anyone tell me if it's possible to print a swf?

this is what im thinking

var myPrinter = new Printer();
myPrinter.printFile(/swfs/plan1.swf);

Side questions?

Is something like that in existance?
Can you do this through the builtin classes?


thanks in advance
___
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] Tooltip rollovers for textinput..help plss

2006-08-09 Thread Chris Hill
You're overwriting the onPress event on your text field. You need to 
save your old onPress event before overwriting it, and make sure that it 
is called:


class test {
private var txt:TextInput;

private function test() {
}

private function onLoad() {
   //save the onPress handler
   txt.oldOnPress = txt.onPress;
  txt.onRollOver = function() { 
 tt = new

customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
 tt.showTip(Total sales.);
  }
  
  txt.onRollOut = txt.onPress = function() {

  tt.removeTip();
//call the onPress Handler
  oldOnPress();
  }

I don't think my changes will compile, but I hope you get the idea. I 
would suggest using the ascb.util.Proxy or mx.util.Delegate class to 
more gracefully handle your handlers. Something like this:


import ascb.util.Proxy;
class test {
   private var txt:TextInput;
   private var oldOnPress:Function;
   private var tt:ToolTip;
   private function onLoad(){
  oldOnPress = txt.onPress;
  txt.onRollOver = Proxy.create(this, txtOver);
  txt.onRollOut = txt.onPress = Proxy.create(this,txtPress);
   }

   private function txtOver(){
  tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
  tt.showTip(Total sales.);
   }

   private function txtOut(){
  tt.removeTip();
  oldOnPress.apply(txt);
   }
}

Hope this helps
Chris

Subba Chalamalasetty wrote:


Hi,
I have rollovers for textinput boxes.When i use the onRollOver,i could
get the rollover text(movie clip), but when i click the text input,I am
not able to enter data in the textinput.I wrote a small tooltip class
and can somebody please help me to get the focus on textinput.i.e when i
click on the textinput,I should be able to enter data and rollover movie
clip be removed.here is the code



class customToolTip {
   
   private var theTip:MovieClip;

   private var tFormat:TextFormat;
  
   function

customToolTip(hex:Number,hex2:Number,colorOfText:Number,heightOfBox:Numb
er,x1:Number,x2:Number,x3:Number) {
  
  movieLoader = new MovieClipLoader();

  movieListener = new Object();
  movieLoader.addListener(movieListener);
  this.theTip = _root.createEmptyMovieClip(tooltip,
_root.getNextHighestDepth());
  //this.theTip.createEmptyMovieClip(tooltip,
_root.getNextHighestDepth());

this.theTip.createTextField(theText,this.theTip.getNextHighestDepth(),
3,1,1030,70);
  this.theTip.beginFill(hex);
  this.theTip.lineStyle(1, hex2, 100);
  this.theTip.moveTo(0, 0);
  this.theTip.lineTo(x1, 0);
  this.theTip.lineTo(x2, -10);
  this.theTip.lineTo(x3, 0);
  this.theTip.lineTo(205, 0);  // (100,0)
  this.theTip.lineTo(205, heightOfBox); // (100,20)
   
  this.theTip.lineTo(0, heightOfBox);   // (0,20)
  this.theTip.lineTo(0, 0);// (0,0) 
  this.theTip.endFill();

  this.theTip._visible = false;
  this.theTip.theText.selectable = false;
  this.tFormat = new TextFormat();
  this.tFormat.font = Arial;
  this.tFormat.size = 9;
  this.tFormat.color = colorOfText; 
  this.tFormat.align = center;

  this.tFormat.italic = true;
  this.theTip.theText.setNewTextFormat(this.tFormat);
   }
   
   public function showTip(theTextInput:String):Void {
  
  this.theTip.theText.text = theTextInput;
  
  trace(this.theTip.theText.text);
  
  this.theTip._x = _root._xmouse;

  this.theTip._y = _root._ymouse+10;
  this.theTip._visible = true;
  this.theTip.onMouseMove = function() {
  this._x = _root._xmouse;
  this._y = _root._ymouse+25;
  updateAfterEvent();
  }
   }
   public function removeTip():Void {
  
  delete this.theTip.onEnterFrame;

  this.theTip._visible = false;
  this.theTip.clear();   
   }

}




and here I am using the tooltip class

class test {
private var txt:TextInput;
private function test() {
}

private function onLoad() {
  txt.onRollOver = function() { 
 tt = new

customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
 tt.showTip(Total sales.);
  }
  
  txt.onRollOut = txt.onPress = function() {

  tt.removeTip();
  }



When i click on the textinput,I need to get the focus on textinput and
able to type data in textinput box .Can somebody help me in this...

Thanks,
Subba





___

Re: [Flashcoders] Tooltip rollovers for textinput..help plss

2006-08-09 Thread Chris Hill

This:

  txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

Should be this:

  txt.onRollOut = txt.onPress = Delegate.create(this,txtOut);

According to the code given.

See if that works,
Chris


Subba Chalamalasetty wrote:


Hi Chris,

I tried using Delegate and i am still having the same problem.
I used your code and tried to save the onpress handler,but didn't work
import mx.utils.Delegate;
class test {
   private var txt:TextInput;
   private var oldOnPress:Function;
   private var tt:ToolTip;
   private function onLoad(){
  oldOnPress = txt.onPress;
  txt.onRollOver = Delegate.create(this, txtOver);
  txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);
   }

   private function txtOver(){
  tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
  tt.showTip(Total sales.);
   }

   private function txtOut(){
  tt.removeTip();
  oldOnPress.apply(txt);
   }
}

it is still having the same problem.Am I using the right event?.I am
totally lost and donno y it is not working(I also used TeoToolTip
component and it was giving me the same problem too).can you help me
out?

Thanks,
Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 3:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

You're overwriting the onPress event on your text field. You need to 
save your old onPress event before overwriting it, and make sure that it


is called:

class test {
private var txt:TextInput;

private function test() {
}

private function onLoad() {
   //save the onPress handler
   txt.oldOnPress = txt.onPress;
  txt.onRollOver = function() { 
 tt = new

customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
 tt.showTip(Total sales.);
  }
  
  txt.onRollOut = txt.onPress = function() {

  tt.removeTip();
//call the onPress Handler
  oldOnPress();
  }

I don't think my changes will compile, but I hope you get the idea. I 
would suggest using the ascb.util.Proxy or mx.util.Delegate class to 
more gracefully handle your handlers. Something like this:


import ascb.util.Proxy;
class test {
   private var txt:TextInput;
   private var oldOnPress:Function;
   private var tt:ToolTip;
   private function onLoad(){
  oldOnPress = txt.onPress;
  txt.onRollOver = Proxy.create(this, txtOver);
  txt.onRollOut = txt.onPress = Proxy.create(this,txtPress);
   }

   private function txtOver(){
  tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
  tt.showTip(Total sales.);
   }

   private function txtOut(){
  tt.removeTip();
  oldOnPress.apply(txt);
   }
}

Hope this helps
Chris

Subba Chalamalasetty wrote:

 


Hi,
I have rollovers for textinput boxes.When i use the onRollOver,i could
get the rollover text(movie clip), but when i click the text input,I am
not able to enter data in the textinput.I wrote a small tooltip class
and can somebody please help me to get the focus on textinput.i.e when
   


i
 


click on the textinput,I should be able to enter data and rollover
   


movie
 


clip be removed.here is the code



class customToolTip {
  
  private var theTip:MovieClip;

  private var tFormat:TextFormat;
 
  function

customToolTip(hex:Number,hex2:Number,colorOfText:Number,heightOfBox:Num
   


b
 


er,x1:Number,x2:Number,x3:Number) {
 
 movieLoader = new MovieClipLoader();

 movieListener = new Object();
 movieLoader.addListener(movieListener);
 this.theTip = _root.createEmptyMovieClip(tooltip,
_root.getNextHighestDepth());
 //this.theTip.createEmptyMovieClip(tooltip,
_root.getNextHighestDepth());

this.theTip.createTextField(theText,this.theTip.getNextHighestDepth()
   


,
 


3,1,1030,70);
 this.theTip.beginFill(hex);
 this.theTip.lineStyle(1, hex2, 100);
 this.theTip.moveTo(0, 0);
 this.theTip.lineTo(x1, 0);
 this.theTip.lineTo(x2, -10);
 this.theTip.lineTo(x3, 0);
 this.theTip.lineTo(205, 0);  // (100,0)
 this.theTip.lineTo(205, heightOfBox); // (100,20)
  
 this.theTip.lineTo(0, heightOfBox);   // (0,20)
 this.theTip.lineTo(0, 0);// (0,0) 
 this.theTip.endFill();

 this.theTip._visible = false;
 this.theTip.theText.selectable = false;
 this.tFormat = new TextFormat();
 this.tFormat.font = Arial;
 this.tFormat.size = 9;
 this.tFormat.color = colorOfText; 
 this.tFormat.align = center;

 this.tFormat.italic = true;
 this.theTip.theText.setNewTextFormat(this.tFormat

Re: [Flashcoders] Tooltip rollovers for textinput..help plss

2006-08-09 Thread Chris Hill
wow, ok, I've spent way too much time on this so I have to get back to 
work. But here's what my last hour showed me:


txt has no onPress, onRelease, etc.
You cannot determine if the TextField inside a TextInput is rolled over 
or out. There are no onRollOver/onRollOut methods to use.
You can determine if the TextInput receives focus(ie is clicked in or 
tabbed to) with

txt.addEventListener(focusIn,this);
txt.addEventListener(focusOut,this);

You can consistently determine a way to show the clip by putting an 
invisible button above the text field. But this stops the text field 
from receiving input, and so you must set _visible=false on the button 
after its rolled over. But now we have no way of determining when we've 
rolled off the textfield, and so there's no way to turn off the tooltip.


I never realized how broken this whole thing is. But it seems like 
TextField (not TextInput) objects don't have any event handling, and 
instead whatever behind them will receive onRollOver/Out events. This 
makes it really hard to do anything like a tooltip with them.


Sorry I couldn't give you a better answer!
Chris



Subba Chalamalasetty wrote:


I did change it when using it for the first time...I noticed the
function names are different and changed them so that they are same.
I also tried this

txt.onRollOver = txt.onPress = Delegate.create(this, txtOver);
txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

private function txtOver(){
tt = new
customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
tt.showTip(Total sales.);

}

   private function txtPress(){
  tt.removeTip();
  oldOnPress.apply(txt);
   }

I am still having the same problem.

Thanks,
Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Subba
Chalamalasetty
Sent: Wednesday, August 09, 2006 5:07 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Tooltip rollovers for textinput..help plss



I tried this also...still same problem..

Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 4:52 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

This:

  txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

Should be this:

  txt.onRollOut = txt.onPress = Delegate.create(this,txtOut);

According to the code given.

See if that works,
Chris


Subba Chalamalasetty wrote:

 


Hi Chris,

I tried using Delegate and i am still having the same problem.
I used your code and tried to save the onpress handler,but didn't work
import mx.utils.Delegate;
class test {
  private var txt:TextInput;
  private var oldOnPress:Function;
  private var tt:ToolTip;
  private function onLoad(){
 oldOnPress = txt.onPress;
 txt.onRollOver = Delegate.create(this, txtOver);
 txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);
  }

  private function txtOver(){
 tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
 tt.showTip(Total sales.);
  }

  private function txtOut(){
 tt.removeTip();
 oldOnPress.apply(txt);
  }
}

it is still having the same problem.Am I using the right event?.I am
totally lost and donno y it is not working(I also used TeoToolTip
component and it was giving me the same problem too).can you help me
out?

Thanks,
Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 3:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

You're overwriting the onPress event on your text field. You need to 
save your old onPress event before overwriting it, and make sure that
   


it
 


is called:

class test {
   private var txt:TextInput;

   private function test() {
   }

   private function onLoad() {
   //save the onPress handler
   txt.oldOnPress = txt.onPress;
 txt.onRollOver = function() { 
tt = new

customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
tt.showTip(Total sales.);
 }
 
 txt.onRollOut = txt.onPress = function() {

 tt.removeTip();
//call the onPress Handler
 oldOnPress();
 }

I don't think my changes will compile, but I hope you get the idea. I 
would suggest using the ascb.util.Proxy or mx.util.Delegate class to 
more gracefully handle your handlers. Something like this:


import ascb.util.Proxy;
class test {
  private var txt:TextInput;
  private var oldOnPress:Function;
  private var tt:ToolTip;
  private function onLoad(){
 oldOnPress = txt.onPress;
 txt.onRollOver = Proxy.create(this, txtOver);
 txt.onRollOut = txt.onPress = Proxy.create(this,txtPress);
  }

  private function txtOver(){
 tt = new customToolTip

Re: [Flashcoders] how to set the root directory - swf vs html?

2006-08-08 Thread Chris Hill

swfFolder = _level0._url.substring(0,_level0._url.lastIndexOf(/)) + /;

then use this variable to load your data:

loadMovie(swfFolder + image.jpg);

Peace
Chris

quinrou . wrote:


Hi,

My HTML and my flash movie live in 2 different directories. So when I 
work
in the flash IDE my swf can load all its assets but when I try to use 
that
same swf via its HTML page the swf can't find its assets. Because it 
now has
its root as the html root. I am pretty sure there's a work around to 
define

the swf directory as the root not the html.

thanks
seb
___
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] how to set the root directory - swf vs html?

2006-08-08 Thread Chris Hill



quinrou . wrote:


Hi,

My HTML and my flash movie live in 2 different directories. So when I 
work
in the flash IDE my swf can load all its assets but when I try to use 
that
same swf via its HTML page the swf can't find its assets. Because it 
now has
its root as the html root. I am pretty sure there's a work around to 
define

the swf directory as the root not the html.

thanks
seb
___
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] Components in Flash 4/MX

2006-07-27 Thread Chris Hill

I hope you're bald, otherwise you'll be pulling your hair out very soon.
C

Weyert de Boer wrote:

Does anyone know some good resources how to make components for Flash 
MX/4 ?


Yours,
Weyert de Boer
___
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] Array Empowerment

2006-07-26 Thread Chris Hill
Thanks a lot for your array functions. I'm setting these up in a class 
file, and I was thinking that I'd add the functions to the intrinsics. 
But I looked at the intrinsics file for Array.as, and I was a bit 
surprised to learn that Array is dynamic. So is it worth the effort to 
modify the intrinsics?


Thanks
Chris

Steven Sacks | BLITZ wrote:


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

// Array Empowerment
// Removes all elements from Array
Array.prototype.clear = function() {
this.length = 0;
};
// Invoking block once for every element, passing each element as a
parameter to block
// The result of block is used as the given element in the array
Array.prototype.collect = function(block) {
var n = this.length;
for (var a = 0; a  n; a++) {
this[a] = block(this[a]);
}
};
// Removes all null and undefined elements from Array
Array.prototype.compact = function() {
var i = -1;
var n = this.length;
var r = [];
for (var a = 0; a  n; a++) {
if (this[a] != null  this[a] != undefined) {
r.push(this[a]);
}
}
};
// Deletes items from the Array that are equal to obj
Array.prototype.delete_all = function(obj) {
var n = this.length;
var r = [];
if (!(obj instanceof Array)) {
for (a = 0; a  n; a++) {
if (this[a] == obj) r.push(this[a]);
}
} else {
for (a = 0; a  n; a++) {
if (!this[a].eql(obj)) r.push(this[a]);
}   
}
this.replicate(r);
};
// Deletes the element at the specified index, returning that element,
or undefined if the index is out of range
Array.prototype.delete_at = function(i) {
if (i  this.length  i  -1) return this.splice(i, 1)[0];
return undefined;
};
// Deletes every element of Array for which block evaluates to true
Array.prototype.delete_if = function(block) {
var r = [];
var n = this.length;
for (var a = 0; a  n; a++) {
if (!block(this[a])) {
r.push(this[a]);
}
}
this.replicate(r);
};
Array.prototype.duplicate = function() {
var r = [];
var a = this.length;
while (--a -(-1)) {
r[a] = this[a];
}
return r;
};
Array.prototype.replicate = function(r) {
this.length = 0;
var a = r.length;
while (--a -(-1)) {
this[a] = r[a];
}
};
// Calls block once for each element in Array, passing that element as a
parameter
Array.prototype.each = function(block) {
var n = this.length;
for (var a = 0; a  n; a++) {
block(this[a]);
}
};
// Same as Array.each, but passes the index of the element instead of
the element itself
Array.prototype.each_index = function(block) {
var n = this.length;
for (var a = 0; a  n; a++) {
block(a);
}
};
// An array is equal to another array if the lengths are equal and each
corresponding element is equal
Array.prototype.eql = function(arr) {
if (arr.length != this.length || !(arr instanceof Array)) {
return false;
} else {
var a = this.length;
while (--a -(-1)) {
if (this[a] instanceof Array) {
if (!this[a].eql(arr[a])) return false;
} else if (this[a] != arr[a]) {
return false;
}
}
}
return true;
};
// Runs block on every item in the array 
// Returns true if the function returns true for every item

Array.prototype.every = function(block) {
var a = this.length;
while (--a -(-1)) {
if (!block(this[a])) return false;
}
return true;
};
// Sets the selected elements of Array (which may be the entire array)
to obj
// A start of undefined is equivalent to zero. 
// A length of undefined is equivalent to Array.length.

Array.prototype.fill = function(obj, start, len) {
if (!start) start = 0;
if (len == undefined) len = this.length;
len = start + len;
if (len  this.length) len = this.length;
while (--len - (-1)  start) {
this[len] = obj;
}
};
// Runs a function on every item in the array
// Returns an array of all items for which the function returns true.
Array.prototype.filter = function(block) {
var r = [];
var n = this.length;
for (var a = 0; a  n; a++) {
if (block(this[a])) r.push(this[a]);
}
return r;
};
// Returns a new array that is a one-dimensional flattening of this
Array 

Re: [Flashcoders] Array Empowerment

2006-07-26 Thread Chris Hill

Found a couple problems with sum():
First off, instanceof works with *objects* not primitives, and so you 
must do:


var a:Array = new Array(new Number(2),new Number(3),new Number(54),new 
Number(6),new Number(7),new Number(8),new Number(9));


instead of say:

var b:Array = new Array(2,3,54,6,7,8,9);

So you *have* to check with typeof for primitives, then instanceof for 
objects. Horrible, I know.


Additionally, it would help to have a return statement :D.

Array.prototype.sum = function() {
   var x = 0;
   var a = this.length;
   while (--a -(-1)) {
   var num = this[a];
   if (typeof(num) == number || num instanceof Number) {
   x += num;
   } else {
   return undefined;
   }
   }
   return x;
};

//Here are the test cases i wrote to verify functionality

var a:Array = new Array(new Number(2),new Number(3),new Number(54),new 
Number(6),new Number(7),new Number(8),new Number(9));

var b:Array = new Array(2,3,54,6,7,8,9);
var c:Array = new Array(2,new Number(3),new Number(54), 6,7,8,9);
var d:Array = new Array(2,3,4,new Number(54),6,7,8,9); //should return 
undefined

trace(a.sum());
trace(b.sum());
trace(c.sum());
trace(d.sum());


Lastly, there were a couple places where you did not use 'var' and the 
compiler caught it when I encapsulated your AS 1 into a class. I'll post 
if you like.


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

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


Re: [Flashcoders] Array Empowerment

2006-07-26 Thread Chris Hill
I just checked and delete_all did not have 'var a' but just 'a' in the 
loops. No biggie.


I'm not really sure that converting a primitive to an object, then 
testing with isNaN is faster than just using typeof and (if that fails) 
instanceof. But what I do like about it is that it works with numeric 
strings.


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

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


Re: [Flashcoders] Array Empowerment

2006-07-26 Thread Chris Hill

Darn, I wasn't fast enough to get this into rev 3 :)

Array.prototype.sum = function() {
   var x = 0;
   var a = this.length;
   while (--a -(-1)) {
   var n = Number(this[a]);
   if (!isNaN(n)) {
   x += n;
   } else {
   return undefined;
   }
   }
   return x;
};


While you were casting to Number for the test, when you actually added 
you were adding the initial value. This meant strings were concatenated 
instead of added.


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

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


Re: [Flashcoders] Array Empowerment

2006-07-26 Thread Chris Hill
Hmmm...it looks as though there are some name conflicts or something 
between MM v2 Array mixins and your functions. I've got a DataGrid, and 
as soon as I add the ArrayEmpowerment class, the data grid stops 
working. I'm assuming that DataProvider's adding some methods with the 
same names as your class.


I'm going to debug this right now...perhaps X-ray will prove useful here? :D

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

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


Re: [Flashcoders] Array Empowerment

2006-07-26 Thread Chris Hill
 the index of the last object in Array such that the object ==
   // obj
   // Returns undefined if no match is found.
   function lastIndexOf(obj) {
   var a = this.length;
   while (--a -(-1)) {
   if (!(this[a] instanceof Array)) {
   if (this[a] == obj) return a;   
   } else {

   if (this[a].eql(obj)) return a;
   }
   }
   return undefined;
   };
   // Returns a new array by removing duplicate values in Array.
   function uniq() {
   var r = [];
   var l = this.length;
   for (var a = 0; a  l; a++) {
   if (!r.include(this[a])) r.push(this[a]);
   }
   return r;
   };
   // MATH METHODS
   function sum() {
   var x = 0;
   var a = this.length;
   while (--a -(-1)) {
   var n = Number(this[a]);
   if (!isNaN(n)) {
   x += n;
   } else {
   return undefined;
   }
   }
   return x;
   };
   function mean() {
   var s = this.sum();
   if (s != undefined) return this.sum() / this.length;
   return undefined;
   };
   function min() {
   var a = this.length;
   if (!a) return undefined;
   var x = this.last();
   while (--a -(-1)) {
   x = Math.min(this[a], x);
   }
   return x;
   };
   function max() {
   var a = this.length;
   if (!a) return undefined;
   var x = this.last();
   while (--a -(-1)) {
   x = Math.max(this[a], x);
   }
   return x;
   };
}




Chris Hill wrote:

Hmmm...it looks as though there are some name conflicts or something 
between MM v2 Array mixins and your functions. I've got a DataGrid, 
and as soon as I add the ArrayEmpowerment class, the data grid stops 
working. I'm assuming that DataProvider's adding some methods with the 
same names as your class.

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

2006-07-26 Thread Chris Hill

Done! :D

http://ubergeek.tv/XArray/XArray.as

I'll put it up there from now on instead of spamming people's inboxes more.

-C

Steven Sacks | BLITZ wrote:


Chris,

You rock!  How about calling it PowerArray or XArray instead.  :)

-Steven

BLITZ | Steven Sacks - 310-551-0200 x209

___
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] DataGrid Scrollbar

2006-06-17 Thread Chris Hill
I'm confused as to how the drawHeaderBG function relates to moving a 
scrollbar. Regardless, this should move you in the right direction:



for (var i=0;i20;i++){
foo.push({test:blah});
}
dg.dataProvider = foo;
onEnterFrame = function(){
dg.vSB._x = dg.width + 10;
dg.mask_mc._width = dg.width - 4;
}

This is a very bad hack that manually fudges over the scrollbar, and 
moves the mask so that it shows what was orginally hidden by the 
scrollbar. This isn't fully complete, since when you select a row you 
can see that it still is compensating for a scrollbar that isn't there. 
Still, this is in the general direction


C



ScriptJunkies wrote:

Hey,

I'm currently working on a flash app that uses a datagrid, I've come 
across a problem with customizing this component, Does anyone know if 
it's possible to change the scrollbar position?, i want there to be a 
gap between the datagrid and it's scrollbar, I've tried playing with the 
styles etc.. but can't find a way to do this.


I found the following example for changing the header color, would it be 
possible to do something like this?


mx.controls.DataGrid.prototype.drawHeaderBG = function(Void) {
var mc:MovieClip = this.header_mc;
mc.clear();
var clr:Number = this.getStyle(headerColor);
var o:Object = this.__viewMetrics;
var tot:Number = Math.max(this.totalWidth, this.displayWidth+3);
mc.moveTo(o.left, o.top);
mc.beginFill(clr, 100);
mc.lineStyle(0, 0x00, 0);
mc.lineTo(tot, o.top);
mc.lineTo(tot, this.__headerHeight+1);
mc.lineStyle(0, 0x00, 0);
mc.lineTo(o.left, this.__headerHeight+1);
mc.lineStyle(0, 0x00, 0);
mc.endFill();
};



Thanks, Dave
___
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] loadvar php equivalent

2006-06-02 Thread Chris Hill
I'm going to take a stab here and guess that what you're looking for is 
SOAP(Simple Object Acess Protocol):

http://dietrich.ganx4.com/nusoap/

This allows you to expose functions within php, then you can call the 
function and return an object. You can call the function from flash, or 
another php page.


But perhaps this is not what you're after...
Chris

Wade Arnold wrote:


I am trying to make some logic that I had in actionscript work in php on the
server before I update flash. Is their an equivalent to loadvars in php that
you can post data and return and object? I know that this is a little off
topic so sorry anyone that currently has the urge to rant. 






Wade



___
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] PHP :: Dimensions of a SWF file?

2006-05-25 Thread Chris Hill

http://getid3.sourceforge.net/

This will get you not only width and height, but a lot of really useful 
information such as bg color, frame rate, etc...


And here's my (somewhat old) php code for rendering the swf:

$fileInfo = GetAllFileInfo($filePath,'swf');
$version = $fileInfo[swf][header][version];
$width = $fileInfo[video][resolution_x];
$height = $fileInfo[video][resolution_y];
$bgcolor = $fileInfo[video][bgcolor];
$html = EOD
OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354

codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=$version,0,0,0;
 WIDTH=$width HEIGHT=$height ALIGN=
 PARAM NAME=movie VALUE=$fileSrc PARAM NAME=quality VALUE=high 
PARAM NAME=bgcolor VALUE=$bgcolor EMBED src=$fileSrc quality=high 
bgcolor=$bgcolor  WIDTH=$width HEIGHT=$height ALIGN=
 TYPE=application/x-shockwave-flash 
PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;/EMBED

/OBJECT
EOD;

Peace
Chris

Éric Thibault wrote:

Hello all!

Is there a way to know via PHP the dimensions (height  width) of a SWF 
file?  I need this information to construct an html interface with all 
kinds of SWF loaded via UFO script!


Thanks a million!


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

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


Re: [Flashcoders] HTML templates in Flash

2006-04-27 Thread Chris Hill

This information is in the help files, but pretty hidden:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0824.html

On a similar note I've got a flashObject template that I use:
http://ubergeek.tv/article.php?pid=111

But I'd like it so that Flash will automatically copy over the 
SWFObject.as for me. Is this possible?


Thanks
C


Alejandro Diaz wrote:

Hello again everyone,

Does anyone know of any documentation or explanation about some of the
variables in the Flash  HTML template files?

For example, the actual name of the file is sent through a variable named
$PO, but I seem to be unable to find anything regarding how to break this
down (since this variable apparently has a whole bunch of code in it, not
just the file name) and edit the file name.
I am basically trying to create a couple of HTML templates that have a
?myVariable=myValue  after the .swf, and I can't seem to find any
documentation or any other information online on how to do this.

Thanks in advance!
-Alex
___
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] Are you a help vampire?

2006-04-26 Thread Chris Hill
hi hello how do I make a multi-player game in flash its got to have 
lasers thank you


eric dolecki wrote:

I know of a few... and I am sure at a few points in the past I have almost
been one :)

On 4/26/06, John Dowdell [EMAIL PROTECTED] wrote:


Steven Sacks wrote:


http://www.slash7.com/pages/vampires


I'm not sure, what's a help vampire...?  ;-)

jd


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

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


Re: [Flashcoders] Are you a help vampire?

2006-04-26 Thread Chris Hill

Thank you for demonstrating what exactly NOT to do for a help vampire.

Robert A. Colvin wrote:

To make a decent multi-player game you will need a proxy
server(FCS/FMS2). You could probably get away with using Jabber. 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Stuhr
Sent: Wednesday, April 26, 2006 3:43 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Are you a help vampire?

Chris Hill schrieb:

hi hello how do I make a multi-player game in flash its got to have 
lasers thank you


eric dolecki wrote:


I know of a few... and I am sure at a few points in the past I have


almost


been one :)

On 4/26/06, John Dowdell [EMAIL PROTECTED] wrote:



Steven Sacks wrote:



http://www.slash7.com/pages/vampires


I'm not sure, what's a help vampire...?  ;-)

jd



___
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



made my day ;-)

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

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

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

___
Flashcoders@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] Use Microsoft CRM .NET Webservice through Flash

2006-04-06 Thread Chris Hill
I use .NET services on a daily basis with flash. Flash can accept a 
dataset, but doesn't really know what to do with it so it just returns 
it to you as basic xml. I've got a DotNetDataBinder class that takes 
that info and turns it into a native flash object.


So even if it was a dataset it should work fine.

I really recommend using something like Charles to check the 
communication between flash and the server. One of the problems I've had 
is that servers like to send a 500 error when a soap fault occurs, and 
flash will never receive the soap fault and instead state something 
about a version mismatch. This and pretty much any connectivity problem 
is instantly visible using something like Charles.


http://www.xk72.com/charles/
http://ubergeek.tv/article.php?pid=92 ( note: shameless self plug )

Peace
C

Kevin Newman wrote:
I think .NET webservices usually return a WSDL if you ask for it on the 
query string:


http://www.example.com/webservice.asmx?WSDL

I have successfully used WebServices from .NET in Flash, but there are 
some things that .NET devs tend to want to put in their web services 
(like a .NET DataSet object) which afaik Flash cannot accept. As long as 
those proprietary Data Types are not being used, there should be no 
problem though, generally speaking.


Kevin N.


Ashwan Wadhwa wrote:


Has anyone tried to connect to a .NET webservice. This URI that I was
provided does return a WSDL file, so the webservice connector component
fails.  Is there any other method?
thanks
 
 
___

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] Strange errors upon compile; inconsistent errors

2006-04-02 Thread Chris Hill
Wow, it is not just me! I was running into this same problem friday. The 
files were exactly the same on both machines, but on one machine it gave 
me the 'The property being referenced does not have the static attribute.'


The class in question was the ascb.util.ArrayUtils.toString() function:
http://www.person13.com/ascblibrary/documentation/

I know the files were exactly the same because the files are under 
version control. The only thing that we could find that might for some 
reason single out this function was that all the other functions were 
declared in format 'public static function' while the toString() 
function was declared 'static public function'. While this did not seem 
to be the problem, if you were to find the same thing then perhaps this 
would help resolve the mystery.


Additionally, the toString() function is a recursive static call. It 
doesn't look as though your call is recursive, but I cannot tell. 
Perhaps that has something to do with it?


Peace
C

Ramon Miguel M. Tayag wrote:

This is not the strange error, but strange occurence:

**Error** D:\flashResources\ASClasses\net\quirkworks\saatchi\PopupLoader.as:
Line 37: The property being referenced does not have the static
attribute.
Draw.drawFill(mc.mcCatcher, new Point(0, 0), new Point(800,
600), 0, 0, true);

At first the errors appeared on a colleague's computer but not on
mine.  The classpath was the same, the set of classes were exactly the
same, the fla and the actionscript file the fla #included were the
same.  (I know they were the same because I had just sent it).

Then, my colleague removed and added the custom classpath, and got
these strange errors:

**Warning** Symbol=mc.generalLoader, layer=Layer 4, frame=1:Line 1:
The file 'toplevel.as', which is required for typechecking
ActionScript 2.0, could not be found. Please make sure the directory
'$(LocalData)/Classes' is listed in the global classpath of the
ActionScript Preferences.
 mcCatcher.onRelease = function(){}

**Warning** Scene=Scene 1, layer=as, frame=1:Line 1: The file
'toplevel.as', which is required for typechecking ActionScript 2.0,
could not be found. Please make sure the directory
'$(LocalData)/Classes' is listed in the global classpath of the
ActionScript Preferences.
 #include 0_main.as

**Warning** Scene=Scene 1, layer=tooltip, frame=1:Line 1: The file
'toplevel.as', which is required for typechecking ActionScript 2.0,
could not be found. Please make sure the directory
'$(LocalData)/Classes' is listed in the global classpath of the
ActionScript Preferences.


Then, he removed and added the $(LocalData)/Classes and the old errors
appeared again.

This isn't the first time 2 IDEs displayed inconsistent errors
compiling the same things.

I'm not really sure there's an answer here.  My colleague uninstalled
and reinstalled the IDE and it's working fine now.  It's just pretty
annoying to find out there can be errors that appear on one computer
and not the other by something not caused by the code.  What if there
wasn't another computer to confirm this?  Would be hours of figuring
out .. nothing!  Hehe.

Thanks!
--
Ramon Miguel M. Tayag
Managing Director
Quirkworks
___
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] Flowing Text in Flash

2006-03-29 Thread Chris Hill
I've searched a lot on google and the list and haven't found much, so 
maybe I'm missing something obvious again.


Basically I need to fill a text field, and when that text field is full, 
i should start filling the next one. My current idea is:


Break the text into space delimited tokens.
Keep adding tokens and checking maxscroll to see if it is equal to 1.
If maxscroll equals 1 then subtract the last token.
Move on to the next text field.

Not an ideal solution, but the only one that I think will work. Has 
anyone done anything similar?


Thanks
Chris
___
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] Flowing Text in Flash

2006-03-29 Thread Chris Hill
Yeah, that's what I figured, but if I remember, getTextExtent is a Lingo 
call for Director?


I'll try doing a line of tokens at a time, and see if I can improve the 
speed that way.


Cheers
C

Michael Bedar wrote:
I did the same thing a few years ago, and it worked fine.  You may  run 
into speed problems if you go over a certain amount of text to  scroll 
however.  Instead of using maxscroll, it is a bit faster to  use 
getTextExtent to see if a given line will fit in the text box..


Instead of testing word by word, you can start to make some educated  
guesses about how many chars will fit in a line, based again on the  
extent. This way you can make far fewer comparisons.


And remember, if you are putting string S into textboxes a,b and c..  
there is no need to test anything in c, just dump everything left in.





___
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] Flowing Text in Flash

2006-03-29 Thread Chris Hill

Ah, my bad! Very cool, never used that. Thanks a lot!

C

Michael Bedar wrote:

Get text extent is a TextFormat method


On Mar 29, 2006, at 7:19 PM, Chris Hill wrote:

Yeah, that's what I figured, but if I remember, getTextExtent is a  
Lingo call for Director?


I'll try doing a line of tokens at a time, and see if I can improve  
the speed that way.


Cheers
C

Michael Bedar wrote:

I did the same thing a few years ago, and it worked fine.  You  may  
run into speed problems if you go over a certain amount of  text to  
scroll however.  Instead of using maxscroll, it is a bit  faster to  
use getTextExtent to see if a given line will fit in  the text box..
Instead of testing word by word, you can start to make some  
educated  guesses about how many chars will fit in a line, based  
again on the  extent. This way you can make far fewer comparisons.
And remember, if you are putting string S into textboxes a,b and  
c..  there is no need to test anything in c, just dump everything  
left in.


___
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] flv local playback on linux

2006-03-15 Thread Chris Hill
Hmm...just tried playing flv locally on linux via a flash movie within 
an html page. Didn't work at all :(


Ubuntu with Firefox and Flash 7. I don't see why it wouldn't work. Did 
you read something somewhere stating whether or not its possible?


Chris

Alfonso Florio wrote:
A request from a client: a flash site with flv videos put on cd-rom, 
with index.html, no projector


the project is made in flash 7, so videos are compressed with SPARK

the cd plays well on pc and mac.

I've not tested directly, it says videos don't play locally on linux, 
everithing works fine (xml structure, .txt with long filenames etc.) 
except for the FLVs that don'tplay


I've wrote my own routines, a simple netconnection for progressive 
download in flash 7.


Anybody knows similar issues on linux? The on-line version works fine on 
linux. I have no linux machines to debug it.


Thanks in advance

Alfonso Florio

___
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] trace inside the browser

2006-03-07 Thread Chris Hill

Use the luminic box logger.
http://www.luminicbox.com/blog/default.aspx?page=postid=2

Rodrigo Guerra wrote:
hi, 


i'm trying to figure out a way to implement a debug that i can see online (in 
the browser) and not just inside the flash environment. just like trace, but it 
must work when the swf is online.

i thought about a list component that appear and desapeear on a X keypress, and 
a function that could add my traces outputs to it
i was wondering what other methods/ways you are doing this.

thanks in advice.
rodrigo




___
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] MD5 Class in AS2.0?

2006-03-02 Thread Chris Hill
I see a couple older MD5 classes in 1.0. Is there a 2.0 version floating 
around somewhere?


Thanks
Chris
___
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] MD5 Class in AS2.0?

2006-03-02 Thread Chris Hill

My googling yielded 1.0, not 2.0, my search skills must not be very leet.

Thanks for the link!
Chris

Scott Hyndman wrote:


http://www.meychi.com/archive/31.php

You really should search on google or through the archives before asking. 
People ask for this often.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Chris Hill
Sent:   Thu 3/2/2006 11:53 AM
To: Flashcoders mailing list
Cc: 
Subject:[Flashcoders] MD5 Class in AS2.0?

I see a couple older MD5 classes in 1.0. Is there a 2.0 version floating 
around somewhere?


Thanks
Chris
___
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] oop question?

2006-03-01 Thread Chris Hill

You're mixing together AS1 and AS2.

#include should be import:

import mLoader;

You're getting the error because you're trying in include the source of 
a class inside the flash, instead of importing the class itself.

C

murder design wrote:


my main flash file only contains:


#include mLoader.as

var mLoader1:mLoader = new mLoader( );


... while my .as file only contains:

class mLoader {
}



but i get the following error:
**Error** Z:\design\murderdesign.com\reusable\loader\mLoader.as: Line 1:
Classes may only be defined in external ActionScript 2.0 class scripts.
class mLoader {

Total ActionScript Errors: 1  Reported Errors: 1

any idea what that is?
___
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] Post data in frameset never makes it to new window, IE only.

2006-02-13 Thread Chris Hill

Hello all,

I'm working on a site that I didn't make but have to update. They used 
frames in the site, and I've come across a bug that existed in MX2004 
that (i guess) was never fixed. Basically the POST data sent from Flash 
never makes it to its destination, leaving me with a big empty page. 
This only happens on IE if you're sending POST data from a frameset. 
Here are a lot of unhappy people who've had the same issue:


http://livedocs.macromedia.com/flash/mx2004/main_7_2/1418.html

So I'm pretty stuck, because I have to post a lot of data, and I can't 
unmake this site so it doesn't use frames. Would anyone have any magic 
fairy dust, or even better, a solution to this problem? I'd also be 
interested in knowing why this bug still exists, as I'm working on Flash 8.


Any shedded light is mucho appreciated.

Chris
___
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] Attaching the same Clip with differing widths along the X axis

2006-01-06 Thread Chris Hill
I use the ActionScript Cookbook containers for this. They're very good 
at automatically arranging things in rows/columns.

http://www.person13.com/ascblibrary/

something like this:

import ascb.containers.Box;

box = new Box();
box.parent = _root.myClip;
box.direction = horizontal;
box.spacing = 4;

for(var i;i10;i++){
   box.addElement(symbolID,{myText:TabName,initData:myData});
}

Handles spacing, attachMovie, spacing, etc. Very handy dandy class. If 
you're changing the widths of them dynamically, you can re-arrange them 
by calling box.arrange() I believe.


HTH,
Chris

Dennis Hart wrote:


I was wondering if anyone knew of a way or even the best way to go about
attaching a single movieClip multiple times along the x axis when the actual
width of the clip is determined my the content that it loads.

In this case I am just trying to serve up a number of buttons that look
like tabs. The clip being attached handles the creation of a text field,
loading and formatting its text (or label) then drawing up the graphic which
makes it look lie a tab.

I would like to attach them all at once using a loop and the main problem I
encountered is getting flash to instantiate and recognize the previously
loaded clip on the stage so that its x position and width can be determined
before the loop recommences.

I tried something like

if (tabArray.length != 0) {

   var i:Number = 0;
   var clipPositioner:Number;
   var previouslyLoadedClip:MovieClip;

   while (i  tabArray.length) {
   var tabName = TabBtn + i;
   var level = i + 1;

   if (tabName == TabBtn0) {
   previouslyLoadedClip = tabName;
   } else {
   previouslyLoadedClip = tabName.substring(0, 5) + (i-1);
   
   clipPositioner = [previouslyLoadedClip]_x +

[previouslyLoadedClip]_width + 1;

   this.attachMovie(TabBtn_mc,  tabName , level, { _x: clipPositioner
});
   updateAfterEvent(); // THIS DOESN'T WORK - NEITHER DOES :
   onClipEvent(load) { i++ }

   i++;
   }
   }

I understand why the updateAfterEvent() and onClipEvent(load) methods don't
work within the context above, but I am still uncertain how would be the
best way to go about accomplishing this.

I would appreciate it if someone could point me in the right direction.

Thanks

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



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] Custom combobox

2005-12-23 Thread Chris Hill

Hi Mike,

You should be able to create a movieclip class that implements the 
CellRenderer api, and then use that within the combobox's list:


var dropdown:List = myCombo.dropdown;
dropdown.cellRenderer = myCustomCellRenderer;

Having said that, I've never done this, but I don't see why it wouldn't 
work.


C



Mike Boutin wrote:

Can anyone tell me how to go about creating a comobox that can hold a 
10x10 pixel color palette image and a label beside it per row?  Has 
anyone seen anything like this?


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



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] Pathfinding

2005-12-22 Thread Chris Hill

This should get you started:

http://www.electrotank.com/junk/mike/ai/precomputedPathTutorial.html
http://www.tonypa.pri.ee/tbw/tut22.html

Enjoy!
C

Toon Van de Putte wrote:


Does anyone have a good implementation of a pathfinding algorithm,
preferably for a typical side scrolling adventure game type interface?

--
Toon Van de Putte
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] RE: Job Opportunity in Tucson

2005-12-21 Thread Chris Hill

Wow, this is fantastic. Thanks for all your help in getting the word out!
Chris

John Olson wrote:


Chris --

I passed this info along to a friend of mine who teaches at Tucson Design
College.  Good luck.

- John O. 

 



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


Re: [Flashcoders] simple frame jump not rendering??

2005-12-21 Thread Chris Hill
It could be that the frame is not loaded when the first frame is loaded. 
Try this:



stop();
function onEnterFrame(){
   if(_root.getBytesTotal() == _root.getBytesLoaded()){
  onEnterFrame = null;
  gotoAndStop(myFrameLabel);
   }
}

If that works, then your problem is that the frame is not loaded.
C

Charles Parcell wrote:


This is so utterly basic I find it amazing that is an issue at all.

In frame 1 of my movie I have 'gotoAndStop(myFrameLabel);' When i test the
movie I do not see the content of the frame it should be jumpping to.

So, I try 'gotoAndPlay(myFrameLabel);' and place 'stop();' on the frame
that is labeled.  Still not showing me the content on the labeled frame.

Lastly, I remove the 'stop();' from the labeled frame and place 'stop();' on
the frame just past the labeled frame. I also make sure that my content
layers span both the labeled frame and the frame after.  In this case I DO
see the content that is on the labeled frame.

What the hell is up with this? A simple gotoAndStop(); should have been all
that was needed. Has anyone else had this issue? Anyone know how to fix it
so that it works as expected?

FYI - Using Flash 8 Pro on Win XP SP2

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



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] simple frame jump not rendering??

2005-12-21 Thread Chris Hill
Flash is built to be streamable, so it will play what is available, and 
(unfortunately) fail silently if what it needs isn't available. So its 
important that you make sure the content you're expecting to be there is 
loaded before you attempt to do anything with it. This is a 'feature' of 
flash, as it allows you versatility over the way you load your content, 
although most people just load the entire movie before going to town.


Happy Flashing!
Chris

Charles Parcell wrote:


That indeed does work.  I still find it baffling that even if the content is
not loaded that it should render the frame properly once it was loaded.

Thanks,
Charles P.


On 12/21/05, Chris Hill [EMAIL PROTECTED] wrote:
 


It could be that the frame is not loaded when the first frame is loaded.
Try this:


stop();
function onEnterFrame(){
   if(_root.getBytesTotal() == _root.getBytesLoaded()){
  onEnterFrame = null;
  gotoAndStop(myFrameLabel);
   }
}

If that works, then your problem is that the frame is not loaded.
C

Charles Parcell wrote:

   


This is so utterly basic I find it amazing that is an issue at all.

In frame 1 of my movie I have 'gotoAndStop(myFrameLabel);' When i test
 


the
   


movie I do not see the content of the frame it should be jumpping to.

So, I try 'gotoAndPlay(myFrameLabel);' and place 'stop();' on the frame
that is labeled.  Still not showing me the content on the labeled frame.

Lastly, I remove the 'stop();' from the labeled frame and place 'stop();'
 


on
   


the frame just past the labeled frame. I also make sure that my content
layers span both the labeled frame and the frame after.  In this case I
 


DO
   


see the content that is on the labeled frame.

What the hell is up with this? A simple gotoAndStop(); should have been
 


all
   


that was needed. Has anyone else had this issue? Anyone know how to fix
 


it
   


so that it works as expected?

FYI - Using Flash 8 Pro on Win XP SP2

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


 


--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

___
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
 



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


[Flashcoders] Job Opportunity in Tucson

2005-12-20 Thread Chris Hill

Work is ON-SITE AND PART TIME in gorgeous Tucson, AZ. NO TELECOMMUTE.

GUI PROGRAMMER
Looking for a coder with quality OOP principles, understands layout 
management and a sense of design. Code will be written in Flash 
ActionScript. ActionScript experience is a major plus, but more 
important are good coding fundamentals and a willingness to learn. Also 
important is that this is not a ‘scripting’ position, this is full-on 
OOP development.


ASP.NET/WEB DEVELOPER
Looking for ASP.NET developer who can also work on legacy VBScript 
applications. Needs strong understanding of SQL, .NET and C# essentials, 
and quality coding practices. Position entails building custom CMS 
applications, and doing work on existing CMS front and backends.


FLASH PRODUCTION ASSISTANT
Looking for a non-coder who can handle production issues in Flash 
applications. Work would involve: laying out Flash apps based off comps, 
converting assets from clients into flash-friendly forms. Needs strong 
understanding of Flash, Photoshop, and Illustrator.


GET IN TOUCH WITH ME
If you’re available to work ON-SITE PART-TIME, write/call me:
520.777.0032
[EMAIL PROTECTED]

--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] Job Opportunity in Tucson

2005-12-20 Thread Chris Hill
Yeah, I've already gone and posted with the university. Perhaps I should 
say that its on a part-time project basis? I'm not really expecting 
anyone on this list to be available, but just in case.


Chris

Merrill, Jason wrote:


On-site only and PART time?  I sure hope you find someone!  :)  Might
want to check with the local colleges/universities for fresh blood.  


Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com

 


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


Re: [Flashcoders] Crossdomain data exchange

2005-12-15 Thread Chris Hill
I'd say your best bet is to use Charles to debug the interaction to make 
sure that the domains that you're calling are doing what you expect:


Charles:
http://www.xk72.com/charles/index.php

Tutorial (shameless self-plug)
http://ubergeek.tv/article.php?pid=92

Record the session, and you can usually tell where things go 
pear-shaped. Also, I'm not sure that you can (or should) use * in a 
crossdomain.xml. And there is no issue with using non-www domains.

Peace
C

Roman Blöth wrote:


Hello flashcoders,


this thing is driving me mad...

My swf (published for flash player 7 under Flash MX) just can't load 
data from another domain.


In our intranet the computers all have fully qualified domain names.
On main.ourweb.net the swf is running (embedded in a HTML page, of 
course). When calling the action I'm trying to implement, the swf 
sends data to another.ourweb.net via a loadVars-object, using a XML 
object as receiver of the data sent back - it is XML, but that's not 
the point - I'm observing the onLoad AND the onData - the received 
data is always undefined.


The crossdomain.xml allows access from * on the another.ourweb.net 
server (that computer runs an IIS, main.ourweb.net runs Apache) - I 
even placed the same crossdomain.xml on main.ourweb.net...


When directing the web browser to the address the loadVars is sending 
it's data to, I get proper XML. When running the swf in my browser, 
all I get is undefined...


Somewhere I've read a notice from a flash user, stating that Flash 
would not be able to receive data from a domain name not starting with 
www, though I don't think this really is true, since the examples 
given by macromedia also use (cross-)domains not starting with www...


Anyone observed such a problem before? Any idea on how to approach 
this phenomenon? I'm fumbling with this for 3 days now, but all I get 
is undefined... So every hint will be very welcome.



Best regards,
Roman.



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] SVN TortoiseSVN

2005-12-14 Thread Chris Hill
I believe the issue is that you don't need to stick your project into 
c:\svnrepos\project1. When you create the repos, it creates a dir 
structure like this:


conf/  dav/  db/  format  hooks/  locks/  README.txt

And saves your files in its own special way. After you import the 
c:\svnrpos\project1 folder into the repository, its not part of the 
repository. If that makes sense. You can safely delete that dir, unless 
you want it as a backup until you get more comfy with svn. Subversion 
keeps the files inside its db in its own special format, only keeping 
the parts of the files that have changed between revisions to save disk 
space.


C





Mike Boutin wrote:

Just a few questions about SVN  TortoiseSVN.  I have ran the 1 click 
setup SVN that installs Subversion and TortoiseSVN.  It created the 
repository in c:\svnrepos


I stuck my project in a folder c:\svnrepos\project1,  then I import it 
into the repos.  Now when I make a new directory and use CHeckout, all 
the files from c:\svnrepos show up with checkmarks by them.  Now if I 
create a new textfile in the checkout dir, and update it into the 
repos, and then I check c:\svnrepos\project1, the file i created isnt 
anywhere to be found except in the checkout dir.  Can anyone tell me 
what im doing wrong? Thanks!

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



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] SVN TortoiseSVN

2005-12-14 Thread Chris Hill
You should be able to delete the folder you imported into the repo, but 
I am hesitant to tell you to delete anything just in case.


I have not used the native filesystem method, I'm using the BerkeleyDB 
method on a linux box. I believe there is no way to convert, but you can 
always export the repo, then create a new repo using the FS method.


http://svnbook.red-bean.com/en/1.1/ch05.html#svn-ch-5-sect-1.3
Using the native filesystem is probably better, but it isn't saving the 
files as normal files, but in a custom subversion format. Subversion 
never has a complete 'normal' copy of your files in the repository, 
since it saves only the changes to the files, and never the full 
file(except when you first import).


Subversion rules, btw. Once you get used to using it, you'll never look 
back. Enjoy!

C


Mike Boutin wrote:

Perfect this is what I was just reading in TortoiseSVN help.  I just 
wasnt sure if I could then delete the folder I had imported.  It says 
in the help that their are 2 ways in which it can store the files, in 
a db, or in the native filesystem.  How do you change between the two 
and will using the native filesystem store the files outside of a db?  
Thanks for all your help by the way.




Chris Hill wrote:

I believe the issue is that you don't need to stick your project into 
c:\svnrepos\project1. When you create the repos, it creates a dir 
structure like this:


conf/  dav/  db/  format  hooks/  locks/  README.txt

And saves your files in its own special way. After you import the 
c:\svnrpos\project1 folder into the repository, its not part of the 
repository. If that makes sense. You can safely delete that dir, 
unless you want it as a backup until you get more comfy with svn. 
Subversion keeps the files inside its db in its own special format, 
only keeping the parts of the files that have changed between 
revisions to save disk space.


C





Mike Boutin wrote:

Just a few questions about SVN  TortoiseSVN.  I have ran the 1 
click setup SVN that installs Subversion and TortoiseSVN.  It 
created the repository in c:\svnrepos


I stuck my project in a folder c:\svnrepos\project1,  then I import 
it into the repos.  Now when I make a new directory and use 
CHeckout, all the files from c:\svnrepos show up with checkmarks by 
them.  Now if I create a new textfile in the checkout dir, and 
update it into the repos, and then I check c:\svnrepos\project1, the 
file i created isnt anywhere to be found except in the checkout 
dir.  Can anyone tell me what im doing wrong? Thanks!

___
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



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] SVN TortoiseSVN

2005-12-14 Thread Chris Hill
Lol, this is a problem that I had. If you uncomment that line, you need 
to uncomment the line that has [general] in it, too. The [general] bit 
is called a section header.


But you don't need to uncomment the 'auth-access = write' line, that's a 
default. But you will need to uncomment the 'password-db = passwd' line, 
and then put your passwords into that file.


My passwd file (located in conf/passwd):

[users]
user1 = pass1
user2 = pass2

Here is the svnserve.conf that I have on my projects. Notice most is 
just comments:


### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository.  (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)

### Visit http://subversion.tigris.org/ for more information.

[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are write, read,
### and none.  The sample settings below are the defaults.
anon-access = none
# auth-access = write
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
password-db = passwd
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa.  The default realm
### is repository's uuid.
# realm = My First Repository

Peace
C

Mike Boutin wrote:

Awesome thanks for all the help, I have figured out how to get it 
working but others on my network cannnot commit their changes.  It 
says this:

Connection is read-only

I then went into the svnserve.conf file and uncommented this line 
(anon-access = write)  thinking it would be available but then people 
on the network get this error:


Section header expected line:12:

Any ideas?




Chris Hill wrote:

You should be able to delete the folder you imported into the repo, 
but I am hesitant to tell you to delete anything just in case.


I have not used the native filesystem method, I'm using the 
BerkeleyDB method on a linux box. I believe there is no way to 
convert, but you can always export the repo, then create a new repo 
using the FS method.


http://svnbook.red-bean.com/en/1.1/ch05.html#svn-ch-5-sect-1.3
Using the native filesystem is probably better, but it isn't saving 
the files as normal files, but in a custom subversion format. 
Subversion never has a complete 'normal' copy of your files in the 
repository, since it saves only the changes to the files, and never 
the full file(except when you first import).


Subversion rules, btw. Once you get used to using it, you'll never 
look back. Enjoy!

C


Mike Boutin wrote:

Perfect this is what I was just reading in TortoiseSVN help.  I just 
wasnt sure if I could then delete the folder I had imported.  It 
says in the help that their are 2 ways in which it can store the 
files, in a db, or in the native filesystem.  How do you change 
between the two and will using the native filesystem store the files 
outside of a db?  Thanks for all your help by the way.




Chris Hill wrote:

I believe the issue is that you don't need to stick your project 
into c:\svnrepos\project1. When you create the repos, it creates a 
dir structure like this:


conf/  dav/  db/  format  hooks/  locks/  README.txt

And saves your files in its own special way. After you import the 
c:\svnrpos\project1 folder into the repository, its not part of the 
repository. If that makes sense. You can safely delete that dir, 
unless you want it as a backup until you get more comfy with svn. 
Subversion keeps the files inside its db in its own special format, 
only keeping the parts of the files that have changed between 
revisions to save disk space.


C





Mike Boutin wrote:

Just a few questions about SVN  TortoiseSVN.  I have ran the 1 
click setup SVN that installs Subversion and TortoiseSVN.  It 
created the repository in c:\svnrepos


I stuck my project in a folder c:\svnrepos\project1,  then I 
import it into the repos.  Now when I make a new directory and use 
CHeckout, all the files from c:\svnrepos show up with checkmarks 
by them.  Now if I create a new textfile in the checkout dir, and 
update it into the repos, and then I check c:\svnrepos\project1, 
the file i created isnt anywhere to be found except in the 
checkout dir.  Can anyone tell me what im doing wrong? Thanks!

___
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

Re: [Flashcoders] SVN TortoiseSVN

2005-12-14 Thread Chris Hill
Very cool! Thanks for popping in with that. I'm glad to see a heavier 
usage of SVN(on linux even!) in the web/flash world. Makes my life 
easier when I push for it as an emerging standard.


Peace
C

PS: So I feel a bit dumb now, I must admit: I'm running FSFS. I thought 
I was running BerkeleyDB but when I compiled it myself I must've set 
FSFS as the default. It must be slower for me because its on a 1ghz machine.


Glenn J. Miller wrote:


Chris,

Just some 'nice-to-know' information. We're running several Subversion
repositories on a Fedora Core 3 boxen - FSFS Subversion file system type. It
absolutely rips a wake in the water for speed, and is very stable and secure
as well (svn-ssh://)...

Just thought I'd add my $0.03 {adjusted for inflation} - hope this is
helpful for anyone interested in the subject...

--
Dok
Skyymap, Inc.

Kindest regards,

 

CHRIS HILL WROTE - SNIP FOR BREVITY  
 

I have not used the native filesystem method, I'm using the BerkeleyDB 
method on a linux box.
 


END SNIP 
 




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



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] SVN TortoiseSVN

2005-12-14 Thread Chris Hill
Oh man, I need to get me one of those! Crunching those big flash files 
can take a while on my machine. I use the word FLASH in an attempt to 
stay on topic.


And more info regarding BDB and FSFS:
http://subversion.tigris.org/faq.html#bdb-fsfs-convert

It mentions that BerkeleyDB was the default, but as of 1.2, FSFS is. So 
I'm guessing that FSFS is finally considered production stable in 1.2 
builds onward.




Glenn J. Miller wrote:


Dual 1.8GHz Athlon MP's w/ 4GB RAM... ^_^

FWIW, at the command line as the svn repository owner:
$ svnadmin create --fs-type fsfs /path/to/repos

I believe if I'm not mistaken, BerkeleyDB is indeed the default...

Hope this helps. Peace...

--
Dok
Skyymap, Inc.

 



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


Re: [Flashcoders] Success Stories with Flash Friendly CVS Systems?

2005-12-12 Thread Chris Hill

Well, I have a non-best practice success story, if that's any help.

I have a very unorthodox setup, but it works really well considering. I 
have a home office linux server running off a cable modem. I run all the 
standard linux goodies off it including Subversion. Pretty much all 
users are on Windows and run TortoiseSVN. I make repositories by hand on 
the command line. Holding all assets in the repository takes up a lot of 
space. Using the repository for video work is not feasible. We worked on 
a multimedia cd-rom, and the entire repository for the 300MB of work 
files is approx 1.8GB. Most repositories aren't that big. I also 
*blushes* have a single classpath for all clients. This is because when 
I first started using Subversion it was for my own personal use. Now we 
can't see how we ever worked without it. I haven't used Trac, nor do we 
have any post-commit hooks for mail or anything.


Based on my non-best practices setup, here's what a best practices setup 
would be like:
Crunching assets can take a while. Get a dual cpu setup to crunch those 
big flas.

Make sure you have a good terabyte of space, its a disk hog, too.
Use post-commit hooks for email, and use detailed log messages to cut 
down on communication overhead.
Write some shell scripts (or whatever you like) to handle the creation 
of repositories, users, and hooks. This may sound hackish, but the 
reason I put this as a best practice is because I don't think any 
pre-packaged solution can come close to a good shell script here.
Based on the best practice above, naturally you should be running all 
this on a Linux/BSD box.
You really should have someone as a designated subversion admin who 
knows the ins and outs. You absolutely need someone there who is 
available and can provide training wheels for new subversion users. It 
ain't going to be easy.


Have a classpath folder for each client, along with a separate 
repository for your core classes. Use inheritance heavily. Example: You 
have a Menu class such as:


com.company.gui.Menu

You customize this menu for a client:

clientMenu extends com.company.gui.Menu

But you also use com.company.gui.Menu for a bunch of other projects. So 
have a 'main' classpath repository that contains all your core classes, 
and use inheritance for your individual client needs by having a special 
classpath within the project's repository. Yes, this requires two 
updates, but it is a better solution.


I think the main issue with version control in a web/flash environment 
is workflow. Getting project managers and designers to all comprehend 
the intricacies of version control takes finesse. I just tell project 
managers to 'right click and update'. I tell designers its like ftp, 
only cooler. And programmers just get it.


I hope you find this useful, but more importantly, I hope it creates 
some discussion. I don't pretend to know a lot about version control, 
and perhaps there are others out there who can give me some good schoolins.


Robert Sandie wrote:

On my fourth large flash project and have yet to come up with  a sound 
CVS system/workflow for Flash. Does anyone have any best practice 
stories regarding version control and integration into web development 
projects? Would love to hear.


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



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] simulating narrowband connection

2005-12-09 Thread Chris Hill
I use Charles every day, its indispensible. You can throttle and debug 
from within Flash, and a number of other very important things.


(shameless self plug)
http://ubergeek.tv/article.php?pid=92



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Campbell
Anderson
Sent: Friday, 9 December 2005 9:42 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] simulating narrowband connection

I made a .net one really simple then someone sudgested :

http://xk72.com/charles/   its java based :o)

Campbell

 



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


Re: [Flashcoders] _framesloaded and _totalframes

2005-12-07 Thread Chris Hill
Yeah, this is a problem in flash. A better loading method is to use the 
MovieClipLoader class:


var mcl = new MovieClipLoader();

mcl.loadClip(movie.swf,_root.clipToLoadIn);
mcl.addListener(this);

onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, 
bytesTotal:Number) {
trace(loaded=+bytesLoaded+, total=+bytesTotal);

};




David Cohn wrote:


Hey all,

After using loadMovie on a blank movieclip, I do:

onClipEvent(data) {
trace(loaded=+this._framesloaded+, total=+this._totalframes);
}

...which always gives:
loaded=16000, total=65535
(both values should be way smaller)

Yet _currentframe reports the correct value... is there something I'm  
missing?


Thanks in advance,
--Dave


p.s. is there a way to search the flashcoders archives?


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



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] (no subject)

2005-12-01 Thread Chris Hill

http://ubergeek.tv/article.php?pid=90


Mike Boutin wrote:

I have downloaded XPath implementation for AS2. Where do I extract the 
*.as files to? There seems to be no documentation on how to install.

http://www.xfactorstudio.com/ActionScript/AS2/XPath/

Thanks!

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



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] Problem with .as files

2005-10-25 Thread Chris Hill
Yes, I've run into this before, and its very annoying. Is there any 
workaround that you found?



I. Franklin wrote:


Thank you very much for all your responses.
I tried clearing the ASO files, but even then the problem persisted.

The problem actually was this :
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=
288threadid=1061076highlight_key=ykeyword1=class

Frank

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ryanm
Sent: Tuesday, October 25, 2005 4:04 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Problem with .as files

 

This can also be an issue with working on a network drive. You should 
make sure all your .as files are local.


   


   Or make sure that your local clock is a minute or two behind the
network machine's clock.

ryanm 


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


This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. For more information on a proactive anti-virus
service working around the clock, around the globe, visit:
http://www.star.net.uk

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



--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] What's This Mean?

2005-10-25 Thread Chris Hill
Yes, working with your AS in an external editor is much better than 
having it haphazardly placed in a bunch of different clips. But if you 
just want to place your internal code into an external file there are a 
couple things to know:


If you just want to include your code into flash, you use the #include 
directive like so:


#include mycode.as

BUT this won't necessarily work because AS2.0 code is put into 
containers called 'classes'. Flash will look in the .fla's folder for 
any class files, and make sure the syntax is correct. An unfortunate 
side effect of this is that if you migrate all your internal code into 
an external file _in the same folder_ flash will automatically assume 
you are creating an AS2.0 class. In reality you're just using normal AS 
externally. This is why you're getting the erroneous error ActionScript 
2.0 class scripts may only define class or interface constructs. Flash 
thinks you're making a class but you're not, because the working folder 
is part of AS2's 'classpath'.


So you can either place your code somewhere else like so:
#include ../src/mycode.as

or go into Edit-Preferences-ActionScript-Actionscript2.0 Settings and 
remove the entry in the list for the '.'


C

jleonard wrote:



  Appreciate the heads up. So I thought that placing as code 
externally  was the more correct way to do it. Is this not true? Or 
is there another  way it's done?


On Tue, 25 Oct 2005 09:21:46 -0400, Hans Wichman [EMAIL PROTECTED] wrote:


Hi,
an as file may only define a class as in:

class MyClass {

}

or an interface as in:

interface MyInterface {

}

Just copying your timeline code into separate files and having a 
file  with for example:

var myVar:String = ffsdfsfs;

is not gonna work.

greetz
Hans

At 03:09 PM 10/25/2005, jleonard wrote:

   I have just separated out my as code into different pages. The  
init.as

page is now showing this error where before it worked fine. Any help
greatly appreciated...


**Error** C:\Documents and Settings\PC2005\My Documents\flash
player\init.as: Line 5: ActionScript 2.0 class scripts may only define
class or interface constructs.

 var cvtvSourceVideo:String = streams/Demo384K_Stream.flv;
___
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







--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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


Re: [Flashcoders] Problem with .as files

2005-10-24 Thread Chris Hill
This can also be an issue with working on a network drive. You should 
make sure all your .as files are local.



Michael Klishin wrote:


I. Franklin wrote:


Hi list,

I have encountered a bizarre problem with the .as files in one of my
projects.
The problem is that when I make any updations to the class file and
compile, it is not getting reflected in the project and moreover even
when I comment all the scripts in that class file, it compiles perfectly
and publishes and all the commented script works!!!. Any idea why 
this could happen?



Use this extension to clear ASO cache:

http://www.macromedia.com/cfusion/exchange/index.cfm?extid=1016963view=sn111 





--
_
   __ __     
  |  |  \/ ___\  Chris Hill  
  |  |  / /_/   [EMAIL PROTECTED]
  |/\___  /  http://ubergeek.tv  
   /_/   The Smell of Geek!  
-

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