Validating websites with Flash content using SWFObject 2.0

This is a discussion on "Validating websites with Flash content using SWFObject 2.0" within the JavaScript Forum section. This forum, and the thread "Validating websites with Flash content using SWFObject 2.0 are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 3rd, 2008, 15:00
Junior Member
Join Date: Aug 2007
Location: Haverhill
Posts: 45
Thanks: 1
Thanked 0 Times in 0 Posts
Validating websites with Flash content using SWFObject 2.0

Hi Everyone,

I'm not quite sure this is the best forum to post this in. Basically I have a fairly straight forward site with a Flash movie containing a navigation system.

I have had the test version of the site working fine with Dreamweaver's active content work around.
However I want the site to fully validate. Following the suggestions of people on these forums particularly aso186. I started looking at swfObject and UFO as means of achieving this. However both have now been combined into SWFObject 2.0

I have followed this advice to create the test pages that can be seen www.comfortcafe.co.uk/test/red.asp use the links at the top of the page rather than those in the Flash itself (although those should work as well).

Each page should pass a variable to the Flash movie (this can be seen in the top left corner of the Flash), this should be processed by the flash and cause it to jump to that frame.
This is working fine in IE 7 however it does not appear to work in FF 2.

To my mind it is almost as though the appropriate tags for FF are not being created as they should be by SWFObject 2.0
Does anyone have experience of using SWFObject 2.0 who may beable to suggest what I have missed or done wrong?

Regards
Phil
Reply With Quote

  #2 (permalink)  
Old Apr 3rd, 2008, 15:15
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,387
Blog Entries: 13
Thanks: 1
Thanked 16 Times in 14 Posts
Re: Validating websites with Flash content using SWFObject 2.0

Sorry to compound the issue, but it doesn't seem to work in IE7 either.

I think this query may belong more in the javascript forum.

moving you now, hang on to your hat....
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #3 (permalink)  
Old Apr 3rd, 2008, 15:15
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,387
Blog Entries: 13
Thanks: 1
Thanked 16 Times in 14 Posts
Re: Validating websites with Flash content using SWFObject 2.0

moved
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #4 (permalink)  
Old Apr 3rd, 2008, 15:58
Junior Member
Join Date: Aug 2007
Location: Haverhill
Posts: 45
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Validating websites with Flash content using SWFObject 2.0

Hi welshstew,

It appears to be working fine in IE 7 on a couple of different machines in my office. When you say it doesn't seem to work in IE7 either.
Have you used the links at the top of the page and has the image in the flash changed once the new page has loaded? If yes then it is working as intended, if not then the problem's worse than I thought.
Reply With Quote
  #5 (permalink)  
Old Apr 3rd, 2008, 16:10
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,387
Blog Entries: 13
Thanks: 1
Thanked 16 Times in 14 Posts
Re: Validating websites with Flash content using SWFObject 2.0

I personally only get the same image (wooden tables and seating with a vegas style comfort cafe over the the right)

the only thing that chanegs for m ewhen I clcik the links is some text at the top. i.e green=menus and yellow=guide

Why are you trying to do something so fancy anyway? why not just have seperate flash files for each of the pages?
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #6 (permalink)  
Old Apr 3rd, 2008, 16:18
Junior Member
Join Date: Aug 2007
Location: Haverhill
Posts: 45
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Validating websites with Flash content using SWFObject 2.0

It's because the flash file is holding the navigation for the pages (personally I hate doing that but it's what my boss wants).
Not too much of a problem in itself, however my boss is thinking of have movies instead of pictures on some of the pages so it would be preferable if the loading time of the flash is minimized.

My thinking was if it is one flash file repeated on each page then the flash file is cached by the user's browser hence minimizing load times after the initial visit.


From your description IE7 is behaving like FF on your computer.

It's really infuriating because it does work as intended on the machines in my office. I guess I may be forced back to the drawing board on this one.
Reply With Quote
  #7 (permalink)  
Old Apr 3rd, 2008, 16:53
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 993
Blog Entries: 2
Thanks: 5
Thanked 21 Times in 19 Posts
Send a message via Skype™ to Aso
Re: Validating websites with Flash content using SWFObject 2.0

Why not just have the nav and logo part of the flash, and set it as transparent, then place the various pictures in the HTML?
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #8 (permalink)  
Old Apr 4th, 2008, 15:03
Junior Member
Join Date: Aug 2007
Location: Haverhill
Posts: 45
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Validating websites with Flash content using SWFObject 2.0

Thanks for the suggestion aso186,

However I'll still need a method of getting the site to validate while using the Flash and there will be one or two pages that will have movies running in the area where the image is.

I'm trying one or two other avenues to resolve this problem. If I do find the solution I'll be sure to post it.

aso186 have you ever used SWFObject 2.0 successfully yourself?
Reply With Quote
  #9 (permalink)  
Old Apr 4th, 2008, 16:04
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 993
Blog Entries: 2
Thanks: 5
Thanked 21 Times in 19 Posts
Send a message via Skype™ to Aso
Re: Validating websites with Flash content using SWFObject 2.0

Yes, I've had no problems with it. In fact, I've even used it to pass custom 'flashvars' before and have had no issues.

I'm not sure (especially since I'm no flash expert), but it might suggest there's something buggy about the flash.

I mean, it does work partially - I presume the text 'home', 'about', 'menus' etc. that appears are being generated by the flash (can't see it in the markup)?

Plus the image change works for me in IE7.

Otherwise I'm lost Phil
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #10 (permalink)  
Old Apr 8th, 2008, 09:14
Junior Member
Join Date: Aug 2007
Location: Haverhill
Posts: 45
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Validating websites with Flash content using SWFObject 2.0

Hi All,

It turns out aso186 was right on the money with the suggestion that it was something buggy about the Flash. It turns out the preloader I had was causing some kind of conflict. I have since replaced it with

Code: Select all
stop();
 
onEnterFrame = function ()
{
     var percentLoaded:Number =
Math.floor(getBytesLoaded()/getBytesTotal()*100);
     // catch invalid values before we start to get real values back from flash
     // otherwisw NaN is displayed sometimes. Display a friendly value.
     if (isNaN(percentLoaded) || percentLoaded <0) percentLoaded = 0;
 
     // check that we have actually loaded some bytes before allowing loaded/total caluculation
     if (percentLoaded == 100 && getBytesLoaded()>4) 
     {
           // we're done - kill the frame loop and go to where we want
           delete (onEnterFrame);
           gotoAndPlay(page);
     }
     else 
     {
           // we're still loading, so let the user know how much is done
           loadingProgress.text = percentLoaded+"% loaded";
     }
}; 
on the first frame of the frame of the root time line in Flash and now everything appears to be working perfectly.

Thanks for all of your help yet again.

I would strongly recommend SWFObject 2.0 to anyone who is wanting to have Flash and validate their websites.
Reply With Quote
Reply

Tags
swfobject, validating flash

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Embedding / Flash slide show not Validating Oak Flash & Multimedia Forum 3 Dec 26th, 2007 00:19
How are some websites capable to display javascript content? gurukhel JavaScript Forum 3 Nov 9th, 2007 20:19
A little understanding would be useful (Flash, .flv and Websites) Phil Flash & Multimedia Forum 9 Sep 4th, 2007 15:41
Flash not dispalying in the ( only )IE while calling it through swfObject balaakrs Flash & Multimedia Forum 6 Jun 19th, 2007 14:59
Validating Site with some Flash imagesetting Flash & Multimedia Forum 0 Apr 2nd, 2007 19:41


All times are GMT. The time now is 05:44.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43