Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding an intro to a swf without access to the fla OR: differences between top-level and loaded swfs
    primarykey
    data
    text
    <p>I've got to (quickly!) add an intro to an existing flash masthead on a site that I've inherited. I don't have access to the source .fla's, so I approached the problem by putting the intro in a wrapper swf and loading the current masthead and adding it to the display list on <code>Event.INIT</code>. So far, so good. (Incidentally, the swfs are built for flash player 9 and use AS3.)</p> <p>The problem I'm having is that although the intro plays fine and loads / displays the beginning of the masthead swf, which is a loading animation, the masthead itself never actually plays. Essentially, my question is: what would cause an actionscript 3-based swf to behave differently when it's the child of another swf as opposed to at the top level of the embedded swf?</p> <p>Potentially important details: Embedding is being handled with swfobject, and no flashvars are being passed in. There are two params, which are <code>base: "/flash/"</code> and <code>wmode: "opaque"</code>. All the swfs and flash data live in <code>/flash/</code>. The flash elements (minus the intro I built) were constructed using the <a href="http://code.google.com/p/inky/" rel="nofollow noreferrer">Inky flash framework</a>, with which I'm not familiar. </p> <p><b>UPDATE</b>: I've reconsidered my approach to the problem and gotten it working by using ExternalInterface; I'm having the intro swf call a js function when it finishes playing, which swaps out the intro swf and replaces it with the current masthead (the approach is outlined <a href="http://pipwerks.com/swfobject/load-onclick/2.0/index.html" rel="nofollow noreferrer">here</a>). I'd still like to know why I was witnessing the behavior I was seeing earlier, though, so any ideas and suggestions would be welcome.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload