Is there Flash in this code??? Log Out | Lost Password? | Topics | Search
Contact | Register | My Profile | SO home | MOL home

M-SO Message Board » Technology & The Internet » Archive through July 24, 2005 » Is there Flash in this code??? « Previous Next »

  Thread Originator Last Poster Posts Pages Last Post
  ClosedClosed: New threads not accepted on this page          

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

composerjohn
Citizen
Username: Composerjohn

Post Number: 298
Registered: 8-2004


Posted on Thursday, May 26, 2005 - 9:32 am:   Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)

Hi. Is there any flash in this code (it's for a rollover)? I am paying someone to do a flash rollover for me, and it seems to my untrained eye to be simple javascript. I'm not an expert, though... Thoughts??

<html>
<head>
<title>homerev</title>
<meta>
<!-->
<script>
<!--

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
homerev_01_over = newImage("images/homerev_01-over.gif");
preloadFlag = true;
}
}

// -->
</script>
<!-->
</head>
<body>
<!-->
<a href="#"
onmouseover="changeImages('homerev_01', 'images/homerev_01-over.gif'); return true;"
onmouseout="changeImages('homerev_01', 'images/homerev_01.gif'); return true;"
onmousedown="changeImages('homerev_01', 'images/homerev_01-over.gif'); return true;"
onmouseup="changeImages('homerev_01', 'images/homerev_01-over.gif'); return true;">
<img></a>
<!-->
</body>
</html>
Top of pagePrevious messageNext messageBottom of page Link to this message

Dave
Supporter
Username: Dave

Post Number: 6503
Registered: 4-1997


Posted on Thursday, May 26, 2005 - 9:39 am:   Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)

There is no Flash in there. A flash file would be embedded within OBJECT tags, like this:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="600" height="320">

<param name="movie" value="swf/flashmoviename.swf">
<param name="quality" value="high">
<embed src="swf/flashmoviename.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="320"></embed></object>
Top of pagePrevious messageNext messageBottom of page Link to this message

Rick B
Citizen
Username: Ruck1977

Post Number: 729
Registered: 8-2003


Posted on Thursday, May 26, 2005 - 10:32 am:   Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)

agreed, a little bit of html and a lot of JS.
Top of pagePrevious messageNext messageBottom of page Link to this message

composerjohn
Citizen
Username: Composerjohn

Post Number: 299
Registered: 8-2004


Posted on Thursday, May 26, 2005 - 10:58 am:   Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)

thanks guys for the help.
Top of pagePrevious messageNext messageBottom of page Link to this message

Oliver
Citizen
Username: Oly

Post Number: 4
Registered: 4-2005
Posted on Thursday, May 26, 2005 - 12:59 pm:   Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)

none of my business, but I'm confused why it would matter if it was flash vs js. If anything, the js will work almost anywhere while flash will require a not-always-installed plugin. Plus a typical js rollover button will still work as a button if js is off on the client.

FWIW, I'd prefer js for navigation areas (which I assume the rollovers are for) to make sure my site is accessible.

just my 2c
-Oliver
Top of pagePrevious messageNext messageBottom of page Link to this message

Rick B
Citizen
Username: Ruck1977

Post Number: 735
Registered: 8-2003


Posted on Thursday, May 26, 2005 - 3:31 pm:   Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)

I agree, I never was a fan of flash, though it can be done really well. I guess I just never got into developing flash, it seemed so gimmicky.
Top of pagePrevious messageNext messageBottom of page Link to this message

kevin
Citizen
Username: Eloso

Post Number: 45
Registered: 12-2004
Posted on Friday, May 27, 2005 - 11:27 am:   Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)

Guys,
I think it is a question of scale. If you are delivering a small app to a large audience (ie navagation for a page) scripting is better. If you are delivering a large complicated app to a select audience (ie online training) than flash is better. It just depends on what you are trying to do.
Top of pagePrevious messageNext messageBottom of page Link to this message

kevin
Citizen
Username: Eloso

Post Number: 46
Registered: 12-2004
Posted on Friday, May 27, 2005 - 11:32 am:   Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)

Guys,
I think it is a question of scale. If you are delivering a small app to a large audience (ie navagation for a page) scripting is better. If you are delivering a large complicated app to a select audience (ie online training) than flash is better. It just depends on what you are trying to do.

Topics | Last Day | Last Week | Tree View | Search | User List | Help/Instructions | Credits Administration