23 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 50+ items on Envato Market
Trajan says

Hi there,

What is wrong with this? Here’s the error at the output panel:

Error C:\Documents and Settings\Nuno\Desktop\Portfolio\folder\folder\transitions\Tweener.as: Line 454: Unexpected ‘)’ encountered catch()

Error C:\Documents and Settings\Nuno\Desktop\Portfolio\folder\folder\transitions\Tweener.as: Line 455: Identifier expected {

And my code:

if (folder.transitions.Tweener._currentTime >= _loc3) { if (_loc1.onUpdate != undefined) { try { _loc1.onUpdate.apply(_loc5, _loc1.onUpdateParams); } // End of try catch() { } // End of catch } // end if

Thanks in advance.

691 posts
  • Has been part of the Envato Community for over 7 years
  • Has sold $5,000+ on Envato Market
  • Located in Canada
  • Has collected 10+ items on Envato Market
+2 more
geoken says

Is that your exact code? It’s missing on curly bracket at the end.

Also, you could try filling in the catch brackets with something like;

catch ( e: Error ) {}

I don’t know if that’s your exact problem, but I recall having issues with try, catch, finally statements when I left out the error type.

23 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 50+ items on Envato Market
Trajan says

Thanks for the help geoken but i did what you said about filling with (e:Error) but the same errors continue.

And what do you mean about missing curly bracket? (i’m a ZERO at coding…)

Here’s the if part of the code:

if (folder.transitions.Tweener._currentTime >= _loc3) { if (_loc1.onUpdate != undefined) { try { _loc1.onUpdate.apply(_loc5, _loc1.onUpdateParams); } // End of try catch (e: Error) { } // End of catch } // end if ++_loc1.timesCalled; if (_loc1.timesCalled >= _loc1.count) { _loc11 = true; break; } // end if if (_loc1.waitFrames) { break; } // end if } // end if

And one thing that also happens is this error at the top of the output panel:

Error C:\Documents and Settings\Nuno\Desktop\Portfolio\folder\folder\transitions\Tweener.as: Line 2: The name of this class, ‘folder.transitions.Tweener’, conflicts with the name of another class that was loaded, ‘folder.transitions.Tweener’.

Thanks ;)

691 posts
  • Has been part of the Envato Community for over 7 years
  • Has sold $5,000+ on Envato Market
  • Located in Canada
  • Has collected 10+ items on Envato Market
+2 more
geoken says

looks like there’s also something wrong with your imports.

3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

hmm…

Make sure you have the right Tweener version – Actionscript 2.0 or Actionscript 3.0 for your file…

1277 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 100+ members
  • Has sold $40,000+ on Envato Market
  • Interviewed on an Envato blog
+7 more
rondog says

Your going to get all kinds of errors if your using a flash decompiler. Good luck!

3868 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 200+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+9 more
flashjunkie says

yes, it does appear to be code from a decompiler, i hope u arent making this file to upload because i check all AS and any signs of decompiled code gets your file rejected and your account closed

Be warned ;)

Jay

23 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 50+ items on Envato Market
Trajan says

Didn’t know that decompiler did that.

I’m trying to recover some files from a friend, who also doesn’t know the answer to my problem… So i’m basically clueless here…

And don’t worry Jay, it’s not for upload. I don’t know anything about flash. I leave that to the pros… I just buy. :)

So what do you think i can do?

3868 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 200+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+9 more
flashjunkie says

id suggest getting your hands on the original files, decompilers wreck the code i think

Jay

1277 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 100+ members
  • Has sold $40,000+ on Envato Market
  • Interviewed on an Envato blog
+7 more
rondog says

they do..hence the _loc1 blah blah

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by