Re: [Flashcoders] Using JSFL with AS files

2007-03-23 Thread Yehia Shouman

I think you can load .as files as (text files) and parse baby parse !

On 3/23/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:


> What do you mean specifically?

I mean editing AS with JSFL. I'm getting frustrated with not being able to
do a search and replace on multiple files, so I was going to write a tool
to
do it with JSFL - unfortunately, it seems only to work with FLA files, not
AS.

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] timer question

2007-03-23 Thread Gustavo Duenas
Hi, I'm trying to launch an event using a timer so far the code for  
trace something is this:


var now = new Date();

var seconds:Number = now.getSeconds();

trace(seconds);

var newSeconds: Number = seconds+10;

if ( seconds == newSeconds){
trace("plus 10");
}

var seconds:Number = seconds;



the problem is that this ones doesn't trace" plus 10", instead just  
traces the var seconds.


Do you know what is wrong here?


Regards.



Gustavo Duenas

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Trouble getting _x position

2007-03-23 Thread Hans Wichman

Hi,
it works ok here. It traces zero, as it should.

greetz
JC


On 3/23/07, Lee Marshall <[EMAIL PROTECTED]> wrote:


Hi all

Just trying to create a box in actionscript into an empty movieclip. I
then wanted to reurn the _x postion of the box, but it's just not
happening for me. Here is my code. Any ideas?

Cheers all


Stage.scaleMode = "scale";
Create a box to encapsulate the loader indicator
var bW:Number = 200;//Width of loader
var bH:Number = 8;//Height of loader
var bLC:Number = 0x77;//Colour of loader box
var bFC:Number = 0xFF;//Fill colour of loader box
var inC:Number = 0x4654FF;//Fill colour of indicator
var loaderBox_mc:MovieClip = this.createEmptyMovieClip("loaderBox_mc",
this.getNextHighestDepth());
loaderBox_mc.beginFill(bFC, 100);
loaderBox_mc.lineStyle(1, bLC, 100);
loaderBox_mc.moveTo((Stage.width/2)-bW/2, (Stage.height/2)-bH/2);
loaderBox_mc.lineTo((Stage.width/2)+bW/2, (Stage.height/2)-bH/2);
loaderBox_mc.lineTo((Stage.width/2)+bW/2, (Stage.height/2)+bH/2);
loaderBox_mc.lineTo((Stage.width/2)-bW/2, (Stage.height/2)+bH/2);
loaderBox_mc.moveTo((Stage.width/2)-bW/2, (Stage.height/2)-bH/2);
loaderBox_mc.endFill();
trace(loaderBox_mc._x)



Lee Marshall.
Senior Media Designer/Developer

Transart Educational Marketing Systems
Clare Hall
Parsons Green
St Ives Business Park
St Ives
Cambridgeshire PE27 4WY

Tel Direct Dial: +44(0)1480 499213
Tel General Enquiries: +44(0)1480 499200
Fax: +44(0)1480 499201
email: [EMAIL PROTECTED] 
web: www.transart.co.uk 

Confidentiality notice:
Please note that the information contained herein is highly confidential
and may also be privileged and is for the named recipient(s) only, on no
account should any part or details be disclosed to any third party
without the prior written consent of Transart.  In the event that you
are not the intended recipient then please delete it and any copies that
you have made and contact me on the above number.

General statement:
Any statements made, or intentions expressed in this communication may
not necessarily reflect the view of Transart.  Be advised that no
content herein may be held binding upon Transart or any associated
company unless confirmed by the issuance of a formal contractual
document or purchase order.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Trouble getting _x position

2007-03-23 Thread nelson ramirez

Seems to work.
It returns an _x of 0 because that's where this line :
var loaderBox_mc:MovieClip = this.createEmptyMovieClip("loaderBox_mc",
this.getNextHighestDepth());

creates the clip.

The coordinates you're drawing on are relative to the loaderBox_mc but they
don't in fact change the position of loaderBox_mc
Hope that makes sense to you.

On 3/23/07, Lee Marshall <[EMAIL PROTECTED]> wrote:


Hi all

Just trying to create a box in actionscript into an empty movieclip. I
then wanted to reurn the _x postion of the box, but it's just not
happening for me. Here is my code. Any ideas?

Cheers all


Stage.scaleMode = "scale";
Create a box to encapsulate the loader indicator
var bW:Number = 200;//Width of loader
var bH:Number = 8;//Height of loader
var bLC:Number = 0x77;//Colour of loader box
var bFC:Number = 0xFF;//Fill colour of loader box
var inC:Number = 0x4654FF;//Fill colour of indicator
var loaderBox_mc:MovieClip = this.createEmptyMovieClip("loaderBox_mc",
this.getNextHighestDepth());
loaderBox_mc.beginFill(bFC, 100);
loaderBox_mc.lineStyle(1, bLC, 100);
loaderBox_mc.moveTo((Stage.width/2)-bW/2, (Stage.height/2)-bH/2);
loaderBox_mc.lineTo((Stage.width/2)+bW/2, (Stage.height/2)-bH/2);
loaderBox_mc.lineTo((Stage.width/2)+bW/2, (Stage.height/2)+bH/2);
loaderBox_mc.lineTo((Stage.width/2)-bW/2, (Stage.height/2)+bH/2);
loaderBox_mc.moveTo((Stage.width/2)-bW/2, (Stage.height/2)-bH/2);
loaderBox_mc.endFill();
trace(loaderBox_mc._x)



Lee Marshall.
Senior Media Designer/Developer

Transart Educational Marketing Systems
Clare Hall
Parsons Green
St Ives Business Park
St Ives
Cambridgeshire PE27 4WY

Tel Direct Dial: +44(0)1480 499213
Tel General Enquiries: +44(0)1480 499200
Fax: +44(0)1480 499201
email: [EMAIL PROTECTED] 
web: www.transart.co.uk 

Confidentiality notice:
Please note that the information contained herein is highly confidential
and may also be privileged and is for the named recipient(s) only, on no
account should any part or details be disclosed to any third party
without the prior written consent of Transart.  In the event that you
are not the intended recipient then please delete it and any copies that
you have made and contact me on the above number.

General statement:
Any statements made, or intentions expressed in this communication may
not necessarily reflect the view of Transart.  Be advised that no
content herein may be held binding upon Transart or any associated
company unless confirmed by the issuance of a formal contractual
document or purchase order.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Trouble getting _x position

2007-03-23 Thread Pedro Taranto
what is the problem ?? you expect to receive the top-left corner _x 
position of the drawed box ?


--Pedro Taranto


Lee Marshall escreveu:

Hi all

Just trying to create a box in actionscript into an empty movieclip. I
then wanted to reurn the _x postion of the box, but it's just not
happening for me. Here is my code. Any ideas?

Cheers all


Stage.scaleMode = "scale";
Create a box to encapsulate the loader indicator
var bW:Number = 200;//Width of loader
var bH:Number = 8;//Height of loader
var bLC:Number = 0x77;//Colour of loader box
var bFC:Number = 0xFF;//Fill colour of loader box
var inC:Number = 0x4654FF;//Fill colour of indicator
var loaderBox_mc:MovieClip = this.createEmptyMovieClip("loaderBox_mc",
this.getNextHighestDepth());
loaderBox_mc.beginFill(bFC, 100);
loaderBox_mc.lineStyle(1, bLC, 100);
loaderBox_mc.moveTo((Stage.width/2)-bW/2, (Stage.height/2)-bH/2);
loaderBox_mc.lineTo((Stage.width/2)+bW/2, (Stage.height/2)-bH/2);
loaderBox_mc.lineTo((Stage.width/2)+bW/2, (Stage.height/2)+bH/2);
loaderBox_mc.lineTo((Stage.width/2)-bW/2, (Stage.height/2)+bH/2);
loaderBox_mc.moveTo((Stage.width/2)-bW/2, (Stage.height/2)-bH/2);
loaderBox_mc.endFill();
trace(loaderBox_mc._x)

 


Lee Marshall.
Senior Media Designer/Developer

Transart Educational Marketing Systems 
Clare Hall

Parsons Green
St Ives Business Park
St Ives
Cambridgeshire PE27 4WY

Tel Direct Dial: +44(0)1480 499213
Tel General Enquiries: +44(0)1480 499200
Fax: +44(0)1480 499201
email: [EMAIL PROTECTED]  
web: www.transart.co.uk  


Confidentiality notice:
Please note that the information contained herein is highly confidential
and may also be privileged and is for the named recipient(s) only, on no
account should any part or details be disclosed to any third party
without the prior written consent of Transart.  In the event that you
are not the intended recipient then please delete it and any copies that
you have made and contact me on the above number.
 
General statement:

Any statements made, or intentions expressed in this communication may
not necessarily reflect the view of Transart.  Be advised that no
content herein may be held binding upon Transart or any associated
company unless confirmed by the issuance of a formal contractual
document or purchase order.

 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Video in Flash

2007-03-23 Thread Daniel Hart

Hi there - I use Sony Vegas, have a 16:9 HDD camcorder that imports mpeg2
video, and want the same results to run really smooth on a website. I
realise there are a few stages that need to be done right from origin. I
have edited a 2 minute sequence that will be my first step to getting it
right. The thing that really confuss me is the fact that it starts at (PAL)
720x576 - project properties are 16:9 which is just how I want the true
pixel output to be once it is run through the mill.

I need a little advice on rendering the original, then what to do with
Sorenson - so that I can show it at, say, 450x253 nicely within a website.

There are a few issues like ratio that are confusing me, and I would really
appreciate a little assistance. It may be best if you contact me off-list
because I will need a little step-by-step guidance I think. I have got the
main principles, its just a matter of figuring how exactly to do it. This
has taken me all week thus far...!

Thanks so much,

Daniel Hart (email on website)
www.djh-graphics.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] Trouble getting _x position

2007-03-23 Thread Steven Sacks | BLITZ
Draw your box from 0,0 and then set the _x and _y of the movieclip you
drew 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] Using JSFL with AS files

2007-03-23 Thread Steven Sacks | BLITZ
You can read and write any text files, so you can certainly read and
write AS files.

Here is the full Flash 8 JSFL API PDF document which is IMPOSSIBLE to
find anymore on Adobe's site.

http://tinyurl.com/2qu83v

Of particular interest to you are:

Flfile Object

Flfilre.read(fileOrFolderURI);
Flfile.write(fileURI, textToWrite);

etc.

Hope this helps you.  JSFL rocks.  I've used it to create many handy
tools.

One thing that will save you some headaches if you make Panels out of
your JSFL tools is make sure you DOCK the panels in Flash.  For some
reason, certain JSFL actions that modify objects on the timeline are
broken if called from a free floating panel.  It's a bug and it's
probably known and I wouldn't expect a fix anytime soon.

Cheers!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] PHP book recommendations

2007-03-23 Thread Anggie Bratadinata

This book is good :
'core web application development with php and mysql', addison-wesley, 2005

--
Anggie Bratadinata
www.masputih.com
I N D O N E S I A

Hairy Dog Digital wrote:

Save your money and point your browser at: www.php.net


Yeah, know about that, but I'm a book hog and it gives my admin one more
thing to keep track of for me.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 find dimensions of my own component, resized in auth. env.?

2007-03-23 Thread Muzak
You should look into the core classes to see what goes on behind the scenes:

mx.core.UIComponent
mx.core.UIObject

UIObject uses 2 private variables to keep track of width and height

 var __width:Number;
 var __height:Number;

In your size() method use those instead of the default _width and _height 
(movieclip) properties.

regards,
Muzak

- Original Message - 
From: "Alexander Farber" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, March 23, 2007 9:52 AM
Subject: [Flashcoders] How to find dimensions of my own component,resized in 
auth. env.?


> Hello,
>
> I have a simple component, it is a multiline TextField with wordWrap
> switched on and with a yellow rectangle drawn underneath:
>
>   http://preferans.de/flash/ - the files Bubble.*
>
> I'd like the users of my component to be able to resize its width in the
> authoring environment, so that they can control where the word wrapping
> will happen. However I can't figure out how to find out that width.
>
>
> Any suggestions are very welcome
> 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


