Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 02-08-2009, 03:14 PM
Calisonder's Avatar
Calisonder Calisonder is offline
v7n Mentor
 
Join Date: 10-13-03
Location: Dallas, Texas, U.S.A.
Posts: 1,502
iTrader: 0 / 0%
Scroll Bar for floating layout?? take a look...

Hi,


I am converting my site into a fluid/floating flash site and I'm having just a couple of problems.

First, when I re size the window, i need THE BROWSER to create a regular vertical (or horizontal) scrollbar when the window gets to small to display all of the information. Right now, it just cuts off my the main area of my site when the window is to small. I don't know if I disabled this in my AS3 or in my html, but I think it was the AS3

I am really new to actionscript. I am using AS3 but I found a really good floating layout tutorial for AS2, but I am not good enough at coding to translate it over. And this tutorial for AS3 ( http://www.republicofcode.com/tutori...s3fluidresize/ ) seems to be the only decent floating tut I can find for AS3 but it is not in depth enough.



Second, If anybody knows how to keep objects from overlapping each other that would help as well.

Thank you to all of give this a shot.


Here is my code.

Code:
stage.addEventListener(Event.RESIZE, resizeListener); function resizeListener (e:Event):void { trace("stageWidth: " + stage.stageWidth + " stageHeight: " + stage.stageHeight); MainArea.x = stage.stageWidth / 2; MainArea.y = 400; BlueStripe.x = 0; BlueStripe.y = 0; BlueStripe.width = stage.stageWidth; BlackStripe.x = 0; BlackStripe.y = 0; BlackStripe.width = stage.stageWidth; } stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT;
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 02-15-2009, 10:32 AM
Capo64 Capo64 is offline
Contributing Member
 
Join Date: 06-11-07
Posts: 238
iTrader: 0 / 0%
I have never used flash (action script) or anything, but from what I can see, I'm guessing: stage.stageWidth is the width of the whole thing. What I would do is put:
Code:
function resizeListener() { if (stage.stageWidth > certain width) { your resizeListener code } }
Set the certain width to however small you can have your (stage) without anything overlapping. Then it shouldn't resize if the window is any smaller than that number.

Just a guess, like I said, I have no idea how to code in action script
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need to have a floating menu, like this: dudeman Coding Forum 5 10-21-2008 01:34 AM
Floating without float marc_gfx Coding Forum 6 09-22-2008 07:21 AM
Floating Table OhCaN Coding Forum 13 08-24-2007 12:42 PM
Floating Image sixty6 Coding Forum 4 06-29-2006 01:05 AM
Help with floating... spl1nter Coding Forum 3 09-12-2004 10:07 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 11:35 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC