Instance of MovieClip Access on stage in the other classes

Hello.

I have the instance of movieclip on the stage.  Instance name qwe of the shiptype.

I want to access it in other classes EnemyShip.as.

I tried this.

MovieClip (this.parent) .getChildByName ("qwe")

but I got

TypeError: Error #1034: Type coercion failed: cannot convert flash.display::Stage@26d03041 to flash.display.MovieClip.

I don't have any class of document.

Publish settings controlled on automatically declare stage instances.

y at - it access qwe in EnemyShip.as anyway?

And here is the link to my flash project:

http://www.mediafire.com/?kf6uiunys20cyzz

If the ship is created the instance of the enemy, you can pass the instance of the ship in the object of the enemy when you create it using something like...

var enemyship: EnemyShip = new EnemyShip (this);

and in your EnemyShip.as receive you and assign it to a variable, so that you can reference it beyond the EnemyShip function

public var _qwe:MovieClip;

public void EnemyShip(ship:MovieClip)

{

_qwe = ship;

Tags: Adobe Animate

Similar Questions

  • How to pass values from one stage to the other

    I have two steps (called primary and secondary). The primary stage creates the secondary stage. When the school is open I can access all the members (say according to) of the 1st stage and try to set a value. But in the 1st stage, I think the value is not defined. I think it is because 1 is executed before the 2nd. I used showAndWait() in 1st then show() on 2nd, then it is thrown exception.

    So I want to use the values defined by the 2nd step of the 1st stage.
    How to synchronize their?
    Thank you.
    package test;
    
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.*;
    import javafx.stage.*;
    
    
    public class Test extends Application {
       
        private int bitNo;
        Stage primaryStage,secondaryStage;    
        TextField textField;    
        double x,y;
       
        public static void main(String[] args) { launch(args); }
    
        
        @Override 
        public void start(final Stage primaryStage) {
            
            this.primaryStage=primaryStage;
            Group rt=new Group();
            Scene sc= new Scene(rt,300,300);
            
            Button button =new Button("Click Me");
            button.setOnAction(new EventHandler<ActionEvent>() {
    
                @Override
                public void handle(ActionEvent event) {
                    secondaryStage=new Stage(StageStyle.TRANSPARENT);
                    secondaryStage.initModality(Modality.WINDOW_MODAL);
                    secondaryStage.initOwner(primaryStage);     
                    
                    showSecondaryWindow();
                }
            });
            
            rt.getChildren().add(button);           
            primaryStage.setScene(sc);
            primaryStage.show();
            
            //primaryStage.showAndWait();
            
            System.out.println("Bit no set= "+bitNo);       
    
     }//start
    
     public void showSecondaryWindow(){
         
         Pane root=new Pane();
         root.setStyle("-fx-background-color: rgb(0,50,70);");
         //root.setPrefSize(200,200);
         Scene scene=new Scene(root,200,300);
                
         Label label=new Label("Data");
         textField=new TextField();
         textField.setUserData("one");
                
         Button ok=new Button("Ok");
         ok.setDefaultButton(true);
         ok.setOnMouseClicked(new EventHandler<MouseEvent>() {
    
            @Override
            public void handle(MouseEvent event) {
                System.out.println("New Stage Mouse Clicked");
                bitNo=Integer.parseInt(textField.getText());
                System.out.println("Bit no set by Secondary= "+bitNo);
                primaryStage.getScene().getRoot().setEffect(null);
                secondaryStage.close();
            }
         });
         Button cancel=ButtonBuilder.create().cancelButton(true).text("Cancel").build();
         cancel.setOnMouseClicked(new EventHandler<MouseEvent>() {  
             @Override
             public void handle(MouseEvent event) {
                 System.out.println("New Stage Mouse Clicked");
                 primaryStage.getScene().getRoot().setEffect(null);
                 secondaryStage.close();
             }
         });
         //VBox vBox =new VBox();
         //vBox.getChildren().addAll(label,textField,ok);
         HBox dataFileds=new HBox(10);
         dataFileds.getChildren().addAll(label,textField);
         HBox buttons=new HBox(10);
         buttons.getChildren().addAll(cancel,ok);
         root.getChildren().add(VBoxBuilder.create().children(dataFileds,buttons).spacing(10).build());
         //scene.getStylesheets().add(Test.class.getResource("Modal.css").toExternalForm());
         secondaryStage.setScene(scene);
         //final Node root = secondaryStage.getScene().getRoot();
         root.setOnMousePressed(new EventHandler<MouseEvent>() {
             @Override public void handle(MouseEvent mouseEvent) {
                 // record distance for the drag and drop operation.
                 x = secondaryStage.getX() - mouseEvent.getScreenX();
                 y = secondaryStage.getY() - mouseEvent.getScreenY();
             }
         });
         root.setOnMouseDragged(new EventHandler<MouseEvent>() {
             @Override public void handle(MouseEvent mouseEvent) {
                 secondaryStage.setX(mouseEvent.getScreenX() +x);
                 secondaryStage.setY(mouseEvent.getScreenY() +y);
             }
         });
         //primaryStage.getScene().getRoot().setEffect(new BoxBlur());
         secondaryStage.show();
         
     }//showSecondaryWindow
        
    }//class

    You can use showAndWait() on your secondary stage. Then execution is blocked, and you will see the change in your variable:

    package test ;
    
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.*;
    import javafx.stage.*;
    
    public class Test extends Application {
    
      private int bitNo;
      Stage primaryStage, secondaryStage;
      TextField textField;
      double x, y;
    
      public static void main(String[] args) {
        launch(args);
      }
    
      @Override
      public void start(final Stage primaryStage) {
    
        this.primaryStage = primaryStage;
        Group rt = new Group();
        Scene sc = new Scene(rt, 300, 300);
    
        Button button = new Button("Click Me");
        button.setOnAction(new EventHandler() {
    
          @Override
          public void handle(ActionEvent event) {
            secondaryStage = new Stage(StageStyle.TRANSPARENT);
            secondaryStage.initModality(Modality.WINDOW_MODAL);
            secondaryStage.initOwner(primaryStage);
    
            // This calls showAndWait(), so execution blocks until the window is closed
            showSecondaryWindow();
            // secondary window is now closed, value should be updated:
            System.out.println("Bit no now: " + bitNo);
          }
        });
    
        rt.getChildren().add(button);
        primaryStage.setScene(sc);
        primaryStage.show();
    
        // primaryStage.showAndWait();
    
        System.out.println("Bit no set= " + bitNo);
    
      }// start
    
      public void showSecondaryWindow() {
    
        Pane root = new Pane();
        root.setStyle("-fx-background-color: rgb(0,50,70);");
        // root.setPrefSize(200,200);
        Scene scene = new Scene(root, 200, 300);
    
        Label label = new Label("Data");
        textField = new TextField();
        textField.setUserData("one");
    
        Button ok = new Button("Ok");
        ok.setDefaultButton(true);
        ok.setOnMouseClicked(new EventHandler() {
    
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            bitNo = Integer.parseInt(textField.getText());
            System.out.println("Bit no set by Secondary= " + bitNo);
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
          }
        });
        Button cancel = ButtonBuilder.create().cancelButton(true).text("Cancel")
            .build();
        cancel.setOnMouseClicked(new EventHandler() {
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
          }
        });
        // VBox vBox =new VBox();
        // vBox.getChildren().addAll(label,textField,ok);
        HBox dataFileds = new HBox(10);
        dataFileds.getChildren().addAll(label, textField);
        HBox buttons = new HBox(10);
        buttons.getChildren().addAll(cancel, ok);
        root.getChildren().add(
            VBoxBuilder.create().children(dataFileds, buttons).spacing(10).build());
        // scene.getStylesheets().add(Test.class.getResource("Modal.css").toExternalForm());
        secondaryStage.setScene(scene);
        // final Node root = secondaryStage.getScene().getRoot();
        root.setOnMousePressed(new EventHandler() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            // record distance for the drag and drop operation.
            x = secondaryStage.getX() - mouseEvent.getScreenX();
            y = secondaryStage.getY() - mouseEvent.getScreenY();
          }
        });
        root.setOnMouseDragged(new EventHandler() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            secondaryStage.setX(mouseEvent.getScreenX() + x);
            secondaryStage.setY(mouseEvent.getScreenY() + y);
          }
        });
        // primaryStage.getScene().getRoot().setEffect(new BoxBlur());
        secondaryStage.showAndWait();
    
      }// showSecondaryWindow
    
    }// class
    

    You can also use an IntegerProperty to hold the variable and listening to the amendments on this subject:

    package test ;
    
    import javafx.application.Application;
    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.*;
    import javafx.stage.*;
    
    public class Test extends Application {
    
      private IntegerProperty bitNo;
      Stage primaryStage, secondaryStage;
      TextField textField;
      double x, y;
    
      public static void main(String[] args) {
        launch(args);
      }
    
      @Override
      public void start(final Stage primaryStage) {
    
        this.bitNo = new SimpleIntegerProperty();
    
        bitNo.addListener(new ChangeListener() {
    
          @Override
          public void changed(ObservableValue observable,
              Number oldValue, Number newValue) {
            System.out.printf("bit no changed from %d to %d%n", oldValue, newValue);
          }
    
        });
        this.primaryStage = primaryStage;
        Group rt = new Group();
        Scene sc = new Scene(rt, 300, 300);
    
        Button button = new Button("Click Me");
        button.setOnAction(new EventHandler() {
    
          @Override
          public void handle(ActionEvent event) {
            secondaryStage = new Stage(StageStyle.TRANSPARENT);
            secondaryStage.initModality(Modality.WINDOW_MODAL);
            secondaryStage.initOwner(primaryStage);
    
            showSecondaryWindow();
          }
        });
    
        rt.getChildren().add(button);
        primaryStage.setScene(sc);
        primaryStage.show();
    
        // primaryStage.showAndWait();
    
        System.out.println("Bit no set= " + bitNo.get());
    
      }// start
    
      public void showSecondaryWindow() {
    
        Pane root = new Pane();
        root.setStyle("-fx-background-color: rgb(0,50,70);");
        // root.setPrefSize(200,200);
        Scene scene = new Scene(root, 200, 300);
    
        Label label = new Label("Data");
        textField = new TextField();
        textField.setUserData("one");
    
        Button ok = new Button("Ok");
        ok.setDefaultButton(true);
        ok.setOnMouseClicked(new EventHandler() {
    
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            bitNo.set(Integer.parseInt(textField.getText()));
            System.out.println("Bit no set by Secondary= " + bitNo);
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
          }
        });
        Button cancel = ButtonBuilder.create().cancelButton(true).text("Cancel")
            .build();
        cancel.setOnMouseClicked(new EventHandler() {
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
          }
        });
        // VBox vBox =new VBox();
        // vBox.getChildren().addAll(label,textField,ok);
        HBox dataFileds = new HBox(10);
        dataFileds.getChildren().addAll(label, textField);
        HBox buttons = new HBox(10);
        buttons.getChildren().addAll(cancel, ok);
        root.getChildren().add(
            VBoxBuilder.create().children(dataFileds, buttons).spacing(10).build());
        // scene.getStylesheets().add(Test.class.getResource("Modal.css").toExternalForm());
        secondaryStage.setScene(scene);
        // final Node root = secondaryStage.getScene().getRoot();
        root.setOnMousePressed(new EventHandler() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            // record distance for the drag and drop operation.
            x = secondaryStage.getX() - mouseEvent.getScreenX();
            y = secondaryStage.getY() - mouseEvent.getScreenY();
          }
        });
        root.setOnMouseDragged(new EventHandler() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            secondaryStage.setX(mouseEvent.getScreenX() + x);
            secondaryStage.setY(mouseEvent.getScreenY() + y);
          }
        });
        // primaryStage.getScene().getRoot().setEffect(new BoxBlur());
        secondaryStage.show();
    
      }// showSecondaryWindow
    
    }// class
    
  • Access the function of the other class Document class

    I have this Enemy.as code that calls a function playerTurn() in Main.as, which is also the document class.

    var rootRef:Main;

    rootRef.playerTurn ();

    This is playerTurn()

    public void playerTurn(): void {}

    player_turn = true

    menu = battle_men

    menu.attackBtn.addEventListener (MouseEvent.CLICK, atkClicked);

    }

    After this code runs, I get

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at CharacterClasses::Enemy/initEnemyTurn() [C:\Users\***\Documents\SonicUltimateSceneCreat or\CharacterClasses\Enemy.as:23]

    Line 23 Enemy.as is rootRef.playerTurn ();

    Why I get this error?

    I got it.

    Object (parent) .playerTurn () worked well, but the function in which this line was performed was based on an event listener, as follows

    public void initEnemyTurn(evt:Event):void {}

    removeEventListener (Event.ENTER_FRAME, initEnemyTurn);

    player_turn = Main.player_turn;

    {if (player_turn)}

    addEventListener (Event.ENTER_FRAME, initEnemyTurn);

    }

    else {}

    Object (parent) .playerTurn ();

    }

    }

    initEnemyTurn is attached to an ENTER_FRAME listener, which was not readded in the else statement, thereby breaking the code.

    The reason why it was delete in the first line of initEnemyTurn is so does not run twice while the first tries to determine the player_turn.

    So it turns out that none of this had to do with the access to the function...

    Thanks for the help!

  • RoboHelp 2015 multiple authors can not access to each of the other changes

    As one of our authors RHelp update an existing topic - cash, change then check-in and all is good, because these changes are visible from the Explorer RoboSource customer as well as the history and other users/authors can see the changes made by no other author via RH2015.

    However, when author X creates a new topic and check it into Version control, there are no errors on the checkin, BUT author there can see the original newly page created and not all changes that no other author has created. Author can make their own changes, but only the person doing the updates can see their updates and no changes made by someone else. When you view the DB/project of the Explorer RoboSource Control 3.1 Client connected to the actual machine where RoboSource Control Server is installed, only the original copy of the new topic/Page is visible without antecedent change made by an author.

    • The subjects/page works as expected. (checkout, mark edits, consignment) all the updates and history are also expected and visible by all authors through RH2015. AND through RSC customer 3.1 Explorer on the RSC server machine.

    • New topic/page created - for which there are changes only the person who has checked these changes may see these changes through RH2015 and not archived by other changes. More by using their local copy of the RSC customer Explorer him only see the current and history for their own evolution.  However, if you use RSC 3.1 customer Explorer of the real source server computer control there is no history of visible changes and shows only the initial report charge/checked in the new page.

    Any thoughts on the areas to review?  Have checked the properties of file on the new issues and they look like to the files (topics) that work as expected. RoboSource control 3.1 all users have the same rights as the account admin. full access.

    Today, our problem was solved!

    Applied last 3 updates for RoboHelp 2015 and applied a fix for known problems with check in and check out files on a 64-bit machine. Fix can be found here: https://helpx.adobe.com/robohelp/kb/cant-check-files-robosource-control.html

  • How oder 1 access political fire after the other

    Hello

    I have a situation in which I want to launch political RO1access first, then RO2.
    How to maintain this order?

    IOM allows to have the order of execution in AP

    Thank you
    Preeti...

    You can use depends on option in the resource object, you can make Exchange depends on the AD...

    Thank you
    Suren

  • How do they interact between the stage and the classes?

    Hello

    I asked this question before, and all I got is 'Go back to reading beginner books', so I hope that someone here is willing to actually answer my question rather than brushing because they were unwilling to help...
    And Yes, I have read books on the topic and been through tons of documentation and not found the answer to this. I have 1 ActionScript and JavaScript experience, so this whole thing shouldn't be this hard.

    I am using ActionScript 3 in Flash CS3.

    My problem is the following:

    I need to know how to send commands between the stuff on the stage and stuff which is defined in a class.
    I had this problem for centuries and kept trying to find ways around it since so far I couldn't find help for her.

    For example:
    When you use a document class, how can I get the number of the current frame of the stage?
    Or using a class of documents, how can I access any object (such as a MovieClip with instance name) who has been on the scene with the IDE?

    Currently, to be more precise, I'm doing something really simple:
    Make a button work on my scene, which is not always visible. With AS3, which is not as easy more than before.
    So what I have now, is to create the button in the document class, used addChild and set it to alpha = 0.

    Now, when the stage reached specific images (i.e. those with labels, and I got this part understood), it is supposed to make the button visible. Then I can add stuff and event listeners, and I can understand this part myself.

    I do not know how to access the number of stage of the document class setting, so I put it in a script of frame in frame 1, but now this script cannot access the button that is defined in the document class.

    It makes me bananas...

    Please, here, can someone someone explain to me how can I make this work?

    I've seen many diagrams of the list of display and the object hierarchy, but none of this, explains how to USE effectively all...

    Thank you in advance to anyone who is willing to spend the time to answer!

    Well, first of all, I must say that AS3 is fundamentally designed to be difficult on purpose, this interaction between the objects is intentionally very strict. For this reason, I always use AS2 to all my basic work of Flash. AS3 is just much more involved, much tighter, much less forgiving... it takes a lot of experience with it before it begins to make sense.

    Now, I think I might have a few answers to your questions:
    Any DisplayObject instance (this includes any class of Document, which must extend MovieClip or Sprite instances) you can access the scene using the "stage" property

    However, stadium is probably not exactly what you want, you want the main timeline, which is a child of the stage. To access the main timeline, you can use the 'root' of any DisplayObject property.

    However, unless you have the strict mode off, Flash will let you just say 'root.myMovieClip' because the root property is of type DisplayObject, that is not a dynamic class (which means that you cannot add properties to it) and it has not built in the "myMovieClip" property, so he thinks you did a mistake. You have to "climb" the root as a MovieClip property, which * is * dynamics so it will allow you to try anything on this subject of reference (like AS1/2 does with everything.)

    So what this means is it should work from the inside, document you class:

    .myMovieClip (root as MovieClip)
    or
    MovieClip (root) .myMovieClip

    Either successfully make reference to a MovieClip you set on the main stage in the IDE and named 'myMovieClip '.

    Rather than set the alpha to 0, try the visible parameter to false. I think that this will disable all interactive events, where simply setting alpha to 0 it would still be interactive.

    HTH

  • access the value in the document class

    Hello I am trying to access a value in the document class. but I can't make it work.

    what I have is:

    can someone tell me how to access the value of myArray?

    Bomberman.As:

    package {}

    import flash.display.MovieClip;

    public class bomberman extends MovieClip {}

    public var myArray:Array = []; trying to access this value

    public void bomberman() {}

    init();

    trace (document.docClass);

    }

    private void init() {}

    var square: Array = [];

    for (var i: Number = 0; i < 11; i ++) {}

    for (var j: Number = 0; j < 11; j ++) {}

    var temp: grassSquare;

    If (i == 0 |) I == 10) {}

    Temp = new grassSquare (i * 50, j * 40);

    addChild (temp);

    Square.push (temp);

    } Else if (i %2! = 0) {}

    If (j == 0 | j == 10) {}

    Temp = new grassSquare (i * 50, j * 40);

    addChild (temp);

    Square.push (temp);

    myArray.push (false);

    } else {}

    myArray.push (true);

    }

    } else {}

    If (j %2 == 0) {}

    Temp = new grassSquare (i * 50, j * 40);

    addChild (temp);

    Square.push (temp);

    myArray.push (false);

    } else {}

    myArray.push (true);

    }

    }

    }

    }

    }

    }

    }

    Bomberman.fla:

    import flash.events.KeyboardEvent

    var User1:Player1 = new Player1;

    stage.addEventListener (KeyboardEvent.KEY_DOWN, User1.fl_SetKeyPressed);

    User1.x = 75;

    User1.y = 60;

    addChild (User1);

    Player1.as:

    package {}

    import flash.display.MovieClip;

    import flash.events.Event;

    import flash.events.KeyboardEvent

    import flash.ui.Keyboard

    SerializableAttribute public class extends MovieClip {Player1

    private var upPressed:Boolean = false;

    private var downPressed:Boolean = false;

    private var leftPressed:Boolean = false;

    private var rightPressed:Boolean = false;

    private var currentSquare:uint = 12;

    public void Player1() {}

    this.addEventListener (Event.ENTER_FRAME, fl_MoveInDirectionOfKey);

    stage.addEventListener (KeyboardEvent.KEY_DOWN, fl_SetKeyPressed);

    }

    public void fl_MoveInDirectionOfKey(event:Event)

    {

    If (upPressed & & this.y > = 100 /* & & document.myArray [currentSquare-1] * /)

    {

    This.y-= 40;

    upPressed = false;

    currentSquare-= 1;

    }

    If (downPressed & & this.y < = 340 / * & & this.myArray [currentSquare + 1] * /)

    {

    This.y = 40;

    downPressed = false;

    currentSquare += 1;

    }

    If (leftPressed & & this.x > = 125 / * & & /*this.myArray[currentSquare-11]*/)

    {

    This.x-= 50;

    leftPressed = false;

    currentSquare = 11;

    }

    If (rightPressed & & this.x < = 425 / * & & /*this.myArray[currentSquare+11]*/)

    {

    This.x += 50;

    rightPressed = false;

    currentSquare += 11;

    }

    trace (currentSquare);

    }

    public void fl_SetKeyPressed(event:KeyboardEvent):void

    {

    switch (event.keyCode)

    {

    case Keyboard.UP:

    {

    upPressed = true;

    break;

    }

    case Keyboard.DOWN:

    {

    downPressed = true;

    break;

    }

    case Keyboard.LEFT:

    {

    leftPressed = true;

    break;

    }

    case Keyboard.RIGHT:

    {

    rightPressed = true;

    break;

    }

    }

    }

    }

    }

    any class that is added to your list of display:

    MovieClip (root) .myArray

  • 'PC' is not set up to establish a connection on port "file and printer sharing (SMB)" with this computer - I get this after enabling access to public folders and then trying to access (another pc on the network cannot connect to this pc but see).

    • Tried to reconfigure the firewall
    • Tried to change files and printers, sharing options
    • Restarted other computers trying to connect to my public folder
    • Tried to adjust the network discovery
    • Do all computers on the network among the same workgroup
    • I can access public folders from the other computer and their content
    • Other computers on my network, in my workgroup can see my public folders, and users, but cannot access it.
    • Other computers can see my computer, but can not access: error code: 0 x 80070035.

    Can't access: 'Public' and 'Users' in the title:

    -Network
    MyName-PC

    Please don't give me that: "If you try to connect to another computer, make sure that this computer is on, that you have enabled file and printer sharing on both computers, and file and printer sharing can communicate through your firewall." Because I seek NOT to connect to another computer... I want to just access MY Public folder and the users folder and eventually allow others to access also.

    Hi Katmandu774,

     

    Welcome to Microsoft Answers Forums.

    The Public folder is a convenient way to share files that are stored on your computer. You can share files in this folder with other people using the same computer and with people using other computers on the same network. Any file or folder you put in the folder Public is automatically shared with the people who have access to your Public folder.

    If you are not on a domain, you can limit network access to the Public folder so that people with a user account and password for this computer. To do this, turn on sharing protected by password.

    1. Open the network and sharing Center by clicking the Start button, clicking Control Panel, click network and Internet, click network and sharing Center.
    2. Click the arrow next to password protected sharing, and then click one of the following options:

    ·         Turn on password protected sharing

    ·         Turn off password protected sharing

    1. Click apply. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    To control the level of access to the Public folder

     

    1. Open the network and sharing Center by clicking the Start button, clicking Control Panel, click network and Internet, click network and sharing Center.
    2. Click the arrow next to public folder sharing, and then click one of the following options:

    ·         Turn on sharing so anyone with network access can open files

    ·         Turn on sharing so anyone with network access can open, change and create files

    ·         Turn off sharing (people logged on to this computer can still access this folder)

    1. Click apply. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    Also, make sure you add everyone to the public folder and give the necessary permissions to access it.

    Sharing files with the Public folder

    http://Windows.Microsoft.com/en-us/Windows-Vista/sharing-files-with-the-public-folder

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Cannot access the template page links in the bean class

    Hi all

    I use JDEV 12 c.

    I have a model in which I have 2 languages English and Hindi.

    Change language (when), I have re - run LOV queries for the respective language.

    so I added links method in model pagedef and try to access the same thing in the bean model class.

    When I have access to, I get Nullpointer Exception, who says the OperationBinding, does not exist in pagedef.

    is there a any restriction I can't access model pagedef in the bean class.

    Please suggest on this.

    Thank you

    Vieira

    https://blogs.Oracle.com/jdevotnharvest/entry/how_to_invoke_adf_bindings

  • After you move the code in the FLA for the document class, I get error

    This is the file before moving http://www.cybermountainwebservices.com/client0/date/ when you click on the contact us button it should dissolve now I get:

    ArgumentError: Error #2005: 0 parameter is of the wrong type. Must be of type IBitmapDrawable.
    at flash.display::BitmapData/draw()
    for WebSite / $construct / gotoContact () [C:\AS3projects\fullBrowser\scaleVid\WebSite.as:65]


    Here is the code:

    the offending code is in "BOLD" everything but the pixel dissolve will work as before

    com is the flvPlayback instance component which is on stage when the author, has nothing else on stage at the time of the author and no action script in the flv file

    package
    {
    import flash.display. *;
    import flash.display.BitmapData;
    import flash.display.IBitmapDrawable;
    import flash.media. *;
    import flash.events. *;
    Jim.interactive import. *;
    Import btnHolder;

    site Web/public class extends MovieClip
    {
    var mesolve:Dissolve2;
    var holder: btnHolder;

    public void WebSite()
    {
    internship. Align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    owner = new btnHolder();

    addChild (holder);

    var onstage: *;
    on stage = com;  //

    report / var: number;
    var rRatio:Number;

    ratio = onStage.height/onStage.width;
    rRatio = onStage.width/onStage.height;
    var newRatio:Number;

    function fillBG(evt:Event_=_null):void
    {

    newRatio = stage.stageHeight/stage.stageWidth;
    Holder.x = stage.stageWidth - (holder.width + 25);
    Holder.y = 50;

    If (newRatio > ratio)

    {
    onStage.height = stage.stageHeight;
    onStage.width = stage.stageHeight * rRatio;
    }
    on the other
    {
    onStage.width = stage.stageWidth;
    onStage.height = stage.stageWidth * ratio;
    }
    }
    fillBG();

    stage.addEventListener (Event.RESIZE, fillBG);
    // ************************* buttons ***************
    this.holder.mcContact.buttonMode = true;
    this.holder.mcContact.addEventListener (MouseEvent.CLICK, gotoContact);

    function gotoContact(e:MouseEvent) {}
    var canvas: BitmapData = new BitmapData (stage.stageWidth, stage.stageHeight, fake, 0xffffffff);
    Canvas.Draw (this.stage);
    var bmp:Bitmap = new Bitmap (canvas);
    addChild (bmp);
    removeChild (com);

    mesolve = new Dissolve2 (canvas);
    mesolve.addEventListener (Event.COMPLETE, nextPage);
    SoundMixer.stopAll ();
    var contact: contactUs = new contactUs();

    function nextPage(e:Event):void {}
    trace ("NextPage");
    addChildAt (contact, 0);
    on stage = contact;
    removeChild (bmp);
    }
    }
    }
    }
    }

    @kglad he does, they are all inside the constructor.

    Perhaps he could operate by changing the line

    Canvas.Draw (internship);

    but really, they should be separated by the manufacturer.

  • recovery of the external class variables

    I created a class loader that retrieves variables from an external text file. I call the loader class and everything works fine but I can't figure out how to get and use variables in the main class. Can someone help me please?

    Call main class:

    function createInfoText (): void {}

    var loadTxt:LoadTxt = new LoadTxt("text_files/mainTxt.txt");

    }

    Class LoadTxt:

    package app.gui

    {

    flash.net import. *;

    import flash.events. *;

    public class LoadTxt

    {

    private var externalTxt:String;

    public var loader: URLLoader = new URLLoader();

    public void LoadTxt (external)

    {

    externalTxt = external;

    init();

    }

    function init (): void {}

    loadExternalText();

    }

    function loadExternalText (): void {}

    loader.addEventListener (Event.COMPLETE, handlerComplete);

    loader.dataFormat = URLLoaderDataFormat.VARIABLES;

    Case of load data

    Loader.Load (new URLRequest (externalTxt));

    function handlerComplete(evt:Event):void {}

    var loader: URLLoader = URLLoader (evt.target);

    trace (Loader.Data) //this works OK

    }

    }

    }

    }

    I know I have to get the data that is held in the var 'loadTxt' but I'm brain-dead!

    Thank you

    Here are a few things to think about...  The LoadTxt class must have loaded the file until the master file can try to access it.  If the LoadTxt class should be a way to tell the main file, it is ready.  What you could do in your handlerComplete function is hurry up an event for this purpose and have an event listener assigned to the instance of LoadTxt, so that the data can be extracted from it when it's ready.

    You can use the custom LoadTxt class event class to pass data in the event that hurry you, if you won't read about the creation/use supported the transmission of parameters.

  • Better way to access a class in reading/writing of several other classes?

    I need run to be retained on a class that gets read and written by the other classes. They share no common ancestor. The reads/writes will be synchronous, so there is no race condition to worry. My idea is to have just the class of all classes that need to access private data and make a 'transfer' between classes, e.g. bundling and unbundling in the classes that need it. This seems very messy. Any ideas?

    I use a data value reference in this situation.  You do just a digital recorder that contains your shared class, and then pass this DVR in all your other items to their initialization.  Given that everyone who needs to change the data has a reference to the data, anyone can modify it within their private methods through a Structure of elements in Place.

  • Why not two MAF project Java classes in the same package, see the other (including those in the project downloadable tutorial used)?

    I use JDev 12.1.3.0, updated to include the MAF 2.1.1 and am using 1.8.0_45 and 1.7.0_79 of JDK.

    I have the SDK with Tools 24.1.2, tools 22, Build-tools 22.0.1 platform and from the 21 API, but I don't think I even got that far...

    So, for some reason, then the creation of two public classes in the same package, they do seem to see each other.

    The flags of the code editor, any mention of each and the other classes as "< < WhateverClass > > Type not found", even after an explicit import.

    A screenshot showing the error is included.

    The classes are created by simply clicking on the ViewController project, then 'new' then selecting class Java and accepting all the default values.

    Everything I do is add a class EMP member to EMP, both in the mycomp.mobile package.

    This happens even if I don't use the prefix of the tutorial "mycomp" from the appointment package.

    At first, I noticed that when following the tutorial staff then again when downloading the employees project completed, which also shows the same problem when I open it.

    When I create any other application, same and asks the ADF, this does not happen.

    I thought that maybe it's something to do with the fact that the MAF uses JDK 8 while JDev runs on JDK 7?

    Anything I'm doing wrong?

    Any help is appreciated!

    I can't reproduce this behavior in my environment, there might be something specific to your installation.

    Can you try deleting the IDE system directory and restart JDeveloper? to find the location of this directory see help-> about-> properties-> de.system.dir

  • How to reuse the java class in several applications

    Hi friendz,.
    Please help me...
    I use JDEV 11.1.2.2.0 version.

    My problem is that I want to reuse the same java class in many applications.
    How can I do that...
    I hope your help...
    -Rude-

    Compile the Java class.
    Package Java class in a POT as suggested in the other post.
    Include the JAR in the classpath.
    Import the class in the other class of the application.

  • access a movieclip already on scene of a class of the document class?

    Hello!

    I have a new problem... I try to access MC which are already on the scene of a void class. I found an explanation here , but I do not understand how to continue.

    There are three options in this example, for example in the first option is the main class:

    public void Main()

    {

    If (internship) init()

    of another addEventListener (Event.ADDED_TO_STAGE, init);

    }

    public void init(e:Event_=_null):void

    {

    var foo:Foo = new Foo (internship);

    }

    and the Foo:

    public void Foo(stage:Stage)

    {

    If (internship) trace ("success"); output: success

    }//

    but where do I go from here?

    You are welcome.

    PS when you use the adobe forums, please check the useful/correct, if there is.

Maybe you are looking for