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!

loadMovie problem

Status
Not open for further replies.

CUBALIBRAS

Technical User
Jan 31, 2003
64
US
ok, I've read a lot on here an there are some very knowledgable people here so I'm hoping you can help me.

I am no expert in flash (I'm using MX)so I'll try to be accurate for you.

I have a page named index, and as this is loading I've placed action script in the timelime to load a swf into level 1

loadMovieNum("homepage.swf", 1);

this works fine, so does the stop action at the end of the timeline.

I then have buttons which have been converted to button symbols, one of which is named services. I then try to attach the loadmovie action to this, but when i run the movie by using either ctrl + enter or the swf published but it won't work. Here is the code

on (release) {
loadMovieNum("services.swf", 1);
}

I noticed that the 'a' that denotes the action is attached to the frame does'nt appear but when I go away and click on the services button and open action script, it states Actions - Button (actions for services).

This has happened before, I read that by entering level 1 the new movie would 'kick out' the current movie.

All the fla, swf, and html reside in the same folder.

What am I doing wrong ???

Thanks in advance
 
It should work? Do you have a main movie in which these external movies are loaded on level 1?

Regards,

cubalibre2.gif
 
Yes I think so !

Unless I've set up my main movie incorrectly or not named it properly. I set up a New page which I named index. On this page loads my logo, company name and butons which I want to remain at all times.

The rest of the page loads after the above due to action script telling it to load another page I made named homepage. I read that if I didn't change the default level from '0' then it would take the place of my index, but by placing it at level 1 then this would 'overlay' it, which it does.

One thing I've tried this morning is to place a button on my 'homepage' which loads into level 1, with action script to tell it when clicked to load services.swf into level 1 and low and behold it works. But why doesn't it work from my navigation buttons??? does this mean i have to place buttons on every seperate swf page which is very time consuming or is there a better way??

Thanks again

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top