hello all
this is an image slider
this is moving to left and right where mouse moving
I want this frame to appear around every button when I click it
I tried a lot but I failed
https://board.flashkit.com/board/ima.../2021/01/4.jpg
thanks for help
Printable View
hello all
this is an image slider
this is moving to left and right where mouse moving
I want this frame to appear around every button when I click it
I tried a lot but I failed
https://board.flashkit.com/board/ima.../2021/01/4.jpg
thanks for help
help
I've seen two problems so far. 1) You have it automatically set to not visible and never set it visible. Not sure if there's a quirk with swishmax or something. 2) For some reason it's handling it different from the other squares. I did some testing and it's _x isn't changing. I need to sleep so there's more to figure out.
hello swak
can you edit it as you like
i want images scroller with frame when pressed image
happy dreams , happy time
So I haven't had much time to update things but the main problem you're having is you're containing everything in a movieclip and then just moving that. All the shapes will be effected by that movement. The end result should be all the shapes just moving along with the movieclip "thumbnails".
For example, you're set up to move the thumbnails movieclip. Every shape in the thumbnails movieclip will end up having a relative position to the parent movieclip. So strok's _x and _y will always be 45. It's positioned like: strock._x = thumbnails._x+strock._x. And since you're not changing the strock position at all.
There's no good way to do anything with it's position. I suppose you could use take thumbnails into account. Either way I suggest you don't contain multiple objects in a single movieclip, unless you want to group them together.
With that said, I'm working on a version of your code from scratch. Instead of creating shapes on the stage, I like to work everything with code. I'm not sure when I'll be able to finish it but I have it set up to dynamically draw and color the strock object.
Starting a new project and copying that code will set up the strok object right away.Code:onFrame (1){
stop();
//Add a rectangle draw function to movieclip.
MovieClip.prototype.drawRect = function (x, y, w, h, RGB, alpha) {
this.moveTo(x, y);
this.beginFill(RGB, alpha);
this.lineTo(x+w, y);
this.lineTo(x+w, y+h);
this.lineTo(x, y+h);
this.lineTo(x, y);
this.endFill();
_root.output.text="drawing";
}
//Create the strok movieclip
createEmptyMovieClip("strok",_root.getNextHighestDepth());
addChild(strok1);
//Draw the shape
strok.drawRect(175,23.6,250,252.8,0x666286,100);
//Color the shape
strok.color = new Color(strok);
strok.color.setRGB(0xFF6600);
}
hello swak
addChild not supported in actionscript 2
https://board.flashkit.com/board/ima.../2021/02/1.jpg
can you solve it
thanks my friend