Is there a way to get a relative url from a ._url call?

Basically I have a few video clips with external images that have been placed in them with a MovieClipLoader. I want these clips to switch the image that they're showing when you click it. However, the only way I know how to say each image is loaded in them is through their ._url method (basically, each click returns the url of the image and if it is the url of the image in progress, I will place the image of replacement in there). However, this gives me an absolute URL. I could use for prototyping, but once it is deployed, it will do no good for the match with my local test url; I need to use a relative, as url when I used originally the MovieClipLoader to place the images.

If this cannot be done, is there a way to return the current url, who plays the swf file from? This way I can put it in a variable that I can use for the evaluation of the url of the source of what image should be in the movieclip where it locks.

You can use the string flash methods to extract the part of the desired _url.  for example, if you want the name of file on a server that uses the directory separator ' / ', you can use

targetMC._url.substr(1+target_mc._url.lastIndexOf("/")) "

Tags: Adobe Animate

Similar Questions

  • Is there a way to get refnum one control from a local variable or the wire?

    I'm looking for a way to get the refnum of the element of a façade of a local variable or the wire. Is this possible?

    Is there a way to accomplish the following?  (These are published images, this is currently impossible in LV)

    or maybe

    If this kind of thing is not possible, is there a reason for this? If there is no reason why it is impossible, I'll put it on the boards of the suggestion.

    Why do you need this?

    A thread is simply data. It is not associated with a control.

    Similarly, a local variable is a way to access the data in a control, for not interacting with the control itself.

    Is the control of the right-click and selecting Create > reference not good enough for you?

    You can write code to get the reference to the controls connected to the cable and the the control whose desired local variable, but I feel that this is not really what you want.

  • Is there a way to get iPhoto to Yosemite?

    Is there a way to get iPhoto to Yosemite? I was annoyed with changes before but it's just because change is difficult, you have your ways of doing things, has worked on the system and used to it. It's different. Pictures is simply bad. I shouldn't work that hard to make things work. The straw that broke the camel's back? Try to change the FaceBook account to upload photos to. This is ridiculous. I think all wiping and going back a few steps from the BONE. It is less that I can return iPhoto...

    Cannot update iPhoto because it is not available in the App Store

    LN

  • Is there a way to get the text to reformat then I Zoom in to read an article.

    Is there a way to get the text to reformat then I Zoom in to read an article, so I can't do a pan on?

    Unfortunately not - this is one of the disadvantages of pinch to zoom - makes the biggest full page

  • Is there a way to get rid of the Firefox button?

    As the title says, is there a way to get rid of the Firefox button? I don't like, and I never use the menu.

    If you select the menu bar, the Firefox button will disappear. Press the button of Firefox, then in the menu 'Préférences' choose 'menu bar '.

    Or you can make the button smaller Firefox with this add-on:
    https://addons.Mozilla.org/en-us/Firefox/addon/iconic-Firefox-menu/

    Or move/remove the button Firefox with this add-on (see instructions in the description of the add-on):
    https://addons.Mozilla.org/en-us/Firefox/addon/movable-Firefox-button/

  • I gifted my father music and a song of the AUS iTunes, but they upload because it is outside the Australia (in New Zealand). Is there a way to get around this? There is only an iPad.

    I gifted my father music and a song of the AUS iTunes, but they upload because it is outside the Australia (in New Zealand). Is there a way to get around this? There is only an iPad.

    "gifts can only be redeemed in the country store that they came from".

    You can try to contact iTunes Support through CHAT or by phone. -They can try to solve this problem.

    https://www.Apple.com/support/iTunes/

  • Is there a way to get a list of all applications / updates that are cached on your server?

    Is there a way to get a list of all applications / updates that are cached on your server?  Of course, we see the space that contains each category.  But I would like a detailed list of the individual items that are actually cached.

    ITD be even better if I could get a scoreboard that showed me how many times a particular point was served to customers.

    Yes.  But you need a little magic Terminal to get the desired data.  Caching server is managed by a sqlite database.  To examine the contents, follow these basic steps:

    1: connect to the database using the following command:

    sudo sqlite3 /Library/Server/Caching/Data/AssetInfo.db

    2: to structure the data, run these two commands to the sqlite command-line prompt:

    .blog column

    . Headers on

    3: to find everything that is stored, run this command (you'll get iCloud cached documents, books, iOS apps, etc.):

    Select * from ZASSET;

    4: to narrow the results down to elements called by software updates, try this:

    Select * from ZASSET where ZURI as "content %";

    You could get a line that looks similar to the following:

    403 2 6 0 2012986793 474949928.477396 476912032.644505 e03448847909547fb8c7d4ecd5a7b6dd FAB32A72-DE33-469D-A7DF-3CE1A1F9A4D2 on Wednesday, August 5, 2015 18:00:30 GMT

    / Content/downloads/42/44/031-30888/bhrkylcnycxmtug9daw3g4magqb7dl7hba/OSXUpdComb o10.1

    (added the newline for readability)

    It is an OS X Combo update.  It is located on the drive to library/server/cache/Data/FAB32A72-DE33-469D-A7DF-3CE1A1F9A4D2 / the file is probably named 0, but if you want to use it, just add at the end of the .pkg file.

    I hope this helps.  Put server cache saves a lot of data.

    Oh, to quit the sqlite command line tool, simply type .quit and press return.

    Reid

    Apple Consultants Network

    Author - "El Capitan Server - Foundation Services.

    Author - "El Capitan Server - Collaboration & control»

    Author - "El Capitan Server - Advanced Services '.

    : IBooks exclusively available in Apple store

  • Qosmio F30: Is there a way to get the remote to work directly with built in receiver

    My remote control Media Center only works when I plug the Receiver USB on my Qosmio F30 yet will work directly to the laptop with the vista media center pre program.

    Is there a way to get my remote to work directly on the built-in receiver?

    Steve.

    Hi Steve

    There is unfortunately no way to do it. Qosmioplayer is also part of the media offered by this book, and as you know this small Linux based application runs without booting the operating system. Due to this USB port can not be used (external receiver) and because of this one way remote control with Qosmioplayer is infrared receiver window.

    I'm not a technician and can explain you why this little infrared window is not used with the operating system running but, I'm sure, there must be a technical reason for it. Anyway, there is nothing to do, and you have to live with it. :(

  • When I sync my iPhone, my applications backup on my computer somehow. Is there a way to get there?

    When I sync my iPhone, my applications backup on my computer somehow. Is there a way to get there?

    Thanks to Apple, the only way to do this is to go to your iTunes program, connect to the app store, click on purchase, then download the application directly from there. Used to automatically transfer from iPhone to iTunes by clicking on "Transfer purchases" but that was deemed to be too easy.

  • is there a way to get retail products?

    is there a way to get retail products

    I guess that your University is a member of MSDN AA, which give free license to students if your subscribing Faculty:

    You can find your school:

    http://msdn.Microsoft.com/en-us/academic/dd861349

    And then to find admin and contact him or her, for more details. The University could also help you get the iso files.

    In addition, dependent on your country, you could contact Microsoft and ask them to send you the CD or the DVD of the product.

  • I have a Brother printer. I have almost a full black cartridge, but have more color. Printer tells me that I can not print, but is there a way to get around this? I should be able to print in black only.

    I have a Brother printer. I have a lot of black ink, but am very low on color. The printer always tells me that I can not print even if I press the black and do not want to use black to print a document of law. Is there a way to get around this?

    You must ask brother if this is possible or not.

  • I try to install vista on my laptop but a letter of the key is not visible, all the other parts are very well including the serial code, is there another way to get the key of the other information?

    Taché product key

    Hello

    I try to install vista on my laptop but a letter of the key is not visible, all the other parts are very well including the serial code, is there another way to get the key of the other information? The laptop currently has non-OS I've tried to reinstall.

    Thank you

    Scott

    Product keys are bit-agnostic - they don't care if it's 32-bit or 64-bit.

    However, cannot legally use the recovery disk from one computer to a different constructor machine - as other licenses are not properly paid..

    There is nothing nonetheless to try all possible variations on the absence of character (there are only 25, after all the )

    Other than that, your best option is to contact the manufacturer and order a set of recovery disc for the machine. I do no download available for Vista with SP2 - but you can download Vista with SP1 and create the disc.

    http://www.heidoc.NET/Joomla/technology-science/Microsoft/57-Windows-Vista-direct-download-links

  • Is there a way to get the key on the dvd?

    I have one of the signature of windows 7 dvd sets complete the house party promotion my system which featured 64-bit died and I would like to install it on my new drive, but could not find the dvd cover with the product key to this issue is there a way to get the key on the dvd?

    Nope. There is no key on the DVD. Without the lid, you are out of luck.

  • Is there a way to get a core dump of an app that crashed in release mode

    Is there a way to get a core dump (to get the stacktrace) an application (Blackberry OS 10) which was crushed in release mode?

    I tried libbacktrace to get the stack trace in a signal handler (from the thread Id of the thread that caused the accident), but it seems that the battery is gone in the signal handler (backtrace simply returns the address of the most recent function call which is bt_get_backtrace() actually)

    You can do if you are able to make an update to your application and install it. That "should" not (I have not tested) affects mehdi files which are located in the logs / folder of the sandbox. You may have this "update" be nothing more than a program to copy these mehdi files somewhere safe (effectively "cp newspapers/*.core shared/misc").

    You can add this feature in the application itself (for testing) as a function of diagnostic if you needed this more than once.

    It is possible that the installation of an update will erase the previous core files (up to 3-4 are kept in general) but I suspect that it is not. Very easy to check, since you can try that with an application simple devmode first and make sure that it will work until you do it in the published application.

  • Is there a way to get a list of all installed applications?

    Is there a way to get a list of all installed applications?

    You can submit a request to have such an API and provided good use. It also helps to get other developers can vote on it.

Maybe you are looking for

  • Satellite S1800-204: memory upgrade

    Hi all I have a Toshiba Satellite S1800-204 memory which I just try to improve, two sticks of Kingston, 64 MB PC100 144pin SODIMM (like the one provided with the laptop) to two sticks of Crucial 256 MB PC100 144pin SODIMM. The laptop will post more,

  • stream hp factory reset 7

    How to get rid of the blue screen... Yes I pressed the power button and the volume upward and down key but I still have a blue screen that says TPM (trusted platform module module) WARNING: Compensation erase the information stored on the TPM module.

  • Application of the computer settings. Update

    Hello After I downloaded some updates of high priority on my computer 3 other computers to my work and my computer are still blocked on the "Application of the parameters of the computer" message during Windows startup. I deleted the updates of windo

  • HARD disk i/o error

    I have computer vpceb26fg laptop sony vaio. The last time I have shut down my pc after seeing the movie, I heard some unusual noise from my internal hard drive.After listening to the sound, I closed the pc, the stop was slower than before. The next t

  • Download and install the aps

    What is the trick to get the Surface RT to install downloads?  The icons are there to play "on hold".  Also in the upper right corner message 'installation', but it never happens.  These aps have been downloaded 3 days it was still installed.  I know