Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > FlashLite / Portable Devices Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-20-2007, 09:40 AM   #1
polaj
polaj
 
Join Date: May 2007
Posts: 2
Question HTML display in actionscript2.0??

Hi all,first posting on the forum....
I'm trying to create a form (that has checkboxes) using HTML.
This form is supposed to be scrollable because of the length.Also,its supposed to be on a mobile device,so I'm using FlashLite2.x and a Nokia 6680 emulator.
Now, I've selected the "Render as HTML" button in the property
section of my text area (which is called story) and used the ff. codes
in actionscript:


stop ();
// Scroll continuously up at frame rate of movie
function continuousScrollUp2() {
this.onEnterFrame = function() {
if (story.scroll > 0) {
story.scroll--;
}
}
}
// Scroll continuously down at frame rate of movie
function continuousScrollDown2() {
this.onEnterFrame = function() {
if (story.scroll < story.maxscroll) {
story.scroll++;
}
}
}


story.htmlText ="<font color=\"#0000FF\"><b>The privacy policy of the different websites</b><br /><b>you may be visiting will vary concerning</b><br /><b>the use of your personal information.</b><br /><br /><b>Select preferred level of privacy</b><br /><form><input type=\"checkbox\" value=\"Low\"/>Low<br /><input type=\"checkbox\" value=\"Medium\"/ >Medium<br /><input type=\"checkbox\" name=\"Level\" value=\"High\" />High</form><br /> <br /><b>Would you like pShopper to ask for your</b><br /><b>permission before receiving promotional</b><br /><b>adverts from websites?</b><br /><form><input type=\"checkbox\" name=\"permission\" value=\"Yes\" />Yes<br /><input type=\"checkbox\" name=\"permission\" value=\"No\" >No<br /><input type=\"checkbox\" name=\"permission\" value=\"Maybe\" >Maybe</form><br /> <br /><b>Specify preferred time of the day to receive adverts</b><br /><form><input type=\"checkbox\" name=\"time\" value=\"Morning\" >Morning<br /><input type=\"checkbox\" name=\"time\" value=\"Afternoon\" >Afternoon<br /><input type=\"checkbox\" name=\"time\" value=\"Evening\" >Evening<br /><input type=\"checkbox\" name=\"time\" value=\"Anytime\" >Anytime</form><br /><br /><frame><b><i>PERSONAL INFORMATION(name,address,etc)</i></b><br /><p>Reject promotional adverts from websites that:</p><br /><form><input type=\"checkbox\" name=\"reject1\" value=\"Share my personal information with other websites without my full knowledge and consent\" >Share my personal information with other websites<br /> without my full knowledge and consent<br /><br /><input type=\"checkbox\" name=\"reject1\" value=\"Do not allow me to unsubscribe from their mailing list\" >Do not allow me to unsubscribe from their mailing list<br /><br /><input type=\"checkbox\" name=\"reject1\" value=\"Do not explicitly highlight their data-sharing practices\" >Do not explicitly highlight their data-sharing practices<br /><br /><input type=\"checkbox\" name=\"reject1\"value=\"Do not allow me to find out what data they have about me\">Do not allow me to find out what data they have about me</form><br /><br /><b><i>ENVIRONMENTAL INFORMATION</i></b><br /><p>Reject promotional adverts from websites that:</p><br /><form><input type=\"checkbox\" name=\"reject2\" value=\"Do not explicitly highlight their environmental/carbon practices\" >Do not explicitly highlight their environmental/carbon practices<br /><br /><input type=\"checkbox\" name=\"reject2\" value=\"Do not market 'green' products\" >Do not market 'green' products<br /><br /><input type=\"checkbox\" name=\"reject2\" value=\"Do not practice Fair Trade\" >Do not practice Fair Trade<br /></form><br /><br /><b><i>LOCATION/GPS INFORMATION</i></b><br /><p>Reject promotional adverts from websites that track<br />my location and then use my GPS data:</p><br /><form><input type=\"checkbox\" name=\"reject3\" value=\"For illegitimate disclosure to individuals<br />and other companies/third parties\" >For illegitimate disclosure to individuals<br />and other companies/third parties<br /><br /><input type=\"checkbox\" name=\"reject3\" value=\"To obtain other information from my personal device\" >To obtain other information from my personal device<br /><br /><input type=\"checkbox\" name=\"reject3\" value=\"To analyze my pattern of movement\" >To analyze my pattern of movement<br /><br /><input type=\"checkbox\" name=\"reject3\" value=\"Without allowing me to opt-out\" >Without allowing me to opt-out<br /><br /><input type=\"checkbox\" name=\"reject3\" value=\"Without prior consent from me\" >Without prior consent from me</form><br /><br /><b><i>PURCHASE INFORMATION</i></b><br /><p>Reject promotional adverts from websites that use information<br />about my purchases:</p><br /><form><input type=\"checkbox\" name=\"reject4\" value=\"To share with individuals<br />and other companies/third parties\" >To share with individuals<br />and other companies/third parties<br /><br /> <input type=\"checkbox\" name=\"reject4\" value=\"To analyze my habits and determine what adverts I see\" >To analyze my habits and determine what adverts I see</form></frame><br /><br /><button> SUBMIT </button></font>";


However, during runtime, only the first portion of the form is visible and
I dont see any checkboxes.Does anyone have any idea how to get around this??
polaj is offline   Reply With Quote
Old 05-20-2007, 09:50 AM   #2
jsonchiu
Registered User
 
Join Date: Aug 2006
Posts: 482
Default

textfields don't support checkboxes. use the checkbox component instead and build the form in flash, and not using html.
jsonchiu is offline   Reply With Quote
Old 05-22-2007, 10:27 AM   #3
polaj
polaj
 
Join Date: May 2007
Posts: 2
Default

Thanx jsonchiu,
the problem I have with building the form in Flash8 is that
it is quite a lengthy form and since I'm building for a mobile
device with a small screen (and testing with Flashlite) I have
to make it scrollable. I dont know how possible this is,but will
welcome any help.
polaj is offline   Reply With Quote
Old 05-23-2007, 01:54 AM   #4
jsonchiu
Registered User
 
Join Date: Aug 2006
Posts: 482
Default

construct the form first, and then put the entire thing into a movieclip.
Then, use the scroll pane component.
jsonchiu is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
relative path to SWF in loadMovie() is relative to HTML page not the parent SWF danielito540@hotmail.com ActionScript 2.0 11 08-21-2008 01:49 PM
Can you display a HTML page in Flash Osiyo Flash 8 General Questions 15 03-02-2007 01:04 AM
want to display html page in flash movie asifbhura ActionScript 2.0 0 09-20-2006 09:14 AM
Re: flash dynamic text display HTML formatting bearslife Server-Side Scripting 1 01-19-2005 03:18 AM
Download Raw HTML ? Ultrafusion Other Flash General Questions 0 10-14-2003 09:11 PM


All times are GMT. The time now is 02:04 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.