View Full Version : need serious help
Audrius
January 22nd, 2003, 12:23 AM
hey guys
here is the issue I am having:
I have a button in my main movie and after it is pressed i want for it to open a pop up window right next to this button with some information in it.
I have a email button so when you click on that button I want another window to open right next to this email button with my email address.
do you think its possible in F MX
thanks everybody
lostinbeta
January 22nd, 2003, 12:48 AM
Create your window. Turn it into a movie clip symbol. Give it the instance name "eMail" (no quotes).
Double click it to edit it.
Click and drag the first frame so it is in Frame 2.
Put a stop() action on frame 1 and on frame 2.
On your button add these actions..
on (release) {
_parent.eMail.gotoAndStop(2);
}
Then if you want to close it you can add a button inside your clip that has an x or something and use these actions on that...
on (release){
_parent.gotoAndStop(1);
}
Audrius
January 22nd, 2003, 01:08 AM
thank you so much everything worked great except now i have another problem:
well I have a main movie.swf with some buttons only. when i click on button1 it opens external.swf and if I click on button2 it opens and replaces externalmovie2.swf so if I click on button 3 which loads externalcontact.swf and inside that externalcontact.swf there is a button you helped me to do, and this button doesn't open a little pop up window the one you helped me to create. but when i test that externalcontact.swf it works fine but when i load that externalcontact.swf into my main site it doesn't work at all.
lostinbeta
January 22nd, 2003, 01:11 AM
My mistake in the code above.. change _root to _parent.
I meant to have both as _parent.
PS: Why do you e-mail me with your reply every time you reply? I get an e-mail automatically from the forum when you reply anyways.
fixed code above
Audrius
January 22nd, 2003, 01:14 AM
sorry about that replay thing I wasn't sure you get emails from forum
Thanks for helping me it works really well
lostinbeta
January 22nd, 2003, 01:16 AM
No problem, I am glad I could help :)
Audrius
January 22nd, 2003, 01:28 AM
well I changed _root to _parent and for some reason it didn't work but then I changed back to _root it works fine except when i load that movie into another movie it doesn't work either,
here is what I am working on
I am buiding a web site in Flash MX, I have five external swf's and one main swf which is called "navigation.swf" so when i load email.swf(the one you just helped me with) into navigation.swf and it doesn't work
but then when i test email.swf in Flash MX it works just fine
lostinbeta
January 22nd, 2003, 01:29 AM
When you changed it to _parent, did it work when you loaded it in?
Audrius
January 22nd, 2003, 01:31 AM
nope it didn't
lostinbeta
January 22nd, 2003, 01:37 AM
on (release) {
_parent.eMail.gotoAndStop(2);
}
to open the menu and
on (release) {
_parent.gotoAndPlay(1);
}
to close it.
It works great for me. Are you sure your instance names are correct?
Audrius
January 22nd, 2003, 01:53 AM
Why it’s not working for this SWF works fine when I open it separate but when I incorporate it into another movie it freaks out
Maybe there is something to do with my main movie buttons they also load other swf's as _parent
my each button has this code:
on (release) {
_parent.contents.loadMovie("about.swf");
}
and so on
lostinbeta
January 22nd, 2003, 01:54 AM
Did you remember to save and publish your new .swf file?
Audrius
January 22nd, 2003, 01:55 AM
yes i did
lostinbeta
January 22nd, 2003, 02:03 AM
Well dude... I mentioned everything I could think of. Check the attachment, it has all the files I used. The file that uses loadMovie() is called loadContainer.
There is only one thing I can think of now... are you using loadMovie() or loadMovieNum? If is is loadMovieNum, then change the _parent on the button to open it to _level# (where # is the # of the level you are loading the movie to).
Note: Requires MX to open.
lostinbeta
January 22nd, 2003, 02:40 AM
Nope, doesn't work. I have to go really soon and I might not be on for two days so can you rush with the .flas?
I don't want to rush you, but I have to....lol.
Audrius
January 22nd, 2003, 02:44 AM
I can't upload Fla's since my fla's are a little too big even after i cleaned library
did you get any ideas
lostinbeta
January 22nd, 2003, 02:48 AM
No clue man. Everything I thought might be wrong was stated before.
Are you using loadMovie() or loadMovieNum()?
Audrius
January 22nd, 2003, 02:48 AM
u see what Im saying man
i know man it;s kinda late i will try to catch u in a couple of days
thanks for helping
Audrius
January 22nd, 2003, 02:49 AM
load MOvie()
lostinbeta
January 22nd, 2003, 02:51 AM
Oh ok. Because if it was loadMovieNum() it would have given us the option of changing it to _leve# instead of _parent.
But nope, that option is out now and now I am out of options altogether.
Goodnight man. Sorry I couldn't help more with your problem, but I have to be up in like 4 hours :beam:....lol.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.