Re: [Flashcoders] :: anyone passed flash 8 certification exam?::

2006-12-11 Thread Orindom Dhar
hi flashsaavy,
   
  Thanks for ur inputs.
   
  Arin

[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  arin,

i recently sat and passed the Flash 8 Certification exam.

i had previously passed the Developer cert for both Flash MX and MX 2004. i had 
never sat the Designer cert.

my impression is that the Flash 8 Certification exam IS a Developer exam. my 
guess is that to pass the Flash 8 certification, you have to know ActionScript.

mind you, when you sit the exam you might end up with a completely different 
set of questions. my guess is that they have hundreds of questions, of which 
you will have to answer 70. passing grade is 70%, meaning you have to get 49+ 
correct to pass. and you have 75 minutes to complete the exam.

yeah, the test prep materials for the Flash 8 Cert suck.

but ...

here are some things you definitely should do:
-- sample questions that download with the PDF at Adobe.com with the info about 
the Flash 8 exam
http://partners.adobe.com/public/en/ace/ACE_Exam_Guide_Flash_8.pdf
-- sample question that download with the PDF at Adobe.com with the info about 
the Flash MX 2004 Developer exam
www.adobe.com/support/training/certified_professional_program/flmx2004_dev_sample.pdf
-- sample question that download with the PDF at Adobe.com with the info about 
the Flash MX 2004 Designer exam
www.adobe.com/support/training/certified_professional_program/flmx2004_des_sample.pdf
-- know what is new with Flash 8. there are 1 hour of training videos on F8 new 
features here:
http://movielibrary.lynda.com/html/modPage.asp?ID=170
and you can get a 24 hour free pass here:
http://www.lynda.com/freepass/24

beyond that, you can use some MX 2004 Developer study guide materials. tom 
kitta created a sample exam and put up a ton of his notes. you can find links 
to both here:
http://www.tomkitta.com/flash/index.cfm

and you can still get the MX 2004 Developer study guide book:
http://www.amazon.com/Macromedia-Flash-Certified-Developer-Study/dp/0321256026/

as i said earlier, you might end up with completely different questions than I 
did. following are 3 topics that I saw more than 1 question on:
-- LoadVars
-- Font outline embedding. defaults for static text, dynamic text, input text. 
etc.
-- Video. Video class. import formats supported.
-- Audio. Sound class. import formats supported.

one surprise for me was no questions related to components. v2 or otherwise. 
none. nada.

there were non-ActionScript questions. some related to the IDE. so maybe those 
came in from the Designer cert, or maybe not. things like publish profiles, 
bandwidth profiler, etc.

one last bit of advice, if you can afford to take it twice, the best way to 
find out what is on the exam is to take it. you definitely have to prep for the 
first time that you take the exam. in the event that you don't pass on the 
first go, you have to know enough to know what you didn't know. if that makes 
sense. so if you can afford the risk of taking the test a second time don't 
over agonize about it. prep, go, if you pass the first time excellent. if not, 
likely you will know exactly what you need to study up on to pass it with 
flying colors the second time around.

i hope this helps. please post back about your experience after you take the 
exam.

and anyone else who has taken the exam. please post your impressions too.

best of luck!

On 12/6/06, Orindom Dhar wrote:Hello,

Has anyone out there,cleared the flash 8 professional certification exam. If 
yes, could you please give some advice on how to prepare for it. Unlike 
previous flash certifications, in flash 8 they have combined the designer and 
developer and made it as one,its ridiculous! As a hardcore actionscripter I 
would have loved to skip the graphic designing part.Sigh!Also there is no clear 
cut blueprint from adobe for flash 8 cert exam.

Any help in this regard is highly appreciated.

regards,

Arin


-
Have a burning question? Go to Yahoo! Answers and get answers from real people 
who know.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


 
-
Everyone is raving about the all-new Yahoo! Mail beta.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Local SWF loadVars from remote php file

2006-12-11 Thread Mike Dunlop
Hi, I am pulling my hair out on this. I am trying to develop flash  
locally and want to talk to remote php scripts. I have added a  
crossdomain.xml file to the remote server in question as well as the  
following to my local flash file in frame 1


System.security.allowDomain(*);


Whenever using loadVars i get Error opening URL... I understand  
generally how sandbox/security works but i can't get this to work


Here's my loadVars code:


var exhibit_vars:LoadVars = new LoadVars();
exhibit_vars.onLoad = function (success) {
if(success)
trace(this.toString());
else
trace(vars failed to load!);
}
exhibit_vars.load(http://mydomain.com/v2/flashapi/api.php? 
atype=cExhibit);





Can anyone help me, please??

Thank You.


.
Mike Dunlop
// Droplab
[ e ] [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


[Flashcoders] Which technique do you use ...

2006-12-11 Thread Stephen Ford
Which of the following two techniques do you use when coding a similar (and 
common) process in actionscript:var mcTemp:MovieClip = 
this.attachMovie(mcCircle, mcCircle+nCounter, nCounter, oMain);mcTemp._x = 
Math.random()*600;mcTemp._y = Math.random()*400;nCounter++;or 
this.attachMovie(mcCircle, 
mcCircle+nCounter, nCounter, oMain);this[mcCircle+nCounter]._x = 
Math.random()*600;this[mcCircle+nCounter]._y = Math.random()*400;
nCounter++;i.e: do you prefer to create a proxy clip when coding something like 
this (first example).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] Why does this work in Flash 6 Actionscript 2 but not Flash 7 Actionscript 2 ...

2006-12-11 Thread Stephen Ford
Why does the following work when published as Flash 6 Actionscript 2, but not 
Flash 7 actionscript 2 (or Flash 8 Actionscript 2).var nInt:Number;var 
oMain:Object = {};var nCounter:Number;var sClipName:String;var 
nClipDepth:Number;function spawnClip():Void{var mcTemp:MovieClip = 
this.attachMovie(mcCircle, mcCircle+nCounter, nCounter, oMain);
mcTemp._x = Math.random()*600;mcTemp._y = Math.random()*400;
nCounter++;}nInt = setInterval(this, spawnClip, 
500);Thanks,Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Which technique do you use ...

2006-12-11 Thread Miguel Angel Sánchez
I prefer the first one, the main advantages for me is that you can use 
code completion in most of actionscript editors, the code is cleaner and 
the compiler knows the type of the object when you try to assign a value 
to its property _x.


Stephen Ford escribió:

Which of the following two techniques do you use when coding a similar (and common) process in actionscript:var mcTemp:MovieClip = 
this.attachMovie(mcCircle, mcCircle+nCounter, nCounter, oMain);mcTemp._x = Math.random()*600;mcTemp._y = 
Math.random()*400;nCounter++;or this.attachMovie(mcCircle, mcCircle+nCounter, 
nCounter, oMain);this[mcCircle+nCounter]._x = Math.random()*600;this[mcCircle+nCounter]._y = Math.random()*400;
nCounter++;i.e: do you prefer to create a proxy clip when coding something like this (first 
example).Thanks.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

  

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

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


Re: [Flashcoders] Why does this work in Flash 6 Actionscript 2 but not Flash 7 Actionscript 2 ...

2006-12-11 Thread Jake Prime

Hi Stephen,

You are incrementing nCounter without ever initializing it. In Flash 6
and earlier if you incremented an undefined value it treated it as 0,
but in Flash 7 and later it remains undefined. Set nCounter to 0 first
and all should be well.

Jake

On 11/12/06, Stephen Ford [EMAIL PROTECTED] wrote:

Why does the following work when published as Flash 6 Actionscript 2, but not Flash 7 actionscript 2 (or 
Flash 8 Actionscript 2).var nInt:Number;var oMain:Object = {};var nCounter:Number;var sClipName:String;var 
nClipDepth:Number;function spawnClip():Void{var mcTemp:MovieClip = this.attachMovie(mcCircle, 
mcCircle+nCounter, nCounter, oMain);mcTemp._x = Math.random()*600;mcTemp._y = 
Math.random()*400;nCounter++;}nInt = setInterval(this, spawnClip, 
500);Thanks,Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] :: anyone passed flash 8 certification exam?::

2006-12-11 Thread Eskil Janson

Hi,

If you are into actionscript, you should have no trouble with that part 
of the exam.
So fear not, I found it a lot easier than expected, but questions might 
differ of course.


/Eskil

Orindom Dhar skrev:

hi flashsaavy,
   
  Thanks for ur inputs.
   
  Arin


[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  arin,

i recently sat and passed the Flash 8 Certification exam.

i had previously passed the Developer cert for both Flash MX and MX 2004. i had 
never sat the Designer cert.

my impression is that the Flash 8 Certification exam IS a Developer exam. my 
guess is that to pass the Flash 8 certification, you have to know ActionScript.

mind you, when you sit the exam you might end up with a completely different 
set of questions. my guess is that they have hundreds of questions, of which 
you will have to answer 70. passing grade is 70%, meaning you have to get 49+ 
correct to pass. and you have 75 minutes to complete the exam.

yeah, the test prep materials for the Flash 8 Cert suck.

but ...

here are some things you definitely should do:
-- sample questions that download with the PDF at Adobe.com with the info about 
the Flash 8 exam
http://partners.adobe.com/public/en/ace/ACE_Exam_Guide_Flash_8.pdf
-- sample question that download with the PDF at Adobe.com with the info about 
the Flash MX 2004 Developer exam
www.adobe.com/support/training/certified_professional_program/flmx2004_dev_sample.pdf
-- sample question that download with the PDF at Adobe.com with the info about 
the Flash MX 2004 Designer exam
www.adobe.com/support/training/certified_professional_program/flmx2004_des_sample.pdf
-- know what is new with Flash 8. there are 1 hour of training videos on F8 new 
features here:
http://movielibrary.lynda.com/html/modPage.asp?ID=170
and you can get a 24 hour free pass here:
http://www.lynda.com/freepass/24

beyond that, you can use some MX 2004 Developer study guide materials. tom 
kitta created a sample exam and put up a ton of his notes. you can find links 
to both here:
http://www.tomkitta.com/flash/index.cfm

and you can still get the MX 2004 Developer study guide book:
http://www.amazon.com/Macromedia-Flash-Certified-Developer-Study/dp/0321256026/

as i said earlier, you might end up with completely different questions than I 
did. following are 3 topics that I saw more than 1 question on:
-- LoadVars
-- Font outline embedding. defaults for static text, dynamic text, input text. 
etc.
-- Video. Video class. import formats supported.
-- Audio. Sound class. import formats supported.

one surprise for me was no questions related to components. v2 or otherwise. 
none. nada.

there were non-ActionScript questions. some related to the IDE. so maybe those came in 
from the Designer cert, or maybe not. things like publish profiles, bandwidth 
profiler, etc.

one last bit of advice, if you can afford to take it twice, the best way to 
find out what is on the exam is to take it. you definitely have to prep for the 
first time that you take the exam. in the event that you don't pass on the 
first go, you have to know enough to know what you didn't know. if that makes 
sense. so if you can afford the risk of taking the test a second time don't 
over agonize about it. prep, go, if you pass the first time excellent. if not, 
likely you will know exactly what you need to study up on to pass it with 
flying colors the second time around.

i hope this helps. please post back about your experience after you take the 
exam.

and anyone else who has taken the exam. please post your impressions too.

best of luck!

On 12/6/06, Orindom Dhar wrote:Hello,

Has anyone out there,cleared the flash 8 professional certification exam. If 
yes, could you please give some advice on how to prepare for it. Unlike 
previous flash certifications, in flash 8 they have combined the designer and 
developer and made it as one,its ridiculous! As a hardcore actionscripter I 
would have loved to skip the graphic designing part.Sigh!Also there is no clear 
cut blueprint from adobe for flash 8 cert exam.

Any help in this regard is highly appreciated.

regards,

Arin


-
Have a burning question? Go to Yahoo! Answers and get answers from real people 
who know.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


 
-

Everyone is raving about the all-new Yahoo! Mail beta.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

RE: [Flashcoders] .net remoting

2006-12-11 Thread Merrill, Jason
I am trying to use a remote webservice in .net in my flash 
application.
Can any body please give me link to the tutotrial or tell me 
how can I use a .net weservice in my flash application using 
remoting component.

Try the Webservice component instead of the Remoting component.

http://www.sephiroth.it/tutorials/flashPHP/webServiceConnector/
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/comm
on/html/wwhelp.htm?context=Flash_MX_2004file=0450.html
http://www.informit.com/guides/content.asp?g=flashseqNum=201rl=1


Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] nodeValue not working?

2006-12-11 Thread John Axel Eriksson

You must do customerAbout = customer.firstChild.firstChild.nodeValue; to
get the textNode and its value. Sometimes this is confusing, but the  
text itself

is in fact a node too.

/John


11 dec 2006 kl. 14.16 skrev Jim Robson:


Hello all,

I can't seem to access the nodeValue property of my XMLNode objects  
in Flash
8 Pro. I can print the entire node (with XML markup included),  
which isn't

very useful. But when I try to print xmlNodeInstance.nodeValue, I
consistently get null. My code is below - can anyone see where I'm  
going

wrong?

-Jim

//ActionScript:
xml.onLoad = function(success:Boolean){
if(success){
showData(this.firstChild);
}else{
trace(oops!);
}
}

function showData(rootNode){
if(rootNode.nodeName.toUpperCase() == CUSTOMERS){
sector = rootNode.firstChild;
while(sector != null){
if(sector.nodeName.toUpperCase() == SECTOR){
sectorName = sector.attributes.name;
// This prints the correct value:
trace(Sector:  + sectorName);
customer = sector.firstChild;
while(customer != null){
if(customer.nodeName.toUpperCase() == ORGANIZATION){
// I can access the XML attributes without issue
customerName = customer.attributes.name;
// This prints the correct value:
trace(Customer Name:  + customerName);
// The problem comes in when I attempt to get
// the nodeValue of an XMLNode...
customerAbout = customer.firstChild.nodeValue;
// **This prints null:
trace(About:  + customerAbout);
// If I leave out the nodeValue, Flash reads
// the entire node...
customerAbout = customer.firstChild;
// **This prints the entire node, including
// XML markup (not very helpful):
trace(About:  + customerAbout);
}
customer = customer.nextSibling;
}
}
sector = sector.nextSibling;
}
}
}

XML:
customers
sector name=Financial Services
organization name=ACME Financial Services id=1  
fileName=acme.jpg
aboutLorem ipsum dolor sit amet, consectetuer adipiscing elit. / 
about
caseNulla facilisi. Donec sollicitudin, ante non dictum gravida,/ 
case

quoteNeque porro quisquam est qui dolorem ipsum quia dolor sit amet,
consectetur, adipisci velit./quote
/organization
/sector
/customers

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

2006-12-11 Thread Jim Robson
John:

That was it! Thank you very much!

I can't wait to finish this project, and get back to AS3 and E4X!!!

-Jim 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Axel
Eriksson
Sent: Monday, December 11, 2006 8:24 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] nodeValue not working?

You must do customerAbout = customer.firstChild.firstChild.nodeValue; to get
the textNode and its value. Sometimes this is confusing, but the text itself
is in fact a node too.

/John


