<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" title="Oakmont High School's Viking Zone(Beta)"
width="1010" height="600" minHeight="600" minWidth="870"
xmlns:ns1="flexlib.containers.*">
        <mx:ApplicationControlBar width="100%" cornerRadius="0" dock="true">
                <mx:LinkButton label="Welcome to the new Viking Zone computer 
app!"
click="welcome();"/>
                <mx:Button label="HELP!" click="init();"/>
        </mx:ApplicationControlBar>
        <mx:TabNavigator width="100%" height="100%" x="0" y="10"
id="location" backgroundAlpha="1.0">
                <mx:Canvas label="News" width="100%" height="100%">
                        <mx:ApplicationControlBar x="0" y="0" width="100%" 
dock="true">
                                <mx:ToggleButtonBar dataProvider="news_stack">
                                </mx:ToggleButtonBar>
                        </mx:ApplicationControlBar>
                        <mx:ViewStack x="0" y="39" id="news_stack" width="100%"
height="100%">
                                <mx:Canvas label="General" width="100%" 
height="100%"
borderStyle="solid" cornerRadius="5" borderThickness="3"
backgroundAlpha="1.0">
                                        <mx:HTML x="0" y="0" width="100%" 
height="100%" location="http://
ohs.rjuhsd.us/vz_app/general.html" alpha="1.0"/>
                                </mx:Canvas>
                                <mx:Canvas label="Freshmen" width="100%" 
height="100%"
borderStyle="solid" borderThickness="3" cornerRadius="5">
                                        <mx:HTML x="0" y="0" width="100%" 
height="100%" location="http://
ohs.rjuhsd.us/vz_app/fresh.html"/>
                                </mx:Canvas>
                                <mx:Canvas label="Sophomores" width="100%" 
height="100%"
borderStyle="solid" cornerRadius="5" borderThickness="3">
                                        <mx:HTML x="0" y="0" width="100%" 
height="100%" location="http://
ohs.rjuhsd.us/vz_app/soph.html"/>
                                </mx:Canvas>
                                <mx:Canvas label="Juniors" width="100%" 
height="100%"
borderStyle="solid" cornerRadius="5" borderThickness="3">
                                        <mx:HTML x="0" y="0" width="100%" 
height="100%" location="http://
ohs.rjuhsd.us/vz_app/junior.html"/>
                                </mx:Canvas>
                                <mx:Canvas label="Seniors" width="100%" 
height="100%"
borderStyle="solid" cornerRadius="5" borderThickness="3">
                                        <mx:HTML x="0" y="0" width="100%" 
height="100%" location="http://
ohs.rjuhsd.us/vz_app/senior.html"/>
                                </mx:Canvas>
                        </mx:ViewStack>
                </mx:Canvas>
                <mx:Canvas label="Home Link" width="100%" height="100%">
                        <mx:HTML x="10" y="0" width="100%" height="100%" 
location="https://
www.rosevillehsd.net/abi/"/>
                </mx:Canvas>
                <mx:Canvas label="Viking Zone" width="100%" height="100%">
                        <mx:HTML x="0" y="0" width="100%" height="100%" 
location="http://
ohs.rjuhsd.us/viking_zone/zone_index.htm" id="viking_zone"/>
                </mx:Canvas>
                <mx:Canvas label="School Forums" width="100%" height="100%">
                        <mx:HTML x="0" y="0" width="100%" height="100%" 
location="http://
oakmontforums.tk" id="school_forums"/>
                </mx:Canvas>
                <mx:Canvas label="Cartoons" width="100%" height="100%">
                        <mx:HTML x="0" y="0" width="100%" height="100%">
                                <mx:location>http://ohs.rjuhsd.us/viking_zone/
itsagreatday2baviking/vikinglibrary.htm</mx:location>
                        </mx:HTML>
                </mx:Canvas>
                <mx:Canvas label="Browser" width="100%" height="100%">
                        <mx:ApplicationControlBar x="0" y="0" width="100%" 
cornerRadius="0"
dock="true">
                                <mx:Button label="Browser Problems?" 
click="browser();"/>
                                <mx:Button id="backButton" fontWeight="bold"
