<div id="container"></div>
html, body {
margin: 0;
padding: 0;
height: 100%;
background-color: #fff;
}
#container {
width: 100%;
height: 100%;
}
xxxxxxxxxx
import "https://cdn.skypack.dev/@next2d/player@latest";
const root = next2d.createRootMovieClip(120, 120, 60, {
"tagId": "container"
});
const { TextField } = next2d.text;
const textField = root.addChild(new TextField());
textField.x = 25;
textField.y = 50;
textField.text = "Hello, World.";
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.