473,320 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

loading an external movie on EnterFrame

1
Hi, I am trying to find a script that will allow an external .swf to open when the playhead reaches a particular frame.

I currently have my buttons scripted to load movie 'on release', but would like them to load on entering a frame instead?

Is this just a small line of code I need?

Thanks.
Jul 23 '07 #1
1 4327
Hi,

You can load an swf movie inside a movie clip.
example:

First create the movie you want to display (any movie) when it reaches a certain frame.Name this file as MyMovie and save it on drive C:, Compile to produce the MyMovie.swf.

MyMovie.swf **this is the file we will display inside another swf.

Create a new flash file.Create a movieclip with instance name "swfloader". Place it on your flash stage, on the specific timeline. Example, you want the MyMovie to play when timeline is on frame 20.

on frame 20, add this script.

_root.swfloader.loadMovie("C:/MyMovie.swf");
_root.stop();

Note: You can load multiple external swf files in 1 movie. That's how most flash websites work.

Hope this helps.
Jul 24 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: MN | last post by:
Hello all - I was hoping I could appeal to the gurus out there as I've researched this issue and can't seem to get this Flash movie to load at all. Below is my javascript code that I use to...
1
by: Marije | last post by:
Hi, I have a FlashObject on my WindowsForm. At some point I want to change the movie (.swf) it is playing but this doesn't seem possible. It just keeps playing the old one after a...
1
by: syamlalz | last post by:
HI... I have one movieclip named "thump_mc" which consists a loader component "myLoader".I am trying to duplicate that movie clip and load picture to it.But the images are not loading to the...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
3
by: suresh_nsnguys | last post by:
Respected sir/madam, right now i am displaying movie (.wmv) file using <embed> and <object> tags inside <div> tag. Everything is working fine. ...
3
by: flashrajesh | last post by:
Hi Friends, I am making a movie presentation for my collage function. IT has many frames. So I have seperated all those animation into a different movie. Now I am having nearly 40 swf movie files....
1
by: SR90 | last post by:
I'm trying to do this automatic scroll box, with an "up" and "down" arrow. The scroll box will have boxes lined up on top of each other moving continuously throug the scroll area. I need help...
1
by: logicgates | last post by:
Hello My name is Saqib, Im making a Flash map. I need to call a movie clip from the menu of the cities, that is an external file an swf. when i click on the country in the menu, the country on the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.