Search:
Type: Posts; User: mkantor
Search:
Search took 0.07 seconds.
-
D'oh! I got it: import the class name, Skateboard, not the file name Skateboard.as.
-
If the object is in a known movieclip or level, you can target it with the square-bracket syntax. If the value of HOLDER is "Obj1", then
_level0[HOLDER]._x += 10;
is equivalent to
...
-
I'm having the same problem in Flash 8. The classes have no references to each other. The code in the .fla is just:
import Piano.as
import Skateboard.as
and I get:
**Error** Scene=Scene...
-
mainclip.onPress = startDrag;
mainclip.onRelease = mainclip.onReleaseOutside = stopDrag;
-
Insert newline characters:
message = txt1 + "\n" + txt2 + "\n" + txt3 "\n" + txt4;
-
var words : Array = ["Nitwit", "Oddment", "Blubber", "Tweak"];
function getRandom(a : Array) {
return a[Math.floor(Math.random() * a.length)];
}
function removeItem(item, array : Array) {...
-
P.S. I think Flash MX 2004 Pro comes with some kind of pre-built FocusManager class. That might be another route to try.
-
No, setFocus just takes the focus away from the button when it gives focus to the text field. For your application, you need to do explicitly what we usually rely on onRollOver and other events...
-
The same approach should work. Do not use rollOver since that will be undone when focus is set elsewhere. Instead, I think onMouseMove is really what you need.
Use onMouseMove code to send the...
-
Here's an example of how I would try to do it. See if this helps at all. It can be rather tricky!
-
No, duplicateMovieClip always creates clips whose parent is _root. Use attachMovie instead.
-
If you set the focus to a text field, the button no longer has the focus, so will no longer appear in it's over (or down) state by default. So, don't use a button -- use a movie clip instead, and...
-
Here's the link to the massive-collision example.
http://www.flashkit.com/movies/Scripting/Physics/massivec-jochem_v-6147/index.php
I don't know about Flash 5, but since Flash 6 hitTest has...
-
Use movie clips instead of buttons, and manually script the rollover action. Something along these lines is what I'd try first:
myButton.onRollOver = function() {
...
-
There are at least two general approaches to speeding up the hitTest.
Method 1. Put all bullets in one movie clip, and have each alien hitTest against that. This works fine as long as you don't...
-
Well, if you insist on maintaining that structure, then you will have to keep a list of all the movieClips you've produced, so you can remove them. Actually, as long as the names follow this...
-
Remove the divide-by-2 from the _y coordinate.
-
This example should get you started.
var book : XML = new XML;
book.ignoreWhite = true;
var parsedBook : Object = new Object;
parsedBook.chapters = new Array();
-
// URL of background image
var bgImage : String = "pic1.jpg";
// width and height of blocks
var w : Number = 40;
var h : Number = 60;
//time (ms) between successive blocks appearing
var...
-
It sounds from the description as though you are re-using depths. If you create another movie clip in the same depth as an old one, the old one will vanish.
If you are doing all your drawing in...
-
Put the following script in Frame 1 of the main timeline, and change the name of the jpg as needed.
_root.createEmptyMovieClip("ball_mc", 1);
ball_mc.onEnterFrame = function() {
...
-
Glad you worked out a fix.
I hope you do file a bug report with MM, for the benefit of future versions of Flash player.
-
There is a very good tutorial at
http://www.kirupa.com/developer/actionscript/xml_dropdown_menu.htm.
Only drawback is that it predates Actionscript 2.0, which now provides a cleaner way to...
-
That's interesting. Seems to be a bug. B ut what is the fill supposed to accomplish? It seems to by applied to a line whose two endpoints are the same, so nothing gets filled. This seems a...
-
The approach I'm describing will only work through a Web server. (This could, of course, be run entirely on your machine, and limited to local access.)
If you are pointing a Web browser at a...
|
Click Here to Expand Forum to Full Width
|