Load content (jpg, swf, etc) but not onto stage

I'm familiar with the typical syntax to load a piece of
external content into a movie clip... but is there a way to load an
external clip to somewhere off stage so you can use it later? For
instance - load a JPG so it becomes an asset with a linkage ID?
thanks!

DZ,
Load it into a movie clip just the same as you would with any
content. But,
set its visibility to false. Then, set its visibility to true
as you need
it.
placeHolder._visible = false.
placeHolder.load(myJPG.jpg)
Dan Mode
--> Adobe Community Expert
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio*
http://www.tornadostream.com
<--check this
*Must Read*
http://www.smithmediafusion.com/blog
"DZ-015" <[email protected]> wrote in
message
news:eu13st$jio$[email protected]..
> I'm familiar with the typical syntax to load a piece of
external content
> into a
> movie clip... but is there a way to load an external
clip to somewhere off
> stage so you can use it later? For instance - load a JPG
so it becomes an
> asset with a linkage ID?
>
> thanks!
>

Similar Messages

  • I just bought an iMac now running OSX 10.8.4.  I have a G5 running OXS 10.5.8 - External HD connected to the G5 been using Time Machine to back up. Need to get my files, photos etc. but not applications etc. onto the iMac. How do I do it?

    I just bought an iMac now running OSX 10.8.4.  I have a G5 running OXS 10.5.8 - External HD connected to the G5 been using Time Machine to back up. Need to get my files, photos etc. but not applications etc. onto the iMac. How do I do it?

    David JHS21 wrote:
    Can I just plug the external hard drive into the iMac and copy the "Documents" and "Pictures" from the hard drive to the iMac?
    Not those whole folders, but their contents, maybe.
    If the user account now on the Mac has read rights to the user account(s) on the backups, yes.  If not, you may have to do some finagling. 
    Try the Browse Other Backup Disks option, per Time Machine - Frequently Asked Question #17.  If you find an account that can open those folders, restore what you want to an alternate location (#16 in the FAQ).
    If not try creating one or more accounts temporarily.

  • Created a pdf from a word-file and inserted formfields. The fields works in other pdf-readers(nitro,reader etc), but not in adobe reader and acrobat. Please help.

    Hi,
    I have created a pdf from a word-file and inserted formfields for a work related file. I've used nitro pro to create the formfield. They works in nitro, reader, foxit etc. but not adobe reader. From page 3 and out, the font wont show when writing in a formfield. Some formfield doesnt even show.
    Please help me fix this (hopefully before the presentation at work friday) :-)
    File in question: Dropbox - Byggeplassperm_bico_prosjektledelse_2.pdf
    Kind regards
    Tobias

    Agreed. Adobe makes no claims that their Reader will work properly with forms made from third party software.

  • After update 7.1.0. my sound only works for phone calls,emails etc, but not for music or games

    after update 7.1.0. my sound only works for phone calls,emails etc, but not for music or games

    Maybe I understood your problem. Get to Settings > Sounds > Ringers and Alerts >Turn Change With Buttons to Off. And if your Side Switch is assigned to 'Mute', turn it back on, else, use the control center to turn off mute.
        P/s: And your name is...

  • Recently, I can't get any sound from my game applications.  Sound works fine with video, streaming, etc, but not my game applications.  I've tried powering down and re-booting, but the sound does not return.  Can anyone help me?

    Recently, I can't get any sound from my game applications.  Sound works fine with video, streaming, etc, but not my game applications.  I've tried powering down and re-booting, but the sound does not return.  Can anyone help me?

    Have you got notifications muted ? Only notifications (including games) get muted, so the Music and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad above the volume switch, or via control centre : swipe up from the bottom edge of the screen and it's the right-most of the 5 icons in the middle of it (if the icon is white then it's 'on', tap it to turn it grey and 'off'). The function that isn't on the side switch is set via control centre instead : http://support.apple.com/kb/HT4085

  • G5, 10.3.9,Safari will not load.  aol will download but not upload. ?

    My g5 , 10.3.9, will not load safari, aol will download but not up load.  Safari just bonces when trying.  On aol I get a 513 error message when trying to upload.
    whats going on?
    John

    Success. I discovered the issue that was preventing QTSS start up.
    The IP Bind tab listed a set of new Class C IP addresses that ARIN forced us to move to last year and which had been properly configured into our network and I had checked the matching address shared in our new web server config.
    However /library/quicktimestreaming/config/streamingserver.xml had not exterminated the obsolete address and I pico'ed in the Terminal to replace these lines
    <LIST-PREF NAME="bindipaddr" >
    <VALUE>old ip</VALUE>
    <VALUE>new ip</VALUE>
    </LIST-PREF>
    with this line, which will now overide whatever's poking in the old ip, probably one of those pesky permanently-burned Net Info DB's that can't be purged despite the reality that servers sometimes need wholesale refreshes to be re-networked:
    <PREF NAME="bindipaddr" >new ip</PREF>

  • What is or isn't possible on iOS?  (Not having Loader, loadBytes(), external swfs, etc)

    My basic question is:  "What are the classes which we should not use for iOS using the packager."
    I have been trying for a few days trying to get a simple Flash app to run on the iPad.  A very simple app (with sound!) with just 2 classes works fine (Performance is a whole other issue.  We will get to that).  But if I try anything else, all I get is a white/black screen on the iPad.  So it would be really nice to know what classes, functions, etc we CANNOT use for the Packager.
    I have fairly simple app (not as simple as 2 classes) which loads some art assets via URLRequest/Loader, puts them on the stage.  Fairly common standard practice in AS3.
    I've read about not able to load an external file using the Packager.  So to fix the situation of loading assets, I have looked into the [embed] tag, which seems to work.  I hope the blogger doesn't mind, but this page is an excellent source on what works and doesn't work with the [embed] tag in it's various flavors:  http://www.richardleggett.co.uk/blog/index.php/2010/03/08/flash_builder_and_flash_pro_asse t_workflows.  For example, AS3 in a swf is stripped out from an external swf using [embed].
    The best way to load an external swf file for iOS seems to be using [embed] with "application/octet-stream" and load the swf through ByteArray (Option #4 in the link above).  This works great on the PC.  HOWEVER, on iPad, it fails.  The [embed] tag works on the iPad with the other ways, so my guess is that loadBytes() does not work.  Is this true Adobe/Flash guys?  Can you confirm this?
    My initial question is "why is this not allowed on iOS?".  If it is because of the fact that it uses a Loader, can it be changed so it's not using a Loader to construct a MovieClip?  I have a ByteArray with the raw swf/MovieClip data.  Why can't I construct a MovieClip from it without going through Loader?
    This loadBytes() failure seems to be the only thing preventing me from using the normal pipeline of Flash development in loading external assets.  If there are other ways people have found, please share!
    Now on to performance.  Adobe, can you post some examples/samples of code which runs at decent performance?  Like a "tech demo" of what is possible using the Packager running on iPad/iPhone.  That would be extremely helpful for everyone.  I have done a lot of the optimizing suggestions on various sites and pages ( and by Adobe http://www.adobe.com/devnet/flash/articles/optimize_content_ios.html), but I am not seeing the 30 fps performance that is MORE than possible on iPhone/iPad.  Displaying and moving around Bitmaps (I don't use any vector graphics) should be blazing fast.  Quake runs on iPad without any problems and that code is 10 years old.  Moore's law dictates that drawing Bitmaps using CPU should be faster than a 3D engine written 10 years ago...  I am trying out the new iOS 4.2 which is supposed to be "significantly" better, but I am still stuck on loadBytes().
    So at this point, I am blocked on loadBytes() and my performance for a simple app which draws a few Bitmaps and MovieClips is terrible.  I am hopeful some people out there have figured out some solution (there are lots of clever people out there) and I will stumble on to something.  But being forced to go native Objective-C seems to be my only option at this point.
    In summary, here are the questions I would like to ask the Adobe/Flash group for some more help/information/advise:
    - Why is Loader not allowed on iOS?  Is it a technical limitation of the hardware/os/Flash?  Will it never be supported?  What is the future of this class on iOS?
    - Why is loadBytes() not allowed on iOS?  I have the raw embedded data in memory.  I don't need to make a remote call so security should not be an issue.  Can I create a MovieClip without using Loader?
    - Why is AS3 stripped from the timeline when a Symbol is retrieved using [embed]?  Maybe this is the same reason loadBytes() fails, but if I could use [embed] and get a copy of the Symbol, that is what I need.  (There are issues with the mx.core.MovieClipLoaderAsset/Asset, but it is better than being blocked by loadBytes())
    - What are some apps you guys have written that we can use to compare PC vs iOS?  Again, a "tech demo" or sample code of what you as experts in Packager for iOS have done which runs at decent framerate (30+fps) would be of tremendous help.  If the Adobe/Flash group hasn't gotten the current Packager for iOS to handle more than 50+ 2D Bitmaps on screen running at 30+fps, that would be good to know.  Please let us know what the experts and owners of your software are capable of getting the most throughput using the Packager.  I'd hate to sound a bit fed up/angry, but I think you are wasting a lot of people's time and energy with a piece of software that, to me, seems like it was a bit early to release.  Flash can do some great things.  If it can do it on iOS, even better.  But PROVE it to us that it's possible, before having your customers run into barriers imposed on us by trial and error.
    Thanks.

    I have hardly ever seen a post here from someone at Adobe, so you may need to be patient.
    Read this article, and get its associated demo files, to see some good performing tech demos:
    http://www.adobe.com/devnet/flash/articles/optimize_content_ios.html
    Back to your main point, loaders are working, what isn't working for you is accessing of things in the library of a successfully loaded swf, that have been set to Export for ActionScript. That means that the swf you have loaded has an ActionScript Class, to represent the library symbol. iOS Flash apps are native ARM code, and don't include the virtual machines that a browser plugin has, and so it's not able to interpret ActionScript. That may be why it would fail.
    Now, I can think of at least a couple of reasons why you might want to have external swfs with elements that you want to reuse in the main swf. One would be if you're intending to make a lot of them, like say if you wanted to have an Asteroids game and the ability to use artwork from a set of different swfs. Another reason might be if you want to skin your interface, by taking specific elements from the loaded swf and using them in the main swf. That way you could have artists preparing those swfs for you, and you just include them in your package, and load the one you want.
    There is a way to do either of those things. The second one can be done by having the item as a named symbol on the stage of the loaded swf. With a to-be-loaded swf named "inner.swf", that has a movieclip on its stage named "mc1", this script in the main swf would load that external swf and use its symbol on the main swf's stage, without having to make the inner swf's symbol use ActionScript:
    var req:URLRequest = new URLRequest("inner.swf");
    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loaded);
    ldr.load(req);
    function loaded(e:Event) {
    var mc:MovieClip = e.target.content as MovieClip;
    var innermc:* = mc.mc1;
    innermc.x = 50;
    innermc.y = 50;
    addChild(innermc);
    For the other case, you can take the item off the stage of the loaded swf and draw it into a bitmapdata, and then make as many bitmaps from that as you like. Here's the above example, only it adds the original movieclip to the main swf stage, and also creates a bitmap that looks the same:
    var req:URLRequest = new URLRequest("inner.swf");
    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loaded);
    ldr.load(req);
    function loaded(e:Event) {
    var mc:MovieClip = e.target.content as MovieClip;
    var innermc:* = mc.mc1;
    innermc.x = 50;
    innermc.y = 50;
    addChild(innermc);
    var bmd:BitmapData = new BitmapData(innermc.width,innermc.height);
    bmd.draw(innermc);
    var bm:Bitmap = new Bitmap(bmd);
    bm.x = 150;
    bm.y = 150;
    addChild(bm);
    So, the thing to learn is that a native ARM code application does not have an ActionScript interpreter in it, and if you need to do something that normally requires interpreting ActionScript, find another way to do it.

  • Sound is early in SWF file but not in Timeline.

    Thanks everyone for reading my post!
    I am having a bit of a problem with the playback of a certain sound in my published file. I have a sound attached to a frame in my timeline and I have it as a stream so that it plays extactly where I want it to in the movie. When I publish my movie, however, the sound plays about 2-3 seconds before it's supposed to. I tried putting another sound file in its place and the other file plays early as well. The sound will also start early if it is an event. Please let me know if anyone else has come across this problem before and if there's a way to fix it.
    Thanks Again!

    Is the sound file exernal, or is it imported to your library? Is it a small file like a single sound intended for a mouse click effect or is it a full song file or large file? Is the swf content also a large file with a good deal of objects and tweens and such? You mentioned streamed, so I'm not sure what you mean.
    First, if you have a large file, and a large sound file, you just may simply be having some loading issues that change your intended timing, try a preloader if they are large files.
    Second you can control sound several ways, you can use actionscript to call an eventListener and function ether a mouse event play() the sound, or an enter frame event play() to play it also. You can also put the sound in a keyframe on a layer at the point you want it to play, which I presume you are doing, however if its external then it has to load, stream, etc, so there may be some timing issues that arise from those loads, sound, and content from swf. You can use frame labels, anchors, or frame number itself in script as your target point.
    http://kb2.adobe.com/cps/153/tn_15347.html

  • Flash embeded file loads up in a mac but not on a pc

    Hey......I'm building a site with iWeb and on the top of every page I want to put a flash slideshow.......I save the swf file on a folder in my iDisk and from there I put the code on iWeb to read the file......It loads perfect on my computer, but when I open the site on a pc everything loads up,except for the flash file......On the main page I put the same slideshow but as a quicktime movie without the controllers and on autoplay......it just takes to long to load......
    The other question is that sometimes on a pc all the text and pictures display perfect and some other times the are a bit screw up.......any ideas????.....If anybody could help me I will apreciated....
    My url is www.rvassmer.com

    Hey Thanks for replying.........You also help like two days ago when I asked how to embeded flash into iWeb.....it worked fine, I could finally get my flash slideshow on my website.....
    I was playing around in a pc an It works fine when I use Firefox......the problems begins when I start using Explorer and Netscape......
    I went into your web site and works perfect on Internet Explorer......When it loads up the text and fonts are a bit screw up like in my site, but for only 5 seconds.....my web site stays like that and sometimes only the main page can get normal......Your Flash video work fine.....
    On Netscape everything looks good.....the one thing is that I can't see your Flash video.....
    Thanks for answering......Got any tips on how to make the text anf fonts look like in the mac all the time....
    Message was edited by: RV25

  • Embedded youtube videos load on all other browsers but not Firefox

    I have embedded youtube videos into a website...
    They work on ALL OTHER BROWSERS but not on Mozilla Firefox.
    I have tried:
    1. Clearing cache & cookies and using Safe Mode.
    2. 18 different computers running Windows 7, Windows 8, Mac OSX, Linux Ubuntu 12.10 and Fedora 16.
    3. Using old embed code instead of iframe.
    4. Loading HTML5 works but Firefox cannot fullscreen (still under youtube development)
    5. Redoing site from scratch.
    Code is as follows, note middle video is old youtube code: http://pastebin.com/T3w09bqW
    Picture of problem: http://i.stack.imgur.com/rJjyu.png

    Good point. When I insert that snippet of code in a new page, it runs for me. (Except that the first one says the frame is too small.) Does this work for you? http://dev.jeffersonscher.com/yt/941211.html

  • Error Loading Native Library on Mac, but not XP

    In a program that I am making, I use JOGL and Odejava. Testing on Mac and Windows works fine loading JOGL's native libraries. However Odejava fails to load on Mac OS X but works fine on my Windows machine.
    The only difference is that JOGL uses just .jnilib's while Odejava has a jnilib as well as a dylib. All the jnilib's and dylib's are in the home directory. I also placed libodejava.jnilib into /Library/Java/Extensions and ode.dylib into /usr/lib/ as per the installation instructions for Odejava.
    When I try to run I get this error:
    java.lang.UnsatisfiedLinkError: /private/Network/Servers/students.central.spps.org/Users/idoneus/Documents/workspace/Idoneus_.03/libodejava.jnilib:
    The only three possible things that I could think of are that
    a)libodejava.jnilib has been corrupted, but I doubt that since I keep redownloading it.
    b)The Mac computer is in a lab that users remote access to a server for users, which might possibly confuse Java.
    c)libodejava.jnilib wasn't built correctly to actually look for the dylib
    Your help would be appreciated because I'm at my wits end.

    Neither Red Hat 2.1 nor Suse 8 are supported. Please try on a supported operating system. You can find the complete list here: http://e-docs.bea.com/jrockit/jrdocs/suppPlat/supp_plat.html
    Regards,
    /Staffan

  • Mac 10.6.3 with Firefox 4.0.1: Can print from Word, PDF, Screen Shots, etc.--but not a web page. My Canon MP610 shows correctly as default printer.

    If I use AOL's browser, I can print Web pages. But not from Firefox. Could be this problem began with upgrade to your 4.0.1.

    If I use AOL's browser, I can print Web pages. But not from Firefox. Could be this problem began with upgrade to your 4.0.1.

  • My iPad will happily AirPlay content from bbc iplayer but not when the chosen programme comes from downloads.I keep getting message"an error occurred loading this content" Any ideas.

    Any ideas

    I'm seeing the same and I agree, it's very annoying. You can at least get around it in both situations by turning on Mirroring from the Airplay menu (after double-tapping the Home button). Hopefully the iPlayer app will be updated soon to fix this. I'm assuming it's an oversight at the moment.

  • Premiere Elements 9 - Common file types (AVI, JPG, MP3, etc.) not recognized

    I just recently upgraded my system to Windows 7 64 bit (with 8 GB of RAM), and loaded the Photoshop/Premiere Elements 9 combo pack. I have run both versions 7 and 8 in the past with only minimal memory issues under Vista 32 bit with 4 GB of RAM, but no issues as far as loading AVI's, jpgs, mp3s, wav, etc file types. With this new version Photoshop Elements appears to work ok, but in Premiere Elements, I can not load any common file types without getting the error "Generic Failure - This type of file is not supported or the required codec is not installed". The other issue is that after I load the media from a given folder on my main drive "C", it's looking for the media in a folder on my "D" drive??? I tried to work this out through customer support, but was unsuccessful. This last time I called, they wanted to charge $24 for the call. I complained to the support person that they had never really solved my issue on previous calls so he suggested using the forum. Has anyone run into these issues?
    I've tried uninstalling and re-installing the software and have loaded all of the current updates, but I am not able to use Premiere Elements in it's current state. Any help will be appreciated...(note, this is the only application that I am currently having issues with on my upgraded system - all other software - probably 25 plus apps including Sony Vegas Movie Studio HD Platinum v 10, which I may have to switch to entirely, appear to be working well).
    Thanks in advance for your help!

    For the CODEC issue, it could well be that your new OS is lacking some of those on the previous, though that would not explain the JPEG, for instance.
    Going back, Windows would automatically install many CODEC's, including all the MS CODEC's. With some versions of Vista, one had to manually download and install a Vista CODEC pack. Now, I have a strong aversion to downloading any non-MS CODEC "packs," and would urge you to think long and hard before doing such.
    If you do not have G-Spot, a great, free utility, I'd get it, and see which CODEC's are installed.
    Good luck,
    Hunt
    PS - for any error messages that you get with any of the Adobe CODEC's, see this ARTICLE.

  • 10.9.1 update erases contents of IMAP mailboxes (but not Gmail's)

    I run a pretty clean system and don't fuss with moving things around and adding 'helper' apps that modify how the system works.  (I don't tinker much)
    Before applying the update I backed up and repaired permissions.
    Applied the update.  Everything went smoothly.
    Started up Mail, and in my INBOX, all of my IMAP boxes were empty (except Gmail's).
    So, I checked my Mail folder in my Library, and indeed the folders for my IMAP inboxes were empty.
    I attempted to rebuild the mailboxes, nothing returned.
    Fortunately I backed up, BUT...
    This action seems quite odd to me and I wanted to report it in case anyoe had a similar problem.

    I suspect this problem is not with Gmail or changes Gmail has made recently:
    I have 2 loaded iMacs, 2 Mac Airs,and a Macbook Pro with Retina, and 2 iPads, and an iPhone.
    I have confirmed on all my iPad and iPhone devices that all my Gmail content is visible, and installing Thunderbird on the iMacs and MacBooks accesses Gmail and the sub-directories.
    However, MAIL on the iMacs and MacBooks fails to access the Gmail sub-directory contents dated pre-OSX installation.  I have kept everything updated.
    PERHAPS NEW INFO TO THIS THREAD: Also, current Time Machine backups fail to show Gmail IMAP sub-directory contents dated pre-OSX installation as well, so this problem appears to be OSX UNIVERSAL not just affecting MAIL. (on one iMac, Mavericks trashed my Time Machine drive (Pegasus - but the company responded quickly with a fix but I lost all the backups). My other iMac (I have one at home, another at work) has a pre-OSX Time Machine backup still that Mavericks has not yet trashed (although it has tried in various ways). The pre-OSX backups show all my Gmail messages in all directories... but post-OSX install the directories show as empty.
    Performing a 'Get Account Info' via MAIL 'sometimes' shows a correct Gmail sub-diertory message count, 'sometimes' does not, and 'sometimes fails to report the even the sub-directory name or stats.  BUT, doing Show Messages, even whent the message count shows correct, displays an empty directory, or only those messages post-OSX install.
    As someone posted earlier, go to 'MAIL' and select 'Provide Feedback' and bombard Apple Support with a bug report.
    PS. Thunderbird will not install an iCloud account in IMAP for me, even a manual config from settings in MAIL don't work, and Thunderbird won't 'Import Settings' or 'accounts' or 'folders' or 'Local mail' from MAIL under Mavericks either it seems... reports Info Not Found.
    PSS. installing an iCloud account did nothing useful to these problems, and in fact I had to go online into iCloud via the web to create a subdirectory before MAIL or even the iPads etc would see more than the iCloud Inbox.
    PSSS. to get MAIL to refresh the Gmail Inbox, I have to shutdown MAIL and re-open it (and sometimes, MAIL takes a long time to shutdown as well).

Maybe you are looking for

  • Report for Marketwise-Productwise Sales

    Hi, Here is one of the requirements....sorry I tried to manage examples of report output but it is not showing properly in Preview... A report is to be written for a customer, showing the Marketwise Productwise Sales for each Salesman. The requiremen

  • Livetype project not displaying properly in FCP

    I have a LiveType file imported in FCP, but only one of the two effects is showing when I place it in the timeline. The view shows both effects correctly, but in the timeline only one. Any ideas?

  • Ipad 2 up button is stuck

    My ipad 2 up button is stuck can i send back to apple store warranty?? And How Can I Check My ipad Is not Underwarranty ?? Thank you~

  • Left click DOESN'T work (laptop)

    Product:  Hp Pavilion g6-2290ev OS:  Windows 8.1 No changes made to the system before the issue occurred The left click was working perfectly but the next day was like stuck. After plugging in a USB mouse, which worked, the laptop left click stopped

  • I need help with reporting as soon as possible!

    How can I do reporting in JDeveloper like in Crystal reports. Is there any extention or tool that can be of help. Thanks Edited by: Fenoch on Mar 12, 2010 6:34 AM Edited by: Fenoch on Mar 12, 2010 6:36 AM