Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Site Design / October 2007



Tip: Looking for answers? Try searching our database.

pop up flash window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
aseretY - 30 Aug 2007 02:16 GMT
Hi all,

I am new in Flash. Does anyone know how can I do a pop up a graphical window
in flash? i.e. the title bar, scroll bar, close window button, etc... are the
graphic picture that I can put? Thanks a lot!
.:}x-=V!P=-x{:. - 31 Aug 2007 00:48 GMT
huh? please explaing clearer!
kc_addy - 31 Aug 2007 09:02 GMT
you can design your own and wrap it up to be your pop up window for the whole
swf movie or you can use the built in pop up window with a few pimps on the
graphic.

---------------------

http://www.travelguidesdirectory.com - one of my inspirations in using flash
aseretY - 04 Sep 2007 03:42 GMT
oh.....Can I know how can i do the built in pop up window with a few pimps on
the graphic as you mention about?
is that using layer to do that kind of thing?
Thanks for helping me. Thta's really urgent for me.
ajraw - 09 Sep 2007 17:35 GMT
to make a popup window in flash you can use the visibility feature on the
movieclip where the window is stored like this

_root.popup_mc._visible = true;

and to close it just make a button where the coding in the onRelease is

_root.popup_mc._visible = false;

thats the easy part now the hard part is getting everything to look how you
want in photoshop or whatever image creation/manipulation program you are using
Xibit Studio - 10 Sep 2007 09:08 GMT
pop up windows come in 2 flavor's ...flash & action-script ....or Javascript
flash pop up (pop up movie clip).....is when a user clicks on a button

a window appears within the movie ...with some content ....they click on a
close button & it close's

or there is javascript pop window.....where a browser window opens ..at any
size you like
& if you like with-out scroll bars ...menu bars ..etc etc  

which 1 do you want !?

peace John
aseretY - 10 Sep 2007 09:16 GMT
Hi all,

Could I know the Flash pop up windows one? How can i do all the minimize and maximize function for the pop up window? I just know the way to do in javascript. Thanks you for helping!
Xibit Studio - 10 Sep 2007 11:12 GMT
lets assume you have created a button

so we will now create the window ..which is going to load in dynamically  ;o)
there is no point having it on the stage ...adding file size !!! ...until the
user actually click's the button
so just making it invisible ..is not an option here !!! ..at least not with me
;o)

okay .....take the rectangle tool & draw a box ...as big as you like  
place it on the stage ...where you want it show up ...write down or remember
the X Y coordinates

on a new layer ..create an invisible button that will act as the "close button"
give it an instance name of "close_btn"

& personally i & many other designers we use an "X" to mark the the close
button
so on another layer ..type an "X"

so you should have now 3 layers ...window , inv button, X  

now convert everything into a movie clip symbol ...name it "popup" ...do not
give it an instance name
& delete it from the stage
 
in the library.... right click on the popup symbol & select linkage ....select
export for action-script
look at the linkage name & remember it ! ...it will most likely say "popup"

add this code to the actions layer on the main timeline  

this.createEmptyMovieClip("container_mc",1);

yourmainbutton_btn.onRelease = function(){
    var t:MovieClip =
container_mc.attachMovie("popup","popup_mc",container_mc._level1);
    t._x = 300;
    t._y = 200;
    t.close_btn.onRelease = function(){
       t.removeMovieClip();
    }
}
aseretY - 11 Sep 2007 04:44 GMT
Oh....That's great! I have done a pop up window with close button in Flash. And
that's working. Thanks a lot! After that, could I also do the minimize and
maximize button for pop up window? and drag the whole pop up window by mouse to
different position? Thanks a lot for the kindly help..
Xibit Studio - 11 Sep 2007 10:30 GMT
yes you can attach a startDrag function ...to drag the window around ;o)
but i dont see the point really ! ..no serious designer actually uses the
startDrag function

unless they are creating drag & drop games or something like that  

peace John
aseretY - 12 Sep 2007 02:59 GMT
Hi, could you tell me how can i do a startDrag function to perform the drag & drop function in flash? I'm really very fresh in flash. Thanks a lot!
ajraw - 12 Sep 2007 18:52 GMT
are the windoes going to be resizeable???? if not then its easy to make a minimize button that calls the frame that starts the minimize animation
Xibit Studio - 13 Sep 2007 13:56 GMT
Hi aseret......i left you hung up ...clients !

so you have your pop up window movie clip .....drag an instance of it onto the
stage ....then create a new layer under the pop up window layer

& create a button .....a little box lets say !  ....covert to button symbol  
give it an instance name & hit  F9

& add this code

on (press) {
    this.startDrag(_parent.popup_mc.container_mc);
}
on (release) {
  stopDrag();
}

place the drag button beside the popup window ..on top ..where ever you like  
select the button & the pop up window ...convert to movie clip symbol

thats it ! ...a dynamic dragable pop up window ;o)

peace John
aseretY - 17 Sep 2007 09:27 GMT
Oh...my dearest John! You help me a lot! Finally I got that now.  Thank you so much! And thank you for anyone helping me too. All of you guys are so kindly~ Thanks!
lenrique21 - 29 Sep 2007 19:17 GMT
very easy!!! just go to

http://www.flashden.net?ref=luke

check it out!! Great files for 0.5 U$S!!!
Slideguy - 22 Oct 2007 16:40 GMT
Xibit,

Thanks for the information. I've been looking for this info for a while and
haven't found it. I am intersted in making this work in an existing slideshow
but I'm not having any luck.

I've got several text buttons which I would like to pop up windows. When I put
this actionscript in the actions line and test the movie nothing happens when
the button is clicked. I've substituted out "yourmainbutton_btn" for the
instance name of the button I'm using which is "TheSlides". Everything else is
the same.

I've done it exactly as you describe in a new flash document and it works
great. What could the problem be?
Slideguy - 22 Oct 2007 19:15 GMT
Also, I forgot to mention that I was able to make it work in my document by
dragging a button component to the stage and using that as the button. I'm
confused as to why the button I made won't work with this.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.