Generate JPEG from Flash

I have this Flash application that'd allow users to select
cliparts, enter text to create custom designs. At the end of the
process, I want them to be able to capture the design area and save
it as a JPEG file. I can get Flash to pass the pixel information of
the movie screen, but I can't figure out how to get CF to generate
the image on the receiving end. I searched online and found a
couple of PHP examples on dynamically generating JPEG files from
pixel information passed from Flash - is there a Coldfusion
equivalent of that? thanks in advance.

thanks! recreating PHP in CF might be the better choice.
below is the PHP code - is there a CF equivalent to
imagecreatetruecolor? thanks again!
<?php
error_reporting(0);
* Get the width and height of the destination image
* from the POST variables and convert them into
* integer values
$w = (int)$_POST['width'];
$h = (int)$_POST['height'];
// create the image with desired width and height
$img = imagecreatetruecolor($w, $h);
// now fill the image with blank color
// do you remember i wont pass the 0xFFFFFF pixels
// from flash?
imagefill($img, 0, 0, 0xFFFFFF);
$rows = 0;
$cols = 0;
// now process every POST variable which
// contains a pixel color
for($rows = 0; $rows < $h; $rows++){
// convert the string into an array of n elements
$c_row = explode(",", $_POST['px' . $rows]);
for($cols = 0; $cols < $w; $cols++){
// get the single pixel color value
$value = $c_row[$cols];
// if value is not empty (empty values are the blank pixels)
if($value != ""){
// get the hexadecimal string (must be 6 chars length)
// so add the missing chars if needed
$hex = $value;
while(strlen($hex) < 6){
$hex = "0" . $hex;
// convert value from HEX to RGB
$r = hexdec(substr($hex, 0, 2));
$g = hexdec(substr($hex, 2, 2));
$b = hexdec(substr($hex, 4, 2));
// allocate the new color
// N.B. teorically if a color was already allocated
// we dont need to allocate another time
// but this is only an example
$test = imagecolorallocate($img, $r, $g, $b);
// and paste that color into the image
// at the correct position
imagesetpixel($img, $cols, $rows, $test);
// print out the correct header to the browser
header("Content-type:image/jpeg");
// display the image
imagejpeg($img, "", 90);
?>

Similar Messages

  • How to diagnose flickering exported JS animations from Flash CC?

    Quick stats on my system:
    Macbook Pro Retina 2012 running OSX 10.9.3
    Flash CC 13.1.0.226
    I'm not experiencing an error so much as a lack of understanding about how to diagnose Flash CC JS export issues. Here's the backstory:
    In 2012, my company started working with an contract sprite artist. I was using the CS5.5 Creative Suite, and we were exporting normal png sequences from Flash for use in the game. After about 8 months, my cofounders and I realized that we could both reduce the load time for the game and also allow our artwork to be dynamically scalable by switching to JS exports of our art rather than the raster sprite sheets. Here's the blog post we wrote about it: http://blog.codecombat.com/hacking-our-way-to-vector-artwork-in-html5
    At the time, I didn't have Flash CC, and was reliant upon the CreateJS plugin to export the required JS files: CreateJS Developer Center | Adobe Developer Connection After another month or so, our contractor upgraded their version of Flash and we started having compatibility issues reading FLA files, so I upgraded as well. After doing some reading, I concluded that the CreateJS plugin was now incorporated into Flash CC as the HTML5 doc type, which was confirmed when I checked out the publish settings and resulting files.
    This is all a rather long winded way of saying that we have legacy artwork created with an older version of Flash but are now importing all of our artwork from JS files.
    Fast forward to today and we have two big issues:
    1) We can't figure out how to reduce the filesize of JS exports. As discussed in our blog post, vector artwork has upsides and downsides. One of the downsides we've found is that complex art that uses a lot of shapes ends up being substantially larger (in terms of filesize) than the appearance might otherwise suggest. Raster exports skirt this because a pixel is a pixel, but vector exports scale with the complexity of the source FLA. I'm not a Flash expert, and when we get files that are particularly complex, Flash either runs out of memory exporting them to JS files or we get files that are far too large to reasonably use. To be clear, the "out of memory" error isn't a problem because even if Flash finished the export, the resulting files would be too large for us to use (plus, I've done some digging and found a tutorial for correcting the out of memory error). Our artist is not familiar with the intricacies of the JS Flash exporter, so when we get a file that's too big or breaks the export, neither of us can really figure out a way to correct the problem. We have three questions in particular:
         a) Where can you view shape data that Flash is going to write to the JS files?
         b) Is there any way to edit said shape data inside the Flash CC interface?
         c) Is there any way to optimize shape data in Flash? For instance, in Photoshop, you can flatten images and export a psd with 500 layers as a single JPEG, is there any way to do something similar to shape data in Flash?
    2) Exports frequently break in weird ways. Many of the sprites that we created a year ago haven't needed to be re-imported into our game engine for some time. But every once in a while, I need to go back and fix, improve, or tweak an existing sprite, and then I run smack into the issue of reconciling files that were created without thought to JS exports with our current system. Just last week I was running into this issue in a big way and I made a screencast for our artist (since we work remotely) that I hoped might give him a better idea of the problem: Flash Errors - Treasure Chest, Flippable Tile - YouTube
    The two files mentioned in that screencast are both old (treasure chest) and new (flippable land tile). We have a few questions:
         a) Why are the treasure chest frames "flickering" in the html5 preview? The problem doesn't appear inside Flash and is inconsistent between files. There are two FLA files: one in which the treasure chest is empty, and one in which it's full. The empty animation doesn't throw any errors, either when converting to the HTML5 doc type or on export, but the resulting animation flickers. The full treasure, on the other hand gives me 21 lines of these errors when I do the conversion (not when I export): "Blend Modes(Layer) is not supported in HTML5 Canvas document, and has been converted to Normal in an instance of Movieclip <Path>." The result in both cases is the same: the animations flicker, and neither our artist nor us can figure out why, or for that matter, even begin to troubleshoot it. This SO issue seems to describe the problem, but was never resolved, and I can't find anything else that seems to address it: CreateJS Publish of Flash Project Flickers - Stack Overflow
    I've uploaded the files involved to a public dropbox folder which I think you'll be able to access (Dropbox seems to be having some problems at the moment): Dropbox - flash_debugging
    Since my questions are fairly involved, and my goal is to gain a better understanding of the UI, not simply resolve an error, I'd be happy to pay for someone's expertise/time in getting me up to speed. You can get in touch with me at george [at] codecombat.com

    Hi George,
    I have taken a look at the files full_treasure_chest.fla and flippable_land.fla that you have shared via drop box and found that they both uses blank keyframe(s) followed by Keyframe(s). This was an issue and has been addressed in the latest release Flash CC 2014 (released on 18 June, 2014). Can you please install the latest build 14.0.0.110 and try this out?
    Thanks!
    Mohan

  • Quicktime movie export from Flash CS3 is skipping frame.

    When I try to export Quicktime movie from Flash CS3, the
    resulting mov file is skipping frames. i.e.: The movie is showing
    frame number 1, 2, 3, 4, 5, 6, 7, 7, 7, 10, 11, 12, 12, 12, 15
    etc...
    As you can see the frame number 7 is repeated 3 times and
    frame 8 and 9 are nowhere to be found.
    The last configuration I used is 960x540, Sorenson video 3
    medium quality, 25 fps, keyframe every 25 frames. 6400 kbits/s.
    I tried various configurations,with different codecs and even
    with keyframe all frames and I always get simillar problems.
    Anyone have an idea what is going on, and how to fix this?
    Thank you,
    Olivier.

    The QT exporter in Flash is honestly my least favorite
    feature - not the feature itself but how it
    works (or how it doesn't work in some cases). For me it is
    almost unusable unless you have a very
    short timeline, small stage, lower frame rate - like AS
    generated effects or something - otherwise,
    for true frame accuracy to video output - it is not reliable
    enough and not fast enough for any real
    world production environment.
    So typically for me - I love SWF2Video (www.flashants.com) as
    it takes any SWF and makes it into an
    AVI that is frame accurate no matter what the frame rate is -
    quite incredible - enough so that I
    always felt it should have been bundled with Flash (as well
    as Wacom tablets).
    Harmony is an incredible product - as is SOLO and TBS (Toon
    Boom mStudio) - each of those programs
    are dedicated animation programs designed for output to video
    - Flash has a lot of hats to fill and
    it was never really designed for animation to video even
    though many of us have found it suitable
    for all intents and purposes as an animation program for full
    production.
    But all in all - the quicktime exporter doesn't really
    deliver how we would expect it too I am sorry
    to say - I only hope it works as well as it does on the Mac
    (Mac users could always choose to export
    to Quicktime Video but not PC users).
    For now if I am exporting to video I keep it all on the
    timeline or nested in Graphic symbols or use
    the SWF2Video tool.
    hope this helps.
    -chris
    Chris Georgenes / mudbubble.com / keyframer.com / Adobe
    Community Expert
    OBastien wrote:
    > Thank you for your reply Chris.
    >
    > I tried different possible solutions you listed but it's
    not working.
    > Disabling sound had no effects. Changing the FPS is not
    an option, it has to be
    > 25 FPS. I lowered the resolution to 300 something, it
    seemed to be a little bit
    > better, but it still dropped some frame, and the image
    quality was horrible.
    >
    > I think it is really sad that we have to try different
    settings in the hope
    > that flash will grab all the frames. I'm really
    disapointed in Adobe. I'm
    > pretty sure it is the fault of Adobe and not Apple,
    because I don't have does
    > problems with Quicktime in ToonBoom Harmony. What is
    strange is when I do an
    > AVI export I never noticed a dropped frame. I'm not
    using AVI video right now
    > because I can not find a codec that gives me small size,
    fast encoding times,
    > the ability to seek in the movie by dragging the
    timeline progress bar, and the
    > possibility to edit in After Effects. If you know an AVI
    codec that does all
    > that it would be really great news.
    >
    > Thank you again,
    > Olivier.
    >

  • SWC PNG's invisible when compression is set to JPEG in Flash Builder 4.7/AIR 3.4

    Moved my ActionScript Mobile Project game from Flash Builder 4.6 / AIR 3.2 yesterday to the new release of 4.7 / AIR 3.4. One side effect was that when my PNG's in my assets SWC were set to use JPEG compression instead of PNG, they are invisible at runtime. I haven't found any mention of this when searching so far. I can just use PNG compression for now, but it's nice to have the choice. Anyone else run into this problem?

    I haven't seen this come up, however you might want to give our latest AIR 3.5 build a try (12/11/2012 - AIR 3.5 Runtime and SDK Update).  If it still occurs, could you please open a new bug report on this over at bugbase.adobe.com?  Please post back with the URL so that others affected can add their comments and votes.

  • Mac Projector Crashes When exported From Flash CS5.5

    Something strange that i noticed, when i had exported a presentation for a Mac,
    on a 64 bit windows 7 using flash cs5.5.
    the applicaton gets the paths of a few swfs from an XML file
    and loads them one after the other.. there is a small bit of interactivity.
    .. tested this projecter on various versions of MAC, it crashes often,crashes earlier if i switch applications.  what follows here is a part of a report that was generated on an  OS X 10.7.3,
    works fine if the projector is exported from flash cs5.
    i need it to work when exported from flash cs5.5.. any suggestions on what i need to change in my application so that it works when exported from flash cs5.5?
    Your help would be appreciated Thanks in Advance
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x00000000500d98eb
    VM Regions Near 0x500d98eb:
    Memory tag=240         000000000ebd0000-000000000ec90000 [  768K] ---/rwx SM=NUL 
    -->
    __TEXT 0000000070000000-0000000070142000 [ 1288K] r-x/rwx SM=COW  /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
    Application Specific Information:
    objc_msgSend() selector name: orderOut:
    objc[9434]: garbage collection is OFF
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   libobjc.A.dylib                 0x92115d47 objc_msgSend + 23
    1   com.macromedia.Flash Player.app 0x00467d96 main + 240950
    2   com.macromedia.Flash Player.app 0x0047efda main + 335738
    3   com.macromedia.Flash Player.app 0x002feae2 0x1000 + 3136226
    4   com.macromedia.Flash Player.app 0x0033a77b 0x1000 + 3381115
    5   com.macromedia.Flash Player.app 0x00462718 main + 218808
    6   com.macromedia.Flash Player.app 0x004628b2 main + 219218
    7   com.apple.CoreFoundation        0x98e0b3df __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
    8   com.apple.CoreFoundation        0x98e0ad96 __CFRunLoopDoSources0 + 246
    9   com.apple.CoreFoundation        0x98e34c68 __CFRunLoopRun + 1112
    10  com.apple.CoreFoundation        0x98e3447c CFRunLoopRunSpecific + 332
    11  com.apple.CoreFoundation        0x98e34328 CFRunLoopRunInMode + 120
    12  com.apple.HIToolbox             0x9289117f RunCurrentEventLoopInMode + 318
    13  com.apple.HIToolbox             0x928984e7 ReceiveNextEventCommon + 381
    14  com.apple.HIToolbox             0x92898356 BlockUntilNextEventMatchingListInMode + 88
    15  com.apple.AppKit                0x98fe8a9c _DPSNextEvent + 678
    16  com.apple.AppKit                0x98fe8306 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 113
    17  com.apple.AppKit                0x98fe4675 -[NSApplication run] + 911
    18  com.apple.AppKit                0x99278261 NSApplicationMain + 1054
    19  com.macromedia.Flash Player.app 0x000032a2 0x1000 + 8866
    20  com.macromedia.Flash Player.app 0x000031c9 0x1000 + 8649
    Thread 1:: Dispatch queue: com.apple.libdispatch-manager
    0   libsystem_kernel.dylib          0x97d3f90a kevent + 10
    1   libdispatch.dylib               0x99a75c58 _dispatch_mgr_invoke + 969
    2   libdispatch.dylib               0x99a746a7 _dispatch_mgr_thread + 53
    Thread 2:
    0   libsystem_kernel.dylib          0x97d3e83e __psynch_cvwait + 10
    1   libsystem_c.dylib               0x9237ce78 _pthread_cond_wait + 914
    2   libsystem_c.dylib               0x9232482a pthread_cond_wait + 48
    3   com.macromedia.Flash Player.app 0x003ff62f 0x1000 + 4187695
    4   com.macromedia.Flash Player.app 0x0001a06c 0x1000 + 102508
    5   com.macromedia.Flash Player.app 0x003ff70c 0x1000 + 4187916
    6   com.macromedia.Flash Player.app 0x003ff73a 0x1000 + 4187962
    7   com.macromedia.Flash Player.app 0x003ff847 0x1000 + 4188231
    8   libsystem_c.dylib               0x92378ed9 _pthread_start + 335
    9   libsystem_c.dylib               0x9237c6de thread_start + 34
    Thread 3:
    0   libsystem_kernel.dylib          0x97d3e83e __psynch_cvwait + 10
    1   libsystem_c.dylib               0x9237ce78 _pthread_cond_wait + 914
    2   libsystem_c.dylib               0x9232482a pthread_cond_wait + 48
    3   com.macromedia.Flash Player.app 0x003ff62f 0x1000 + 4187695
    4   com.macromedia.Flash Player.app 0x0001a06c 0x1000 + 102508
    5   com.macromedia.Flash Player.app 0x003ff70c 0x1000 + 4187916
    6   com.macromedia.Flash Player.app 0x003ff73a 0x1000 + 4187962
    7   com.macromedia.Flash Player.app 0x003ff847 0x1000 + 4188231
    8   libsystem_c.dylib               0x92378ed9 _pthread_start + 335
    9   libsystem_c.dylib               0x9237c6de thread_start + 34
    Thread 4:
    0   libsystem_kernel.dylib          0x97d3e83e __psynch_cvwait + 10
    1   libsystem_c.dylib               0x9237ce78 _pthread_cond_wait + 914
    2   libsystem_c.dylib               0x9237cf7b pthread_cond_timedwait_relative_np + 47
    3   com.macromedia.Flash Player.app 0x003ff5f8 0x1000 + 4187640
    4   com.macromedia.Flash Player.app 0x001c58fe 0x1000 + 1853694
    5   com.macromedia.Flash Player.app 0x003ff70c 0x1000 + 4187916
    6   com.macromedia.Flash Player.app 0x003ff73a 0x1000 + 4187962
    7   com.macromedia.Flash Player.app 0x003ff847 0x1000 + 4188231
    8   libsystem_c.dylib               0x92378ed9 _pthread_start + 335
    9   libsystem_c.dylib               0x9237c6de thread_start + 34
    Thread 5:
    0   libsystem_kernel.dylib          0x97d3e83e __psynch_cvwait + 10
    1   libsystem_c.dylib               0x9237ce78 _pthread_cond_wait + 914
    2   libsystem_c.dylib               0x9237cf7b pthread_cond_timedwait_relative_np + 47
    3   com.macromedia.Flash Player.app 0x003ff5f8 0x1000 + 4187640
    4   com.macromedia.Flash Player.app 0x00305328 0x1000 + 3162920
    5   com.macromedia.Flash Player.app 0x003ff70c 0x1000 + 4187916
    6   com.macromedia.Flash Player.app 0x003ff73a 0x1000 + 4187962
    7   com.macromedia.Flash Player.app 0x003ff847 0x1000 + 4188231
    8   libsystem_c.dylib               0x92378ed9 _pthread_start + 335
    9   libsystem_c.dylib               0x9237c6de thread_start + 34
    Thread 6:: com.apple.audio.IOThread.client
    0   libsystem_kernel.dylib          0x97d3cc22 mach_msg_trap + 10
    1   libsystem_kernel.dylib          0x97d3c1f6 mach_msg + 70
    2   com.apple.audio.CoreAudio       0x9cd8e9fe HALB_MachPort::SendMessageWithReply(unsigned int, unsigned int, unsigned long, unsigned long, mach_msg_header_t*, unsigned int) + 122
    3   com.apple.audio.CoreAudio       0x9cd8ea6a HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, unsigned int) + 60
    4   com.apple.audio.CoreAudio       0x9cd86e5f HALC_ProxyIOContext::IOWorkLoop() + 1145
    5   com.apple.audio.CoreAudio       0x9cd86926 HALC_ProxyIOContext::IOThreadEntry(void*) + 136
    6   com.apple.audio.CoreAudio       0x9cd86898 __HALC_ProxyIOContext_block_invoke_6 + 20
    7   com.apple.audio.CoreAudio       0x9cd8681d HALB_IOThread::Entry(void*) + 69
    8   libsystem_c.dylib               0x92378ed9 _pthread_start + 335
    9   libsystem_c.dylib               0x9237c6de thread_start + 34
    Thread 7:
    0   libsystem_kernel.dylib          0x97d3f02e __workq_kernreturn + 10
    1   libsystem_c.dylib               0x9237accf _pthread_wqthread + 773
    2   libsystem_c.dylib               0x9237c6fe start_wqthread + 30
    Thread 8:
    0   libsystem_kernel.dylib          0x97d3f02e __workq_kernreturn + 10
    1   libsystem_c.dylib               0x9237accf _pthread_wqthread + 773
    2   libsystem_c.dylib               0x9237c6fe start_wqthread + 30
    Thread 0 crashed with X86 Thread State (32-bit):
    eax: 0x00dbe0e0  ebx: 0x00dbe0e0  ecx: 0x99985548  edx: 0x500d98cb
    edi: 0x0000036e  esi: 0x00aad0e0  ebp: 0xbfffe4f8  esp: 0xbfffe488
    ss: 0x00000023  efl: 0x00010202  eip: 0x92115d47   cs: 0x0000001b
    ds: 0x00000023   es: 0x00000023   fs: 0x00000000   gs: 0x0000000f
    cr2: 0x500d98eb
    Logical CPU: 1

    Looks like it was a memory problem with the jvm.ini file.
    Pumped it up to 256 and it works now.
    Hope this helps anyone else in the future if they come across it.
    Thanks.

  • Creating a pdf from flash

    im trying to generate a pdf file from a swf form... is it
    possible ?

    No not really. There are tools like
    Flash
    Handout that you can buy - but if money is not an option, there
    is the PrintJob command in Actionscript. You can set up Flash to
    print the form. The only other way I know of is to send the details
    from Flash to a PHP file and use an extention like
    domPdf to
    convert it to a PDF file.

  • How to create jpegs from pdfs without pixellated results

    I have been creating jpegs from high quality pdfs (typically 20-30 MB files) of maps (paper dimensions roughly 2 ft by 3 ft) with no problems until this week.  I use the export function in Adobe X Standard and select jpeg.  Did I recently get an update which changed my settings?  Now I notice that sometimes the process generates a progress bar which says it is optimizing the content for the web.  I don't remember seeing this either.  Previous conversions worked great and the jpegs could be blown up on the screen with crisp detail.  Yesterday I did the same process with a new map (I checked it for good resolution and the pdf can be zoomed way in with no loss of resolution). But the resulting jpeg pixellates very quickly when zooming in.  What gives?  It may be possible that this new map (pdf) is in layers.  I think the others were scans of the paper maps.  Does this affect the conversion?  Also noticed that the jpegs now have little lock symbols on them.  Is that related?  I don't think it is, because a map I recently converted has the lock symbol on it and is OK (as a jpeg).  I am converting the pdfs into jpegs so I can import them into Autocad.

    As the helpcenter(2005 helpcenter) has missed this bit of documentation (on UserQueries) could someone please provide an example of using this object
    thanks
    Message was edited by: George Savery
    hmm I thought it had timed out .... Woops

  • Obtaining the full file path specification from Flash Movie and QuickTime icons?

    How do you obtain the full file path specification from Flash
    Movie and QuickTime icons? I want the path and the file name that
    is contained in these icons. I am using a "dive" to run through the
    icons of a file, and when I come upon these two types of icons, I
    want to obtain the above information that is contained in them. I
    certainly can look in the property dialog box to get this info, but
    there are many icons in these files, and I want to generate a list
    of info based upon the various types of icons that I am processing.
    Thanks

    > How do you obtain the full file path specification from
    Flash Movie and
    > QuickTime icons? I want the path and the file name that
    is contained in
    > these
    > icons. I am using a "dive" to run through the icons of a
    file, and when I
    > come
    > upon these two types of icons, I want to obtain the
    above information that
    > is
    > contained in them. I certainly can look in the property
    dialog box to get
    > this
    > info, but there are many icons in these files, and I
    want to generate a
    > list of
    > info based upon the various types of icons that I am
    processing. Thanks
    >
    For Flash
    Trace(GetIconProperty(iconID, #pathName))
    for QuickTime
    Trace(GetIconProperty(IconID, #filename))
    For full scripting reference for each of these sprites, open
    up the
    Properties panel for each sprite and press the Help button
    that appears on
    the properties page ... or else navigate to these folders for
    the Flash and
    QT help
    C:\Program Files\Macromedia\Authorware
    7.0\xtras\FlashAsset\Help
    C:\Program Files\Macromedia\Authorware
    7.0\xtras\QuicktimeAsset\Help
    You don't want to know how many times I asked Macromedia to
    stop hiding that
    Help!
    Steve
    http://twitter.com/Stevehoward999
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • Mac OSX thumbs of LR generated JPEGS take long time to load

    Hello
    I'm running the latest version of Max OSX with LR 2.0 on a Mac Pro tower.
    I exported a bunch of JPEGS (Highest quality) using the export feature of LR. I open the folder of JPEGS, and the thumbnails take an unusually long time to generate a thumb preview. It's not end of the world slow, but it goes row by row, updating the thumb icon from a generic icon to the thumb preview.
    When I used to batch export JPEGS from PSD files in Photoshop, the resulting JPEGS would never take this long to generate previews if I opened the folder.
    I do see that the EXIF into is missing from the LR generated JPEGS, so not sure if that's the culprit. Any ideas? Thanks!

    Hello
    I'm running the latest version of Max OSX with LR 2.0 on a Mac Pro tower.
    I exported a bunch of JPEGS (Highest quality) using the export feature of LR. I open the folder of JPEGS, and the thumbnails take an unusually long time to generate a thumb preview. It's not end of the world slow, but it goes row by row, updating the thumb icon from a generic icon to the thumb preview.
    When I used to batch export JPEGS from PSD files in Photoshop, the resulting JPEGS would never take this long to generate previews if I opened the folder.
    I do see that the EXIF into is missing from the LR generated JPEGS, so not sure if that's the culprit. Any ideas? Thanks!

  • Batch loading jpegs from external file

    Hello,
    I would like to preload a batch jpegs from an external file
    (to make it easy for changes) - than use them in a slide-slide show
    using a movieClip holder or loader component. I can use this
    tutorial -
    http://www.oman3d.com/tutorials/flash/portfolio_2_bc/index.php
    But I don't what to have each jpeg loaded separately I want
    them to preload b4 using..
    What would be the best way to preload the external batch to
    use for a slide show with next btn and prev btn? I can't find any
    tutorials one this.
    Thanks for any help,
    Dave

    In terms of where:
    Well, for as2, you will probably need to load them as
    dynamically created child clips of a single parent clip that you
    use to display one swf from. You would cycle through them and just
    set the _visible property of your 'current' clip to true and all
    the others to false. Your next and previous buttons could change
    which one was visible.
    But if they are large images, you'll probably use a lot of
    memory doing it this way and it would take longer to load them all
    at the start. Its more usual to, for example, load all the
    thumbnail images - smaller images, quicker to load - and then load
    the larger one into a main viewing area when its thumbnail is
    clicked.
    How
    There are plenty of examples of how to do this in tutorials
    etc.
    If you want to load all the thumbnails first, then perhaps
    you won't find exactly what you want as a tutorial. Not every
    possibility is covered in a tutorial. All I can really do is point
    your in the right direction. If it were me I would use something
    like David Stiller's MultiLoader class to make it easier perhaps
    (in fact I have my own which works a little differently but was
    seriously inspired by what I learnt from David's article at
    http://www.quip.net/blog/2007/flash/actionscript-20/tracking-multiple-files-part1
    & 2 )

  • Hitting a specific file size when exporting from Flash CS5

    I need to export three banners to .swf from flash and they all need to be under 61K.  They all use photographs and are 5-7 seconds long each and the dimentions are 300x250 px, 300x600 px & 728x90 px.  Is there any way I can put in the specific file size in the program and make it under 61k?  I tried using the publish settings and lowering the quality and even at 40% quality the file size only went down 20KB from 147 to 127.  If you cannot do that in the program is there any third party programs that can be used to do this?  Thanks for your help!

    What you should do is set the Publish Settings to generate a size report.  That way you will have a detailed listing of what each element of the design contributes to the file weight.  I would guess that the images are going to be the heavy hitters, so you might need to use image software to optimize them as much as possible before importing them into Flash.

  • Can I have unique function and variable names with createjs when publsihing from Flash?

    Hey everyone!
    I have recently started using the Toolkit for CreateJS exporter for turning small button icon animations, made in Flash, into content for HTML5. I have created 3 seperate icon '.fla' files that animate when rolled over.
    With this example tag added into my html5 document, the animation works fine:
    <canvas id="about_btn" width="85" height="70" style="background-color:#FFF"></canvas>
    However, once I have added more than one canvas tags, only one icon would appear on screen:
    <canvas id="about_btn" width="85" height="70" style="background-color:#FFF"></canvas>
    <canvas id="news_btn" width="85" height="70" style="background-color:#FFF"></canvas>
    <canvas id="contact_btn" width="85" height="70" style="background-color:#FFF"></canvas>
    I found out that the JavaScript files that were generated with each '.fla' file were conflicting because they were all using the same variable and function names (ex. stage, canvas, init(), etc.). Is there a way for me to publish the JavaScript from Flash with document specific variable and function names? (ex. about_stage, about_canvas, about_init())
    A work around methood that I can currently using is putting each <canvas> tag into it's own iFrame.
    Thanks again for the help!
    -DJ

    The JS asset libraries should not conflict with each other, unless there are symbols with the same names. Even then, you can change the Symbols namespace for each FLA to prevent collisions.
    It sounds like you're trying to copy/paste the code out of the preview HTML. It's not really designed for this, and it will lead to name collisions. You'll either want to rewrite this logic in your own HTML (using the preview code as a reference), or rename the variables as appropriate after you copy/paste.
    Best,
    Grant.

  • Publish html5 file from Flash Pro CC

    I subscribed Flash Pro CC and open a fla file produced by using Flash Pro CS5, It works to be tested with Control > Test Movie > Flash Professional and also successfully published to a swf and a html files. But it didn’t work to publish with CreateJS  toolkit to be html5 file. A warning says
    “Frame numbers in EaselJS start at 0 instead of 1. For example, this affects gotoAndStop and gotoAndPlay calls. (10)
    Content with both Bitmaps and Buttons may generate local security errors in some browsers if run from the local file system”.
    What should I do to solve this problem?

    Thank you very much, Kglad. It seems to me that I should insert JS statemnts in the actionScript to complete the job. I don't have any experience in JS. My Fla has only "Click to certain frame of theTmeline" with the Actionscript such as
    OBJ_btn.addEventListener(MouseEvent.CLICK, clickto1);
      function clickto1(event:MouseEvent):void
              gotoAndStop("OBJ");
    Should I insert a JS in addition to this script? The JS should be inside of  " /* JS..........*/" ? Do I have to learn the whole JS before I can know how to publish HTML5 from Flash Pro CC? Please help me.

  • Runtime Loading of SWCs from Flash?

    Hi,
    In Flex, there is a RSL that can be used at runtime and there can be several flex applications using (loading) the same single RSL.
    I want to know if is there any way to do the samething with SWCs in Flash? I actually have different kind of designs (flash) and all those use exactly same code. I want to make a SWC of that code and then want to load this single SWF at runtime from different flash files.
    Please guide me in this regard? Is there any possibility of this approach? If not, then what would be the best way to do that?
    Thanks

    a quick chunk of the Flash CS5 code that launches the 3 tests:
    http://pastie.org/1843765
    you can see the 3 tests but only 1 live at any given attempt of course.
    the 1st test is the one i care about as it is a data driven wcf test against an amazon ec2 cloud instance with sql server. the wcf server and sql are on that box whereas the html that gets your there is elsewhere from a different host but the crossdomains are set up fine. click on wide receivers and Memory or DB. brings back data from sql server.
    The *native* Flex 4 version of it is sitting here that is not called up from a Flash swf loader and it works fine:
    http://www.teamvisionboston.com/site2/wcf_client_test.html
    when test 1 is loaded from a Flash website it generates this error:
    you can see myList at the far right that shows it receives the swf load attempt and the 2 events at systemManagerHandler. This pretty much blows up anything that follows.
    Test 2 is a new simple FB4 build with a label and button. that is it. it generates a different error but at least trying to see if there is some issue with just wcf or rpc from test 1 that would not occur here. It too shows the same 3 events in the debug listbox. Debug meaning a release versions using Listbox.addItem(). It runs fine at http://www.teamvisionboston.com/site2/asdf.html
    unless of course like i said you load it from Flash.
    Test 3 is the current live version up there at
    http://www.teamvisionboston.com/site2
    that loads a generic swf. It of course gets the first load debug message but because it is not from Flex not the last 2. And that works.
    so I am at a loss.

  • Email image from flash

    I created an email form in my swf. It emails text from input
    fields. I want to also include an image with the text. Does anyone
    know how to do that?

    So first you must use BitmapData to export the data from
    flash to some picture file with for example php is good.You can use
    BitmapData.draw(Target) and after that to store all the pixels into
    array and send to php there must generate new image file.I
    recommend to use POST method because the array of pixels is too
    long and when you dont have access to the php.ini file to change
    the max send data for get the server send errors.Okey now i stop to
    talk and i give you link to .fla file because is too long to
    explain.This file is my project that you can get picture from the
    camera and save into the server is simply application and i think
    you can understand the chifly idea.So when you create your
    application u must add some lines into php that send the picture
    and message to email. Link to fla. -
    http://www.nikis.org/BitmapData.Draw.zip
    The other way that i already say you is to upload file with
    FileReference
    LiveDocs
    FileReference.And afcource the php see in this site into
    comments very useful things about attachment and send via html
    PHP Mail() Function
    btw i forgot i have small problem with the colors sometimes
    the new saveed picture has more green color.But i think this can
    script can explain the idea :)
    cheers!

Maybe you are looking for

  • How do I install Snow Leopard onto a COMPLETELY BLANK hard drive?

    My Macbook Pro's hard drive bit the dust last week so I bought a new one.  This has NOTHING on it.  No operating system, no files, nothing.   I have a Snow Leopard installation disk avaliable to me.  I can put in the disk and it will show the Apple l

  • Cannot Install Safari Extensions

    Greetings, Trying to install an extension on my Safari Version 8.0 (10600.1.25.1) An extension installed successfully, but after Safari restart its all gone. Does not matter which extension and how many, After install I can see extensions in Safari P

  • Can't transfer apps from iPad 2 to new iPad 3

    Hi, I just got the new iPad and wanted to move everything from my old iPad 2 to the new iPad. Here's what I did: 1. I backed up my old iPad to iTunes 2. Connected the new iPad and did restore from the backup in item 1 I only get music and other data

  • Can images be processed in PI

    Hello Experts, I want to know whether image files or pdf files can be processed into xml in PI and sent? If yes then which adapter do we use for the same. Or do we use proxies for them? Please help me in this regard. Thank you, Merrilly

  • Photoshop CS and Mavericks

    I recently updated my Mac to the Mavericks OS and my Photoshop CS no longer works. I have seen "fixes" for CS6, 5, 4, etc, but nothing is working for original CS. I'm not finding contact info for Adobe, so I'm not sure how to resolve this issue. I pa