11 dec 2006 kl. 14.16 skrev Jim Robson:

 Hello all,

 I can't seem to access the nodeValue property of my XMLNode objects in 
 Flash
 8 Pro. I can print the entire node (with XML markup included), which 
 isn't very useful. But when I try to print xmlNodeInstance.nodeValue, 
 I consistently get null. My code is below - can anyone see where I'm 
 going wrong?

 -Jim

 //ActionScript:
 xml.onLoad = function(success:Boolean){ if(success){ 
 showData(this.firstChild); }else{ trace(oops!); } }

 function showData(rootNode){
 if(rootNode.nodeName.toUpperCase() == CUSTOMERS){ sector = 
 rootNode.firstChild; while(sector != null){
 if(sector.nodeName.toUpperCase() == SECTOR){ sectorName = 
 sector.attributes.name; // This prints the correct value:
 trace(Sector:  + sectorName);
 customer = sector.firstChild;
 while(customer != null){
 if(customer.nodeName.toUpperCase() == ORGANIZATION){ // I can access 
 the XML attributes without issue customerName = 
 customer.attributes.name; // This prints the correct value:
 trace(Customer Name:  + customerName); // The problem comes in when 
 I attempt to get // the nodeValue of an XMLNode...
 customerAbout = customer.firstChild.nodeValue; // **This prints null:
 trace(About:  + customerAbout);
 // If I leave out the nodeValue, Flash reads // the entire node...
 customerAbout = customer.firstChild;
 // **This prints the entire node, including // XML markup (not very 
 helpful):
 trace(About:  + customerAbout);
 }
 customer = customer.nextSibling;
 }
 }
 sector = sector.nextSibling;
 }
 }
 }

 XML:
 customers
 sector name=Financial Services
 organization name=ACME Financial Services id=1  
 fileName=acme.jpg
 aboutLorem ipsum dolor sit amet, consectetuer adipiscing elit. /
 about
 caseNulla facilisi. Donec sollicitudin, ante non dictum gravida,/
 case
 quoteNeque porro quisquam est qui dolorem ipsum quia dolor sit amet, 
 consectetur, adipisci velit./quote /organization /sector 
 /customers

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

2006-12-11 Thread Andrei Thomaz

hello david,

why do you call the stop() method before using attachSound() ?

[]'s
andrei


On 12/11/06, David Skoglund [EMAIL PROTECTED] wrote:


Hi I have quite some problems with playing sounds. It works about 19 times
of 20... Have anyone come across this kind of irregular sound behavior?

Could there be a problem with stopping a sound right before starting a new
sound (a delay of the stop command so that it stops the new sound)?

Any help is very appreciated!

At the start of the program I initialize sound objects in a init function
like this:

class application.main{
static var sound:Object;

static function init () {
  // create global sound objects
  sound={}
  sound.comments=_root.createEmptyMovieClip(comments,
_root.getNextHighestDepth())
  sound.comments.soundObj=new Sound(sound.comments);
}
}


I start the sounds in a function like this:

function playComment (comment){
   // start comment
   main.sound.comments.soundObj.stop()
   main.sound.comments.soundObj.attachSound(comment);
   main.sound.comments.soundObj.setVolume(80);
   main.sound.comments.soundObj.start();

   trace (comment: +this.comment)
}



David Sjölander
Game Designer

Cogmed - Working Memory Training
Fryxellsgatan 4 | 114 25 Stockholm, Sweden | Phone: +46 (0)8 506 315 60 |
Cell: +46 (0)736 84 54 52 | www.cogmed.com



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.15/581 - Release Date:
2006-12-09

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

2006-12-11 Thread Count Schemula

I'm using the code at the bottom of this post.

Using the Simulate Download and the Bandwidth profiler, I have two
different files where it's basically downloading about 15% of the file
and then continuing playing.

The preloader starts to work correctly, but basically quits out
incorrectly around 15%.

Looking at the bandwidth profiler, it continues downloading in the
background while trying to (poorly) play.

Any obvious hangups?

No components are in use, all assets are inside the flash file. The
bandwidth profiler shows a linear download, 0 to 100%, just around 15%
or so it just goes on and tries the play the file after showing me the
preloader for the first 15%.

I've used this code successfully before, it's just that now I have a
deadline, so, I guess it totally makes sense that it does not work
now. Grr.

=== CODE ===

// preloader
function checkLoad(mcTarget:MovieClip):Void{
 var nLBytes:Number = mcTarget.getBytesLoaded();
 var nTBytes:Number = mcTarget.getBytesTotal();
 var nPercent:Number = (nLBytes/nTBytes)*100;
 mcLoader.mcBar._xscale = nPercent;
 var sPercent:String = Math.floor(nPercent).toString();
 var sKBytes:String = Math.floor(nTBytes/1024).toString();
 var sMessage:String = sPercent + % of  + sKBytes + K loaded.;
 mcLoader.tPercent.text = sMessage;
 if (nLBytes = nTBytes  nTBytes  0) {
   if (nCount = 12) {
 clearInterval(nProgress);
 mcTarget.gotoAndPlay(main);
   } else {
 nCount++;
   }
 }
 updateAfterEvent();
}

var nCount:Number = 0;
var nProgress:Number = setInterval(checkLoad, 100, this);

stop;

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

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


SV: [Flashcoders] Sound not starting

2006-12-11 Thread David Skoglund
Hi andrei, 

It's to stop the previous sound in that channel, I don't want two comments
playing at the same time. Should I remove the sound object completely and
create a new everytime I want to replace a sound?

/David

-

hello david,

why do you call the stop() method before using attachSound() ?

[]'s
andrei


On 12/11/06, David Skoglund [EMAIL PROTECTED] wrote:

 Hi I have quite some problems with playing sounds. It works about 19 
 times of 20... Have anyone come across this kind of irregular sound
behavior?

 Could there be a problem with stopping a sound right before starting a 
 new sound (a delay of the stop command so that it stops the new sound)?

 Any help is very appreciated!

 At the start of the program I initialize sound objects in a init 
 function like this:

 class application.main{
 static var sound:Object;

 static function init () {
   // create global sound objects
   sound={}
   sound.comments=_root.createEmptyMovieClip(comments,
 _root.getNextHighestDepth())
   sound.comments.soundObj=new Sound(sound.comments); } }


 I start the sounds in a function like this:

 function playComment (comment){
// start comment
main.sound.comments.soundObj.stop()
main.sound.comments.soundObj.attachSound(comment);
main.sound.comments.soundObj.setVolume(80);
main.sound.comments.soundObj.start();

trace (comment: +this.comment)
 }



 David Sjölander
 Game Designer

 Cogmed - Working Memory Training
 Fryxellsgatan 4 | 114 25 Stockholm, Sweden | Phone: +46 (0)8 506 315 
 60 |
 Cell: +46 (0)736 84 54 52 | www.cogmed.com



 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.409 / Virus Database: 268.15.15/581 - Release Date:
 2006-12-09

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

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.15/581 - Release Date: 2006-12-09
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.15/581 - Release Date: 2006-12-09
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Local SWF loadVars from remote php file

2006-12-11 Thread slangeberg

Could you post the contents of your crossdomain.xml file?

-Scott

On 12/11/06, Mike Dunlop [EMAIL PROTECTED] wrote:


Hi, I am pulling my hair out on this. I am trying to develop flash
locally and want to talk to remote php scripts. I have added a
crossdomain.xml file to the remote server in question as well as the
following to my local flash file in frame 1

System.security.allowDomain(*);


Whenever using loadVars i get Error opening URL... I understand
generally how sandbox/security works but i can't get this to work

Here's my loadVars code:


var exhibit_vars:LoadVars = new LoadVars();
exhibit_vars.onLoad = function (success) {
 if(success)
 trace(this.toString());
 else
 trace(vars failed to load!);
}
exhibit_vars.load(http://mydomain.com/v2/flashapi/api.php?
atype=cExhibit);




