Home › Forums › Archives › Computer Support › Computer Support Discussion › Can a Flash Button open a New Window with a Preset Size?
- This topic has 6 replies, 3 voices, and was last updated 19 years, 12 months ago by
imported_TakODa.
-
AuthorPosts
-
March 7, 2006 at 3:02 pm #22025
imported_TakODa
MemberI’m trying to figure out if there’s any way to open a new window with a preset size using a Flash button. I can do this with a regular text or image link. For example:
Click here to View a Map of the Area
I don’t see where in Dreamweaver that there’s an option to edit any attributes of a Flash button besides what it links to when you click it and the target where the link will open.
Does anyone have any ideas about how to do this? :woot:March 7, 2006 at 3:38 pm #139615DrBroccoli
ParticipantIf you can’t edit the flash in Dreamweaver…. edit it in Flash?
March 7, 2006 at 3:43 pm #139617imported_TakODa
MemberYes, that thought did occur to me just now, so maybe I’ll try that. Thanks for your advice!
March 7, 2006 at 6:04 pm #139616DrBroccoli
ParticipantLol, sometimes it takes someone on the outside to realize something so obvious, you know? You get so stressed that the easiest answers just seem to elude you.
March 7, 2006 at 9:36 pm #139618imported_TakODa
MemberYes, I totally agree! Sometimes you have to step out of the forest just to find the one tree you were looking for – step outside the box. The only problem is that I just realised that I don’t have Flash installed anymore, but I figured out that you can assign behaviors to a Flash button with Dreamweaver.
So I plugged in a onClick attribute to the object tag telling the browser to open a new window of a specific size that has no scrollbars and is not resizeable:
That didn’t work, so I decided to try plugging in the same onClick attribute code into the embed tag instead of the object tag, like this:
That didn’t work either. And I tried both of these options with Internet Explorer and Firefox, so I’m pretty sure that it can’t be a browser issue.
So I thought to myself: Maybe if I remove the link and target from the box that comes up to edit the Flash button when you double click on it, then one of these two code options might work for me. Maybe there’s something about that that’s overriding the code.
That didn’t work either. So now I’m really confused. Maybe I’ll have to go ahead and reinstall Flash and edit the button itself in Flash. I don’t know.
March 7, 2006 at 10:19 pm #139614Spike
MemberTåkØÐã wrote:onClick=”MM_openBrWindow(‘gallery1.html’,”,’scrol lbars=no,resizable=no,width=700,height=500′)”I don’t think it helps much to have that space in there, although I know that’s not the source of your problems.
Maybe try making a function in JavaScript and then inside the function, have the popup window? The “onClick” Event might take better to that.
Also, in one of your earlier posts with just the a href, don’t point it to anything if you’re having an onClick event with a popup. Also, you really don’t need to return false. The href for that a tag should have been # so the end result would have been:
Try that.
March 7, 2006 at 11:39 pm #139619imported_TakODa
MemberThere’s no space in onClick=”MM_openBrWindow(‘gallery1.html’,”,’scrollbars=no,resizable=no,width=700,height=500′)” in my code, only when I paste it here for some reason. That’s puzzling.
There’s also no space in <object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" I just put it there on this post because whenever I put D immmediately after : I get a smiley face.
Well, I took the Flash button off the page for now and I’m just opening the new page with a regular graphic rather than a flash button. It works like that.
For example: http://www.geocities.com/yotaketonka/testsalon/gallery1.html
I’ll have to check the Macromedia site and see if there really is a way to do this in Dreamweaver without reinstalling Flash.
Thanks for all your feedback, guys. Have a good day!
-
AuthorPosts
- You must be logged in to reply to this topic.