all groups > macromedia flash sitedesign > december 2006 >
You're in the

macromedia flash sitedesign

group:

Creating a button in flash and importing into dreamweaver


Creating a button in flash and importing into dreamweaver syl2us
12/28/2006 9:10:49 PM
macromedia flash sitedesign:
Hi,

I have a button created in flash as a .swf, I have the animation with the
rollover and everything. Now I am trying to import this into my website in
dreamweaver. but when I import the button and only want the button...the stage
gets imported too. so its the button surrounded by a huge amount of white
space. How do I eliminate the stage?

Thanks guys.
Re: Creating a button in flash and importing into dreamweaver Darr_darshan
12/30/2006 12:10:04 PM
minimize your stage size from properties menu of flash to size of your button
Re: Creating a button in flash and importing into dreamweaver beliy333
1/3/2007 5:45:07 AM
HI, i did the same thing and im making a band website. I just made the stage smaler. but i have another problem. How do you link a flash file in Dreamweaver? Can you plz help me?


Re: Creating a button in flash and importing into dreamweaver aniebel
1/3/2007 11:48:21 AM
I think "getURL" might be what you are looking for. In your FLA:




my_btn.onRelease = function(){
getURL("http://www.mydomain.com/mypage.html", "_self");
Re: Creating a button in flash and importing into dreamweaver beliy333
1/3/2007 3:30:29 PM
thanks abiebal but do you have to have your pages already on the web then in
order to link the nav. bar to them right? Ort can you make links from
navigation bar without having the pages uploaded to the internet?
Re: Creating a button in flash and importing into dreamweaver beliy333
1/4/2007 7:34:54 PM
In flash i put the action scipt. geturl.....does this mean that in order to link these buttons, I already have to have my pages on the net?
Re: Creating a button in flash and importing into dreamweaver aniebel
1/4/2007 8:18:56 PM
Well, if the pages aren't there, there will be nowhere for it to go to but you
can certainly add the code to your Flash buttons. You'll just get an error if
you click on it since the page won't be there.

Did I understand your question or did I state something you already knew?
Re: Creating a button in flash and importing into dreamweaver beliy333
1/4/2007 9:12:37 PM
got it right, but i mean right now in Dw you can add a link to any text or
whatever and you dont have to have the whole site up on the net but the links
still work wen ur site isnt up on the net. So can you make the flash btutton go
to a link like "C:\Documents and Settings\Mike\Desktop\flash
projects\everfound\videos"


you know what i mean?
Re: Creating a button in flash and importing into dreamweaver aniebel
1/4/2007 10:02:50 PM
Erm... don't think so because of sandbox security issues but I'm not positive.
I don't want to chime in on this without doing a bit more research myself. I'll
see what I can find. (it seems we'll both learn from this one)
Re: Creating a button in flash and importing into dreamweaver beliy333
1/4/2007 10:05:09 PM
Re: Creating a button in flash and importing into dreamweaver aniebel
1/4/2007 10:34:17 PM
Ok, check it out...

I made a dummy html page one level above the directory containing my my SWF
and here's how I opened a new page in the browser...

on the main timeline:


urlButton_btn.onRelease = function(){
getURL("../test.html", "_blank");
};
Re: Creating a button in flash and importing into dreamweaver beliy333
1/4/2007 10:49:07 PM
hey man i don't get. So look at my situation.

I created flash buttons and imported them into DREAM WEAVER. I cant add a link
to them in DW so I have to do it in flash. My flash button is a in a folder.
"buttons" I made a blank html page in a folder above buttons. And i put in
that action script and in the quets i put in "C:\Documents and
Settings\Mike\Desktop\flash projects\everfound\all flash\test" test is the
blank html page.

Than i import this button to dreamweaver and preview my site in browser. I
click My button and the blank html page doesnt open.


DId i do something wrong?
Re: Creating a button in flash and importing into dreamweaver beliy333
1/4/2007 10:52:41 PM
lol ok I put the wrong instance name lol. BUt now it opens but it says "this page cannot be displayed"

Re: Creating a button in flash and importing into dreamweaver beliy333
1/4/2007 11:16:09 PM
Re: Creating a button in flash and importing into dreamweaver aniebel
1/5/2007 1:16:49 AM
Try and make the location of the file relative to the flash file. In other
words, the script inside the SWF is looking for something. How does it travel
to the place it's looking for. If it's in a folder titled buttons and the HTML
page you're linking to is in the next folder above that then you'd tell it to
get there by using "../test.html"

See this zipped file I've made for you
http://www.doubleplusgooddesign.com/navButton.zip
Re: Creating a button in flash and importing into dreamweaver beliy333
1/5/2007 5:13:31 AM
thanks for all your help man. I got it and know I know hot to do it! Thanks you,

hey do you use dreamweaver?

Re: Creating a button in flash and importing into dreamweaver aniebel
1/5/2007 12:32:57 PM
Re: Creating a button in flash and importing into dreamweaver beliy333
1/5/2007 9:30:32 PM
Re: Creating a button in flash and importing into dreamweaver aniebel
1/6/2007 7:31:33 PM
AddThis Social Bookmark Button