IDE :: 9 Slice Scailing In A Mask Not Working?
Nov 8, 2005I have a mask with a MC with 9ss and for some reason when I resize that MC it doesnt use the 9ss. Does anyone have a fix for this?
View 12 RepliesI have a mask with a MC with 9ss and for some reason when I resize that MC it doesnt use the 9ss. Does anyone have a fix for this?
View 12 RepliesI am trying to use slice to remove an element of an array and it does not seem to be working.I have an array in a class called singleton. It is global and persistent and once instantiated I just get the instance of it
_singletonInstance = Singleton.getInstance();
I also have another class I instantiate when I need to add or remove an element from that array in the singleton object.I can add to the array when I call this function:
public function add():void
{
_singletonInstance.noDropList.push(_elementToAdd);[code]....
Since the TimeCell0_mc_25 is index 4 it should be removed in the second list after add. but as you can see it is still there.
ive gotten one movie clip to mask another in the actions frame but i cant seem to be able to mask the flames which are a shape with a movieclip in this as file. im not getting any errors but the mask isnt covering anything look near the bottom at s.mask=mask_mc; there are about 20 "s" shapes spawning per second if that has anything to do with it
Code:
//this package turns an mc into a flaming button that calls a javascript function
package
{
import flash.display.MovieClip;
[Code].....
why my masking effect is not working,i mean on Library display is displaying correctly[Type:Movie],i just did draged into main pannel the movie clip,and when i run it,it just show static text,why?
View 13 Replies[code]The problem is that the mask isn't applied. Now, if I just add mask_container it adds to the stage just fine. If I mask mask_container with square, it masks just fine. They're both Sprites so both are on the display list.
View 3 RepliesI am trying to do some text effects by using a text mask but I can't get the mask to work. I can successfully mask a circle over a rectangle, and even mask a rectangle over text, but text over a gradient rectangle just doesn't work - I end up with the rectangle moving across the stage, but no text mask.
View 2 RepliesI've tried to make an alpha mask using a photo and a mask containing a alpha gradient. Using this code:
ActionScript Code:
maskee.cacheAsBitmap = true;
maskMC.cacheAsBitmap = true;
maskee.setMask("maskMC");
But it's not working? The 'blob' mask in the center should motion tween bigger. I can see the alpha mask in action, but the motion tween doesn't do anything. The image is freezing.
I've hit a wall trying to get this to work: - I've created a movie clip that contains 14 layers, each layer is a 3D Y-rotation using a motion tween on a movieclip object (just a solid rectangle) - Trying to emulate a venetian blind transition effect When I put this "mask" movie clip on my timeline, it won't allow me to use this as a mask!! - I tried setting up the mask in AS3 as well, using imgMC.mask = maskMC; Does Flash allow this? Can I use 3D motion tweens as masks? it doesn't seem to allow it. I was hoping maybe I missed something.
View 2 RepliesI am creating a very simple mask using motion tweening. I created some text on a layer and made it a masked layer. Then I created a mask layer which consists of a circle that will span across the text. When I play the movie the circle does not show up at all in the frames the mask layer spans (it's purple on a black background) and the circle does not move across the text like I told it to with the motion tweening. I don't know why it's not working. For some reason the circle isn't showing on the stage at all and it's not moving across the text. I don't know if I have it set up wrong on the timeline or what. Here's the steps I followed to create the mask:
1.insert a new layer in which I named it mask and click frame 1 on this layer
2. select the oval tools on the tools panel and set the stroke to none
3. set the fill color to purple
4. draw a circle and click the selection tool and drag a marquee around the circle to select it.
5. click insert on the menu bar, click motion tween then click ok in dialog box about converting it to a symbol to be tweened
6. click the last frame in the mask layer and drag the circle to the end of the line of text
7.click mask on the timeline to select the mask layer, click modify on the menu bar, point to timeline then click layer properties
8. verify the show check box is selected in the name section, click the lock check box to select it, click the mask option button in he type section, then click ok.
9. play the movie in which the circle object covers the text on the masked layer as it moves across the stage.
i have the AS setting the mask, and my fonts are embedded.. but the dynamic text doesnt mask my other movieclip.my dynamic text is "fly_in" MC with the text field inside. the MC label is: "headerTxt_mask" the sheen is labeled "sheenMC" and put in a layer below "headerTxt_mask" in the same "fly_in" MC then on the first frame of my scene i have:
ActionScript Code:
fly_in.sheenMC.setMask(fly_in.headerTxt_mask);
The dynamic txt field is supposed to be the mask for the sheen, so all you see is the sheen...
So I've made a circular preloader made with some shapes and masks. Everything like this works. What I want to do now is add a movieclip of animations to the stage and make it look like this movie clip is in the progress circle of the preloader. So what I did is create a movieclip container to hold all of the shapes that animate on loading. I then used that movieclip container to mask the movieclip of animations.What happens when published is the movieclip of animations (the particles) loads over the shapes, but all of their masks are gone. So it's as if when I applied the mask to the container, all of it's children and their masks stopped working. Is there a way to correctly do this?
View 2 RepliesWhy the following doesnt work:
Code:
for (var i = 1; i < 6; i++) {
var mc = "mc"+i;
var mask = "mask"+i;
mc.mask._xscale = 50;
}
But, if I change the line mc.mask._xscale to mc1.mask1._xscale, it will work. I also put a trace(mc) and trace(mask) and it spits out mc1, mc2..mc5 and mask1 to mask5.
i have an object that that I would like to apply a mask to like:
myObject.mask = theMask
this works fine but when I alter the rotationX property like so
myObject.rotationX = 10;
the mask no longer works, any ideas
flash mask working - transparency (wmode) is not
[Code].....
I've got some code that reveals a mask in that swooshy/wavy style, which starts of nice and smooth at the top of the reveal but as it gets further down the page it speeds up and doesn't look smooth.Here is the code. I've also attached the example of what it is doing.I've been looking at this code blankly for a couple days now and I'm still no furher forward.
Code:
//Global vars
mWidth = 600;
[code].....
I have a jpg that I load dynamically into my swf. When I try to set a mask to it doesn't work?
[AS]mymovieclip.setMask(mymask);[/AS]
I have a movie clip that is a motion tween with a shape with fade... Now I want to put this mc as a mask .. and showing a part of an image with lot of this mc's I know that I have to use duplicate movie clip, but the mc as mask isn't working
View 2 RepliesI've read through umpteen Flash threads of frustrated users who export SWF and anything visible outside the stage appears in the SWF when opened in a browser.None of the solutions have worked for me.My file is called statement_onlineheader.fla.URL...I have my mask layer above a folder containing all other layers.I have also tried moving the mask layer above individual layers.Stuff outside the stage appears in the exported SWF.
View 5 RepliesI really need to make this work [URL]. My problem is that when I add an animation to the mask, the buttons that I have inside a movieclip, they stop working as a button.
View 14 RepliesI download "scrollbar_vfinal_2004 from this site and use it my own movie but when I test the movie, the text is not showing. Without text lay mask, the scrollbar works.
View 2 RepliesI'm creating a mobile app in which I need to show a calendar with months at the top. The months are part of a component that extends from SkinnableDataContainer (and has some custom scrolling/behaviour - which is why I did'nt use a spark list). I need the months to be shown as a 'trapezium' shaped tab and so I'm using a png image as a mask in the item renderer for the component.
When the mask is not applied, it all works well - the months render, the list/data container selection works when I click on a month and so on.When the mask is applied, it renders well, scrolling and everything else seems to work well - but when I click on a month, nothing happens visually. And from the trace statements in my code, it appears list item selection is not changing. Looks like mouse clicks are not working.
Code:
public class TopCalendarMonthRenderer extends LabelItemRenderer {
[Embed(source="/assets/trapezium_alpha.png")]
private static var TrapeziumMask:Class;
private static var trapeziumMaskInstance:BitmapAsset;
[code]...
I am trying to use .slice() to copy an Array of Loaders (each with a jpg loaded in it), as follows:
newArray = oldArray.slice();
and it works, but the problem is, any changes I apply to one Array applies to both, as though .slice() had just copied a pointer to the same Array, but I was specifically told that .slice() would not exhibit that pblm. Before I just go back to loading the same images twice, is there something special about Arrays of Loaders or something else I might be missing?
This may be a bit of an easy question for some, but I'm having difficulty understanding what mc.name.slice(5,9) does. What is this name slice bit about?
View 5 RepliesHow do I remove the last 4 characters in a string?
'abcdefghijklmnopqrstuvwxyz'to'abcdefghijklmnopqrstuv'
Answer: slice(0,-4)
I have a startDrag function set up on a loader and mask that when the mouse is down on the loader it drags, when not it doesn't. There is also 2 buttons that control whether mask1 or mask2 is used. What i would like however is when the mouse is down - the area of the loader outside of the mask is visible but only by about 10/20% alpha, that way the user can see where all the image is while dragging. Is this possible? Full code can be seen below and i have attached the zip with the .fla file:
[Code]...
what i am doing is to make something along the lines of the "scriptable mask" tutorial Inigo was kind enough to put up.My idea is to have a large mask behind the whole of my flash site, this masks a colour image with a black & white one (nothing tricky). The image I am using is actually 5 separate images combined, and each is a pic of certain parts of the site.I also have a very basic set of buttons along the bottom... each corresponding to each section.
All I want is to set it up so that when I mouse over the buttons, the _x of the mask moves to correspond with the correct image... really very basic... or so I thought .If anything it should be easier to do than what is in Inigo's tut (where he uses the _x of the mouse to move the mask)... i just cant seem to get it to work with a nice easing effect (its easy to get the mask to simply snap to each coordinate, but I need it to smoothly move).
I've made a rounded rectangle with a gradient fill and another rounded rectangle over it with a transparency to create kind of a glossy effect. Both objects are part of a symbol in the library of the FLA file. Then, I activated the checkbox to create a scale-9 grid, and the Export for Actionscript checkbox in order to add this symbol from AS3. Next I made sure that every rounded corner was completely included in the slices on the edges of the grid. Well, no matter what, the object is scaled as a normal graph: the rounded corners appear bigger and deformed.
View 4 RepliesIt seems 9-slice scaling in Flash CS5 is a little half-baked. If you create a symbol containing text and vector graphics, only the vector graphics is scaled according to the 9-slice scaling contract. For example, consider the following symbol:
Sure, the vector graphics are scaled according to the 9-slice contract, but what are we supposed to do about text? And just in case you're thinking "convert the text to vectors/raster"... unfortunately no... I don't have the option of converting the text to a set of vectors or a raster because its content will have to be dynamic.
How would I get a range of items from my xmllist similar to the slice method for an array?
slice(startIndex,endIndex);
I am trying something like this:
var tempXMLList:XMLList = new XMLList();
[code].....
When I trace the variable it comes out fine. But when I try to toggle the visibility with it, it doesn't work. I can toggle visibility when I manually type the path name. What am I missing?
PHP Code:
tempHolder.onRelease = function() {
arrowName = "arrow"+this._name.slice(5);
[code].....