RE: [Flashcoders] Got milk? (the game)

2007-03-23 Thread Steven Sacks | BLITZ
> That dice is cheaty! It's a dirty cheaty dice.

A friend of mine rolled a "1" 14 times in a row.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Re: [flexcoders] Re: Caching problem

2007-03-23 Thread slangeberg

Hmm, i've had this experience on both Apache & IIS. I'm not talking about a
server cahce, I believe this is browser related. Upload SWF to server, and
do not see change in browser till cache is cleared. No one else experiences
this?

My current understanding is that since nothing about the page itself
changed, the browser (IE 6 & 7) is caching this resource. Am i wrong?

I've copied the original post, below.

-Scott

Hi there!

I have an xml file that needs to be loaded eventually using a
URLRequest. I'm trying to avoid loading a cached file using these
headers:

urlRequest.requestHeaders.push(new URLRequestHeader("Cache-
Control", "no-cache, no-store, max-age=0, must-revalidate"));
urlRequest.requestHeaders.push(new URLRequestHeader
("Expires", "Fri, 30 Oct 1998 14:19:41 GMT"));
urlRequest.requestHeaders.push(new URLRequestHeader
("Pragma", "no-cache"));

It works ok in firefox and IE6.0.2900, but I still obtain a cached file
in IE6.0.3790+ and IE7.

Do I need to add any more headers? or what's the problem here?

Thanks in advance

__._,_.___  Messages in this topic
(
1)  Reply (via web post)
|
Start
a new topic

Messages
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
[image: Yahoo!
Groups]
Change settings via the
Web(Yahoo!
ID required)
Change settings via email: Switch delivery to Daily
Digest<[EMAIL PROTECTED]:+Digest>|
Switch
format to Traditional<[EMAIL PROTECTED]:+Traditional>
Visit Your Group
|
Yahoo!
Groups Terms of Use  | Unsubscribe
<[EMAIL PROTECTED]>
 Recent Activity

  -  121
  New 
Members

Visit Your Group

SPONSORED LINKS

  - Software development
tool
  - Software 
development
  - Software development
services
  - Home design
software
  - Software develo

[Flashcoders] flash game developer - multi-player games

2007-03-23 Thread bruce
hi...

i'm trying to find out how/who i can talk to to get information regarding
flash games. specifically, if i'm looking to talk to anyone/small company
who's developed small multiplayer flash games, who can i talk to...

thanks

-bruce

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] scaling external jpgs or pngs

2007-03-23 Thread dk

When down-scaling external (loadMovie) images, It there a secret way to do
it without making the image look jagged? Do pngs scale better than jpgs?


I've got some info and examples here:
http://bumpslide.com/blog/2006/10/30/smooth-image-resizing-with-flash-8/

-dk
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] MDM Zinc v2.5 Trial _ Writing files to hard drive

2007-03-23 Thread Ned Perry
Hi 
 
I need to make a Projector that writes files to the hard-drive. All the
content elements are going to be Flash and  I was hoping to use Zinc as
a wrapper that could handle the file system elements. But I can't find
any command to create a file. Does anyone know if there is one?
There seems to be loads of stuff to copy and move files etc but not to
make one.
If there isn't can anyone recommend an alternative to Zinc other than
Director.
 
Cheers
 
Ned 
 






This e-mail (and any attachments) is confidential and may contain 
personal views which are not the views of Cimex Media Ltd and 
any affiliated companies, unless specifically stated. It is intended 
for the use of the individual or group to whom it is addressed. If 
you have received it in error, please delete it from your system, 
do not use, copy or disclose the information in any way nor act in 
reliance on it and please notify [EMAIL PROTECTED]

A company registered in England & Wales. Company Number 03765711
Registered Office : The Olde Bakehouse, 156 Watling Street East, Towcester,
Northants NN12 6DB
This email was scanned by Postini, the leading provider in Managed Email 
Security. http://www.postini.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] QT in IE returning null value to flash

2007-03-23 Thread Bob Wohl

I got it to work, It was the way the embed tag was labeled and the way
IE was interpreting window vs. document. This little snipet helped
with beating back the monster IE is -

function thisMovie(movieName) {
setDisplayClosed()
   if (navigator.appName.indexOf("Microsoft") != -1) {
   return window[movieName]
   }
   else {
   return document[movieName]
   }
}



ExternalInterface.call() seems to work fine, it appears that IE has
the most problem with locating the functions set from flash with
ExternalInterface.addCallBack(). Also wasted a little bit of time
debugging localy before I realized that it only will work when testing
from a server. I guess that's one of the hurdles in the learning
process when dealing with a foreign technology (to me at least)

=)


Thanks for the replies!

Bob

On 3/22/07, Joe Wheeler <[EMAIL PROTECTED]> wrote:

Does the object tag have the id "movie1" (not just the embed tag)?

Also, how are embedding the movie, I could be wrong but it think the stoopid
active-x activation thing causes problems - try using UFO or SWFObject to
embed the movie.

The other thing you could try is writing the JS function from inside flash -
For example,  I use this quite a lot to get the page url:

response = ExternalInterface.call( "function(){return
document.location.href;}" );


J

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman
Sent: 22 March 2007 16:24
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] QT in IE returning null value to flash

Hm.  I haven't used ExternalInterface at al (I'm stuck with Flash 7), so I'm
not really sure what the problem could be.  Though you might be able to do
it as a callback (have the javascript function call some function in your
Flash movie to give it the value).  The control flow for that would be a bit
odd, but it might work if you can't get it to return correctly.

  -Andy

On 3/20/07, Bob Wohl <[EMAIL PROTECTED]> wrote:
> yeah, I can alert the value (real fun with a set interval =P). Just
> getting it from JS seems to be the issue.
>
> yep, QuickTime, their documentation rocks for javascript ;)
>
>
>
>
> Bob
>
> On 3/20/07, Andy Herrman <[EMAIL PROTECTED]> wrote:
> > Have you tried getting the value out using just Javascript (no Flash
> > involved)?  See if that works.  It might make it easier to debug
> > (removing a layer of complexity).  Maybe IE has some security in
> > place that's preventing the access of the values from QT (you mean
> > quicktime?  I always think of QT as the C++ toolset made by
> > trolltech.)
> >
> >-Andy
> >
> > On 3/20/07, Bob Wohl <[EMAIL PROTECTED]> wrote:
> > > Hello all,
> > >
> > >
> > > I've researched quite a bit over the past week to no avail on how
> > > in IE i get a return of null when pulling the time from a QT file
> > > but in FireFox i get the proper time...
> > >
> > >
> > > flash call -
> > > myTime = ExternalInterface.call("DisTime", "document.movie1");
> > >
> > >
> > > js -
> > > function DisTime(anObj){
> > >var obj = eval(anObj);
> > >   return obj.GetTime();
> > >}
> > >
> > >
> > > seems simple enough but I cannot for the life of me find out why
> > > IE sees it as null.
> > >
> > > Any ideas, pointers?
> > >
> > >
> > > Thanks!
> > > Bob
> > > ___
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > Brought to you by Fig Leaf Software Premier Authorized Adobe
> > > Consulting and Training http://www.figleaf.com
> > > http://training.figleaf.com
> > >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

Brought to you by Fi

[Flashcoders] [OT ?] Développeur AS2 exp érimenté

2007-03-23 Thread af



Bonjour,

Pour une durée de 2 mois (mai et juin) en CDD ou en mission freelance,
je recherche un développeur ActionScript 2.0 expérimenté, 
ayant de bonnes connaissances mathématiques (BAC+2 minimum) et en algorithmes.

Lieu : sur Toulouse même, pas de télétravail.

Merci de m'envoyer votre CV et vos réalisations à :
[EMAIL PROTECTED]

Anthony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 crashing dilemna - when adding aninputtextfield

2007-03-23 Thread Paul Steven
Yes Muzak

This is the only code that refers to keys in the game itself

The only reference to keys in the game is this handler

// 
// check_key_status
// 

function check_key_status() {   

boolKeyUp = Key.isDown(38);
boolKeyDown = Key.isDown(40);
boolKeyLeft = Key.isDown(37);
boolKeyRight = Key.isDown(39);


}

This is called within a game loop function

i.e

this.onEnterFrame = function() {

check_key_status();

}

There are no other references to key input.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: 23 March 2007 00:48
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash crashing dilemna - when adding
aninputtextfield

Does your game capture any keystrokes (like arrow keys or WASD for
movement)?

regards,
Muzak

- Original Message - 
From: "Paul Steven" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, March 22, 2007 8:09 PM
Subject: RE: [Flashcoders] Flash crashing dilemna - when adding an
inputtextfield


>I am really struggling to get to the bottom of this bug and I have now
spent
> over 2 days desparately trying everything including recreating the entire
> game in a new flash file in case anything was corrupt.
>
> Basically the game crashes if I type into a text input field. If I do not
> then it doesn't.
>
> I cannot fathom what would be carried forward to the actual game from this
> simple action. The text input field isn't even on screen anymore when the
> game is in play.
>
> Does the act of typing into a text input field change anything that could
> affect my game?
>
> Really frustrating as I need to be able to allow the user to enter their
> name.
>
> Anyone
>
> Thanks
>
> Paul


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: [flexcoders] Re: Caching problem

2007-03-23 Thread slangeberg

Much better approach!

Now, my question is, what do people do to prevent caching of swf files
themselves?

Here's the setup: I'm deploying a business app, and want all users to see
the update to the SWF. However, I don't want to tell everyone to clear their
cache. Should I just pass a version number to the swf request, to update to
that point, ie - point to:

$vers = "1.0.2";

$path = "/flash/myMovie.swf?vers=" . $vers;

...etc.

Is there a best practice for this kind of thing? I'm also curious how this
will apply to Module development in Flex. How do I make sure that people
have current modules, without blasting their cache, every time?

Thanks,

-Scott


On 3/14/07, Thomas Fowler <[EMAIL PROTECTED]> wrote:


I'm sure someone has already mentioned this but you could always append
the
date in milliseconds to the query string as well.

Like so:

var date : Date = new Date();

url:String = resource + "?d=" + date.UTC();

- Original Message -
From: "slangeberg" <[EMAIL PROTECTED]>
To: ; "Flashcoders mailing list"

Sent: Wednesday, March 14, 2007 10:52 AM
Subject: [Flashcoders] Re: [flexcoders] Re: Caching problem