Can anyone help me, please??

Thank You.


.
Mike Dunlop
// Droplab
[ e ] [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





--

: : ) 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] Webservice performance these days

2006-12-11 Thread Steve Mathews

I know that in the past I heard that the performance of webservices
was less than stellar in Flash. Can anyone with recent experience
comment on the performance?

Also, so that I make sure I have my technology correct, as I
understand with remoting the client receives native data types from
the server. Webservices receives XML, or is it any string data?

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] Webservice performance these days

2006-12-11 Thread Merrill, Jason
Also, so that I make sure I have my technology correct, as I 
understand with remoting the client receives native data 
types from the server. Webservices receives XML, or is it any 
string data?

it's SOAP - which is an XML protocol over HTTP.  So it's essentially a
string of XML data.  I use it, it works Ok for me - it's not the fastest
protocol because of the shear size of XML, but it's very flexible.  For
my needs, it works plenty fast enough.  Depending on what you're doing,
you may or may not notice much of a speed lag at all.   

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Webservice performance these days

2006-12-11 Thread Steve Mathews

Thanks Jason, that is what I was thinking. So the WebService (and
supporting classes) parse the returned SOPE for you, so when you get
the callback you are just handling native data types? Or do you have
to build your own parser?

On 12/11/06, Merrill, Jason [EMAIL PROTECTED] wrote:

Also, so that I make sure I have my technology correct, as I
understand with remoting the client receives native data
types from the server. Webservices receives XML, or is it any
string data?

it's SOAP - which is an XML protocol over HTTP.  So it's essentially a
string of XML data.  I use it, it works Ok for me - it's not the fastest
protocol because of the shear size of XML, but it's very flexible.  For
my needs, it works plenty fast enough.  Depending on what you're doing,
you may or may not notice much of a speed lag at all.

Jason Merrill
Bank of America
Learning  Organizational Effectiveness




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

2006-12-11 Thread Count Schemula

http://www.themidnightcoders.com/articles/soap_vs_flash_remoting_benchmark.shtml

http://www.amfphp.org/amfphprocks.html

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

2006-12-11 Thread Merrill, Jason
Yes, right - the webservices component handles the parsing of the SOAP
data - you can then start using the data natively as an object with
properties and arrays - depending on how your data is formatted.  No
need to parse out the XML, it's done for you already.

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Steve Mathews
Sent: Monday, December 11, 2006 10:47 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Webservice performance these days

Thanks Jason, that is what I was thinking. So the WebService 
(and supporting classes) parse the returned SOPE for you, so 
when you get the callback you are just handling native data 
types? Or do you have to build your own parser?

On 12/11/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 Also, so that I make sure I have my technology correct, as I 
 understand with remoting the client receives native data 
types from 
 the server. Webservices receives XML, or is it any string data?

 it's SOAP - which is an XML protocol over HTTP.  So it's 
essentially a 
 string of XML data.  I use it, it works Ok for me - it's not the 
 fastest protocol because of the shear size of XML, but it's very 
 flexible.  For my needs, it works plenty fast enough.  Depending on 
 what you're doing, you may or may not notice much of a 
speed lag at all.

 Jason Merrill
 Bank of America
 Learning  Organizational Effectiveness




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

2006-12-11 Thread Blumenthal, Peter

Hi List.

We have built a Flash application, published for FP8 that is wrapped in a 
Director MX2004 (10.1.1) shell using the latest Flash Asset Xtra.

Part of the functionality is that it dynamically loads and plays back FLVs 
using the NetStream Class. This all works very well until we try to run the app 
from CD. Then it works on some PCs and fails on others. From what we can see  
it is only failing on Windows XP machines with IE7 installed. Does anyone have 
any further insight or information on this please?

Many thanks,

Pete

This email may contain confidential material.  If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Local SWF loadVars from remote php file

2006-12-11 Thread Andy Stone
You've probably thought of this...

My firewall will block a remoting call when testing locally. When I disable
it the calls work fine. 

-A

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of slangeberg
Sent: Monday, December 11, 2006 10:24 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Local SWF loadVars from remote php file

Could you post the contents of your crossdomain.xml file?

-Scott

On 12/11/06, Mike Dunlop [EMAIL PROTECTED] wrote:

 Hi, I am pulling my hair out on this. I am trying to develop flash
 locally and want to talk to remote php scripts. I have added a
 crossdomain.xml file to the remote server in question as well as the
 following to my local flash file in frame 1

 System.security.allowDomain(*);


 Whenever using loadVars i get Error opening URL... I understand
 generally how sandbox/security works but i can't get this to work

 Here's my loadVars code:


 var exhibit_vars:LoadVars = new LoadVars();
 exhibit_vars.onLoad = function (success) {
  if(success)
  trace(this.toString());
  else
  trace(vars failed to load!);
 }
 exhibit_vars.load(http://mydomain.com/v2/flashapi/api.php?
 atype=cExhibit);




 Can anyone help me, please??

 Thank You.


 .
 Mike Dunlop
 // Droplab
 [ e ] [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




-- 

: : ) 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


RE: [Flashcoders] Webservice performance these days

2006-12-11 Thread Michael Trim
http://www.themidnightcoders.com/articles/soap_vs_flash_remoting_bench
mark.shtml

Does this still stand up? I was always a little skeptical because they
were selling an alternative solution anyway.

I'm with Jason, I accept it's not necessarily the fastest solution but
SOAP works well enough for most of the uses I have for it.

Compared to the project I'm rescuing at the moment that uses plain old
xml it's a dream.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] preloader not completely preloading...

2006-12-11 Thread Alain Rousseau
The only place I see where this could fail, is at your if line. 
You should probably calculate nTBytes outside your checkLoad() function and
pass it as a variable at your first call.

for your if statement you should maybe write it like this :

var minPercentLoad:Number = 100;
if ( nPercent == minPercentLoad) {
//...
}

that way you'll be sure that your movie has loaded all the way before doing
anything else.


HTH

Alain

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Count
Schemula
Sent: 11 décembre 2006 09:12
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] preloader not completely preloading...

I'm using the code at the bottom of this post.

Using the Simulate Download and the Bandwidth profiler, I have two different
files where it's basically downloading about 15% of the file and then
continuing playing.

The preloader starts to work correctly, but basically quits out incorrectly
around 15%.

Looking at the bandwidth profiler, it continues downloading in the
background while trying to (poorly) play.

Any obvious hangups?

No components are in use, all assets are inside the flash file. The
bandwidth profiler shows a linear download, 0 to 100%, just around 15% or so
it just goes on and tries the play the file after showing me the preloader
for the first 15%.

I've used this code successfully before, it's just that now I have a
deadline, so, I guess it totally makes sense that it does not work now. Grr.

=== CODE ===

// preloader
function checkLoad(mcTarget:MovieClip):Void{
  var nLBytes:Number = mcTarget.getBytesLoaded();
  var nTBytes:Number = mcTarget.getBytesTotal();
  var nPercent:Number = (nLBytes/nTBytes)*100;
  mcLoader.mcBar._xscale = nPercent;
  var sPercent:String = Math.floor(nPercent).toString();
  var sKBytes:String = Math.floor(nTBytes/1024).toString();
  var sMessage:String = sPercent + % of  + sKBytes + K loaded.;
  mcLoader.tPercent.text = sMessage;
  if (nLBytes = nTBytes  nTBytes  0) {
if (nCount = 12) {
  clearInterval(nProgress);
  mcTarget.gotoAndPlay(main);
} else {
  nCount++;
}
  }
  updateAfterEvent();
}

var nCount:Number = 0;
var nProgress:Number = setInterval(checkLoad, 100, this);

stop;

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

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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.15/581 - Release Date: 2006-12-09
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.15/581 - Release Date: 2006-12-09
 

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

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


