If you want to do it with a bitmap image you'll need to create and export the image from your graphics program as a 24bit .png - Flash will preserve any transparency in the image.
If it's a vector image you can surround it with a vector gradient using the colour mixer palette - gradients can be...
The limit for most things in Flash is around 16000 - this works for layers in the movie, frames on a timeline etc so it's safe to assume that 5000 movieclips is possible.
Whether your computer will be able to deal with 5000 clips at once is a completely different matter ;-) ....
XML taks time to load in (not long, but still not instant) because there has to be a round trip made to the file - could be on your harddrive, CD or on the server.
So even if you ask the files to be loaded first then Flash just carries on through your movie as usual - it only deals with the XML...
I think you'll need to alter the schema of your XML file, what you have just now isn't a proper tree structure, try this:
<books>
<book>
<no>1</no>
<author>Sussy Awe</author>
<ref>Library</ref>
</book>
<book>
<no>2</no>
<author>Frank Pity</author>
<ref>Attic</ref>
</book>...
If the objects are movieclips (and most things can be converted to movieclips) then you can use hitTest() to detect collisions. Add this code to frame 1 of an new movie and you should be able to adapt it to what you need:
this.onEnterFrame = function() {
if (clip1.hitTest(clip2)) {...
You can do those kind of things in Flash 8 but in this case it's probably just Flash 6 (very few advertisers use even v7 because the player's not been picked up that well).
The transparent background can be done by cutting the video out of the background frame by frame (can be done in any...
function ticker() {
//cut off first character
char1 = this['ticker_text'].text.substr(0, 1);
//get rest of phrase that's left
rest = this['ticker_text'].text.substr(1);
//add them back together with the first character baclk on the end
this['ticker_text'].text = rest+char1;
}
//make some...
Paraphrasing Bill to an extent but use the PHP to dynamically write a text file defining the variable in the same directory as the swf, your movie looks at to load in the variable via loadVars()? That way you don't have to alter the tags in the page at all or append data to the URL and the value...
Looks like several separate movieclips, one for each layer, that are being moved by a script which responds to the mouse position - each layer is being moved by a different multiple. Place three clips on the stage (instance names clip1, clip2 & clip3) and put this code in frame 1...
I've done it - there's a guide book which you can order from Amazon which is pretty useful (and cheap) - it's called 'Certified Study Guide' or something similar...
You can round to specific places by multiplying the number, rounding then dividing again. Like this:
function round(num) {
num *= 10000;
num = Math.round(num);
num /= 10000;
return num;
}
//
trace(round(0.123456789));
All you need to do is save the x and y coordinates of each object to the database (perhaps as an array) then reload them the next time the swf file is opened. The swf would need a unique id (but this could be solved by using the user's name or a password and saving that in the DB along with the...
It's worth pointing out that _root and _level0 aren't actually the same thing as every level has a _root timeline.
Most of the time this isn't a problem as you're in _level0 by default but if you called _root from a movie in _level2 you'd still be calling _level2: _root is a relative path, not...
It's not in a new level - it's still on level0 (that's the same as _root in this case). To target the textfield in the movieclip you have to use the path you've already outlined and set it to the value of the information that you're bringing in on the _root level...
Your problem could be that the jpgs are saved in the wrong format (Flash can't load 'progressive' format jpgs - you can resave them out of Photoshop etc as 'standard/baseline optimised' which should work) or that you're calling the loadMovie script before the ASP script has returned the value...
myClip.removeMovieClip();
...is the syntax for removing a clip.
I'd just stick some code on the last frame of each clip which removes the other two, that way you don't have to keep track of what clip was loaded last.
You can always delete the lower movies once the mask effect has obscured them - if you're just piling one on top of the other without removing them then they're all still burning up CPU cycles so the movie will become progressively slower.
If you want the getNextHighestDepth() functionality in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.