> That'll work with any cache-busting you need to do. I use it in testing,
> to
> un-cache the swf file itself, when viewed on server. Ie: send rand var
in
> url and if it's present, pass it in to swf call (swfobject + php, here):
>
> var so = new SWFObject( "ProductBuilder.swf?rand=",
> "product_builder", "100%", "100%", "9", "#FF");
>
> Saves me the 'pain' of going through some menu to clear browser's cache,
> not
> to mention losing your browser's cache, in order to update one element!
>
> -Scott
>
> On 14 Mar 2007 08:44:42 -0700, Alex <[EMAIL PROTECTED]> wrote:
>>
>>   Wow! O_O' Works flawlessly!! :-D
>>
>> Many thanks for that trick dude!
>>
>> --- In flexcoders@yahoogroups.com ,
>> slangeberg <[EMAIL PROTECTED]> wrote:
>> >
>> > With Flash, I've learned to do the lo-tech method of attaching
>> random
>> > numbers to the path. Simple, but it's been effective!:
>> >
>> > url:String = resource + "?rand=" + Math.floor(Math.random() *
>> 10);
>> >
>> > -Scott
>> >
>> > On 14 Mar 2007 08:07:52 -0700, Alex <[EMAIL PROTECTED]> wrote:
>> > >
>> > > Hi there!
>> > >
>> > > I have an xml file that needs to be loaded eventually using a
>> > > URLRequest. I'm trying to avoid loading a cached file using these
>> > > headers:
>> > >
>> > > urlRequest.requestHeaders.push(new URLRequestHeader("Cache-
>> > > Control", "no-cache, no-store, max-age=0, must-revalidate"));
>> > > urlRequest.requestHeaders.push(new URLRequestHeader
>> > > ("Expires", "Fri, 30 Oct 1998 14:19:41 GMT"));
>> > > urlRequest.requestHeaders.push(new URLRequestHeader
>> > > ("Pragma", "no-cache"));
>> > >
>> > > It works ok in firefox and IE6.0.2900, but I still obtain a
>> cached file
>> > > in IE6.0.3790+ and IE7.
>> > >
>> > > Do I need to add any more headers? or what's the problem here?
>> > >
>> > > Thanks in advance
>> > >
>> > >
>> > >
>> >
>> >
>> >
>> > --
>> >
>> > : : ) Scott
>> >
>>
>>  __._,_.___  Messages in this topic
>> <
http://groups.yahoo.com/group/flexcoders/message/67849;_ylc=X3oDMTM3NXM3YjkzBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAM2Nzg1OARzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzExNzM4ODcwODIEdHBjSWQDNjc4NDk-
>(
>> 4)  Reply (via web post)
>> <
http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJyN3ZkcTU0BF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAM2Nzg1OARzZWMDZnRyBHNsawNycGx5BHN0aW1lAzExNzM4ODcwODI-?act=reply&messageNum=67858
>|
>> Start
>> a new topic
>> <
http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJmb24wbnUzBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNudHBjBHN0aW1lAzExNzM4ODcwODI-
>
>>
>> Messages<
http://groups.yahoo.com/group/flexcoders/messages;_ylc=X3oDMTJmbTIyZWJtBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNtc2dzBHN0aW1lAzExNzM4ODcwODI-
>
>>  --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
>>  [image: Yahoo!
>> Groups]<
http://groups.yahoo.com/;_ylc=X3oDMTJlOGthMmFwBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTE3Mzg4NzA4Mg--
>
>> Change settings via the
>> Web<
http://groups.yahoo.com/group/flexcoders/join;_ylc=X3oDMTJndjhlbHRhBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNzdG5ncwRzdGltZQMxMTczODg3MDgy
>(Yahoo!
>> ID required)
>> Change settings via email: Switch delivery to Daily
>> Digest<[EMAIL PROTECTED]:+Digest
>|
>> Switch
>> format to
>> Traditional<
[EMAIL PROTECTED]:+Traditional
>
>>  Visit Your Group
>> <
http://groups.yahoo.com/group/flexcoders;_ylc=X3oDMTJldGs4djh2BF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNocGYEc3RpbWUDMTE3Mzg4NzA4Mg--
>|
>> Yahoo!
>> Groups Terms of Use 

Re: [Flashcoders] html vars and flash vars

2007-03-23 Thread Andrew Kirkham
Is this of use? (From Flash docs)

asfunction protocol
asfunction:function:Function, parameter:String

A special protocol for URLs in HTML text fields that allows an HREF link to 
call an ActionScript function. In HTML text fields, you can create links using 
the HTML A tag. The HREF attribute of the A tag contains a URL that uses a 
standard protocol such as HTTP, HTTPS, or FTP. The asfunction protocol is an 
additional protocol that is specific to Flash, which causes the link to invoke 
an ActionScript function.

(sorry I haven't quoted the original question, but I read it from the archive, 
so I wan't able to compose a direct reply)

Andy Kirkham
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Test

2007-03-23 Thread Pedro Taranto

yes

--Pedro Taranto


Omar Fouad escreveu:

Is this delivered???


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] User Centred Design

2007-03-23 Thread Mark Lapasa
I personally found Task-Centered User Interface Design to be a valuable 
and good short read. The book is ancient but there is a reason why it is 
still used in graduate level courses today.


http://www.hcibib.org/tcuid/

Good luck,

-mL
http://knowledge.lapasa.net


Nick Weekes wrote:

One of my favourite books on this subject, "About Face 2:  Essentials of
Interaction Design":

http://www.amazon.co.uk/About-Face-2-0-Essentials-Interaction/dp/0764526413/
ref=sr_1_7/202-5343986-8502251?ie=UTF8&s=books&qid=1174494929&sr=8-7


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Huynen
Sent: 21 March 2007 15:39
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] User Centred Design

I checked it out and it's great!

I found this one myself: Also pretty good:

http://www.experientia.com/blog

Regards,

Tom

On 3/21/07, tzoli <[EMAIL PROTECTED]> wrote:
  
Here, you can find lot of articles on usability and design - 
http://www.alistapart.com/




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom 
Huynen

Sent: Wednesday, March 21, 2007 10:50 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] User Centred Design

Hello friends,

For my graduation on multmedia design over here in The Netherlands I'm 
doing research on User Centred Design.
I've been coding in actionscript for a few years now and the purpose 
of the research is to be able to create beautifull interfaces with 
high usability standards.


So far I believe that user centred design comes from several 
disciplines

like:

Cognitive Psychology, Anthropology, Human-Computer Interaction, Visual 
and Graphic Arts, Communication, User-Interface Theory, Linguistics, 
Human-Factors, Information Design, Instructional Design, Color Theory, 
Typography, and more.


It's a bit off topic but I know that you guys are the right persons to 
ask for advise.
And so I would like to ask if anybody has any suggestions for me. 
Maybe on books or articles or just in general.


Thanks in advanced

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

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


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

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




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

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

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

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


  



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

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


RE: [Flashcoders] Test

2007-03-23 Thread Joe Wheeler
Yup - but the list seems to be very slow today - My last posts took about
14hrs to come through 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Omar Fouad
Sent: 22 March 2007 23:16
To: Flashcoders mailing list
Subject: [Flashcoders] Test

Is this delivered???

--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Got milk? (the game)

2007-03-23 Thread nelson ramirez

anyone know the company behind the development?

On 3/22/07, Joe Wheeler <[EMAIL PROTECTED]> wrote:


That dice is cheaty! It's a dirty cheaty dice.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kerem
Iseri
Sent: 22 March 2007 19:25
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Got milk? (the game)

Really amazing game but i dont think there is hard programming behind it.
Maximum 2 developer can handle the coding. I think graphics and 3d's are
so
cool. It takes a lot of time to get these kind of qualified and optimized
renders. Its beautiful.

Respect!! :)

Kerem.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, March 22, 2007 4:16 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Got milk? (the game)

WOW!


http://www.gettheglass.com

How much time for this game project? How much developer?

C'est magnifique!

--
Laurent Untereiner

> skype : laurentuntereiner
> aim   : luntereiner
> icq   : 294429730
> msn   : [EMAIL PROTECTED]

> http://www.untereiner.com <

mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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

__ NOD32 1.1391 (20060201) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com


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

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

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

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


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

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


[Flashcoders] sandy on mac

2007-03-23 Thread Gustavo Duenas

is there somebody with flash sandy installed on mac with flash 8 ?
 I need to know how to point the path, because so far I have a lot  
of errors trying to run the simple box example (I'm using flash sandy  
1.1, I've used already the 1.2, without results so far).


someone  in the forum already told me that might be the path but using:

preferences, actionscript 2.0 settings and adding the path:

macintosh HD:applications:macromedia flash 8:sandy as path nothing  
happens, so if I missing something, please throw me a life saver, I'm  
drowning.


Regards



Gustavo Duenas

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

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


RE: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

2007-03-23 Thread Merrill, Jason
Hey thanks man - that explains maybe why my AS3 code completion isn't
working right in FlashDevelop.

Jason Merrill
Bank of America  
GT&O Learning & Leadership Development
eTools & Multimedia Team


 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf Of DannyT
>>Sent: Thursday, March 22, 2007 7:43 PM
>>To: flashcoders@chattyfig.figleaf.com
>>Subject: Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld
>>
>>Hi Jason,
>>
>>I wrote a simple tutorial for AS3 (and Flex2) in 
>>FlashDevelop, doesn't involve the FlashIDE but a good place 
>>to get started playing with AS3 and if you're interested in 
>>flex it covers the basics of that too. Also explains my setup 
>>for having an FD for AS2 and one for AS3.
>>
>>http://danny-t.co.uk/index.php/tutorials/free-flex2-developmen
>>t-environment/
>>
>>Hope it helps you or anyone.
>>
>>On 22/03/07, elibol <[EMAIL PROTECTED]> wrote:
>>>
>>> I should mention why I thought it was a width/height issue.
>>>
>>> UITextField and extending components (and some other components) in 
>>> the Flex framework initialize to a width/height of 0... It 
>>really took 
>>> me by surprise
>>> >.<
>>>
>>> On 3/22/07, elibol <[EMAIL PROTECTED]> wrote:
>>> >
>>> > I see,
>>> >
>>> > You need to add HelloWorld to the main DisplayList.
>>> >
>>> >
>>> > import MyPackage.*
>>> > var hw:HelloWorld = new HelloWorld();
>>> >
>>> > addChild(hw);
>>> >
>>> > On 3/22/07, elibol <[EMAIL PROTECTED]> wrote:
>>> > >
>>> > > Hi Jason,
>>> > >
>>> > > Try setting the width and the height of the Textfield.
>>> > >
>>> > >  
>>> > >
>>> > > On 3/22/07, Merrill, Jason 
>><[EMAIL PROTECTED]> wrote:
>>> > > >
>>> > > > Getting my feet wet with AS3, I just bought the AS3 
>>cookbook and
>>> have
>>> > > > learned a lot already - great book.  I feel like an 
>>idiot asking
>>> this
>>> > > > as
>>> > > > I'm pretty good in AS2, but with AS3, I'm not getting a simple
>>> script
>>> > > > working. I have the Flash 9 AS3 preview, trying to write a 
>>> > > > simple HelloWorld class (based on an example in the book) to 
>>> > > > show a
>>> > > > TextField:
>>> > > >
>>> > > > //MyPackage.as
>>> > > > package MyPackage
>>> > > > {
>>> > > > //do I actually need this one?:
>>> > > > import flash.display.DisplayObjectContainer;
>>> > > >
>>> > > > import flash.display.Sprite;
>>> > > > import flash.text.TextField;
>>> > > >
>>> > > > public class HelloWorld extends Sprite
>>> > > > {
>>> > > > public function HelloWorld()
>>> > > > {
>>> > > > var message_txt:TextField = 
>>new TextField();
>>> > > > message_txt.text = "Hello World";
>>> > > > addChild(message_txt);  
>>//does not show!
>>> > > > trace("constructor runs")//traces fine
>>> > > > }
>>> > > > }
>>> > > > }
>>> > > >
>>> > > > Then in the .fla, I put:
>>> > > >
>>> > > > import MyPackage.*
>>> > > > var hw:HelloWorld = new HelloWorld();
>>> > > >
>>> > > > The constructor traces fine in the output window, but the 
>>> > > > TextField does not show.  What have I done wrong?  My Export 
>>> > > > settings in F9 As3 preview are for AS 3.0 and FP9.  In later 
>>> > > > scripts, I tried moving the textfield, changing the color, 
>>> > > > changing the stage color to be sure it wasn't matching the 
>>> > > > textfield and this invisible, etc...(but it should 
>>show as black 
>>> > > > Times New Roman text by default anyway...)
>>> > > >
>>> > > > Thanks,
>>> > > >
>>> > > > Oh, and as a side note, I use FlashDevelop 2.0.1 and have my 
>>> > > > syntax set to AS3, but have notices code hinting 
>>doesn't always 
>>> > > > work or is sometimes incomplete - has anyone else 
>>noticed that?  
>>> > > > Maybe I just need to update it.
>>> > > >
>>> > > > Jason Merrill
>>> > > > Bank of America
>>> > > > GT&O Learning & Leadership Development eTools & 
>>Multimedia Team
>>> > > >
>>> > > >
>>> > > >
>>> > > > ___
>>> > > > Flashcoders@chattyfig.figleaf.com
>>> > > > To change your subscription options or search the archive:
>>> > > > http://chattyfig.figleaf.com/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
>>>
>>
>>
>>
>>-- 
>>http://danny-t.co.uk
>>___

[Flashcoders] Event calendar

2007-03-23 Thread natalia Vikhtinskaya

Hi to all
I should create event calendar. Can anybody give me some advices/links how I
can create that using xml?

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

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


Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

2007-03-23 Thread Rob Romanek

Hi Jason,

My packageTest.fla is

import MyPackage.*;
var hw:HelloWorld = new HelloWorld();
var mc:MyClass = new MyClass();

and in the same directory I have MyPackage.as

//MyPackage.as
package MyPackage
{

public class HelloWorld
{
public function HelloWorld()
{
trace("hello world constructor");
}
}

public class MyClass
{
public function MyClass()
{
trace("MyClass constructor");
}
}
}

In the windows Flash 9 Alpha IDE I try to run this and I get

**Error** Scene 1, Layer 'Layer 1', Frame 1 : Line 2, Column 8 :  
[Compiler] Error #1046: Type was not found or was not a compile-time  
constant: HelloWorld.

var hw:HelloWorld = new HelloWorld();
**Error** Scene 1, Layer 'Layer 1', Frame 1 : Line 3, Column 8 :  
[Compiler] Error #1046: Type was not found or was not a compile-time  
constant: MyClass.

var mc:MyClass = new MyClass();
ReferenceError: Error #1065: Variable  
Timeline0_f549bc2eccff3a4d88caed7024db465e is not defined.


This seems to me as if it should work. I don't know if it is the Flash IDE  
causing me grief, if there is some preference file I don't have set  
correctly or what.


Other than this issue I'm having a lot of fun with AS3 especially the new  
text features.


thanks,

Rob

On Thu, 22 Mar 2007 20:39:14 -0400, Merrill, Jason  
<[EMAIL PROTECTED]> wrote:



I have a question back at you along this example.
any insights why yours can run as MyPackage.as?


Do you start out your package as:

package MyPackage
{
//class definitions
}

and then import like this:

import MyPackage.*

?

That should work.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] font won't show up in menu after install and restart

2007-03-23 Thread moveup
Hi
I have an ongoing font issue in flash.
After installing a new font, and restarting Flash, the font DOES NOT show up in 
the menu.

However, an any other ADobe app, the font DOES show up.
Right now it is an issue with Trade Gothic.

Anyone eles experience this?


[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

"...all improvisation is life in search of a style."
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Compiling with self-reference

2007-03-23 Thread Hans Wichman

Hi,
you said:
restrictive not to be able to refer to a superclass within a subclass -
that's enforcing an arbitrary design principle.

But that's not what you are doing: you are referring to a subclass within a
superclass.

And with this "So it seems pretty reasonable to me that all my objects know
about all the other objects", although it might be reasonable, you are
increasing the complexity of your application. It easier when objects don't
know about each other, then when they know about each object.

In your example your superclass can no longer exist on its own. It MUST have
a subclass of a certain type. Believe me, that's weird, even for flash:)).

Your solution (adding another layer) spells coding horror to me. You tried
something to fool the compiler, and hey! it worked!.

Compare:
class Animal {
   private var isEatenBy:Animal;
}

class Cat extends Animal {
.
}

class Bird Extends Animal {
  function Bird() {
isEatenBy = new Cat();
}
}

with:
class Animal {
   private var isEatenBy:Cat;
}

class Cat extends Animal {
///WHOOPS problem here, since isEatenBy is of type Cat i cannot put a big
dog or car here
}

class Bird Extends Animal {
  function Bird() {
isEatenBy = new Cat();  //this still works ofcourse, since its the only case
that will work
}
}

greetz
JC




On 3/22/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:



> Danny Kodicek wrote:
> > It's a shame: My object structure has a bunch of objects in a tree
> > structure, all of which inherit the same base class. I'd
> like them all
> > to have a reference to the top-level node object, but I
> have to refer
> > to it as an Object instead of its actual class name because
> otherwise
> > it can't compile.
> >
> You are mixing Classes and Instances. Classes inherit
> properties and methods from other classes.
> How the instances are linked together at execution time is
> another matter.

Well, not really. I may use the words 'class' and 'object' interchangeably
on occasion, but I'm quite aware of the distinction. Classes have
properties, instances give those properties values, classes define the
kinds
of data those values can take.

I don't think my example is that odd, really. It seems unnecessarily
restrictive not to be able to refer to a superclass within a subclass -
that's enforcing an arbitrary design principle.

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Re: attachMovie vs createClassObject

2007-03-23 Thread Andy Herrman

Just to amend my previous comment, in the case where I said
`createClassObject()` failed but `attachMovie()` didn't, that ended up
to be not quite true.  `createClassObject()` didn't do anything, but
`attachMovie()` created the visual portions of the clip, but it looks
like none of the component's code was actually loaded, so while it
appeared to be working it really wasn't.

But in the cases where one works the other seems to work as well, so
I'm still wondering what the difference is.

  -Andy

On 3/20/07, Andy Herrman <[EMAIL PROTECTED]> wrote:

I'm wondering if there are any significant differences between using
`attachMovie()` and `createClassObject()` for creating components (I'm
targeting for Flash 7).  I just ran into a weird issue creating a
ComboBox where I was using `createClassObject()` to instantiate it,
but saw that elsewhere in the code it was using `attachMovie()` to
create one, and both were working.

Specifically, both this:
mc.attachMovie("ComboBox", "myComboBox", mc.getNextHighestDepth());
and this:
mc.createClassObject(ComboBox, "myComboBox", mc.getNextHighestDepth());

seems to give the same results in most cases.  Is there any benefit to
using `createClassObject()` over `attachMovie()` for components?

The one situation I ran into where it gives different results is when
using multiple SWFs from different places.  I have a main movie which
loads another movie that contains all the UI resources (makes branding
easier).  The UI resources movie contains the ComboBox in its library.
 If both the movies are on the local filesystem then it works fine,
but if the resources SWF is on a remote web server the
`createClassObject()` call fails.  However, if I change it to use
`attachMovie()` it works fine.  So I'm leaning towards using
`attachMovie()`, just to make my life easier for testing (don't have
to upload the main movie every time I want to test it), but I'm
wondering if that will cause issues later.

   -Andy


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 - Installing PHP, MySQL?

2007-03-23 Thread Dave Mennenoh
Thanks everyone. Both WAMP and XAMPP say they are for testing only, and 
should not be used for production - which is of course what I need. This 
will be on IIS, so hopefully it will be doable. I guess I'll attempt 
installing first and see how it goes.




Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 crashing dilemna - when adding an input textfield

2007-03-23 Thread Paul Steven
Thanks Ray

The game actually crashes now the first time it is played. I am still trying
to narrow down the problem. Game works fine as a standalone swf but when
loaded into the container movie, the game crashes if the user types into the
input field. In fact all it takes is to click on the input field and give it
focus.

The container movie has various shared movie assets such as buttons. If I
strip all the shared movie assets out of the container movie, the game does
not crash. However there are no scripts in these shared movie assets, they
are simply graphics.

It all seems bizarre!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Omar Fouad
Sent: 22 March 2007 23:15
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash crashing dilemna - when adding an input
textfield

be sure you are resetting the initial settings when the game restarts, if
not probabily the application will RELOAD things that makes it unstable

On 3/22/07, Ray Chuan <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> there's no code to work with here, but i would guess it's a
> recursive/infinite loop problem.
>
> Are there any handlers hooked up to that particular text field?
>
> On 3/22/07, Paul Steven <[EMAIL PROTECTED]> wrote:
> > I have a really weird "bug" going on in a game I am making. Game is
> > developed in Flash 8 PC. (Published Flash 8 Actionscript 2)
> >
> > My game was crashing the second time I played it so I have spent the
> last
> > day and a half tracking down the cause.
> >
> > I have narrowed it down to a text input field. This is where the user
> enters
> > their name if they get a high score. If a user goes to this screen
> before
> > playing the game a second time, then a few seconds into playing the game
> the
> > second time, the game hangs with an error saying a script in this movie
> is
> > causing the flash player to run slow or something to that effect which
> > requires me to choose to stop this script. The game often hangs at this
> > stage and I have to force quit Flash.
> >
> > If they do not get a high score they do not go to this frame of the
> flash
> > movie with the text input field and playing the game a second time does
> not
> > cause it to crash.
> >
> > I have tried recreating this text input field, changing the font,
> changing
> > the instance name but still seems to cause the game to hang on playing
> it a
> > second time.
> >
> > If anyone has any idea why this is happening or how I can determine what
> > script is causing the error, I would be extremely grateful.
> >
> > Thanks
> >
> > Paul
> >
> >
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
>
>
> --
> Cheers,
> Ray Chuan
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



-- 
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] QT in IE returning null value to flash

2007-03-23 Thread elibol

Hey Bob,

Try "window.movie1" for IE.


On 3/20/07, Bob Wohl <[EMAIL PROTECTED]> wrote:


Hello all,


I've researched quite a bit over the past week to no avail on how in
IE i get a return of null when pulling the time from a QT file but in
FireFox i get the proper time...


flash call -
myTime = ExternalInterface.call("DisTime", "document.movie1");


js -
function DisTime(anObj){
   var obj = eval(anObj);
  return obj.GetTime();
   }


seems simple enough but I cannot for the life of me find out why IE
sees it as null.

Any ideas, pointers?


Thanks!
Bob
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Test

2007-03-23 Thread Danny Kodicek
 
> Is this delivered???

'ello

D

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Help: test EventDispatcher speed please

2007-03-23 Thread iiley

Good analyzing!!!

Francis, i think you can change EventBroadcaster to use for(var i in array)
to make a new test demo, then, we can test again, if the new result views
that EventBroadcaster runs as slow as EventDispatcher on Mac, then, it will
be clear?  hmmm...


2007/3/22, Brian Williams <[EMAIL PROTECTED]>:


Someone already mentioned what it is - the for in loop vs the straight for
loop.

for (var i in array) ends up pushing all the keys of the array on the
stack,
and then popping those off.

for (var i =0; i< array.length; i++) doesn't.

The test attaches 500 listeners to each dispatcher, so when you use the
for
(var i in array), you're pushing quite a few items on the stack, and it's
possible that the mac flash player has slower stack access, or that that
particular opcode is significantly slower.

Note - the eventdispatcher code uses the for (var i in array) explicitly
so
that if a listener is removed from the array while dispatching an event
that
it still dispatches to all listeners.  Be careful if you try to just
change
the loop.

Also, why would you have 500 listeners to one broadcaster?  The vast
majority of the UI code that I've dealt with has 0-2 listeners.  The
difference between the two might be a lot smaller in that case.

--Brian


--
iiley
AsWing http://www.aswing.org
Personal http://www.iiley.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] Got milk? (the game)

2007-03-23 Thread Alias™

Cheaty as in "produces insufficiently randomised numbers" or cheaty as
in "not utilising proper 3d/physics"?

Because I was wondering about that...

Alias

On 23/03/07, Joe Wheeler <[EMAIL PROTECTED]> wrote:

That dice is cheaty! It's a dirty cheaty dice.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kerem Iseri
Sent: 22 March 2007 19:25
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Got milk? (the game)

Really amazing game but i dont think there is hard programming behind it.
Maximum 2 developer can handle the coding. I think graphics and 3d's are so
cool. It takes a lot of time to get these kind of qualified and optimized
renders. Its beautiful.

Respect!! :)

Kerem.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, March 22, 2007 4:16 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Got milk? (the game)

WOW!


http://www.gettheglass.com

How much time for this game project? How much developer?

C'est magnifique!

--
Laurent Untereiner

> skype : laurentuntereiner
> aim   : luntereiner
> icq   : 294429730
> msn   : [EMAIL PROTECTED]

> http://www.untereiner.com <

mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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

__ NOD32 1.1391 (20060201) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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] OT - Installing PHP & MySQL on a remote server

2007-03-23 Thread Gustavo Duenas
I did the installation of php and mysql in my computer(mac) using the  
terminal, but when I learned, I did it on linux, so it is not much  
different in both, but in windows I guess in php.org or mysql.org,  
there is the
.exe files to install the programs. In mac and linux wasn't much  
different in both the compiler tells you what is wrong and what you  
might need, I don't have any clues in windows systems, but go through  
their websites , they have a lot of tutorials there about how to  
install over multiple systems and in remote servers. First you'll  
need shell access (ssh) and root access, then you could  install it,  
using the files you previously have downloaded/uploaded.





