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

    Conflict between .buttonMode and KeyboardEvent?

    Hello, I've made a game. But as soon as I enable buttonMode for my buttons ('play game', 'instructions', etc) it breaks my keyboard controls for the game. stage.addEventListener(KeyboardEvent.KEY_DOWN, keyIsDown); Once I set btnPlay.buttonMode = true, the keyIsDown function is no longer...
  2. frozenpeas

    DOM troubles and inconsistencies

    Yes, it does. I've narrowed this problem down to the line that sets "todaysTitle". It's got me scratching my head. frozenpeas
  3. frozenpeas

    DOM troubles and inconsistencies

    var todaysNode = response.getElementsByTagName("entry")[0]; Markup: <entry> <published>2008-08-07T16:38:40Z</published> <updated>2008-08-07T22:41:58Z</updated> <link type="text/html" href="http://www.mysite.com/post/10" rel="alternate"/> <title>My title</title> <content...
  4. frozenpeas

    DOM troubles and inconsistencies

    Allow me to elaborate a bit... the correct value is 1. I can't get it the correct value returned on 10.4.11 frozenpeas
  5. frozenpeas

    DOM troubles and inconsistencies

    Hi, I'm building a Mac dashboard widget. My problem comes down to this line: var todaysTitle = todaysNode.getElementsByTagName("title").length+" title nodes"; On Mac OS 10.5.4, this returns a length value of 1. On Mac OS 10.4.11, this returns a length value of 0. Does anyone know why this is...
  6. frozenpeas

    Load external SWF with transparent background

    Hi, This is not about Flash being transparent in an HTML page, wmode, or anything like that. I'm importing an SWF but its white background is visible overtop of the other content. I need to see only the contents of the imported SWF and not its background. How can I do this? Thanks in advance...
  7. frozenpeas

    Parse Atom feed?

    Hi, I'm by no means a JS pro. I've been Googling for hours, trying to find a way to parse an Atom feed with JS, so I can display the most recent post of an Atom feed in an HTML page. Has anyone here done this who can provide some help? Thanks. frozenpeas
  8. frozenpeas

    Need help understanding scope in AS3

    Hi all, I am finally making the switch to AS3 but am having some problems. I think it boils down to a misunderstanding about scope. public class Main contains: public var xmlData:XMLLoader = new XMLLoader(); public class XMLLoader.as contains: public var myArray:Array = new...
  9. frozenpeas

    imagecopy cropping troubles

    Well, hot dog. That worked liked a charm. Thanks! frozenpeas
  10. frozenpeas

    imagecopy cropping troubles

    Thanks, jpadie. I'll give it a try when I get home. I am getting $newwidth and $newheight from an earlier part in my script... they are the size of the image that this new cropped image is being made from. frozenpeas
  11. frozenpeas

    imagecopy cropping troubles

    I am trying to copy a part of one image to another. My trouble is that with portrait images, the aspect ratio gets squashed. I have tried the following: I figured it was because of $newwidth and $newheight... so I tried an if/else to swap them for portrait/landscape. But I got the same...
  12. frozenpeas

    trouble with imagecopymerge

    Interesting. This is working now. I added this line: imagealphablending($overlay,false); and I replaced: imagecopymerge($thumb,$overlay,0,0,0,0,197,158,100); with: imagecopy($thumb,$overlay,0,0,0,0,197,158); and that did the trick. So it's all working for me now... I'm taking a...
  13. frozenpeas

    trouble with imagecopymerge

    This is a PNG being placed over top of a JPG. The JPG has no areas intended for transparency -- only the PNG does. frozenpeas
  14. frozenpeas

    trouble with imagecopymerge

    Thanks, jpadie. I took a look at that user note. I tried adapting the code a couple of ways and the closest I got was setting a key colour as transparent, which isn't what I require. Here are my image files that I'm using. http://www.stephenpeasley.com/tek-tips/template.png...
  15. frozenpeas

    trouble with imagecopymerge

    I've been trying some things... with the same results. I'm still getting black showing where the underlying graphic should be seen. Here is where my code is at this point. Thanks again. $thumb = imagecreatetruecolor(197,158); imagealphablending($thumb,false); imagesavealpha($thumb,true)...
  16. frozenpeas

    trouble with imagecopymerge

    I tried adding these lines but get the same result. $thumb = imagecreatetruecolor(197,158); imagealphablending($thumb,false); imagesavealpha($thumb,true); Thanks again. frozenpeas
  17. frozenpeas

    trouble with imagecopymerge

    Hi, I am having trouble laying a PNG with transparency over a jpg using imagecopymerge. I believe I am having one of the following problems: 1. the PNG file is not being loaded with its alpha channel 2. I have an error in the way I'm using imagecopymerge The result I am getting is a jpg of...
  18. frozenpeas

    IE back button confused with Flash in page

    Hello, If you visit this page: http://www.sgi.sk.ca/sgi_pub/about_sgi/locations/locations_main.htm then in the right side menu click on "Find a Motor Licence Issuer" or "Find a Certified Vehicle Inspection Station"... the back button does not take you back; it reloads the current page. I...
  19. frozenpeas

    Pre-comp not rendering with Main comp

    In addition, it sometimes renders the pre-comp as all black... frozenpeas
  20. frozenpeas

    Pre-comp not rendering with Main comp

    Hello, I created a pre-comp that contains a PSD composition that has various effects. This pre-comp looks fine when I RAM preview it. But when I RAM preview (or export) the main comp that contains the pre-comp, the pre-comp does not render. Instead, it shows only the first frame of the pre-comp...

Part and Inventory Search

Back
Top