External text issue
I have tried to look up this issue in the flash help,
lynda.com and here with no luck.
I have an issue with external text that I import. The text
loads fine but when I click to go to another frame in the same
timeline the previous text stays and the new text renders over the
previous text. How do I delete the previous text file when I click
to go to another section.
Here is the code that I am using:
stop();
var externalText:TextField = new TextField();
var externalFormat:TextFormat = new TextFormat();
var externalRequest:URLRequest = new
URLRequest("../textFiles/home.txt");
var externalLoad:URLLoader = new URLLoader();
externalLoad.load(externalRequest);
externalLoad.addEventListener(Event.COMPLETE, textReady);
up_Btn.addEventListener(MouseEvent.CLICK, scrollUp);
down_Btn.addEventListener(MouseEvent.CLICK, scrollDown);
externalText.x = 34.6;
externalText.y = 42.1;
externalText.width = 374;
externalText.height = 211;
externalText.border = false;
externalText.wordWrap = true;
externalFormat.font = "Humanst521 BT";
externalFormat.color = 0xffffff;
externalFormat.size = 13;
addChild(externalText);
function textReady(event:Event):void
externalText.text = event.target.data;
externalText.setTextFormat(externalFormat);
function scrollUp(event:MouseEvent):void
externalText.scrollV --;
function scrollDown(event:MouseEvent):void
externalText.scrollV ++;
fuseDrinks_Btn.addEventListener(MouseEvent.CLICK, fdClick);
function fdClick(event:MouseEvent):void
gotoAndPlay("drink");
fuseFood_Btn.addEventListener(MouseEvent.CLICK, ffClick);
function ffClick(event:MouseEvent):void
gotoAndPlay("food");
fuseRes_Btn.addEventListener(MouseEvent.CLICK, frClick);
function frClick(event:MouseEvent):void
gotoAndPlay("rest");
Thanks for any help with this.
Rob
if you only change your urlrequest and keep the same
textfield, loader and listener you should have no problem.
otherwise, you're apt to have problems unless you properly account
for those objects you're not re-using.
p.s. unless you embedFonts, you're users are not likely to
see that font.
Similar Messages
-
Oracle 11g - External Table Issue SQL - PL/SQL?
Oracle 11g - External Table Issue?
=====================
I hope this is the right forum for this issue, if not let me, where to go.
We are using Oracle 11g (11.2.0.1.0) on (Platform : solaris[tm] oe (64-bit)), Sql Developer 3.0.04
We are trying to use oracle external table to load text files in .csv format. Here is our data look like.
======================
Date1,date2,Political party,Name, ROLE
20-Jan-66,22-Nov-69,Democratic,"John ", MMM
22-Nov-70,20-Jan-71,Democratic,"John Jr.",MMM
20-Jan-68,9-Aug-70,Republican,"Rick Ford Sr.", MMM
9-Aug-72,20-Jan-75,Republican,Henry,MMM
ALL NULL -- record
20-Jan-80,20-Jan-89,Democratic,"Donald Smith",MMM
======================
Our Expernal table structures is as follows
CREATE TABLE P_LOAD
DATE1 VARCHAR2(10),
DATE2 VARCHAR2(10),
POL_PRTY VARCHAR2(30),
P_NAME VARCHAR2(30),
P_ROLE VARCHAR2(5)
ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY P_EXT_TAB_D
ACCESS PARAMETERS (
RECORDS DELIMITED by NEWLINE
SKIP 1
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' LDRTRIM
REJECT ROWS WITH ALL NULL FIELDS
MISSING FIELD VALUES ARE NULL
DATE1 CHAR (10) Terminated by "," ,
DATE2 CHAR (10) Terminated by "," ,
POL_PRTY CHAR (30) Terminated by "," ,
P_NAME CHAR (30) Terminated by "," OPTIONALLY ENCLOSED BY '"' ,
P_ROLE CHAR (5) Terminated by ","
LOCATION ('Input.dat')
REJECT LIMIT UNLIMITED;
It created successfully using SQL Developer
Here is the issue.
It is not loading the records, where fields are enclosed in '"' (Rec # 2,3,4,7)
It is loading all NULL value record (Rec # 6)
*** If we remove the '"' from input data, it loads all records including all NULL records
Log file has
KUP-04021: field formatting error for field P_NAME
KUP-04036: second enclosing delimiter not found
KUP-04101: record 2 rejected in file ....
Our questions
Why did "REJECT ROWS WITH ALL NULL FIELDS" not working?
Why did Terminated by "," OPTIONALLY ENCLOSED BY '"' not working?
Any idea?
Thanks in helping.
Edited by: qwe16235 on Jun 11, 2011 11:31 AMI'm not sure, but maybe you should get rid of the redundancy that you have in your CREATE TABLE statement.
This line covers all fields:
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
{code}
So I would change the field list to:
{code}
DATE1 CHAR (10),
DATE2 CHAR (10),
POL_PRTY CHAR (30),
P_NAME CHAR (30),
P_ROLE CHAR (5)
{code}
It worked on my installation. -
Oracle 11g - External Table Issue?
Oracle 11g - External Table Issue?
=====================
I hope this is the right forum for this issue, if not let me, where to go.
We are using Oracle 11g (11.2.0.1.0) on (Platform : solaris[tm] oe (64-bit)), Sql Developer 3.0.04
We are trying to use oracle external table to load text files in .csv format. Here is our data look like.
======================
Date1,date2,Political party,Name, ROLE
20-Jan-66,22-Nov-69,Democratic,"John ", MMM
22-Nov-70,20-Jan-71,Democratic,"John Jr.",MMM
20-Jan-68,9-Aug-70,Republican,"Rick Ford Sr.", MMM
9-Aug-72,20-Jan-75,Republican,Henry,MMM
------ ALL NULL -- record
20-Jan-80,20-Jan-89,Democratic,"Donald Smith",MMM
======================
Our Expernal table structures is as follows
CREATE TABLE P_LOAD
DATE1 VARCHAR2(10),
DATE2 VARCHAR2(10),
POL_PRTY VARCHAR2(30),
P_NAME VARCHAR2(30),
P_ROLE VARCHAR2(5)
ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY P_EXT_TAB_D
ACCESS PARAMETERS (
RECORDS DELIMITED by NEWLINE
SKIP 1
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' LDRTRIM
REJECT ROWS WITH ALL NULL FIELDS
MISSING FIELD VALUES ARE NULL
DATE1 CHAR (10) Terminated by "," ,
DATE2 CHAR (10) Terminated by "," ,
POL_PRTY CHAR (30) Terminated by "," ,
P_NAME CHAR (30) Terminated by "," OPTIONALLY ENCLOSED BY '"' ,
P_ROLE CHAR (5) Terminated by ","
LOCATION ('Input.dat')
REJECT LIMIT UNLIMITED;
It created successfully using SQL Developer
Here is the issue.
It is not loading the records, where fields are enclosed in '"' (Rec # 2,3,4,7)
It is loading all NULL value record (Rec # 6)
*** If we remove the '"' from input data, it loads all records including all NULL records
Log file has
KUP-04021: field formatting error for field P_NAME
KUP-04036: second enclosing delimiter not found
KUP-04101: record 2 rejected in file ....
Our questions
Why did "REJECT ROWS WITH ALL NULL FIELDS" not working?
Why did Terminated by "," OPTIONALLY ENCLOSED BY '"' not working?
Any idea?
Thanks in helping.
Edited by: qwe16235 on Jun 10, 2011 2:16 PMThe following worked for me:
drop table p_load;
CREATE TABLE P_LOAD
DATE1 VARCHAR2(10),
DATE2 VARCHAR2(10),
POL_PRTY VARCHAR2(30),
P_NAME VARCHAR2(30),
P_ROLE VARCHAR2(5)
ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY scott_def_dir1
ACCESS PARAMETERS (
RECORDS DELIMITED by NEWLINE
badfile scott_def_dir2:'p_load_%a_%p.bad'
logfile scott_def_dir2:'p_load_%a_%p.log'
SKIP 1
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' LDRTRIM
MISSING FIELD VALUES ARE NULL
REJECT ROWS WITH ALL NULL FIELDS
DATE1 CHAR (10) Terminated by "," ,
DATE2 CHAR (10) Terminated by "," ,
POL_PRTY CHAR (30) Terminated by "," ,
P_NAME CHAR (30) Terminated by "," OPTIONALLY ENCLOSED BY '"' ,
P_ROLE CHAR (5) Terminated by ","
LOCATION ('Input.dat')
REJECT LIMIT UNLIMITED;
Note that I had to interchange the two lines:
MISSING FIELD VALUES ARE NULL
REJECT ROWS WITH ALL NULL FIELDS
Just to get the access parameters to parse correctly.
I added two empty lines, one in the middle and one at the end - both were rejected.
In the log file, you will see the rejectiions:
$ cat p_load_000_9219.log
LOG file opened at 07/08/11 19:47:23
Field Definitions for table P_LOAD
Record format DELIMITED BY NEWLINE
Data in file has same endianness as the platform
Reject rows with all null fields
Fields in Data Source:
DATE1 CHAR (10)
Terminated by ","
Enclosed by """ and """
Trim whitespace same as SQL Loader
DATE2 CHAR (10)
Terminated by ","
Enclosed by """ and """
Trim whitespace same as SQL Loader
POL_PRTY CHAR (30)
Terminated by ","
Enclosed by """ and """
Trim whitespace same as SQL Loader
P_NAME CHAR (30)
Terminated by ","
Enclosed by """ and """
Trim whitespace same as SQL Loader
P_ROLE CHAR (5)
Terminated by ","
Enclosed by """ and """
Trim whitespace same as SQL Loader
KUP-04073: record ignored because all referenced fields are null for a record
KUP-04073: record ignored because all referenced fields are null for a record
Input Data:
Date1,date2,Political party,Name, ROLE
20-Jan-66,22-Nov-69,Democratic,"John ", MMM
22-Nov-70,20-Jan-71,Democratic,"John Jr.",MMM
20-Jan-68,9-Aug-70,Republican,"Rick Ford Sr.", MMM
9-Aug-72,20-Jan-75,Republican,Henry,MMM
4-Aug-70,20-Jan-75,Independent
Result:
SQL> select * from p_load;
DATE1 DATE2 POL_PRTY P_NAME P_ROL
20-Jan-66 22-Nov-69 Democratic John MMM
22-Nov-70 20-Jan-71 Democratic John Jr. MMM
20-Jan-68 9-Aug-70 Republican Rick Ford Sr. MMM
9-Aug-72 20-Jan-75 Republican Henry MMM
Regards,
- Allen -
Find Change through external text file
Hello folks
I am bit pretty in InDesign scripting so could you please look into this.
How can i change any particular text field in Indesign CS3 document from text file.
I do have find change script but for each InDesign document specific text file is assigned.
So each time i have to modify find change GREP property that is also repetetive of work. Is there any way to get find change information should be extract from external text file.
Many Tanks in advanceIn the FindChangeByList script, you could customize the function myFindFile(myFilePath) {...} as to search the FindChangeList text file in the document location rather than the script location. That's an example. The question is: given a document, where will you have the corresponding FindChangeList?
@+
Marc -
Add one character at a time from External Text file
Hi,
I'm using Flash 8, and I have created a standard Dynamic
field that pulls the text from an external text file using the
LoadVars function and it works fine.
To get the correct effect for the design, I would like to be
able to create the illusion that the characters are being typed out
when the page loads as if someone has started typing and also hear
the "Typewriter Clack" each time a character appears.
The only place I have found an example is on the Syphon
Filter Game website which seems to have created the illusion
perfectly:
http://www.syphonfilterdarkmirror-thegame.com/en_IE/
(Check out the bottom right section)
I could create a Movieclip and add a character each frame
but, I would like to be able to edit the text when required via a
text file or even ASP or PHP if neccessary.
Any help would be grateful.
Cheersor here:
http://www.actionscripts.org/tutorials/beginner/Scripted_Typerwriter/index.shtml -
How to load external text file into a Form?
Hi,
I made a menu with 1-5 in a Form and 5 external text files. I want the user who is able to view the text content of the text file when he chooses one of them from the menu. And the text file screen has a "Back" command button to let him go back.
How can I do it and can it support other languages such as Chinese and Japanese?
Thanks for help.
gogoSorry, I made the mistake about the subject, it should be loading local file, not external file through http.
I wrote a method but it throwed an exception when the midlet was run.
private void loadText()
try {
InputStream is = this.getClass().getResourceAsStream("/text.txt");
StringBuffer sb = new StringBuffer();
int chr;
while ((chr = is.read()) != -1)
sb.append((char) chr);
is.close();
catch (Exception e)
System.out.println("Error occurs while reading file");
I put the text.txt file in the same folder with the main file (extends midlet). How can I load the text content and display it on StringItem?
Thanks for any help.
gogo -
AS3: Loading External Text into a Master File
I have a master file that I want to load an external text
file into. This external text file will also have an external style
sheet applied to it.
In your opinion, which way is best to load the external text
file?
1) Generate a text field dynamically in the master file using
the TextField class and then loading the external text in.
2) Placing (at authoring time) a dynamic text box on the
master file's stage and loading the text in.
3) Placing a dynamic text box in a separate .swf file and
then loading that external swf in to the master file, then loading
the external text into the text box.
Any opinions?
Thanks...
BrendaOn my project im going with the third choise, dont ask why,
cause i just do.
only difference is that i also lad my data into this external
swf file.
in other words i use mainly second as well as im going with
the third one.
In my opinion, no idea if thats the best way, but i certanly
know that its (for me) most confortable way. -
Accented Characters Support for External Text Files
Hi there! I created a site which imports external text from a
TXT file. The text is in Spanish, so I need accented vowels and
Ñs. I've tried using simple text and HTML text... but when I
run my movie, it doesn't show these international characters.
Instead, I get some weird symbols or question marks... What should
I do? Thanks in advance!Hi,
Try this link it may have what your looking for it worked for
me!
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14143
Danielle -
Drag and drop external text into a Flex component
Hi,
is there any way to allow drag and drop of external text (for
example, selected text from another browser or even from the
address bar) into a Flex component like TextArea? I know how to
drag and drop between two different Flex components but in this
case, the source is external. There must be something I can do to
TextArea like its dragdrop property to allow this feature... any
help would be greatly appreciated.
Thanks,
JoshShort answer: Yes, as long as it is an AIR app.
Browser-based Flex apps do not have access to
ClipBoardFormats, so I'm not sure it is possible to do what I think
you want to do -- have a web-based Flex app that allows you to drag
and drop selected text from other apps. Most possibly because of
the security sandbox that the Flash player runs in.
However, if you wanted to do it in an AIR app, I built this
as an example for you (you can view a "cleaner" version with proper
indents at
http://pastebin.com/f741cbac8
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="initDandD();" width="500" height="600">
<mx:Script>
<![CDATA[
public function initDandD():void {
addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER,
onDragIn);
addEventListener(NativeDragEvent.NATIVE_DRAG_DROP,
onDragDrop);
private function onDragIn(e:NativeDragEvent):void {
if(e.clipboard.hasFormat(ClipboardFormats.TEXT_FORMAT)) {
NativeDragManager.acceptDragDrop(this);
private function onDragDrop(e:NativeDragEvent):void {
var myString:String =
e.clipboard.getData(ClipboardFormats.TEXT_FORMAT) as String;
myTextArea.text = myString;
]]>
</mx:Script>
<mx:TextArea id="myTextArea" width="326"
height="262"/>
</mx:WindowedApplication> -
Essbase 6.5 External Authentication Issue!! Urgent Please!!
Hi all,
I am great trouble over an external authentication issue in Essbase 6.5. I request you all to please give me your feedback on the same as soon as possible.
I am in a situation where I need to get my Essbase 6.5 external Authentication converted from LDAP to Active Directory services.
I suppose there has been necessary changes done to the .cfg file for the same. However, I think I am getting an error
"User [vikc]'c external authentication protocol [MSEX]'s password check module is not loaded".
Please let me know if you have come across such an issue earlier and can anybody to able to help me with the same.
Its kinda Urgent. so any replies for the same will be appreciated.
Thanks and Regards,
VikramVikram,
Yes you will have to reconfigure the CSS.xml and cfg file for external auth.
Here is the Sample CSS
<spi>
<provider>
<msad name="full360">
<trusted>false</trusted>
<url>ldap://192.168.1.100:389/DC=full360,DC=com</url>
<userDN>CN=Ravinder Singh,DC=full360,DC=com</userDN>
<password>full@360</password>
<authType>simple</authType>
<identityAttribute>dn</identityAttribute>
<maxSize>1000</maxSize>
<user>
<loginAttribute>sAMAccountName</loginAttribute>
<nameAttribute>dn</nameAttribute>
</user>
<group>
<nameAttribute>cn</nameAttribute>
<objectclass>
<entry>group?member</entry>
</objectclass>
</group>
</msad>
Download this toll "http://www.ldapbrowser.com/download.htm"
LDAP browser to get the perfact DN information.
Let me know the status
Ravikant -
Automatically update of quotation item external text
Hello Cloud folks,
we want use quotation item external text for transfer custom information from C4C to ECC.
It's possible automatically update item external text with our custom information?
In case of positive answer how we can do that?
Thanks and regards.
DanieleHi,
with repository explorer we found for Busisness Object "Customer Quote" that the element to use to force a value in external text could be Item.ItemTextCollection.Text.TextContent.
Studio Compiler return the error message "Identifier 'TextContent' is read-only and cannot be changed" when I try to write a value there using the script Event-BeforeSave.
The code inserted in the script il like this:
this.Item.ItemTextCollection.Text.TextContent = "TEST TEST TEST";
Could you tell me if I'm using the wrong element or I'm using the correct element but the way to use this is different?
If the element is correct, which is the right code to write a value in it?
If we try to use another solution for reach our scope and we try to transfer our custom fields created with studio, How can we extend wsdl file of the IFlow CustomerQuoteProcessingSalesOrderRequestOut?
Thanks in advance for your suggestions.
Best regards.
Daniele Monti -
Layer Source Text linking to external text. (no code in doc!)
I've seen linking to text documents with code snippets in it.
So that means the external text document must contain bits of scripting.
I would like to link to txt documents (or csv) that do not contain code.
Total noob users must be able to link a text to a After Effects project.
I have a website data catcher which exports CSV values.
It would be ideal if After Effects can hoover up the text and put certain pieces into certain source texts.
We're talking automated sports cards here.
Is this possible without adding code to a text dump?
Or is this just impossible?The basic idea is to use something like this:
myPath = "/c/test/txt.txt";
$.evalFile (myPath);
The text file does need to contain legal JavaScript code, but it could be as simple as this for a text layer:
"this is a test"
You generally want to wrap the $.evalFile() in a try/catch so that you can have an error string like "Not found." display if your path is bad, like this:
myPath = "/c/badpath/txt.txt";
try{
$.evalFile (myPath);
}catch(err){
"Not found."
Dan -
I am new to Flash/ActionScript and hope I can explain this
problem, because I am completely lost as to what went wrong. I am
working on a hurricane tracker.
First I have comboBoxes with a list of storm names, when
selected an XML file is loaded and tracks the storm, using
different color mc's for the storm's intensity.
Then I have some buttons that when clicked, pop-up a white
background and load some external text.
The problem is that both of these work, until one of the
storms in the comboBox is selected, then the pop-up will not work.
I'm sorry for the inability to phase this in
ActionScript-speak, but appreciate any help and thanks in advance.Can you attach some code wrt the combobox and the buttons and
how they command other movie elements? -
Scrolling bar with external text
Hi,
I'm trying to create a scroller bar with external text on Flash, but not suceeding much. I want to do it in AS 2.0, as my whole website is created in AS 2.0. I found a tutorial on Kirupa for Flash MX 2004, but does not work with Flash CS4, which is what I'm running.
What I need is, basically, to have a scroll bar to scroll up and down an external text (XML or .txt). I just don't seem to be able to do it. Also, is there a way of customizing the scroll bar?
Thanks for the help!
N.Hey, I had to do a VERY similar thing for a student project a
few months ago. If you go to
Flashkit.com, you can find
tutorials on how to import XML and CSS or XSL. I was able to do it
and I don't know a lot of actionscript. If you want to see how I
used it, go to
the University of Scranton's MIT
website.
Hope that helps! -
Loading external text, transition effects
does anyone know how the text effect seen on
addition.com (under
the details section) is made? Also, can it be made by loading an
external text file? if anyone can help or point me in the right
direction of a tutorial, it would be greatly appreciated.
thanks-well, I hadn't seen the text under the details section, I
hadn't even selected one of the menu items. So after doing so i
think I have an answer for you, and did test the theory. If you
adjust the 'leading' property of a the setTextField() function
using a variable that is redefined within a loop, you can change
the width of the line spacing. On the first frame used the code,
var leading_fmt:TextFormat = new TextFormat();
leading_fmt.leading = 30;
leading_txt.setTextFormat(leading_fmt);
onEnterFrame = function() {
if(leading_fmt.leading > 0) {
leading_fmt.leading -=1;
leading_txt.setTextFormat(leading_fmt);
Looks like you could adjust things however you would like
using this method. I'm not certain how they created the color
change though, I guessing that you could do that with a
translucient mask effect over the top of the field, or by using the
text as a mask rather. Just make sure that the character set you
wanting to use is embed within the dynamic field, and you should be
set.
Maybe you are looking for
-
.and I don't want to upgrade FF to what might be a beta version to get this status4eva addon! I prefer to keep my status bar visible as I have a weather addon and like to see up to the minute info on the temperature outside and I use foxclocks to kee
-
The page doctype in not supported
Hi, I've ensured that the page doc type is that which is supported, AND that it's the first line of code. I have the following doctype:- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > Yet the error in Internet Explorer (only) persi
-
Passing HTTP Headers from BPEL to a RESTFul service in SOA 11g PS2.
Hi All, We have the following requirement. We need to pass the following headers to RESTFul service. x_invensys_wss_username = "Some UserName" x_invensys_wss_password = "Some Password". I tried to first pass username and password properties by follow
-
Intermittant greying out of filters in photoshop cs4?
Greetings everyone This is probably a stupid question but why does photoshop occasionally grey out some of my filters? Its often when i have a vector smart object [ie imported from IL], but even if i rasterize it, the filters remain grey and unusuabl
-
Infotype 1002 (LMS Course Description): Is there any report?
Hi Experts We want to print all description for our courses in a report. Is there any report in SAP which takes the description data from infotype 1002. I know the tables hrp1002 and hrt1002 as well as the view hrv1002a. But I can't find any report w