Regards


Gustavo Duenas


On Mar 22, 2007, at 2:42 PM, Dave Mennenoh wrote:

Sorry if this ends up coming through twice, but I sent it 2.5 hours  
ago and it hasn't reached the list yet.


Anyone have any experience in this area? We're developing a Flash  
site for a
new client, who keeps all their own web servers in-house. They are  
MS house
using .net and such. They are setting up a new server just for  
their new
site, and since they are not familiar with PHP or MySQL (which is  
what we
develop with) they are asking us to install them. They will give us  
remote

access to the server...

How hard / not-hard is it to install PHP and MySQL on a remote server?
Anything to be weary of? Is it something I should just skip  
attempting and

hire an IT guy to do it?




Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.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] Trouble getting _x position

2007-03-23 Thread Lee Marshall
Hi all

Just trying to create a box in actionscript into an empty movieclip. I
then wanted to reurn the _x postion of the box, but it's just not
happening for me. Here is my code. Any ideas?

Cheers all


Stage.scaleMode = "scale";
Create a box to encapsulate the loader indicator
var bW:Number = 200;//Width of loader
var bH:Number = 8;//Height of loader
var bLC:Number = 0x77;//Colour of loader box
var bFC:Number = 0xFF;//Fill colour of loader box
var inC:Number = 0x4654FF;//Fill colour of indicator
var loaderBox_mc:MovieClip = this.createEmptyMovieClip("loaderBox_mc",
this.getNextHighestDepth());
loaderBox_mc.beginFill(bFC, 100);
loaderBox_mc.lineStyle(1, bLC, 100);
loaderBox_mc.moveTo((Stage.width/2)-bW/2, (Stage.height/2)-bH/2);
loaderBox_mc.lineTo((Stage.width/2)+bW/2, (Stage.height/2)-bH/2);
loaderBox_mc.lineTo((Stage.width/2)+bW/2, (Stage.height/2)+bH/2);
loaderBox_mc.lineTo((Stage.width/2)-bW/2, (Stage.height/2)+bH/2);
loaderBox_mc.moveTo((Stage.width/2)-bW/2, (Stage.height/2)-bH/2);
loaderBox_mc.endFill();
trace(loaderBox_mc._x)

 

Lee Marshall.
Senior Media Designer/Developer

Transart Educational Marketing Systems 
Clare Hall
Parsons Green
St Ives Business Park
St Ives
Cambridgeshire PE27 4WY

Tel Direct Dial: +44(0)1480 499213
Tel General Enquiries: +44(0)1480 499200
Fax: +44(0)1480 499201
email: [EMAIL PROTECTED]  
web: www.transart.co.uk  

Confidentiality notice:
Please note that the information contained herein is highly confidential
and may also be privileged and is for the named recipient(s) only, on no
account should any part or details be disclosed to any third party
without the prior written consent of Transart.  In the event that you
are not the intended recipient then please delete it and any copies that
you have made and contact me on the above number.
 
General statement:
Any statements made, or intentions expressed in this communication may
not necessarily reflect the view of Transart.  Be advised that no
content herein may be held binding upon Transart or any associated
company unless confirmed by the issuance of a formal contractual
document or purchase order.

 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Initializing .net CookieContainer from Flash

2007-03-23 Thread Nazree Bakar

Hi everyone,

I would like to find out resources / examples that allows a developer to
instantiate a .net cookie from the CookieContainer() class.

Adding on to that, is there any way of doing this without running the flash
file in a .aspx page (i.e, compiling the .swf to an exe using zinc and using
the exe to instantiate the cookie)

Thanks,
Nazree
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Got milk? (the game)

2007-03-23 Thread Matthias Dittgen

And there's too much preloading which lasts too long, even with fast DSL.
That's annoying.
The big plus for this game is the idea.

2007/3/22, Kerem İşeri <[EMAIL PROTECTED]>:

Really amazing game but i dont think there is hard programming behind it.
Maximum 2 developer can handle the coding. I think graphics and 3d's are so
cool. It takes a lot of time to get these kind of qualified and optimized
renders. Its beautiful.

Respect!! :)

Kerem.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, March 22, 2007 4:16 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Got milk? (the game)

WOW!


http://www.gettheglass.com

How much time for this game project? How much developer?

C'est magnifique!

--
Laurent Untereiner

> skype : laurentuntereiner
> aim   : luntereiner
> icq   : 294429730
> msn   : [EMAIL PROTECTED]

> http://www.untereiner.com <

mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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

__ NOD32 1.1391 (20060201) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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 crashing dilemna - when adding an input textfield

2007-03-23 Thread Paul Steven
Here is a link to the game so you can see the problem.

There is a text input field on the intro screen. If you type into it, the
game will crash, if you don't then it doesn't crash.

http://www.mediakitchen.co.uk/Game_pizza.html

Hopefully someone can suggest a possible cause.

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ray Chuan
Sent: 22 March 2007 14:55
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash crashing dilemna - when adding an input
textfield

Hi,

there's no code to work with here, but i would guess it's a
recursive/infinite loop problem.

Are there any handlers hooked up to that particular text field?

On 3/22/07, Paul Steven <[EMAIL PROTECTED]> wrote:
> I have a really weird "bug" going on in a game I am making. Game is
> developed in Flash 8 PC. (Published Flash 8 Actionscript 2)
>
> My game was crashing the second time I played it so I have spent the last
> day and a half tracking down the cause.
>
> I have narrowed it down to a text input field. This is where the user
enters
> their name if they get a high score. If a user goes to this screen before
> playing the game a second time, then a few seconds into playing the game
the
> second time, the game hangs with an error saying a script in this movie is
> causing the flash player to run slow or something to that effect which
> requires me to choose to stop this script. The game often hangs at this
> stage and I have to force quit Flash.
>
> If they do not get a high score they do not go to this frame of the flash
> movie with the text input field and playing the game a second time does
not
> cause it to crash.
>
> I have tried recreating this text input field, changing the font, changing
> the instance name but still seems to cause the game to hang on playing it
a
> second time.
>
> If anyone has any idea why this is happening or how I can determine what
> script is causing the error, I would be extremely grateful.
>
> Thanks
>
> Paul
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


-- 
Cheers,
Ray Chuan
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Re: How to find dimensions of my own component, resized in auth. env.?

2007-03-23 Thread Alexander Farber

I've added a trace(width, _xscale) in each function and the
value I'm after is shown in the first size() call, but then it is
back to thr original width of 160 and scale of 100%, why?

size width=400, 249.998474121094
init width=160, 100
createChildren width=160, 100
size width=160, 100
draw width=160, 100


On 3/23/07, Alexander Farber <[EMAIL PROTECTED]> wrote:

I have a simple component, it is a multiline TextField with wordWrap
switched on and with a yellow rectangle drawn underneath:

   http://preferans.de/flash/ - the files Bubble.*

I'd like the users of my component to be able to resize its width in the
authoring environment, so that they can control where the word wrap
will happen. However I can't figure out how to find out that width.



Regards
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] Tile a vector Graphic symbol across stage horizontally?

2007-03-23 Thread Micky Hulse
FP8: What would be the best way to tile a vector graphic symbol 
horizontally across the stage using AS?


I have used beginBitmapFill() for a bitmap, and that works well... but 
what would be the best way to programatically tile a graphic symbol?


Any tips/rtfm's/links would be great!

Thanks,
Cheers,
Micky

--
Wishlists: 
   Switch: 
 BCC?: 
   My: 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 crashing dilemna - when adding an input textfield

2007-03-23 Thread Alexander Farber

Hello, here an idea from a total newbie - do you catch
any keystrokes (like for controlling your player character)?

On 3/22/07, Paul Steven <[EMAIL PROTECTED]> wrote:

Basically the game crashes if I type into a text input field. If I do not
then it doesn't.


Regards
Alex

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

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


RE: [Flashcoders] Using JSFL with AS files

2007-03-23 Thread Danny Kodicek
 > What do you mean specifically?

I mean editing AS with JSFL. I'm getting frustrated with not being able to
do a search and replace on multiple files, so I was going to write a tool to
do it with JSFL - unfortunately, it seems only to work with FLA files, not
AS.

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 JavaScript Integration Kit Issues

2007-03-23 Thread Muzak
Are you running this in a browser from the desktop or in a browser from a 
(local) server?

If in a browser from the desktop, you need to set 'permissions'.

http://www.adobe.com/devnet/flash/articles/external_interface_print.html
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4c093f20

You'll have to add the swf file or the directory it resides in to the trusted 
files in the "Global Security Settings Panel"
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

These restrictions/settings do not apply when running the html+swf through a 
web server.

regards,
Muzak

- Original Message - 
From: "Steve Mathews" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, March 22, 2007 11:27 PM
Subject: Re: [Flashcoders] Flash JavaScript Integration Kit Issues


Thanks for the ideas. Unfortunately after further investigation it
appears that communication from JavaScript -> Flash is working fine,
but making calls from Flash to JavaScript are getting lost. So the
Flash code runs, then attempts to do a callback into JavaScript and
nothing happens (no JavaScript error either).



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 crashing dilemna - when adding an input textfield

2007-03-23 Thread Paul Steven
I forgot to mention, it all works fine when the game flash movie is run on
its own. The problem occurs when it is loaded into a container flash movie.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ray Chuan
Sent: 22 March 2007 14:55
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash crashing dilemna - when adding an input
textfield

Hi,

there's no code to work with here, but i would guess it's a
recursive/infinite loop problem.

Are there any handlers hooked up to that particular text field?

On 3/22/07, Paul Steven <[EMAIL PROTECTED]> wrote:
> I have a really weird "bug" going on in a game I am making. Game is
> developed in Flash 8 PC. (Published Flash 8 Actionscript 2)
>
> My game was crashing the second time I played it so I have spent the last
> day and a half tracking down the cause.
>
> I have narrowed it down to a text input field. This is where the user
enters
> their name if they get a high score. If a user goes to this screen before
> playing the game a second time, then a few seconds into playing the game
the
> second time, the game hangs with an error saying a script in this movie is
> causing the flash player to run slow or something to that effect which
> requires me to choose to stop this script. The game often hangs at this
> stage and I have to force quit Flash.
>
> If they do not get a high score they do not go to this frame of the flash
> movie with the text input field and playing the game a second time does
not
> cause it to crash.
>
> I have tried recreating this text input field, changing the font, changing
> the instance name but still seems to cause the game to hang on playing it
a
> second time.
>
> If anyone has any idea why this is happening or how I can determine what
> script is causing the error, I would be extremely grateful.
>
> Thanks
>
> Paul
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


-- 
Cheers,
Ray Chuan
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 crashing dilemna - when adding an input textfield

2007-03-23 Thread Paul Steven
Thanks for the reply

Yes it looks like is a recursive loop problem but I am not sure how to
detect what this loop is. 

There are no handlers hooked up to the text field. It is simply a text input
field and there is a button that when pressed, it sets a variable name
called "username" to the value of the text entered.

All it takes to make the game crash is to type one character into the text
field. If I do not type anything, the variable is set to "Player" as a
default and the game does not crash. But typing even just one character
causes the game to crash.

The only reference to keys in the game is this handler

// 
// check_key_status
// 

function check_key_status() {   

boolKeyUp = Key.isDown(38);
boolKeyDown = Key.isDown(40);
boolKeyLeft = Key.isDown(37);
boolKeyRight = Key.isDown(39);


}

This is called within a game loop function

i.e

this.onEnterFrame = function() {

check_key_status();

}

There are no other references to key input.

It seems very bizarre!!



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ray Chuan
Sent: 22 March 2007 14:55
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash crashing dilemna - when adding an input
textfield

Hi,

there's no code to work with here, but i would guess it's a
recursive/infinite loop problem.

Are there any handlers hooked up to that particular text field?

