Search:
Type: Posts; User: darrellart
Search:
Search took 0.04 seconds.
-
I'm trying to create a Flash portfolio in AS3 and have been stumped/confused by certain preloader tutorials so far. I have created a preloader that works...for embedded assets (images), that is. The...
-
Samac,
Thanks a lot!
If I understand what you said...
1) Any variable that's an Object can have a movieclip assigned to it as a property, because the movieclip class is an extension of the...
-
I found some code for loading images with a preloader on a website and managed to adapt it to all be in an external AS file instead of on the Flash timeline. It's working, but I don't quite...
-
Sorry, I missed a couple of relevant lines of my onClick function when I pasted this code in my first post.
I'm still completely baffled as to how the .stop() function could play the previous...
-
I'm working on a simple game where a movieclip (the Hero) tweens from its current location to wherever the mouse is clicked. A reference to each tween is stored in a global variable (a Dictionary...
-
Samac,
Thanks for your information; you've gone way above and beyond!
I've never tried it with the Tween class, but I have written some (simple) classes, e.g.:
package {
import...
-
-
Yes, I noticed that comment about extending the Tween class on your previous post, but it sounded a little advanced for me. I'm not posting in the Newbies section for nothing!
My guess is that...
-
Thanks for the info. Global variable it is.
I read the posting you linked but still couldn't figure out how to adapt it to get around the lack of argument issue without using a global var. But...
-
What I want to do is to remove an item from the array targetArray when the tween hitFade has finished. I added a MOTION_FINISH event to the hitFade tween which calls the spliceTarget function. I...
-
Here is my hitTest code and the debug code that draws the rect around the hero and target when a hit is detected. This seems to be drawing the rect correctly, because the hero and target rects always...
-
I'd be happy to post the .fla file and the .as files that accompany it -- I don't know how to post files here, though. Where can I find out how to do that? I found a place to upload Flash Source...
-
neznein,
Thanks for your ideas. I will definitely look into BitmapData.hitTest().
...but unless I'm missing something in your explanation, I already understand that the bounding box will get...
-
In the way of some more information, I also get the problem if the rotation of the object is 0, but the symbol itself contains a rotation animation. Even though the movie clip instance isn't...
-
I'm trying to detect an intersection between a "hero" and a "target". I understand about HitTest using the bounding box to determine that, and I understand how rotating a movie clip can make the...
-
Well, I seem to have solved the problem.
I moved the last two timer lines inside of the Kollide function.
(timer.addEventListener(TimerEvent.TIMER, onTimer);
timer.start();)
-
Below is a stripped down version of the contents of my file, Kollide.as. I want to be able to test for object collisions at less than the 30 frame per second rate of the .fla, so I can have smooth...
-
Problem solved!
My brother found the error in this line:
enemyArray.push(Enemy);
It should read:
enemyArray.push(enemy);
-
Just for completeness, here's all the code in this class:
package {
import flash.display.MovieClip;
import flash.events.*;
import flash.display.DisplayObject;
public class Keepaway...
-
Mavrisa,
Thanks for the suggestion. When I insert that line I get two errors:
1120: Access of undefined property DisplayObject
1118: Implicit coercion of a value with static type Object to a...
-
This is the error I get:
TypeError: Error #1034: Type Coercion failed: cannot convert Enemy$ to flash.display.DisplayObject.
at Keepaway/onLoop()
Here are all the class's variables:
...
-
I generate a bunch of "enemies" (Class "Enemy") that bounce randomly around the screen. The Enemy Class symbol is simply a square. The function moveEnemy moves the Enemy. If the Enemy's edge goes...
-
DiamondDog,
That did the trick, thanks a lot! I knew it had to be something obvious (to someone with more experience).
-
Here's my code, in a .as file. I'm trying to put some enemies on the stage and have them each be assigned a random speed and direction. I know the code isn't done (for instance, they would just go...
-
Sheepysheep60,
No apologies necessary! You solved the problem, and I'm feeling pretty sheepish myself. I don't know why they would use a different property name for stage height and width, but...
|
Click Here to Expand Forum to Full Width
|