1180 error on NavigateToURL

I'm trying to understand why I get the error "1180: Call to a
possibly undefined method navigateToURL." when I use the following
code:

Did you remember to include:
import flash.net.navigateToURL;
import flash.net.URLRequest;
import flash.net.URLVariables;
or even just:
import flash.net.*;
at the top of your package declaration?

Similar Messages

  • Image + 1180 error + possibly undefined method

    Below is a piece of code I've written and getting an "1180: Call to possibly undefined method test".
    <mx:Script>
    <![CDATA[
    public function testDC(): void {
        Alert.show("Testing");
    ]]>
    </mx:Script>
    <mx:Panel id='Test' title = 'Test' width = '100%' height = '100%' creationPolicy="all" backgroundColor="white" backgroundAlpha=".01">
    <mx:VBox label = 'Topology View' showEffect = '{wipe_left}' width='100%' height='100%'
    cornerRadius="5" paddingBottom="15" paddingLeft="5" paddingRight="5" paddingTop="15" clipContent="true">
                <adobe:SpringGraph id="springgraph" width="100%" height="95%" bottom="0" top="40"
                right="0" left="0" clipContent="true">
                <adobe:itemRenderer>
                <mx:Component>
                <mx:Image width="24" height="24"
                                    source="{(data.id==null)?'': (data.id.search('\\.') > 0) ? 'assets/icons/teacher.png' : 'assets/icons/student.png'}"
                                    toolTip="{data.data}" doubleClickEnabled="true" doubleClick="testDC()"/>
                </mx:Component>
                </adobe:itemRenderer>
    </adobe:SpringGraph>
    </mx:VBox>
    </mx:Panel>
    If I do not call the method, I don't get the error, but I need to perform some operations on the clicking the image.
    1. I've also tried to use icon, but with no success.
    2. I've tried to remove the <adobe:itemRenderer> and the <mx:Component> tags, in this case the images don't get loaded and the screen looks bad.
    Any help?

    I put the script tag within the image tag and it worked.

  • Help with 1180 error

    Hi,
    Sorry i am new to all this and the forum. I am trying to copy a youtube tut and have come to an error and cant seem to fix it. I have followed everything exactly and still get the error twice. The error i am getting is this.
    Hope someone can help.
    Line 42  1180: Call to a possibly undifned method aMissleArray. (Line 42 highlighted in Red)
    See code below:
    Regards,
    Brendan
    firstGame
    mcMissle
    package 
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.KeyboardEvent;
         * @author Brendan Maurer
        public class firstGame extends MovieClip
            public var mcPlayer:MovieClip;
            private var leftKeyIsDown:Boolean;
            private var rightKeyIsDown:Boolean;
            private var aMissleArray:Array;
            public function firstGame()
                //Initialise variables
                aMissleArray = new Array();
                //trace("firstGame Game Loaded")
                //Setup Listeners to list for when key pressed
                stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown);
                stage.addEventListener(KeyboardEvent.KEY_UP, keyUp);
                //Setup a game loop event listener
                stage.addEventListener(Event.ENTER_FRAME, gameLoop);
            private function gameLoop(e:Event):void
                playerControl();
                clampPlayerToStage();
                checkMisslesOffScreen();
            private function checkMisslesOffScreen():void
                //Loop through all our missles in our missle array
                for (var i:int = 0; i < aMissleArray.length; i++)
                    //Get current missle in the loop
                    var currentMissle:mcMissle = aMissleArray(i);
                    //Test if current missle is past the top of the stage
                    if (currentMissle.y < 0)
                        //Remove current missle from array
                        aMissleArray.splice(i, 1);
                        //Destroy missle
                        currentMissle.destroyMissle();
            private function clampPlayerToStage():void
                //If our player is to the left of the stage
                if (mcPlayer.x < mcPlayer.width/2)
                    //Set our player to t he left of the stage
                    mcPlayer.x = mcPlayer.width/2;
                //If our player is to the right of the stage
                if (mcPlayer.x > (stage.stageWidth - (mcPlayer.width / 2)))
                    //Set our player to t he right of the stage
                    mcPlayer.x = stage.stageWidth - (mcPlayer.width / 2);
            private function playerControl():void
                //If our left key is currently down
                if (leftKeyIsDown == true)
                    //Move our player to the left
                    mcPlayer.x -= 5;
                //If our right key is currently down
                if (rightKeyIsDown)
                    //Move playewr to the right
                    mcPlayer.x += 5;
            private function keyUp(e:KeyboardEvent):void
                //trace(e.keyCode)
                //If our left key is released
                if (e.keyCode == 37)
                    //Left key is released
                    leftKeyIsDown = false;
                //If our right key is released
                if (e.keyCode == 39)
                    //Right key is released
                    rightKeyIsDown = false;
                //if spacebar is released
                if (e.keyCode == 32)
                    //Fire a missle
                    fireMissle();
            private function fireMissle():void
                //Create a new missle object
                var newMissle:mcMissle = new mcMissle();
                //Add that missle to the stage
                stage.addChild(newMissle);
                //Position our missle so it is on top of our player
                newMissle.x = mcPlayer.x;
                newMissle.y = mcPlayer.y;
                //Add new missle to missle array
                aMissleArray.push(newMissle);
                trace(aMissleArray.length)
            private function keyDown(e:KeyboardEvent):void
                //trace(e.keyCode)
                //If our left key is pressed
                if (e.keyCode == 37)
                    //Left key is pressed
                    leftKeyIsDown = true;
                //If our right key is pressed
                if (e.keyCode == 39)
                    //Right key is pressed
                    rightKeyIsDown = true;
    package 
        import flash.display.Sprite;
        import flash.events.Event;
         * @author Brendan Maurer
        public class mcMissle extends Sprite
            public function mcMissle()
                //Setup an event listener to see if our missle is added to the stage
                addEventListener(Event.ADDED_TO_STAGE, onAdd);
            private function onAdd(e:Event):void
                removeEventListener(Event.ADDED_TO_STAGE, onAdd);
                //Now that our object is on the stage run our custom code
                init();
            private function init():void
                addEventListener(Event.ENTER_FRAME, missleLoop);
            private function missleLoop(e:Event):void
                this.y -= 10;
            public function destroyMissle():void
                //Remove the object from the stage
                parent.removeChild(this);
                //Remove any event listeners
                removeEventListener(Event.ENTER_FRAME, missleLoop);

    At a first glance, it appears you are incorrectly trying to access a member of an array, which ends up treating it like it is a function...
    var currentMissle:mcMissle = aMissleArray(i);
    should be
    var currentMissle:mcMissle = aMissleArray[i];
    I am not well-versed in class matters, but I wonder why you are not declaring the variable at the start like the others.  Also, I don't see where you import the mcMissile class, so I have to wonder if that might be an issue as well.

  • "error in script on this page" while trying to install adobe flash player 11.4.402.278

    hello, all --
    i am a newbie of long standing , so please forgive my ignorance.  i plead for mercy from the kind and generous people who answer inquiries here.
    i got a notice on my computer that a newer version of adobe flash player was available.  the one i had at the time was 11.4.402.265.  the newer version was 11.4.402.278.  i got to where i thought was the right place and clicked "download."  within a few seconds i got a message saying that a "script error" had occurred on the page and did i want to continue running this script.
    -- line 1
    -- char 12948
    -- error, object expected
    -- code 0
    -- URL http://127.0.0.1:1127/app/_js/adobe.js
    it doesn't seem to matter whether i click "yes" or "no" on continuing to run the script.  the next thing that happens is that i get a second "script error" notice.
    -- line 1
    -- char 1180
    -- error, 'globalActiveActionItems' is undefined
    -- code 0
    -- URL http://127.0.0.1:2501/app/_js/adobe.js
    it doesn't matter whether i click "yes" or "no" on whether i want to keep running the script.  the screen reverts to saying that it is "retrieving install," then i get the second "script error" message again.  and to make things worse, i can't get rid of the "retrieving install" screen; it has the minimizer button and the "quit" button (x), but the "quit" button does nothing, so for now i've simply minimized it.
    what has happened here?  what should i do to fix it?  i've tried going back to the beginning and redoing it, but i end up over and over again with the second "script error" message.  i've tried making sure that "scripting" is "enabled" under "tools/internet options/scripting," then closing and reopening internet explorer (a suggestion i found in a similar thread), but the same things keep happening.
    i am on a dell optiplex 330, windows pro XP/SP3, IE 8.0.6001.18702.
    thanks to anyone who has any suggestions for me.
    -- susie margaret
    [email address removed]

    I have the same exact problem
    -- line 1
    -- char 12948
    -- error, object expected
    -- code 0
    -- URL http://127.0.0.1:1127/app/_js/adobe.js
    except
    it looks like this being on line 2 and not on line 1
    -- line 2
    -- char 12948
    -- error, object expected
    -- code 0
    -- URL http://127.0.0.1:1127/app/_js/adobe.js
    i know it was only released 3 weeks ago but i hope someone can help, oh and i tried what susie did.  it didnt work
    thank you for your time

  • Simple button navigation script

    This question is so simple-I can't really find the answer
    anywhere, but as a complete NooB I have no idea how to make this
    work. I have a nested movie 1 layer down from main stage that has
    several navigation buttons that move to different main stage
    labeled frames. I get an 1120 error because I am somehow not
    calling them out on the script. I have named the instances..so
    that's not the problem. I think I just need to somehow direct the
    script to the nested location. If I move the buttons to the main
    stage I get no errors and it all works perfectly. Please help.
    Here's a sample script for the button:

    ok..not to mix things up but here's the instance name of
    button I'm currently working on: "buttonbio".
    It's located in a mc called "movFilmbackground". I'm trying
    to get the playhead to go to the frame label "bio" on the main
    stage.
    If I put the first code in...on the main stage at the
    beginning of the timeline, nothing happens when I try the button...
    If I put the second code in.. I get 1120 error.."access of
    undefined property buttonbio" & 1180 error "call to possibly
    undefined method movFilmbackgound"
    CODE

  • Flash intro to index (can't get it to work)

    Before I go any further, let me say that the
    "getURL("index2.html", "_self") has been tried and not worked in my
    case.
    I'm trying to get a basic flash video intro to direct the
    browser to a home page upon completion. I've imported the video to
    the stage; there is one keyframe in the timeline. Here is what I
    have tried:
    • The "getURL" procedure I see everywhere on the net as
    the solution to this problem, gets me an 1180 error, "Call to a
    possibly undefined method getURL"
    • Upon selecting that keyframe and attempting to add an
    action, I get the message "Current selection cannot have actions
    applied to it."
    • Behaviors, of course, "this action is not supported
    by ActionScript 3.0".
    • I've tried switching to AS 2.0, but upon trying to
    publish, I get the message "The component 'fl.video.FLVPlayback'
    requires ActionScript 3.0."
    I'm at my wit's end on this seemingly simple procedure. Any
    help would be greatly appreciated!

    So then you cannot edit the movieclip. I'm not a video expert
    in the least, so you may have to get someone else's attention for
    this one. There are likely ways of starting the video with code,
    and then detecting when the video has stopped playing which you can
    use to trigger the jump to the other page.
    My best suggestion at this point is to start another posting,
    possibly in the AS3 forum, indicating that you have an flv that you
    want to be able to trigger the page change when the video ends. If
    you don't have any code that starts the video, meaning it's
    self-starting, then you oughta mention that as well.
    I'll probably try to follow it if you do--maybe I can learn
    something (I generally zip past any postings involving video and
    sound). I don't get any video work, so I don't have much experience
    with it. But I did solve an issue for someone once... something
    they could have solved themselves if they knew how valuable Google
    is as a resource.

  • Binding in first frame?

    I'm trying to make a simple application with buttons to jump
    between frames and in each frame there are components such as
    comboboxes and checkboxes which values should come from .xml via
    xml connector.
    Now, when I try to bind for example a combobox to the xml
    connector, it says in the component inspector: "A Component
    instance must exist in the first frame to edit its bindings". ???
    How is it possible to make even a simplest application with
    navigation if all the components must be in the first frame??? Is
    there a solution for this?
    I tried to put the components and xml connector in a
    movieclip of their own so that the components would be in the first
    frame of THAT timeline, but then it don't even find the xml
    connector in the component inspector when I'm trying to bind it???
    Am I doing something wrong or are the components just so
    "infantile" that you can't create anything a bit more complex
    application with them?
    Please help :(

    Barney,
    > The syntax error in navigateToURL was preventing stop
    from
    > working (thistop(); is a typo ? it was stop();).
    stop(), alone, would certainly do it, but the expression
    this.stop() is
    also just fine. The key is to separate the terms "this" and
    "stop()" with a
    period. I also noticed a possible issue with another line. In
    this
    snippet:
    navigateToURL(new URLRequest(here.html),_self);
    ... the HTML page "here.html" needs to be in quotes when
    passed to the new
    URLRequest constructor.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Problem calling AS3 class's methods from Flex Project

    Sorry if this is a stupid question, but after 2 days of Web
    searching and 2 books give up; I am a Java and c# programmer and am
    having problems calling AS3 classes (in packages) from Flex Builder
    2 Flex Projects; the AS3 classes work great as Flex Builder "AS3
    Projects", but when I try to use the classes in a Flex Builder
    "Flex Project" I am able to see and set their properties, but
    cannot see (through "code completion") their methods (unless the
    class extends another AS3 class; and in that case I can see the
    base class's methods). Here is the code:
    AS3 Example Class:
    package asText {
    public class CheckWord {
    public var strData:String;
    public var strAProperty:String;
    public var intAProperty:int;
    // Constructor
    public function CheckWord() {
    public function TestMethod():void {
    trace("test...");
    public function WordLength():int {
    var intLength:int = 0;
    trace(strData);
    intLength = strData.length;
    return intLength;
    } // From Method WordLength
    } // From Class CheckWord
    } // From Package asText
    The MXML code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    width="442" height="488" horizontalAlign="center"
    verticalAlign="middle"
    backgroundGradientColors="[#c0c0c0, #c0c0c0]"
    xmlns:asTheText="asText.*"
    >
    <asTheText:CheckWord strData="Test words" />
    <mx:Panel title="Welcome to ........" width="337"
    height="393" horizontalAlign="center" verticalAlign="middle"
    layout="absolute" y="15" x="50">
    <mx:Text text="First Name" enabled="true" width="68"
    fontWeight="bold" x="27.25" y="36"/>
    <mx:TextInput id="txtFName" x="112.25" y="34"/>
    <mx:Text text="Last Name" enabled="true" width="68"
    fontWeight="bold" x="27.25" y="66"/>
    <mx:TextInput x="112.25" y="64" id="txtLName"/>
    <mx:Text text="email address" enabled="true" width="87"
    fontWeight="bold" x="17.25" y="96"/>
    <mx:TextInput width="189" id="txtEmail" left="112.25"
    top="94"/>
    <mx:Button id="butSubmit" label="Submit" x="95" y="194"
    click="asTheText:TestMethod();"/>
    ..............and so on ............
    All this does is give me an 1180 error:
    1180: Call to a possibly undefined method TestMethod.
    flexConveyMovie1.mxml

    Thanks, I have it working; I was not assigning an "ID" to the
    "MXML use of the class" (whatever the formal name for that is;
    like: <asTheText:CheckWord id="MyText" strData="The Data" />
    ) and then I was not referencing that ID in what I am refering to
    as calling methods for the Class; like:
    <mx:Button id="butTest" label="Test Function" x="39"
    y="208" click="MyText.TestMethod();"/>
    Also, I did some tests on this, and I am shocked that
    apparently neither of these two "uses"(?) of a custom AS3 class
    actually "call" the Class's constructor. Does that make sense or is
    that the result of how I am structuring this?
    Phil

  • .launchBrowser()  issues

    Hello,
    from the EB documentation:
    // For CS5.x targets, use asynchronous method in deprecated CSXSInterface
    var result:SyncRequestResult = CSInterface.getInstance().launchBrowser("http://www.adobe.com");
    if(SyncRequestResult.COMPLETE == result.status) {    
    trace("A browser window has been successfully open"); }
    // For CS6 targets, use the synchronous method in CSInterface
    CSInterface.instance.launchBrowser("http://www.adobe.com");
    I'm having problems on Photoshop CS6, namely:
    1. The latter, CSInterface.instance.launchBrowser() is undefined, the method doesn't exists.
    2. In the documentation the former, I guess, should be CSXSInterface.getInstance().launchBrowser() and not CSInterface. Anyway, if I try (besides the warnings about the deprecated code) I can't make the browser to launch since the result.status is equal to PlugPlugRequestDenied (what's that?!)
    3. Since the two ways suggested in the documentation don't work, I've tried with:
    var request:URLRequest = new URLRequest(url);
    try {
      navigateToURL(request)
    }                      catch(error:Error) {
      trace("navigateToURL Error");
    and this finally did the job.
    Besides this .launchBrowser() discrepancy, I've found (and reported in the forum) some issues with the EncryptedLocalStore - it looks like the EB 2.0 documentation is rather optimistic, while in the real world things don't work as expected...
    Davide

    If you reinstalled the OS again from Nokia, you may just have a defective phone and there could be something wrong with the hardware.  I have two N9's and I haven't experience any of these problems.
    Can you record these problems and post the link to youtube here so I can see what's happening?
    I Choose Nokia!

  • Error 1180: Call to a possibly undefined method class_name

    hi,
    i am new AS 3.0. When i try to compile my file it show the following error.
    1180: Call to a possibly undefined method ClassA.                                 var obj =new ClassA(10,10);
    My class file contains...
    class ClassA {
        public var Avg:Number = 0;
        public function ClassA(a, b) {
            Addit(a,b);
        public function Addit(aval:Number, bval:Number):Number {
            Avg = aval+bval;
            trace("Average - "+Avg);
            return Avg;
    i have called in flash file....
    import ClassA;
    var obj =new ClassA(10,10);
    Any help Pls....
    Ayathas

    i have modified my AS file as
    package TestPackage{
        import flash.display.Sprite;
    public class ClassA extends Sprite {
        public var Avg:Number = 0;
        public function ClassA(a, b) {
            Addit(a,b);
        public function Addit(aval:Number, bval:Number):Number {
            Avg = aval+bval;
            trace("Average - "+Avg);
            return Avg;
    i have included the document path in the properties panel as, TestPackage.ClassA
    now it show's following error message....
    ArgumentError: Error #1063: Argument count mismatch on AS::ClassA$iinit(). Expected 2, got 0.
    When i modifiy ClassA construnctor as follows, it works fine.
      public function ClassA() {
            var a = 10;
            var b = 10;
            Addit(a,b);
    how can i get input values from the user..........
    Thanks in Advance,
    Ayathas
    Message was edited by: ayathas

  • 1180: Call to a possibly undefined method error for DEFINED method

    Hi,
    I have Document Class  main.Core  that in package main
    In the first frame of the .fla I have:
    stop();
    startGame();
    public function startGame():void {
           world = new World();
            world.startWorld();
    World is class in package world.
    I use import world.World;
    When I am tryng to export I get the error:
    1180: Call to a possibly undefined method startWorld.
    Can someone tell me why?
    Thanks.

    what's the following show:
    package world {
    import flash.display.MovieClip;
         public class World extends MovieClip {
              public function World():void {
    trace(this);         
              public function startWorld():void {
                   trace("b");

  • Error 1180 : undefined method stop and gotoAndStop

    Error 1180 : undefined method stop and gotoAndStop
    i don't know why
    Here ,, it's my code is file [.as] and i use as3
    package {
              import flash.display.*;
              import flash.events.*;
              import flash.text.*;
              import flash.utils.Timer;
              import flash.media.Sound;
        import flash.media.SoundChannel;
              import flash.net.URLRequest;
              public class MemoryGame extends Sprite {
                        static const numLights:uint = 5;
                        private var lights:Array; // list of light objects
                        private var playOrder:Array; // growing sequence
                        private var repeatOrder:Array;
                        // timers
                        private var lightTimer:Timer;
                        private var offTimer:Timer;
                        var gameMode:String; // play or replay
                        var currentSelection:MovieClip = null;
                        var soundList:Array = new Array(); // hold sounds
                        public function MemoryGame() {
                                  //soundBG.load(new URLRequest("soundBG.mp3"));
                                  //soundBG.addEventListener(Event.COMPLETE,loadSoungBgComplete);
                                  stop();
                                  StartBtn.addEventListener(MouseEvent.CLICK, clickStart);
                                  function clickStart(e:MouseEvent){
                                            gotoAndStop("startPage");
                                  // load the sounds
                                  soundList = new Array();
                                  for(var i:uint=1;i<=5;i++) {
                                            var thisSound:Sound = new Sound();
                                            var req:URLRequest = new URLRequest("note"+i+".mp3");
                                            thisSound.load(req);
                                            soundList.push(thisSound);
                                  // make lights
                                  lights = new Array();
                                  for(i=0;i<numLights;i++) {
                                            var thisLight:Light = new Light();
                                            thisLight.lightColors.gotoAndStop(i+1); // show proper frame
                                            thisLight.x = i*90+100; // position
                                            thisLight.y = 175;
                                            thisLight.lightNum = i; // remember light number
                                            lights.push(thisLight); // add to array of lights
                                            addChild(thisLight); // add to screen
                                            thisLight.addEventListener(MouseEvent.CLICK,clickLight); // listen for clicks
                                            thisLight.buttonMode = true;
                                  // reset sequence, do first turn
                                  playOrder = new Array();
                                  gameMode = "play";
                                  nextTurn();
                        // add one to the sequence and start
                        public function nextTurn() {
                                  // add new light to sequence
                                  var r:uint = Math.floor(Math.random()*numLights);
                                  playOrder.push(r);
                                  // show text
                                  textMessage.text = "Watch and Listen.";
                                  textScore.text = "Sequence Length: "+playOrder.length;
                                  // set up timers to show sequence
                                  lightTimer = new Timer(1000,playOrder.length+1);
                                  lightTimer.addEventListener(TimerEvent.TIMER,lightSequence);
                                  // start timer
                                  lightTimer.start();
                        // play next in sequence
                        public function lightSequence(event:TimerEvent) {
                                  // where are we in the sequence
                                  var playStep:uint = event.currentTarget.currentCount-1;
                                  if (playStep < playOrder.length) { // not last time
                                            lightOn(playOrder[playStep]);
                                  } else { // sequence over
                                            startPlayerRepeat();
                        // start player repetion
                        public function startPlayerRepeat() {
                                  currentSelection = null;
                                  textMessage.text = "Repeat.";
                                  gameMode = "replay";
                                  repeatOrder = playOrder.concat();
                        // turn on light and set timer to turn it off
                        public function lightOn(newLight) {
                                  soundList[newLight].play(); // play sound
                                  currentSelection = lights[newLight];
                                  currentSelection.gotoAndStop(2); // turn on light
                                  offTimer = new Timer(500,1); // remember to turn it off
                                  offTimer.addEventListener(TimerEvent.TIMER_COMPLETE,lightOff);
                                  offTimer.start();
                        // turn off light if it is still on
                        public function lightOff(event:TimerEvent) {
                                  if (currentSelection != null) {
                                            currentSelection.gotoAndStop(1);
                                            currentSelection = null;
                                            offTimer.stop();
                        // receive mouse clicks on lights
                        public function clickLight(event:MouseEvent) {
                                  // prevent mouse clicks while showing sequence
                                  if (gameMode != "replay") return;
                                  // turn off light if it hasn't gone off by itself
                                  lightOff(null);
                                  // correct match
                                  if (event.currentTarget.lightNum == repeatOrder.shift()) {
                                            lightOn(event.currentTarget.lightNum);
                                            // check to see if sequence is over
                                            if (repeatOrder.length == 0) {
                                                      nextTurn();
                                  // got it wrong
                                  } else {
                                            textMessage.text = "Game Over!";
                                            gameMode = "gameover";
    and i don't push any code
    at fla file
    why i got that help me plss
    that is my homework and i must send it today TT

    can you write how to use ?
    i write
    "import the flash.display.MovieClip; "
    still error ahhh
    i try to change extends MovieClip instead Spirt
    and not error stop(); and gotoAndStop Already
    but
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at MemoryGame/nextTurn()
              at MemoryGame/clickStart()
    i got thissssssss TT
    import flash.display.Sprite;
    import flash.events.*;
    import flash.text.*;
    import flash.utils.Timer;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.net.URLRequest;
    import flash.display.MovieClip;
    that i import

  • Whats wrong with this code? Error 1180.

    I keep getting the error 1180:Call to a possible undefined method getURL
    var jscommand:String = "window.open('www.adobe.com','win','height=1024,width=768,toolbar=no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);");
    Any help would be appreciated.
    Thanks guys.

    Got it.
    Thanks!

  • Error 1180

    the code below is trying to generate a raw object, duplicate it n times and, replace it in a different random position
    so i made the code in this way:
    var dustRaw:MovieClip;
    var dust:MovieClip;
    function dustRawGen() {
        dustRaw.graphics.beginFill(0xFF0000);
        dustRaw.graphics.drawEllipse(0,0,1,1);
        dustRaw.graphics.endFill();
    function dustGen() {
        for (var i:int = dustArray.length; i<=dustCount-1; i++) {
            dust = new dustRaw();
            addChild(dust);
            dust.x = Math.random() * (rBound-lBound) + lBound;
            dust.y = Math.random() * (dBound-uBound) + uBound;
            dustArray.push(dust);
            tailArray[i] = new Array();
    dustRawGen();
    dustGen();
    but when i test it, there is an error on the bolded line
    1180: Call to a possibly undefined method dustRaw.
    did anyone know why?
    thanks for any help

    if dustRaw is an ellipse creating class, you would use it from another class.  for example, if you want to use it from the dustGen class:
    // dustRaw.as:
    package{
         import flash.display.MovieClip;
              class dustRaw extends MovieClip {
                  public function dustRaw(){
                       graphics.beginFill(0xFFFFFF);
                       graphics.drawEllipse(0,0,15,15);
                       graphics.endFill();
    // dustGen.as:
    package{
    import dustRaw;
    public class dustGen{
    private var dust:dustRaw
    public function dustGen() {
        for (var i:int = dustArray.length; i<=dustCount-1; i++) {
            dust = new dustRaw();
            addChild(dust);
            dust.x = Math.random() * (rBound-lBound) + lBound;
            dust.y = Math.random() * (dBound-uBound) + uBound;
            dustArray.push(dust);
            tailArray[i] = new Array();
    p.s.  you should use generally accepted coding standards:  your class names should start with an upper case letter, eg DustGen and DustRaw would be what coders expect to see.

  • NavigateToURL error message!

    Hi
    my application has the follow function:
    public var u:URLRequest = new URLRequest( "
    http://www.google.com/search?hl=en&q="
    private function nav():void
    navigateToURL(u,"_blank");
    But, I got this error message when i try to compile my
    application pointing to navigateToURL:
    Incorrect number of arguments. Expected no more than 1.
    thanks

    The problem is that I called by mistake my application
    navigateToURL. Therefore, it refers to. I solved the problem by
    changing the name of the application

Maybe you are looking for

  • The right external drive for my configuration

    I am looking to get an external hard drive for backup purposes and also to extend the storage space of a sorely limited Powerbook G3. It has a 6GB hard drive. In other words, you can't use it for anything except the internet and a few documents! I've

  • AC Adapter for HP Pavilion Laptop

    Are the ac adapters for HP Pavilion laptops compatible w/ each other?

  • EREC : Lock SAP user ID for future date

    Hi , Can anyone  suggest a way to Lock an SAP user id for a Future Date . Thanks in advance, Tk

  • All iMovie projects opening, except for one

    I am having trouble opening one particular iMovie project--while all my other projects are opening just fine. I have the latest version of iMovie HD (6.0.3), and am working on a mirror-front G4 with plenty of Ram and working space (500gb hard drive w

  • What is the best practice concerning View Objects and List of values

    Hi, Let's take these two tables : Market_Descriptions Id Name Desc Language_Id Languages Id Code Desc Now, if I am generating these business components with the help of the wizard, I will be having two entities and two views. If I am creating a list