Help - Search - Members - Calendar
Full Version: [AS2.0] Adding FlashVars has drastically changed my page layout! - Help!
HTMLHelp Forums > Web Authoring > Graphics, Flash and Multimedia
Clint
http://www.alpha-duplication.com/adl_wip
is my new website I'm building which includes a Flash navigation bar on the left side.

As you can see, the page layout of each of the sub-menu links in the Data Services section are correct.

On the other links, I've needed to add some flashVar information to the header tags so the menu stays open.

Under Technical Info, if you click on Glossary or Fulfilment, you can see that the flashVars are working because the menu stays open, but for some reason, the whole right side is pushed down.

Can anyone view my source and maybe tell me why this might be happening? I've commented out the flashVar JS in the html, and this solves the problem, but I need the flashVars working.

Here is my AS2.0 code:

//FlashVar code
if(_level0.referringPage != null){
var referringPage = _level0.referringPage;
switch(referringPage){
case "about_alpha":
aboutAlpha();
break;
case "print_services":
printServices();
break;
case "technical_info":
technicalInfo();
break;
case "packaging":
packaging();
break;
}

}

I've thought it was a CSS thing, but I've gone through and deleted the JavaScript in the header of the page, and the formatting is correct. But just incase here's my css:
www.alpha-duplication.com/ADL_WIP/Data_Services/DataServicesCSS.css

The navigation swf is in div id="sidebar1" and the main part of the page is in div id="maincontent"

Many thanks,
Clint Milner
Clint
http://www.alpha-duplication.com/adl_wip
is my new website I'm building which includes a Flash navigation bar on the left side.

My CSS can be viewed at:
www.alpha-duplication.com/ADL_WIP/Data_Services/DataServicesCSS.css
The navigation swf is in div id="sidebar1" and the main part of the page is in div id="maincontent"



As you can see, the page layout for each of the sub-menu links in the Data Services section are correct.

As for the other links, I've needed to add some flashVar information to the header html tags so the menu stays open.

Under Technical Info, if you click on Glossary or Fulfilment, you can see that the flashVars are working because the menu stays open, but for some reason, the whole right side is pushed down.

Could this be a CSS thing? People have mentioned that, but my CSS skills aren't high enough to debug this particular problem.

The only thing I've done that has made it work is to take out the JavaScript in the < head > tag.

I'll post my Java and ActionScript below, but I hope this is a simple CSS problem.

Many Thanks,
Clint
==============

Here is my AS2.0 code:

//FlashVar code
if(_level0.referringPage != null){
var referringPage = _level0.referringPage;
switch(referringPage){
case "about_alpha":
aboutAlpha();
break;
case "print_services":
printServices();
break;
case "technical_info":
technicalInfo();
break;
case "packaging":
packaging();
break;
case "home":
allClosed();
break;
}

}

===============
The JavaScript in the header of my html (commented out on index.html and the pages under Data Services)

<!-- Generated with SWFOBJECT 2.0 -->
<!--<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.referringPage = "home";
var params = {};
var attributes = {};
attributes.id = "navBar";
swfobject.embedSWF("navBar.swf", "sidebar1", "276", "465", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>-->
<!-- End of SWFObject code--->
Christian J
Merged two similar threads.
Frederiek
Apparently, the problem has been solved, as the menu works for me (Safari/Mac).
Clint
QUOTE(Frederiek @ Aug 4 2008, 10:14 PM) *

Apparently, the problem has been solved, as the menu works for me (Safari/Mac).


Thank you for looking at it. My flashVars are working, and I just wrapped the sidebar div and the entire main content in seperate divs and it made it easier to float.

Clint
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.