Moving js and embed code into linked files

Hello all,
I am trying to "optimize" some of my web pages by moving as
much code as possible into linked files. I'm using Flash 8 in
conjunction with Dreamweaver 8. I am also employing some DW
behaviors, like swap image, that generate javascript.
I am wondering if it's possible to put the javascript code
and all the code thats generated to embed Flash movies into a page
into a linked file, and if so, how?
Any direction will be much appreciated,
Scott

This Article covers rather more than you are asking about,
but you may
be inspired to streamline your page even further than you're
planning on
now:
http://divahtml.com/articles-tutorials/site_maintenance/SSI_and_other_external_files.php
E. Michael Brandt
www.divaHTML.com
divaPOP : standards-compliant popup windows
divaGPS : you-are-here menu highlighting
divaFAQ : FAQ pages with pizazz
www.valleywebdesigns.com/vwd_Vdw.asp
JustSo PictureWindow
JustSo PhotoAlbum, et alia

Similar Messages

  • How to insert landing site and impression code into swf files

    Hi guys!
    i got problems.
    Actually, i dont have  knowleage about tracking and clicks.
    I want to find out how to use it and use it in swf files.
    i want to insert landing site and impression code into swf files but i dont know how to do it.
    i want insert two link below into swf files.
    Impression:
         http://impgb.tradedoubler.com/imp?type(inv)g(xxxxxxx)a(xxxxxxx)
    Click:
         http://clk.tradedoubler.com/click?p=xxxxxx&a=xxxxxxx&g=xxxxxxx
    Can you show me how to do that?
    Thanks for your helps.

    You would need to creat a invisible button or movieclip on a new layer on top and have it fire a external javasctipt function you create in the HTML header that will then call those URLs .

  • After update I am no longer able to open email attachments by just clicking on the attachment. I now have to click control and then click open linked file. How can I open attachments by simply clicking on them?

    After update I am no longer able to open email attachments by just clicking on the attachment. I now have to click control and then click open linked file. How can I open attachments by simply clicking on them?

    Unless you believe middle-click is yours and don't like it being usurped, mine is set globally to "Enter".

  • I have to average data of 1min and then log into text file

    For my application i have to average data of 1min and then log into text file. please guide me on this . To transfer the data i am using notifier.
    Prashant Soni
    LabVIEW Engineer

    hi prashant,
      Check this attachment..I just implemented my idea    in this one.
    Thanks and regards,
    srikrishnaNF
    Attachments:
    Example_VI_BD.png ‏12 KB

  • Extraction of oracle pkg and pkg bodies into spool file??

    Hi,
    I need to extract all packages and its bodies into spool file. can you give me script or guide how to do this.. i have more than 200 packages.. need to create spool file for each package. great thanks for help.
    /mr
    Edit/Delete Message

    From 10g, DBMS_METADATA is designed for ! :)
    [http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_metada.htm#i1019414]
    Edited by: Leo Anderson on 1 sept. 2008 14:22

  • A script that captures the coordinates of the mouse clicks and saves them into a file

    Hello,
    I'm trying to create a cartoon taking a movie (I've chosen blade runner) as base. I've got the real movie and I've exported all the pictures using VirtualDUB. Now I have a lot of images to modify. I would like to modify the actors faces with the faces generated by Facegen modeller. I'm thinking how to make the whole process automatic because I have a lot of images to manage. I've chosen to use Automate BPA,because it seems the best for this matter. I'm a newbie,so this is my first attempt using Adobe Photoshop and Automate BPA. I wrote a little script. It takes a face generated with Facegen modeller and tries to put it above the original actors faces. But it doesn't work very good and I'm not really satisfied,because the process is not fully automated. To save some time I need to write a script that captures the coordinates of the mouse when I click over the faces and that saves them into a file,so that Automate BPA can read these coordinates from that file and can put the face generated with Facegen Modeller above the original face. I think that Automate BPA is not good for this matter. I think that two coordinates are enough,X and Y. They can be the coordinates of the nose,because it is always in the middle of every face. It is relevant to knows how big should be the layer of the new face,too. This is the Automate BPA code that I wrote :
    <AMVARIABLE NAME="nome_foto" TYPE="TEXT"></AMVARIABLE>
    <AMVARIABLE NAME="estensione_foto" TYPE="TEXT"></AMVARIABLE>
    <AMSET VARIABLENAME="nome_foto">br</AMSET>
    <AMSET VARIABLENAME="estensione_foto">.jpeg</AMSET>
    <AMVARIABLE NAME="numero_foto" TYPE="NUMBER"></AMVARIABLE>
    <AMVARIABLE NAME="coord_x" TYPE="NUMBER"></AMVARIABLE>
    <AMVARIABLE NAME="coord_y" TYPE="NUMBER"></AMVARIABLE>
    <AMWINDOWMINIMIZE WINDOWTITLE="Aggiungere_layer - AutoMate BPA Agent
    Task Builder" />
    <AMWINDOWMINIMIZE WINDOWTITLE="AutoMate BPA Server Management Console
    - localhost (Administrator)" AM_ONERROR="CONTINUE" />
    <AMENDPROCESS PROCESS="E:\Programmi_\Adobe Photoshop
    CS5\Photoshop.exe" AM_ONERROR="CONTINUE" />
    <AMRUN FILE="%&quot;E:\Programmi_\Adobe Photoshop CS5\Photoshop.exe&quot;%" />
    <AMPAUSE ACTION="waitfor" SCALAR="15" />
    <AMSENDKEY>{CTRL}o</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="1" />
    <AMINPUTBOX RESULTVARIABLE="numero_foto">Inserire numero FOTO di
    partenza -1</AMINPUTBOX>
    <AMINCREMENTVARIABLE RESULTVARIABLE="numero_foto" />
    <AMPAUSE ACTION="waitfor" SCALAR="1" />
    <AMMOUSEMOVEOBJECT WINDOWTITLE="Apri" OBJECTNAME="%nome_foto &amp;
    numero_foto &amp; estensione_foto%" OBJECTCLASS="SysListView32"
    OBJECTTYPE="ListItem" CHECKOBJECTNAME="YES" CHECKOBJECTCLASS="YES"
    CHECKOBJECTTYPE="YES" />
    <AMMOUSECLICK CLICK="double" />
    <AMPAUSE ACTION="waitfor" SCALAR="10" />
    <AMSENDKEY>{CTRL}+</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="20" />
    <AMSENDKEY>l</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="429" MOVEY="281" RELATIVETO="screen" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="659" MOVEY="281" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="659" MOVEY="546" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="429" MOVEY="546" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="429" MOVEY="281" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMSENDKEY>v</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK CLICK="hold_down" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="131" MOVEY="99" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="99" MOVEY="162" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK CLICK="release" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMINPUTBOX RESULTVARIABLE="coord_x">Inserire coordinata X</AMINPUTBOX>
    <AMINPUTBOX RESULTVARIABLE="coord_y">Inserire coordinata Y</AMINPUTBOX>
    <AMMOUSEMOVE MOVEX="200" MOVEY="200" RELATIVETO="screen" />
    <AMMOUSECLICK CLICK="hold_down" />
    <AMMOUSEMOVE MOVEX="%coord_x%" MOVEY="%coord_y%" RELATIVETO="position" />
    <AMMOUSECLICK />
    and this is a short video to explain better what I want to do :
    http://www.flickr.com/photos/26687972@N03/5331705934/
    In the last scene of the video you will see the script asking to input the X and the Y coordinates of the nose. This request is time consuming. For this reason I want to write a script that captures automatically the coordinates of the mouse clicks. The only thing to do should be click over the nose and the script should make the rest. As "c.pfaffenbichler" suggested here : http://forums.adobe.com/thread/775219, I could explore 3 ways :
    1) use the Color Sampler Tool’s input with a conventional Photoshop Script.
    2) use After Effects would provide a better solution.
    3) Photoshop’s Animation Panel might also offer some easier way as it might be possible to load two movies (or one movie and one image) and animate the one with the rendered head in relation to the other.
    Since I'm a totally newbie in graphic and animation,could you help me to explore these ways ? Thanks for your cooperation.

    These are the coordinates of the contours of the face that you see on the picture. Can you explain to me how they are calculated ? The coordinates of the first colums are intuitive,but I'm not able to understand how are calculated the coordinates of the second one.
    Thanks.
    1 COL     2 COL (how are calculated these values ?)
    307.5000 182.0000 m
    312.5000 192.0000 l
    321.5000 194.0000 l
    330.5000 193.0000 l
    335.0000 187.0000 l
    337.0000 180.5000 l
    340.0000 174.0000 l
    338.5000 165.5000 l
    336.0000 159.0000 l
    331.5000 153.0000 l
    324.5000 150.0000 l
    317.0000 154.0000 l
    312.5000 161.0000 l
    309.0000 173.0000 l
    307.5000 182.0000 l
    Message was edited by: LaoMar

  • IO - Read two image files and put them into one file

    Hi,
    i have 3 files in all. The two image files and one text file. I need to place the image in the first image file, followed by text in the text file and then the image in the second image file, into one file.
    Can anyone tell me how do i go about doing this ?
    i tried using fileinputstream and fileoutputstream, which works fine if all the 3 files have text but when the first and the third file have image, the code doesn't give any error but the result file displays only the image from the first file and nothing else.
    i am running short of time and need to do this really soon.
    if anyone has done anything like this. please let me know,
    thanx,
    poonam

    One approach would be to programmatcally create a single zip/jar file from the three input files. You can use the java.util.zip and java.util.jar packages for this purpose.
    The other apprach would be to create a single image by drawing images and text strings on a BufferedImage object.
    I think the first approach is preferable because you can easily extract the individual files from the zip/jar file

  • ActionScript 2.0 to be able to embed URL into SWF file?

    Hello,
    It seems that the web based newspaper who is going to publish my ad banner doesn't have flash player 10 (or 9). My ad banner was made in Flash CS4 / ActionScript 3.0. Instead I now have to change the code in my invisible button to ActionScript 2.0 to be able to publish it in flash player 8. What is the ActionScript 2.0 code so I can make the same embed URL into my SWF file as I did with the following ActionScript 3.0:
    function linkToSite(evt:MouseEvent):void {
         var url:String = "http://www.IMAGESofFISHERMEN.com/?p=50#more-50";  // replace with your url
         var req:URLRequest = new URLRequest(url);
         navigateToURL(req, "_self");
    urlBtn.addEventListener(MouseEvent.CLICK, linkToSite);
    Regards
    Maria

    As far as I know, the Flash player version should not be of any significance to the host service.  It is the Flash player in the site visitor's web browser that decides matters.
    In any case, that code would become...
    urlBtn.onRelease = function(){
         getURL("http://www.IMAGESofFISHERMEN.com/?p=50#more-50", "_self");

  • Put a youtube viewer embed code into an email

    I want to put a youtube video in an email. Not a link to a video but a viewer embeded in the email like on your FB wall

    Well, go to Youtube. Pick up the embed code they offer. Go to Thunderbird, create an html-formatted message. Go to '''Insert|HTML''', paste your embed code in to the box offered.
    It may or may not work; it depends a lot on whether your recipient's mail client supports this. Thunderbird itself will not run scripts, so I wouldn't expect anyone viewing your message using Thunderbird to see the viewer.
    Are you sure you want to do this? I could find it dreadfully embarrassing at work If I opened an email and it instantly started playing a video.

  • Looking for a way to combine audio and images together into movie file

    I am using JMF to make a tiny movie.
    The thing is that I've done making sequential images (.jpeg) into a .mov(quicktime) video file, but I am not sure how to add audio (in this case in a .wav file) into this .mov . Does anybody has any idea?
    Thanks.
    P.S. this is the file that I am using to generate .mov, which is an example from SUN.
    http://www.java2s.com/Open-Source/Java-Document/Graphic-Library/apollo/org/apollo/jmf/test/JpegImagesToMovie.java.htm
    Edited by: 877113 on Aug 3, 2011 6:29 PM
    Edited by: 877113 on Aug 3, 2011 6:30 PM
    Edited by: 877113 on Aug 3, 2011 6:31 PM
    Edited by: 877113 on Aug 3, 2011 6:31 PM

    877113 wrote:
    Does anybody has any idea? Merge the video track and audio track and write it to a file using a DataSink.
    Here's an example:
    http://web.archive.org/web/20080216001555/http://java.sun.com/products/java-media/jmf/2.1.1/solutions/Merge.html

  • Adding data from a rolling camera and entering it into a file

    i have managed to get my software to read camera input from a usb port! I would like it to be able t pause the rolling image and trnsfer a image of me into a file named owner, so it reconises me! NOTE! it should only have to take my profile when it is started for the first time! then i would like it to be able to acsess the file so it knows that i am the owner!
    how would i go about doing this!
    baring in mind it would need to permantly know who i am afterwards!
    to make it reconise me after the initial setup! would you sagest i se a random accses file so that it can acses it or not!
    and would i need to put a loop so that it can acses the file to know who i am all the time!
    I hope this makes sense!
    many thanks

    Hi and welcome to the forum.
    Is there a way to retrieve data from a blob field and save it to temp table.Why would you want to do that?
    Can you provide some more details regarding your requirement?
    (Don't forget to mention your database version as well)
    Also, I wonder why you've added a 'decompress' tag to your question?
    edit, after seeing Tubby's reply
    Dang, the connection must be frozen here ;)
    Edited by: hoek on Jan 6, 2010 9:06 PM

  • ODI:data RDBMS and put it into a file

    hi i need to put data from an rdbms to flat file using a variable to specify which file to put the data in.
    now i know how to put the data into flat file by specifying the file name as the resource name while creating the target datastore.
    now i need to use a variable instead of directly specifying the file name.
    the variable must contain a query that can fetch the file name based on the count of another variable..........so i can chose which file to write the data too......

    hi....thanks for the help
    i created a variable named var1
    i entered abc.txt as the default value of the variable.
    in the target datastore resource name i entered #var1
    and i created the package with var1 as refreshing followed by my interface as you said.
    the problem is that the file being created is with the name #var1 and not abc.txt
    when i open this file with notepad it contains the correct data.
    can you pls help me with this......

  • Recalling Spreadsheets and appending results into 1 file.

    Hi,
    i am in a stage of my program where i have to do numerical analysis on a set of data collected by an Optical spectrum analyser... the data has been saved in multiple spreadsheets... (each with a row for the wavelengths, x-values, and power, y-values)...i need to get the power values and put them all in 1 spreadsheet file, with the wavelngth values in the first row.
    so multiple 2D spreadsheets: Wavelength:  x1 x2 x3 .....
         Power 1     : P1 P2 P3....
         Wavelngth: x1 x2 x3...
         Power 2    : p1 p2 p3...
    Will turn to: Wavelength:  x1 x2 x3...
    Power11 P2 P3...
    Power21 p2 p3...
    attached below is my attempt at doing this, which doesnt seem to work. The loops are present so that 'read from spreadsheet' vi recalls all the spreadhseets...which it does do... but i don't know how to improve it so that all the files succesfully append into 1 2D array (as shown above).
    Please can someone help me figure out how to do this (recall multiple spreadsheets and then save into 1). right now only the files being recalled in the last loop iteration are saved into the single spreadsheet. 
    the file paths of the spreadsheets are all dependent on the number (N) so the file paths are such that 00.txt,01.txt,02.txt,03.txt...0N.txt, 10.txt,11.txt...1N.txt,20.txt,21.txt... etc ...NN.txt and teh final file will be RESULTS.txt (as seen in the pic)
    Any input will be greatly appreciated, it seems like an easy concept, but the answer totally evades me.  
    thanks a lot,
    Asiri  
    Attachments:
    Savespreadsheet.jpg ‏121 KB

    as you can see in the image, i have used the required VIs to recall and save the spreadsheets, what i am having problems with is appending ALL of the spreadsheets, my loops are not working properly, i only append a select number of spreadsheets/arrays together dependent on the loop iterations,
    perhaps its something wrong with the way i got everything wired? i index at the outer loop, however this information gets lots in subsequent iterations... what i need ideally is some sort of VI which inserts sub arrays into consequative rows in an array though just one input (such as in my loops).
    any suggestions are greatly appreciated.  
    thank you!
    asiri  
    Attachments:
    Savespreadsheet.jpg ‏121 KB

  • Javascript  and ehlp introduced into source files

    RH "stops responding" and closes-whenever it encounters one--making minor changes on a few topics has forced me to relaunch RH 30 times or more yesterday.
    Projects were generated with different versions of RH (5, 6,7,8) and I've been updating them (I apply a common .css by selecting all the topics in the topic list to each project by filey . Some were taken out of the RH versioning server. I've been working several inherited projects that were hastily converted into single source RH HTML 8 projects. The conversion, I think, is introducing certain kinds of javascript?  Until today, I thought the previous contributors were saving the published files because of messed up javascript.
    <style type="text/css">/*<![CDATA[*/ A:visited {color: #800080;} A:link {color: #0000ff;}/*]]>*/</style>
    (putting the above script into this forum message causes java another java function ($A(arguments))) to display in a tooltip for the cursor as I type)
    The scripting is not in all topics; certain editing actions cause RoboHelp HTML to shut down--perhaps it is editing a topic that LINKS to such a topic; can't say for sure. I have had a dickens of a time cleaning the gunk out of files: I do know that some topics have kadov tags nested in HTML tags, nested inside css styles (i.e. 3 ways to indicate <b> bold.
    I've put the css file through http://www.w3schools.com/site/site_validate.asp and when I run the validated css in the RH project, some styles get redefined. Any ideas on how to clean up the 990 topics in the project I'm working on this week?
    I had the same kinds of issues on a different project last week. What is an effective way to clean the scripts out of topic files?  The example above is broken into 2 to 6 lines, just before the <body> tag. Additonal js may occur in the footer, or in a numbered procedure. Not all topics, not all numered procedures.  There are 3 kinds of  < js start>   < js end > tags in various files.  I've been using InfoRapid Search and Replace (it can search across line breaks) but failed to spot EVERY script.

    Hi,
    The CDATA means unparsed data. This can be used for javascript, but you can use it for any data you need. If a chunk of data uses characters that are defined in the XHTML file system, a program may not be able to read the file. With the CDATA command, the program will correctly read the string.
    If what you posted is the text added, RH doesn't add javascript, it adds css. In this case the colour of visited hyperlinks and the colour of unvisited hyperlinks.
    You say you validated your css using the W3C validator. Is it validated, or are there errors? Also, the validator only checks your css, it doesn't change it. I don't see what RH would do to a css you've only validated. Can you be more specific?
    Have you run "Update DHTML Effects in Topics"? This feature may solve a lot of your problems. Just backup your projects first.
    For find and replace, try using dnGrep (http://code.google.com/p/dngrep/). It supports regular expressions and multi line search and it saved me a couple of times. I don't know the tool you're using, so I don't know why it can't find the text. Backup your projects before using this tool.
    Greet,
    Willam

  • Merge Multiple CSV Files Into One and save it into new file

    Below code run in specific directory. However I'm looking a code which will select the folder  & save it into new sheet.
    Can you help me with this? I've searched for a solution for a long time but could not find anything which worked.
    The following is the start of the macro code
    Sub OpenCSV()
    Dim i As Integer
    ' change this next line to reflect the actual directory
    Const strDir = "C:\Documents and Settings\shekar\"
    Dim ThisWB As Workbook
    Dim wb As Workbook
    Dim ws As Worksheet
    Dim strWS As String
    Set ThisWB = ActiveWorkbook
    Set fs = Application.FileSearch
    With fs
    .LookIn = strDir
    .Filename = "*.csv"
    If .Execute(SortBy:=msoSortByFileName, _
    SortOrder:=msoSortOrderAscending) > 0 Then
    For i = 1 To .FoundFiles.Count
    Set wb = Workbooks.Open(.FoundFiles(i))
    strWS = wb.Sheets(1).Name
    wb.Sheets(1).UsedRange.Copy (ThisWB.Worksheets(strWS).Range("A1"))
    wb.Close False
    Next i
    Else
    MsgBox "There were no files found."
    End If
    End With
    End Sub

    The below will do the.But be careful if any of csv file name is more than 31 then Excel will not allow it to name the sheet with filename.
    Sub OpenCSV()
    Dim i As Integer
    ' change this next line to reflect the actual directory
    Const strDir = "C:\Documents and Settings\shekar\"
    Dim ThisWB As Workbook
    Dim wb As Workbook
    Dim ws As Worksheet
    Dim strWS As String
    Dim sFileName As String
    Set ThisWB = ActiveWorkbook
    With Application.FileDialog(msoFileDialogOpen)
    .InitialFileName = strDir
    .Filters.Clear
    .Filters.Add "CSV Files", "*.csv"
    If .Show Then
    For i = 1 To .SelectedItems.Count
    Set wb = Workbooks.Open(.SelectedItems(i))
    sFileName = .SelectedItems(i)
    Set ws = ThisWB.Worksheets.Add(before:=ThisWB.Worksheets(1))
    ws.Name = ActiveSheet.Name
    wb.Sheets(1).UsedRange.Copy ws.Range("A1")
    wb.Close False
    Next i
    Else
    MsgBox "There were no files found."
    End If
    End With
    End Sub
    Please do not forget to click “Vote as Helpful” if any post helps you and
    Mark as Answer if it solves the issue.

Maybe you are looking for