Creating a pacman-like game, where a player eats objects. When a MovieClip (box) eats a circle on the stage, the score in the dynamic text field should go up by 10 points.
Error message:
Cannot access a property or method of a null object reference.
at Move/init()
at Move()
package {
import flash.display.Sprite;
imp...
In the function hitWall, hitTestObject is working when a player hits the wall. I have walls on the flash stage, named wall, wall2, wall3, wall4. Using that same concept, I placed other movieclips (trees) and named them: tree1, tree2, etc....etc...
I'm receiving an error message: Access of undefined property tree.
wall.addEventListene...
Hey guys
So I loaded a swf into another swf like so
correctURL being my external swf variable
function startLoad(){
var mRequest:URLRequest = new URLRequest(correctURL.toString());
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgre...
I wan to know how to move a movie clip to a certain x, y. How would I do that? Because I know this is wrong:
paddle.x = 253;
Thanks.
...
Am I using the code improperly or is there a flaw in SWFObject? If you go to the URL below you can see that it the flash file (an MP3 player) shows up perfectly fine in Chrome. However, in both Firefox and IE8 it loads a blank white box. If you mouse over the box the pointer changes to a hand as if its registering the buttons, just not a...
Hi hope someone can explain what is wrong with this code as the files work fine.
the image loads then i click it and guess what i get a white screen I've been trying loads of forums and stuff can someone point out for what reason this can be happening.
<fb:swf
swfsrc='http://www.magro.com.mt/savinafacebookfanpage/dock_purchased/DockG...
import fl.controls.ColorPicker;
import fl.events.ColorPickerEvent;
var myColorPicker:ColorPicker = new ColorPicker();
myColorPicker.addEventListener(ColorPickerEvent.CHANGE, changeHandler);
myColorPicker.move(10, 10);
addChild(myColorPicker);
function changeHandler(event:ColorPickerEvent) {
trace("color changed:", event.color, "(#"...
Hi.
I need to build an app. that will record video from the webcam, show the user what's being recorded and have buttons to start the recording, stop and send to the server.
Here at SO people said the easiest way would be using Flash, but I never used it and searching the web it's being kind of confuse so where should I start?
Thanks...
I have the same problem as the following stackoverflow question:
http://stackoverflow.com/questions/499949/flash-loads-twice-workaround
but the provided solution is not working for me (my script runs after the DOM ready and a delay), is there any workaround to fix the Firefox bug which is fixed in the bugzilla but still exists?
upda...
I'm building a thumbnail viewer in Flash CS5 using the TileList component. I know that you can adjust the alpha of the label background, but is there any way to simply move it so it appears below the thumbnail? I already created a new class which extends the ImageCell class, but I can't seem to find any methods to control the positioning...
I'm trying to resolve the following:
I'v got a long xml file with a node called 'ows_Sub_x002d_Site' - this has several different values (e.g Home, about us e.t.c) which i then filter to make sure only items with that specific value are then looped thro to build a menu.
That part i got sorted (see below).
The problem i have is that i ne...
Need some help with a small problem. I'm not too hot on the maths in AS3. I have one Sprite which acts as a container for two other Sprites. One has a picture the other has a series of hotspots.
If i change the scaleX and scaleY of the picture, the hotspots don't line up anymore. Do you know the correct equation so that any scale i set ...
I can't seem to figure out why i continue getting this error every-time I try to compile ASDoc in Flash Builder 4.
I did succeed in ASDoc creating a asdoc-output folder but it is incomplete. There is only toplevel.xml and a tempdita folder that show up.
This is the error that shows up on my Console
Error at xsl:choose on line 46 of p...
Hi,
I'm looking for a multiple file upload button. the ones I've found are
swfupload
uploadify
and a jquery plugin: http://www.fyneworks.com/jquery/multiple-file-upload/
I want to integrate it in a django app. ATM the only one which is working without any problems and is in widespread use seems to be swfupload.
Am I right or am I ...
i have a website, in which there is a lightbox style iframe popup, which contains a flash clip.
right now, the lightbox come up as a popup on the website, and then the flash loads [with a nice loader].
the thing is, i want to see if its possible to load this entire page in the bg, and only pop it up when the flash is fully loaded..
wh...
Hello, I have an unusual request. A client wants to play a video from the un.org webcast page. My friend had copied the rendered directly and posted it onto a page. Which to my surprise worked, however it does not work in IE only. Any suggestions or advice (Other then the clearly poor choice in implementing this task would be greatly ap...
My question is about memory use and objects in actionscript 2. If I have a class definition:
class test1{
public function one(){trace("Hello");}
public function two(){trace("World");}
}
And a second class definition:
class test2{
static public function one(){trace("Hello");}
static public function two(){trace("Worl...
Hi,
I want load a video on flash, without a GET call to get the video...
now the code is something like this:
var Player:FLVPlayback = attachMovie("FLVPlayback", "Player", _root.getDepth()-1);
Player.autoPlay=false;
Player.bufferingBar=buff;
Player.contentPath="myVIDEO.flv";
the problem is when myVIDEO.flv are loaded, this URL appers o...
Hey Guys
Anyone know how to maintain the original stage size of a externally loaded swf in as3 FP10??
I can't find any documentation on it and don't want to mask it.
Thanks
Sam
...
Hello all,
I've created an mxml page that displays a tree control, however the data is only being displayed as branches. Even items that are leaves are being displayed as branches. What am i doing wrong? Please help!
thanks,
tone
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
public function ini...