Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. wangbar

    image with faded edges of feathered edges

    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...
  2. wangbar

    Limit to number movieclips?

    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 ;-) ....
  3. wangbar

    Illogical loading order with XML

    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...
  4. wangbar

    Referencing XML node as variables

    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>...
  5. wangbar

    Actions Script Syntax problem

    It's probably because you have a trace statement between the if statement and the else statement.
  6. wangbar

    click and drag collision detection

    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)) {...
  7. wangbar

    JPEG Image in flash, with no background

    Export from Photoshop as a .png (24bit) and the transparent background will be preserved, you can then import straight into Flash.
  8. wangbar

    flash 8 video technique???

    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...
  9. wangbar

    Horizontal ticker

    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...
  10. wangbar

    Use PHP to insert ActionScript into SWF

    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...
  11. wangbar

    any idea on how they got this multi depth effect

    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...
  12. wangbar

    Flash Certification

    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...
  13. wangbar

    2?'s: Rounding and Printing

    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));
  14. wangbar

    Saving Objects positions

    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...
  15. wangbar

    making a guestbook with flash

    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...
  16. wangbar

    making a guestbook with flash

    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...
  17. wangbar

    will this code work

    Yep, that looks fine - as long as the paths to your various text boxes are okay it should work as you expect.
  18. wangbar

    loading an image dynamically

    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...
  19. wangbar

    Flash7- slow SWF output

    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.
  20. wangbar

    Flash7- slow SWF output

    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...

Part and Inventory Search

Back
Top