[Flashcoders] test

2006-03-14 Thread Dave Watts
test

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 create a new event?

2006-03-14 Thread ivan valadares

I need to create a new event, any good links?

Or maybe a simple code like this:
Supose i have a movie clip MyMovie_mc
I need event onFinished to be target every time MyMovie_mc is in 
postion y:240 x:300.


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] puzzle: how to verify piece-fitting?

2006-03-14 Thread Mike Mountain
I suspect you could use bitmap data to achieve something along these
lines - if each piece has a special pixel - you can use that pixel to
check against a master bitmap to see if it's in the right place,
combined with snapping it should make it quite easy. - if you know it's
in the right place and one of it's neighbours has also been placed then
you can make this a 'combined piece'.

Something along those lines anyhow.

M

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of lars
 Sent: 10 March 2006 23:43
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] puzzle: how to verify piece-fitting?
 
 yeah, kind of. one thing makes it easy that is that all 
 pieces can only be placed in a pre-defined area (a shape 
 showing the outline of the puzzle), but i'm still looking for 
 some kind of algorythm that makes the already fitted pieces 
 drag/drop together... like having a,b,c mixed up, all single 
 drag/drop-able, but when c fits to a they both join and get 
 drag/drop- able as one piece. that's the problem i now 
 have. any solutions welcome.
 thanks: lars
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] XPath problems with single character value nodes

2006-03-14 Thread Chaitu Vadlapatla
Thanks Adrian. I tested out both the examples, and the one that works best is 
var e = XPath.selectNodesAsNumber(this,/weather/dayf/[EMAIL 
PROTECTED]'3']/[EMAIL PROTECTED]'d']/icon/text());


For some reason the one that should work and Won't work is 
var e = XPath.selectNodes(this,/weather/dayf/[EMAIL PROTECTED]'3']/[EMAIL 
PROTECTED]'d']/icon/text());
e = String( e.firstChild.nodeValue );
I wonder why..

But I like the first example which works and thanks so much for looking into it.
Chaitu.




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wade Arnold
Sent: Saturday, March 11, 2006 3:17 PM
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com; Adrian Park
Subject: Re: [Flashcoders] XPath problems with single character value nodes

Thanks Adrian for following up on this. We are having issues with parsing
the content feed from the weather.com api.


http://www.t8design.com/personal/chaitu/Weather/weather_proxy.php?id=USIA088
5




On 3/11/06 10:58 AM, Adrian Park [EMAIL PROTECTED] wrote:

 I've done some investigation on nthis issue and found this...
 
 If you modify your path like this (note the /text() at the end) you should
 get the value correctly...
 
 var e = XPath.selectNodesAsString
 (this,/weather/dayf/[EMAIL PROTECTED]'4']/[EMAIL 
 PROTECTED]'d']/icon/text());
 
 
 Interestingly, if you try this it won't work...
 
 var e = XPath.selectNodesAsNumber
 (this,/weather/dayf/[EMAIL PROTECTED]'4']/[EMAIL 
 PROTECTED]'d']/icon/number());
 
 ...but this does...
 
 var e = XPath.selectNodesAsNumber
 (this,/weather/dayf/[EMAIL PROTECTED]'4']/[EMAIL 
 PROTECTED]'d']/icon/text());
 
 This final example actually returns a Number (not a String as the first
 example does) which is what I guess you'd want to get from the icon
 element but seems to do it the wrong way (using text() )!
 
 I'm going to report this info to Xfactor Studio.
 
 Hope this is helpful.
 A.
 
 On 3/11/06, erixtekila [EMAIL PROTECTED] wrote:
 
 
 Le 11 mars 06, à 11:27, Adrian Park a écrit :
 
 I encountered exactly the same issue on the project I'm currently
 working
 on. I got around the problem by using XPath.selectNodes rather than
 XPath.selectNodesAsString.
 Please send a mail to XPath author to get this fixed.
 ---
 erixtekila
 http://blog.v-i-a.net/
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] removing help files form the help panel when using BLDoc

2006-03-14 Thread Fredrik
Hi

I have done a test documentation from BLDoc and I have put it in the
helpPanel folder.
It shows great in flash, but now I want to remove the test from the help
panel.

I have removed the folder butit still show in the help panel in flash.
Does someone know if flash caches the folder or is it somewhere else I
should remove the test?

//Fredrik

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

2006-03-14 Thread Thierry V.

Hello !!

Is there any way to change dynamically the visibles columns of a DataGrid ??

My DataGrid is populated with a DataSet.
And I call a function to redraw the columns of the DataGrid after 
setting the DataProvider, to correctly format my DataGrid.


But when I try to re-call the same function with different parameters, 
my DataGrid was empty... rows are displayed, but empty content...


I have tried to disconnect the DataSet, removeAllColumns, reconnect the 
DataSet and call the redraw function, same issue...


Thanks in advance for any suggestion


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

2006-03-14 Thread Flash Mel
Just wanted to say thanks to everyone for keeping this going.  This group
has been around for years and I have learned so much from everyone and the
archives are great!  Cheers to the Flash Coder peeps and Figleaf for keeping
ChattyFig up and going!

Ciao,

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

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


[Flashcoders] Marrying Function.apply() to WebService web method calls

2006-03-14 Thread David Stiller
I'd like to use Function.apply() on WebService instances' web
methods.  Should be pretty straightforward, right?  Turns out the answer is
no.  I figure the quickest way to illustrate my problem is to relate my
journey in a few blocks of code.

Here's a successful sample, using a freebie US ZIP code service.
Note:  Make sure to drag a WebServiceClasses compiled clip onto your Stage
from Windows  Common Libraries  Classes.


// FIRST TRY
import mx.services.*;
var wsdl:String = http://www.webservicex.net/uszip.asmx?WSDL;;
var ws:WebService = new WebService(wsdl);
var pc:PendingCall = ws.GetInfoByZIP(90210);
pc.onResult = function(evt) {
  trace(evt.NewDataSet);
};

... which traces the following XML ...

NewDataSet xmlns=TableCITYBeverly
Hills/CITYSTATECA/STATEZIP90210/ZIPAREA_CODE310/AREA_CODETIME
_ZONEP/TIME_ZONE/Table/NewDataSet

Easy.

Now, to transform it into a slightly more generic mechanism ...


// SECOND TRY
import mx.services.*;
var wsdl:String = http://www.webservicex.net/uszip.asmx?WSDL;;
var meth:String = GetInfoByZIP;
var param:String = 90210;
var ws:WebService = new WebService(wsdl);
var pc:PendingCall = ws[meth](param);
pc.onResult = function(evt) {
trace(evt.NewDataSet);
};

Still successful.  Now, Function.apply() takes an array of
arguments, which is the reason I want to use it.  To continue stepping in
that direction, I update the above param lines to ...

var param:Array = [90210];

... and ...

var pc:PendingCall = ws[meth](param[0]);

... and as expected, all goes well -- still.  At this point, I should be
able to slap in Function.apply(), like so ...

// THIRD TRY
import mx.services.*;
var wsdl:String = http://www.webservicex.net/uszip.asmx?WSDL;;
var meth:String = GetInfoByZIP;
var param:Array = [90210];
var ws:WebService = new WebService(wsdl);
var pc:PendingCall = ws[meth].apply(null, param);
pc.onResult = function(evt) {
trace(evt.NewDataSet);
};

... but it all falls apart.  If you turn on VERBOSE logging, everything
rolls along as usual until it hangs on the final line ...

3/13 12:7:30 [INFO] : Set active port in service stub: USZip : USZipSoap


Any thoughts?


David
[EMAIL PROTECTED]

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Loading several images with one progressbar?

2006-03-14 Thread Joshua Buhler

Here's a couple of ideas:

If the image urls are fetched from an XML file, and the xml is  
generated dynamically, have the server write the filesize of the  
images into the xml. Or, if the images are added to the xml manually,  
add the filesize of each image to the XML.


Or, you could just display a number of total images loaded: Loading  
3 of 15 for example, instead of the total bytes loaded.


- Josh


On Mar 12, 2006, at 2:06 AM, Sascha Balkau wrote:


Hi Adrian,

thanks for the idea but this approach will not work in my case  
because the images are loaded sequencially. If one image is  
finished loading, my class starts loading the next and so on, one  
after one. And the amount of images varies (the image filenames are  
fetched from a XML file).
I'm now defining a segmentWidth by dividing the full progressbar  
width by the amount of images that are going to be loaded. That  
gives me the 100% for one image on the whol bar. I just haven't  
figured out yet how to make it work so that the bar doesn't start  
from 0 at every image. Any other idea?


Sascha





- Original Message - From: Adrian Park [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, March 12, 2006 3:24 AM
Subject: Re: [Flashcoders] Loading several images with one  
progressbar?



Say you have 3 images loading, use something like this:

var bytesLoaded:Number = 0;
var bytesTotal:Number = 0;

bytesLoaded += image1.getBytesLoaded();
bytesTotal += image1.getBytesTotal();
bytesLoaded += image2.getBytesLoaded();
bytesTotal += image2.getBytesTotal();
bytesLoaded += image3.getBytesLoaded();
bytesTotal += image3.getBytesTotal();

var percentageLoaded:Number = (bytesLoaded/bytesTotal) * 100;

There may be ways to optimise this code depending on your  
circumstances (e.g.
just calculate bytesTotal once and reuse it) but this shows the  
basic idea.


Adrian P.


On 3/11/06, Sascha Balkau [EMAIL PROTECTED] wrote:


Hi,
this is probably an old hat but I can't get it right. I want to  
display

the
load progress of several images with one progress bar. How do I  
calculate

the percentage of the bar?

Thanks alot,
Sascha

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

2006-03-14 Thread cornel
I'm looking forward to it, as i'm having quite a hard time getting a
grasp of actionstep. While working with some widgets is
straightforward, some are (for me) obscure. Earlier i've spent a
couple of hours trying to populate a nsbrowser with some data, to no
avail.
Could someone point me to some good cocoa tutorials, that are
meaningful for learning actionstep? I've read some docs
(http://developer.apple.com/documentation/Cocoa/index.html), but some
samples would be useful.

thanks
cornel

On 3/11/06, Scott Hyndman [EMAIL PROTECTED] wrote:
 By the way. We're getting close to a second release, and this one will
 be launched alongside a new website with some great tutorials on getting
 started.

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

2006-03-14 Thread Flash Mel
Not sure how to title this email.  I am in search of a concept.  What I want
to do is take several objs - squares of varying sizes - then have them
placed on the stage forming a mosaic grid of some sort.  Maybe some spacing
in there.

Anyway, I'm thinking I need to take this approach:
//pseudo code below
createEmptyMovieClip(box_mc, getNextHighestDepth());
duplicate box_mc and randomly place them in locations off the stage
then have those clips come in and form the mosaic.

Now I think that idea works if all the box_mc clips were the same size.
For clips of different sizes, I'm thinking I need to add collision detection
just in case they stop on top of each other.  But how far over should it
move it they touch?  And which way should they move (if they are touching
the left,bottom, top, right side)?  Etc.  Lots of questions.

Writing it now, just also seeing if someone else has more input or even a
suggested site to look at for ideas or demos.

Thanks.

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

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


[Flashcoders] Encrypting data

2006-03-14 Thread Jiri Heitlager

Hello,

I am currently making a game that sends the highscore to a php file that 
 puts it into a database. If I would just send the var score to a php 
file, then it will be quit easy to manipulate the score. Using the 
firefox plugin Live HTTP Headers it is easy to see what is being send 
from the flash movie, knowing the URL you could then set the data using 
that URL.
Does somebody know a way to encrypt the score in flash and then decrypt 
it in php?


Thnks.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Send to friend....Doesn't make sense.

2006-03-14 Thread Sam Thorne
Even better than Delegate is Proxy, http://www.person13.com/articles/ 
proxy/Proxy.htm


On 12 Mar 2006, at 05:12AM, [EMAIL PROTECTED]  
[EMAIL PROTECTED] wrote:


I'm not going to check your email verification but  you could do  
somethign
like this for loadvars rather than using loadvariables. Also have  
your php

write back a response so that flash knows whether it worked or not.

Some tidbits of advice - your submit mail button should call a  
validation

process - it shouldn't hold it in the scope of its onRelease handler -
that might introduce a scoping problem. So create a function that  
is like

validateEmail(emailString), and have your button call it.
submit_mail_btn.onRelease=Delegate.create(this,validateEmail).


Delegate in Flash 7 and up is your friend. It fies the scope madness.
Also, test your validation bit outside of the onRelease and determine
where its failing.




import mx.utils.Delegate;
lv:LoadVars=new LoadVars();
var validEmail=isEmail(email_txt.text);
lv.vemail=vemail;
lv.onLoad=Delegate.create(this,onEmailResponse);
lv.sendAndLoad(../mailinglist.php,lv,GET)

function onEmailResponse(success){
if(p_success){
  email.text = THANK YOU!;
}else{
  email.text = Problem Dude!;
}
}

function isEmail(str:String):Boolean{
// do your email validation here and return true or false
// By creating a function, you can use it again and again -
// so your submit buttons should call a validation process, not
// hold the validation process in the scope of its onRelease.
return(valid)

}


Regards,

Sam Thorne
Interaction Design

Web: http://www.native.com/
Tel: +44 (0)207 588 7970
Fax: +44 (0)207 588 7971


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

2006-03-14 Thread Iv
Hello Hypno,

HJ Is there a way to keep fonts in an external movie and load them
HJ dynamically into a movie when needed?
- yep. www.sharedfonts.com


-- 
Ivan Dembicki

[EMAIL PROTECTED] || 
http://www.design.ru

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

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


[Flashcoders] Function Point Analysis - Estimating projects

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

 

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

 

Definition:

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

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

 

 

Judah

 

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

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


Re: [Flashcoders] Loading several images with one progressbar?

2006-03-14 Thread J-P Vieresjoki
Umm, my proposition might not be the most accurate or anything but it 
should work, on some level at least. Try;


(indexOfCurrentImage/numberOfTotalImages)*100+((currentImageLoadedBytes)/(currentImageTotalBytes*numberOfTotalImages)*100);

I'm assuming in that you know the index of currently loading image to 
calculate the percent. That's the idea, you might be able to optimize 
the line a bit, I'm too tired to do that myself. Hope this helps.


--
jp

Sascha Balkau wrote:

Hi Adrian,

thanks for the idea but this approach will not work in my case because 
the images are loaded sequencially. If one image is finished loading, 
my class starts loading the next and so on, one after one. And the 
amount of images varies (the image filenames are fetched from a XML 
file).
I'm now defining a segmentWidth by dividing the full progressbar width 
by the amount of images that are going to be loaded. That gives me the 
100% for one image on the whol bar. I just haven't figured out yet how 
to make it work so that the bar doesn't start from 0 at every image. 
Any other idea?


Sascha





- Original Message - From: Adrian Park [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, March 12, 2006 3:24 AM
Subject: Re: [Flashcoders] Loading several images with one progressbar?


Say you have 3 images loading, use something like this:

var bytesLoaded:Number = 0;
var bytesTotal:Number = 0;

bytesLoaded += image1.getBytesLoaded();
bytesTotal += image1.getBytesTotal();
bytesLoaded += image2.getBytesLoaded();
bytesTotal += image2.getBytesTotal();
bytesLoaded += image3.getBytesLoaded();
bytesTotal += image3.getBytesTotal();

var percentageLoaded:Number = (bytesLoaded/bytesTotal) * 100;

There may be ways to optimise this code depending on your 
circumstances (e.g.
just calculate bytesTotal once and reuse it) but this shows the basic 
idea.


Adrian P.


On 3/11/06, Sascha Balkau [EMAIL PROTECTED] wrote:


Hi,
this is probably an old hat but I can't get it right. I want to display
the
load progress of several images with one progress bar. How do I 
calculate

the percentage of the bar?

Thanks alot,
Sascha

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

2006-03-14 Thread ivan valadares

I need to create a new event, any good links?

Or maybe a simple code like this:
Supose i have a movie clip MyMovie_mc
I need event onFinished to be target every time MyMovie_mc is in 
postion y:240 x:300.


thanks

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

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


[Flashcoders] componet buttons without border.

2006-03-14 Thread Rodrigo Guerra
hi, 


my component button started appearing today without borders ! it appears just 
the text set for the button, the code inside it works good.

using flash 8 , screens, as2.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] nested screens and setVisible

2006-03-14 Thread Rodrigo Guerra
flash 8, as 2.

i 'm maiking my first flash screen application.
here its the structure (screen name)


roots.
login
mainMenu
inclusao
cons

each screen has a fade transition onRevel and onHide. ok.

n the roots screen first frame i hide the mainMenu and the mainMenu nested 
screens, leaving only the login screen visible.

mainmenu.setVisible(false);
mainmenu.incluir.setVisible(false);
mainmenu.cons.setVisible(false);

i set the mainmenu neasted sceens visibility to false hoping that when i show 
the mainMenu screen it dosen't show it's nested screens.
but this dosen't happen.

when i show the mainmenu using mainmenu.setVisible(true); it shows the nested 
screens too. i have to set AGAIN the nested screens to false to hide them, and 
the hide occurs AFTER the mainmenu fade in showing both screens during the 
fade and then after it hides the nested screens.

i want to know if tis is the correct behavior

code in the component login screen :

 login.setVisible(false);
 mainmenu.setVisible(true); 
mainmenu.inclusao.setVisible(false);
mainmenu.cons.setVisible(false);


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] test

2006-03-14 Thread Éric Thibault

Is it online now?
Dave Watts wrote:


test

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

 




--
===

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, Canada
Tel.: 656-2131 poste 18015
Courriel : [EMAIL PROTECTED]

===

Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de 
confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [SOLVED] removing help files form the help panel when using BLDoc

2006-03-14 Thread Fredrik
Hi All

I found the place and solved it, thanks if someone already has answered.

//Fredrik

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] storing embedded font data in local shared objects(LSOs)?

