Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 3rd, 2008, 11:15 PM
Authorized User
 
Join Date: Feb 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Flash as a page background with the TBH starterkit

I’m working on this new site (http://www.saltwatercoralsandfish.com/) in which I’m using this Flash video as a background for the home page; with a CSS (z-index of -1) on the (div) that contains the Flash. Currently I’ve only got the one other content div on the page that welcomes the user and ask them to check back later that the site is being developed. This naturally has a z-index of 0 by default so no extra css is needed. As you can see this content downloads faster than the Flash and shows through the movie intro as it starts and plays. Although this looks ok now, my concern is that when I add other content such as a login control, navigation control, other web parts, etc to the page; it will seriously detract from the Flash video’s presentation.

Is there a way to programaticly hide the controls and web parts until the Flash file has downloaded first and played once? And, how would I code this?

I’m thinking something along the lines of setting the visible property to “false” and then somehow to true once the page’s Flash has played, but I don’t know if this is possible or how to program it. Any ideas and solutions to this issue are greatly appreciated.


 
Old November 5th, 2008, 02:57 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

I think this would be best done using JavaScript to control the visibility from the client side. Otherwise, you'll need to initiate a postback after the Flash is done playing. I'm not sure how you would do that (not saying it's not possible though). But even if you did it that way, you'll have the issue of the extra round trip and the resulting delay. Client-side JavaScript would not only be instantaneous, it could easily be triggered at the end of the Flash by an ActionScript event.

 
Old November 6th, 2008, 09:12 PM
Authorized User
 
Join Date: Feb 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply, I was wondering if anyone whould talk with me.

Ya, I think your probably right a postback is not really a good thing here. I was looking into AJAX to maybe solve this design issue. Maybe that would eliminate the need for the ActionScript within the Flash, not sure. Do you know how to code the ActionScript event to be used by the Javascript or trigger AJAX? Have any examples?

again thanks

 
Old November 6th, 2008, 09:50 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Gosh, sorry... I haven't programmed in ActionScript since Flash MX, at least 5 years ago. I would be totally rusty on that, but I'm sure your question would be quickly answered on a Flash programmer forum. Or maybe someone else reading this could jump in here.

 
Old November 7th, 2008, 12:07 AM
Authorized User
 
Join Date: Feb 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No problem, thanks anyway. Ya I've got this question out already to a couple other forums, but thought since I'm going to integrate it into the TBH starter kit and try to get all the different web parts to still work correctly, that someone from the Wrox team might help me understand how to do this. So far no luck with that.

anyway thx again.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Page flash from using master page wirerider ASP.NET 2.0 Basics 7 March 8th, 2006 05:50 PM
Background-image not filling page height? PetraMan CSS Cascading Style Sheets 1 April 22nd, 2005 09:17 AM
page have a flash file alyeng2000 HTML Code Clinic 2 April 19th, 2005 08:44 AM
Login page in flash raghav_shenoy Flash (all versions) 5 January 6th, 2005 04:14 PM
Background Music In A Web Page Ben Horne HTML Code Clinic 7 November 4th, 2004 11:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.