Double Masking
Think of a picture and a circle on it moving around with masking its simple to do but i just couldn't find out how to add another circle.Shortly i want to do one picture but two maskings. Is it possible?
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 01-27-2005, 06:27 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Double Masking
Think of a picture and a circle on it moving around with masking its simple to do but i just couldn't find out how to add another circle.Shortly i want to do one picture but two maskings.
Is it possible?
Double Image Masking Maybe?
jeez. this is most likely a piece of piz. i have to large picture images. i need one as the first static, then need to introduce the other as animation over the top.
think
straight bars of the 2ndimage being masked vertically over the 1st image and eventually forming the complete 2nd image.
ive seen it so many times that i cant find the damn thing now!
anyone got a link. or code?
cheers
Loading Swf + Double Clicking = Double Load -> Crash
Hello, help plz:
Have a button assigned to loading an swf, if the button is pressed twice the swf reloads and crashes, probably reloads data together and dosnt recognize, web crashes and needs to be reload reloaded... any suggestions?
thanks
Double My Array? Double The Fun
HEY!
Have a nice random array here courtesy of Pixelwit from this site but i need the numbers to duplicate in the array..as an example, instead of the array saying...
[7, 4, 23, 14, etc]
it would double them...
[7, 7, 4, 4, 23, 23, 14, 14, etc]
Below is the code...i'm too much of a newbie so far to make it work, any help would be great!
(alternativly, i just need code that makes a random 10 number array, no two numbers the same, but then duplicates each one twice in the array then assigns that array to a variable)
thanks
ActionScript Code:
// How to shuffle any Array
// (Robert Penner June 2001)
Array.prototype.shuffle = function () {
var len = this.length;
for (var i = 0; i<len; i++) {
var rand = Math.floor(Math.random()*len);
var temp = this[i];
this[i] = this[rand];
this[rand] = temp;
}
}
//
// Make initial array and shuffle it
totalImgs = 25;
allImgsArry = [];
for(i=0; i<totalImgs; i++){
allImgsArry[i] = i+1;
}
allImgsArry.shuffle();
trace("allImgsArry = "+allImgsArry);
//
// How to chop big array into little ones
function chopAllImgsArry(divisor){
var i = 1;
while(i*divisor<allImgsArry.length){
this["imgsArry"+i] = allImgsArry.slice((i-1)*divisor, i*divisor);
i++;
}
this["imgsArry"+i] = allImgsArry.slice((i-1)*divisor);
}
//
// Chop big array and show results
divisor = 10;
chopAllImgsArry(divisor)
for(i=1; i<Math.ceil(allImgsArry.length/divisor+1); i++){
trace("imgsArry"+i+" = "+this["imgsArry"+i])
}
Masking Issue - Image 'pops' Out Of Masking
ok i been attempting to fix this tiny, but obvious glitch for hours...
3 layers on timeline
bottom layer has 6 different images at regular intervals (every 26 frames).
middle layer is masking the bottom layer. it contains a movie clip of animation of a square shrinking to basically nothing then expanding again (with a 3 frame pause before it expanding again). Basically like a shutter closing then opening.
the top layer is empty except for the action script calls in key frames at intervals to start the animation of the mask. just uses gotoAndPlay('label') to the movie clip in middle/mask layer.
PROBLEM:
The change of pictures if offset in the timeline so the change occurs during the closing of the shutter (mask hiding all of the image).
so the mask movie clip is in layer 2 frame 1.
the first image is in layer 3 frame 7.
for some reason the very first image just pops over the closed shutter i.e. it is visible even though it should hidden. The subsequent 5 image changes behave as they are supposed to.
whiskey tango foxtrot....
edit note:
this movie clips is then placed on the main time line and itself one of a few a masked layers.
Masking Tricks And Masking Designs
Hi,
I am wondering if someone could direct me to any Flash technique websites that focus solely on a variety of masking tricks and techniques. My vision is to create Flash animations that employ the same design effects as Adobe After Effects..and I've seen plenty of that on TV commercials.
So far I'm checking out Kirupa.com www.kirupa.com
Thanks! I have Flash MX
Masking Not Completely Masking
i'm masking stuff but there are some artifacts. here's a screen shot:
http://filebox.vt.edu/users/jizietz/seethroughmask.jpg
i drew red arrows pointing to the artifacts. i've got a mask over the rectangle on the left, and things are scrolling into view from right to left. unfortunately, things are showing up outside of the mask. is this because my background color isn't white? any ideas here?
Masking On Masking - Dynamic Jpg.
Hi Fk'ers.
I've got a problem.. I want to mask a a dynamic jpg, but I can't seem to make it happen.
Please help me.. Quite desperate!
I've attached the file, so it's easier to see what I mean.
Help I'm Seeing Double
ctually i'm not! I want to scroll, but not text, pictures within a box. Basically i want to have a few photos scrollable on the left with a big picture in the middle - if any of you brainboxes out there can tell me how to click on the smaller ones to get to the central one, then i'd be overjoyed. just be happy at the moment to scroll the photos like i can my text.
pls pls help!
How To Do A Double Tap
I have a game and I'm wondering how to do a double tap. Quickly tapping the left key twice would then play a movie clip. I'm wondering if there's a code or something for it. Thanks.
Double Tap?
I have like a basic game, and it contains a bit of basic scripting, such as
Code:
if (key.isdown(key.right) {
gotoandplay ("walkright");
_root.player._x-=2;
}
and contains vcam,
but something is bothering me is, I'm trying to do a double tap, to do a dash, but when i search it on the boards. I get the script, but what's wrong is when I do the double tap it's like, run always even though i don't double tap. So i was wondering if anybody could spruce up the fla file.
Please don't insult my basic scripting, i'm young, still learning x.x
(P.S. I also added like, text on the bottom because of the vcam, so i can identify the frames)
I really appreciate this. Thanks.
Seeing Double
Would love to know how to fix this problem. Places 2 banners on top. What code do I remove and from where...between what and what do I place the proper code?
This is to do with taking the flash detection code from the swf's html and placing it properly (which I've not done apparently) in the index page.Would love step by step help.
http://www.enhancedwireless.net/index.html
Also, would you please tell me how I can give an alternate jpg file to appear in its place if someone doesn't have FLASH 8 player and doesn't want to download it?
I'm referring to the very top of the page with the IWICS logo and spelled out word...it's swf, but I have available a jpg of the same...
Thanks very much for your time.
KB
1+2 = 12? Double You Tee Eff
lol help me out guys, this is weird to the point of absurdity and it's driving me crazy... my code (basic):
var mynumber:Number = 1;
var total = mynumber + 1;
trace(total);
traces "11"
WTF? ugghhh
Double In AS3
How do I make a double in AS3.
I've tried var myVar:double and var myVar:float and they don't work.?????
Double Drag
bit of a problem here..
I have a customizable cursor, made with a mouseHide and drag action..I also have a scrollbar on the scene, also with a drag action..
The movie can't work with both drag actions ..
Is there something I can do ???????
Thanx..
Double-click (I Know It's Possible, But How?)
For an example of what I am attempting, Please check:
http://ecko.com/complex
Nice, right.
So far I have made a custom cursor.
Now, how do I script a double click event that goes to the interface movie clip???
I know you know...please help
Sasha Bad
Double Click
In my upcoming website:
http://www.nachorevolution.com/xex.html
On the yellow page the NR is dragable i figured that out. But now I want to make it so when one double clicks it will getURL. I can't figure out how to do this? any suggestions?
Double Arrays
hi...
i really need help with double arrays for use in matrices...
how do we declare them?
is "arrayname[2][3] = 5;" a correct expression?
it can't seem to work with me...
thank you for your help...
Double Skewing
I would like to make such the Star Wars Intro Test at
http://www.flashkit.com/movies/Effec...76/index.shtml .
I have tried to make one by myself but I'm unable to find
double skewing to give the perspective effect to the text.
I would be grateful if you can help me, I need to do such an intro
for the starting of an animation.
Thx for your help
Double Click
I am making a move where I have three main mc's(red, green, purple). In each mc is a button. each button opens another mc that relates to the main mc... they will be named: red2, green2, purple2. What I would like is to click on the button in the red mc and open tell the red2 to goto another frame, and when I click on the same button again the mc will go to the first frame again. Along with that I want the other mc's green2 and purple2 togo to their first frame if not already there. and likewise for all the main mc's
---- any one?
Double Link
I'm building a concentration game that needs to link a word with a certain definition. Any ideas on how to do this?
Thanks
ZOE
Double Click?
Hello!
Does anyone know a way to get a doubleclik with a Movie Clip?
Any help on this would be grat!
Thanks a lot.
Double Click Help
I have three buttons, each button has a corresponding mc. I would like each button to tell its corresponding mc if it is at the 1st frame go to 3rd and any other frame go to the 20th frame.
any ideas???
DOUBLE POP UP WINDOW
Hi! I add a pop up window function to a button, but when i click on it, two pop ups appear, one with the wright size and content, and another empty window. Can you help me?
this is the code
on (release) {
getURL("javascript:window.open('http://www.houseoflourdes.com/audio.swf','Audio','width=224.2,height=349.6')", "_blank");
}
Thanks!
Having Double Mask?
How can I do this:
I have a mask that works great, but I need to somehow add another mask ON TOP of that one so that only a certain part is visible. Since I m using this initial mask as part of several different "windows" in the same stage I need the 2nd mask to make certain parts visible...
please tell me there is a way to do this?@!
TIA
Double Click?
id there a double click function in flash mx?
if not how would i do this using flash 5 techniques?
tnx
Double Hit Test? Possible
here's my deal:
I have 2 little items. I'm using hitTest to "snap" them into a certain area or bigger "box". You can grab them once they are in the "box" and pull them out, they will snap back to original coordinates.
Problemdon't want both items in the box at the same time.
there is a glitch when you take the item out of the box. the mouse holds it and you have to click on an open area to release it.
I've tried passing variables and even setting another hitTest.
Any suggestions?
http://www.sphosting.com/furrysnake/squirrel_bags.html
http://www.sphosting.com/furrysnake/squirrel_bags.fla
Double MC Trouble :s
Hi,
I wrote this script, which makes things bouncy and it works good on one MC but when I add it to any more than one they get all screwy. I've tried adding it on different level and with different instance names. Please check out this example:
One MC:
http://xotex.net/jenni/bouncy.swf
Two MCs:
http://xotex.net/jenni/bouncy_2mcs.swf
Here is my script... just call it with an onClipEvent hitTest().
Movieclip.prototype.elasticScale = function (target, accel, convert)
{
xScale = xScale * accel + (target - this._xscale) * convert;
yScale = yScale * accel + (target - this._yscale) * convert;
this._xscale = this._xscale + xScale;
this._yscale = this._yscale + yScale;
}
Any ideas?!?
Thanks!!!
-- jenni
DOUBLE PROBLEMS
sorry for bothering you vets with my stupid questions... here it is: ive created a "pop-up" window that is triggered by a button. the window is actually a movieclip that expands and then a text area appears. 1) the text area shows the text from about.txt when you edit the movieclip seperatly and go control > test scene. but when I put it onto the stage, the movie clip works fine except that the text area dowsn't appear! 2) I have a little "close window" button in the window. i used the onPress goto and play scene 1 frame 1 so the flash movie will start over, but instead only the movieclip containing the button starts over! it's late, i'me tired and CAN'T go to bed intill I solve this. PLZ help!! thanks guys
They Double Click Right By Me
I'm making a software simulation using screen shots and invisible buttons.
I'm using this button script graciously supplied by a board member:
"create an input textbox, give this the variable name answer1 add the frame actions
Selection.setFocus("answer1");
stop();
and on the same frame also place a button.
add the following acrions to the button
on (release) {
studentAnswer = answer1.toLowerCase();
correctAnswer = "what the answer should be";
if (studentAnswer == correctAnswer) {
gotoAndStop(someFrame);
}
}"
The student is expected to fill in an input text blank correctly before he is allowed to move on in the tutorial. Much to my horror, what they've discovered is, if they double click (instead of single clicking like they're instructed to do), they skip right past the text blank and are taken to the next page of instructions. Is there any way of preventing this in the swf file?
Thanks, Mike
Double Space
Ok, if i make a dynamic text field with multiline, etc and then use load var command and put a x.txt there with var=texttexttexttextettxte(manylines)
everything works well, but i get double spaces... why ? How to fix ? thanx
Double Click
Why do I have to double-click on links within my movie? My external links are all single click.
Thanks!
Jeff
Double Variable
Hi all,
How to get a double value (4.00) from a integer (4) directly in Flash.
Thanks
Amit
Double Return?
How do I insert returns in my the text files that I load into dynamic textfields? If I create a hard return in the txt file it creates a double spaced document how to I have it make a single spaced one?
I Double Dare You To Help Me
I need to launch 3 separate "setup.exe" from 3 separate buttons within a CD Flash. I want to know if anyone has done this...
currently this is the code I am using for each button:
(keep in mind each .exe has to be in a separate folder to launch it correctly)(I can make it work with one exe. when I put it into a FScomand folder but I have 3 different apps I need to launch!!!)
on (release) {
fscommand("exec","folder1/setup1.exe");
}
on (release) {
fscommand("exec","folder2/setup2.exe");
}
on (release) {
fscommand("exec","folder3/setup3.exe");
}
I cant get anything to happen!!!!!!!! I am using MX. HELP!!!!!!!!
Double Click Help
I'm trying to set up a double click. I have a nav system that is a box the width of the stage and rests at the very bottom of the stage. When you click anywhere on the stage it slides up to that point. When you make a slection it goes back to it's original y position. I want to make it so that the user has to double click to bring the menu up though cause the single click interferes with my other buttons. I know I need to come up with a timer variable of some kind but I'm not quite sure how to do this. Any suggestions? I've included my .fla file. Please help me. Thanks.
Help With Double Click
First let me explain the set up of my movie. Create a square the size of the stage and turn it into a MC. Place it at the bottom of the stage so that only about 20-30 pixels of it are showing. Add this code to the MC...
onClipEvent (load) {
var valid = true;
newY = _y;
origY = _y;
Yspeed = 3;
a = 1.6;
d = 1.9;
}
onClipEvent (enterFrame) {
Yspeed = ((_y-newY)/a+Yspeed)/d;
_y -= Yspeed;
}
onClipEvent (mouseDown) {
if ((valid == true) and (_root._ymouse < 300)) {
newY = Math.ceil(_root._ymouse);
valid=false;
}else{
if ((valid == true) and (_root._ymouse > 300)) {
//if the mouse is below the minimum for the nav to show, it puts it at this point so it can be seen
newY = 300;
valid=false;
}
}
}
Now, I want to make the onClipEvent(mouseDown) occur on a double click. I'm not sure how to go about setting this up. Any help would be greatly appreciated. I've included my .fla file, it was created on a Mac though so sorry PC people. Please help me. Thanks for your time everyone.
Url Double Loading Help
i have my flash video done but when it comes time to load the url it double loads and errors out please help. www.iowapaintballpark.com click the link so you can see what it does.
thanks to all that can help
Double StartDrag?
Heres the idea:
To have a mask shape that is dragable and an outline shape around that mask shape that drags with the mask shape, to show its borders (and give it a lil asthetic pazzaz).
Is it possible to have two startDrag(); actions? When i have tried this the last shape mentioned in the code gets dragged, but the other one just sits there laughing at me!
Greg Davis
Double Hittest?
I have objects (created by duplicateMovieClip) on screen that you can shot down, but now i want to create another object that is much harder to "kill".
I want the "harder" object "killed" in two shots instead of one.
The problem is that i have more than one of these objects created by:
code: for (i=1; i<=totalAst; i++){
ast.duplicateMovieClip( "ast"+i, i+20 );
}
I know that this is possible if you only got one object but now i have several.
Any ideas?
Thanks!
Need A Double Check
code:
_root.admin.movieholder.unloadMovie();
Will this unload the movie that resides within movieholder?
Cheers
Double Clicking
Is there actionscript that you can write if you want someone to double-click an object rather than single click?
Double Click
Hi,
I was just reading a tutorial of flash recognizing the double click feature:
http://www.spoono.com/flash/tutorial...l=double_click
I was wondering if there's another approach that could possibly be more practical. Please advise, thanks.
Double Question
OK , How can i make it so that one can Type Text in the flash Movie on like a Premade Speach Bubbles , like an Area. I have try a INPUT TEXT but one can not give that AS , i want it to be movable
i have tryed, like the AS
on (press) {
startDrag(this);
}
on (release) {
stopDrag();
}
and how can one make it soo it prints a Area , eg like inside a box
Double Play
This might be a silly question, but is there a way one can play a MC or section of your main movie twice & then carry on with the rest of your main movie, or do i just need to copy & paste the section of the frames twice?
Double Problem
I've used actionscript to make the moon orbit the earth. When I tried to make the earth orbit the sun whilst the moon is orbiting the earth, the moon has started to use the sun as its centre and doesn't orbit the earth anymore. I've attached the swf file, and this is the code i've used, can anyone help me please? I've attached the fla file too.
for the moon to orbit the earth, center is the instance name for the earth movie clip and the code is on the moon:
onClipEvent(enterFrame){
_root.myGlobal.theAngle-=0.02;
//x
lenghtOpp=Math.sin(_root.myGlobal.theAngle)*50;
this._x=_root.center._x+lenghtOpp;
//y
lenghtAdj=Math.cos(_root.myGlobal.theAngle)*50;
this._y=_root.center._y+lenghtAdj;
}
for the earth to orbit the sun, sun is the instance name for the sun movie clip and the code is on the sun.
onClipEvent(enterFrame){
_root.myGlobal1.theAngle-=0.02;
//x
lenghtOpp=Math.sin(_root.myGlobal1.theAngle)*130;
this._x=_root.sun._x+lenghtOpp;
//y
lenghtAdj=Math.cos(_root.myGlobal1.theAngle)*130;
this._y=_root.sun._y+lenghtAdj;
}
Thanks
|