| Author |
Creating a button in flash and importing into
|
|
| syl2us 2007-01-10, 6:38 pm |
| 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.
| |
| Darr_darshan 2007-01-10, 6:38 pm |
| minimize your stage size from properties menu of flash to size of your button
| |
| beliy333 2007-01-10, 6:39 pm |
| 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?
thanks
| |
| aniebel 2007-01-10, 6:39 pm |
| 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");
};
| |
| beliy333 2007-01-10, 6:39 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?
| |
| beliy333 2007-01-10, 6:39 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?
| |
| aniebel 2007-01-10, 6:39 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?
| |
| beliy333 2007-01-10, 6:39 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?
| |
| aniebel 2007-01-10, 6:39 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)
| |
| beliy333 2007-01-10, 6:39 pm |
| lol, thanks.
| |
| aniebel 2007-01-10, 6:39 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");
};
| |
| beliy333 2007-01-10, 6:39 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?
| |
| beliy333 2007-01-10, 6:39 pm |
| lol ok I put the wrong instance name lol. BUt now it opens but it says "this page cannot be displayed"
Can i make it to open the actual page?
| |
| beliy333 2007-01-10, 6:39 pm |
| did it open the blank page for uou or did it just open a page that ready, cannot display....?
| |
| aniebel 2007-01-10, 6:39 pm |
| 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
| |
| beliy333 2007-01-10, 6:39 pm |
| thanks for all your help man. I got it and know I know hot to do it! Thanks you,
hey do you use dreamweaver?
thanks
| |
| aniebel 2007-01-10, 6:39 pm |
| You're welcome! Yes, I use Dreamweaver.
| |
| beliy333 2007-01-10, 6:39 pm |
| Do you think you can helkp with something. I cant get my site centered on all screens. IVE BEEN TALKING TO THE DREAMWEAVER FORUM PPL AND THEY JUST ARGUE BOUT IT BUT NO ANSWERS. CaN u hElP mE?
| |
| aniebel 2007-01-10, 6:39 pm |
| Have you searched the forums? That particular question has been asked a lot so I am sure you'll find an answer. Try the Actionscript forum here.
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |