Скрыть

Flash Player Error Codes

This page describes the error codes that may be returned by the Flash player and provides links to useful Flash-related resources.

Note: These error codes are generated by the Flash player itself. For a list of error codes that may be generated by the IMA Flash SDK, see the API error codes documentation.

Error #2025: The supplied DisplayObject must be a child of the caller

Description
The application or component may be attempting to remove a DisplayObject or component but it cannot be located.
All display objects such as MovieClip and Sprite inherit from the DisplayObject class and can be rendered on-screen with X and Y positioning.
Cause
Primary causes for this error:
  • The addChild() function is called prior to unload() when moving the component to a different parent.
  • The loader is declared as a global variable in the class and load() is called again after the first load.
Resolution
Check the following recommendations to fix the error:
  • Implement unload() before addChild() prior to changing the component's status.
  • Create a new instance of the object before calling it again. Since a display object has only one parent container, you can add an instance of a display object to one display object container. For example, create a new AdsLoader object and add it to the stage prior to requesting ads.
  • Check that your display objects are in the right order. The stage is the top-level container, followed by display objects, and finally display object containers which can contain child dispay objects.

Back to top

Error #2032: Stream Error

Description
The application is unable to request ads from server.
Cause
The ad server has encountered an invalid URL issue, which is mainly caused by improper embedding when loading a file. Primary causes for this error:
  • Attributes such as type, object ID, and allowScriptAccess have not been set properly.
  • The URL cannot be located or it is blocked.
Resolution
Check the following recommendations to fix the error:
  • Set allowScriptAccess to 'always' in the embed tag, especially if you are rendering companion ads on the HTML page. If you are running I.E., make sure that the embed tag is nested within the object tag and verify that the classid attribute appears exactly as shown below:
          <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
                  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
                  width="865"
                  height="750"
                  id="SamplePlayer"
                  align="middle">
                <param name="allowScriptAccess" value="always" />
                <param name="allowFullScreen" value="false" />
                <param name="movie" value="SamplePlayer.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#ffffff" />
                <embed src="SamplePlayer.swf"
                       quality="high"
                       bgcolor="#ffffff"
                       width="900"
                       height="500"
                       name="SamplePlayer"
                       align="middle"
                       allowScriptAccess="always"
                       allowFullScreen="false"
                       type="application/x-shockwave-flash"
                       pluginspage="http://www.macromedia.com/go/getflashplayer" />
          </object>
             

    Note: If allowScriptAccess is not defined, the video file and the HTML page can communicate only if both are from the same domain.

  • Check that the object ID attribute contains the correct content ID.
  • Check that the embed src and type attribute is properly set. This issue may affect non-I.E. browsers. Example:
             <embed src="Player.swf"
                    type="application/x-shockwave-flash">
             
  • Update all references to the video player and ensure that you have granted the file permissions to access content if it is located in another domain.
  • If you are still unclear about the error, refer to the sample implementation.

Back to top

Error #2035: URL Not Found

Description
The SWF file is attempting to locate external assets but they cannot be found.
Cause
Primary causes for this error:
  • The file has encountered an incorrect path to external assets.
  • Embedding the SWF into an HTML page results in the SWF file failing to run.
Resolution
Check the following recommendations to fix the error:
  • Make sure the URL paths are correct and that your assets are in the right domains. The location of your assets must be relative to the SWF. Note that the paths used by the SWF are relative to the embedding HTML page.
  • Set allowScriptAccess to 'always' to enable the SWF file to communicate with the embedding HTML page.

Back to top

Error #2036: Load Never Completed

Description
The ad did not finish loading because an error was encountered while attempting to load the SWF, FLV, or image files. Resources or assets cannot be displayed due to an error while loading.
Cause
Primary causes for this error:
  • The creatives or other assets are not in the correct domain or the URL is incorrect.
  • A timeout has occurred during loading.
Resolution
Check the following recommendations to fix the error:
  • Make sure that your assets are in the correct domain and the URL is correct.
  • Check your internet connection, and refresh the page to reload your files.
  • Try loading the page on another browser to make sure that the error is not browser-related.

Back to top

Additional Flash resources

Back to top

Оставить отзыв о...

Текущей странице
IMA SDK for Flash
Нужна помощь? Обратитесь в службу поддержки.