Run AS3 script via html codetag?

From what I know, it is possible to add <a href="....">
or <a href="mailto:..."> in order to set dynamically a
specific substring of a text to do either navigation to other page,
or open to e-mail client. But is it possible to do much more
important things, by just calling an AS3-function?... I am talking
about a hyperlink to AS3 script code, instead to email client /
browser.
I.e. I want to download dynamic text with the names of
Authors of papers from a database, and parse them serial i.e.:
Authors:
Author1Name,
Author2Name, ...,
AuthorKName".
When the user press on a name, to open a vector flash pop-up
(MovieClip) as a data-card of the specific Author. This could be
done if there was an Flash-HTML tag like <a
fref="loadModule(1)">
Author1Name</a>, which would run the
loadModule(1) function of the parent MovieClip that contains
the dynamic text.
I know something like this doesn't exist (
add it to wishlist for future versions! :) ), but is there
any other way to do it, except from creating one Object per author
with MouseEvent listeners and place them dynamically to correct x,y
positions?...

It's as you describe it, with one problem: the "button"
position and size is dynamically text-depending and not known
before the data parsed to screen.
Example:
Create a textField and add inside it a dynamic text like:
"Bill Gates created Microsoft". If this text was static I could add
2 transparency buttons (listening to: MouseEvent.CLICK), one over
"Bill Gates" and one over "Microsoft", where the first would make
visible a movieclip talking about Bill Gates, and the second would
make visible one movieclip talking about Microsoft.
But the text can come as: "Microsoft was created by Bill
Gates", or "There is a company named Microsoft, which was created
by Bill Gates", or "Windows is a software created by Microsoft.
Bill Gates was the one that created Microsoft". Thus you can't have
apriori knowledge on where to put the buttons. In more advanced
examples, I might not know how many buttons I should place also
(i.e. of authors - i don't know apriori how many authors a paper
has).
This is same as in case of hyperlink: We don't know where a
hyperlink can be, thus we place a tag for every hyperlink into the
text that defines that hyperlink position and action.
The only way to overcome this problem (just though of it) is
to create my own tag, and before parse the text to check for that
tag. For every tag to find the starting coordinates of it's inside
text on the parent movieclip (x,y) and the ending coordinates - and
providing that they have the same y-coordinate (no line change), to
create a transparent button at the specific area over the text.
If this is the only way to do it (thus making my own
pseudo-html tag inside flash),
I must know if it is possible to take (x,y) coordinates (in
pixels) of a letter (upperleft corner) in a dynamic textbox.
kglad, do you know if this is possible and how to do it?... (It may
need to open new thread for this)...

