473,788 Members | 2,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

loading an external movie on EnterFrame

1 New Member
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 4340
ghostface
13 New Member
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
3772
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 detect the browser and then based on the success of loading the plugin either show the Flash movie (swf file) or show a jpeg. Any help is appreciated as I have adjusted the syntax of having nested script tags within each other without any success. ...
1
1359
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 loadMovie-command. Does someone know how to reset or clear the FlashObject or maybe another workaround to change the movie? Thanks, Marije
1
2115
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 duplicated movie clips. Pleease help me. for (var i = 1; i<=15; i++) { _root.duplicateMovieClip("thump_mc"+i, i+32); _root._x = i*75; _root.myLoader.loadMovie("5.jpg"); }
5
3699
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 for repeated html im using the external js, i mean the TOP, BOTTOM they are repeated in every page, so i include them as functions in the external js and call them. Why it doesn't work?
3
1966
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. But when user upload 10 MB size movie (.wmv) File, My browser screen is blank ,bcz the browser will start play the movie once the movie (.wmv) file is completely loaded in cache. I am trying to...
3
1839
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. So I made a seperate movie file and I have imported like this loadMovieNum("movie1.swf",101); Like this I have called all the 40 movies in 38 scenes. Then I have published this files it played upto 25 scenes then it is not playing the...
1
1824
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 implementing the "up" and "down" arrows. What i want is when a user mouses over the "up" button the boxes will start scrolling upwards, and vice versa for "down". So far i have this: onClipEvent(load){ lastbox = getProperty(_root.Box12, _y)...
1
4324
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 map in the other swf file should show some transion like Blinking. I formed a movieclip of such transion in the map file. Now how can i call that movie clip from the menu swf file. i want to add that code in the body of on(release) function against...
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10370
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8995
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2896
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.