Type Specification error in Dynamic Text
Hi Experts,
Actually what is this error - "Type Specification TDSPRAS not allowed", How to handle this?
For displaying standard texts in Smartforms, I am using text type :Dynamic Include.
when i am giving the field name as &gvar1& and language as &gvar2& of specific types (TDOBNAME & TDSPRAS) it is throwing an error as :
"Type Specification TDSPRAS not allowed"
"Type Specification TDOBNAME not allowed".
I have my standard texts created in So10. Even if i use field name of type C also its throwing such kind of errors.
Could someone tell me what are the type specification that i use.
thanks
Dany
Hi,
when you are getting this message..While activating or while running the print program..
Thanks,
Naren
Similar Messages
-
Need help with specifying type range in dynamic text box
is it possible to specify my type range in a dynamic text box
that is loading images as well as type? Everytime i specify the
range flash quits. if i take out the image loading actionscript
then it's fine. grrrrrI assume that you have added this field to the field catalog, so make sure that the name in the field catalog is exactly the same as in the internal table which holds your data, and make sure that you are filling the field name as uppercase.
Regards,
RIch Heilman -
Compiler errors when using dynamic text in a class
I have created a MovieClip with a custom class that has a dynamic text field (called "textArea"), which I want to modify by the Component Inspector, as well as via a custom method using:
textArea.text = newText;
It works fine in all cases and there are no problems, but the compiler still wants to give me the error:
1120: Access of undefined property textArea.
The error doesn't appear when I remove the component parameters (so that it's just a normal MovieClip). It still works, even with the error, so I'm not sure why it wants to complain. Am I doing something wrong or is it just being bitchy?By defining them in the class and using the class name under component definition:
[Inspectable(name="Text", type=String, defaultValue="")]
public function set text(setText:String)
textArea.text = setText;
public function get text():String
return textArea.text;
A problem I run into is that the compiler errors prevent the parameters from being defined so I comment out every line that has to do with textArea, define the component, then uncomment them so that it'll work when it runs. -
Flash dynamic text in captivate errors
Hello all,
Has anyone experienced any issues when using a dynamic text
field in flash, then importing the swf file into captivate? I am
using actionscript to populate a few dynamic text fields in flash.
I am then publishing the swf and importing the swf into captivate.
Once I do this, none of my text appears! When I launch the swf in
explorer and the flash authoring environment, it works fine. I have
tried turning off the 508 compliance, eliminated all captivate
animations/transitions, made sure that the frame rates are matched
between flash / captivate (although not likely the prob), using a
basic arial font Nothing works!!! anyone have any possible
solutions? Here is a link to the swf that I am working with (tried
other flash files with 'dynamic' text, none of them work).
http://kplearning.com/project_testing/flashTesting/table1_wCanvas.swf
(swf file)
http://kplearning.com/project_testing/flashTesting/table1_wCanvas.zip
(working file)
Thanks in advance for any help!
MikeHi Deb
This falls into that "odd" or "grey area" category and is
likely the reason you haven't seen anyone reply. I say "odd" or
"grey area", because you are now beyond the realm of pure Captivate
behavior and have entered the realm of where you are now blending
Captivate with other Flash output in an effort to try and achieve
something unique. And there is absolutely nothing wrong with this.
Personally, I would encourage it, as you never know what you will
discover to create a neat effect.
However, having said that, you are now dabbling in something
that perhaps nobody else has yet tried. I'm no Flash expert just
yet, but I'm beginning to work on those skills. From what I DO
understand about blending Captivate with Flash, I believe Captivate
only likes and easily works with
Flash 6 output and
Actionscript 1. Anything newer and it likely won't work. I'm
unsure if Flash 6 output is even possible to create, where you can
call an external text file. For all I know at this stage, it could
be a Flash 7 or Flash 8 only feature.
Assuming this was something that was part of the feature set
for Flash 6, if you are using Flash 7 or 8 to create the Flash
file, perhaps try publishing in the earlier format?
Hopefully this helps... Rick -
[object object] dynamic text error :(
Hey, I was just in the middle of my programming and I wrote this onto some dynamic text:
var wood:Number;
wood = 0;
var water:Number;
water = 0;
var s_water:String;
s_water = toString(water);
var s_wood:String;
s_wood = toString(wood);
statsInstance.text = "wood: " + s_wood + " water: " + s_water;
And then when I run it, the text shows:
wood: [object object] water: [object object]
Please help!
Thanks.there is a method toString(), it's not used like that.
and, it's not clear what you're trying to do but you'll probably come closer to what you want by casting wood and water as strings:
var wood:Number;
wood = 0;
var water:Number;
water = 0;
var s_water:String;
s_water = String(water);
var s_wood:String;
s_wood = String(wood);
statsInstance.text = "wood: " + s_wood + " water: " + s_water; -
Displaying the result of a calculation in a dynamic text box
Hi folks,
I'm having a very minor issue here (operator error, I'm sure ). With the help of some folks here, I've created a series of calculations, and I've got that part down. Now, I just need it to show up in the movie.
I've created the dynamic text box in Flash (CS3), but when I hit test, it won't show up.
After all the calculations, I should have a figure that I call totalmoney. My dynamic text box is called total. The user doesn't need to hit anything for it to appear. It just appears as part of the movie.
Here's my code:
stop();
var startDate:Date = new Date(2010,0,12); // use your startyear, startmonth, startdate in the new Date() parameters.
var currentDate:Date = new Date(); // assuming user's clock is correct and in your timezone. else use server date/time.
var numberOfSeconds:Number = (currentDate.getTime()-startDate.getTime())/1000;
var interest:Number = (numberOfSeconds*0.74356);
var totalmoney:Number = (interest+15,000,000);
function displaytotal(evt:TextEvent):void {
total.text = "totalmoney";
Any thoughts?
Thanks!
NapoYou didn't have to bury any of the calculations in the function--leaving it as you had it is better. They could remain where they a=werew, and you'll probably find you want them outside it if you have other plans for using them. If left inside, they only have scope inside. In the programming world, it's good to think of functions as things that do one thing and one thing only (though it isn't often practiced that way)--it's called modular design.
When you place an event as an argument for a function, it typically means that there is an event listener that initiates the call to the function. If you work with buttons you'll see what I mean. But if the plan is to create your own call to a function when you desire it as such, not have it driven by an event listener, then you don't need to pass any event to it, though you may pass some other type of variable to it if need be.
For instance, what you have now will call the function without an argument because the function has the value built into its code....
displaytotal();
But you could also make the function a little more generic and set it up to recieve the value instead as an argument...
function displaytotal(amt:Number):void {
total.text = String(amt); // an earlier error of mine
displaytotal(totalmoney);
That would make your function a little more useful. Now it could be used to display other Number variables as well.
// my earlier error was that a textfield displays text, so you need to convert the Number value to s String.
Hope I'm not confusing you. -
Load Multiple Dynamic Text Files in Different frames on Maintimeline
Hello!
I have managed to load an external text file in one place one the maintimeline. I would like to do the same thing on other frames. When I go to duplicate the same thing that I did on the first one I get a duplicate textReq request. Do I need to give the textReq a more specific name for each section? When I did this the movie wouldn't even recognize and of the code that was working before.
Can anyone help me with this code? Thanks in advance
I am attaching link so you can see sections I am talking about. Also you will notice that the swf file I loaded won't go away. That's another problem...ugh.
Here is link:
http://www.sandraschmitt.com/coclico/index100.html
Here is code on maintimeline:
stop();
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
import flash.events.ProgressEvent;
function startLoad() {
var swfLoader:Loader = new Loader();
var swfRequest:URLRequest = new URLRequest("endlessCoclico3.swf");
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
swfLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
swfLoader.load(swfRequest);
function onCompleteHandler(loadEvent:Event) {
addChild(loadEvent.currentTarget.content);
function onProgressHandler(swfProgress:ProgressEvent) {
var percent:Number = swfProgress.bytesLoaded/swfProgress.bytesTotal;
trace(percent);
startLoad();
//handle events for buttons...
collections.addEventListener(MouseEvent.CLICK, clickSection);
raison.addEventListener(MouseEvent.CLICK, clickSection);
stores.addEventListener(MouseEvent.CLICK, clickSection);
news.addEventListener(MouseEvent.CLICK, clickSection);
contact.addEventListener(MouseEvent.CLICK, clickSection);
home.addEventListener(MouseEvent.CLICK, clickSection);
function clickSection(evtObj:MouseEvent) {
//trace shows what's happening... in the output window
trace("The "+evtObj.target.name+" button was clicked!");
//go to the section clicked on...
gotoAndStop(evtObj.target.name);
Here is code on actual frame where the dynamic text is working:
//Loaded exteranl text fields
var textLoader:URLLoader = new URLLoader();
var textReq:URLRequest = new URLRequest("text_philosophy.txt");
function textLoaded(event:Event):void {
philosophy_txt.text = textLoader.data;
textLoader.load(textReq);
textLoader.addEventListener(Event.COMPLETE, textLoaded);Textfields: What I like to do, mainly for peace of mind, is to have a layer that I dedicate to actionscript that only has code in frame 1 but it extends the full length of the timeline so that this code is available to every frame on any other layer. In this frame I put variables and functions that can get used/shared wherever they happen to be needed. I usually create another separate layer for actions types of actionscript... stuff that happens at the local frame level, like stop();, or like assigning a variable a new value, etc... things local to being at that frame/location. So with that in mind
In frame 1 on my shared-by-everyone layer, I'd probably declare the variable....
var textReq:URLRequest;
And when I get to a particular frame where I want to load a new textfield with data, I assign that var its value on the local actions layer...
textReq = new URLRequest("text_philosophy.txt");
along with the rest of the local execution regarding loading the file, etc...
SWF's:
Yeah, pretty much, and it becomes an object that has a home on the timeline, so if you move away from that frame the swf doesn't follow. -
Dynamic text in text symbols.
Hi,
Is there any way by which I can assign dynamic texts at runtime in a text symbol? Eg., say I have the following text to display :-
Error in calling the form name XYZ.
where the value XYZ is to be fetched from the program at runtime.Hello Anirban,
AFAIK this is not possible. Anyways why bother?
Declare you text symbol as:
TEXT-001: Error in calling the form name
In your code:
DATA: LV_STR TYPE STRING.
LV_STR = TEXT-001.
CONCATENATE LV_STR V_FNAME INTO LV_STR SEPARATED BY SPACE.
BR,
Suhas -
Dynamic Text in Paragraph Form as in Database
I am building a site for a church and am setting up a page
for the pastor to input his on thoughts as he sees fit. In the
database (access) it has spaces where spaces need to be and you can
see where one paragraph ends and the other starts but when I pull
it to a page as dynamic text, it all jumbles together in 1
paragraph. can someone help me.
ThanksI can tell you guys really want to help, but please consider
me a beginner. I don't see "VbCr" or "Chr10" in my code anywhere.
or what to actually replace. I appreciate everything that has been
posted. Can you be a little more specific for adumb programmer.
Thank you in advance
Here is the code for the ASP page
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
' *** Logout the current user.
MM_Logout = CStr(Request.ServerVariables("URL")) &
"?MM_Logoutnow=1"
If (CStr(Request("MM_Logoutnow")) = "1") Then
Session.Contents.Remove("MM_Username")
Session.Contents.Remove("MM_UserAuthorization")
MM_logoutRedirectPage = "/login.asp"
' redirect with URL parameters (remove the "MM_Logoutnow"
query param).
if (MM_logoutRedirectPage = "") Then MM_logoutRedirectPage =
CStr(Request.ServerVariables("URL"))
If (InStr(1, UC_redirectPage, "?", vbTextCompare) = 0 And
Request.QueryString <> "") Then
MM_newQS = "?"
For Each Item In Request.QueryString
If (Item <> "MM_Logoutnow") Then
If (Len(MM_newQS) > 1) Then MM_newQS = MM_newQS &
MM_newQS = MM_newQS & Item & "=" &
Server.URLencode(Request.QueryString(Item))
End If
Next
if (Len(MM_newQS) > 1) Then MM_logoutRedirectPage =
MM_logoutRedirectPage & MM_newQS
End If
Response.Redirect(MM_logoutRedirectPage)
End If
%>
<!--#include file="Connections/thirtyfirst.asp" -->
<%
' *** Restrict Access To Page: Grant or deny access to this
page
MM_authorizedUsers=""
MM_authFailedURL="/login.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1)
Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar =
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer =
MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar &
"accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<!--#include file="Connections/thirtyfirst.asp" -->
<!--#include file="Connections/thirtyfirst.asp" -->
<%
Dim rs02__MMColParam
rs02__MMColParam = "1"
If (Request.QueryString("text") <> "") Then
rs02__MMColParam = Request.QueryString("text")
End If
%>
<%
Dim rs02
Dim rs02_numRows
Set rs02 = Server.CreateObject("ADODB.Recordset")
rs02.ActiveConnection = MM_thirtyfirst_STRING
rs02.Source = "SELECT * FROM texts WHERE ID = " +
Replace(rs02__MMColParam, "'", "''") + ""
rs02.CursorType = 0
rs02.CursorLocation = 2
rs02.LockType = 1
rs02.Open()
rs02_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = 10
Repeat1__index = 0
rs02_numRows = rs02_numRows + Repeat1__numRows
%>
<%
Dim MM_paramName
%>
<%
' *** Go To Record and Move To Record: create strings for
maintaining URL and Form parameters
Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth
Dim MM_removeList
Dim MM_item
Dim MM_nextItem
' create the list of parameters which should not be
maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
MM_removeList = MM_removeList & "&" &
MM_paramName & "="
End If
MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepURL = MM_keepURL & MM_nextItem &
Server.URLencode(Request.QueryString(MM_item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepForm = MM_keepForm & MM_nextItem &
Server.URLencode(Request.Form(MM_item))
End If
Next
' create the Form + URL string and remove the intial '&'
from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then
MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "") Then
MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If
' a utility function used for adding additional parameters to
these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Admin - Results</title>
<style type="text/css">
<!--
.style1 { font-size: 24px;
font-weight: bold;
color: #990099;
-->
</style>
</head>
<body>
<p align="center" class="style1">31st Avenue Missionary
Baptist Church<br />
Administration Page </p>
<p
align="center">_________________________________________________________</p>
<p align="right"> <a href="<%= MM_Logout
%>">Log out</a></p>
<div align="center">
<table width="442" border="0">
<tr>
<td width="442"><div
align="left"></div></td>
</tr>
<% While ((Repeat1__numRows <> 0) AND (NOT
rs02.EOF)) %>
<tr>
<td width="442"><div align="center">
<p align="left">Message: - <A
HREF="/detail.asp?<%= Server.HTMLEncode(MM_keepURL) &
MM_joinChar(MM_keepURL) & "ID=" &
rs02.Fields.Item("ID").Value %>">Edit</A></p>
<div align="left">
<p><%=(rs02.Fields.Item("ppage").Value)%></p>
</div>
</div></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rs02.MoveNext()
Wend
%>
</table>
</div>
<div align="center"></div></body>
</html>
<%
rs02.Close()
Set rs02 = Nothing
%>
I can tell you guys really want to help, but please consider me
a beginner. I don't see "VbCr" or "Chr10" in my code anywhere. or
what to actually replace. I appreciate everything that has been
posted. Can you be a little more specific for adumb
programmer. -
Connecting a CSS doc to an XML file, in a dynamic text field in Flash
Hi all,
I am trying to connect a CSS file such that it applies it
self to the content of an XML file, viewed inside a dynamic text
field. So far I have managed to gather the code that "calls" the
contents of the XML file and also the code that calls the CSS file.
However, when I test the flash movie I get "undefined" instead of
the actual copy.
Attached then is the the AS code, XML file, and CSS file. I
hope you could help me connect everything together.
And of course, THANKS!!
-----AC------
Scrolling Text XML by Digital Science |
www.digitalscience.za.org
/////////////Load XML Data/////////////
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
header = [];
txt = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
header
= xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
txt
= xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
gotoAndStop(11);
} else {
errorMsg.text = "Error loading XML";
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("ewmn_content.xml");
stop();
import TextField.StyleSheet;
var ss:StyleSheet = new StyleSheet();
ss.onLoad = function() {
txt_mc.styleSheet=this; // where yourTF is your textfield
ss.load("jokes.css"); // where yourSS.css is your css file.
-----XML----------
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="jokes.css"?>
<JOKES>
<ONE>Tirza Sapir</ONE>
<JOKE>Founder and choreographer of the RikudNetto dance
group, teacher and lecturer, researcher, documenter and
choreographer within the framework of Eshkol-Wachman Movement
Notation. She was Head of the School of the Arts of Dance at the
Seminar Hakibbutzim College of Education, 2000–2007, where
she established the Dance Theatre and the Practicing Teachers
courses, and specialized training in Teaching and Treatment of
Learning Disabilities by means of Eshkol-Wachman Movement Notation.
She has written three books containing the movement scores of dance
suites: Birds, Landscapes, and Hanukka Notebooks. Member of the
Movement Notation Society, 1968–2008. Student and colleague
of the late Professor Noa Eshkol who was the co-founder and
inventor of Eshkol-Wachman Movement Notation.</JOKE>
<ONE>Sharon Reshef-Armony</ONE>
<JOKE>Head of the School for the Arts of dance at the
Kibbutzim College of Education in Tel Aviv. Teaches EWMN,
dance-theatre and composition. Choreographer of theatre plays and
film. Selected works: Hunger (Tmuna Theatre 2003-09), Film - Live
(Haifa Theatre 2007-08), Yakish & Pupche (Gesher Theatre
2007-09), Children of a lesser God (Beer Sheva Theatre 2008-09).
M.Ed (1997) from Lesley College MA in Creative Arts in Learning.
Doctoral student at ResCen, Middlesex University/ London.
Dancing in Rikudnetto group since 1990.</JOKE>
<ONE>Tally Ronen</ONE>
<JOKE>M.Ed. at Lesley University in Integrating Arts in
Learning.
Educational instructor at Kibbutzim College of Education and
teaching dance in schools and at Clore Center, Upper Galilee. Dance
choreographer for children.
Dancing in Rikudnetto group since 1991.</JOKE>
<ONE>Nira Al-Dor, Ph.D</ONE>
<JOKE>20 years of Teaching EWMN at the School of the
Dance Arts in Kibbuzim College of Education and at the School of
Arts in Tel Aviv. Her study was focused on the impact of learning
EWMN on the development of coordination.
Dancing in Rikudnetto group since 1986.</JOKE>
<ONE>Henner Drewes</ONE>
<JOKE>Lectures at the Kibbutzim College of Education in
Tel Aviv on dance and notation related technology. In 2008 he
started working as a research assistant at Salzburg University in
the project Visualizing Dance Archives.
He was awarded the Tanzwissenschaftwpreis NRW, Germany 2006
for his research on 3D representation of movement and notation.
Ph.D. (2002) at the University of Leipzig. He is the author
of the software EW Notator, a 'word-processor' for creating EWMN
scores.</JOKE>
<ONE>Shlomit Ofer</ONE>
<JOKE>M.A. at Haifa University at the Faculty of
Education with distinction, and currently doctoral student there.
Educational instructor and teacher of EWMN at Kibbutzim
College of Education. Staging performances of dance theatre in the
community.
Dancing in Rikudnetto group since 1993.</JOKE>
<ONE>Lilach Shalit</ONE>
<JOKE>M.A. in Expressive Therapies with specialization
in dance-movement therapy at Lesley University.
Educational instructor and teacher of EWMN in the course for
Dance-Theatre at Kibbutzim College of Education. Also teaching EWMN
in the School for Advanced Studies of the college, course for
Learning Disabilities, and at Orot College.
Dance-movement therapist and team coordinator at 'Tom' school
for learning disabilities and owner of a private clinic for
dance-movement therapy.
Dancing in Rikudnetto group since 1998.</JOKE>
<ONE>Michal Manor-Amir</ONE>
<JOKE>M.A. at the University of Leeds (Bretton Hall
College and Israel Extention) in Arts Education specialization in
Dance. Doctoral student at the Hebrew University of Jerusalem, in
the Faculty of Humanities, the School of Education.
Teaching movement in the Kibbutzim College of Education
within preparatory courses of Dance, Dance-Theatre and within the
Preschool course.
A corrective teacher through movement and EWMN in elementary
and high schools, and a national teacher-instructor at the dance
supervisor's office in the Israeli ministry of education.
Dancing in Rikudnetto group since 1998.</JOKE>
<ONE>Amit Chesny-Bahari</ONE>
<JOKE>B.Ed. at Kibbutzim College of Education.
Teaching movement and dance to preschool and high school
children.
Dancing in Rikudnetto group since 2004.</JOKE>
<ONE>Orly Yaakov</ONE>
<JOKE>B.Ed. at Kibbutzim College of Education, and
graduating from the special education faculty.
Teaching EWMN and creative movement at elementary schools as
well as special education school for children ages 6-21 with medium
to deep retardation. Also teaching creative movement and
preparation for ballet to preschool children.
Dancing in Rikudnetto group since 2006.</JOKE>
</JOKES>
------CSS-----
JOKE
COLOR: #333333;
DISPLAY: block;
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
WHITE-SPACE: normal;
font-size: 11px;
MARGIN-BOTTOM: 15px;
BODYBLD
COLOR: #990000;
DISPLAY: block;
FONT-SIZE: 11pt;
FONT-WEIGHT: bold;
MARGIN-BOTTOM: 0px
BODYBOLDUN
COLOR: #00CCFF;
DISPLAY: block;
LINE-HEIGHT: normal;
MARGIN-BOTTOM: 10px;
TEXT-ALIGN: left;
font-size: 11px;
text-decoration: underline;
font-weight: bold;
ONE
COLOR: #00CCFF;
DISPLAY: block;
LINE-HEIGHT: normal;
TEXT-ALIGN: left;
font-size: 14px;
font-weight: bold;
white-space: normal;
QUESTION
COLOR: red;
DISPLAY: block;
FONT-FAMILY: Arial;
FONT-SIZE: larger;
FONT-VARIANT: normal
TITLE
COLOR: black;
DISPLAY: block;
FONT-FAMILY: 'Arial Black';
FONT-SIZE: 14pt
CATEGORY
FONT-FAMILY: Arial;
FONT-SIZE: 8pt;
FONT-VARIANT: small-caps;
TEXT-TRANSFORM: uppercaseIn essence you can just do:
TextField.text = XML.node1 + XML.node2; -
Adding a math amount to dynamic text
Hi all,
I am working on a key pad that has a clock, allows you to
enter a time amount and then count down that amount or add seconds
to it.
Here is the file:
Flash
movie
As you can see there are a few things that I have been unable
to do due to my beginning skill level:
1a) 2 :34 PM isnt really a functioning clock, its just text.
While it doesn't need to actually work like a real clock, it should
have the colin blinking, and when you press any of the 1 - 9
numbers, it should clear away and present : 00, or : 0(number of
pressed button).
1b) How do I constrain the dynamic text box to only four
numbers in the format of "xx : xx", where x is any number from 0 to
9, then a space on either side of the colin. Numbers get added from
the right x first and get pumped to the next placeholder. (dc : ba)
2) Again, pressing OK doesnt really countdown anything, it
just says "cooking'. Upon pressing OK, how to I tell the button to
count down to zero whatever the number is in the dynamic text box?
3) The add button is supposed to add 2 seconds to whatever
number (except the clock) is displayed in the dynamic text box, but
it simply places a 2 next to the numbers. If 1:04 is displayed,
then pressed Add should equate 1:06, not 1:042
Here is the code:
btn1.theNumber.text = "1";
btn2.theNumber.text = "2";
btn3.theNumber.text = "3";
btn4.theNumber.text = "4";
btn5.theNumber.text = "5";
btn6.theNumber.text = "6";
btn7.theNumber.text = "7";
btn8.theNumber.text = "8";
btn9.theNumber.text = "9";
btn0.theNumber.text = "0";
okButton.theNumber.text = "OK";
cancel.theNumber.text = "CANCEL";
addmore.theNumber.text = "Add";
theCode.text = "2 : 34";
btn1.onPress = function () {
theCode.text += "1";
btn2.onPress = function () {
theCode.text += "2";
btn3.onPress = function () {
theCode.text += "3";
btn4.onPress = function () {
theCode.text += "4";
btn5.onPress = function () {
theCode.text += "5";
btn6.onPress = function () {
theCode.text += "6";
btn7.onPress = function () {
theCode.text += "7";
btn8.onPress = function () {
theCode.text += "8";
btn9.onPress = function () {
theCode.text += "9";
btn0.onPress = function () {
theCode.text += "0";
okButton.onPress = function () {
theCode.text = "Cooking";
cancel.onPress = function () {
theCode.text = "2 : 34";
addmore.onPress = function() {
theCode.text = theCode.text + 2;Ok,
Here is what I have been trying, seen below, following what
Don mentioned. However, I get an error if I keep the " " around the
0 in the last bit of code. And in reference to my first post, how
do I expand the code to satisfy those questions. I'll keep trying!
btn0.theNumber.text = "0";
btn1.theNumber.text = "1";
var numZero:Number = 0;
var numOne:Number = 1;
var numTwo:Number = 2;
var numThree:Number = 3;
var numFour:Number = 4;
var numFive:Number = 5;
var numSix:Number = 6;
var numSeven:Number = 7;
var numEight:Number = 8;
var numNine:Number = 9;
btn0.onPress = function () {
theTime.text = numZero
btn1.onPress = function () {
theTime.text = numOne
if(numZero <10){
numZero = "0" + numZero
**Error** Scene=Scene 1, layer=actions, frame=1:Line 27: Type
mismatch in assignment statement: found String where Number is
required.
numZero = "0" + numZero
Total ActionScript Errors: 1 Reported Errors: 1 -
Creating Dynamic Text Field for Flash CS3 in Illustrator CS3
I've created a series of buttons in an illustration and made
them into movie clip symbols in Illustrator. I then created some
text fields for the button labels and assigned them as dynamic text
in the Flash Text panel in Illustrator.
When I import the illustration into Flash and test the movie,
I get this error message:
TypeError: Error #1034: Type Coercion failed: cannot convert
flash.text::TextField@d18cef9 to flash.display.MovieClip.
at
flash.display::Sprite/flash.display:Sprite::constructChildren()
at flash.display::Sprite$iinit()
at flash.display::MovieClip$iinit()
at menu2_fla::MainTimeline$iinit()
It seems like Flash is misinterpreting the text fields
brought in from Illustrator as Movie Clips?Download the TinkSpark source from http://code.google.com/p/tink/source/checkout and add the package to your project:
Then write the following code:
import ws.tink.core.Library;
import ws.tink.events.LibraryEvent;
import ws.tink.managers.LibraryManager;
private function loadLibrary():void
var library:Library = LibraryManager.libraryManager.createLibrary( "assetsLibrary" );
library.addEventListener( LibraryEvent.LOAD_COMPLETE, onAssetsLibraryLoadCompleteHandler, false, 0, true );
library.loadSWF("board.swf" ); //provide the path of board.swf, pls note board.swf is alos exported as AS3.0
private function onAssetsLibraryLoadCompleteHandler( event:LibraryEvent ):void
EventDispatcher( event.currentTarget ).removeEventListener( event.type, arguments.callee );
var library:Library = LibraryManager.libraryManager.getLibrary( "assetsLibrary" );
var AssetScore:Class = library.getDefinition( "Score" );
var score:* = new AssetScore() as Sprite;
score.scoreDisplay.text = "100";
addChild( score );
Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com/ -
How to load dynamic text inside a movie clip?
hello all - i have a main stage where on the first frame my
"home" movie clip displays. i did this by dragging/dropping, and
then i put a stop action. all works fine.
inside this home movie clip on the main stage, there are
links to other movie clips. for example, to get to my faq's page -
you click that button, then it takes you to frame 4 on my main
stage, where my faq's movie clip (followed by stop action) has been
dragged/dropped and displays properly.
within the faq's movie clip this process is repeated, with
buttons taking to you various pages (different frames where
different movie clips play - all works fine).
so now i want to add a dynamic text field within my faq's
movie clip. i have read numerous tutorials where i have created the
text file but i have not been able to display it with success
within my faqs movie clip.
here is some code that my dvd tutorial instructs me to place
on main stage as i practice getting this to work:
var myMCL:MovieClipLoader = new MovieClipLoader ();
var myListener:Object = new Object();
myMCL.addListener(myListener);
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function (success:Boolean) {
if (success) {
_level5.loadedInfo.htmlText = myLV.info;
} else {
_level5.loadedInfo.text = "There has been an error loading
the requested information. Please contact the webmaster.";
and here is some code that i place on the faqs button within
my main movie clip that takes me back to main stage and plays faq
movie clip all successfully:
on (release) {
//Movieclip GotoAndPlay Behavior
_root.gotoAndPlay("4");
//End Behavior
and finally, here is some code that i place within my faqs
movie clip in an attempt to display my dynamic text within the faqs
movie clip - so far unsuccessful:
_level0.myLV.load("vars/faqs.txt");
NOTE:
i have published this to view - not working.
i have my faqs text file starting as info=
i have eliminated white space within my text file
i am using flash 8 pro
can anyone offer some sugestions? thanks!hmmmmm lemme double check as i seem to be a bit lost now.
// this is my actions layer code on frame 4 of main timeline:
stop();
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function (success:Boolean) {
if (success) {
_level5.loadedInfo.htmlText = myLV.info;
} else {
_level5.loadedInfo.text = "There has been an error loading
the requested information. Please contact the webmaster.";
myLV.load("vars/faqs.txt");
1. fyi - at frame 4 on main timeline, one layer beneath the
actions layer where i dragged/dropped my faqs movie clip i gave my
faqs movie clip an instance name of "mainfaqs" - although nowhere
do i refer to this specific mc within my code.
2. where would i replace/insert the following code?
_level0.faq_mc.loadedInfo.text = myLV.info;
3. i didn't know about embedding font but i saw the option
and embedded it - still no results.
4. i'm not sure how to do the following:
_level5.loadedInfo.text ='test'; //although I would still
change the path as above
To see if your getting a return from the load call adn text
file, use a trace statment before the success condition and see
what it returns:
trace(myLV);
sorry to be such a pain - i really have looked around for
answers through previous postings and i googled it and i've been
taking instruction through lynda.com and dvds but i seem to be
stuck here.... as always - thanks for your time -
Im am currently working on a flash website and have succeeded
in making a scrolling text area... the thing is the text is dynamic
and you can't change like one word into one specific font... i've
been also trying to link this certain word to a different frame in
the scrolling text area but i can't! also i want to make an image
appear when you "mouse over" a certain word in this dynamic text
area. Any help would be much appreciated thank you.Hi kglad,
Thank you for the note. I have gone over the Actionscript and
can find no obvious flaw. Can you tell me how a property might be
assigned before the text is loaded? Could network traffic affect
this?
I did some tests during peak usage times.
The tests of the project seem to indicate that once the error
was encountered and the content reloaded (keeping the same session)
that the error would not reoccur. Closing the session and browser
and er-entering resulted in no error.
However, closing the session then deleting cookies and/or
temporary internet files then starting a new session caused the
problem to reoccur. I could delete just the cookies and the problem
would reoccur. I could delete just the temporary internet files and
the problem would reoccur.
Again, the error, when it does occur, seems to affect some
text fields more than others and never consistantly. Its a moving
target.
Thank you for your earlier clue.
Tim -
Hello
I've created a button "link1" and a dynamic text box
"my_dynamic_text". When i click on the link i want it to load my
text. For the text loading I followed this link
EXAMPLE
But i get some errors
**Error** Scene=poetry, layer=link1, frame=1:Line 5:
Statement must appear within on handler
myData = new LoadVars();
**Error** Scene=poetry, layer=link1, frame=1:Line 7:
Statement must appear within on handler
myData.onLaod = function(success){
**Error** Scene=poetry, layer=link1, frame=1:Line 15:
Statement must appear within on handler
myData.load("C:/Users/Shevi/Web Sites/Archi
Baldo/photo1.txt");
Total ActionScript Errors: 3 Reported Errors: 3
any idea??
Thank youHi Brian,
thanks for your help, this works.
But, do you know if I can specifiy the file path in an database field and crystal reports will load the file from the specific path.
Background:
I have descriptions for items and every item has its own description file.
If I create the report for item 1 I want to show the item description for item 1, when I create the report for item 2 then I want to show the item description of item 2 etc.
Thanks
Jacqueline
Maybe you are looking for
-
1200 all in one wont print due to door open error message wont clear
how do i clear an error message when there is no error
-
IPhoto book displaying corrupt pictures
I successfully ordered a number of calendars iLife 08. Image quality was great ... no complaints. HOWEVER, when I received my first hardcover book, I was surprised to see 8 photos displaying what appeared to be corrupt files. Subsequently, with the h
-
How can I get a new password to do an upgrade to my Flash player?
How can I get a new password to do an upgrade to my Flash Player?
-
Font and icons are too small in workspace
I've used photoshop elements 10 ad it's worked fine on my other computers. I just purchased a new computer, same size monitor and I can barely read the font or text on it. I have 20/20 vision but the workspace is so small on this computer. I've tried
-
CSS copy everything from slot0 to slot1
Is there a way to copy everything I have from slot0 to slot1 in a CSS 11500 ? When I say everything I am mainly looking at services, content rules, header fields, source groups, ssl certificates? A Cisco rep told me to issue a copy 0 command and I ha