How do I make Button Open new window in flash?

This is a discussion on "How do I make Button Open new window in flash?" within the Flash & Multimedia Forum section. This forum, and the thread "How do I make Button Open new window in flash? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 25th, 2008, 04:39
New Member
Join Date: Jan 2008
Location: adeladie
Age: 25
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy How do I make Button Open new window in flash?

Hi every one,

i have this modelling site im working on, and when you click on photo i want to open a new window with the girls profile in it. but i dont want a new IE window, just a little flash movie, i tried ..

"on (release) {

//load Movie Behavior
if(this == Number(this)){
loadMovieNum("TWtester.swf",this);
} else {
this.loadMovie("TWtester.swf");
}
//End Behavior"

and it goes to that swf file, but its not in NEW window? does this make sense to any one?
Reply With Quote

  #2 (permalink)  
Old Feb 25th, 2008, 13:20
New Member
Join Date: Feb 2008
Location: Malaysia
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zekechan Send a message via Yahoo to zekechan
Re: How do I make Button Open new window in flash?

Based on your script, I would assume you just want to load a movie so that it overlaps the current playing movie rather than opening a new window.

Here's how you can do that using levels ( or layers ):

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

The number 1 in the above script is the "layer" or the level that you load the .swf file into. The higher the number the nearer to the front of your screen it will be. For example, level 10 will be on top of level 1. If you need to use that level, for example telling TWtester.swf to gotoAndPlay at frame 10, you would use this script:

_level1.gotoAndPlay ( 10 ); // for level 1
_level5.gotoAndPlay ( 10 ); // for level 5

Here is another method that uses a movieclip:
1) Create an empty movieclip and drag it onto the stage.
2) Select the movieclip and give it an instance name in the properties panel. Example: myMovieClip
3) Now add the following script on your button:

on ( release ) {
myMovieClip.loadMovie ( "TWtester.swf" );
}

Personally I prefer to use the movieclip method as it is easier to move the movieclip around manually to adjust the position of the loaded .swf file.
Reply With Quote
  #3 (permalink)  
Old Feb 27th, 2008, 07:18
New Member
Join Date: Jan 2008
Location: adeladie
Age: 25
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How do I make Button Open new window in flash?

hey that worked!
ok so what im trying to achieve .. is this paricular effect i have seen ( but now fail to find a site to use as an example) so its usually used in gallery's, so you have your pictures, and each one you click on, it will appear in the same way the code above has done, however ive seen it where it comes up with a flash load screen behind it? and the background ( site) fades out.

any ideas?

oh and im also trying to put a small button to close this new layerd window too.?

*trying to find an example..

Last edited by bunnyface; Feb 27th, 2008 at 07:26.
Reply With Quote
  #4 (permalink)  
Old Feb 27th, 2008, 07:41
New Member
Join Date: Feb 2008
Location: Malaysia
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zekechan Send a message via Yahoo to zekechan
Re: How do I make Button Open new window in flash?

I'm guessing what you are looking for is something like this site that I did sometime last year

http://www.i-talk.com.my/

Click on the celebrate & win winners experience logo on the top. Once the page loads, click on the photos tab. You will see a popup window appear with an image that loads dynamically.

Is this what you are trying to achieve?
Reply With Quote
  #5 (permalink)  
Old Feb 27th, 2008, 21:41
New Member
Join Date: Jan 2008
Location: adeladie
Age: 25
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How do I make Button Open new window in flash?

thats exactly it , the one i had seen , the new window or layer seemed to grow, so as it appeared it grew to its display size. but thats pretty much it- thats what im trying to achieve.. also great site btw- and i love that little character. soo cute.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open another new window from javascript window thehermitage JavaScript Forum 10 Jan 27th, 2008 19:42
Change open in new window to open in same window nsr500rossi JavaScript Forum 2 Jan 18th, 2008 14:13
[SOLVED] open new window from main window AdRock Other Programming Languages 1 Nov 1st, 2007 02:45
Need Flash Button help. Open new page ClemsonTigerACC Flash & Multimedia Forum 3 Sep 23rd, 2007 00:16
Open a new window pokerskatershark JavaScript Forum 4 Mar 17th, 2006 19:25


All times are GMT. The time now is 01:53.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43