Similar Messages

  • Running Calc Scripts via Workspace

    Currently users are given 'admin' access to Essbase. That way when they are in Workspace they can see and run calc scripts on their apps. Is there a more proper way to give users the ability to run a calc on their apps without giving them 'admin' access?

    We have the calc scripts that run for data loads and other automated processes. Some of these calc's which are just AGG's and Calc Dim's I guess could be BR's too, but then we would have duplicates......
    Thats the sorry reason :)

  • Running Bash scripts via /Library/LaunchDaemons

    I have a .plist in /Library/LaunchDaemons that calls a Bash script that lives in /usr/bin.. ...
    With the script, one if the things I am trying to do is copy a directory from a non-admin user account, and place it on the administrator desktop.. Something like :
    cp -R /Users/myuser/theDirectoryIwant /Users/admin/Desktop
    The above code runs fine from Termimal ( I do 'sudo' first '), but if I add the line to the script...nothing seems to happen..I know the script is running ( I have it set for every hour in the .plist file, and I can see output in the Console) ...since it will run code such as this just fine :
    cd ~/Desktop
    mkdir Test
    I am guessing that anything called from usr/bin would not need 'sudo' in a shell script there since it is already running as root?

    I would suggest that you test your launchd environment out by capturing the output from
    date >/tmp/myscript.txt
    pwd >>/tmp/myscript.txt
    id >>/tmp/myscript.txt
    printenv >>/tmp/myscript.txt
    Now allow this to be run via your launchd .plist and then look at the output. That should tell you what your environment looks like when your .plist runs.

  • Run calc script via business rule

    Hello all,
    I have calc scripts and business rules in my hyperion essbase.
    one of the calc scripts e.g. aggregates some values.
    In the business rule i copied the code from the calc script and this business rule can be executed in the planning tool.
    Now, everytime when i change the code from the calc script, i have to change same things at the business rule.
    And now my question:
    Is it possible to start a calc script with the business rule?
    e.g. content of business rule: execute "calc_aggregate"
    Is there a command?
    Then it would save time and i only have to change the calc script and not both.
    Thanks for your efforts,
    Chris

    1) try to use essbase 9.3 with dataexport command in calc script (this version essbase is compatible with planning versions 9x and 4.1)
    2) you can write (or found in google) UDF function for run system command or (and) export data set
    3) you can run system command from Planning web and run CSC and RUL from essmsh
    ER

  • Running PHP script via ColdFusion

    I'm running CFMX 7 on a Solaris platform with PHP 5.0.5.
    I need to determine the width and height of an uploaded image
    to ensure that the file can be reasonably used on a web page. I
    have scoured the Internet and found a numer of solutions to this.
    Most need the installation of additional software on our server and
    the creation of a custom tag. These are doable, but would require
    additional effort I don't have time for at the moment. Also, the
    software to install is a full image manipulation package that is
    definitely overkill for my needs. Kind of like threading a needle
    with a hammer.
    On the other hand I know that PHP has a command called
    "getimagesize" that would be perfect for my use. This would be much
    more simple and elegant. And I have created a small program (see
    below) that can accept a location of an image file and display the
    width and height of the image as a result. The code is:
    <?php
    list($width, $height) = getimagesize($argv[1]);
    echo "$width, $height";
    ?>
    I've tested it via the command line and it works fine.
    However, I'm having difficulty in running it via the ColdFusion
    cfexecute tag. Here is that code:
    <cfsavecontent variable="imgsize">
    <cfexecute name="#phpfilelocation#"
    arguments="#imagelocation#"></cfexecute>
    </cfsavecontent>
    I get nothing back from this. I've also tried the cfhttp tag
    with similar results. It seems to me that the argument (the
    location of the image) is not being accepted by the PHP code for
    some reason.
    I've looked for a solution to this within this forum and via
    Google, etc. to no avail. There is apparently something about PHP
    or ColdFusion that is escaping me. Any help clarifying why this is
    not working and (hopefully) a workaround would be very much
    appreciated. Thank you.

    Maybe this will help:
    http://groups.google.com/group/alt.comp.lang.coldfusion/msg/af84ac7dfec0d09e?dq=&hl=en&lr= &ie=UTF-8&oe=UTF-8&rnum=8

  • Executing PowerShell script via JAVA

    Hi,
    I have simple powershell script as below :
    # Filename: Hello.ps1
    Write-Host
    Write-Host 'Hello World!'
    Write-Host "Good-bye World! `n"
    # end of script
    I wish to run this script via JAVA by the below JAVA code -
    import java.io.*;
    public class PsJava {
    public static void main(String[] args)
    throws IOException{
            Runtime runtime = Runtime.getRuntime();
    String cmds = (String)
    "cmd /C powershell C:/Documents and Settings/vvenkata/My         Documents/Hello.ps1";
            Process proc = runtime.exec(cmds);
            proc.getOutputStream().close();
            InputStream inputstream = proc.getInputStream();
                InputStreamReader inputstreamreader =
    new InputStreamReader(inputstream);
                BufferedReader bufferedreader =
    new BufferedReader(inputstreamreader);
    String line;
    while ((line = bufferedreader.readLine()) != null) {
                System.out.println(line);          
    Thanks
    Now, why is that I am not able to see any print statements from Hello.ps1 ? Can anyone help me on this?

    Hi,
    I have place my powershell script in the 'C' directory. and i have changed my JAVA code as below, but it still doesn't give any output in my Eclipse Console.
    import java.io.*;
    public class PsJava {
    public static void main(String[] args)
    throws IOException{
            Runtime runtime = Runtime.getRuntime();
    String cmds = (String)
    "cmd /c powershell c:/Hello.ps1";
            Process proc = runtime.exec(cmds);
            proc.getOutputStream().close();
            InputStream inputstream = proc.getInputStream();
                InputStreamReader inputstreamreader =
    new InputStreamReader(inputstream);
                BufferedReader bufferedreader =
    new BufferedReader(inputstreamreader);
    String line;
    while ((line = bufferedreader.readLine()) != null) {
                System.out.println(line);          
    Please advice me on this. If I have to create a batch file, then can you let me know how do I do that?
    Thanks

  • #Include or run script from HTML panel button?

    I'v been trying to make a panel with the HTML widget and I keep running into issues. The buttons I made wont run the scripts. Is there a way to include js for PS inside the html to run when the button is pressed? <script></script> doesn't seem to work for things inside of PS. Or is there a way to run a script in PS from a button?
    I guess I have multiple questions really. Do you always have to use _AdobeInvokeScript inside the button? I have seen some examples without it and I'm not sure what works and what doesn't.

    Thank you Paul!
    %20 is just how space characters are encoded and doesn't matter
    Ye, I know this,.. it`s was my just suggestion...
    So. The solution in this string:
    var scriptFile = File(File($.fileName).parent.parent.absoluteURI + "/Change Render Locations.jsx")
    Everything else is identical, in my script and in your. Of course except alerts. I remove them, and now i have just my button which works fine....
    And may be you can suggest, why does not work "my" method of running the script?
    Thanks again!

  • Sup mail client and html mail - run-mailcap script now in aur

    Hi,
    For the users of sup mail client. Standard sup installation requires a script called run-mailcap to open html (and other mime) attachments. I couldn't find this script in any arch repos so I made a package for aur. This package downloads a deb file from ubuntu repositories and extracts just this one script (run-mailcap). This should make life a bit easier for early sup users.
    Unfortunately the package requires deb2targz since I don't know how to extract just one file from a deb without this script. If this can be done in a better way, please let me know. For now deb2targz is just a makedep, you can remove it after installation.
    Enjoy

    kosmiciatakuja wrote:Unfortunately the package requires deb2targz since I don't know how to extract just one file from a deb without this script. If this can be done in a better way, please let me know. For now deb2targz is just a makedep, you can remove it after installation.
    For future reference, bsdtar can break open .deb files (and .rpm files for that matter) and bsdtar will be found on every Arch system since it is part of the libarchive package and pacman itself depends on libarchive. I use bsdtar in this way in the opera-devel PKGBUILD. I added libarchive to my makedepends, though arguably this isn't really needed unless pacman is likely to stop depending on libarchive any time soon.
    With this in mind I do wonder why people install tools like deb2targz or rpm2cpio on Arch when it is already possible to pull apart these files with a pre-installed tool. Perhaps people are just unaware of this?
    P.S. Even without bsdtar, .deb files are just 'ar' archives with three files inside: debian-binary (which states the deb format version number), control.tar.gz (packaging meta-information) and data.tar (the actual installable files, optionally compressed with gzip, bzip2 or lzma). As such you can alternatively use the 'ar' command to extract data.tar and then get the raw files by extracting from that with (GNU) tar in turn. It is worth noting that 'ar' is included as part of the GNU binutils package, so pretty much guaranteed to be present on any system that is used for repackaging.

  • Cannot run scripts via GNOME applications menu

    I have a few posts in the applications menu, like "Android Notifier Desktop" and the commando runs a script: "/usr/share/android-notifier-desktop/run.sh".
    That doesnt work anymore, I have to run it via the terminal now. I think it happend when I upgraded to GNOME 2.32. What to do?

    Thanks for your help. Nothing happens when I click the serial number. But I looked in Library/Receipts and found an update for 10.4.9, so I assume that is what I am running. I am also having problems with other applications such as MS Word and I get a different error message that says "Application Launch Failure: The application "Word" could not be launched because of a shared library error: "1<Microsoft Word><CarbonLib><CFMPriv_CarbonCore>"" Any advice?

  • IDCS5-win. Error while running a script from indesign(not via estk)

    Hi all,
    After running the script from indesign, I get following error
    ASSERT '(engine->getDebugFlags() & ScScript::kExtendedErrors) == ScScript::kExtendedErrors' in ..\..\..\source\components\script\javascript\JavaScriptRunner.cpp at line 412 failed.
    ..\..\..\source\components\script\javascript\JavaScriptRunner.cpp (412)
    any idea about this?
    The script runs fine when run from ES tool kit.
    Thanks

    Hi,
    My colleague found the problem. We were using extendables library and we still haven't figured out what was actually happening, but removing it solved the problem.

  • Error message when running script via package

    Hi there,
    I have a problem I can't understand - I am running a script from a package, and I get this error message:
    CopyCatFinanceError
    Invalid dimension ALL_FCSTPRICING in Lookup rule
    where CopyCatFinance is the name of the package, and ALL_FCSTPRICING is the name of a parent in the Category dimension.
    I don't understand why this member is being flagged as a DIMENSION, when it is only a member. And I don't understand why this is being flagged at all - this dimension has been reprocessed, as has the application (in fact, all the applications), the script has been re-validated and a full Optimise has been run several times...
    I am now out of ideas! Any thoughts?
    We are running BPC for MS 7.0 sp 7, on SQL 2005.
    Thanks a lot,
    Jason
    PS. And there are no lookups in this script either - I'm referencing the category dimension with the %CATEGORY_SET% variable as the user selects this at runtime.

    Can you post your logic, also check your lgx files are making sense.

  • Error Message: "Install Step Failed:run postflight script for Plugin" When Flash Player 11.7 instal

    Don't See Question/Problem w/Flash Player Installation.  Error w/11.7.700.260 Installation had errors (dialogue box)  The following install step failed: run postflight script for Plugin.Contact the Software Manufacturer for Assistance.  Please Note:  I have read all Adobe Links related to installing Flash Player and uninstalling previous version 10.3 for MAC OS 10.5.  So I have MAC OS 10.5.8 w/Firefox Browser 16.0.1 and disabled anti-viral software.  Uninstalled previous version of Flash Player 10.3.  Confirmed uninstallation.  Downloaded Flash Player 11.7.700.260  instead of 10.3.183.90 due to Adobe stated information re:replacement of 10.3 versions with 11.7 extended support.  Installation of 84% occurs then the Error Message: Installation had errors (dialogue box)  The following install step failed: run postflight script for Plugin.Contact the Software Manufacturer for Assistance.  Please help to resolve this issue as no flash player is currently on my MAC.  Thank you so much.

    Hi Mike,
    First of all, thank you so much for responding and sorry I forgot to mention my CPU; fortunately I **DO** have the 2.6 GHz Intel Core 2 Duo Processor so I could upgrade to Mac OS X Snow Leopard.  Two Questions:
    1. Do you know whether Snow Leopard sold by Apple is an upgrade or "clean install?"  If it's not a clean install, do you know (off-hand) if there are any upgrade issues?  I'm very partiall to a clean install.
    2.  Why does Adobe state (for updating Flash Player 10.3 when Adobe knows that [most likely] the 10.3 versions run on Mac OS 10.5.x?  See statement and link below...
    Kindest thoughts - Karolynn_1
    http://blogs.adobe.com/flashplayer/2013/05/extended-support-release-updated-to-flash-playe r-11-7.html
    We’re happy to announce that we are updating the version of our extended support release to Flash Player 11.7 on Mac and Windows. Flash Player 11.7 will replace version 10.3 as the extended support version beginning July 9, 2013.
    In order to continue receiving security updates, an upgrade to either Flash Player 11.7, or the standard Flash Player 11.8 release is required.
    Flash Player 11.7 provides exciting new features, including Actionscript concurrency, webcam support for StageVideo and more. It also enables Protected Mode for FireFox on Windows, a sophisticated security-in-depth feature. With Protected Mode, Flash Player runs as restricted process, making it more difficult for attackers to build working exploits. Click here to learn more.
    Flash Player 11.7 leverages hardware acceleration for audio, video and rendering to increase performance and lower CPU usage.
    To ensure the smoothest possible transition, we encourage IT organizations deploying Flash Player 11.7 in managed environments to thoroughly test audio and video playback for critical use-cases using the latest available version before deploying this release widely. When hardware-related playback and stability problems do arise, updating to the latest hardware drivers frequently resolves these issues.As a secondary workaround, the Flash Player Administrator’s Guide details mechanisms for disabling hardware and audio acceleration via mms.cfg.
    We have been hard at work to make Flash Player better than ever, and we look forward to continuing to serve you with a great web experience.

  • Run a job via job schedular, got the error message Connection to Agentlost"

    Hi,
    I have created a job with 60 scripts and trried to run a job via job schedular after executed some scripts i got error message as " Connection to Agent lost". what is the problem here. how to slove the probelm. please help me.
    Thanks in Advance.
    ra
    Edited by: user4502901 on Nov 9, 2009 6:02 AM

    Hi,
    Try increasing your machines Virtual Memory and then run the scripts.
    Thanks
    Edited by: Openscript User 100 on Nov 10, 2009 9:31 PM

  • Error while trying to add a SQL Script via DB02

    Good Morning and happy Sysadmin day to everyone,
    I have the following Problem regarding DB2 9.5
    I'm trying to run a SQL Script via DB02 in an ERP 6.0 System.
    I'm using DB02 -> Jobs -> SQL Script Maintenenace -> Add
    Then there is a Textfield "Script Name". When i'm using the F4-Help I'm getting the following error Message:
    List box value range for field DYN_SED-SCRIPT_NAME could not be created
    Message no. DB6PM004
    Any suggestions what might be the Error?
    Thanks in Advance
    Marco

    Are you trying to create a new Model or trying to import a Model ?

  • OBIEE 11g write back to Essbase and run calc script feature

    Hi,
    I have a requirement to write back into Essbase Cube and run calc script from OBIEE dashboard.
    From what i have search on google, we must deploy additional Java Script into weblogic, but that is before OBIEE 11.1.1.6.
    I have 2 question:
    - Does OBIEE 11.1.1.6 already supported native write-back to Essbase and running calcscript?
    - Anyone has example of the custom java-script for write back and running calcscript?
    And another, if there are requirement like this, is it better to install Essbase Add-in on Microsoft Excel and do the what-if analysis there, then just display the report on OBIEE dashboard? (based on user-friendliness and the complexity on maintenance)
    Thanks in advance.

    Hi,
    Even I am trying to achieve the same thing as you have mentioned but think that it is not possible to achieve easily in obiee 11.1.1.6, though we do have a work around to perform a writeback in Essbase cube using JAPI as mentioned below.
    Also we can call Hyperion reports from OBIEE using Action Links and also pass parameters to the same but dont know if it runs calculation script.
    Below link could be useful for you for write back workaround.
    http://oraclebizint.wordpress.com/2009/05/25/oracle-bi-ee-10-1-3-4-1-writebacks-to-essbase-using-japi-and-custom-html-part-1/
    Let me know in case you have found out anything else related to same.
    Thanks,

Maybe you are looking for