A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: Problems with exporting (to .swf)

  1. #1
    Junior Member
    Join Date
    Apr 2003
    Posts
    5

    Problems with exporting (to .swf)

    I am using 3DFA v. 3.72 to make a game. In the game, I have two moving elements - one controlled by the user, one which is started by the user pressing a key (up arrow) and then it moves independently and randomly. When exported and viewed in the browser, the independly moving element does not move when the key is pressed, or indeed at all. I also have a collision detect set up between the user-controlled element and the independent element, which works fine in 3DFA, but in the broswer this doesn't work either.

    Does anyone know how I can fix this or what is causing it?

    ~Milli

  2. #2
    hates sounds in preloaders.
    Join Date
    Nov 2002
    Location
    Sweden
    Posts
    361
    You need to post the .movie or some of the code... Hve no idea
    hurg.

  3. #3
    A Senior Newbie - How Odd ForumNewbie's Avatar
    Join Date
    Mar 2003
    Posts
    590
    Hi,

    I've had problems with collision detection in the browser too, although it works fine in 3dfa.
    ie. In v4 beta 2, sometimes collisions are detected when there aren't really any, and sometimes they aren't detected when there is one. I am still investigating, but so far, I think it's related to 'friction' on the element.
    I've just reported it to 'support', and I'll post a reply if I get an answer.
    I never really tested this in v3.72 though, so it may be unrelated.

    Does the problem element in your example have the 'friction' property set?

    Morgan.

  4. #4
    Junior Member
    Join Date
    Apr 2003
    Posts
    5
    Here's the 3DFA 3.72 .movie file and the exported .swf. Please not that the game is not finished - but the bits I have a problem with are in there...

    Files enclosed:
    calico2.movie
    calico_exported.swf
    calico_exported.html

    Hope someone can figure it out!

    ~Milli

    P.S. Morgan - no I don't have nay "friction" settings.
    Attached Files Attached Files

  5. #5
    A Senior Newbie - How Odd ForumNewbie's Avatar
    Join Date
    Mar 2003
    Posts
    590
    Hi,

    I tried to open the file, but it just crashes my 3dfa (Version 3.72 and 4)

    Does the game use any linked images, textures, sounds etc ?
    If so, can you add these to the zip file?

    Ta,

    Morgan.

  6. #6
    Junior Member
    Join Date
    Apr 2003
    Posts
    5
    I'm not sure about linked images - would I need to include all my original .pngs and .gifs which I imported into 3DFA?

    ~Milli

  7. #7
    A Senior Newbie - How Odd ForumNewbie's Avatar
    Join Date
    Mar 2003
    Posts
    590
    I'm not entirely sure what is and isn't required, but I think the gif's and png's are required.
    Anyone else know for sure?

  8. #8
    Junior Member
    Join Date
    Apr 2003
    Posts
    5
    *thinks* well, yesterday I uploaded a Flash game with about 10 .pngs to a site...and none of them seemed to need uploading as well for the game to work.

    ~Milli

  9. #9
    hates sounds in preloaders.
    Join Date
    Nov 2002
    Location
    Sweden
    Posts
    361
    Originally posted by white_queen
    *thinks* well, yesterday I uploaded a Flash game with about 10 .pngs to a site...and none of them seemed to need uploading as well for the game to work.

    ~Milli
    When you export to flash, all your files come with the swf file, if you don't have any external MP3:s. When tou upload a movie source, you have to send with the pictures. But when v.4 releases, we will be able to attach the files to the .movie file.

    Joel
    hurg.

  10. #10
    Junior Member
    Join Date
    Apr 2003
    Posts
    5
    Thankyou for clarifying, Twisted Mind :-)

    Here is the .zip which contains all the images.

    ~ Milli
    Attached Files Attached Files

  11. #11
    A Senior Newbie - How Odd ForumNewbie's Avatar
    Join Date
    Mar 2003
    Posts
    590
    Sorry Mllli,

    Still crashes my 3dfa (Both v3.72 and 4 beta 2). I'll have to leave it to an expert.
    Shame - Because it sounded like the same problem I've been having.

    Morgan.

  12. #12
    A Senior Newbie - How Odd ForumNewbie's Avatar
    Join Date
    Mar 2003
    Posts
    590
    OK, I still can't open the file, but I am sure about my problem now, so this might help you prove where your problem lies :

    As a test, remove all reference to properties like acceleration and relative_acceleration and velocity from the cat. These probably act like the friction in my example, and could be the root of the problem.
    Add an action script that simply places the cat at the mouse coordinates.

    ie.
    cat.x=mouseX();
    cat.y=mouseY{};

    See whether the collision detection works without those properties set for the element. If so, then the problem is pretty much the same as mine, and you'll need to drop a mail to '[email protected]'.

    Hope this helps,

    Morgan.

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