Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Most simple of AS...

New Here ,
Jul 06, 2014 Jul 06, 2014

Hi there,

At very long time ago... around 2005, I still played with Flash... and I did some pretty neat works (some animations and even a small screensaver)... however, due to my work I didn't touch Flash again since then. One of those works I've made, needed to be tweaked now, and I found out that I'm not able to do anything on this new version of the Flash Editor (I've downloaded the Trial version).

For testing I've made the most simple of things.

I've:

  1. created a rectangle,
  2. created a keyframe on frame 50,
  3. created a classic tween between them,
  4. moved the rectangle on frame 50 just to have some motion.

So far... so good.

Now for the most advanced code ever:

On frame 1 I've inserted:

stop();

or...

if(3>4)

{

  trace("NO!!");

}

else

{

  trace("YES!!!");

}

I've pressed play... and I've exported to a SWF... when I run... both show me the animation, but In the first situation (code).... it does not stop... on the second, nothing appears on the Output.

This is so weird... and I simply not seeing the reason not to work... is anyone seeing what I'm missing here? It has to be simple... this must be just some stupid confusion I'm making.

Many thanks for the help!

TOPICS
ActionScript
453
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jul 08, 2014 Jul 08, 2014

That's entirely up to you. From you last message, I'd say no. You didn't find the source of the problem, you found a way around it.

If you give me a "correct answer" then I get "points". If I get enough points I may get a gold lamé jacket with a giant Adobe A on the back. Just kidding. I would mark your last message as correct. This will close the thread.

Translate
LEGEND ,
Jul 06, 2014 Jul 06, 2014

Do you get any errors? I'm guessing that your original movie was done using AS2. Flash CC only uses AS3.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 07, 2014 Jul 07, 2014

When I was tweaking my previous works, it was AS2 (back in 2005 I think it was the only thing possible)... but the example I gave in my first post was using a clean project, I guess it was considered as AS3? Or the instructions should be used in some particular way to be considered AS3?

I've just saved it as FLA and put it in FileDropper, is it possible for you to check it?

http://www.filedropper.com/mytest

Thanks again.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 07, 2014 Jul 07, 2014

When I run your movie as you saved it using Test Movie... the square just sits there. The stop(); directive works. When I substitute the second set of code, the movie loops and I get the text "YES!!!" at each loop in the output window.

When I look at a saved .swf from either version I get the same result but with no text output.

I have no idea why you are seeing something different.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 08, 2014 Jul 08, 2014

This is just weird...

Meanwhile, I've found an old version from Flash (CS3) and I've made the same test and I was able to do it.

Then I tried to tweak that old work of mine and I was successful (it was a kind of a ScreenSaver)... so... can't really know what happened with that newly version of flash, maybe I'll it again some day.

Rob, MANY THANKS for your help/work...

By the way... should I consider any of these posts as "Correct Answer"?

Best Regards!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 08, 2014 Jul 08, 2014

That's entirely up to you. From you last message, I'd say no. You didn't find the source of the problem, you found a way around it.

If you give me a "correct answer" then I get "points". If I get enough points I may get a gold lamé jacket with a giant Adobe A on the back. Just kidding. I would mark your last message as correct. This will close the thread.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 09, 2014 Jul 09, 2014
LATEST

Your answer is so much better than mine (winning a gold lamé jacket) .

I'll give it you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines