Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP! Movie works, but not when embeded (NOT what you think it is). 1

Status
Not open for further replies.

AnthonyNg

Programmer
Nov 10, 2001
3
HK
Hello I'm a new member here, hope you guys will be willing to help me out a little. I am having problems with making the flash movies I made work as I want when embeded. They currently work but not as I like. This is a long message but PLEASE read it! PLEASE HELP! I've been up for nights.

You see, for each of my flash movies, I have put a few looping frames at the start of each movie displaying a "LOADING" message until a certain amount is loaded before it skips past and starts playing.eg., I would put in the first loading frame

ifFrameLoaded ("Scene 6", 30) {
gotoAndPlay ("Scene 1", 5);
}

and on frame 4 I would put
gotoAndPlay (1);

This was working fine when you view the .swf directly by typing the path to the file itself, and it allowed the movie to load 30 or 40 frames before it started playing, making it run smoothly. But when I EMBED it, it doesn't work right.

instead of starting to stream immediately and displaying the loading message, it WAITED till the whole movie was downloaded, and then just started streaming from AFTER the "Loading" message! Worse yet, for the larger movies, it started streaming the sounds first, with no image. Then, the whole thing would stop and start again from the start and the sounds would restart from the beginning, and the rest would play properly.

Here is one of my movies:

Obviously, there is no problem with the flash movie itself, as it worked by itself. It seems as if there is a problem with my embeding, but I have compared it with those on other sites like newgrounds and it is the same. Also, I have tried to load it to other hosts, etc. etc. and using Netscape, Opera, IE 5.5, IE6 to view it. Nothing works. PLEASE HELP!!!!!

Below is the code I used to embed the thing...

<object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot; width=&quot;550&quot; height=&quot;400&quot;>
<param name=movie value=&quot;dna.swf&quot;>
<param name=quality value=high>
<embed src=&quot;dna.swf&quot; quality=high pluginspage=&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;550&quot; height=&quot;400&quot;>
</embed>
</object>
 
Anthony,

First, must I assume you're working with Flash 4?
The &quot;...cab#version=4,0,2,0&quot;; in your <object> tag refers to it!

Second, in situation like these, I allways try calling the movie itself like:


... Which works fine, leading me to believe your html (with all that bull... coding!), is the problem.

It evens works when calling your movie from my own simple html:


Why, once your movie was downloaded once, it will not replay immediately, remains a mystery to me.
Maybe the meta tag you've used in your html, forces a new download of your movie, but I haven't, and it should replay immediately upon a refresh.

Regards,



mywink2.gif
ldnewbie
 
Old Newbie,

Thanks for your reply. I am not using Flash 4. I'm using Flash 5! I don't know about that code as I just used dreamweaver to embed the darn thing there. Can you let me know how to change the code on the page?
 
I've never used Dreamweaver, so can't really help you with that!
As for seeing what simple html does partly work (as I said, upon a second visit, your movie should replay immediately - and not re-download once again!), go to , look at the source code, and copy it.

Of course, you will loose whatever else you had in your html, but by adding some of your old code progressively to the new html, you can retrieve some of it.

Best I can do!

Regards,
mywink2.gif
ldnewbie
 
Thanks man! I got it!!!! It works!!! You DA MAN!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top