2006-03-14 Thread Janis Radins
I'm  a fraid that is impossible

2006/3/12, Ken Fine [EMAIL PROTECTED]:

 Hi all,



 Can anyone tell me if there's a manageable way to embed font data in an
 LSO
 (Flash local shared object) such that it can be stored on the user's
 machine
 and used by a movie?



 Or, perhaps someone can propose an alternate scheme so that embedded font
 data can be externalized and cached on the user's machine so that it
 doesn't
 need to be re-sent with every visit?



 I'm noticing that F8 embedded fonts are quite a bit more heavy than
 their
 F7 counterparts, and I'm trying to come up with ways to shave down the
 download. The other thing that would be very helpful to know is how to
 embed
 a subset of a font instance just once in the library, and have my movie
 draw
 from this common pool of font information. In reviewing my F8 size
 report,
 I notice that Flash is embedding the same characters of my Myriad Pro in
 the
 same font weight multiple times. This sucks up bandwidth unnecessarily.



 Thanks in advance for any pointers.



 -KF

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

2006-03-14 Thread eugen pflüger

maybe this could help you:
http://www.sharedfonts.com

e


Am 12.03.2006 um 07:05 schrieb Hypno Joe:


*I am using Flash8*

Is there a way to keep fonts in an external movie and load them
dynamically into a movie when needed?

The flash movie I am currently working on is a text editor that is all
generated dynamically.  A text box is generated on the main movie like
this:

this.createTextField(message_txt, 200, 10, 10, 560, 200);
message_txt.embedFonts = true;

The main text box is styled using TextFormat.

var messageformat:TextFormat;
meassageformat = new TextFormat();
messageformat.size = 20;
messageformat.font = hightower_font;

I have a button that calls in an external SWF that contains a list of
different fonts for the text box.  The fonts are embedded in the movie
and exported for action script and runtime sharing.   They change the
font like this:

this.aucion_mc.onRelease = function () {
messageformat = new TextFormat();
messageformat.font = aucion_font;
_root.message_txt.setTextFormat(messageformat);
}

The fonts show up in the external SWF as it is loaded into the main
movie but when one of the bottons is presssed, the text in the text
box disappears.

If I embed the fonts in the main movie, I have no problems.
Everything works fine.  But that defeats the purpose of having the
fonts exist externally.  I only want them to load if the user wants to
change fonts.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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










plugisto
...
eugen pflüger

alexanderstr. 109
70180 stuttgart

fon +49.711.6739797
mobil   +49.177.6428272
e-mail  [EMAIL PROTECTED]
...
http://www.plugisto.net
http://itself.pmalc.de
http://www.lifeperformance.net


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

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


[Flashcoders] Function Point Analysis - Estimating projects

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

 

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

 

Definition:

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

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

 

 

Judah

 

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

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


[Flashcoders] duplicateMovieClip() ?

2006-03-14 Thread Edward Hotchkiss
hmm ...

// begin code
function alot(max) {
 var basename:String = circle_mc;
 for(var i = 0; i  max; i++) {
  _root.it_mc.duplicateMovieClip(basename+i, this.getNextHighestDepth() );
  _root[basename+i]._x = 100 + i*5;
  _root[basename+i]._y = 100 + i*5;
  
 }
}

the trace returns 0. why are my dynamically duplicated movieclips not showing 
up on the stage???

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

2006-03-14 Thread Darren Cook
On Feb 25th 2006 Andreas Rønning wrote:
 This is very serious. The majority of my work is kiosk apps.
 Any more details on this, official Macromedia stance on it? Future fixes?

Does anyone have more information on this? For instance what kind of
features or media types or actionscript are causing the leak?

We have a flash 8 application that has to be able to run for months
without rebooting, but was leaking memory at 31Mb/hour! I realized I
still had a textarea logger running but having removed that it is still
leaking at 5MB/hour.

We've tried running it as Flash 7, and also tried disabling all flv
movies, but it still seems to leak at the same rate. Does that sound
like something wrong we're doing in the actionscript (e.g. somehow
holding on to references so stopping the garbage collector freeing the
memory?) or like a player bug?

Is there a way to force the garbage collector to run? (our application
often has the CPU near 100% - I wondered if garbage collection only
happens when the CPU is quiet?)

Has anyone seen the memory leak go away when switching to zinc or a
similar projector?

Any advice would be very welcome,

Darren


 Marcelo Volmaro wrote:
 Well, unless you used a lot of the new FX, i recommend you going back
 to the v7 player. The v8 has a lot of errors/memory leaks, mostly of
 them related to the new bitmap engine.

 I recently had to change a lot of code that takes advantage of the new
 system to the old one, because a lot of things breaks badly.

 On Fri, 24 Feb 2006 15:32:51 -0300, Joe Cutting [EMAIL PROTECTED]
 wrote:

 Hello,
I think I've found a memory leak in the Flash player on the PC.
 I made a fairly simple animation (no actionscript) and built a
 projector and when I run
 it in a loop the amount of memory needed continues to rise. (as
 measured using Task Manager).

 I'm using Flash Player version 8,0,22,0 on Windows XP professional.

 Has anyone else experienced this, or even better found a cure?

 If there is no cure then this is pretty serious for anyone using
 flash in a kiosk type situation.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Component Initialization

2006-03-14 Thread John laPlante


I recently ran into a problem that I thought I'd share for others who 
might run into it.


I built a button component that included validation of a set of other 
components.  The user of the button would name a set of required 
components in a property values dialog.  When the button initialized, it 
adds listeners for the 'correct' events that the other components emit 
(tutoring application).  I found that the button component has to be 
above the required components (z-order) because the required components 
need to initialize before I can assign listeners to them.  This is 
probably obvious to some people but it bit me and cost me several hours 
of frustration.  This is easily handled by placing the button on a layer 
above the other components but I am not the end user of the component so 
it could still pop up when other use the button.


It seems that I can access the properties of components that come later 
in the initialization order but I can't access anything that depends on 
initialization nor any methods of the later components.  Can anyone 
confirm this?


I also wonder how people generally deal with this class of problem 
(initialization order) for components.  I've thought there must be a way 
to wait until all components have initialized but I'm not familiar with 
a way.  I suspect that I could use getBytesLoaded for the first frame of 
_root. 


---
John laPlante
Carnegie Mellon University
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OT: Good Jobs In Iowa

2006-03-14 Thread Wade Arnold
T8DESIGN is looking to meet our rapid growth with five new creative and
innovative individuals. T8DESIGN services national and international
customers out of our office on the TEAM Technologies campus in Cedar Falls,
Iowa. T8DESIGN has been in business for two years and has 22 employees.
T8DESIGN services the financial services marketplace with custom application
and components.  

We are currently looking for applicants that have experience in the
following disciplines.

2 x Software Engineering
2 x Flash Developer
1 X Application Database Engineer

* Software development positions 30k-55k base based
 on experience. 
* Flash developer positions 28-44k base based on experience.
* Application Database Engineer 38-62k base based on experience.
* Performance bonuses can equal up to 10% of base salary.

Please see the attached job description for additional information. All new
team members will work 50% on internal projects and 50% on custom client
applications. If you consider yourself to be in love with OOP, Java, PHP,
DBA, Flash 8 , Flex or just think your a guru of one; please send your
resume. If you have sent me your resume in the past please re-submit your
application. If you are are a Rock Star and need more money please apply.

Work was never designed to be this much fun! If you think that code,
schema's, or interface design is sexy; this is the place for you! Please
email [EMAIL PROTECTED] your resume. Let me know personally if you
have any questions.

We have monthly foosball tournaments on our office tornado table.

T8DESIGN is 3 hours Minneapolis, 4.5 hours Chicago, 4 hours Omaha, 5 hours
St. Luis, 5 hours Kansas City.

You must be able to work in the US on site.
 

Wade Arnold
CTO T8DESIGN
[EMAIL PROTECTED] 
http://www.t8design.com
http://www.freedomplatform.com
http://www.teamnet.net
 
Responsibilities
* Take ownership for research, design, implementation, and delivery of new
features for this product.
* Lead designs that have an impact on the fundamental user experience of the
product. 
* Work with customers, both internal and external to understand customer
needs. 
* Work with the QA group to assure best quality and rapid turnaround for
changes that surface during quality testing.
* Develop adequate documentation at all levels.
* Develop thorough unit tests for your features.
* Deliver robust, documented, efficient code quickly.
 
Knowledge  Skills:
* Experience creating multimedia, graphics or animation tools.
* Strong comprehension of UI design and experience developing user
interfaces. 
* Passion for developing customer friendly applications.
* Excellent communication skills and ability to take strong leadership in a
collaborative manner.
* Strong knowledge of web application development tools, technologies,
languages (AS2/AS3, XML), and trends.
* Proven ability to develop robust, efficient code in core areas of complex
projects. 
* Experience in full product development life cycle‹preferably in
shrink-wrapped software.
* Experience with unit testing.
 
Ideal
 
* Deep experience with Flex, ActionScript, or similar technologies.
* Deep experience with client server paradigms.
* Proven leadership ability.
* Experience with other Macromedia products.
* Experience writing Mac and Windows software.
* Experience creating authoring tools or IDEs.
* MS degree, or equivalent, preferred, with a focus on UI design,
computer/human interaction, or design of development environments. 


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

2006-03-14 Thread John laPlante
I have a class that is on the borderline of the 32K limit that flash 
enforces. I've run into this problem on occasion and have generally been 
able to factor code into classes and use composition to reduce my file size.


Recently, I ran into a very strange error that in the end seems to be 
related but was very difficult to troubleshoot.  I received a number of 
syntax errors when I would compile but I would NOT get the 32K limit 
error.  I would get a strange output that inserted a small superscripted 
dash in between key words.  I'd paste a sample but it doesn't appear 
when I do.  You can see an image of this at: 
http://pslc-qa.andrew.cmu.edu/~pact/tutors/testing/CharacterBug.gif.  
This problem also seems to relate to the sheer volume of lines of text 
in the file.  My file has quite a bit of comments and I couldn't fix the 
compile error by commenting methods. I had to delete them from the file.


I generally use Flash 7 but tried to compile this on Flash 8 and found 
the same problems.



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

2006-03-14 Thread John laPlante
I recently ran into a problem that I solved with Delegate. I thought 
that others might run into this problem.


I built a button component that included validation of a set of other 
components.  The user of the button would name a set of required 
components in a property values dialog.  When the button initialized, it 
adds listeners for the 'correct' events that the other components emit 
(tutoring application).  I found things worked fairly well initially but 
after adding a second copy of my button to the stage and assigning a 
common required field, I found that the first button no longer responded 
to the 'correct' event.  To fix this problem, I incorporated Delegate 
when assigning the listener.  A line of the code is shown below where 
'ShowCorrect' is the event and componentsShowCorrect is a method in my 
button class.


componentName.addEventListener(showCorrect, Delegate.create(this, 
componentsShowCorrect));


In the past, I had ran across Delegate and found it a bit confusing.  I 
have generally relied on assigning a reference to the class (i.e. this) 
to a variable of the object that listens


componentName[realThis] = this

But this didn't work for my situation and I had to go with Delegate.  I 
found a nice demonstration of Delegate in the book 'Using ActionScript 
2.0 Components with Macromedia Flash 8'  It seems that Macromedia has 
made some nice strides in component documentation with Flash 8.

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

2006-03-14 Thread Éric Thibault

Salutations...


I'm using the onLoadInit event to execute custom fonctions when loading 
external SWF's.  While I was testing my code (IDE), everything was  OK 
and my fonctions firing.  But on testing the same code (SWF 7) with IE 
on my PC with FlashPlayer 8, the onLoadInit event only fires the first 
time a SWF is loaded meaning that if I asked  the same SWF again 
(present in my cach), the event was ignored! (I'm using a dynamic txt on 
_root level to test this).  In FireFox, everything is OK


