A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Problems exporting to swf

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Location
    Heidelberg, Germany
    Posts
    3

    Problems exporting to swf

    Hello together,

    I am using 3DFA for developing a little flash game. So far everything was smooth and easy to find out. Everything works great in the 3DFA preview or when I export the project to an .exe file. But if I export to .swf most of the stuff I developed so far, doesn’t show up.

    For example:
    I developed a function which clones a bmp-graphic depending on the input.
    Here a short test version:

    Code:
    function test ()
    {
     output = pik.clone();
     return output;
    }
    
    my_new_pik= test ();
    my_new_pik.position.x=300;
    my_new_pik.position.y=183;
    element ("DestroyButton").visible=true;
    This works fine in the 3DFA preview but not in the final .swf-file?
    Here is the SWF-Output
    And here the project file .

    What do you think what I did wrong?
    Thanks for your help.

    Greetings from Heidelberg
    Dominik

    Ps. I hope you understand english

  2. #2
    Junior Member
    Join Date
    Nov 2006
    Location
    Heidelberg, Germany
    Posts
    3
    Quote Originally Posted by geoline
    Ps. I hope you understand english
    Actually I ment: I hope you understand my english

    Btw. In the linked example the clone doesn't show up.

  3. #3
    live? gangsta?
    Join Date
    May 2006
    Posts
    14
    I've looked at your example and I've found the error:

    You define the function test() everytime the button is clicked. This should happen in the starting script. You can put all the things to do with the pik in the little test function.

    Here is my (working) edit:
    TestMovie.movie

    btw. my English is such as bad as yours :-)

  4. #4
    Junior Member
    Join Date
    Nov 2006
    Location
    Heidelberg, Germany
    Posts
    3
    Thanks a lot. I was going nuts, but could find the mistake.
    You saved my day

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center