Search:
Type: Posts; User: CVO Chris
Search:
Search took 0.96 seconds; generated 8 minute(s) ago.
-
-
Has anyone encountered any strange behaviour in Flash? I've been working on a game for over a month and running in to problems that should not happen.
Example: Movieclip is in Frame 89 has a...
-
Saw your reply late yesterday but only able to implement it this morning and it works perfect. I've not used dispatchEvent before but can see the advantages.
Thanks again (you've helped me before...
-
Wow, thanks for the offer 5ToF. I've posted the relevant sections of the code below. I have not used classes.
MAIN TIMELINE:// PETROL BOMB CODE
var bombArray:Array = new Array();
// FOLLOWING...
-
I'm slightly confused.
Using my other method that worked I get [object_Enemy_1]. When I tested with more than 1 instance (enemy14 instance and enemy15 instance), the array traced as...
-
That's far better, thanks Martiansam :)
-
Nevermind, got it. I was adding items to the array using:
MovieClip(this.root).bombArray.push(this.name);
Taking out the .name fixed the issue:
MovieClip(this.root).bombArray.push(this);
...
-
Nevermind, got it. I was adding items to the array using:
MovieClip(this.root).bombArray.push(this.name);
Taking out the .name fixed the issue:
MovieClip(this.root).bombArray.push(this);
...
-
I have an array that contains the instance names of movieclips I want to reference. I'm using the following code:
function onKeyPress(e:KeyboardEvent):void{
// THROW BOMB UPON PRESSING SPACE BAR...
-
Anyone know what do with this?
function onKeyPress(e:KeyboardEvent):void{
// THROW BOMB UPON PRESSING SPACE BAR
if (e.keyCode == Keyboard.SPACE) {
for (var i:int = 0; i < bombArray.length;...
-
Hi everyone. I have some AS3 experience but I'm no expert, probably just reaching intermediate.
I'm creating my first game which is a standard point and click shooter but with additional elements...
-
loadImage(MovieClip(root).nextSection+"/mainImage.jpg");
Works a charm.
Thanks 5Tof (again!) :)
-
I've tried the following:
trace (stage.nextSection)
trace (parent.parent.nextSection)
trace (root.nextSection)
Still getting the error.
More information which just came to mind: although...
-
That's what I originally had but there are 8 instances of this in my timeline. I'm trying to pass a variable in to the argument of the loadImage function so that instead of having 8 instances of the...
-
Yeah images are being loaded externally.
I don't know if this helps but the function is as follows:
function loadImage(url:String):void {
imageLoader = new Loader();
...
-
On the first frame I have a string variable called "nextSection". When the user clicks on a menu item on the site then "nextSection" is populated with the name of that section.
Later on in the...
-
-
Simple question. I'm looping through the for loop below:
function LoadXML(e:Event):void {
xmlData=new XML(e.target.data);
for (var i:int = 0; i < xmlData.tab.length(); i++) {...
-
Works perfectly. Thanks for your time and expertise :)
-
Thank musicman but I think something is wrong as it is now not outputting any images.
<?php
$images = "advertisingExamples/thumbs/"; # Location of small versions
$big =...
-
I have a site that contains a folder with which a client will upload images to. The web site is to display only the latest 3 images that were uploaded to the folder. I have the script below but it...
-
Try this, it's a much better way of doing it: http://library.creativecow.net/articles/ross_tony/AS3_colors_site/video-tutorial.php
-
You are moving the movieclip by 1250pixels in 1 go. You need to move it 1 pixel at a time.
MovieClip(root).mainContainer.illustration.x = MovieClip(root).mainContainer.illustration.x - 1;
-
After much testing - Found it! :D
To call a function on main timeline from 2 movieclips deep:
MovieClip(parent.parent).functionName
So just had to put a modified version of my original...
-
They are added in the Flash IDE. Here is the timeline within the movieclip:
http://www.chrisvanochten.com/wip/eventlistenerprob.jpg
There are 8 buttons and they are rotating round (like a ferris...
|
Click Here to Expand Forum to Full Width
|