I've finaly debuged the thing with the onLoadComplete event... IE always 
fires the event even the second time a SWF is loaded!  The Help sais 
that the onLoadInit gets fired when the actions on the first frame of 
the loaded clip have been executed. When this listener has been invoked, 
you can set properties, use methods, and otherwise interact with the 
loaded movie.. 

I there a way to force the onLoadInit with IE? Or do I need to test the 
navigator and then execute my custom fonctions after the first frame of 
the loaded clip has been executed???


Thank a million!

--
===

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, Canada
Tel.: 656-2131 poste 18015
Courriel : [EMAIL PROTECTED]

===

Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de 
confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Trying Again:External Interface API and External .js Files

2006-03-14 Thread Christian

Hey Everyone,

I'm usually just in the background reading all the good information, but 
now I actually have a question I can't find the answer to.


I'm trying to rewrite some tracking functionality that I have utilizing 
external .js files and I can't seem to use the external API unless the 
JavaScript function is on the page in between the script tags.


Can you do this with external .js files?  If so, is there somewhere you 
can point me?


Any help one can provide would be much appreciated...

THanks,

Christian



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

2006-03-14 Thread Kevin Aebig
Hey all,

 

The company I work for is interested in moving one of our large applications
over to Flex when the new version comes out. Is it worthwhile or even
feasible to begin porting it over with the Beta release or are we wasting
our time considering that quite a bit of it could change beforehand. 

 

I'd hate to put in a lot of time into this only to find out that my source
files are rendered obsolete when the new version is finally released.

 

Thanks for your input,

 

!k

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] advanced flash AS 2.0/3.0 book?

2006-03-14 Thread Keith Takayesu
I just got the AdvancED ActionScript Components book for our team, too.
It is one of the best explanations of the V2 Component architecture that
I've read to date.  I like the way that the examples are built up for
those who are new to components and object-oriented techniques, and then
gets into the details of how each type of built-in component can, and
should be used.

One of those books that I wish we had a few months ago...

Here is the tiny url for the same book, for those who had a broken
link...
http://tinyurl.com/hhb29

I would also recommend another new Friends of Ed book, Object-Oriented
ActionScript for Flash 8. It gets into the details and best practices
of objec-oriented Flash development, and topics such as data binding and
web services. It even discusses the Flash/JavaScript Integration Kit.
http://tinyurl.com/zurlo

Blue Skies,
Keith

-Original Message-
From: Jonathan Berry [mailto:[EMAIL PROTECTED] 
Sent: March 11, 2006 8:52 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] advanced flash AS 2.0/3.0 book?


Rich, that sounds like something that I could use. Mastery and not just
introductory stuff. The books I have read just go over the basic
components, like list or scrollpane, not things like the datagrid or
learning how to use a cellrenderer. Thanks again.

On 3/11/06, Rich Rodecker [EMAIL PROTECTED] wrote:

 well, you mentioned you were up on your components, so I don't know 
 how 'advanced' this book would be for you...but I am reading a href=

http://www.amazon.com/exec/obidos/redirect?link_code=ur2tag=richrodecke
r-20camp=1789creative=9325path=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fpro
duct%2F1590595939%2Fqid%3D1142032643%2Fsr%3D2-1%2Fref%3Dpd_bbs_b_2_1%3Fs
%3Dbooks%26v%3Dglance%26n%3D283155
 AdvancED
 Actionscript Components : Mastering the Flash Component
 Architecture/a and I'm really digging it. The author doesn't just
 show you the methods and properties availabel to a component, like the
 other book that is just a reprint of the help docs, he goes into the
 flash component architcture itself to give you a better understanding
 of how things are working, and whats going on behind the scenes.

 He goes into this thing about XLEFF (XML Layout engine for Flash) for 
 a little bit, but I just kinda glossed over that so far, since im not 
 really interested, i just want to undersatnd the components 
 betterbut skipping over all that stuff doesnt affect understanding

 anything else in the book.



 On 3/11/06, Jonathan Berry [EMAIL PROTECTED] wrote:
  Thanks for the reply, Karthik. I checked the archives and came up 
  with
 136
  prior messages in relation to advanced books but none that were
 current,
  as in the last year or so. I noticed someone else just posted in
 relation to
  a book recommendation and got some good responses, so it would be 
  great
 if
  someone would have some information on an advanced book.
 
  On 3/10/06, Karthik [EMAIL PROTECTED] wrote:
  
Hey Flashers, how about a book for an intermediate/advanced 
level
 coder?
   I
don't want to read about what objects, properties, methods, 
events,
   event
handlers, and listeners are, or even how to write basic classes.
 That
   stuff
is always repeated in both the AS books (or any introductory
 programming
books for that matter - rant) that I have read. I read the 
deHaans' Macromedia Press books starting with MX2004 and the AS 
2.0 book for
   Flash 8.
I also own the AS 2.0 reference for Flash 8 and the Flash 8
 component
reference. I guess I am just looking for something that will 
have
 more
hardcore examples, practical ones at that. I do remember seeing 
an
   advanced
book for MX a few years ago and wondered if they have anything 
like
 that
   for
2004 or 8. Your help much to be appreciated.
  
   Please check the archives. Book recommendations posts appear once 
   every 36.34 hours on this list :) The link is in the footer.
  
   This is the first time I've seen one of these lame corporate 
   disclaimer footnotes from a gmail address. Please do us a favour 
   and lose it - all your e-mails are being distributed, disseminated

   and copied with utter disregard for the Electronic Communications 
   Privacy Act :P ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training 
   http://www.figleaf.com http://training.figleaf.com
  
 
 
 
  --
  Jonathan Berry, M.A.
  IT Consultant
  619.306.1712(m)
  [EMAIL PROTECTED]
  www.mindarc.com
 
  ---
 
  This E-mail is covered by the Electronic Communications Privacy Act,

  18 U.S.C. ?? 2510-2521 and is legally privileged. This information 
  is confidential information and is intended 

Re: [Flashcoders] Loading several images with one progressbar?

2006-03-14 Thread Latcho
this is just an undocumented class that shows how you can get the 
filesize of a file in a loaderqueue
without completely loading the file (I kill the further loading once 
sizxe is obtained).

I only use this class once to get the totalbytes.
After that I usuyally hard-code this result in the rest off my app.

Here I get the total combined filesizes from a loaderQueue object which 
holds

the url for every image or clip to load.
This is just to give you an idea. the way I present the code is nt 
copy-paste-able.

__

// first builds the loaderQueue object  // loaderQueue[index_ID].url


private function checkFileSizes(){
   //processLoaderQueue()
   var startTime=getTimer()
   var _CLASS=classHook;
   var FS:Array=new Array()
   var index_ID=0;
   for (index_ID; index_ID  loaderQueue.length; index_ID++){
  
   FS[index_ID]=new getFileSize()  //! check down

   FS[index_ID].ID=index_ID
   FS[index_ID].onSize=function(){
   if(this.size==-1){
   trace(error getting filesize)
   }else{
   _CLASS.allFilesBytesTotal+=this.size
   }
   _CLASS.loaderQueue[this.ID].size=this.size
   _CLASS.totalChekedFileSizes++
   if(_CLASS.totalChekedFileSizes==_CLASS.loaderQueue.length){
   var loadTime=(getTimer()-startTime)/1000   
   dbg.dbg('totalChekedFileSizes: ' + 
_CLASS.totalChekedFileSizes+' in '+loadTime+' seconds')
   dbg.dbg(FILESIZE 
+(_CLASS.allFilesBytesTotal/1048576)+ MB / +_CLASS.allFilesBytesTotal)

   _CLASS.processLoaderQueue()
  
   }

   }
   FS[index_ID].url=loaderQueue[index_ID].url
   }   
   }


___-



class nl.latcho.util.file.getFileSize extends MovieClip{   
   private var classRoot:getFileSize;

   private var mediaURL:String=null;
   private var mediaSize:Number=null;
   private var temp_mc:MovieClip;
   private var mc_loader:MovieClipLoader
   private var loadListener:Object;
  
   public var onSize:Function;


  
   public function getFileSize(){
   classRoot=this;   
   }
  
  
   public function set url(URL_str:String){

   if(temp_mc==null){
   //creates temporary mc container for MovieClipLoader with 
unique random name;
   var 
temp_mc_str:String=fileSizeCheckTmp+random(10)+-+random(10)+-+random(10)+_mc
   
temp_mc=_root.createEmptyMovieClip(temp_mc_str,_root.getNextHighestDepth())

   temp_mc._visible=false
   temp_mc._x=temp_mc._y=-
   }
   mediaURL=URL_str;
   checkSize()
   }//endd set url
  
  
  
   public function get size():Number{

   return mediaSize;
   }
  
   private function checkSize(){

   if(mediaURL){
   var CR:getFileSize=classRoot;
   mc_loader=new MovieClipLoader()
   loadListener=new Object()
   mc_loader.addListener(loadListener);
  
   
loadListener.onLoadProgress=function(targ_mc:MovieClip,curBytes:Number,ttlBytes:Number){


   CR.stopLoading(targ_mc)
   CR.mediaSize=ttlBytes;
   CR.mediaSize=ttlBytes;
   //trace(CHECKEDFILES:+targ_mc+size:+ttlBytes+ 
url:+CR.mediaURL)   
   CR.onSize();  // call - for the user to define: 
remoteFileSize.onSize=function(){myMediaSize=this.size} 
   delete this;

   }
   loadListener.onLoadError=function(targ_mc:MovieClip){   
   CR.stopLoading(targ_mc)
   //trace(CHECKEDFILES:+targ_mc+size:+ttlBytes+ 
url:+CR.mediaURL)   
   CR.mediaSize=-1
   CR.onSize(); // call - for the user to define: 
remoteFileSize.onSize=function(){myMediaSize=this.size} 
   trace(remoteFileSize loadError:size=-1 :+ CR.mediaURL)

   delete this;
  
   }
   loadListener.onLoadComplete=function(targ_mc:MovieClip){   
   trace(COMPLETED [remoteFileSize/checkSize]:+targ_mc+  
this should hardly happen, only if file is small or cached or local)   
   }
  
   mc_loader.loadClip(mediaURL,temp_mc)
  
   }else{

   trace(remoteFileSize: no url specified)
   }
   }

  
   private function stopLoading(targ_mc){
   mc_loader.removeListener(loadListener)   
   mc_loader.unloadClip(targ_mc)

   temp_mc.removeMovieClip()
   }
  
}//end remoteFileSize


Sascha Balkau wrote:

Hi Adrian,

thanks for the idea but this approach will not work in my case because 
the images are loaded sequencially. If one image is finished loading, 
my class starts loading the next and so on, one after one. And the 
amount of images varies (the image filenames are fetched from a XML 
file).
I'm now defining a segmentWidth by dividing the full progressbar width 
by 

Re: [Flashcoders] Contaminated list?

2006-03-14 Thread Zárate
I've got 5 emails in my spam folder from flashcoders right now,

Same here, and I even have one filter for [EMAIL PROTECTED] to archive
them... so Gmail antispam filter is NOT perfect :)

Bye!

On 3/12/06, Rich Rodecker [EMAIL PROTECTED] wrote:
 really?  I've got 5 emails in my spam folder from flashcoders right now.

 On 3/11/06, murder design [EMAIL PROTECTED] wrote:
  never had a false positive regarding spam with gmail. always filters
  PERFECT. dont even waste your time opening up the spam folder...
 
  -edward
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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



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

2006-03-14 Thread Dennis - I Sioux
Hey,

Was wondering if anyone had any problems with the addRequestHeader.

A few requests comming to the server when i use loadvars.send in a _blank 
window have lost their post and the headers i attached in flash.

Many thanks!

Best regards,


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

2006-03-14 Thread Kevin Aebig
Test

 

!k

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Still need help-Can't reference library font fromclass

2006-03-14 Thread Merrill, Jason
Jamie, thanks - so I tried calling setNewTextFormat(theFormat) before
(and also after) I set the text value the second time, and it still
doesn't show the text field.  If I just set the text and the text format
one time, it shows up fine.  

This is unbelievably frustrating, why would Flash behave so?  Seems very
buggy to me.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Jamie S
Sent: Friday, March 10, 2006 4:13 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Still need help-Can't reference library
font fromclass

Although I have had my fair share of headaches with TextFormat, I
think I may know what is going on here.

There are two methods for assigning a textFormat to a textField. These
are setTextFormat() and setNewTextFormat().

The way I understand it setTextFormat() sets the style of the text
that is currently assigned to the textField BUT any new text assigned
by actionscript, by replaceSel() or by the user (in the case of input
text) is styled according to the setNewTextFormat() method and if none
is given, as in your class, the new text is given some default style,
which, as you've noticed, is not necessarily the same as the style you
defined by setTextFormat().

so I would try using setNewTextFormat() also and see if that works.

J

On 3/10/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 I finally did get this to work by trying it in a fresh .fla, but now
I'm
 seeing this issue:

 When I do this:

 import com.icfconsulting.objects.SimpleTextField;
 tf=SimpleTextField.create(this)

 It's fine, the text field show and with the right font.  But when I
try
 and set the text on the text field it returns, like this:

 import com.icfconsulting.objects.SimpleTextField;
 tf=SimpleTextField.create(this)
 tf.text=hello, hello!

 It just shows blank, like setting the text on the text field my
class
 returns screws it up somehow.  Any idea what's up? The class code is
the
 same, and I am trying this in a new fresh .fla with a Swis font in
the
 library.  Why would adding that one line screw it up again?

 My simple class test file is as follows:

 class com.icfconsulting.objects.SimpleTextField{
public static function create(target_mc:MovieClip):TextField{
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = Swis;
my_fmt.color = 0x00;
my_fmt.size = 16;
target_mc.createTextField(tf_txt,0,20,20,200,20);
target_mc.tf_txt.embedFonts = true;
target_mc.tf_txt.text=Hello world;
target_mc.tf_txt.setTextFormat(my_fmt);
return target_mc.tf_txt;
}
 }

 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com




 NOTICE:
 This message is for the designated recipient only and may contain
privileged or
confidential information. If you have received it in error, please
notify the sender
immediately and delete the original. Any other use of this e-mail by
you is
prohibited.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Re: using onLoad() in components

2006-03-14 Thread Rich Rodecker
is flashcoders dead?

On 3/12/06, Rich Rodecker [EMAIL PROTECTED] wrote:
 i have a component which is made up of other components. Right now, I
 have an onLoad() set up that will set up the main component to listen
 for some events of the subcomponents.  It works fine, but I'm just
 wondering if this is the preferred way of doing it.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OT time investment in learning V2 Components

2006-03-14 Thread Manuel Saint-Victor
I came across and have been reading a copy of AdvancED components from
friends of Ed and thus far I am enjoying it but have a question that I would
like to toss out to The elders of the Flash community for feedback.
With the introduction of Flex 2 and AS3 am I making a worthwhile investment
of my time learning things such as V2 component coding.  I know that part of
the answer is all learning is good learning--and so on but I also remember
mention that the Flex components would essentially be replacing the V2 set.

Is the knowledge gained working with V2 going to help me with using the Flex
component set because of the many similarities in certain aspects of the API
or are differences such as the inheritance relationship such that I need to
not be putting that stuff in my brain and just bide my time with the AS3
Language reference until the Flex books start to hit the shelves.

As an additional piece of context to my motivation/goals for learning
Flash/Flex- I'm thinking as far as in the long run.  Not for jobs now but
say in a couple of years when AS3 has gone out in the world- and for
personal growth as an aspiring Flash/Flex  developer - not day to day making
a living.
As I aside note to my OT- I'm loving this trend that when you pick up the
Actionscript books nowadays they get right to the meat- Class file right out
the gates.

Thanks for listening/reading and I look forward to any insight and sharing
of feelings and crystal ball gazing that anyone can put out there.

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

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


Re: [Flashcoders] storing embedded font data in local sharedobjects(LSOs)?

2006-03-14 Thread Edward Hotchkiss
just curious - is there any other requirement to embedding pixel fonts/fonts 
than importing into an fla's library, linking for as2.0, and specificying a 
name (which could be referenced via a textFormat? i am curious because i 
have issues with displaying pixel fonts/any fonts when linking like that...


-edward.

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

2006-03-14 Thread Scott Hyndman
I can't actually. Sorry, I just don't know of any.

You know, if you have any problems, you just just post in our forum. You really 
aren't bugging us when you ask questions.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of cornel
Sent:   Tue 3/14/2006 12:06 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] ActionStep, help compiling examples.

