There is something I'm still not understanding about FileScope

I’ve read the doc but there is probably still something I don’t understand about FileScope…

Here are the blocks:

The MP3 file has been uploaded using the “Upload file…” button in the designer “Media” section.

I’m executing this block on my phone (Android 16), connected through USB (I use aiStarter from Ubuntu).

When I click on the “Help” button the sound is correctly played, however the message dialog that pops up after the sound is played show the message “File DOESN’T exist” (i.e. the File1.Exists test fails)

So… if Sound.Play can found the file and play it, why File1.Exists can’t?

Ciao,

Max

The Media section is Filescope Assets.

Thanks, I’ve changed FileScope to “Assets” and it works.

By the way… will it keep working when I build the app and run it from the .apk file?

Yes, your test (File Exists) will work when compiled.

You should probably run this test before your set the source/try to play the file...:wink:

Also see your other question.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.