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!
Mike
Hi 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
Similar Messages
-
Running with Flash Pro CS 6 and Captivate 5.5.
I have a Captivate project with an embedded UI created with Flash. I want a text field (called Titled ) in Captivate to be accessed and displayed within the Flash UI. The text field will be different on each Cap slide, so the Flash UI should read it each time a new slide begins.
Reading on the net shows that Dynamic Text should do it, but there are no useable examples to draw upon for inspiration.
Can anyone out there inspire me?
Thanks.I don't know how much help it will be but you should check
out
this
link to a page at Paul Dewhurst's web-site "RaisingAimee". You
may not be able to get to that page until you register as a user on
Paul's site. If you run into that, register, then try the link
again.
If this is any help to you, drop a few pieces-of-eight in
Paul's PayPal account, and maybe send him a personal "thank you" on
his Shout Box. If it doesn't work, it might be because those
particular FLAs were created for version 1, as I remember, and may
be to some extent version-specific. In any case, it might be worth
a try.
~best wishes for your success,
Larry -
Load dynamic text into Captivate form external file
Is it possible to load dynamic text into a Captivate file from an external file like an XML using Javascript.
I see there's a way to get it form the query scring of the URL ( http://captivatedev.com/2011/05/01/how-to-jump-to-a-specific-slide-in-a-separate-course/ ), but I have a project where I want several pieces of text to be replaced and we want to be able to edit it externally from the Captivate file.
Thanks!Hi Ned,
What I'm doing is using a yahoo map to load addresses and
place custom swf files as the placemarkers. The main stage has an
instance of myMap, which is the map that yahoo sets us to display
the ACTUAL map. They have also provided coding for placing markers
on the map, which is what I'm using.
I have the addresses throughout multiple xml files, which I
am actually loading through 1 single xml file. These addresses are
being stored in an array, then called by the AS below to place
markers. All the markers are placed correctly, however, I am trying
to have them actually say the address - this is where the problem
lies.
The marker that is being located and placed has a text field
called load_text in it. I want that field to load the same address
that is being used to place it (from the array addressA).
I'm very confused because every loop through the * for (i=0;
i<addressA.length; i++) * loop the marker is placed at the
correct addressA
location, but I cannot actually get the address to load into the
load_txt field in the marker. I can even run a trace during that
loop and it traces addressA for each address, but I can't seem
to actually load those values into the load_txt box.
Do you have any ideas? -
How to embed the Greek language Characters in flash dynamic text field
Hi,
I have a problem with dynamic text field in flash. I want ot embed Greek Language characters like ≤, ≥, ± etc through actionscript (embedFonts).
Plz help.
Rakesh KumarHi,
First u must create the new font in right click on library then choose the font.
Right click on the font add linkage name that name here is my font
import flash.text.TextFormat;
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "my font";
my_txt.embedFonts = true;
my_txt.text = "Hello world";
my_txt.setTextFormat(my_fmt);
Try this. i think it will help u.
Saransoft -
I've created a dynamic (scrolling) text field in Flash MX
2004 Pro. The text contains links to webpages. The links work in
the published Flash SWF but not when I place the SWF in Director.
Please help?
LarsYou need to catch the getURL() message in Director and have
it open your
browser to the link. Try attaching the following as a
behavior to the
Flash sprite:
on getURL me, aLink
gotoNetPage(aLink)
-- better to use Buddy API:
-- OK = baOpenURL(aLink)
end -
Embed Fonts in Dynamic Text Fields
Hey, I am relatively new around here although I've been a
member for years. I am just now starting to utilize my account. I
do have a question in regards to embedding fonts in Flash 8. I have
read up on this numerous places and haven't been able to find a
solution that works for me, whether this my user error or not is
still TBD.
I am loading text from a XML document into Flash dynamic text
fields. I need to be using a handwritting font for these text
fields. After embedding the handwritten font they are not
displaying in my dynamic fields but are displaying in my static
text fields that am I also using on the site. I am controlling my
dynamic text fields w/ an external stylesheet. I believe I must do
something "additional" for these dynamic text fields but haven't
figured out what that is, any help anyone can offer is much
appreciated! Thanks.floateronline wrote:
> Hey, I am relatively new around here although I've been
a member for years. I
> am just now starting to utilize my account. I do have a
question in regards to
> embedding fonts in Flash 8. I have read up on this
numerous places and haven't
> been able to find a solution that works for me, whether
this my user error or
> not is still TBD.
>
> I am loading text from a XML document into Flash dynamic
text fields. I need
> to be using a handwritting font for these text fields.
After embedding the
> handwritten font they are not displaying in my dynamic
fields but are
> displaying in my static text fields that am I also using
on the site. I am
> controlling my dynamic text fields w/ an external
stylesheet. I believe I must
> do something "additional" for these dynamic text fields
but haven't figured out
> what that is, any help anyone can offer is much
appreciated! Thanks.
the question is a bit too general. There are many ways to
approach it, from copies
of text fields with that font off stage, to embedded outlines
and linkage in the library.
My guess is that somewhere on the way you did not fully
complete the outline embed options.
Either done incorrectly or you miss some action.
Mind to post detail explanation how you embed the outlines?
Best if you post an example
file for us to check.
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Tables in dynamic text field???
Hi,
I am trying to organize an html text in flash dynamic text
field into tables, I tried using
testText=<textformat
tabstops='[50,100]'><b>Name\tAge\tDepartment</b>\nTim\t32\tFinance\n<u>Edwin</u>\t46\tMar keting</textformat>
but this works only when text variable testText is set inside
flash script. When loaded dynamicly using LoadVars all
<textformat tabstops... tabs are just not seen and are omitted.
I tried to google some answers and I found that textformat tabs
work only for embedded text. Ok, so I used actionscript command
myText.embedFonts = true;
but then I lost all visible text. How come that Flash doesn't
have some easy way to create so basic thing as tables? Thanks for
any answer,
Zbynek
here is my fla script:nobody any ideas?!
-
Using dynamic text in Flash Builder
Hi,
I'm trying to get some dynamic text to my web page. The text is readed from .txt file
I use AS script which i was using in a project I made with Flash Pro and now i try to implement it in Flash Builder project
The script look like this:
var req:URLRequest = new URLRequest("design_1.txt");
var loader:URLLoader = new URLLoader();
function textLoaded(event:Event):void
design.text = loader.data;
loader.addEventListener(Event.COMPLETE, textLoaded);
loader.load(req);
So first I made a project with Flash Catalyst and in there I created an area text element. Then I imported the project to Flash Builder and put the AS script in the <Script> section and gave the <RichText> an id="design". The text is just simple text and formatting happens in richtext element.
So, when i try to compile the FB project it give me and parse error "undefined property error req", "undefined property error loader" etc.
So should i alter the AS script for FB or is there something else wrong? I tried to google how to use dynamic text in FB but couldn't find any easytyutorials. I'm mostly a desginer so coding isn't my speciality. But thanks for help!Hi Amy,
You can customize 'New class' generation under Preferences->Editors->Flash
Builder->FileTemplates->Action Script->New ActionScript class.
Currently there are no template variables available constructors. But you
can customize it as following,
$
${import_declaration}
$ {
public function ${class_name}() { -
How to display dynamic text in flash CS5....
i am using flash cs5...i created a game but when i m running it...it is showing a message saying "Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts""
and i am not getting my dynamic text output.......please hwlp me out!!!!!!As the error message says, you need to embed the font(s) that you use in any input or dynamic text object so that Flash will have that font to use when displaying the dynamic text. There are several different ways to accomplish this. Are you using textField objects on the stage, or are you creating instances of textFields using Actionscript?
-
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; -
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/ -
Flash button with dynamic text
I'm trying to create a flash button so that it can toggle
between "Sound On" and "Sound Off" but I feel like I'm doing
something wrong and it errors out on me.
I have a button on stage as, and in my up/over/down/hit in
different colors I have a dynamic text field identified as
sound_txt.
Here's the script I have so far for my frame:
stop();
mutebtn.addEventListener(MouseEvent.CLICK,muteDo);
function muteDo(event:MouseEvent) {
if (mutebtn.sound_txt.text == "Sound Off") {
mutebtn.sound_txt.text = "Sound On";
} else {
mutebtn.sound_txt.text = "Sound Off";
and this is the error message I am getting:
TypeError: Error #1010: A term is undefined and has no
properties.
at buttontst_fla::MainTimeline/muteDo()
TypeError: Error #1010: A term is undefined and has no
properties.
at buttontst_fla::MainTimeline/muteDo()
Can someboy please advise as to how I can get this to
work?I tried bringing the textfield out of the button but while it
worked when I pressed the button portion that is not under the
text, it was the part of the text that got in the way from doing
anything. I wonder where I can find an existing example that works
the way I want it too so I can at least follow that example. I
think I tried making the dynamic text a movie clip but was still
getting similar errors.
Edit: I at least got it to work by converting the button into
a movie clip although I had also wanted it so that I could also
change the foreground color of the dynamic text upon rollover,
etc. -
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. -
Can't get dynamic text in Flash 8 pro to work
Hi,
This is driving me nuts. I am using SWObject to send a
variable to my Flash 8 swf. The swf is basically a header that
plays a video and I want to put the name of the web page
dynamically on top of it. Sounds simple right. Well I can not get
it to work. In the past I have done dynamic text boxes without any
problem.
I have uploaded all the files to my clients server (
including the fla and the HTML page that accesses the swobject code
I have also tried other more conventional means to load the
Variables ( in the URL address and using Flashvars with a normal
object and embed tag ) Nothing seems to work.
Is there a problem with dynamic text and Flash 8?
I'm pulling my hair out any help would greatly be
appreciated, Thanks in advance.
Zip file on the
server with all the filesHi jimWPX, I have no problems with dynamic text in Flash 8,
and I see no problems in your file.
Could it be that the js doesn't parse for Flash 8 correctly?
A quick check for version seems to suggest that it's embedding with
tags for v 6 Flash. Might be problematic.
An alternative is FlashTag.js,
http://www.macromedia.com/go/flashjavascript/
which works fine for me also. Hope it helps -
Dynamic Text in Flash/Image
Hi All,
I cant find any simple tutorials, can anyone help me and
explain how to very simply, display one variable of text from a
database as flash format (or a type of dynamic image)?
Using CS3, and ColdFusion. I'm playing games with it and
think i'm just name the variable wrong either in a flash file or cf
page. But anyway, any simple method to dynamically display text as
an image will work.... please help.
Thx,
Mikeprobably the simplest way will be passing your text to your
flash movie
as the movie url's query string variable (in the
[object]/[embed] html
tags). inside the flash movie set a dynamic text box to
display the
passed variable:
if you google "pass variable to flash" you will see a lot of
examples of
code involved. just make sure your flash movie is large
enough to
display all passed text, and the passed text is url-encoded.
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
Maybe you are looking for
-
How can I force a Word document to be routed immediately from Word
When using Word to create and save a document to SharePoint Library that is using Content Organizer (Drop Off Library), Word displays a common Routing information status, and also asks you to check in a document if check out is enabled. My question i
-
What is the best practice for timezones on routers and switches? Should I make them all the same, say EST? Since this is where all the management servers reside or should they be set to where they are located? Should I be using GMT/UTC time? Comme
-
Java.lang.StackOverflowError on Go To Code in Page Flow Diagram
If I select Go To Code in a Struts Page Flow Diagram with a Data Page, the cursor changes to a hourglass and back to a pointer and nothing else happens. The java window reports a java.lang.StackOverflowError. Normally, I would expect the create class
-
Hi all, When queried with dbms_mview.explain_rewrite,it shows materialized view used and rewritten but neither explain plan nor autotrace shows use of mview? Materilized view is a complex topic.
-
I'm currently running 10.3.9 on a 1.8 GHz dual Power Mac. In a year and a half I have never needed Classic because all my OS 9 programs have been upgraded to OS X. Do I need to keep it on my hard drive? I'd like to trash it, but don't want to throw a