Forums

This topic is locked

Flash links in Dreamweaver CS3

Posted 13 Jul 2008 13:27:35
1
has voted
13 Jul 2008 13:27:35 Tom Smith posted:
--------------------------------------------------------------------------------
Hi,

I am extremely new to creating websites, I knew nothing three weeks ago. The site I have built is www.alecq.com the problem I am having is that after much trouble I managed to create a button in flash CS3 and export it to Dreamweaver CS3. The links work, however when pressed they open in a new window. How can I do this so that when a link is pressed it opens in the same window.
I hope this makes sense. Below is the code I used in Flash for one of the buttons:

import flash.events.MouseEvent;
var getportfolio:URLRequest = new URLRequest("Untitled Document";
addEventListener(MouseEvent.CLICK,pclick);
function pclick(event:MouseEvent):void{
navigateToURL(getportfolio);
}

I will now show the relevant code from dreamweaver:

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="download.macromedia.com/pub/s...rsion=9,0,28,0" width="62" height="27" title="About Alec Quinton Male Model Bristol">
<param name="movie" value="Buttons/About.swf" />
<param name="quality" value="high" />
<embed src="Buttons/About.swf" quality="high" pluginspage="www.adobe.com/shockwave/downl...ShockwaveFlash" type="application/x-shockwave-flash" width="62" height="27"></embed>
</object>

I would be so very grateful of some help, please keep it simple though, my knowledge is minimal! Many thanks in advance.


Replies

Replied 01 Aug 2008 15:00:51
01 Aug 2008 15:00:51 Miroslav Zografski replied:
Hi Tom,

Here is your code:
<pre id=code><font face=courier size=2 id=code>
import flash.events.MouseEvent;
var getportfolio:URLRequest = new URLRequest("Untitled Document";
addEventListener(MouseEvent.CLICK,pclick);
function pclick(event:MouseEvent):void{
navigateToURL(getportfolio, <b>'_self'</b>;
}
</font id=code></pre id=code>

Regrads,


M.Zografski

-----------------------------------
DMXZone.com Support Team
-----------------------------------

Reply to this topic