loadVariables action not working with embedded .swf

.NET Edition of the F-IN-BOX
wolfman
Posts: 1
Joined: Wed Feb 01, 2006 1:07 pm

loadVariables action not working with embedded .swf

Postby wolfman » Wed Feb 01, 2006 1:09 pm

I have a flash movie that uses loadVariables() to load data from a local text file. Everything works when I run it using the saflashplayer, but it does not work when I embed the movie using flashplayercontrol. Any ideas?

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: loadVariables action not working with embedded .swf

Postby Softanics » Wed Feb 01, 2006 4:58 pm

wolfman wrote:I have a flash movie that uses loadVariables() to load data from a local text file. Everything works when I run it using the saflashplayer, but it does not work when I embed the movie using flashplayercontrol. Any ideas?


Thank you for your question.

When your movie tries to load from a local file, e.g. "data.txt", FlashPlayerControl searches this file:

1. In the path specified by the Base property. You can set it:

Code: Select all

FlashPlayerControl1.FlashProperty_Base = "file://" + System.IO.Path.GetDirectoryName(Application.ExecutablePath) + "\data"


2. If file not found using the Base, searches in the current directory of a process.

Place your text file near your EXE and launch EXE. loadVariable should works fine. If not, please send me the code and fla.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 5 guests

cron