On 3/22/07, Paul Steven <[EMAIL PROTECTED]> wrote:
> I have a really weird "bug" going on in a game I am making. Game is
> developed in Flash 8 PC. (Published Flash 8 Actionscript 2)
>
> My game was crashing the second time I played it so I have spent the last
> day and a half tracking down the cause.
>
> I have narrowed it down to a text input field. This is where the user
enters
> their name if they get a high score. If a user goes to this screen before
> playing the game a second time, then a few seconds into playing the game
the
> second time, the game hangs with an error saying a script in this movie is
> causing the flash player to run slow or something to that effect which
> requires me to choose to stop this script. The game often hangs at this
> stage and I have to force quit Flash.
>
> If they do not get a high score they do not go to this frame of the flash
> movie with the text input field and playing the game a second time does
not
> cause it to crash.
>
> I have tried recreating this text input field, changing the font, changing
> the instance name but still seems to cause the game to hang on playing it
a
> second time.
>
> If anyone has any idea why this is happening or how I can determine what
> script is causing the error, I would be extremely grateful.
>
> Thanks
>
> Paul
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


-- 
Cheers,
Ray Chuan
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 crashing dilemna - when adding an input text field

2007-03-23 Thread Omar Fouad

be sure you are resetting the initial settings when the game restarts, if
not probabily the application will RELOAD things that makes it unstable

On 3/22/07, Ray Chuan <[EMAIL PROTECTED]> wrote:


Hi,

there's no code to work with here, but i would guess it's a
recursive/infinite loop problem.

Are there any handlers hooked up to that particular text field?

On 3/22/07, Paul Steven <[EMAIL PROTECTED]> wrote:
> I have a really weird "bug" going on in a game I am making. Game is
> developed in Flash 8 PC. (Published Flash 8 Actionscript 2)
>
> My game was crashing the second time I played it so I have spent the
last
> day and a half tracking down the cause.
>
> I have narrowed it down to a text input field. This is where the user
enters
> their name if they get a high score. If a user goes to this screen
before
> playing the game a second time, then a few seconds into playing the game
the
> second time, the game hangs with an error saying a script in this movie
is
> causing the flash player to run slow or something to that effect which
> requires me to choose to stop this script. The game often hangs at this
> stage and I have to force quit Flash.
>
> If they do not get a high score they do not go to this frame of the
flash
> movie with the text input field and playing the game a second time does
not
> cause it to crash.
>
> I have tried recreating this text input field, changing the font,
changing
> the instance name but still seems to cause the game to hang on playing
it a
> second time.
>
> If anyone has any idea why this is happening or how I can determine what
> script is causing the error, I would be extremely grateful.
>
> Thanks
>
> Paul
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


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

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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

2007-03-23 Thread Merrill, Jason
>>I have a question back at you along this example.
>>any insights why yours can run as MyPackage.as?

Do you start out your package as: 

package MyPackage
{
//class definitions
}

and then import like this:

import MyPackage.*

?

That should work. 

>>if I change the name of the .as file to
>>HelloWorld.as
>>then all works fine

Yeah, I think it will still drill down and look for a class with the
same name if it doesn't find a package of the same name as the file. You
wouldn't want to name your files the same name as the class though...
the package file can contain multiple classes.


Jason Merrill
Bank of America  
GT&O Learning & Leadership Development
eTools & Multimedia Team


 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Rob Romanek
>>Sent: Thursday, March 22, 2007 3:33 PM
>>To: flashcoders@chattyfig.figleaf.com
>>Subject: Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld
>>
>>Try adding this to your fla
>>
>>addChild(hw);
>>
>>In your HelloWorld class you've added your textField inside 
>>but since you have added you HelloWorld() object to the 
>>display list of the movie it will never get drawn.
>>

>>
>>my.fla
>>[MyPackage]
>>MyPackage.as (with the HelloWorld class)
>>
>>using the code in the fla I never get HelloWorld to properly 
>>initiate.  
>>Instead I get an error
>>**Error** Scene 1, Layer 'Layer 1', Frame 1 : Line 2, Column 8 :  
>>[Compiler] Error #1046: Type was not found or was not a compile-time
>>constant: HelloWorld.
>>var hw:HelloWorld = new HelloWorld();
>>
>>if I change the name of the .as file to
>>HelloWorld.as
>>then all works fine
>>
>>any insights why yours can run as MyPackage.as?
>>
>>Rob
>>
>>On Thu, 22 Mar 2007 09:08:45 -0400, Merrill, Jason 
>><[EMAIL PROTECTED]> wrote:
>>
>>> //MyPackage.as
>>> package MyPackage
>>> {
>>> //do I actually need this one?:
>>> import flash.display.DisplayObjectContainer;
>>>
>>> import flash.display.Sprite;
>>> import flash.text.TextField;
>>> 
>>> public class HelloWorld extends Sprite
>>> {
>>> public function HelloWorld()
>>> {
>>> var message_txt:TextField = new TextField();
>>> message_txt.text = "Hello World";
>>> addChild(message_txt);  //does not show!
>>> trace("constructor runs")//traces fine
>>> }
>>> }
>>> }
>>>
>>> Then in the .fla, I put:
>>>
>>> import MyPackage.*
>>> var hw:HelloWorld = new HelloWorld();
>>>
>>> The constructor traces fine in the output window, but the TextField 
>>> does not show.  What have I done wrong?  My Export settings 
>>in F9 As3 
>>> preview are for AS 3.0 and FP9.  In later scripts, I tried 
>>moving the 
>>> textfield, changing the color, changing the stage color to 
>>be sure it 
>>> wasn't matching the textfield and this invisible, 
>>etc...(but it should 
>>> show as black Times New Roman text by default anyway...)
>>>
>>
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/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] OnMouseWheel Issue....

2007-03-23 Thread Latcho

---
var Mickey=new Object()

function activeWheel(){
   Mouse.addListener(Mickey)
   Mickey.onMouseWheel = function (delta) {
   trace("Mickey Mouse:"+delta)
   }
}

activeWheel()


Omar Fouad wrote:

Hi List..
I am writing a class and inside this class, i got a this method


private function wheel() {

 mList.onMouseWheel = function (delta) {
  trace("Using wheel");
 }
 Mouse.addListener(mList);
   //mList is declared as an object outside the Method
}
I dont know why but it iseems that it is not listening to the wheel as 
in it

doesnt trace me back "using wheel"

what is the problem?? Am i doing something wrong?


Thanks so much


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] scaling external jpgs or pngs

2007-03-23 Thread Omar Fouad

When u scale any Picture in flash from big to smaller, its edges get
jagged It does not depend on it's format such as JPEG or GIF or even
PNG You just will have to draw a bitmap data in a movieClip, from the
movieClip that Contains the Picture u need to scale... In This Way the
picture would show perfect...

See the Flash documentation, about BitmapData

Good Luck


On 3/21/07, Muzak <[EMAIL PROTECTED]> wrote:


http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html

- Original Message -
From: "Carl Welch" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, March 21, 2007 1:17 AM
Subject: [Flashcoders] scaling external jpgs or pngs


> Hi coders,
>
> When down-scaling external (loadMovie) images, It there a secret way to
do
> it without making the image look jagged? Do pngs scale better than jpgs?
>
> Thanks.
>
> --
> Carl Welch


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

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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] https with sendAndLoadVars

2007-03-23 Thread tommek
Hello people,

I am trying to use https call with sendAndLoadVars from a stand alone
flash exe. http works but https doesn't

I have read :

HTTPS/HTTP restriction A SWF file that loads using nonsecure (non-HTTPS)
protocols cannot access content loaded using a secure (HTTPS) protocol,
even when both protocols are in exactly the same domain.


Is it posible to make https calls form the exe, and if so what do i have
to do to achive this.

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


RE: [Flashcoders] QT in IE returning null value to flash

2007-03-23 Thread Joe Wheeler
Does the object tag have the id "movie1" (not just the embed tag)? 

Also, how are embedding the movie, I could be wrong but it think the stoopid
active-x activation thing causes problems - try using UFO or SWFObject to
embed the movie.

The other thing you could try is writing the JS function from inside flash -
For example,  I use this quite a lot to get the page url:

response = ExternalInterface.call( "function(){return
document.location.href;}" );


J

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman
Sent: 22 March 2007 16:24
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] QT in IE returning null value to flash

Hm.  I haven't used ExternalInterface at al (I'm stuck with Flash 7), so I'm
not really sure what the problem could be.  Though you might be able to do
it as a callback (have the javascript function call some function in your
Flash movie to give it the value).  The control flow for that would be a bit
odd, but it might work if you can't get it to return correctly.

  -Andy

On 3/20/07, Bob Wohl <[EMAIL PROTECTED]> wrote:
> yeah, I can alert the value (real fun with a set interval =P). Just 
> getting it from JS seems to be the issue.
>
> yep, QuickTime, their documentation rocks for javascript ;)
>
>
>
>
> Bob
>
> On 3/20/07, Andy Herrman <[EMAIL PROTECTED]> wrote:
> > Have you tried getting the value out using just Javascript (no Flash 
> > involved)?  See if that works.  It might make it easier to debug 
> > (removing a layer of complexity).  Maybe IE has some security in 
> > place that's preventing the access of the values from QT (you mean 
> > quicktime?  I always think of QT as the C++ toolset made by
> > trolltech.)
> >
> >-Andy
> >
> > On 3/20/07, Bob Wohl <[EMAIL PROTECTED]> wrote:
> > > Hello all,
> > >
> > >
> > > I've researched quite a bit over the past week to no avail on how 
> > > in IE i get a return of null when pulling the time from a QT file 
> > > but in FireFox i get the proper time...
> > >
> > >
> > > flash call -
> > > myTime = ExternalInterface.call("DisTime", "document.movie1");
> > >
> > >
> > > js -
> > > function DisTime(anObj){
> > >var obj = eval(anObj);
> > >   return obj.GetTime();
> > >}
> > >
> > >
> > > seems simple enough but I cannot for the life of me find out why 
> > > IE sees it as null.
> > >
> > > Any ideas, pointers?
> > >
> > >
> > > Thanks!
> > > Bob
> > > ___
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > Brought to you by Fig Leaf Software Premier Authorized Adobe 
> > > Consulting and Training http://www.figleaf.com 
> > > http://training.figleaf.com
> > >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training 
> > http://www.figleaf.com http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


Re: [Flashcoders] Nice Water Effect [site]

2007-03-23 Thread Roque Castillo
Lincoln,
   
  Here is the file:
  http://www.wagnerpaula.com/water/index.swf
   
  and with the proper software (from Sothink) you could take a look at the 
source.
  In any case, please give the author of this interesting site the proper 
respect.
   
  Rocas

lincoln <[EMAIL PROTECTED]> wrote:
  Does anyone have source for such a thing? That's wonderful! I'd love 
to see how it was done.

cheers,
lincoln


On Mar 20, 2007, at 5:42 AM, Adrian MacTaggart wrote:

> Charming!
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Mauricio
> Furtado Massaia
> Sent: 20 March 2007 12:11
> To: Flashcoders mailing list
> Subject: [Flashcoders] Nice Water Effect [site]
>
> Hi,
>
> Check this site , it has a pretty nice water effect that you can write
> and
> save XD
>
> http://www.wagnerpaula.com/water/
>
> Hugs
>
> MauricioMassaia
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __
>
>
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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


 
-
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Enhancing the Flash Cursor

2007-03-23 Thread Omar Fouad

In this site, Mouse is set to hide = true, and replaced with an arrow that
change it's orientation from left to right and viceversa...
Most commonly this is set adding also an updateAfterEvent method.. This one,
should give you more performance as in will get less cpu activity, but not
sure, just try

Good Luck


On 3/22/07, Perdue, Blake <[EMAIL PROTECTED]> wrote:


I am building a photo slideshow and I want to add a next/back button to
the mouse cursor. If the mouse is on the right half of the screen, it
displays a right arrow (indicating that onclick, it will load the next
photo). When on the left half, it displays a left arrow (onclick loads
the previous photo).

My question is this: is there a better way to do this than using
onMouseMove and onMouseDown event handlers? My code is below. Adding
these event handlers is making my SWF eat up 20% more of the CPU
resources. Is there a less processor intensive method of achieving this?
A Group94 site seems to do a good job of this without hogging CPU
cycles: http://www.schierke.com/home.php?p=


