HighDots Forums  

Pop ups from link

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Pop ups from link in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alec2998
 
Posts: n/a

Default Pop ups from link - 07-13-2008 , 10:51 AM






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="http://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="allowScriptAccess" value="always">
<param name="quality" value="high" />
<embed src="Buttons/About.swf" quality="high"
pluginspage="http://www.adobe.com/shockwave/downl...ShockwaveFlash"
type="application/x-shockwave-flash" width="62" height="27"
allowScriptAccess="always"></embed>
</object>

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



Reply With Quote
  #2  
Old   
Alec2998
 
Posts: n/a

Default Re: Pop ups from link - 07-13-2008 , 11:27 AM






My page doesn't use frames, I haven't learnt those yet.

Everything works as intended except the links opening in new windows. I just
recieved this advice:

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://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="allowScriptAccess" value="always">
<param name="quality" value="high" />
<embed src="Buttons/About.swf" quality="high"
pluginspage="http://www.adobe.com/shockwave/downl...ShockwaveFlash"
type="application/x-shockwave-flash" width="62" height="27"
allowScriptAccess="always"></embed>
</object>

The new bits of script are:
<param name="allowScriptAccess" value="always">
allowScriptAccess="always"></embed>

I'll try it now, thanks for your time. Do these alterations mean anything to
you?


Reply With Quote
  #3  
Old   
Alec2998
 
Posts: n/a

Default Re: Pop ups from link - 07-13-2008 , 11:51 AM



No luck. Set allowscript to always in Dreamweaver and set as3 to navigateToURL(getportfolio, "_self");
Still opens in pop upss. What a nightmare. Do you believe this is unsolvable?

Reply With Quote
  #4  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Pop ups from link - 07-13-2008 , 12:27 PM



Quote:
My page doesn't use frames, I haven't learnt those yet.
Wait until you've been at it for 3 years to do that. It's not worth the
effort at this point.

Quote:
I'll try it now, thanks for your time. Do these alterations mean anything
to
you?
Only that you shouldn't use Flash buttons. Ever. Please reconsider this.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Alec2998" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
My page doesn't use frames, I haven't learnt those yet.

Everything works as intended except the links opening in new windows. I
just
recieved this advice:

object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://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="allowScriptAccess" value="always"
param name="quality" value="high" /
embed src="Buttons/About.swf" quality="high"
pluginspage="http://www.adobe.com/shockwave/downl...ShockwaveFlash"
type="application/x-shockwave-flash" width="62" height="27"
allowScriptAccess="always"></embed
/object

The new bits of script are:
param name="allowScriptAccess" value="always"
allowScriptAccess="always"></embed

I'll try it now, thanks for your time. Do these alterations mean anything
to
you?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.