Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-16-2008, 05:23 PM   #1
Ari
Registered User
 
Join Date: Oct 2008
Posts: 2
Default ActionScript 3.0 quiz

Guys,

Need your urgent help in cracking this quiz:

1. Q.
For a default DisplayObjectContainer with a width of 240 pixels and height of 180 pixels, how would you position a default DisplayObject with a width of 54 pixels and height of 78 pixels within the center of the container? What would the new x/y coordinates of the DisplayObject be?
2. Q.
With the following XML, what would the syntax of the trace() statement below be to produce a value of 33623232323 ?
var _val:String = "foobar";
var _xml:XML = <clouds>
<cumulous><elevation key="336">Cumulous</elevation></cumulous>
<cirrus key="23232323"><elevation key={_val}>Cirrus</elevation></cirrus>
<nimbus><elevation key={_val}>Nimbus</elevation></nimbus>
</clouds>

trace(?????);
3. Q.
Whats the fastest method to remove a DisplayObject from a DisplayObjectContainer if all you know is that the child DisplayObject name is "firetruckAsset"?
4. Q.
What would be a few good ways to unit-test the previous operation?
5. Q.
In the context below, flag the 'foo' object available for ASVM Garbage Collection.
var fooisplayObjectContainer = new Sprite();
var bar:MovieClip = MovieClip( foo );
foo.addEventListener( new Event( Event.CHANGE, this.onChange, false, 0, true ) );
6. Q.
How would you go about finding the index of "myjelly" in this scenario?
var myjelly:*= { key:"orange" };
var list:ArrayCollection = new ArrayCollection( "strawberry", "lime", "orange" );
7. Q.
Given the following scenario:

var times_chewed:int;
function chew():void {

}
function swallow():void {

}

If you wanted to chew() and then swallow() a total of 3 times in the prior code using "times_chewed", what is the cleanest approach?

8. Q.
What one of the best ways to reduce the overall byte size of a compiled SWF using MXMLC?


Thanks a ton,

Ari
Ari is offline   Reply With Quote
Old 10-16-2008, 05:37 PM   #2
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Sounds like a school project or possibly a quick interview question to me... When is it due???
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 10-16-2008, 11:47 PM   #3
Ari
Registered User
 
Join Date: Oct 2008
Posts: 2
Default

tonight... Yes, kind of a interview screening. Can you help me please? I am falling short on Questions 4, 5 and 8. I have not used much of MXML too.
Ari is offline   Reply With Quote
Old 10-17-2008, 12:29 AM   #4
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

If I were interviewing somebody, I'd rather hear that you don't know the answer than hearing the answer from somebody else rather than you... I can guide/teach you the knowledge after I hire you but I cannot teach you how to be honest...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 10-17-2008, 12:36 AM   #5
mattkenefick
Chief Breaks-many-phones
 
Join Date: Jun 2007
Location: new york city
Posts: 527
Default

Plead the Fifth!
mattkenefick is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pure actionscript 3.0 flash site with design patterns jad Best Practices 5 07-02-2008 11:46 PM
ActionScript 3.0 headache... iidan_i ActionScript 3.0 5 06-06-2008 02:51 PM
Getting start with Actionscript 3.0 kleave ActionScript 3.0 4 06-04-2008 08:11 AM
SWF compiled with AS3, loading a compiled SWF AS2? tinkertrain ActionScript 3.0 2 06-30-2007 07:11 PM
Help with ActionScript 3.0 combobox kheftel Components 9 06-25-2007 04:14 PM


All times are GMT. The time now is 02:27 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.