click="onClick(event)" icon="@Embed(source='icons/b_arrow.png')"/>
                                <mx:Button id="forwardButton" fontWeight="bold"
click="onClick(event)" icon="@Embed(source='icons/f_arrow.png')"/>
                                <mx:Label text="URL:"/>
                                <mx:TextInput text="ohs.rjuhsd.us" id="input"
mouseDownEffect="{zoom}" rollOutEffect="{out}"/>
                                <mx:Text text="{myHTML.location}"/>
                        </mx:ApplicationControlBar>
                        <mx:Canvas height="100%" left="10" right="10" top="41">
                                <mx:HTML x="0" y="0" width="100%" height="100%" 
id="myHTML"
location="http://{input.text}"/>
                        </mx:Canvas>
                </mx:Canvas>
        </mx:TabNavigator>
        <mx:Script>
        <![CDATA[
            import mx.events.ResizeEvent;
            import mx.controls.Alert;
            import mx.managers.PopUpManager;

            private var alert:Alert;

            private function welcome():void {
                alert = Alert.show(
                                "Thank you for using the Oakmont High School 
Viking
Zone Application! " +
                                "What are you looking at you might ask... " +
                                "Well this is the first desktop application for
Oakmont High School Students! It has all the stuff you need to know
about Oakmont. " +
                                "This was made to hopefully make finding 
information
much more convievient. ", "Welcome!");
            }

            private function browser():void {
                alert = Alert.show(
                                "Check the url text input for http:// that will
cause the browser to not go anywhere. " +
                                "Is a link not working? Well chances are that 
the
link opens in a new window. Our browser can not open new pages. " +
                                "Can't download? Sorry about that! Our browser 
also
cannot download. " +
                                "We are sorry for the inconvenience, and we 
will try
working out all the bugs in the updated versions to come. ", "Browser
Problems?");
            }

            private function init():void {
                alert = Alert.show(
                                "Thank you for using the Oakmont High School 
Viking
Zone Application! " +
                                "This application was built to help keep you on 
top
of school functions without the hassle of going to the school website!
" +
                                "Having Troube? " +
                                "There are still a few bugs in the application,
seeing how it is in it's beta stage. ", "Help!");
            }

            private function application_resize(evt:ResizeEvent):void
{
                if (alert) {
                    PopUpManager.centerPopUp(alert);
                }
            }
        ]]>
    </mx:Script>
    <mx:Script>
                <![CDATA[
                        private function onClick(event:Event):void {
                        if(event.currentTarget == backButton){
                        myHTML.historyBack();
                        } else if(event.currentTarget == forwardButton){
                        myHTML.historyForward();
                        } else {
                        //DO NOTHING!!!
                        }
                        }
                ]]>
</mx:Script>
    <mx:Parallel>
        <mx:Zoom duration="1000" id="zoom" zoomWidthTo="2"/>
        <mx:Zoom duration="1000" id="out" zoomWidthTo="1"/>
    </mx:Parallel>
</mx:WindowedApplication>

theres my source
see what you can do
thanks!

On Oct 22, 8:47 pm, prasad <[EMAIL PROTECTED]> wrote:
> Hi,
>      Same, I am also, using air browser in my application, It shows
> all the websites, including flash, also, Ive checked. Its working..
> The air browser
> is not well supporting to some sites, Check that site, well working on
> IE.
>
> Or paste your code, I will do, my best to solve.
>
> Thanks
>
> Prasad
>
> On Oct 23, 12:38 am, richard_soper <[EMAIL PROTECTED]> wrote:
>
> > ive included a web browser in my AIR application, and it cant display
> > any flash from websites...
>
> > On Oct 21, 1:14 pm, prasad <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > >         AIR is a desktop application creator, Here flash media is not
> > > viewable by externally. Using HTML component, we can view all type of
> > > sites and flash sites also, Let me know clearly about your
> > > requirement.
>
> > > Rds
>
> > > prasad
>
> > > On Oct 22, 12:01 am, richard_soper <[EMAIL PROTECTED]> wrote:
>
> > > > For some odd reason, my AIR application wont show and flash media.
>
> > > > The app pulls most of its information from the internet using the AIR
> > > > html component.
>
> > > > Does anyone know how I can fix the problem?- Hide quoted text -
>
> > > - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to