dcsimg
A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25

Thread: No multiple loadEvent.currentTarget.content in function?

  1. #21
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    It's flash's response to that AS, which may or may not be due to fla corruption. Even if the script were completely evil and invalid, the worst it should be able to do to flash is cause it to throw compile errors.

    I'd guess that the same code compiled with the flex sdk would be absolutely fine.

  2. #22
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    Just checked. Very similar code does in fact work fine in flashdevelop using the flex sdk.
    Attached Files Attached Files

  3. #23
    Junior Member
    Join Date
    Aug 2005
    Posts
    27
    I removed the package code and public text to make this not error. Would that cause it not to work? also what is the purpose of wrapping it in a package and using the public/private types of functions? I know I should search.

  4. #24
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    When you're using separate actionscript files rather than frame script you need to put things in packages, and you really really should specify public/private (if you do not specify it goes into one of the scopes anyway and you get warnings).

    In frame script, you're not allowed to put things in further packages or mark public/private because frame script is essentially the body of a generated function which is already in a package.

  5. #25
    Junior Member
    Join Date
    Aug 2005
    Posts
    27
    You are right 5Tons. I opened the swf in just flash player and it works! boo ya.

    Thanks for all your guys help!

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