Re: [Flashcoders] Attaching bitmap data to arbitary coords

2006-12-11 Thread Charles Parcell

Yeah, I think you are looking for the draw() method of BitmapData.

http://livedocs.macromedia.com/flash/8/main/1950.html

See the comments as well.

Charles P.



On 12/10/06, Martin Jonasson [EMAIL PROTECTED] wrote:


This is what i use in i a project of mine:

var myMatrix:Matrix = new Matrix();
myMatrix.rotate(clip._rotation * 0.0174532925199433);
var translateMatrix:Matrix = new Matrix();
translateMatrix.translate(clip._x, clip._y);
myMatrix.concat(translateMatrix);
myBitmapData2.draw(clip, myMatrix)

(this is stolen straight from my code, with nothing added to make it
more understandable, but it should be rather self explanatory)


Mike Mountain skrev:
 Consider the following, Flash 8:

 var w=200
 var h=200
 holder=this.createEmptyMovieClip(bmp1, this.getNextHighestDepth());
 var bmpData1:BitmapData = new BitmapData(w, h, true, 0x);
 bmp1.attachBitmap(bmpData1, 2, auto, true);

 This will attach the bitmapdata so it's top left is situated at the reg
 point of the mc, how do I attach it, or later move it so the reg point
 of the MC is situated at any point I wish, without using nested MC's?

 The problem being I want to make an exact bitmap copy of the contents of
 an MC, which could have it reg point set anywhere - and I want the new
 copy to inherit the same registration point, but like I said before -
 without having to resort to nested MC's - surely this is possible and
 I'm missing something blindingly obvious?

 Cheers

 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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Attaching bitmap data to arbitary coords

2006-12-11 Thread Charles Parcell

You can of course use copyPixels() as well.

http://livedocs.macromedia.com/flash/8/main/1948.html

Charles P.


On 12/11/06, Charles Parcell [EMAIL PROTECTED] wrote:


Yeah, I think you are looking for the draw() method of BitmapData.

http://livedocs.macromedia.com/flash/8/main/1950.html

See the comments as well.

Charles P.



On 12/10/06, Martin Jonasson [EMAIL PROTECTED] wrote:

 This is what i use in i a project of mine:

 var myMatrix:Matrix = new Matrix();
 myMatrix.rotate(clip._rotation * 0.0174532925199433);
 var translateMatrix:Matrix = new Matrix();
 translateMatrix.translate(clip._x, clip._y);
 myMatrix.concat(translateMatrix);
 myBitmapData2.draw(clip, myMatrix)

 (this is stolen straight from my code, with nothing added to make it
 more understandable, but it should be rather self explanatory)


 Mike Mountain skrev:
  Consider the following, Flash 8:
 
  var w=200
  var h=200
  holder=this.createEmptyMovieClip (bmp1, this.getNextHighestDepth());
  var bmpData1:BitmapData = new BitmapData(w, h, true, 0x);
  bmp1.attachBitmap(bmpData1, 2, auto, true);
 
  This will attach the bitmapdata so it's top left is situated at the
 reg
  point of the mc, how do I attach it, or later move it so the reg point
  of the MC is situated at any point I wish, without using nested MC's?
 
  The problem being I want to make an exact bitmap copy of the contents
 of
  an MC, which could have it reg point set anywhere - and I want the new
  copy to inherit the same registration point, but like I said before -
  without having to resort to nested MC's - surely this is possible and
  I'm missing something blindingly obvious?
 
  Cheers
 
  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@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] preloader not completely preloading...

2006-12-11 Thread Steven Sacks | BLITZ
stop();
function checkLoad()
{
   var c = mc.getBytesLoaded();
   var t = mc.getBytesTotal();
   var p = (c / t) * 100;
   MC_LoaderBar._xscale = p;
   TXT_Load.text = Math.floor(p + %);
   if (p == 100  t  4) {
  delete this.onEnterFrame;
  mc.gotoAndPlay(main);
   }
}
this.onEnterFrame = checkLoad;


Doesn't get much simpler.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Looking for Flash Contractor

2006-12-11 Thread Eaton, Jason
CyberSource is looking for a flash contractor to build a flash
application used for information gathering. Please contact me directly
by email or phone below. Cheers.

 

Jason Eaton, CyberSource Corporation

Engineering Director, Managed Risk

(650)965-6022

 

 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Why does this work in Flash 6 Actionscript 2 butnot Flash 7 Actionscript 2 ...

2006-12-11 Thread Steven Sacks | BLITZ
  Why does the following work when published as Flash 6 
 Actionscript 2, but not Flash 7 actionscript 2 (or Flash 8 
 Actionscript 2).var nInt:Number;var oMain:Object = {};var 
 nCounter:Number;var sClipName:String;var 
 nClipDepth:Number;function spawnClip():Void{var 
 mcTemp:MovieClip = this.attachMovie(mcCircle, 
 mcCircle+nCounter, nCounter, oMain);mcTemp._x = 
 Math.random()*600;mcTemp._y = Math.random()*400;
 nCounter++;}nInt = setInterval(this, spawnClip, 
 500);


Posting code without carriage returns makes baby Jesus cry.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Which technique do you use ...

2006-12-11 Thread Steven Sacks | BLITZ
Neither.  I use the technique where you put carriage returns after each
line of code.  

I'm not bragging.  I know it's a pretty advanced concept but I think
anyone is capable of getting their head around it if they put in the
time.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] preloader not completely preloading...

2006-12-11 Thread Count Schemula

Thanks everyone!

On 12/11/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:

stop();
function checkLoad()
{
   var c = mc.getBytesLoaded();
   var t = mc.getBytesTotal();
   var p = (c / t) * 100;
   MC_LoaderBar._xscale = p;
   TXT_Load.text = Math.floor(p + %);
   if (p == 100  t  4) {
  delete this.onEnterFrame;
  mc.gotoAndPlay(main);
   }
}
this.onEnterFrame = checkLoad;


Doesn't get much simpler.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




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

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


Re: [Flashcoders] Which technique do you use ...

2006-12-11 Thread Cedric Muller

LOL
sorry, louding out the list

Neither.  I use the technique where you put carriage returns after  
each

line of code.

I'm not bragging.  I know it's a pretty advanced concept but I think
anyone is capable of getting their head around it if they put in the
time.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] :: anyone passed flash 8 certification exam?::

2006-12-11 Thread Steven Sacks | BLITZ
Flash 8 Certification Exam?  Srsly?  And you pay for it?  That's crazy
talk!  

If you've got money to throw away, why not give it to a charity this
holiday season and use it for something that actually makes a
difference?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Which technique do you use ...

2006-12-11 Thread eric dolecki

:)

1st by far for me. After I imagined carriage returns.

- e.

On 12/11/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


Neither.  I use the technique where you put carriage returns after each
line of code.

I'm not bragging.  I know it's a pretty advanced concept but I think
anyone is capable of getting their head around it if they put in the
time.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] JSFL Saving a created document

2006-12-11 Thread Steven Sacks | BLITZ
Hm. That's odd because my script saves as many files as I need it to
with whatever path and filenames I want without prompting me.  I wonder
what's different.  Are you using Flash 7 or 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] Shared Library Problem

2006-12-11 Thread Jason Saelhof
Hi everyone,

 

I have a strange problem occurring after moving a number of movieclips
to a shared library. My movie has 3 frames, each frame using some (but
not all) imported movieclips from the shared library. I have pre-loaded
the library and the first frame displays and functions properly. The
problem occurs when I click a button that moves the playhead to one of
the other two frames. The shared assets that should display on that
frame do not (non-shared movieclips display correctly). They are
invisible and I can see the background color of the movie where they
should be. When I click to go back to the first frame, the entire stage
goes blank leaving only the background color showing. If I unshared the
assets, the movie works like it's supposed to.

 