// w=screenWidth

onMouseMove=function() {
   arrowL._x=_xmouse-14;
   arrowL._y=_ymouse+4;
   arrowR._x=_xmouse+14;
   arrowR._y=_ymouse+4;
   if (_xmousehttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

2007-03-23 Thread DannyT

Hi Jason,

I wrote a simple tutorial for AS3 (and Flex2) in FlashDevelop, doesn't
involve the FlashIDE but a good place to get started playing with AS3 and if
you're interested in flex it covers the basics of that too. Also explains my
setup for having an FD for AS2 and one for AS3.

http://danny-t.co.uk/index.php/tutorials/free-flex2-development-environment/

Hope it helps you or anyone.

On 22/03/07, elibol <[EMAIL PROTECTED]> wrote:


I should mention why I thought it was a width/height issue.

UITextField and extending components (and some other components) in the
Flex
framework initialize to a width/height of 0... It really took me by
surprise
>.<

On 3/22/07, elibol <[EMAIL PROTECTED]> wrote:
>
> I see,
>
> You need to add HelloWorld to the main DisplayList.
>
>
> import MyPackage.*
> var hw:HelloWorld = new HelloWorld();
>
> addChild(hw);
>
> On 3/22/07, elibol <[EMAIL PROTECTED]> wrote:
> >
> > Hi Jason,
> >
> > Try setting the width and the height of the Textfield.
> >
> >  
> >
> > On 3/22/07, Merrill, Jason <[EMAIL PROTECTED]> wrote:
> > >
> > > Getting my feet wet with AS3, I just bought the AS3 cookbook and
have
> > > learned a lot already - great book.  I feel like an idiot asking
this
> > > as
> > > I'm pretty good in AS2, but with AS3, I'm not getting a simple
script
> > > working. I have the Flash 9 AS3 preview, trying to write a simple
> > > HelloWorld class (based on an example in the book) to show a
> > > TextField:
> > >
> > > //MyPackage.as
> > > package MyPackage
> > > {
> > > //do I actually need this one?:
> > > import flash.display.DisplayObjectContainer;
> > >
> > > import flash.display.Sprite;
> > > import flash.text.TextField;
> > >
> > > public class HelloWorld extends Sprite
> > > {
> > > public function HelloWorld()
> > > {
> > > var message_txt:TextField = new TextField();
> > > message_txt.text = "Hello World";
> > > addChild(message_txt);  //does not show!
> > > trace("constructor runs")//traces fine
> > > }
> > > }
> > > }
> > >
> > > Then in the .fla, I put:
> > >
> > > import MyPackage.*
> > > var hw:HelloWorld = new HelloWorld();
> > >
> > > The constructor traces fine in the output window, but the TextField
> > > does
> > > not show.  What have I done wrong?  My Export settings in F9 As3
> > > preview
> > > are for AS 3.0 and FP9.  In later scripts, I tried moving the
> > > textfield,
> > > changing the color, changing the stage color to be sure it wasn't
> > > matching the textfield and this invisible, etc...(but it should show
> > > as
> > > black Times New Roman text by default anyway...)
> > >
> > > Thanks,
> > >
> > > Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax
> > > set
> > > to AS3, but have notices code hinting doesn't always work or is
> > > sometimes incomplete - has anyone else noticed that?  Maybe I just
> > > need
> > > to update it.
> > >
> > > Jason Merrill
> > > Bank of America
> > > GT&O Learning & Leadership Development
> > > eTools & Multimedia Team
> > >
> > >
> > >
> > > ___
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/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





--
http://danny-t.co.uk
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] PHP book recommendations

2007-03-23 Thread Hairy Dog Digital

> Save your money and point your browser at: www.php.net

Yeah, know about that, but I'm a book hog and it gives my admin one more
thing to keep track of for me.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Test

2007-03-23 Thread Omar Fouad

Is this delivered???

--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: Re: [Flashcoders] Resizing sw, dependently on screen resolution

2007-03-23 Thread Omar Fouad

in addition to Stage.scaleMode = "noScale";
U'll be needing to allign some objects on the stage by using the
Stage.height and Stage.width getters methods...


On 3/18/07, Nicola Alexander Schlup - LuniLogic <[EMAIL PROTECTED]> wrote:


Thanks a lot Andy, that was exactly what I needed :-).
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 crashing dilemna - when adding an inputtextfield

2007-03-23 Thread Joe Wheeler
That error is usually caused by an infinite loop. Are there any loops in the
game that get triggered by the user having a high score?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: 22 March 2007 19:09
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Flash crashing dilemna - when adding an
inputtextfield

I am really struggling to get to the bottom of this bug and I have now spent
over 2 days desparately trying everything including recreating the entire
game in a new flash file in case anything was corrupt.

Basically the game crashes if I type into a text input field. If I do not
then it doesn't.

I cannot fathom what would be carried forward to the actual game from this
simple action. The text input field isn't even on screen anymore when the
game is in play.

Does the act of typing into a text input field change anything that could
affect my game? 

Really frustrating as I need to be able to allow the user to enter their
name.

Anyone

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: 22 March 2007 11:41
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Flash crashing dilemna - when adding an input
textfield

I have a really weird "bug" going on in a game I am making. Game is
developed in Flash 8 PC. (Published Flash 8 Actionscript 2)

My game was crashing the second time I played it so I have spent the last
day and a half tracking down the cause.

I have narrowed it down to a text input field. This is where the user enters
their name if they get a high score. If a user goes to this screen before
playing the game a second time, then a few seconds into playing the game the
second time, the game hangs with an error saying a script in this movie is
causing the flash player to run slow or something to that effect which
requires me to choose to stop this script. The game often hangs at this
stage and I have to force quit Flash.

If they do not get a high score they do not go to this frame of the flash
movie with the text input field and playing the game a second time does not
cause it to crash.

I have tried recreating this text input field, changing the font, changing
the instance name but still seems to cause the game to hang on playing it a
second time.

If anyone has any idea why this is happening or how I can determine what
script is causing the error, I would be extremely grateful.

Thanks

Paul



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] How to find dimensions of my own component, resized in auth. env.?

2007-03-23 Thread Alexander Farber

Hello,

I have a simple component, it is a multiline TextField with wordWrap
switched on and with a yellow rectangle drawn underneath:

  http://preferans.de/flash/ - the files Bubble.*

I'd like the users of my component to be able to resize its width in the
authoring environment, so that they can control where the word wrapping
will happen. However I can't figure out how to find out that width.

I tried printing it in init(), createChildren() and even draw() -
but it always shows the orig. values I've set for the bounding box:

private function createChildren():Void {
trace('width=' + this._width + ', ' + this._xscale);

// create a yellow rectangle with a shadow underneath
rect_mc = this.createEmptyMovieClip('rect_mc', depth++);
rect_mc.filters = [ new DropShadowFilter(0, 90, 0x00,
0.30, 10, 10, 1, 1, false, false, false) ];

// create a multiline text field above the rectangle
field_txt = this.createTextField('field_txt', depth++,
__padding / 2, __padding / 2, 120, 20);
//field_txt.border = true;
field_txt.multiline = true;
field_txt.autoSize = true;
field_txt.wordWrap = true;
field_txt.text = __text;

size();
}

This prints: width=160, 100  ( <-- the scale is 100% even for resized Bubble ??)

Any suggestions are very welcome
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


Re: [Flashcoders] 500 blur filters on 500 MCs

2007-03-23 Thread Omar Fouad

WOW... Is Fuse That Great
But what is the Difference... Isnt it using the same Panner,  easing
equations?


On 3/21/07, Ryan <[EMAIL PROTECTED]> wrote:


Heres and example of 50 and animating them at 30 fps using fuse.  The
code is on the page so copy and paste change 50 to 500 and watch it
crush your machine. :)
http://www.thoughtwillrise.com/2006/02/27/random-clips-blur-tween/

At least this should save you the time of coding it.  It requires Fuse.

Ryan



Mick G wrote:
> Just curious if anyone has had experience working with filters on a
large
> number of movieclips.
>
> I have 500 - 1000 movieclips on stage (not animating) and I want to
apply
> various different blur filters and other filters to these movieclips. I
> can't use one big parent clip and apply a filter to that because each
> MC may
> very well have different filter values (and each could be layered in a
> specific order).
>
> Just curious if anyone has done something similar and if they noticed
how
> well the flash player handled it.
>
> Thanks
> Mick
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: File works in Flash 9 player but not in 8

2007-03-23 Thread Joe Wheeler
It could be the amount of streams you're trying to open simultaneously. Try
queuing the loading so that you only load one at a time - the overall load
time should be about the same - something like this?

var strXmlPath:String =
"file1.xml,flie2.xml,file3.xml,file4.xml,file5.xml,file6.xml,file7.xml,file8
.xml,file9.xml,file10.xml";
var arrXmlPaths:Array;
var xml:XML; 

function parseXML(str:String):Void
{
arrXmlPaths = str.split(",");
loadNext();
}

function loadNext ( Void ) :Void
{
xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = xmlFileDoneLoading;
  xml.load( arrXmlPaths.shift() );
}

