PDA

View Full Version : problem with external links from a swf file


jo hanna
06-27-2007, 11:41 AM
Hello,

I have a Flash website which is embedded in Dreamweaver with some HTML attached to it. The site works fine, but somewhere in it are some external links and they don't work anymore. I used the geturl() command in Flash, so it should work, but it doesn't.

Can anyone help please ?
Thanks,

Jo.

davidj
06-27-2007, 01:43 PM
i need to see the actionscript and also where you assigned it.

did you assign it to a button or a keyframe. If its a keyframe you could be playing past it or not even playing it at all if your logic is incorrect. If its on a button (which it should be) where is it assigned to the button

domedia
06-27-2007, 01:59 PM
Moved to flash section 8)

davidj
06-27-2007, 03:29 PM
Moved to flash section 8)
must have an Inertial damper plugin installed

never felt a thing

jo hanna
06-27-2007, 03:43 PM
hello,

the code is assigned to a button and is called from the actions layer in the file.
(I'll attach the flash file in the next post, but i have to go and scale it down a bit first. )

what do you mean by "must have an Inertial damper plugin installed" ?

Jo.

jo hanna
06-27-2007, 03:50 PM
fla file with the buttons to external links

davidj
06-27-2007, 03:55 PM
what do you mean by "must have an Inertial damper plugin installed" ?

when Dom moved the post i never felt a thing. I would of expected some dizzyness but got nowt

jo hanna
06-27-2007, 04:02 PM
Oh i see. Well these things do tend to go very smoothly nowdays.

Any suggestions on the links problem, by the way ?

davidj
06-27-2007, 04:24 PM
i have had to wipe my machine as i am waiting for a new laptop for work. When i get flash installed i will check it out. Or if some one would be so kind and check that file out that would be really cool

domedia
06-27-2007, 04:36 PM
This is what the code looks like, I can't see what's wrong, but I'm no actionscript person either.
// setting button callbacks to link to the external websites
BG_btn.onRelease = function() {
getURL("http://www.british-gymnastics.org", "_self");
};
FIG_btn.onRelease = function() {
getURL("http://www.fig-gymnastics.com", "_self");
};
WMAGA_btn.onRelease = function() {
getURL("http://www.wmgymnastics.org.uk", "_self");
};
CH_btn.onRelease = function() {
getURL("http://www.caritahouse.com", "_self");
};
MIL_btn.onRelease = function() {
getURL("http://www.milano-pro-sport.com", "_self");
};

davidj
06-27-2007, 07:33 PM
is this one action script

or did you cut and paste into this post?

i advise that you assign the code to the button instance itsself.

select the button then press F9 (actionscript pad opens)

then add the required code...

notice the syntax difference...

onRelease {
getURL("http://www.british-gymnastics.org", "_self");
};

jo hanna
06-28-2007, 05:58 PM
i tried to assign it to the button instance itself, but it still doesn't work. It only works when you play the flash thing on its own, but when it is embedded in Dreamweaver it doesn't play ball.

paispais
07-03-2007, 03:52 AM
Are you still having trouble with this? I don't see a problem with your code or file. I loaded it onto my server and tested it in a browser, the buttons seem to work fine.

davidj
07-03-2007, 06:59 AM
nice one paispais

jo hanna
07-03-2007, 07:26 PM
yes, it is still not resolved. The problem isn't when you run the swf file on its own, that seems to work fine. It is when it is embedded in Dreamweaver that it stops working.

domedia
07-03-2007, 07:46 PM
ok, so the flash file is fine then. How do you embed it? (code)

chriskq
07-04-2007, 03:02 AM
make sure your testing the site on a web server, not inside dreamweaver preview plane.

jo hanna
07-05-2007, 10:22 AM
this is the embedding code in Dreamweaver :

<body>
<div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="website.swf" />
<param name="quality" value="high" />
<param name="salign" value="t" />
<param name="bgcolor" value="#666666" />
<embed src="website.swf" quality="high" salign="t" bgcolor="#ffffff" width="100%" height="100%" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
</body>

It seems to recognize the buttons when the mouse hovers over them, but they don't react.

davidj
07-05-2007, 10:29 AM
try uploading it to a server rather than run this locally

paispais
07-08-2007, 01:36 AM
It seems to recognize the buttons when the mouse hovers over them, but they don't react.


When was the last time you updated the flash media player in your web browser?

If its been awhile then go here for the latest update.
http://www.adobe.com/products/flashplayer/

davidj
07-08-2007, 11:46 AM
i think chris had it sussed

i reckon it was because it was being run locally