Search:
Type: Posts; User: Pporksoda
Search:
Search took 0.08 seconds.
-
Use swapDepths(); to change the depth of a movieclip.
_root.smallClip.swapDepths(3);
Note that if there's already something in level 3, that something would swap to the original depth of...
-
no worries. slow day at the office..
-
Exactly. The width and height are calculated based on the current visible frame of the movieclip. And that code will work fine.. as long as the origin (0,0) is in the upper left hand corner.
-
Not sure if Illustrator 8 does it. Here's where you find it in Illustrator 10:
File > Export
Change the "Format" dropdown to "Macromedia Flash (SWF)".
If you don't see it, it probably doesn't...
-
Yes. using width and height will accomplish that for you, but you need to modify your animation, because the height will calculate including the mask you're using.
I made a quick change that...
-
sorry. here's your file back using width and height:
-
It's not the circle, but the + sign looking thing thats the center point. I moved everything over for you and changed the script so that it simply detects it based on the height and width of the...
-
sorry. here's that screen grab:
-
the if statement checks the x and y position of the mouse (_xmouse and _ymouse) to see if the mouse is within a certain area. In the sample I sent, greater than 0 or less than 50, etc. Modify the...
-
Sure. Use something like this instead:
onClipEvent (enterFrame) {
if (_xmouse>0 and _xmouse<50 and _ymouse>0 and _ymouse<100) {
nextFrame();
} else {
prevFrame();
}
}
-
-
It's an old file, but it works.
-
If you're placing the code on the container clip, it would look something like this:
onClipEvent (load) {
this.loadMovie("intro.swf", 1);
}
It's better to avoid placing actions directly on...
-
You can also position the contents of a level alone.
_level1._x = 200;
_level1._y = 150;
But it only works AFTER content exists in that level. So executing level transformations in the same...
-
Just add one more line to the button action:
on (release) {
_root.bgcontrol.gotoAndStop(1);
_root.bgframe = 1;
_root.bground.play();
}
-
You have a minor syntax error in your "if" statements in "bground".
if (_root.bgframe = 2)
stop();
else
play();
should be:
-
better post it. not sure if i understand whats going on. (you can attach a file to a post if it's not huge)
-
change onClipEvent(enterFrame) to onClipEvent(Load). Your current script is loading that external SWF over and over again. That's why you're not seeing it. onClipEvent(load) will perform that action...
-
Have you checked the "Alias Text" button on the properties bar as well (see attached screen grab)? If so, it would help to see a sample.
-
Check out the loadVars object. It's a much cleaner way to communicate with server side scripts.
...
-
It may sound simple, but check the color you have set for the text. I don't know how manny times I've accidentally set the color to be the same as the background color and lost time chasing code bugs...
-
Better to create the flash at a smaller dimension and scale it up. That's the huge advantage to scalable vector graphics. Large dimension flash files will always run slower. Flash has to crank harder...
-
My code was just a sample, and I'd set Targetx to 300. You need to modify the Targetx variable to match your desired "target x postion".
Based on what you first posted it would probably be this.
...
-
works fine for me, but maybe it only works on mac.
-
Hand animate the flipping animation, and apply a script that will play your animation when rolled over and rewind when rolled off. See attachment for sample.
|
Click Here to Expand Forum to Full Width
|