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

Where is the code ?

Explorer ,
Mar 19, 2017 Mar 19, 2017

Copy link to clipboard

Copied

I downloaded example few sample files from:

ActionScript 3 samples for Flash Professional

http://www.adobe.com/devnet/actionscript/samples.html

(i.e. ActionScript sample: Dynamic text | Adobe Developer Connection)

They contain code files (Media1.as), but there is no code here:

Window - Actions

So, where is that code in the animation file ?

Thank you.

Views

274

Translate

Translate

Report

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 , Mar 19, 2017 Mar 19, 2017

If you open dynamictext.fla the Document class for that is code/Media. Doesn't that work for you?

Votes

Translate

Translate
LEGEND ,
Mar 19, 2017 Mar 19, 2017

Copy link to clipboard

Copied

When I download the zip file I get these folders:

Components

Drawing

Games

Interactivity

Media

Time

Readme.txt

Do you see them?

Votes

Translate

Translate

Report

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
Explorer ,
Mar 19, 2017 Mar 19, 2017

Copy link to clipboard

Copied

No, I see different files:

code

  Media1.as

1_dynamictext.fla

1_dynamictext.swf

Readme.txt

But how can be accesse code (Media1.as content) from the opened .fla file (Adobe animate) ?

Votes

Translate

Translate

Report

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 ,
Mar 19, 2017 Mar 19, 2017

Copy link to clipboard

Copied

If you open dynamictext.fla the Document class for that is code/Media. Doesn't that work for you?

Votes

Translate

Translate

Report

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
Explorer ,
Mar 19, 2017 Mar 19, 2017

Copy link to clipboard

Copied

LATEST

That class is probably in the right panel:

Properties - Publish - Class - pencil symbol (Edit class definition)

But I have one more question. When numbers are entered into fields on the left in that calculator, content of fields in the right panel changes. How it is triggered ? Because I can't see any code, any function name.

How salary_ti control when filled in changes content of some of other fields ?

Function Media1() adds a listener. Maybe that's it. But how this function is triggered ?

Votes

Translate

Translate

Report

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