External loading .txt file can I link URL in txt file?
So, I can't remember and it's not working. I basically want to add this to my text file:
<a href="http://www.gap.com" target="_blank">Go here</a>
which obviously doesn't work. what's the easiest way add HTML tags to a TXT file without changing the way the files being loaded too much?
var filename:String="text/home.txt";
var loaderText:URLLoader = new URLLoader();
var myRequest:URLRequest=new URLRequest(filename);
function loadFile(filename:String):void {
myRequest.url=filename;
loaderText.load(myRequest);
loadFile("text/press.txt");
textfield_InstanceName.htmlText = which for me would be: content_mc.pageText_txt.htmlText=pageText; in the complete event.
Similar Messages
-
How can I make my external loaded .SWF file smoothly disappear after 15 seconds?
Hi,
How can I make my external loaded .SWF file smoothly disappear after 15 seconds? The following is the code to load an external .SWF file:
var K:Loader=new Loader();
addChild(K);
K.load(new URLRequest("clock.swf"));
K.x = 165;
K.y = 247;
K.contentLoaderInfo.addEventListener(Event.INIT, growLoader);
function growLoader(evt:Event):void {
K.width = 130;
K.height = 130;
I want to make clock.swf file disappear from the page after 15 seconds using some smooth disappear effect.
Please help.
Thanks.Something even better:
http://www.greensock.com/
Check out TimelineMax I LOVE it...
The guy that made this (and gives it away for free!) is a saint. -
Accessing events from externally loaded swf file
hello,
I have an swf file developed in flash 8. After loading that
file into SWF Loader control in flex builder 3, how can we access
the controls and events present in that particular file ?"surya_dhul" <[email protected]> wrote in
message
news:gg84e2$slm$[email protected]..
> hello,
> I have an swf file developed in flash 8. After loading
> that
> file into SWF Loader control in flex builder 3, how can
we access the
> controls
> and events present in that particular file ?
I think you'll need to use localConnection. -
This magazine is just a simple PDF replica of our print magazine but I want to the URLs linked when I am viewing it on the iPad and Android devices. Is this possible?
So I just checked. All that script does is place PDFs into InDesign files. InDesign treats PDFs as static artwork so my answer stands.
You’ll have to open the individual InDesign files and add the hyperlinks. -
How to detect the end of a loaded swf file
Hello Guys
This is my first time on this forum, come here with a great
hope
I have loaded a picture file (jpeg) and a video file (swf)
into the main flash file using xml
on frame 3, I load the picture and on frame 7, I load the
video, there is a stop action on frame 6
Now when the flash is executed the picture is displayed ( it
says "Click here to view the video")
when the user click the picture , the video is loaded and
starts to play ---- so far everything is working fine
now what I want to do is, once the video finishes playing (
not stoped) I want to display the picture again
can you tell me how to detect the end of an external loaded
swf files,
Please help me
Thanking You
Shriram -
In my SWF fie, I have an externally loaded FLV file.
I now want to add another FLV that will load and play
automatically when the first one is finished.
I actually want the SWF to jump to a new scene when the first
movie is done.
How can I do that/ what the actionscript?
StevenHey Steven,
I am not very sure but just giving a shot answering it...
You can use FLVPlayback.complete event to detect the
comepletion of first flv and set the path of other flv on complete.
Something like this:
import mx.video.*;
my_FLVPlybk.contentPath = "
http://www.helpexamples.com/flash/video/clouds.flv";
var listenerObject:Object = new Object();
// listen for complete event; play new FLV
listenerObject.complete = function(eventObject:Object):Void {
if (my_FLVPlybk.contentPath == "
http://www.helpexamples.com/flash/video/clouds.flv")
my_FLVPlybk.play("
http://www.helpexamples.com/flash/video/water.flv");
my_FLVPlybk.addEventListener("complete", listenerObject);
Hope that works... -
Using the DateField in an Externally loaded SWF
Hello,
I have been having major trouble trying to get a basic PHP
contact form to work within an externally loaded SWF file inside of
a parent SWF. When I test the movie on its own it seems to work
fine (example: I'm able to select a date from the DateField
component). However, when I open up the parent SWF file and call
the external SWF file with the form the DateField is basically
unusable (example: when you click on it nothing happens, no
calendar pops up to select a date).
I have no ActionScript on it yet, simply because I figure I
need it to work before I tell it what to do with the PHP file. The
instance name on the DateField is "theDate". Any help is very much
appreciated. Thank you.
Also, I have just successfully used the contact form on the
web. But, the only user interface components I am able to edit are
the input text boxes, not the DateField or the ComboBox I have in
it as well. This is very odd, I was not aware that anything special
had to be done using these UI components within an external file.
ElijahHello 2m,
Maybe if you were to see it, it may help you out a bit. If
you
click
here for the external file you will see that the components are
working. However, if you
click
here for the parent file and then click on "Meetings" on the
top menu you will see that they do not work at all. However, if
someone were to hit the "send" button, the PHP code would actually
interact with the form. Let me know if that helps at all. Thanks
again for replying.
Elijah -
RE: Bookmarking; can you link to an external pdf file?
Hi, I apologize in advance if this question is stupid; I am very new to using Adobe Acrobat 7 and have not had any training using it, much less creating documents, extracting, linking, etc.
My employer creates PDF files of different documents, then wants to compile them into one new PDF file by extracting the information out of the individual PDF's and bookmark the information imported from each file.
The problem I'm running into is that some of the files are "protected" and I can only view or print them, I am unable to extract pages or copy from them.
It seems the only solution would be to make a bookmark that references the external "protected" pdf file from within the new compiled PDF, but I don't know how to do it.
Also, if anyone has a better solution, suggestion or advice for a better way to build these types of documents, I would be very appreciative of any help!
Thanks!Thanks, George!
I really appreciate everyone's help with this!
(It's helping to keep me employed)
You guys are really nice folks! -
Jsp related. user can down load a file from web when ever he clicks link
hai pls do me favour its very urgent pls
i have a link in jsp page if user clicks on a link ,,,,,,,,,, he will down load a file (page .....) and save to his worksapce or desktop.......pls help meNever mind...
Message was edited by:
Martin@Stricent -
Can I load xml file from SWC without using @embed
I'm developing a mobile application in which I need to load xml files from File.applicationDirectory. This works great if the xml files are part of the main application swf. But I would like to move these xml files into a SWC so they could be shared across multiple applications.
Using FlashBuilder 4.5, when a SWC is built, I can specify files to embed in the library that are not assets (Assets Tab of Flex Library Build Path). For various design reasons, I do NOT want to embed the xml files via @embed.
When the swc is built and I open it up using a zip utility, I see the xml files in there just fine. So they are being bundled with the SWC. But how can I load these files in my main application that does not involve using @embed? When the main application is built, the swc setting for link type is "merged into code".
I wouldn't expect the application to automatically pull out the xml files from the swc and place them in the File.applicationDirectory on the mobile device. I've tried loading from there just in case but file.exists is false (as expected).
I've searched the web (and continue to do so) and all the answers seem to be to use @embed. Is there another way?
RandyIt's actually a lot easier than you think.
Just reference the file like any'ol URL using a path relative to the SWC's src directory.
So if you include the file "assets/xml/some.xml", just use that same string like you would any remote resource.
For example:
var loader:URLLoader = new URLLoader( new URLRequest("assets/xml/some.xml"));
I believe it would also work like this "/assets/xml/some.xml", but I prefer relative paths so the link doesnt break if moved out of the SWC... -
MAC - Can't open a link/URL in a new tab inside a folder
I can't open a link/URL in a new tab inside a folder from a Mac. I am sure I can do that in PC. Please advice. Thanks in advance.
Does the URL go to a regular web page, or another kind of file (e.g., PDF, PowerPoint)?
If you right-click the link and choose Copy Link Location, then paste to the address bar and press Enter, does Firefox load the link as expected? -
The backup files for my devices are saved to my internal hard drive. I have a small internal hard drive and would like them to be saved to an external drive. How can I change where iTunes automatically backs up to?
This has nothing to do with iTunes as iTunes provides no way to move or relocate the backup files.
A search of google or the fourms would reveal ways to create a folder link to relocate the physical location where the files are stored. -
Issues loading .txt files from server...
Hi.
I have an issue with a script I created that loads text strings from a file on my server.
The swf file loads a message from a .txt file, displays it in an animation when the animation finishes it loops back to the start and loads the next message and displays it in the animation.
All works fine. However the script reads the text file from the server on every loop ( 3 seconds ) This will be hard on my server so... Is there a way to read the text file once only and then loop through the eight statements?
Thanks. Z
Actionscript 2. Flash CS3. Flash Player 10.
quotes.txt - text file containing eight quotes
quote_txt - Dynamic field within animation
ranQuote = new LoadVars();
ranQuote.onLoad = function(success) {
if (success) {
RanNum = RanNum+1;
if (RanNum>=9) {
RanNum = 1;
ran = this["quote"+(RanNum)];
quote_txt.text = ran;
} else {
ran = this["quote"+RanNum];
quote_txt.text = ran;
} else {
quote_txt.text = "Display if can't load txt file";
ranQuote.load("quotes.txt");Unless I'm missing something, each time you load the file you are loading the entire file. So you should have all of what's in it stored. Your load function appears to just be picking out one of them out randomly after they're all loaded.
I assumed wrongly that this isn't all the code you have and other loading code is what you are trying to inhibit.
What you probably want to do is take most of your onLoad code and place it into a function. What you have that is pulling up the quotes should utilize that function. You shouldn't be using that loading code each time some button or whatever loop cycles. -
Hi.
My PL/SQL procedure loading xml files from oracle logical directory ("c:\temp") and inserting values into columns of the table. I use XSU with procedure:
create or replace procedure insProc(xmlDoc IN CLOB, tableName IN VARCHAR2) is
insCtx DBMS_XMLSave.ctxType;
rows number;
begin
insCtx := DBMS_XMLSave.newContext(tableName); -- get the context handle
rows := DBMS_XMLSave.insertXML(insCtx,xmlDoc); -- this inserts the document
DBMS_XMLSave.closeContext(insCtx); -- this closes the handle
end;
For translate xml document to CLOB, I use :
CREATE OR REPLACE function getdocument(
p_directory in varchar2,
p_filename in varchar2)
return clob
is
l_bfile bfile;
l_clob clob;
begin
l_bfile := bfilename(p_directory, p_filename);
dbms_lob.open(l_bfile);
dbms_lob.createtemporary(l_clob, true, dbms_lob.session);
dbms_lob.loadfromfile(l_clob, l_bfile, dbms_lob.getlength(l_bfile));
dbms_lob.close(l_bfile);
return l_clob;
end getdocument;
I didn't have problem with this procedures. But now i want load my xml files from another computer (i want use URL, not oracle logical directory).
How can i do it, using standart PL/SQL methods?Since you are parsing the XML what prevents you from delaying your requests for the image URL's? You can just as well add the image URL's to some kind of collection and load them after you have processed all the text content.
-
I can not load RAW files from my nikon d810
I Have a problem Reading RAW files from my nikon d810
Thanks,
Joop
Op 26 jul. 2014 om 17:40 heeft Rikk Flohr <[email protected]> het volgende geschreven:
I can not load RAW files from my nikon d810
created by Rikk Flohr in Photoshop Lightroom - View the full discussion
https://forums.adobe.com/search.jspa?q=D810
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6585986#6585986
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Photoshop Lightroom by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.
Maybe you are looking for
-
Elements 7 freezing/non-responding issues
I have been trying to work with Elements 7 and am frustrated with it freezing up when getting into the organizer and only doing one or two "layers" of viewing and editing. I am running Vista and everything is up to date. Memory is 6GB or RAM, and d
-
How to set a condition to true if two items are both null ?
Hi, I want to set a condition to true if two items P42_FICHE_ID and P42_AGENT_ID are both null. How to do ? Sorry for being so dummy but could not find the answer in the Oracle documentation. Regards, Christian
-
How usnig manuplate the Import and export Key word.
How usnig manuplate the Import and export Key word? and how do the clear of those variable?
-
No button to click to burn a CD
I can't find the button to click to burn a CD on iTunes. And I feel really dumb asking where it is. I went to iTunes Help and it said "Click the Burn MP3 CD button (at the bottom of the iTunes window)." and I didn't see a button there. Where is it? T
-
"make dull sky blue" icon does not function
"make dull sky blue" icon on my Adobe Photoshop Elements 9 does not function