header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
gourav
Points:540
Posts:0

6/26/2010 3:11:47 AM

Title: can we view full webpage in <mx:html /> when air window size is not full?


Hii all,

i want to view full web-page when my Air app window is not maximaize (for eg my window size is 525*525).

here when size is not full the Hscroll bar and Vscrol bar is visible to me and some protaion is visible to me if i want to view other portion we have to scroll down or scroll up.


is any one have solution:

My code is give blow:

Thanks



<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="init();"
layout="absolute">
<mx:Script>
<![CDATA[
public function init():void{


tinychat.location ="http://askmeflash.com/users/userprofile.aspx";

}


]]>
</mx:Script>
<mx:Box height="100%" width="100%" >
<mx:HBox width="100%">
<mx:LinkButton label="Back" id="back" click="{tinychat.historyBack()}" toolTip="Step Back" />
<mx:LinkButton label="Forword" id="forword" click="{tinychat.historyForward()}" toolTip="Step Forword" />
<mx:LinkButton label="Reload" id="reload" click="{tinychat.reload()}" toolTip="Reload Main Page" />

</mx:HBox>
<mx:HTML id="tinychat" backgroundColor="#5eac6b"
paddingBottom="15"
paddingLeft="15"
paddingRight="15"
paddingTop="15"
height="100%" width="100%" />
</mx:Box>
</mx:WindowedApplication>



1
Kiney
Points: 530
Posts:0
6/26/2010 6:26:35 AM



whose scrollbars are you taking HTML component or the AIR application.

If the scrollbars are inside the HTML then you have to give fixed height and width to it. So that it should not resize with application. And then use scalemode to make application rescale on resizing the window. You can set the scalemode property in your init function

stage.scaleMode= StageScaleMode.SHOW_ALL;


2
gourav
Points: 540
Posts:0
6/26/2010 7:08:58 AM



hi kiney thanks 4 reply
can u run this example plz

i want when i open my window and my window size is less then webpage size
(eg: webpage:-height 950 * wirth:950 & my window H:500 * W:500)
then webpage should be fit in my small window.

if it is possible or if any one have any idea then plz reply


thanks

3
Warrior
Points: 420
Posts:0
6/26/2010 11:27:41 AM



hi , i think this is what u want , no scrollbar but every thing visible


		<mx:HTML scaleX="0.3" scaleY="0.3"  id="tinychat"  backgroundColor="#5eac6b" horizontalScrollPolicy="off" verticalScrollPolicy="off"
				 paddingBottom="15"
				 paddingLeft="15"
				 paddingRight="15"
				 paddingTop="15"
				 height="1000" width="1000" />


4
gourav
Points: 540
Posts:0
6/27/2010 10:10:43 PM



no its no my requirement i want to open whole page in smalll window u can say in compact form.



thanks 4 reply

5
Warrior
Points: 420
Posts:0
6/27/2010 10:59:47 PM



if you want to fit a big content into a small area then you have to use scaling . That's what I did in the above example . now the whole page of around 1024 x 990 is visible in the 500 x 500 AIR window , without any scrollbars . Whats that you require, don't want to scale ?


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 2+0 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions