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

Swf does not load the images on the web

Contributor ,
Mar 12, 2014 Mar 12, 2014

I made a swf that works perfectly on my computer.

The swf does not load the images, cal with the buttons, when I use the swf on the web.

I think the problem is due to the fact that the web changes the path of the file, that is called with the following variable:

var ImmageUrl: String = "MyFolder2 /" +  MynamePic +  ".jpg";

The path is C:/MyFolder1 "(with the swf)" /MyFolder2 "(with the pics)"

Any hint ?

Thank you.

TOPICS
ActionScript
275
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 ,
Mar 12, 2014 Mar 12, 2014
LATEST

When you place an swf in a web page, any files that the swf loads have to be targeted as if the swf is sitting in the same folder as the html page.  If you have the swf in a different folder than the html page, then you need to adjust the paths for the files it loads so that it acts as if it is in the html page's folder.

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