I'm looking forward to it, as i'm having quite a hard time getting a
grasp of actionstep. While working with some widgets is
straightforward, some are (for me) obscure. Earlier i've spent a
couple of hours trying to populate a nsbrowser with some data, to no
avail.
Could someone point me to some good cocoa tutorials, that are
meaningful for learning actionstep? I've read some docs
(http://developer.apple.com/documentation/Cocoa/index.html), but some
samples would be useful.

thanks
cornel

On 3/11/06, Scott Hyndman [EMAIL PROTECTED] wrote:
 By the way. We're getting close to a second release, and this one will
 be launched alongside a new website with some great tutorials on getting
 started.

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

2006-03-14 Thread Jati Putra

Hi, All
I have a problem when use tween/ease class. The button inside the movie 
clip that i tween didn`t work.

I attach my work file here. Maybe someone can help me with this stuff.

Thank
Jati
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Web service call not working on network

2006-03-14 Thread Mick G
Does anyone have any tips why a site i'm using that is connecting to Web
Services works fine in the IDE, and works fine outside my work network but
not from my work network. At first I thought perhaps the port number was
blocked at work but it is working within the Flash IDE and when I view the
swf on my local PC.

Anyone come across this before?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Marrying Function.apply() to WebService web methodcalls

2006-03-14 Thread David Stiller
Got it!  The solution is due entirely to Arjan van Ham, who recently
Googled a year-and-a-half old variant of my question on the flash-db.com
forum.  Thanks Arjan!

Now that I see it, the answer is slap-your-forehead obvious.  eval()
to the rescue.

// Replace this ...
var pc:PendingCall = ws[meth].apply(null, param);

// with this ...
var pc:PendingCall = eval(ws. + meth).apply(ws, param);


 At this point, I should be able to slap in Function.apply(),
 like so ...

 // THIRD TRY
 import mx.services.*;
 var wsdl:String = http://www.webservicex.net/uszip.asmx?WSDL;;
 var meth:String = GetInfoByZIP;
 var param:Array = [90210];
 var ws:WebService = new WebService(wsdl);
 var pc:PendingCall = ws[meth].apply(null, param);
 pc.onResult = function(evt) {
   trace(evt.NewDataSet);
 };

 ... but it all falls apart.  If you turn on VERBOSE logging,
 everything rolls along as usual until it hangs on the final
 line ...

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Loading several images with one progressbar?

2006-03-14 Thread Adrian Park
Another oops...

This line...
var alreadyLoaded:Number = currentImageNo * segmentSize;
... should be...
var alreadyLoaded:Number = (currentImageNo-1) * segmentSize;

A.

On 3/12/06, Adrian Park [EMAIL PROTECTED] wrote:

 Oops, spotted a mistake!

 This line...

 var currentImageProgress:Number = ( 
 currentImage.getBytesLoaded()/currentImage.getBytesTotal()
 )/100;
 ...should be...

 var currentImageProgress:Number = ( 
 currentImage.getBytesLoaded()/currentImage.getBytesTotal()
 )*100;

 (multiply by 100 at the end)

 A.


 On 3/12/06, Adrian Park [EMAIL PROTECTED] wrote:
 
  Hey Sascha,
 
  I see what you mean - the main problem is you have no way of knowing the
  sum total of all the bytes to load when the download process starts.
 
  I like the idea of dividing the bar into segments, one per image. I
  think I'd try something like this:
 
  Lets say there are 5 images to load - image_1, image_2 e.t.c
  100/5 = 20
  So, we need to map 0-100% of the bytesLoaded for image_1 to the 0-20%
  segment on our loading bar, then we map 0-100% of the bytesLoaded for
  image_2 to the 20-40% segment on our loading bar and so on, and so on...
 
  The code would look something like so (completely untested!)...
 
  var imageCount:Number = i; // total number of mc's to load
  var currentImageNo:Number = c; // the curent image number
  var currentImage:MovieClip = this[image_+currentImageNo]; // reference
  to the current MovieClip/Image
  var segmentSize:Number = 100/imageCount; // the size of each segment on
  the loader bar
 
  // map progress to a segmented progress bar
  var currentImageProgress:Number = ( 
  currentImage.getBytesLoaded()/currentImage.getBytesTotal()
  )/100;
  var alreadyLoaded:Number = currentImageNo * segmentSize;
  /*
  Work out current image's progress as proportion of one segment
  i.e. if segmentSize=20, currentImageProgress=50
  currentImageProgressMapped=20*(50/100)=10
  */
  var currentImageProgressMapped:Number = segmentSize *
  (currentImageProgress/100);
  var totalCurrentProgress:Number = alreadyLoaded +
  currentImageProgressMapped;
 
  // finally, something like
  myProgressBar._xscale = totalCurrentProgress;
 
  Of course, the code could be abbreviated a bit but I've broken the steps
  of the calculation out for clarity - I hope it makes sense! Let me know if
  this gets you closer to what you are looking for.
 
  Cheers, Adrian P
 
 
  On 3/12/06, Sascha Balkau [EMAIL PROTECTED]  wrote:
  
   Hi Adrian,
  
   thanks for the idea but this approach will not work in my case because
   the
   images are loaded sequencially. If one image is finished loading, my
   class
   starts loading the next and so on, one after one. And the amount of
   images
   varies (the image filenames are fetched from a XML file).
   I'm now defining a segmentWidth by dividing the full progressbar width
   by
   the amount of images that are going to be loaded. That gives me the
   100% for
   one image on the whol bar. I just haven't figured out yet how to make
   it
   work so that the bar doesn't start from 0 at every image. Any other
   idea?
  
   Sascha
  
  
  
  
  
   - Original Message -
   From: Adrian Park  [EMAIL PROTECTED]
   To: Flashcoders mailing list  flashcoders@chattyfig.figleaf.com
   Sent: Sunday, March 12, 2006 3:24 AM
   Subject: Re: [Flashcoders] Loading several images with one
   progressbar?
  
  
   Say you have 3 images loading, use something like this:
  
   var bytesLoaded:Number = 0;
   var bytesTotal:Number = 0;
  
   bytesLoaded += image1.getBytesLoaded();
   bytesTotal += image1.getBytesTotal();
   bytesLoaded += image2.getBytesLoaded();
   bytesTotal += image2.getBytesTotal();
   bytesLoaded += image3.getBytesLoaded();
   bytesTotal += image3.getBytesTotal ();
  
   var percentageLoaded:Number = (bytesLoaded/bytesTotal) * 100;
  
   There may be ways to optimise this code depending on your
   circumstances
   (e.g.
   just calculate bytesTotal once and reuse it) but this shows the basic
   idea.
  
   Adrian P.
  
  
   On 3/11/06, Sascha Balkau [EMAIL PROTECTED] wrote:
   
Hi,
this is probably an old hat but I can't get it right. I want to
   display
the
load progress of several images with one progress bar. How do I
   calculate
the percentage of the bar?
   
Thanks alot,
Sascha
   
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 

RE: [Flashcoders] test

2006-03-14 Thread Kevin Aebig
test

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Éric
Thibault
Sent: March 14, 2006 2:10 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] test

Is it online now?
Dave Watts wrote:

test

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

  



-- 
===

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, Canada
Tel.: 656-2131 poste 18015
Courriel : [EMAIL PROTECTED]

===

Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia
de confidencialidad
http://www.rec.ulaval.ca/lce/securite/confidentialite.htm

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

2006-03-14 Thread Dave Watts
 Is it online now?

Yes.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

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

2006-03-14 Thread Christian

testing

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] storing embedded font data in local shared objects(LSOs)?

2006-03-14 Thread Oleg Filipchuk
Hey Ken,
why not keeping font libraries in exeternal swf files so when user loads it
once it will stay in user's cache?

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

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


[Flashcoders] XML Node ID in Flash MX

2006-03-14 Thread Sean Tamblyn
I've been looking for a way to modify XML nodes in Flash MX via standard
dot syntax.  Tatsuo Kato's functions
(http://tatsuokato.com/flash/XMLNodeEasyAccess.as) do a wonderful job of
letting one read XML nodes with unique IDs via standard dot syntax, but
there doesn't seem to be any way to modify those nodes.  I.e:

trace(myXML.nodeA.nodeB.firstChild.nodeValue);

returns the expected value but

myXML.nodeA.nodeB.firstChild.nodeValue = newNodeValue

doesn't do anything at all.

Anyone have a nice way of modifying XML nodes by standard dot syntax in
Flash MX?

Cheers,

S.

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

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


[Flashcoders] Flash IDE Panel wierdness

2006-03-14 Thread John Grden
Basically, I have gProject and Flasc open as panels that are grouped with
the library.

I've created a new panel and put it in the windowSWF director, restarted
Flash IDE.

Everytime, I choose to open the new panel, the only thing that happens is
tha gProject is either put into focus, or opened if the panel is closed.

Anyone else experience this?

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

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


[Flashcoders] Re: Flash IDE Panel wierdness

2006-03-14 Thread John Grden
never mind:

thanks Ryan - MUCH LOVE!
http://oddhammer.com/index.php/site/comments/flash_opens_the_wrong_panel_time_for_a_coffee_break

On 3/13/06, John Grden [EMAIL PROTECTED] wrote:

 Basically, I have gProject and Flasc open as panels that are grouped with
 the library.

 I've created a new panel and put it in the windowSWF director, restarted
 Flash IDE.

 Everytime, I choose to open the new panel, the only thing that happens is
 tha gProject is either put into focus, or opened if the panel is closed.

 Anyone else experience this?

 --
 John Grden - Blitz




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

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


Re: [Flashcoders] Loading several images with one progressbar?

2006-03-14 Thread Janis Radins
just read  file size  on server-side and pass it along image urls

2006/3/12, Sascha Balkau [EMAIL PROTECTED]:

 Hi Adrian,

 thanks for the idea but this approach will not work in my case because the
 images are loaded sequencially. If one image is finished loading, my class
 starts loading the next and so on, one after one. And the amount of images
 varies (the image filenames are fetched from a XML file).
 I'm now defining a segmentWidth by dividing the full progressbar width by
 the amount of images that are going to be loaded. That gives me the 100%
 for
 one image on the whol bar. I just haven't figured out yet how to make it
 work so that the bar doesn't start from 0 at every image. Any other idea?

 Sascha





 - Original Message -
 From: Adrian Park [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, March 12, 2006 3:24 AM
 Subject: Re: [Flashcoders] Loading several images with one progressbar?


 Say you have 3 images loading, use something like this:

 var bytesLoaded:Number = 0;
 var bytesTotal:Number = 0;

 bytesLoaded += image1.getBytesLoaded();
 bytesTotal += image1.getBytesTotal();
 bytesLoaded += image2.getBytesLoaded();
 bytesTotal += image2.getBytesTotal();
 bytesLoaded += image3.getBytesLoaded();
 bytesTotal += image3.getBytesTotal();

 var percentageLoaded:Number = (bytesLoaded/bytesTotal) * 100;

 There may be ways to optimise this code depending on your circumstances
 (e.g.
 just calculate bytesTotal once and reuse it) but this shows the basic
 idea.

 Adrian P.


 On 3/11/06, Sascha Balkau [EMAIL PROTECTED] wrote:
 
  Hi,
  this is probably an old hat but I can't get it right. I want to display
  the
  load progress of several images with one progress bar. How do I
 calculate
  the percentage of the bar?
 
  Thanks alot,
  Sascha
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] OT: dumb PowerPoint question

2006-03-14 Thread Mendelsohn, Michael
Hi list...

When playing a PowerPoint slide show, if you right click the
presentation, choose Go, then By Title, you get a menu of slides:

1 Slide 1
2 Slide 2
3 Slide 3

I can't figure out where to rename the slides.  Can anyone clue me in?
My slides are just a jpg, no text, so is it even possible to give it a
title?

Thanks,
- Michael M.


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

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


[Flashcoders] using onLoad() in components

2006-03-14 Thread Rich Rodecker
i have a component which is made up of other components. Right now, I
have an onLoad() set up that will set up the main component to listen
for some events of the subcomponents.  It works fine, but I'm just
wondering if this is the preferred way of doing it.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Setting Focus on TextInput Component

2006-03-14 Thread Danny
I have set the tab order for a group of TextInput components.  If I use 
the TAB button, it cycles through the tab order as it should, and 
highlights each textInput with a halo.  But if I use the mouse instead 
to select focus, I get the I-beam indicating the component received 
focus, but I do not get the halo indicator.  What am I missing?


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

2006-03-14 Thread Scott Fegette
FYI, I can't speak specifically to either root cause or eventual effect/fix,
but this entire thread has been routed to the Player team for triage and
consideration (as will any subsequent suggestions/comments that follow
fhere).  Thanks for bringing it to our attention!

-Scott

scott fegette
adobe systems

On 3/13/06, Darren Cook [EMAIL PROTECTED] wrote:

 On Feb 25th 2006 Andreas Rønning wrote:
  This is very serious. The majority of my work is kiosk apps.
  Any more details on this, official Macromedia stance on it? Future
 fixes?

 Does anyone have more information on this? For instance what kind of
 features or media types or actionscript are causing the leak?

 We have a flash 8 application that has to be able to run for months
 without rebooting, but was leaking memory at 31Mb/hour! I realized I
 still had a textarea logger running but having removed that it is still
 leaking at 5MB/hour.

 We've tried running it as Flash 7, and also tried disabling all flv
 movies, but it still seems to leak at the same rate. Does that sound
 like something wrong we're doing in the actionscript (e.g. somehow
 holding on to references so stopping the garbage collector freeing the
 memory?) or like a player bug?

 Is there a way to force the garbage collector to run? (our application
 often has the CPU near 100% - I wondered if garbage collection only
 happens when the CPU is quiet?)

 Has anyone seen the memory leak go away when switching to zinc or a
 similar projector?

 Any advice would be very welcome,

 Darren


  Marcelo Volmaro wrote:
  Well, unless you used a lot of the new FX, i recommend you going back
  to the v7 player. The v8 has a lot of errors/memory leaks, mostly of
  them related to the new bitmap engine.
 
  I recently had to change a lot of code that takes advantage of the new
  system to the old one, because a lot of things breaks badly.
 
  On Fri, 24 Feb 2006 15:32:51 -0300, Joe Cutting [EMAIL PROTECTED]
  wrote:
 
  Hello,
 I think I've found a memory leak in the Flash player on the PC.
  I made a fairly simple animation (no actionscript) and built a
  projector and when I run
  it in a loop the amount of memory needed continues to rise. (as
  measured using Task Manager).
 
  I'm using Flash Player version 8,0,22,0 on Windows XP professional.
 
  Has anyone else experienced this, or even better found a cure?
 
  If there is no cure then this is pretty serious for anyone using
  flash in a kiosk type situation.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




--


- Scott
  Macromedia, Inc.
[EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flex2 Project Conversion

2006-03-14 Thread Johannes Nel
i would start porting without worrying about it, beta2 is on its way out,
and some things might change, but nothing to be overly concerned about i
think. it took me less than a day to port all my code from alpha 1 to beta
1.  if you know mxml already you are already well on your way . flex 2 and
as3 is really awsome, i enjoyed working in flex1.5 as well but  as3 is
brilliant

On 3/14/06, Kevin Aebig [EMAIL PROTECTED] wrote:

 Hey all,



 The company I work for is interested in moving one of our large
 applications
 over to Flex when the new version comes out. Is it worthwhile or even
 feasible to begin porting it over with the Beta release or are we wasting
 our time considering that quite a bit of it could change beforehand.



 I'd hate to put in a lot of time into this only to find out that my source
 files are rendered obsolete when the new version is finally released.



 Thanks for your input,



 !k

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

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




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

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


Re: [Flashcoders] Flex2 Project Conversion

2006-03-14 Thread Johannes Nel
as a side note, you don't need to use flex if file size is a worry, but the
flex framework really gives you a ton of power.

On 3/14/06, Johannes Nel [EMAIL PROTECTED] wrote:

 i would start porting without worrying about it, beta2 is on its way out,
 and some things might change, but nothing to be overly concerned about i
 think. it took me less than a day to port all my code from alpha 1 to beta
 1.  if you know mxml already you are already well on your way . flex 2 and
 as3 is really awsome, i enjoyed working in flex1.5 as well but  as3 is
 brilliant

 On 3/14/06, Kevin Aebig [EMAIL PROTECTED] wrote:
 
  Hey all,
 
 
 
  The company I work for is interested in moving one of our large
  applications
  over to Flex when the new version comes out. Is it worthwhile or even
  feasible to begin porting it over with the Beta release or are we
  wasting
  our time considering that quite a bit of it could change beforehand.
 
 
 
  I'd hate to put in a lot of time into this only to find out that my
  source
  files are rendered obsolete when the new version is finally released.
 
 
 
  Thanks for your input,
 
 
 
  !k
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



 --
 j:pn
 http://www.lennel.org




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

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


RE: [Flashcoders] Flex2 Project Conversion

2006-03-14 Thread Merrill, Jason
I wouldn't bet any project on a beta personally - unless I had insiders
at Adobe, but even then...  

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Kevin Aebig
Sent: Tuesday, March 14, 2006 1:35 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Flex2 Project Conversion

Hey all,



The company I work for is interested in moving one of our large
applications
over to Flex when the new version comes out. Is it worthwhile or even
feasible to begin porting it over with the Beta release or are we
wasting
our time considering that quite a bit of it could change beforehand.



I'd hate to put in a lot of time into this only to find out that my
source
files are rendered obsolete when the new version is finally released.



Thanks for your input,



!k

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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ActionStep, help compiling examples.

2006-03-14 Thread Scott Hyndman
Oh, and part of the reason that people don't have to talk about this stuff is 
that Apple's Interface Builder is pretty incredible.

Once we're finished AIB (ActionStep Interface Builder), people are going to 
have a much easier time.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Scott Hyndman
Sent:   Tue 3/14/2006 4:07 PM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Flashcoders] ActionStep, help compiling examples.

I can't actually. Sorry, I just don't know of any.

You know, if you have any problems, you just just post in our forum. You really 
aren't bugging us when you ask questions.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of cornel
Sent:   Tue 3/14/2006 12:06 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] ActionStep, help compiling examples.

I'm looking forward to it, as i'm having quite a hard time getting a
grasp of actionstep. While working with some widgets is
straightforward, some are (for me) obscure. Earlier i've spent a
couple of hours trying to populate a nsbrowser with some data, to no
avail.
Could someone point me to some good cocoa tutorials, that are
meaningful for learning actionstep? I've read some docs
(http://developer.apple.com/documentation/Cocoa/index.html), but some
samples would be useful.

thanks
cornel

On 3/11/06, Scott Hyndman [EMAIL PROTECTED] wrote:
 By the way. We're getting close to a second release, and this one will
 be launched alongside a new website with some great tutorials on getting
 started.

 Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS2.0 mingles well AS1.0?

2006-03-14 Thread Boon Chew
Me and my coworkers are in the process of migrating a large body of old AS 1.0 
code to AS 2.0 (finally!).   Since it's impossible to rewrite everything in one 
fell swoop, we expect that for some time the system will be in a state in which 
it's mixed with AS 1.0 and AS 2.0.

Questions we have:

What sort of issues or potential problems should we be watching out for? 

What is your experience with AS1.0 code mingling with AS2.0 code? Positive, 
Negative?

Do you seen any problems with AS1.0 mixing with AS2.0 code, if we avoid using 
any Flash 7 specific API? (since theoretically AS2.0 compiles down to 1.0)

Initially the code will be compiled for Flash 6.0.  Do you see any problem with 
trying to compile the same code later for Flash 7?

- boon

-
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Web service call not working on network

2006-03-14 Thread Johannes Nel
sound like a crossdomain policy issue. run a http sniffer and see if there
is a request for a crossdomain.xml file

On 3/12/06, Mick G [EMAIL PROTECTED] wrote:

 Does anyone have any tips why a site i'm using that is connecting to Web
 Services works fine in the IDE, and works fine outside my work network but
 not from my work network. At first I thought perhaps the port number was
 blocked at work but it is working within the Flash IDE and when I view the
 swf on my local PC.

 Anyone come across this before?
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




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

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


Re: [Flashcoders] OT time investment in learning V2 Components

2006-03-14 Thread JesterXL
Yes.  ActionScript is the same in Flash and Flex.  Flex MX 2004  8 use AS2, 
and Flex 1.5 uses AS.  Both use a similiar API for components, and 
everything in MXML can be done in ActionScript since MXML is compiled down 
to ActionScript before being compiled to SWF.

Both use EventDispatcher, and AS3 has this built into the language.  While 
the jury is out if Adobe will provide a way for the Free Flex SDK, which has 
the Flex 2 components included, into Flash 9 (Blaze) since it'll support 
AS3, I'm sure there is a way.  That said, there will be no effort on new 
coding components for Flash 9 since the Flex team is responsible for them, 
so yes, your efforts will pay off in both tools, just at different times.

Flash is always faster for testing code than even Flex 2, and is a valuable 
tool in your arsenal.  While the EventDispatcher is no longer written in 
ActionScript, it still helps to understand how mixins work in prototype 
languages.  While DataProvider is no longer a mixin in Flex 2 framework, and 
instead used via interfaces and a new class, ArrayCollection, it still helps 
to understand how Decatorator patterns work so you can apply those lessons 
in other prototype languages.


- Original Message - 
From: Manuel Saint-Victor [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, March 12, 2006 11:25 AM
Subject: [Flashcoders] OT time investment in learning V2 Components


I came across and have been reading a copy of AdvancED components from
friends of Ed and thus far I am enjoying it but have a question that I would
like to toss out to The elders of the Flash community for feedback.
With the introduction of Flex 2 and AS3 am I making a worthwhile investment
of my time learning things such as V2 component coding.  I know that part of
the answer is all learning is good learning--and so on but I also remember
mention that the Flex components would essentially be replacing the V2 set.

Is the knowledge gained working with V2 going to help me with using the Flex
component set because of the many similarities in certain aspects of the API
or are differences such as the inheritance relationship such that I need to
not be putting that stuff in my brain and just bide my time with the AS3
Language reference until the Flex books start to hit the shelves.

As an additional piece of context to my motivation/goals for learning
Flash/Flex- I'm thinking as far as in the long run.  Not for jobs now but
say in a couple of years when AS3 has gone out in the world- and for
personal growth as an aspiring Flash/Flex  developer - not day to day making
a living.
As I aside note to my OT- I'm loving this trend that when you pick up the
Actionscript books nowadays they get right to the meat- Class file right out
the gates.

Thanks for listening/reading and I look forward to any insight and sharing
of feelings and crystal ball gazing that anyone can put out there.

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

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

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

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


[Flashcoders] Anyone looking for a job just north of Indy?

2006-03-14 Thread Spencer Markowski
My company is looking to hire an expert Actionscript 2.0 to help in a huge
project I've been putting together. Lots of interesting problems to solve
spanning all of Flash.

Must be willing to learn / work hard.

Must know:
 -AS 2.0 classes, OOP
-XHTML
-CSS
-PHP

Must live in area around Indianapolis..located in Zionsville, IN

Feel free to respond to [EMAIL PROTECTED] with Actionscript 2.0 in the
subject line.


--
Spencer Markowski
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Trying Again:External Interface API and External .js Files[SOLVED]

2006-03-14 Thread Christian

Im a complete idiot and get what I deserve for working late at night.

Always close your script tag and make sure partner developer actually 
puts the .js file on the server named as you thought and located where 
you thought.


what a tool

Christian wrote:

Hey Everyone,

I'm usually just in the background reading all the good information, 
but now I actually have a question I can't find the answer to.


I'm trying to rewrite some tracking functionality that I have 
utilizing external .js files and I can't seem to use the external API 
unless the JavaScript function is on the page in between the script tags.


Can you do this with external .js files?  If so, is there somewhere 
you can point me?


Any help one can provide would be much appreciated...

THanks,

Christian



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

2006-03-14 Thread Wade Arnold
Yes pay is negotiable. Senior flash and senior Server application developers
can expect 48-60 based on experience. 60+ if you want to run the department.

We have several wonderful developers that work for us now. Billy Bateman
from blurrdesign.com and Judah Frangipan from Drumbeatinsight.com are both
full time members that I would consider senior developers.



Thanks;
Wade



On 3/12/06 9:33 PM, Wade Arnold [EMAIL PROTECTED] wrote:

 T8DESIGN is looking to meet our rapid growth with five new creative and
 innovative individuals. T8DESIGN services national and international
 customers out of our office on the TEAM Technologies campus in Cedar Falls,
 Iowa. T8DESIGN has been in business for two years and has 22 employees.
 T8DESIGN services the financial services marketplace with custom application
 and components.  
 
 We are currently looking for applicants that have experience in the
 following disciplines.
 
 2 x Software Engineering
 2 x Flash Developer
 1 X Application Database Engineer
 
 * Software development positions 30k-55k base based
  on experience. 
 * Flash developer positions 28-44k base based on experience.
 * Application Database Engineer 38-62k base based on experience.
 * Performance bonuses can equal up to 10% of base salary.
 
 Please see the attached job description for additional information. All new
 team members will work 50% on internal projects and 50% on custom client
 applications. If you consider yourself to be in love with OOP, Java, PHP,
 DBA, Flash 8 , Flex or just think your a guru of one; please send your
 resume. If you have sent me your resume in the past please re-submit your
 application. If you are are a Rock Star and need more money please apply.
 
 Work was never designed to be this much fun! If you think that code,
 schema's, or interface design is sexy; this is the place for you! Please
 email [EMAIL PROTECTED] your resume. Let me know personally if you
 have any questions.
 
 We have monthly foosball tournaments on our office tornado table.
 
 T8DESIGN is 3 hours Minneapolis, 4.5 hours Chicago, 4 hours Omaha, 5 hours
 St. Luis, 5 hours Kansas City.
 
 You must be able to work in the US on site.
  
 
 Wade Arnold
 CTO T8DESIGN
 [EMAIL PROTECTED]
 http://www.t8design.com
 http://www.freedomplatform.com
 http://www.teamnet.net
  
 Responsibilities
 * Take ownership for research, design, implementation, and delivery of new
 features for this product.
 * Lead designs that have an impact on the fundamental user experience of the
 product. 
 * Work with customers, both internal and external to understand customer
 needs. 
 * Work with the QA group to assure best quality and rapid turnaround for
 changes that surface during quality testing.
 * Develop adequate documentation at all levels.
 * Develop thorough unit tests for your features.
 * Deliver robust, documented, efficient code quickly.
  
 Knowledge  Skills:
 * Experience creating multimedia, graphics or animation tools.
 * Strong comprehension of UI design and experience developing user
 interfaces. 
 * Passion for developing customer friendly applications.
 * Excellent communication skills and ability to take strong leadership in a
 collaborative manner.
 * Strong knowledge of web application development tools, technologies,
 languages (AS2/AS3, XML), and trends.
 * Proven ability to develop robust, efficient code in core areas of complex
 projects. 
 * Experience in full product development life cycle‹preferably in
 shrink-wrapped software.
 * Experience with unit testing.
  
 Ideal
  
 * Deep experience with Flex, ActionScript, or similar technologies.
 * Deep experience with client server paradigms.
 * Proven leadership ability.
 * Experience with other Macromedia products.
 * Experience writing Mac and Windows software.
 * Experience creating authoring tools or IDEs.
 * MS degree, or equivalent, preferred, with a focus on UI design,
 computer/human interaction, or design of development environments.
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Loading several images with one progressbar?

2006-03-14 Thread Adrian Park
Oops, spotted a mistake!

This line...
var currentImageProgress:Number = (
currentImage.getBytesLoaded()/currentImage.getBytesTotal()
)/100;
...should be...
var currentImageProgress:Number = (
currentImage.getBytesLoaded()/currentImage.getBytesTotal()
)*100;

(multiply by 100 at the end)

A.

On 3/12/06, Adrian Park [EMAIL PROTECTED] wrote:

 Hey Sascha,

 I see what you mean - the main problem is you have no way of knowing the
 sum total of all the bytes to load when the download process starts.

 I like the idea of dividing the bar into segments, one per image. I think
 I'd try something like this:

 Lets say there are 5 images to load - image_1, image_2 e.t.c
 100/5 = 20
 So, we need to map 0-100% of the bytesLoaded for image_1 to the 0-20%
 segment on our loading bar, then we map 0-100% of the bytesLoaded for
 image_2 to the 20-40% segment on our loading bar and so on, and so on...

 The code would look something like so (completely untested!)...

 var imageCount:Number = i; // total number of mc's to load
 var currentImageNo:Number = c; // the curent image number
 var currentImage:MovieClip = this[image_+currentImageNo]; // reference
 to the current MovieClip/Image
 var segmentSize:Number = 100/imageCount; // the size of each segment on
 the loader bar

 // map progress to a segmented progress bar
 var currentImageProgress:Number = ( 
 currentImage.getBytesLoaded()/currentImage.getBytesTotal()
 )/100;
 var alreadyLoaded:Number = currentImageNo * segmentSize;
 /*
 Work out current image's progress as proportion of one segment
 i.e. if segmentSize=20, currentImageProgress=50
 currentImageProgressMapped=20*(50/100)=10
 */
 var currentImageProgressMapped:Number = segmentSize *
 (currentImageProgress/100);
 var totalCurrentProgress:Number = alreadyLoaded +
 currentImageProgressMapped;

 // finally, something like
 myProgressBar._xscale = totalCurrentProgress;

 Of course, the code could be abbreviated a bit but I've broken the steps
 of the calculation out for clarity - I hope it makes sense! Let me know if
 this gets you closer to what you are looking for.

 Cheers, Adrian P


 On 3/12/06, Sascha Balkau [EMAIL PROTECTED] wrote:
 
  Hi Adrian,
 
  thanks for the idea but this approach will not work in my case because
  the
  images are loaded sequencially. If one image is finished loading, my
  class
  starts loading the next and so on, one after one. And the amount of
  images
  varies (the image filenames are fetched from a XML file).
  I'm now defining a segmentWidth by dividing the full progressbar width
  by
  the amount of images that are going to be loaded. That gives me the 100%
  for
  one image on the whol bar. I just haven't figured out yet how to make it
  work so that the bar doesn't start from 0 at every image. Any other
  idea?
 
  Sascha
 
 
 
 
 
  - Original Message -
  From: Adrian Park  [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Sunday, March 12, 2006 3:24 AM
  Subject: Re: [Flashcoders] Loading several images with one progressbar?
 
 
  Say you have 3 images loading, use something like this:
 
  var bytesLoaded:Number = 0;
  var bytesTotal:Number = 0;
 
  bytesLoaded += image1.getBytesLoaded();
  bytesTotal += image1.getBytesTotal();
  bytesLoaded += image2.getBytesLoaded();
  bytesTotal += image2.getBytesTotal();
  bytesLoaded += image3.getBytesLoaded();
  bytesTotal += image3.getBytesTotal ();
 
  var percentageLoaded:Number = (bytesLoaded/bytesTotal) * 100;
 
  There may be ways to optimise this code depending on your circumstances
  (e.g.
  just calculate bytesTotal once and reuse it) but this shows the basic
  idea.
 
  Adrian P.
 
 
  On 3/11/06, Sascha Balkau [EMAIL PROTECTED] wrote:
  
   Hi,
   this is probably an old hat but I can't get it right. I want to
  display
   the
   load progress of several images with one progress bar. How do I
  calculate
   the percentage of the bar?
  
   Thanks alot,
   Sascha
  
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/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
  

RE: [Flashcoders] XML Node ID in Flash MX

2006-03-14 Thread Merrill, Jason
There are some classes out there on the web you can use - I have one
that I can send offlist to you if you want where the nodes in the syntax
are the actual node names as they should be - not that firstChild crap.
OR, wait until Actionscript 3.0 comes out - it has native dot syntax for
XML built in (wooo hooo!).  You can try it out right now with the Flex 2
beta on the adobe labs site.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Sean Tamblyn
Sent: Tuesday, March 14, 2006 4:41 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] XML Node ID in Flash MX

I've been looking for a way to modify XML nodes in Flash MX via
standard
dot syntax.  Tatsuo Kato's functions
(http://tatsuokato.com/flash/XMLNodeEasyAccess.as) do a wonderful job
of
letting one read XML nodes with unique IDs via standard dot syntax,
but
there doesn't seem to be any way to modify those nodes.  I.e:

trace(myXML.nodeA.nodeB.firstChild.nodeValue);

returns the expected value but

myXML.nodeA.nodeB.firstChild.nodeValue = newNodeValue

doesn't do anything at all.

Anyone have a nice way of modifying XML nodes by standard dot syntax
in
Flash MX?

Cheers,

S.

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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Memory leak in Flash projector

2006-03-14 Thread André Goliath
I had similar issues and solved it by minimizing/restoring the App via a
third party wrapper (SWF Studio in my case) in an Interval. 
It seems that by doing that the Garbage Collector is forced to run, it´s the
same for Win.shide/show.

However I was not able to find the memory leak in my code yet, it is quite
complex with bunch of AS2 classes involved, but I *think* I deleted evere
reference after use, but maybe I´m wrong with that,...

hth

André


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Darren Cook
Sent: Tuesday, March 14, 2006 2:42 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Memory leak in Flash projector

On Feb 25th 2006 Andreas Rønning wrote:
 This is very serious. The majority of my work is kiosk apps.
 Any more details on this, official Macromedia stance on it? Future fixes?

Does anyone have more information on this? For instance what kind of
features or media types or actionscript are causing the leak?

We have a flash 8 application that has to be able to run for months
without rebooting, but was leaking memory at 31Mb/hour! I realized I
still had a textarea logger running but having removed that it is still
leaking at 5MB/hour.

We've tried running it as Flash 7, and also tried disabling all flv
movies, but it still seems to leak at the same rate. Does that sound
like something wrong we're doing in the actionscript (e.g. somehow
holding on to references so stopping the garbage collector freeing the
memory?) or like a player bug?

Is there a way to force the garbage collector to run? (our application
often has the CPU near 100% - I wondered if garbage collection only
happens when the CPU is quiet?)

Has anyone seen the memory leak go away when switching to zinc or a
similar projector?

Any advice would be very welcome,

Darren


 Marcelo Volmaro wrote:
 Well, unless you used a lot of the new FX, i recommend you going back
 to the v7 player. The v8 has a lot of errors/memory leaks, mostly of
 them related to the new bitmap engine.

 I recently had to change a lot of code that takes advantage of the new
 system to the old one, because a lot of things breaks badly.

 On Fri, 24 Feb 2006 15:32:51 -0300, Joe Cutting [EMAIL PROTECTED]
 wrote:

 Hello,
I think I've found a memory leak in the Flash player on the PC.
 I made a fairly simple animation (no actionscript) and built a
 projector and when I run
 it in a loop the amount of memory needed continues to rise. (as
 measured using Task Manager).

 I'm using Flash Player version 8,0,22,0 on Windows XP professional.

 Has anyone else experienced this, or even better found a cure?

 If there is no cure then this is pretty serious for anyone using
 flash in a kiosk type situation.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] seekBar and volumeBar Handle conflict

2006-03-14 Thread Amanda Kuek
Hello Jamay,

This doesn't directly answer your question, but I found that when I was in
the same situation as you (ie, making customised controllers for an FLV
player), the flvPlayback components weren't really the ideal answer for me.
They seemed quite difficult to customise as well as adding enormously to
file size.

I found that Lee Brimelow's series of tutorials[1] were really helpful to
make your own flv playback controls. It doesn't cover making a volume
slider, but you can make it pretty easily yourself after following the whole
series. Or if not, you can contact me off-list and I'll send you the code I
ended up using.

Hope that helps!

[1]
http://www.creativecow.net/show.php?page=/leaders/brimelow_lee/brimelow_lee.html.
The first one, Flash Video Basics: Part One, is right at the bottom.

On 3/1/06, Jamay Liu [EMAIL PROTECTED] wrote:

 Hi,
 I am trying to build a customized controller for my flv player with the
 flvPlayback components. For some reason, I can't get the SeekBar and the
 VolumeBar to behave properly together. They work fine when either is alone
 on the controller, but when they are both present, the seekBar handle
 doesn't drag when it is supposed to. Sometimes, a yellow rectangle flashes
 around the OTHER handle (on the volume bar) instead.
 Is this a bug? Anyone know how to fix it? I tried moving the handle around
 on the stage, but that didn't work.

 Thanks!

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

2006-03-14 Thread André Goliath
Check out the md5 encryption for Flash at
http://www.meychi.com/archive/31.php 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jiri
Heitlager
Sent: Tuesday, March 14, 2006 1:25 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Encrypting data

Hello,

I am currently making a game that sends the highscore to a php file that 
  puts it into a database. If I would just send the var score to a php 
file, then it will be quit easy to manipulate the score. Using the 
firefox plugin Live HTTP Headers it is easy to see what is being send 
from the flash movie, knowing the URL you could then set the data using 
that URL.
Does somebody know a way to encrypt the score in flash and then decrypt 
it in php?

Thnks.

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

2006-03-14 Thread Rich Rodecker
i tried posted this before but wanted to bump it now that the list is
back up, im not sure it went through the first time:

i have a component which is made up of other components. Right now, I
have an onLoad() set up that will set up the main component to listen
for some events of the subcomponents.  It works fine, but I'm just
wondering if this is the preferred way of doing it.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Help creating a component... :)

2006-03-14 Thread Jason

Howdy...  :)

I've been using Flash so long and I have never had a chance to create a 
component and I was wondering if somebody can guide me on this...  I've 
followed several examples over the period, and I never had it going further 
than the examples...  Maybe I just did not understand anything further than 
it was written in the tutorial or maybe my brain just cannot take it...


Okay...  I am using FMX 2004 and I'd like to create a component that calls 
an external PHP script with two arguments and get a data returned and 
display it in a text field on the stage...
I have created a quick PHP that returns the argument1 * argument2 like this 
which will return 'data=12' as an output and I want to display '12' in 
Flash...


http://cyanblue.flashvacuum.com/tmp/comptest.php?in1=3in2=4

Can somebody create a quick component so that I can learn from it???

Thanks...  :)

CyanBlue 



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

2006-03-14 Thread Merrill, Jason
So any educated guesses on when Flex 2 will be released?  Seems
early/mid summer-ish to me, but that's just a guess based on the updates
they send.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Johannes Nel
Sent: Tuesday, March 14, 2006 5:21 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex2 Project Conversion

i would start porting without worrying about it, beta2 is on its way
out,
and some things might change, but nothing to be overly concerned about
i
think. it took me less than a day to port all my code from alpha 1 to
beta
1.  if you know mxml already you are already well on your way . flex 2
and
as3 is really awsome, i enjoyed working in flex1.5 as well but  as3 is
brilliant

On 3/14/06, Kevin Aebig [EMAIL PROTECTED] wrote:

 Hey all,



 The company I work for is interested in moving one of our large
 applications
 over to Flex when the new version comes out. Is it worthwhile or
even
 feasible to begin porting it over with the Beta release or are we
wasting
 our time considering that quite a bit of it could change beforehand.



 I'd hate to put in a lot of time into this only to find out that my
source
 files are rendered obsolete when the new version is finally
released.



 Thanks for your input,



 !k

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

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




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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flex2 Project Conversion

2006-03-14 Thread Johannes Nel
i am contracting to large company and we are doing stuff using flex2, so...
i don't quite agree with your argument. also note what he says, they want to
move an existing app to flex2 and his concern is that it will change
radically from beta 1 to final product. the very fact that beta 2 is coming
out means that things are relatively stable and well along the path. i think
starting now will be a good idea. but thats just my opinion.

On 3/14/06, Merrill, Jason [EMAIL PROTECTED] wrote:

 I wouldn't bet any project on a beta personally - unless I had insiders
 at Adobe, but even then...

 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Kevin Aebig
 Sent: Tuesday, March 14, 2006 1:35 PM
 To: 'Flashcoders mailing list'
 Subject: [Flashcoders] Flex2 Project Conversion
 
 Hey all,
 
 
 
 The company I work for is interested in moving one of our large
 applications
 over to Flex when the new version comes out. Is it worthwhile or even
 feasible to begin porting it over with the Beta release or are we
 wasting
 our time considering that quite a bit of it could change beforehand.
 
 
 
 I'd hate to put in a lot of time into this only to find out that my
 source
 files are rendered obsolete when the new version is finally released.
 
 
 
 Thanks for your input,
 
 
 
 !k
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 NOTICE:
 This message is for the designated recipient only and may contain
 privileged or confidential information. If you have received it in error,
 please notify the sender immediately and delete the original. Any other use
 of this e-mail by you is prohibited.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




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

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


Re: [Flashcoders] Loading several images with one progressbar?

2006-03-14 Thread Adrian Park
Hey Sascha,

I see what you mean - the main problem is you have no way of knowing the sum
total of all the bytes to load when the download process starts.

I like the idea of dividing the bar into segments, one per image. I think
I'd try something like this:

Lets say there are 5 images to load - image_1, image_2 e.t.c
100/5 = 20
So, we need to map 0-100% of the bytesLoaded for image_1 to the 0-20%
segment on our loading bar, then we map 0-100% of the bytesLoaded for
image_2 to the 20-40% segment on our loading bar and so on, and so on...

The code would look something like so (completely untested!)...

var imageCount:Number = i; // total number of mc's to load
var currentImageNo:Number = c; // the curent image number
var currentImage:MovieClip = this[image_+currentImageNo]; // reference to
the current MovieClip/Image
var segmentSize:Number = 100/imageCount; // the size of each segment on the
loader bar

// map progress to a segmented progress bar
var currentImageProgress:Number = (
currentImage.getBytesLoaded()/currentImage.getBytesTotal()
)/100;
var alreadyLoaded:Number = currentImageNo * segmentSize;
/*
Work out current image's progress as proportion of one segment
i.e. if segmentSize=20, currentImageProgress=50
currentImageProgressMapped=20*(50/100)=10
*/
var currentImageProgressMapped:Number = segmentSize *
(currentImageProgress/100);
var totalCurrentProgress:Number = alreadyLoaded +
currentImageProgressMapped;

// finally, something like
myProgressBar._xscale = totalCurrentProgress;

Of course, the code could be abbreviated a bit but I've broken the steps of
the calculation out for clarity - I hope it makes sense! Let me know if this
gets you closer to what you are looking for.

Cheers, Adrian P

On 3/12/06, Sascha Balkau [EMAIL PROTECTED] wrote:

 Hi Adrian,

 thanks for the idea but this approach will not work in my case because the
 images are loaded sequencially. If one image is finished loading, my class
 starts loading the next and so on, one after one. And the amount of images
 varies (the image filenames are fetched from a XML file).
 I'm now defining a segmentWidth by dividing the full progressbar width by
 the amount of images that are going to be loaded. That gives me the 100%
 for
 one image on the whol bar. I just haven't figured out yet how to make it
 work so that the bar doesn't start from 0 at every image. Any other idea?

 Sascha





 - Original Message -
 From: Adrian Park [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Sunday, March 12, 2006 3:24 AM
 Subject: Re: [Flashcoders] Loading several images with one progressbar?


 Say you have 3 images loading, use something like this:

 var bytesLoaded:Number = 0;
 var bytesTotal:Number = 0;

 bytesLoaded += image1.getBytesLoaded();
 bytesTotal += image1.getBytesTotal();
 bytesLoaded += image2.getBytesLoaded();
 bytesTotal += image2.getBytesTotal();
 bytesLoaded += image3.getBytesLoaded();
 bytesTotal += image3.getBytesTotal();

 var percentageLoaded:Number = (bytesLoaded/bytesTotal) * 100;

 There may be ways to optimise this code depending on your circumstances
 (e.g.
 just calculate bytesTotal once and reuse it) but this shows the basic
 idea.

 Adrian P.


 On 3/11/06, Sascha Balkau [EMAIL PROTECTED] wrote:
 
  Hi,
  this is probably an old hat but I can't get it right. I want to display
  the
  load progress of several images with one progress bar. How do I
 calculate
  the percentage of the bar?
 
  Thanks alot,
  Sascha
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] Loading several images with one progressbar?

2006-03-14 Thread Ryan Potter
This is a bit of a mess and it is a little old (you could write it
better), but it works to do what you are asking.  It also requires that
you know the bytes of each file before you load.  The way I handled this
is to run the swf once and trace out the bytes and then put them into
the bytes array.  For the final version I just put the byte size in the
xml doc.  You could do this with php dynamically.

Good Luck.


stop();
/*
Set the stage variables 
*/
Stage.align = LT;
// prevent the Flash movie from resizing when the browser window changes
size. 
Stage.scaleMode = noScale;

/* 
Import the classes required to do tweened animation 
*/
import mx.transitions.Tween
import com.robertpenner.easing.*

init();

function init(){
// get the stage width and height and the center
this.stage_w = Stage.width;
this.stage_h = Stage.height;
this.stage_cen_w = this.stage_w/2;
this.stage_cen_h = this.stage_h/2;

// this is the current swf
num = 0;
// this is a variable to hold the total number of swfs
maxSwfs = 0;
// the max number of bytes for the swfs : derived from the array
maxBytes = 0;
// this is an array of the names of the swfs that are going to
populate 
// ui that will be resized.  
  contentArr = new Array ( box_content/box_1.swf, 

box_content/box_2.swf, 

box_content/box_3.swf, 

box_content/box_4.swf,

box_content/box_5.swf, 

box_content/box_6.swf, 

box_content/box_7.swf, 

box_content/box_8.swf, 

box_content/box_9.swf

);
// an array of the size in bytes of each of the swfs.
you can't get the total of and array of 
// images easiily
totalBytes = new Array (84349, 70577, 65088, 69532,
155475, 67709, 524, 203893, 8736);

// set the xsale to 0 so the preloader can get bigger
pre_bar_mc.bar_mc._xscale = 0;

// set the max swfs var to the lennth of the array
maxSwfs = contentArr.length;
// loop throught the array of total bytes of the swfs
// to move the preloader bar along
for (i=0; itotalBytes.length; i++){
maxBytes += Math.round(totalBytes[i]);
//trace(max + maxBytes);
}

this.createEmptyMovieClip(temp, 1);
this.temp.createEmptyMovieClip(image, 1);
this.temp._visible = false;
//this.info_txt.text = Loading Images...;
this.temp.image.loadMovie(contentArr[num]);
//this.thumb = true;
this.runningTotal = 0;

}

this.loadSwfs = function () {
this.stage_w = Stage.width;
this.stage_h = Stage.height;
this.stage_cen_w = this.stage_w/2;
this.stage_cen_h = this.stage_h/2;

this.pre_anim_mc._x = this.stage_cen_w-150;
this.pre_anim_mc._y = this.stage_cen_h-100;
this.pre_bar_mc._x = this.pre_anim_mc._x;
this.pre_bar_mc._y = this.pre_anim_mc._y + 220;

var curr = contentArr[num];
var curr_len = curr.length;
var type = curr.substring(curr_len-3, curr_len);
trace(**);
trace(curr +curr);
trace(curr_len +curr_len);
trace(type +type);
trace(__);
//trace(center w+ this.stage_cen_w);
//trace(center h+ this.stage_cen_h);



var total = temp.image.getBytesTotal();
var loaded = temp.image.getBytesLoaded();

pre_xscale = ((this.runningTotal + total) /
this.maxBytes) * 100;
this.pre_tween_xscale = new Tween(pre_bar_mc.bar_mc,
_xscale, Expo.easeOut, pre_bar_mc.bar_mc._xscale, pre_xscale, 60,
false);
//pre_bar_mc.bar_mc._xscale = ((this.runningTotal +
total) / this.maxBytes) * 100;

//trace(scale  + bar_mc._xscale);
if ((total  10)  (total == loaded)) {
this.runningTotal = this.runningTotal +
total;
trace(num +num);
trace(total  + total);
//trace(running total
+this.runningTotal);
num++;
//trace(num: +num);
if (num == maxSwfs) {
delete
this.onEnterFrame;

Re: [Flashcoders] Help with shared library fonts

2006-03-14 Thread Alias
Have a look at

http://www.sharedfonts.com/

HTH
Alias

On 3/12/06, Hypno Joe [EMAIL PROTECTED] wrote:
 *I am using Flash8*

 Is there a way to keep fonts in an external movie and load them
 dynamically into a movie when needed?

 The flash movie I am currently working on is a text editor that is all
 generated dynamically.  A text box is generated on the main movie like
 this:

 this.createTextField(message_txt, 200, 10, 10, 560, 200);
 message_txt.embedFonts = true;

 The main text box is styled using TextFormat.

 var messageformat:TextFormat;
 meassageformat = new TextFormat();
 messageformat.size = 20;
 messageformat.font = hightower_font;

 I have a button that calls in an external SWF that contains a list of
 different fonts for the text box.  The fonts are embedded in the movie
 and exported for action script and runtime sharing.   They change the
 font like this:

 this.aucion_mc.onRelease = function () {
 messageformat = new TextFormat();
 messageformat.font = aucion_font;
 _root.message_txt.setTextFormat(messageformat);
 }

 The fonts show up in the external SWF as it is loaded into the main
 movie but when one of the bottons is presssed, the text in the text
 box disappears.

 If I embed the fonts in the main movie, I have no problems.
 Everything works fine.  But that defeats the purpose of having the
 fonts exist externally.  I only want them to load if the user wants to
 change fonts.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Setting Focus on TextInput Component

2006-03-14 Thread John laPlante

The focus rectangle doesn't appear when you use setFocus() or when you click 
into a text field.

   Message: 24
   Date: Tue, 14 Mar 2006 16:13:12 -0600
   From: Danny [EMAIL PROTECTED]
   Subject: [Flashcoders] Setting Focus on TextInput Component
   To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
   Message-ID: [EMAIL PROTECTED]
   Content-Type: text/plain; charset=ISO-8859-1; format=flowed

   I have set the tab order for a group of TextInput components. If I use
   the TAB button, it cycles through the tab order as it should, and
   highlights each textInput with a halo. But if I use the mouse instead
   to select focus, I get the I-beam indicating the component received
   focus, but I do not get the halo indicator. What am I missing?

   Danny S


   --

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Loading several images with one progressbar?

2006-03-14 Thread dk
 thanks for the idea but this approach will not work in my case because the
 images are loaded sequencially. If one image is finished loading, my class
 starts loading the next and so on, one after one. And the amount of images
 varies (the image filenames are fetched from a XML file).

put the file sizes in the xml along with the filenames.

// then, do something like this
function onLoadProgress ( mc:MovieClip ) {
realBytesLoaded  = previouslyLoadedBytes + mc.getBytesLoaded();
percentLoaded = realBytesLoaded  / sumTotal;
}

//previouslyLoadedBytes == sum of the sizes of the previously
loaded movieclips
//sumTotal == sum of the sizes retrieved from the XML


-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


Re: [Flashcoders] Web service call not working on network

2006-03-14 Thread Mick G
Thanks, was a cluster issue... 2 of the servers had the crossdomain file,
one did not (which is why it was working sometimes, and not others.

On 3/15/06, Johannes Nel [EMAIL PROTECTED] wrote:

 sound like a crossdomain policy issue. run a http sniffer and see if there
 is a request for a crossdomain.xml file

 On 3/12/06, Mick G [EMAIL PROTECTED] wrote:
 
  Does anyone have any tips why a site i'm using that is connecting to Web
  Services works fine in the IDE, and works fine outside my work network
 but
  not from my work network. At first I thought perhaps the port number was
  blocked at work but it is working within the Flash IDE and when I view
 the
  swf on my local PC.
 
  Anyone come across this before?
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



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

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

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

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


Re: [Flashcoders] Setting Focus on TextInput Component

2006-03-14 Thread Johannes Nel
it can be done by targeting the textfield inside the component directly

On 3/14/06, John laPlante [EMAIL PROTECTED] wrote:

 The focus rectangle doesn't appear when you use setFocus() or when you
 click into a text field.

 Message: 24
 Date: Tue, 14 Mar 2006 16:13:12 -0600
 From: Danny [EMAIL PROTECTED]
 Subject: [Flashcoders] Setting Focus on TextInput Component
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 I have set the tab order for a group of TextInput components. If I use
 the TAB button, it cycles through the tab order as it should, and
 highlights each textInput with a halo. But if I use the mouse instead
 to select focus, I get the I-beam indicating the component received
 focus, but I do not get the halo indicator. What am I missing?

 Danny S


 --

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

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




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

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


[Flashcoders] AttN:John laPlante...Setting Focus on TextInput Component

2006-03-14 Thread Danny

It does on the Macromedia website. Click in the Search on their Main page.

John laPlante wrote:

The focus rectangle doesn't appear when you use setFocus() or when you 
click into a text field.


   Message: 24
   Date: Tue, 14 Mar 2006 16:13:12 -0600
   From: Danny [EMAIL PROTECTED]
   Subject: [Flashcoders] Setting Focus on TextInput Component
   To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
   Message-ID: [EMAIL PROTECTED]
   Content-Type: text/plain; charset=ISO-8859-1; format=flowed

   I have set the tab order for a group of TextInput components. If I use
   the TAB button, it cycles through the tab order as it should, and
   highlights each textInput with a halo. But if I use the mouse instead
   to select focus, I get the I-beam indicating the component received
   focus, but I do not get the halo indicator. What am I missing?

   Danny S


   --

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

2006-03-14 Thread Robin Burrer
Hi there,

I need to embed a flash animation in a PowerPoint file. I want to make
sure that the flash file starts playing from the beginning every time I
enter the slide that holds the Flash file.(by default the flash file
just continues playing from where it last stopped) 

I found a vb macro which should do this. However I can't get it to work.
I'm using Pore point 2003 and a flash player 6 swf.

Any ideas?

Cheers


Robin



' vb script 
Private Sub ShockwaveFlash1_OnReadyStateChange(ByVal newState As Long)

Dim swf As ShockwaveFlash
Dim FrameNum As Long

' Define the slide and the Flash object to whom you'd like to speak
Set swf = Slide1.ShockwaveFlash1

' Tell it to stop playing.
swf.Playing = False

' Tell it to return to the first frame (swf.Rewind)
 swf.GotoFrame (1)

' Tell it to start playing again
swf.Play
 

End Sub




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

2006-03-14 Thread Danny

Johannes Nel wrote:


it can be done by targeting the textfield inside the component directly
 



And how would one do that?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Setting Focus on TextInput Component

2006-03-14 Thread Johannes Nel
pop a textinput onto the stage called a

this.onEnterFrame = function()
{
delete this.onEnterFrame;
Selection.setFocus(a.label)
a.drawFocus(true);
}

its a v2 component takes a frame to init. i misread the question  the
firstime and thought you meant ust giving it selection focus instead of
understanding you need the halo effect.

as a side note, you know the code for this stuff is on your machine...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS2.0 mingles well AS1.0?

2006-03-14 Thread JesterXL
The point of AS2 is:
- packages
- strong typing

If you are not taking advantage of the first, that is ok.  AS1 prototype's 
are created in the _global scope, so the 2 can co-exist.

However, AS1 does not use strong typing; basically everything is uncast so 
tracking down bugs will be easier in AS2 than AS1.  Therefore, if something 
goes wrong at runtime, blame the AS1 first.

As far as co-existing, yes, AS2  AS1 compile down to the same bytecode.

- Original Message - 
From: Boon Chew [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 14, 2006 5:29 PM
Subject: [Flashcoders] AS2.0 mingles well AS1.0?


Me and my coworkers are in the process of migrating a large body of old AS 
1.0 code to AS 2.0 (finally!).   Since it's impossible to rewrite everything 
in one fell swoop, we expect that for some time the system will be in a 
state in which it's mixed with AS 1.0 and AS 2.0.

Questions we have:

What sort of issues or potential problems should we be watching out for?

What is your experience with AS1.0 code mingling with AS2.0 code? Positive, 
Negative?

Do you seen any problems with AS1.0 mixing with AS2.0 code, if we avoid 
using any Flash 7 specific API? (since theoretically AS2.0 compiles down to 
1.0)

Initially the code will be compiled for Flash 6.0.  Do you see any problem 
with trying to compile the same code later for Flash 7?

- boon

-
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] using onLoad() in components

2006-03-14 Thread JesterXL
You cannot lose using onLoad.  Even if a component takes 1 frame to 
initialize because you are dragging it to the stage instead of creating 
dynamically, onLoad will always fire at the correct time.

However, you outta abstract this to an event.  As you know, mx.core.View 
physically calls initLayout, but you could dispatch an event via 
EventDispatcher, and have anyone who cares register for it.

function init()
{
addEventListener(onLoaded, this);
}

That way, others can listen too.  If you are only using 1 component, then 
screw it, just use onLoad as an internal method.


- Original Message - 
From: Rich Rodecker [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 14, 2006 6:12 PM
Subject: [Flashcoders] using onLoad() in components


i tried posted this before but wanted to bump it now that the list is
back up, im not sure it went through the first time:

i have a component which is made up of other components. Right now, I
have an onLoad() set up that will set up the main component to listen
for some events of the subcomponents.  It works fine, but I'm just
wondering if this is the preferred way of doing it.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Loading several images with one progressbar?

2006-03-14 Thread Kevin Aebig
Instead of showing the progression of how many bytes loaded, you should just
show how many images are loaded.

So if you have 13 images loading, each time a image is loaded, increment the
progress bar 7.69 percent:

var nPercent:Number = (numberOfImagesLoaded / totalNumberOfImages)*100;

Cheers,

!k

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sascha
Balkau
Sent: Sunday, March 12, 2006 3:07 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Loading several images with one progressbar?

Hi Adrian,

thanks for the idea but this approach will not work in my case because the 
images are loaded sequencially. If one image is finished loading, my class 
starts loading the next and so on, one after one. And the amount of images 
varies (the image filenames are fetched from a XML file).
I'm now defining a segmentWidth by dividing the full progressbar width by 
the amount of images that are going to be loaded. That gives me the 100% for

one image on the whol bar. I just haven't figured out yet how to make it 
work so that the bar doesn't start from 0 at every image. Any other idea?

Sascha





- Original Message - 
From: Adrian Park [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, March 12, 2006 3:24 AM
Subject: Re: [Flashcoders] Loading several images with one progressbar?


Say you have 3 images loading, use something like this:

var bytesLoaded:Number = 0;
var bytesTotal:Number = 0;

bytesLoaded += image1.getBytesLoaded();
bytesTotal += image1.getBytesTotal();
bytesLoaded += image2.getBytesLoaded();
bytesTotal += image2.getBytesTotal();
bytesLoaded += image3.getBytesLoaded();
bytesTotal += image3.getBytesTotal();

var percentageLoaded:Number = (bytesLoaded/bytesTotal) * 100;

There may be ways to optimise this code depending on your circumstances 
(e.g.
just calculate bytesTotal once and reuse it) but this shows the basic idea.

Adrian P.


On 3/11/06, Sascha Balkau [EMAIL PROTECTED] wrote:

 Hi,
 this is probably an old hat but I can't get it right. I want to display
 the
 load progress of several images with one progress bar. How do I calculate
 the percentage of the bar?

 Thanks alot,
 Sascha

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] advanced flash AS 2.0/3.0 book?

2006-03-14 Thread Manuel Saint-Victor
I'd like to second that recommendation.  I just picked that up yesterday and
have already learned a good bit from it.  I enjoy that books like this are
finally coming out.  Another good thing about this book so far is that The
examples are short and focused on what you are supposed to be learning so
before the attention span is shot you're throwing in two or three new lines
of code and having the reasons clarified.

Another book that I've been enjoying a  piece at a time is Object Oriented
Actionscript in Flash 8.  also from FOE.  I'm learning a lot from it.  The
only gripe I have is that I feel as if the case study- although excellent
and illustrative about the techniques- has been a turn off in my current
situation because I need to build a component set quick fast and in a hurry
at work.
It is really nice though that it's taking me through the planning and
implementation of building a component architecture from the ground up and
why.

I learned a ton about what could be done with components from The Flex book
because despite being geared toward Flex development it exposed some of the
API and uses of it that I had not come across.

I would recommend the Flash -Pro app development training from the source -I
learned a lot from that book but I think that with Flex on the horizon-that
might not be how things are done very soon.

I agree with you that most of the book recommendations out right now are
dated.  This is a very fast moving period in ActionScript and even with the
books fresh off the press I'm wondering if they're not already behind the
times and it is almost impossible to find books that go beyond the very
basic.



Mani

On 3/11/06, Jonathan Berry [EMAIL PROTECTED] wrote:

 Rich, that sounds like something that I could use. Mastery and not just
 introductory stuff. The books I have read just go over the basic
 components,
 like list or scrollpane, not things like the datagrid or learning how to
 use
 a cellrenderer. Thanks again.

 On 3/11/06, Rich Rodecker [EMAIL PROTECTED] wrote:
 
  well, you mentioned you were up on your components, so I don't know
  how 'advanced' this book would be for you...but I am reading a
  href=
 
 http://www.amazon.com/exec/obidos/redirect?link_code=ur2tag=richrodecker-20camp=1789creative=9325path=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2F1590595939%2Fqid%3D1142032643%2Fsr%3D2-1%2Fref%3Dpd_bbs_b_2_1%3Fs%3Dbooks%26v%3Dglance%26n%3D283155
  AdvancED
  Actionscript Components : Mastering the Flash Component
  Architecture/a and I'm really digging it. The author doesn't just
  show you the methods and properties availabel to a component, like the
  other book that is just a reprint of the help docs, he goes into the
  flash component architcture itself to give you a better understanding
  of how things are working, and whats going on behind the scenes.
 
  He goes into this thing about XLEFF (XML Layout engine for Flash) for
  a little bit, but I just kinda glossed over that so far, since im not
  really interested, i just want to undersatnd the components
  betterbut skipping over all that stuff doesnt affect understanding
  anything else in the book.
 
 
 
  On 3/11/06, Jonathan Berry [EMAIL PROTECTED] wrote:
   Thanks for the reply, Karthik. I checked the archives and came up with
  136
   prior messages in relation to advanced books but none that were
  current,
   as in the last year or so. I noticed someone else just posted in
  relation to
   a book recommendation and got some good responses, so it would be
 great
  if
   someone would have some information on an advanced book.
  
   On 3/10/06, Karthik [EMAIL PROTECTED] wrote:
   
 Hey Flashers, how about a book for an intermediate/advanced level
  coder?
I
 don't want to read about what objects, properties, methods,
 events,
event
 handlers, and listeners are, or even how to write basic classes.
  That
stuff
 is always repeated in both the AS books (or any introductory
  programming
 books for that matter - rant) that I have read. I read the
 deHaans'
 Macromedia Press books starting with MX2004 and the AS 2.0 book
 for
Flash 8.
 I also own the AS 2.0 reference for Flash 8 and the Flash 8
  component
 reference. I guess I am just looking for something that will have
  more
 hardcore examples, practical ones at that. I do remember seeing an
advanced
 book for MX a few years ago and wondered if they have anything
 like
  that
for
 2004 or 8. Your help much to be appreciated.
   
Please check the archives. Book recommendations posts appear once
every 36.34 hours on this list :) The link is in the footer.
   
This is the first time I've seen one of these lame corporate
disclaimer footnotes from a gmail address. Please do us a favour and
lose it - all your e-mails are being distributed, disseminated  and
copied with utter disregard for the Electronic Communications
 Privacy
Act :P

Re: [Flashcoders] Encrypting data

2006-03-14 Thread Dave Mennenoh
MD5 isn't going to help encrypting a high score is it? It's a one way 
hash...



Dave -
Adobe Community Expert
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/ 



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

2006-03-14 Thread Spencer Markowski
Shared libraries are a bit tricky. Don't use font symbols in the library.
Use MCs with a text box inside. Embed the font in the MC.

http://www.sharedfonts.com/eng/faq.html  -- This site was extremely
helpful. Download the demo... watch how it works.

You need to create a font_name_library movie with the font exported for RTS.
Then create a shared asset movie... drag the movieclip with the textfield in
it from the font_name_library to the new shared asset document. Publish

Then load the shared asset library only when loading into your main swf.

Not very helpful, but hit me back if you need help. I've created an
automatic font library extension for flash that makes it a breeze.

-Spencer

On 3/12/06, Hypno Joe [EMAIL PROTECTED] wrote:

 *I am using Flash8*

 Is there a way to keep fonts in an external movie and load them
 dynamically into a movie when needed?

 The flash movie I am currently working on is a text editor that is all
 generated dynamically.  A text box is generated on the main movie like
 this:

 this.createTextField(message_txt, 200, 10, 10, 560, 200);
 message_txt.embedFonts = true;

 The main text box is styled using TextFormat.

 var messageformat:TextFormat;
 meassageformat = new TextFormat();
 messageformat.size = 20;
 messageformat.font = hightower_font;

 I have a button that calls in an external SWF that contains a list of
 different fonts for the text box.  The fonts are embedded in the movie
 and exported for action script and runtime sharing.   They change the
 font like this:

 this.aucion_mc.onRelease = function () {
 messageformat = new TextFormat();
 messageformat.font = aucion_font;
 _root.message_txt.setTextFormat(messageformat);
 }

 The fonts show up in the external SWF as it is loaded into the main
 movie but when one of the bottons is presssed, the text in the text
 box disappears.

 If I embed the fonts in the main movie, I have no problems.
 Everything works fine.  But that defeats the purpose of having the
 fonts exist externally.  I only want them to load if the user wants to
 change fonts.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




--
Spencer Markowski
[EMAIL PROTECTED]
314.631.5576
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Encrypting data

2006-03-14 Thread Gabriel Belvedere
Are you trying to do this with getURL?? this is what do you mean or I'm
missing something?
I did it for my game at inbyted.com and I did it with amfphp and in the live
HTTP headers you just see the connection to the gateway.
I think it's pretty transparent...

regards...
GaB
www.inbyted.com


On 3/15/06, Dave Mennenoh [EMAIL PROTECTED] wrote:

 MD5 isn't going to help encrypting a high score is it? It's a one way
 hash...


 Dave -
 Adobe Community Expert
 www.blurredistinction.com
 www.macromedia.com/support/forums/team_macromedia/


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

2006-03-14 Thread David Mendels
Hi,

I am from Adobe, let me give some perspective.

A) It is always risky to build on a beta.  I feel quite confident in
where we are and hitting our schedule, but I have to be realistic that
there is always some risk.  You need to judge your tolerence for risk.  

B) There has been an API scrub between beta 1 and beta 2.  The results
are I think great--clarity and consistancy--but it will mean some
migration from Beta 1 to beta 2. Most beta 1 apps will require some
changes to run in beta 2.  That said, we don't expect to need to do this
again.  Beta 3 and final could require some changes in your code, but if
they do, it should be minor.  Again, we can't make guarantees and you
might have to make changes again before we ship.  

C) The advantages of Flex 2 are (IMO) enourmous and very valuable
(performance, productivity, maintainability).  We aren't going to be
reachitecting the Player, framework, language, again for a long long
time.  If you can go straight to Flex 2/Player 8.5 that will save you
the effort at some point of migrating, but it does carry risk until we
ship.

I know this isn't a absolute answer, but I hope it helps,

David

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Johannes Nel
 Sent: Tuesday, March 14, 2006 6:24 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Flex2 Project Conversion
 
 i am contracting to large company and we are doing stuff 
 using flex2, so...
 i don't quite agree with your argument. also note what he 
 says, they want to move an existing app to flex2 and his 
 concern is that it will change radically from beta 1 to final 
 product. the very fact that beta 2 is coming out means that 
 things are relatively stable and well along the path. i think 
 starting now will be a good idea. but thats just my opinion.
 
 On 3/14/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 
  I wouldn't bet any project on a beta personally - unless I had 
  insiders at Adobe, but even then...
 
  Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
 
 
 
 
 
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] 
 [mailto:flashcoders- 
  [EMAIL PROTECTED] On Behalf Of Kevin Aebig
  Sent: Tuesday, March 14, 2006 1:35 PM
  To: 'Flashcoders mailing list'
  Subject: [Flashcoders] Flex2 Project Conversion
  
  Hey all,
  
  
  
  The company I work for is interested in moving one of our large
  applications
  over to Flex when the new version comes out. Is it worthwhile or 
  even feasible to begin porting it over with the Beta 
 release or are 
  we
  wasting
  our time considering that quite a bit of it could change 
 beforehand.
  
  
  
  I'd hate to put in a lot of time into this only to find 
 out that my
  source
  files are rendered obsolete when the new version is 
 finally released.
  
  
  
  Thanks for your input,
  
  
  
  !k
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com http://training.figleaf.com
  NOTICE:
  This message is for the designated recipient only and may contain 
  privileged or confidential information. If you have received it in 
  error, please notify the sender immediately and delete the 
 original. 
  Any other use of this e-mail by you is prohibited.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com http://training.figleaf.com
 
 
 
 
 --
 j:pn
 http://www.lennel.org
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Help with custom class that uses Sound. Needs = MX 2k4

2006-03-14 Thread Ramon Miguel M. Tayag
Hey everyone,

I've been at this problem for several days now. I'm afraid I won't be
able to figure it out because of the elusiveness of the problem. It
only comes out when I play the SWF/EXE, but it works just as expected
when I do the test movie. It also works fine online.

I built a class called SoundStreamer that uses SoundLoader. It's a
class that's basically like sound class but I wanted a smart buffer.
However, to be able to use a smart buffer I'll have to edit the TLEN
tag in the ID3 v2 tag.

All the files are in one zip:
http://share.quirkworks.net/sound%20test.zip

It includes the FLA, the classes, and the sample mp3.

Try testing it using test movie, then publish it and play the swf alone.

I also use LuminicBox Logger. You may or may not install this. It
makes AS coding life a lot easier though. It's dirty simple:

1) Unzip http://share.quirkworks.net/LuminicBox.zip into your class path.
2) Run the SWF that's in http://share.quirkworks.net/FlashInspector.zip

Please, I direly need your help.

Thank you!

--
Ramon Miguel M. Tayag
Managing Director
Quirkworks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Encrypting data

2006-03-14 Thread Grant Cox
This is true.  However, if someone is prepared to submit fake post 
requests to hack your high scores, are they not going to decompile your 
SWF to see how you encrypt the high scores?


My recommendation is to submit the level reached and the score, and have 
the server validate these (ie that the score achieved was possible for 
the level reached).  Also, make the client inform the server every time 
a new level is reached, and validate that these are not occuring too 
fast (ie at least 20 seconds apart).  And encrypt any important data 
sent to/from the server, but use some stupid algorithm you made up, do 
it inline (don't use a encrypt/decrypt function), and then obfuscate 
your actionscript.  Oh, and if any of these server side checks fail, 
just ignore any high scores from that IP address.


Or, just admit that faking high scores is nigh impossible when the 
client is so easily modified, and don't worry about it :)


Regards,
Grant Cox


Dave Mennenoh wrote:

MD5 isn't going to help encrypting a high score is it? It's a one way 
hash...



Dave -
Adobe Community Expert
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Is it possible to make AS1.0 code instantiate AS2.0 objects without compiling it under AS2.0?

2006-03-14 Thread Boon Chew
Hi,

I have a body of AS1.0 code that I inherited that is compiled under 1.0.  I 
would like to keep it compiled with AS 1.0 but make it use any newly written 
AS2.0 classes.  Compiling the existing 1.0 code under AS2.0 setting causes too 
many errors, don't have time for that now.

I am thinking that one option to do this would be to compile any newly created 
AS2.0 code into its own swf, and make the existing AS1.0 code load in the swf 
and instantiate the AS2 class that way, but I am having a little problem 
getting it to work.

Am I on the right path? Any ideas?

- boon



-
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


  1   2   >