I’ve been burning my mind with this problem for almost a month getting closer with every attempt to right the wronga, but now i’m at a dead stop.
I want to open external .swf movies by clicking buttons on my menu for a full flash site.
My buttons work, displaying in the proper place and opening the right movie…BUT the movie plays regaurdless of button press in the wrong spot! Then when i click my button, the movie disapears and plays in the RIGHT spot! So how do i keep it from playing or even showing itself til button press?! Lol
on (release) {
_root.Instance.loadMovie(“homeContent.swf”);
}
It’s just a basic flash menu with clickable buttons. On the left side of the screen. I put my code onto button to run imported swf to the right side of the menu instead of opening a url. But the swf plays before i even click the button. How do i stop that so it doesn’t even show up until it’s button is clicked?
And everyone keeps saying use the gotoandplay commands. If i do that, it’s not a full flash site, it’s just ONE swf for the entire site. Not my goal. All of the content in my site is .swf files rather than pages and urls. Site example, menu. www.free.hostultra.com/~Viral When you click a button an swf should open to the side! Right? Well, it does when you click the button, only it’s still playing BEFORE i press.
is it possible that you have an action where it doesn’t belong?
because if you had accidently pur the “_root.Instance.loadMovie” script somewhere on the screen where it doesn’t belong, it might happen that it plays without clicking the button…
just one possible explanation, i don’t know too much about flash, but what i’m telling you is what i’ve done (intentionally, in this case )so that my page loads its news window right when it’s started ^^
try to check you layers, your objects and everything if there’s a wrong action hidden somewhere
Here is what you need to double check. Click on the button where you want this AS and check if the property bar is showing that button’s property… (instance name, symbol type etc…)
When you can see this press F9 and put your AS here. Some times your buttons is highlighted and still it’s not on actual button… The same code that you got outside button will load swf when movie loads.
:diss: No…And even to make sure it wasn’t a flaw in my work, i just simply started a new document. Made a button. Set code on button. Inserted blank clip. Dragged the external clip to stage. Set instance names. Still, same thing. It plays when movie plays.
I’m working this new document on one single layer. Button, empty clip and swf. Cause when i tried to drop the swf into the empty clip rather than stage i got nothing at all. Any other suggestions? Please? lol…God i hope i just did something wrong and easy to correct so i can just finish my site! lmao.
So forget the menu. We’re working with one button. One action.
I also get this error when i preview in flash. Regaurdless of the fact it still plays when movie starts, but button press gets this error.
How are we supposed to fix anything if you wont give us a .fla to look at? We can’t fix what we don’t know what is broken. God I hate posts like this. “Some one please help me! I dont know what to do! But I can’t show you what is broken”. :sigh:
What the hell do i need to show? It takes literaly 5 seconds to make a button and add a code to open a .swf! I’m not being rude, i just have an over active personality so excuse me if that came off as rude. lol.
Not to be mean, but I think you need to do some extremely basic tutorials to get the concept of loading external swfs. You have the tester swf in the library, thats not external. You could how ever use attachMovie to place the tester movieClip on the stage if you want to keep it in the library.
Tutorial for you. Clicky click
Hey that’s the same tutorial that told me to put swf in library and drag it to the stage! Now it’s saying just drag the blank one! Maybe it changed it’s mind! LMAO. I’m sorry, lmfao…i misunderstood it. Alright, but still got a problem, only now i know it’s not me doing something wrong.
So, as i now understand you have button and blank mc on stage. STOP? That’s it? (Well after adding code and instance name of blank mc)
I don’t touch or even refer to the .swf i need it to load? Cause if so, i keep getting this error.
^---Too many slashes! ...right? How the hell do I fix that? (That comes up in the flash player debugger version by previewing in flash) Outside of flash i click the button and nothing happens. So i tried in flash and now know why, that error. WtF?! :D
LMFAO, I DIDN’T HAVE THE .SWF IN THE SAME FOLDER AS THE .FLA!!! LMGDMFAO!!! HOLY **** I’M STUPID. Lmao, oh…my…god…LMFAO. I HAD IT RIGHT SINCE DAY ONE!!! I’m just retarded and just kept trying to keep ther .fla in one folder and .swf in another!!! LMAO. Jesus, man…i’m so sorry.
lol… hey u got it man that more important…I know the joy u might be feeling rite now. I have done worse then this.
My short story:
I went to cash machine put me card and pin in asked for £20… card came out I took and went to corner shop to buy some drink… found no cash on me which is when i remembered that I have forgotten money in machine. I left from cash maching even before money came out… how stupid is that? eh?..
Lmao…Wow. I would have tried my best to kick myself in the ***, lmao. I’m having another complication, but i’m pretty sure I can handle this one. My clips play perfect, right spot right time…The problem is when they’re put into dreamweaver and made into the index, they play…but behind a black wall?! Lmao. It plays to the right of the menu, but you can only see a corner, they’re behind a wall of black. Only thing in my html file is the menu itself. Only thing on the .fla is the menu itself, so i have no idea where this “Wall” comes from. But, the hard part is over, lmao.