Select to view content in your preferred language

Change content of Splash widget

1710
7
06-08-2011 07:04 AM
AnthonyPagan
Occasional Contributor
I'm new to the FlexViewer I'm trying to change the content of the splash widet this is what I have:

<widget preload="open"
config="widgets/Splash/SplashWidget.xml"
url="widgets/Splash/SplashWidget.swf"/>

then this is my splashwidget config file:

<configuration>

<width>375</width>
<height>375</height>
<content>
<![CDATA[<p align='center'>
<img src='assets/images/globe.png' width='140' height='140' />
</p>
<p>
<font size="16"><b>Welcome to Huber Heights GIS.</b></font>
</p>
<p>
This application was developed with ArcGIS Viewer for Flex.
</p>
<p>
More information at links below:
</p>
<textformat blockindent="20">
<p>
* Built with <a href="http://help.arcgis.com/en/webapps/flexviewer/" target='_blank'><font color="#FFFFFF"><b>ArcGIS Viewer for Flex</b></font></a>
<br>
* Based on <a href="http://help.arcgis.com/en/webapi/flex/" target='_blank'><font color="#FFFFFF"><b>ArcGIS API for Flex</b></font></a>
</p>
</textformat>
<br>
<p>
<a href="http://www.esri.com/legal/pdfs/mla_e204_e300/english.pdf" target='_blank'><font color="#FFFFFF">(c) Copyright 2011 Esri</font></a>. All rights reserved.
</p>
]]>
</content>
<btnlabel>Click to continue</btnlabel>

</configuration>


What am I doing wrong?
Tags (2)
0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Emeritus
Anthony,

    Do you have a splashpage element setup in your main config.xml? if not then you need to be editing the HeaderControllerWidget.xml content element.
0 Kudos
AnthonyPagan
Occasional Contributor
Robert,

I do not have a splashpage element setup in my config.xml I will edit the HeaderControllerWidget.xml. Thanks for the help. Also how can I set up a splashpage element setup in my config.xml. Thanks
0 Kudos
AnthonyPagan
Occasional Contributor
Robert,

I edited the HeaderControllerWidget.xml and I still got the original content that comes with it here is the code:

<configuration>
    <about>
       <label>About</label>
       <visible>true</visible>
       <width>375</width>
       <height>375</height>
       <content>
        <![CDATA[<p align='center'><img src='assets/images/globe.png' width='140' height='140' /></p>
        <font size="16"><b>Welcome to Huber Heights GIS.</b></font>
        <br><p>This application is developed with ArcGIS Viewer for Flex 2.</p>
        <br>More information at links below:
        <textformat indent="25"><p><br><a href="http://help.arcgis.com/en/webapps/flexviewer/" target='_blank'><font color='#FFFF00'>ArcGIS Viewer for Flex</font></a>
        <br><a href="http://help.arcgis.com/en/webapi/flex/" target='_blank'><font color='#FFFF00'>ArcGIS API for Flex</font></a>
        <br><a href="http://www.esri.com" target='_blank'><font color='#FFFF00'>Esri</font></a></p></textformat>
        ]]>
        </content>
        <btnlabel>OK</btnlabel>
    </about>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
AnthonyPagan
Occasional Contributor
Robert,

Thanks
0 Kudos
AnthonyPagan
Occasional Contributor
Ok I must be really bad at this I changed everything that the help docs say and I still get the original message here is my code:

<splashpage label="Splash" config="widgets/Splash/SplashWidget.xml" url="widgets/Splash/SplashWidget.swf"/>

splash config file:

<configuration>
   
    <width>375</width>
    <height>375</height>
    <content>
        <![CDATA[<p align='center'>
            <img src='assets/images/globe.png' width='140' height='140' />
        </p>
        <p>
            <font size="16"><b>Welcome to Huber Heights GIS.</b></font>
        </p>
        <p>
            This application was developed with ArcGIS Viewer for Flex.
        </p>
        <p>
            More information at links below:
        </p>
        <textformat blockindent="20">
            <p>
                * Built with <a href="http://help.arcgis.com/en/webapps/flexviewer/" target='_blank'><font color="#FFFFFF"><b>ArcGIS Viewer for Flex</b></font></a>
                <br>
                * Based on <a href="http://help.arcgis.com/en/webapi/flex/" target='_blank'><font color="#FFFFFF"><b>ArcGIS API for Flex</b></font></a>
            </p>
        </textformat>
        <br>
        <p>
            <a href="http://www.esri.com/legal/pdfs/mla_e204_e300/english.pdf" target='_blank'><font color="#FFFFFF">(c) Copyright 2011 Esri</font></a>. All rights reserved.
        </p>
       ]]>
    </content>
    <btnlabel>Click to continue</btnlabel>

</configuration>

I have looked thru the resource center read everything I was pointed to don't know what else to do.
0 Kudos
AnthonyPagan
Occasional Contributor
Thanks everybody got it working!!
0 Kudos