Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Code access to timeline masks...?

This is a discussion on Code access to timeline masks...? within the advanced Actionscript 3.0 forums, part of the Flash CS3 eng category; Is it possible to use AS3 code to access information about masks that were set up on the timeline in ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Flash CS3 eng > advanced Actionscript 3.0

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-10-08, 08:11
Junior Member
 
Join Date: Oct 2008
Posts: 3
Rep Power: 0
barliesque is on a distinguished road
Question Code access to timeline masks...?

Is it possible to use AS3 code to access information about masks that were set up on the timeline in the Flash IDE?

I have two shapes on the time line: A circle and a square. The square is on a layer that masks the circle, so that the end result is a quarter-circle. When examining the display list, two unnamed instances are there--both are shapes. The mask property of both is set to null...!!!

So presumably, the mask property is not being set because the mask was set up in the Flash IDE, rather than dynamically through code. Is there some way to access any useful information about this scenario from code???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 04-10-08, 09:52
Junior Member
 
Join Date: Oct 2008
Posts: 3
Rep Power: 0
barliesque is on a distinguished road
Re: Code access to timeline masks...?

Ugh! The idea wasn't to re-code everything that's been set up with the Flash IDE... but that seems to be the only way to approach masking from AS3. What's worse, it turns out that any given mask can only be assigned to a single object---unlike what's possible within the Flash IDE timeline. So it becomes all the more troublesome to re-create a set of masked objects in code.

I've just written an article dealing with this issue on my blog, and included some code that works around problems of determining a MovieClip's area of visibility when the MovieClip includes masks.

So if anybody else comes across this post because they've had this kind of problem, have a look at this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 04-10-08, 11:36
Onsitus's Avatar
CSS.FlepStudio.org
 
Join Date: Jul 2007
Location: Nettuno Beach
Posts: 1,012
Rep Power: 3
Onsitus is on a distinguished road
Re: Code access to timeline masks...?

Nice article...thanks for sharing!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 05-10-08, 03:26
Junior Member
 
Join Date: Oct 2008
Posts: 3
Rep Power: 0
barliesque is on a distinguished road
Re: Code access to timeline masks...?

Thank you. I hope it proves helpful.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Actionscript 2 what is this as2 code? indo4web Flash CS3 eng 0 27-06-08 14:20
ColorTransform wonīt work with 2 masks madmad Flash CS3 eng 0 28-05-08 09:00
Not As3.0 Code! theuprock Actionscript 3.0 newbies 9 26-12-07 16:57
access loaded object jimbo Actionscript 3.0 newbies 6 18-10-07 13:20
Masks with Actionscript 3.0 Flep Tutorials 0 03-10-07 19:23


All times are GMT. The time now is 22:26.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406