I've done all the basic things I can think of like double-checking all
the linkage id's and shared library paths but I can't figure out whats
going on. I even made a test movie using assets from the same library
and I can switch frames in that movie without any of the movieclips
disappearing. Has anyone experienced this problem when working with
shared libraries? Thanks for any help/suggestions anyone can provide.

Jason 

 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Extracting SWF height and width from php

2006-12-11 Thread dj
Is it possible to extract the height and width of a swf file with a
command in php?

Or is there another way to do this.  it's because we want to make a
table height dynamic to the size of the swf file.  Just curious?

Thanks,
patrick

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Extracting SWF height and width from php

2006-12-11 Thread Mick G

On idea...
You could use Stage.width and Stage.height in Flash - send those
variables via Javscript/externalInterface and use a javascript
function to adjust the height/width of the table.



On 12/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Is it possible to extract the height and width of a swf file with a
command in php?

Or is there another way to do this.  it's because we want to make a
table height dynamic to the size of the swf file.  Just curious?

Thanks,
patrick

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] :: anyone passed flash 8 certification exam?::

2006-12-11 Thread [EMAIL PROTECTED]
Gee Steve,
   
  You normally are such a force for good in the world.  
   
  But that post on the Flash cert was harsh.
   
  I can understand why you wouldn't take the time of day to think about taking 
a cert exam.  But then why take the time to bash it?
   
  The cert thing is good.  Not evil.  You live near the epicenter of the Flash 
universe.  But not everybody does.  It is good for people to use objective 
measures to know that they are making progress.
   
  Please stick to your normal form of playing nice with the other kids here in 
the Flash playground :-)

Best wishes to you and yours this holiday season!
  

Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
  Flash 8 Certification Exam? Srsly? And you pay for it? That's crazy
talk! 

If you've got money to throw away, why not give it to a charity this
holiday season and use it for something that actually makes a
difference?

 
-
Need a quick answer? Get one in minutes from people who know. Ask your question 
on Yahoo! Answers.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Extracting SWF height and width from php

2006-12-11 Thread Ian Thomas

The getimagesize() function does it for you.

http://uk2.php.net/manual/en/function.getimagesize.php

HTH,
  Ian

On 12/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Is it possible to extract the height and width of a swf file with a
command in php?

Or is there another way to do this.  it's because we want to make a
table height dynamic to the size of the swf file.  Just curious?

Thanks,
patrick


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

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


Re: RE: [Flashcoders] :: anyone passed flash 8 certification exam?::

2006-12-11 Thread Jordan Snyder

I don't agree with the smartassitude, but perhaps what Steven is
insinuating is that proving that you know some syntax does not prove
that you can actually do anything with it.  I'm not at the epicenter
of the Flash Universe and I think the cert is worthless.  Is that a
better way to put it?  ;)

Cheers!

On 12/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Gee Steve,

  You normally are such a force for good in the world.

  But that post on the Flash cert was harsh.

  I can understand why you wouldn't take the time of day to think about taking 
a cert exam.  But then why take the time to bash it?

  The cert thing is good.  Not evil.  You live near the epicenter of the Flash 
universe.  But not everybody does.  It is good for people to use objective 
measures to know that they are making progress.

  Please stick to your normal form of playing nice with the other kids here in 
the Flash playground :-)

Best wishes to you and yours this holiday season!


Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
  Flash 8 Certification Exam? Srsly? And you pay for it? That's crazy
talk!

If you've got money to throw away, why not give it to a charity this
holiday season and use it for something that actually makes a
difference?


-
Need a quick answer? Get one in minutes from people who know. Ask your question 
on Yahoo! Answers.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




--
Jordan Snyder
Applications Developer
Image Action LLC
http://www.imageaction.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] JSFL Saving a created document

2006-12-11 Thread Chris W. Paterson
Using Flash 8... on a Mac.
 
 


- Original Message 
From: Steven Sacks | BLITZ [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, December 11, 2006 12:25:16 PM
Subject: RE: [Flashcoders] JSFL Saving a created document

Hm. That's odd because my script saves as many files as I need it to
with whatever path and filenames I want without prompting me.  I wonder
what's different.  Are you using Flash 7 or 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






 

Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] :: anyone passed flash 8 certification exam?::

2006-12-11 Thread [EMAIL PROTECTED]
hi jordan,
  
  now do you feel better? now that you got that off your chest and out in the 
open?  certifications are worthless.
  
  unless ...
  
  -- you are a newbie, and you are not even sure you are worthy of  calling 
yourself a Flash developer. trust me, if you can pass this  exam, you do know 
stuff. keep going.
 -- you are a non-technical  hiring manager. yeah, you can just take the 
candidate's word for it  that they know Flash. but i also definitely recommend 
that you look at  their portfolio, and even more importantly check their 
references (to  be sure that it is their portfolio). but if you are lazy and 
you can  check that they passed an exam, at least that is better than nothing.
  -- you have a salary job for a big bureaucratic corporation, and hell  if you 
know why, but if you pass the exam they will give you a pay  raise.
  -- you or your employer partner with Adobe and passing the exam is a 
requirement for your continued employment.
  -- or it is a choice between college and the real world. heck a  
certification exam is $150.  4 year college degree $150,000
  
  i have never met a subject matter expert that doesn't disdain the whole  
notion of certification exams. i guess it is not unlike neither bill  gates nor 
steve jobs having college degrees. but hey, they still hire  people that do.
  
 enough babble from me. technical  certifications exist. i took them. my 
passing them in no way makes me a  better flashcoder than you or steve. nor 
does it make me worse ;-)
  
  Now same to you, let's get back to playing nice with the other kids here in 
the Flash playground :-)
  
  Best wishes to you and yours this holiday season!
  

Jordan Snyder [EMAIL PROTECTED] wrote:  I don't agree with the smartassitude, 
but perhaps what Steven is  insinuating is that proving that you know some 
syntax does not prove  that you can actually do anything with it. I'm not at 
the epicenter of  the Flash Universe and I think the cert is worthless. Is that 
a better  way to put it? ;)

Cheers!
  

 
-
Want to start your own business? Learn how on Yahoo! Small Business.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] :: anyone passed flash 8 certification exam?::

2006-12-11 Thread Jordan Snyder

Haha fair enough.  Just understand that my tone was playful and did not
illicit a smartass response.  You do make some good points as to the uses of
a cert, but I'm still not sure that makes it worth much...with a Flash cert,
I'm not going to demand the same respect as with a 4 year degree.  There is
no comparison there.  And the other things seem as though they could be
accomplished by actually DOING something with Flash, not just learning
definitions.  If you have a hiring manager who can BS enough to learn some
definitions, and a potential hire than can BS enough to learn some
definitions, what have you got in the long run?
I will digress and recognize the validity of a cert in some instances, but I
still think it's hopping over a low bar.


Cheers!

On 12/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


hi jordan,

  now do you feel better? now that you got that off your chest and out in
the open?  certifications are worthless.

  unless ...

  -- you are a newbie, and you are not even sure you are worthy
of  calling yourself a Flash developer. trust me, if you can pass
this  exam, you do know stuff. keep going.
-- you are a non-technical  hiring manager. yeah, you can just take the
candidate's word for it  that they know Flash. but i also definitely
recommend that you look at  their portfolio, and even more importantly check
their references (to  be sure that it is their portfolio). but if you are
lazy and you can  check that they passed an exam, at least that is better
than nothing.
  -- you have a salary job for a big bureaucratic corporation, and
hell  if you know why, but if you pass the exam they will give you a
pay  raise.
  -- you or your employer partner with Adobe and passing the exam is a
requirement for your continued employment.
  -- or it is a choice between college and the real world. heck
a  certification exam is $150.  4 year college degree $150,000

  i have never met a subject matter expert that doesn't disdain the
whole  notion of certification exams. i guess it is not unlike neither
bill  gates nor steve jobs having college degrees. but hey, they still
hire  people that do.

enough babble from me. technical  certifications exist. i took them. my
passing them in no way makes me a  better flashcoder than you or steve. nor
does it make me worse ;-)

  Now same to you, let's get back to playing nice with the other kids here
in the Flash playground :-)

  Best wishes to you and yours this holiday season!


Jordan Snyder [EMAIL PROTECTED] wrote:  I don't agree with the
smartassitude, but perhaps what Steven is  insinuating is that proving that
you know some syntax does not prove  that you can actually do anything with
it. I'm not at the epicenter of  the Flash Universe and I think the cert is
worthless. Is that a better  way to put it? ;)

Cheers!



-
Want to start your own business? Learn how on Yahoo! Small Business.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
Jordan Snyder
Applications Developer
Image Action LLC
http://www.imageaction.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] :: anyone passed flash 8 certification exam?::

2006-12-11 Thread [EMAIL PROTECTED]
jordan,
  
  you hit the essence of it. it is hopping over a low bar.
  
  technical certs are minimal, entry level credentials.
  
  kind of like a drivers license. and true, just because you have a license 
doesn't mean that you know how to drive ;-)
  
  achieving a technical cert is in no way on par with winning MAX Awards, Flash 
Film Festival, or landing a big account.
  
  and certainly passing a certification exam doesn't mean you will be  able to 
go around seemingly effortlessly dropping code solutions here  on flashcoders 
like steven does.
  
  so relative to those high honors, i concur that the cert is worth less.
  
  but ... when you are coming off ground zero, knocking off a cert can be a 
nice milestone along the way.
  
  btw, Flash certs are version specific. of all the languages i code,  
actionscript has been the most horribly unstable. however, now that  Adobe has 
actionscript tied to ECMA-262,  my hope is that as3 will be the last gut 
wrenching change for  actionscript. point being when the Flash 9 cert comes out 
anyone who  passes it will have to be up to date on as3, and conversely won't 
be  required to know as2 or as1 (really, finally, good-bye prototype ;-)
  
  
  Jordan Snyder [EMAIL PROTECTED] wrote:  Haha fair enough.  Just understand 
that my tone was playful and did not
illicit  a smartass response. You do make some good points as to the uses of a  
cert, but I'm still not sure that makes it worth much...with a Flash  cert, I'm 
not going to demand the same respect as with a 4 year degree.  There is no 
comparison there. And the other things seem as though they  could be 
accomplished by actually DOING something with Flash, not just  learning 
definitions. If you have a hiring manager who can BS enough to  learn some 
definitions, and a potential hire than can BS enough to  learn some 
definitions, what have you got in the long run? I will  digress and recognize 
the validity of a cert in some instances, but I  still think it's hopping over 
a low bar.


Cheers!
  

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] Which Data Structure is good for this?

2006-12-11 Thread Sascha
I would be interested in recommendations about what kind of data structure
is best used in the following situation.
I'm loading in a XML file with a typical recursive structure, then the data
from it should be parsed into a data storage object and this data should be
accessible globally through the application. The XML file has a structure
like this:

resourceList
display type=1
displayProperties
property name=foo value=doo/
property name=fee value=faa/
/displayProperties
displayObjects
object id=1 file=foo/etc/file.xml/
object id=2 file=foo/etc/file2.xml/
object id=3 file=foo/etc/file3.xml/
/displayObjects
backgrounds
 backgrounds id=125 file=foo/etc/bg.png/
/ backgrounds
/display
data
dataTypes
property name=foo value=doo/
property name=fee value=faa/
/dataTypes
/data
etc
somethingElse
property name=foo value=doo/
/ somethingElse 
/etc

... The XML is being extended by the time but it retains the shown
hierarchical structure. I want to be able to keep a similar structure in
memory but I don't want to keep it as an XML object. I was thinking about
using a custom object and populate it with HashMaps but then the hierarchy
would be too flat.
I would appreciate it if somebody could give me some suggestions what kind
of data structure is a good choice for this as I don't have much experience
with trees, lists and other more complex structures.

Thanks a lot,
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


RE: RE: [Flashcoders] :: anyone passed flash 8 certification exam?::

2006-12-11 Thread Steven Sacks | BLITZ
If you want to extract from my statement that the certification is a
waste of time, and since idle hands are the devil's workshop therefore I
was saying the certification was evil, like Bobby Brown, that's your
perogative.  I wasn't taking it so far as to label it as such.  ;)

No Flash certificate in the world proves you know best practices when it
comes to architecting a solid codebase.  You know how to use the drawing
tools.  You know how to manipulate an Array.  You know the difference
between private and public functions.  You know the proper syntax when
writing classes.  Neato.

You've got a piece of paper that says you know how to use a drill, a
saw, a hammer, and a screwdriver.  Now build me a house.  

If I'm looking for somebody to build a house, I don't care if he has
certifications that he knows how to use the tools used to build a house.
A potential employer (client) wants to see the houses he has built (e.g.
a resume with past work and code examples).

I wouldn't give any Flash certification much weight.  It's not close to
a 4-year degree in CompSci.  If you're doing it for yourself, fine, but
I can think of better ways to spend your money.

http://www.childsplaycharity.org/  comes to mind.

To be fair, one benefit of taking the test is you push yourself to learn
new things in order to make sure you know enough to pass the test, which
could be anything, so you learn a lot to compensate.  It's only to
motivate you to learn.  A Flash 8 Certificate means little to nothing at
any company that needs Flash developers.  They want to see what you've
done with Flash, not that you have a license to drive it.









 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Jordan Snyder
 Sent: Monday, December 11, 2006 2:13 PM
 To: Flashcoders mailing list
 Subject: Re: RE: [Flashcoders] :: anyone passed flash 8 
 certification exam?::
 
 I don't agree with the smartassitude, but perhaps what Steven 
 is insinuating is that proving that you know some syntax does 
 not prove that you can actually do anything with it.  I'm not 
 at the epicenter of the Flash Universe and I think the cert 
 is worthless.  Is that a better way to put it?  ;)
 
 Cheers!
 
 On 12/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Gee Steve,
 
You normally are such a force for good in the world.
 
But that post on the Flash cert was harsh.
 
I can understand why you wouldn't take the time of day to 
 think about taking a cert exam.  But then why take the time 
 to bash it?
 
The cert thing is good.  Not evil.  You live near the 
 epicenter of the Flash universe.  But not everybody does.  It 
 is good for people to use objective measures to know that 
 they are making progress.
 
Please stick to your normal form of playing nice with the 
 other kids 
  here in the Flash playground :-)
 
  Best wishes to you and yours this holiday season!
 
 
  Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
Flash 8 Certification Exam? Srsly? And you pay for it? 
 That's crazy 
  talk!
 
  If you've got money to throw away, why not give it to a 
 charity this 
  holiday season and use it for something that actually makes a 
  difference?
 
 
  -
  Need a quick answer? Get one in minutes from people who 
 know. Ask your question on Yahoo! Answers.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com http://training.figleaf.com
 
 
 
 -- 
 Jordan Snyder
 Applications Developer
 Image Action LLC
 http://www.imageaction.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] Which Data Structure is good for this?

2006-12-11 Thread Steven Sacks | BLITZ
function XML2AS(n, r) {
var a, d, k;
if (r[k=n.nodeName] == null) r = ((a=r[k]=[{}]))[d=0];
else r = (a=r[k])[d=r[k].push({})-1];
if (n.hasChildNodes()) {
if ((k=n.firstChild.nodeType) == 1) {
r.attributes = n.attributes;
for (var i in k=n.childNodes) XML2AS(k[i], r);
} else if (k == 3) {
a[d] = new String(n.firstChild.nodeValue);
a[d].attributes = n.attributes;
}
}else r.attributes = n.attributes;
}


