dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: CVO Chris

Page 1 of 20 1 2 3 4

Search: Search took 2.10 seconds.

  1. [RESOLVED] Working code in the timeline until I add a class path and suddenly get errors!

    Nevermind - got it!
  2. Replies
    0
    Views
    605

    Unexpected / Strange behaviour

    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...
  3. Saw your reply late yesterday but only able to...

    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...
  4. Wow, thanks for the offer 5ToF. I've posted the...

    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...
  5. I'm slightly confused. Using my other method...

    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...
  6. That's far better, thanks Martiansam :)

    That's far better, thanks Martiansam :)
  7. Nevermind, got it. I was adding items to the...

    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);
    ...
  8. Nevermind, got it. I was adding items to the...

    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);
    ...
  9. [RESOLVED] Array[i].gotoAndPlay("frame label") doesn't work

    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...
  10. Anyone know what do with this? function...

    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;...
  11. [RESOLVED] [Help] [AS3]: Point and click shooting game... a better way?

    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...
  12. loadImage(MovieClip(root).nextSection+"/mainImage....

    loadImage(MovieClip(root).nextSection+"/mainImage.jpg");

    Works a charm.

    Thanks 5Tof (again!) :)
  13. I've tried the following: trace...

    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...
  14. That's what I originally had but there are 8...

    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...
  15. Yeah images are being loaded externally. I...

    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();
    ...
  16. Can't access variable from within movieclip.

    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...
  17. Replies
    2
    Views
    514

    Thanks!

    Thanks!
  18. Replies
    2
    Views
    514

    [RESOLVED] Simple for loop poser.

    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++) {...
  19. Replies
    4
    Views
    4,627

    Works perfectly. Thanks for your time and...

    Works perfectly. Thanks for your time and expertise :)
  20. Replies
    4
    Views
    4,627

    Thank musicman but I think something is wrong as...

    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 =...
  21. Replies
    4
    Views
    4,627

    PHP - Sort files by Date?

    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...
  22. Replies
    2
    Views
    432

    Try this, it's a much better way of doing 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
  23. Replies
    3
    Views
    1,781

    You are moving the movieclip by 1250pixels in 1...

    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;
  24. Replies
    3
    Views
    513

    After much testing - Found it! :D To call a...

    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...
  25. Replies
    3
    Views
    513

    They are added in the Flash IDE. Here is the...

    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...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center