Jump to content
Search Community

Search the Community

Showing results for tags 'swfload'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. Greetings and best wishes for the-day-after-thanksgiving. I've been trying to get my head around loading SWFs. I have a number of SWFs that I wanted to play one after the other and can not accomplish this (always starts the last one loaded), so I wanted to just load a SWF in an existing FLA. The FLA is a three frame deal where I run through a bunch of tweens and timelines in each frame and when the final tween completed, we go to the next frame. So I figured all I had to do was create a frame with this: stop(); import com.greensock.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.*; import com.greensock.loading.display.*; import flash.events.Event; import com.greensock.*; import com.greensock.plugins.*; import com.greensock.easing.*; function Part01() { var holder = new MovieClip(); addChild(holder); var loader:SWFLoader = new SWFLoader("typing.swf", {container:holder}); loader.load(); } Part01(); The SWF starts but reaches a certain place (same every time) and unfortunately, this returns a seeming infinitely looping error: at com.greensock::TweenLite/render() at com.greensock.core::SimpleTimeline/render() at com.greensock.core::Animation$/_updateRoot() TypeError: Error #1009: Cannot access a property or method of a null object reference. So, I removed the first three frames so that this frame and layer - and only this frame and layer - existed. I tested the movie again and it worked like a champ with no errors: the SWF was loaded and played. So .... why am I getting errors loading this into the final frame of an existing project? Thanks, Steven P.
×
×
  • Create New...