Usage example:

var xmlObj:Object = {};
XML2AS(xml.firstChild, xmlObj);

var dType:String = xmlObj.resourceList[0].display[0].attributes.type;
var pArray:Array =
xmlObj.resourceList[0].display[0].displayProperties[0].property;

var i:Number = pArray.length;
while (i--) {
trace(pArray[i].attributes.name + , + pArray[i].attributes.value);
}



 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Sascha
 Sent: Monday, December 11, 2006 7:54 PM
 To: 'Flashcoders mailing list'
 Subject: [Flashcoders] Which Data Structure is good for this?
 
 I would be interested in recommendations about what kind of 
 data structure is best used in the following situation.
 I'm loading in a XML file with a typical recursive structure, 
 then the data from it should be parsed into a data storage 
 object and this data should be accessible globally through 
 the application. The XML file has a structure like this:
 
 resourceList
   display type=1
   displayProperties
   property name=foo value=doo/
   property name=fee value=faa/
   /displayProperties
   displayObjects
   object id=1 file=foo/etc/file.xml/
   object id=2 file=foo/etc/file2.xml/
   object id=3 file=foo/etc/file3.xml/
   /displayObjects
   backgrounds
backgrounds id=125 file=foo/etc/bg.png/
   / backgrounds
   /display
   data
   dataTypes
   property name=foo value=doo/
   property name=fee value=faa/
   /dataTypes
   /data
   etc
   somethingElse
   property name=foo value=doo/
   / somethingElse 
   /etc
 
 ... The XML is being extended by the time but it retains the 
 shown hierarchical structure. I want to be able to keep a 
 similar structure in memory but I don't want to keep it as an 
 XML object. I was thinking about using a custom object and 
 populate it with HashMaps but then the hierarchy would be too flat.
 I would appreciate it if somebody could give me some 
 suggestions what kind of data structure is a good choice for 
 this as I don't have much experience with trees, lists and 
 other more complex structures.
 
 Thanks a lot,
 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


RE: [Flashcoders] Which Data Structure is good for this?

2006-12-11 Thread Sascha
Thanks Steven! Forgot to mention that I'm using AS3. I will try to write
your method in AS3 and see if it fits my needs.

Cheers,
Sascha


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ
 Sent: Tuesday, 12 December, 2006 13:05
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Which Data Structure is good for this?
 
 function XML2AS(n, r) {
   var a, d, k;
   if (r[k=n.nodeName] == null) r = ((a=r[k]=[{}]))[d=0];
   else r = (a=r[k])[d=r[k].push({})-1];
   if (n.hasChildNodes()) {
   if ((k=n.firstChild.nodeType) == 1) {
   r.attributes = n.attributes;
   for (var i in k=n.childNodes) XML2AS(k[i], r);
   } else if (k == 3) {
   a[d] = new String(n.firstChild.nodeValue);
   a[d].attributes = n.attributes;
   }
   }else r.attributes = n.attributes;
 }
 
 
 Usage example:
 
 var xmlObj:Object = {};
 XML2AS(xml.firstChild, xmlObj);
 
 var dType:String = xmlObj.resourceList[0].display[0].attributes.type;
 var pArray:Array =
 xmlObj.resourceList[0].display[0].displayProperties[0].property;
 
 var i:Number = pArray.length;
 while (i--) {
 trace(pArray[i].attributes.name + , + pArray[i].attributes.value);
 }
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Sascha
  Sent: Monday, December 11, 2006 7:54 PM
  To: 'Flashcoders mailing list'
  Subject: [Flashcoders] Which Data Structure is good for this?
 
  I would be interested in recommendations about what kind of
  data structure is best used in the following situation.
  I'm loading in a XML file with a typical recursive structure,
  then the data from it should be parsed into a data storage
  object and this data should be accessible globally through
  the application. The XML file has a structure like this:
 
  resourceList
  display type=1
  displayProperties
  property name=foo value=doo/
  property name=fee value=faa/
  /displayProperties
  displayObjects
  object id=1 file=foo/etc/file.xml/
  object id=2 file=foo/etc/file2.xml/
  object id=3 file=foo/etc/file3.xml/
  /displayObjects
  backgrounds
   backgrounds id=125 file=foo/etc/bg.png/
  / backgrounds
  /display
  data
  dataTypes
  property name=foo value=doo/
  property name=fee value=faa/
  /dataTypes
  /data
  etc
  somethingElse
  property name=foo value=doo/
  / somethingElse 
  /etc
 
  ... The XML is being extended by the time but it retains the
  shown hierarchical structure. I want to be able to keep a
  similar structure in memory but I don't want to keep it as an
  XML object. I was thinking about using a custom object and
  populate it with HashMaps but then the hierarchy would be too flat.
  I would appreciate it if somebody could give me some
  suggestions what kind of data structure is a good choice for
  this as I don't have much experience with trees, lists and
  other more complex structures.
 
  Thanks a lot,
  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


Re: [Flashcoders] Which Data Structure is good for this?

2006-12-11 Thread T. Michael Keesey

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

I would be interested in recommendations about what kind of data structure
is best used in the following situation.
I'm loading in a XML file with a typical recursive structure, then the data
from it should be parsed into a data storage object and this data should be
accessible globally through the application. The XML file has a structure
like this:

[snipped]

The e4x functions make dealing with XML objects s nice that I
don't see any particular reason to convert it to something else.

But, if you insist, how about a data model package with classes like so:

Model
 public function get xml():XML;
 public function set xml(value:XML):void

ResourceList extends Model
 public function getDisplay(type:uint):Display;
 public function get data():Data;
 override public function set xml(value:XML):void

Display extends Model
 public function get propertyCount():uint;
 public function get backgroundCount():uint;
 public function get objectCount():uint;
 public function getProperty(index:uint):Property;
 public function getBackground(index:uint):Background;
 public function getObject(index:uint):DisplayObject;
 override public function set xml(value:XML):void

... so on and so forth

--
T. Michael Keesey
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] swf to AVI

2006-12-11 Thread master
convert swf to avi can use swf to video converter at 
http://www.flash-video-mx.com/swf_to_video/ .




master
2006-12-12
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Extracting SWF height and width from php

2006-12-11 Thread Micky Hulse

function get_img_size($loc) {
# Get the image size of the file.
# Array returned gets populated with getimagesize() values:
/* Array (
[0] = 60
[1] = 41
[2] = 2
[3] = width=60 height=41
[bits] = 8
[channels] = 3
[mime] = image/jpeg
[4] = width=60px height=41px
[5] = width: 60px; height: 41px;
[6] = width: 60px;
[7] = height: 41px;
) */
	$spec = getimagesize(rtrim($loc)); // Use rtrim to remove any extra 
space on end of $loc.
	$html_wxh = 'width='.$spec[0].'px height='.$spec[1].'px'; // = 
index[4] = width=_px height=_px, for use in XHTML.
	$css_wxh = 'width: '.$spec[0].'px; height: '.$spec[1].'px;'; // = 
index[5] = width: _px; height: _px;, for use in CSS.
	$css_w = 'width: '.$spec[0].'px;'; // = index[6] = width: _px;, for use 
in CSS.
	$css_h = 'height: '.$spec[1].'px;'; // = index[7] = height: _px;, for 
use in CSS.


	array_push($spec, $html_wxh, $css_wxh, $css_w, $css_h); // Add 
$html_wxh and $css_wxh to end of $spec array.


return $spec; // Return the X/Y.
}


--
 Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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