Results 1 to 4 of 4
  1. #1
    Palace Guard
    Join Date
    Feb 2010
    Location
    Tegleg Records
    Posts
    3,785
    Gamer IDs

    Gamertag: tegleg digital

    Default [solved] simple actionscript help please?

    hello

    booleans are giving me trouble and i susspect its because im not coding right.
    im trying to do a simple lan connect to test everything, i got it joining ok but not hosting.

    In Flash
    its declared like this
    var bTheHost:Boolean;

    on a button press its made true like this, i know this gets called.
    case "Host":
    bTheHost = true;
    break;

    then an if statement like this doesnt seem to work?
    if (bTheHost == true)
    {
    ExternalInterface.call("FlashToConsole", "open UW2-Monaco?Listner");
    }
    else //its always this
    {
    ExternalInterface.call("FlashToConsole", "open UW2-Monaco");
    }

    In Unreal Script FlashToConsole is from allars forecourseui and i know it works

    thanks
    Last edited by tegleg; 01-14-2011 at 03:50 PM. Reason: solved
    Code:
    We.spazmodicaly.simulate.new.sound.with.technical.equipment.that.is.specificaly.manufactured.for.humans.to.communicate.in.outer.space.Tegleg.manipulates.time.and.space.to.create.new.experiences.to.generate.a.hardcore.database.generation.
    LOOK>> Please ask questions in the forum, NOT a private message <<LOOK
    tegleg.co.uk
    My Tutorials n Stuff
    Games: Tegs Playground - Unwheel2 - VCTF Game - Sponic Mesh 3D - Shh.. dont tell anyone about my android apps.
    will code for money

  2. #2
    MSgt. Shooter Person
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    441

    Default

    You misspell it.

    open UW2-Monaco?Listner

    should be this.

    open UW2-Monaco?Listen

  3. #3
    MSgt. Shooter Person
    Join Date
    Feb 2010
    Posts
    226

    Default

    Quote Originally Posted by tegleg View Post
    In Unreal Script FlashToConsole is from allars forecourseui and i know it works
    FlashToConsole is a method within allar's GFxMoviePlayer class (called FCGFxUIFrontEnd_MainMenu).

    If you want to use this method, you need to copy it as well, or write your own version.
    Last edited by farshad12; 01-13-2011 at 09:08 PM.

  4. #4
    Palace Guard
    Join Date
    Feb 2010
    Location
    Tegleg Records
    Posts
    3,785
    Gamer IDs

    Gamertag: tegleg digital

    Default

    Darknet you are my hero
    first time i have ever missed a typo..

    also the if statement seems to work like this

    if (bTheHost)
    {
    //blah
    }
    else if (!bTheHost)
    {
    //blah
    }
    Code:
    We.spazmodicaly.simulate.new.sound.with.technical.equipment.that.is.specificaly.manufactured.for.humans.to.communicate.in.outer.space.Tegleg.manipulates.time.and.space.to.create.new.experiences.to.generate.a.hardcore.database.generation.
    LOOK>> Please ask questions in the forum, NOT a private message <<LOOK
    tegleg.co.uk
    My Tutorials n Stuff
    Games: Tegs Playground - Unwheel2 - VCTF Game - Sponic Mesh 3D - Shh.. dont tell anyone about my android apps.
    will code for money


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.