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...
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...
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...
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
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...
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
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...
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...
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...
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)...
I tried adding these lines but get the same result.
$thumb = imagecreatetruecolor(197,158);
imagealphablending($thumb,false);
imagesavealpha($thumb,true);
Thanks again.
frozenpeas
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...
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...
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...
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.