function xmlFileDoneLoading():Void
{
//have all the xml files loaded?
if ( arrXmlPaths.length )
{
// no
loadNext();
}
else {
// yes, so do stuff
}
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of me myself
Sent: 22 March 2007 15:43
To: Flashcoders mailing list
Subject: [Flashcoders] Re: File works in Flash 9 player but not in 8

In case it matters, the problems occur after 11 xml files, not 10.

On 3/22/07, me myself <[EMAIL PROTECTED]> wrote:
> Here's a really weird one: I created a Flash 8 swf -- using 
> Actionscript 2.0 -- compiled it as a Flash 8 swf, but it doesn't work 
> in the Flash 8 player. It does, however, work in the Flash 9 player.
>
> The file loads data in from multiple xml files. It actually works 
> fine, even in Flash 8, if I only try to load from nine xml files, but 
> as-soon-as I ad a tenth file, it stops working. By stops working, I 
> mean that when the swf runs, I only see the Stage background.
>
> This same swf (without being changed in any way or recompiled) works 
> fine in the Flash 9 player.
>
> The 8 player doesn't seem to be balking at the amount of xml, because 
> if I cut the code from the tenth xml file and paste it into the 9th 
> file, everything works fine. It just seems to choke on ten files.
>
> //works in Flash player 8 and 9
> var strXmlPath:String =
> "file1.xml,flie2.xml,file3.xml,file4.xml,file5.xml,file6.xml,file7.xml
> ,file8.xml,file9.xml";
>
> //works only in Flash player 9
> //var strXmlPath:String =
> "file1.xml,flie2.xml,file3.xml,file4.xml,file5.xml,file6.xml,file7.xml
> ,file8.xml,file9.xml,file10.xml";
>
> var xml:XML = new XML();
> var arrXmlPaths:Array = new Array();
> var arrXmlLoaders:Array = new Array(); var numXmlFilesLoaded:Number = 
> 0;
>
> function parseXML(str:String):Void
> {
> var xml:XML = new XML();
> var strXml:String;
>
> xml.ignoreWhite = true;
>
> arrXmlPaths = str.split(","); //get list of xml files
> for (var i:Number = 0; i < arrXmlPaths.length; i++)
> {
> strXml = arrXmlPaths[i];
> arrXmlLoaders[i] = new XML();
> arrXmlLoaders[i].ignoreWhite = true;
> arrXmlLoaders[i].onLoad = xmlFileDoneLoading;
> arrXmlLoaders[i].load(strXml);
> }
> }
>
> function xmlFileDoneLoading():Void
> {
> numXmlFilesLoaded++;
> divideXmlIntoArrays(this);
>
> //have all the xml files loaded?
> if (numXmlFilesLoaded == arrXmlPaths.length)
> {
> parseMediaArray();
> parseMediaHolderArrayAndMakeMediaHolders();
> parseAndSetUpImmediateRelationships();
> }
> }
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 - Installing PHP, MySQL?

2007-03-23 Thread Claudio M. E. Bastos Iorio
You should use xampp installer only for developing. Is not really secure in
production stage.

___
Claudio M. E. Bastos Iorio 
http://www.13bit.com.ar
MSN:[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Latcho
Sent: Thursday, March 22, 2007 6:27 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] OT - Installing PHP, MySQL?

http://www.apachefriends.org/en/xampp.html

Dave Mennenoh wrote:
> Anyone have any experience in this area? We're developing a Flash site 
> for a new client, who keeps all their own web servers in-house. They 
> are MS house using .net and such. They are setting up a new server 
> just for their new site, and since they are not familiar with PHP or 
> MySQL (which is what we develop with) they are asking us to install 
> them. They will give us remote access to the server...
>
> How hard / not-hard is it to install PHP and MySQL on a remote server? 
> Anything to be weary of? Is it something I should just skip attempting 
> and hire an IT guy to do it?
>
>
> Dave -
> Head Developer
> www.blurredistinction.com
> Adobe Community Expert
> http://www.adobe.com/communities/experts/
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Addressing functions in frame script from classscript

2007-03-23 Thread Omar Fouad

Yes u can i did it before... Just Import the classes below the functions u
wrote on the timeline...

On 3/17/07, Roman Hippler <[EMAIL PROTECTED]> wrote:


If your class extends MovieClip and you have attached it to a MovieClip
in the library, you should be able to call the functions on the timeline
just as if they where methods of your class.

You just have to make sure that
- your class is dynamic
- you invoke the functions with the "this" keyword
- the MovieClip is completely loaded and initialized before calling any
function

// on the timeline:
function doSomething(pString:String):Void
{
   trace(pString);
}

// your class:
dynamic class ExtendedMovieClip extends MovieClip
{
   public function ExtendedMovieClip()
   {
  super();
   }

   private function onLoad():Void
   {
  this.doSomething("hi there");
   }
}

Keep in mind that, because the class is dynamic, you won't get any
compiler errors when invoking a function that doesn't exists. You also
risk to overwrite class methods with timeline functions (the timeline is
initialized after the class is instantiated) ... but hey ... we're not
talking about whether it's *right* to do things that way, are we? ;-)
Rewriting your code would definitely be the better way to do it.

Roman

Danny Kodicek schrieb:
>
>
>> if you are using classes, why do you have code in the
>> movieclip timeline ???
>>
>
> Because sometimes it's easier that way. (And because this is a legacy
> project that I'm trying not to *completely* rewrite...). Specifically,
I've
> already got a load of movieclips with similar functionality, which I was
> hoping I might be able to attach a class to while still keeping the
> different functions (rather than having to make a new class for every
> symbol).
>
> Like I said, I'm not suggesting it's *right* to do things this way, just
> asking if it's *possible*...
>
> Danny
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 - Installing PHP, MySQL?

2007-03-23 Thread Omar Fouad

ah sorry i've got your question wrong... I thought u needed to setup php and
mysql on your machine for further online testing

The link Latcho gave you is good...


On 3/22/07, Latcho <[EMAIL PROTECTED]> wrote:


http://www.apachefriends.org/en/xampp.html

Dave Mennenoh wrote:
> Anyone have any experience in this area? We're developing a Flash site
> for a new client, who keeps all their own web servers in-house. They
> are MS house using .net and such. They are setting up a new server
> just for their new site, and since they are not familiar with PHP or
> MySQL (which is what we develop with) they are asking us to install
> them. They will give us remote access to the server...
>
> How hard / not-hard is it to install PHP and MySQL on a remote server?
> Anything to be weary of? Is it something I should just skip attempting
> and hire an IT guy to do it?
>
>
> Dave -
> Head Developer
> www.blurredistinction.com
> Adobe Community Expert
> http://www.adobe.com/communities/experts/
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Enhancing the Flash Cursor

2007-03-23 Thread Pedro Taranto
you can put an invisible button at each side of your photo, and use 
onRollOver and onRollOut to change the mouse cursor


--Pedro Taranto


Perdue, Blake escreveu:

I am building a photo slideshow and I want to add a next/back button to
the mouse cursor. If the mouse is on the right half of the screen, it
displays a right arrow (indicating that onclick, it will load the next
photo). When on the left half, it displays a left arrow (onclick loads
the previous photo).

My question is this: is there a better way to do this than using
onMouseMove and onMouseDown event handlers? My code is below. Adding
these event handlers is making my SWF eat up 20% more of the CPU
resources. Is there a less processor intensive method of achieving this?
A Group94 site seems to do a good job of this without hogging CPU
cycles: http://www.schierke.com/home.php?p=


// w=screenWidth

onMouseMove=function() {
arrowL._x=_xmouse-14;
arrowL._y=_ymouse+4;
arrowR._x=_xmouse+14;
arrowR._y=_ymouse+4;
if (_xmousehttp://chattyfig.figleaf.com/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] scaling external jpgs or pngs

2007-03-23 Thread Omar Fouad

PS. All this only if you are scaling the pic on runtime... But if you have
the image and need to be resized manually before compiling, Create a
movieClip and assign it the bitmap "color" from the color swatches panel..
Or just Resize the image in Photoshop :)

On 3/23/07, Omar Fouad <[EMAIL PROTECTED]> wrote:


When u scale any Picture in flash from big to smaller, its edges get
jagged It does not depend on it's format such as JPEG or GIF or even
PNG You just will have to draw a bitmap data in a movieClip, from the
movieClip that Contains the Picture u need to scale... In This Way the
picture would show perfect...

See the Flash documentation, about BitmapData

Good Luck


 On 3/21/07, Muzak <[EMAIL PROTECTED]> wrote:
>
> http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html
>
> - Original Message -
> From: "Carl Welch" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" < flashcoders@chattyfig.figleaf.com>
> Sent: Wednesday, March 21, 2007 1:17 AM
> Subject: [Flashcoders] scaling external jpgs or pngs
>
>
> > Hi coders,
> >
> > When down-scaling external (loadMovie) images, It there a secret way
> to do
> > it without making the image look jagged? Do pngs scale better than
> jpgs?
> >
> > Thanks.
> >
> > --
> > Carl Welch
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never
boastful nor conceited It is never rude or selfish. It does not take offense
and is not resentful. Love takes no pleasure in other people's sins...but
delights in the truth. It is always ready to excuse, to trust, to hope...
and to endure... whatever comes.





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 crashing dilemna - when adding an inputtextfield

2007-03-23 Thread Muzak
Does your game capture any keystrokes (like arrow keys or WASD for movement)?

regards,
Muzak

- Original Message - 
From: "Paul Steven" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, March 22, 2007 8:09 PM
Subject: RE: [Flashcoders] Flash crashing dilemna - when adding an 
inputtextfield


>I am really struggling to get to the bottom of this bug and I have now spent
> over 2 days desparately trying everything including recreating the entire
> game in a new flash file in case anything was corrupt.
>
> Basically the game crashes if I type into a text input field. If I do not
> then it doesn't.
>
> I cannot fathom what would be carried forward to the actual game from this
> simple action. The text input field isn't even on screen anymore when the
> game is in play.
>
> Does the act of typing into a text input field change anything that could
> affect my game?
>
> Really frustrating as I need to be able to allow the user to enter their
> name.
>
> Anyone
>
> Thanks
>
> Paul


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] High CPU usage problems

2007-03-23 Thread Joe Wheeler
Triple check the intervals - they are notorious for causing problems.

It's always a good idea to clear intervals before you set them - that way if
they accidentally get set twice you'll know the first one will get
cleared...

clearInterval( myInt );
myInt = setInterval( myFunc, 1000 )


J



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Makely
Sent: 22 March 2007 16:04
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] High CPU usage problems

If you are doing a lot of createEmptyMovieClip() and attachMovie(), then
make sure that those movieclips are getting removed when you are done with
them.  If you are fading those clips away, but never removing them from the
stage with removeMovieClip() (*not* delete), CPU performance will surely
suffer as the number of invisible movieclips increases.

Also double-check to see if your intervals are actually getting cleared.  If
you are using intervals to do multiple tweens, make sure that they ALL get
cleared.  Also beware of intervals declared in loops because if you are not
careful, you can overwrite an interval with a new one.  This leaves the
previous one uncleared and unaccessible as well.

--
andy makely

On 3/22/07, Carl Welch < [EMAIL PROTECTED]> wrote:
>
>
> I programmed the "Portfolio Section". Bring up the task manager and 
> watch the performance graph. You can watch it start to bogg down after 
> a while of clicking around the portfolio section. Its loading xmls 
> (one for the Side
> Menu) and the other for the thumbnails and theire respective data. 
> There are quite a few createMovieClips and AttachMovieClips and some 
> setIntervals - which I do clear when I'm done. When I create a tween 
> object I try to kill
>
> it when I'm done using it with "delete myObject;" - not sure if that 
> even works.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Got milk? (the game)

2007-03-23 Thread Joe Wheeler
That dice is cheaty! It's a dirty cheaty dice.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kerem Iseri
Sent: 22 March 2007 19:25
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Got milk? (the game)

Really amazing game but i dont think there is hard programming behind it.
Maximum 2 developer can handle the coding. I think graphics and 3d's are so
cool. It takes a lot of time to get these kind of qualified and optimized
renders. Its beautiful.

Respect!! :)

Kerem.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, March 22, 2007 4:16 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Got milk? (the game)

WOW!


http://www.gettheglass.com

How much time for this game project? How much developer?

C'est magnifique!

--
Laurent Untereiner

> skype : laurentuntereiner
> aim   : luntereiner
> icq   : 294429730
> msn   : [EMAIL PROTECTED]

> http://www.untereiner.com <

mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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

__ NOD32 1.1391 (20060201) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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] Can not get data from actionscript db operation class?

2007-03-23 Thread wishsand(TOM)
DBOperation.as:
import flash.events.*;
import flash.net.NetConnection;
import flash.net.ObjectEncoding;
import flash.net.Responder;

import mx.collections.ArrayCollection;
import mx.controls.List;
import mx.rpc.events.ResultEvent;
import mx.collections.ArrayCollection;

public class DBOperation
{
private var nc:NetConnection;
private var responder:Responder;

public var list:ArrayCollection;

public function DBOperation():void{
nc = new NetConnection();
nc.objectEncoding = ObjectEncoding.AMF0;
nc.connect("rtmp://localhost/ins");
}


public function getSolutionData(sql:String):Boolean
{
responder=new Responder(getSolutionList,null);
nc.call
("dbo.getSolutionData",responder,sql);
return true;
}


public function getSolutionList
(solution:Object):void{
var solutionList:Array = new Array();
for(var items:String in solution)
{
solutionList.push
({label:items,title:solution[items].title,owner:solution
[items].owner,submitTime:solution[items].submitTime,image:solution
[items].image,imgInstruction:solution[items].imgInstruction});
}
list = new ArrayCollection(solutionList);

}
}

datagrid.mxml:
...



...


My problem is I can get the data using DBOperation class,but I can not
assign it to solutionList by "solutionList=dbo.list;"

The debug information says dbo.list=null, however inside DBOperation
the "list" is full of data.

What's wrong with it??

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

Re: [Flashcoders] OT - Installing PHP & MySQL on a remote server

2007-03-23 Thread Omar Fouad

Dave i allready have answered this question to you in your prev post... Your
posts deliver, dont worry, but u were asking about installing php on your
local machine.. In order to have it on the server you have to upgrade it
accordingly to your hosting provider

On 3/22/07, Dave Mennenoh <[EMAIL PROTECTED]> wrote:


Sorry if this ends up coming through twice, but I sent it 2.5 hours ago
and
it hasn't reached the list yet.

Anyone have any experience in this area? We're developing a Flash site for
a
new client, who keeps all their own web servers in-house. They are MS
house
using .net and such. They are setting up a new server just for their new
site, and since they are not familiar with PHP or MySQL (which is what we
develop with) they are asking us to install them. They will give us remote
access to the server...

How hard / not-hard is it to install PHP and MySQL on a remote server?
Anything to be weary of? Is it something I should just skip attempting and
hire an IT guy to do it?




Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/

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

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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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