There's nothing on page?

18 views
Skip to first unread message

Yudhi Zainudin Kurniawan

unread,
Mar 19, 2013, 12:18:55 AM3/19/13
to fla...@googlegroups.com
My script is like this, i just copy them all but nothing shows. What does stage refer to? Does it just exist? And where is my object? I couldn't see it.

<!DOCTYPE html>
<html lang="en">
    <head>
        <script src="../lib/flash.js"></script>
        <script src="../lib/flashdom.js"></script>
        <script src="../src/utils/Core-utils.js"></script>
        <script src="../src/geom/Matrix2D.js"></script>
        <script src="../src/display-canvas/DisplayObject.js"></script>
        <script src="../src/display-canvas/DisplayList.js"></script>
        <script src="../src/display-canvas/Stage.js"></script>
        <script src="../src/display-canvas/SpriteSheet.js"></script>
        <script src="../src/display-canvas/SpriteAnimation.js"></script>
        <script src="../src/events/Event.js"></script>
        <script src="../src/events/TouchEvent.js"></script>
        <script src="../src/loading/AnimationLoader.js"></script>
        <script src="../src/loading/ImageLoader.js"></script>
        <script src="../src/media/Sound.js"></script>
        <script src="../src/loading/SoundLoader.js"></script>
        <script src="../src/loading/Loader.js"></script>
        <script src="../src/loading/AssetsList.js"></script>
        <script src="../src/utils/ActionScriptTagExecutor.js"></script>
    </head>
    
    <body>
    <actionscript width="200" height="400">
        var testObject = new DisplayObject();
			
        testObject.width = 100;
        testObject.height = 100;
        testObject.x = 200;
        testObject.y = 250;
        testObject.rotation = 18;
        testObject.fillColor = '#ff0000';

        stage.addChild(testObject);
        
        <!--stage.alpha = 20;-->
        
        
    </actionscript>
    </body>
</html>

Yudhi Zainudin Kurniawan

unread,
Mar 19, 2013, 9:50:33 PM3/19/13
to fla...@googlegroups.com
Is there no answer to this?

Denis Radin

unread,
Mar 20, 2013, 3:51:53 PM3/20/13
to fla...@googlegroups.com
If you use <actionscript> tag - stage is just a variable inside of closure, feel free to use it to add first-level childs, there is no magic.

fillColor is deprecated since 0.5, it`s better to use real world sprites loaded with AssetList as you can see at examples.

20 марта 2013 г., 3:50 пользователь Yudhi Zainudin Kurniawan <yudhi....@gmail.com> написал:
Is there no answer to this?

--
Вы получили это сообщение, поскольку подписаны на группу FlashJS.
 
Чтобы отказаться от подписки на эту группу и перестать получать из нее сообщения, отправьте электронное письмо на адрес flashjs+u...@googlegroups.com.
Подробнее о функциях можно узнать на странице https://groups.google.com/groups/opt_out.
 
 

Yudhi Zainudin Kurniawan

unread,
Mar 20, 2013, 11:49:50 PM3/20/13
to fla...@googlegroups.com
Well, i took the example from flashjs site, http://flashjs.com/yaz.html. So i figure it might work since i just copy paste most of the code. We need forum for this. Coz believe me i'm one confused customer.

Denis Radin

unread,
Mar 21, 2013, 4:04:41 AM3/21/13
to fla...@googlegroups.com
First of all I`m very grateful for your questions and energy. Yes, it is good idea and we will launch forum soon.

0.5 version is just launched and examples at website are not updated yet, at the moment it`s better to use examples from repository and http://pixelscommander.com/polygon/skate/http://pixelscommander.com/polygon/snow/http://pixelscommander.com/polygon/football/

Best,
Denis

21 марта 2013 г., 5:49 пользователь Yudhi Zainudin Kurniawan <yudhi....@gmail.com> написал:
Well, i took the example from flashjs site, http://flashjs.com/yaz.html. So i figure it might work since i just copy paste most of the code. We need forum for this. Coz believe me i'm one confused customer.

--
Reply all
Reply to author
Forward
0 new messages