PDA

View Full Version : Can i control DW with Flash BTNS in a SWF ?


Chapo
11-01-2008, 05:10 AM
I made a 3 pages in DW to make a test. They were called index.html, two.html and three.html. But i made a flash file with 3 buttons with an action in each one. Every button corresponds to every .html page in DW, so it will navigate through the 3 pages. It works in the Flash Player, but not in DW. When i preview it in DW i see the SWF and the buttons, everything works, but when i click them, nothing happens, it doesn't navigate like its suposed to do.

I understand if i give the correct actions this should work properly, every button corresponds for index.html, two.html and three.html.

What could be wrong ?

Ricky55
11-01-2008, 07:37 PM
of course this can be done.

It might need to be on a server to work, upload them and try again. This is of course very easily done.

The only other thing is paths, if your FLA files are stored in a separate folder then when you insert the swf into a file in the root folder the path needs to be from where the HTML file reside not the swf. If they are all in one folder it won't be this, it will be the server issue.

Ricky55
11-01-2008, 07:39 PM
in fact it will need to be on a server to work, upload them and try again. When previewing from within Flash you get different access to the Flash Player than you do from outside of Flash.

Chapo
11-02-2008, 05:30 AM
Ricky...it worked out great about trying it again in the server... i'm going to vote for you for President...!!!!!.. now i'm going to try about the swf object you talked about..!!!! thanx... 2 weeks of headach is over

Chapo
11-02-2008, 05:53 AM
Do i have to download the SWF OBJECT, where can i find it ?

Do i have to build again a flash site to be completly SWF OBJECT ?

Chapo
11-02-2008, 06:03 AM
OK, i downloaded the file.. but how do i install it or use it ?

Ricky55
11-02-2008, 02:58 PM
Easiest way is to use Dreamweaver CS4, if thats not possible then follow these instructions: You don't install swfobject its just a javascript file that you use the embed swf files.

1. Download a copy of swfoject, and copy the file swfobject.js into a folder within your site, name this folder scripts
http://code.google.com/p/swfobject/


2. Now download the HTML generator from the same place
http://code.google.com/p/swfobject/

Select the swfobject_generator1_1html.zip

Unzip this and open the HTML generator file, input your info and click generate to get the code, insert the code into your HTML page.

There's an excellent video tut here for using swfobject

http://www.gotoandlearn.com/

Scroll down to this video
Embedding Flash with SWFObject 2.0

Chapo
11-03-2008, 02:29 AM
Thanx Ricky....

Chapo
11-03-2008, 07:01 PM
Do i also need Flash CS 4 to create an sfwobject or with just DW CS 4 its ok ?

Ricky55
11-03-2008, 07:41 PM
No just Dreamweaver CS4. It's just the way Adobe have decided to change things, now when you click the insert Flash button from within Dreamweaver, it uses swfobject.