Opening a gif in a tree

Hi All,
I'm new to Flex 2 and also Action Script. Been looking at the
code examples online in the Developer's guide, however, they fall
short as to what I am looking for. I need to open an image which is
contained in a tree and display it in a canvas/panel adjacent to
the tree. Sounds simple to me but difficult to find a detailed
example code to get it done. After that, I then need to do the same
with a sound clip and video.
Thanks!
Bob

HI All,
Hope this helps those newbies out there who want to know how
to deal with trees. I got this to work...click on a node which has
a jpg and the picture will appear within an adjacent canvas.
You will obviously have to supply your own jpgs. And only 3
of the nodes are set up in this code to show anything. I do not
have this set up to work with sound/video clips....yet. Also, the
ActionScript could be improved....but hey this was my first crack
at ActionScript!
AND, It is unfortunate that the indentations of the source
code gets all messed up when I submit this reply...apologies.
<!-- Tree control example. -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
[Bindable]
public var selectedNode:Object;
// Event handler for the Tree control change event.
public function treeChanged(e:Event):void {
selectedNode=Tree(e.target).selectedItem;
if (selectedNode.@label == "Alexander") {
showImage();
else if (selectedNode.@label == "Map") {
showMap();
else if (selectedNode.@label == "Document") {
showDocument();
else {
img0.visible = false;
img1.visible = false;
img2.visible = false;
private function showImage():void {
img0.visible=true;
if (img1.visible) {
img1.visible=false;
else if (img2.visible) {
img2.visible=false;
private function showMap():void {
img1.visible=true;
if (img0.visible) {
img0.visible=false;
else if (img2.visible) {
img2.visible=false;
private function showDocument():void {
img2.visible=true;
if (img0.visible) {
img0.visible=false;
else if (img1.visible) {
img1.visible=false;
]]>
</mx:Script>
<mx:XMLList id="treeData">
<node label="Mail Box">
<node label="Inbox">
<node label="Marketing"/>
<node label="Alexander"/>
<node label="Product Management"/>
<node label="Map"/>
<node label="Personal"/>
</node>
<node label="Outbox">
<node label="Professional"/>
<node label="Personal"/>
<node label="Document"/>
</node>
<node label="Spam"/>
<node label="Sent"/>
</node>
</mx:XMLList>
<mx:Panel title="Tree Control"
height="75%"
width="75%"
paddingTop="10"
paddingLeft="10"
paddingRight="10"
paddingBottom="10">
<mx:Label width="100%" color="blue" text="Select a node
in the Tree control."/>
<mx:HDividedBox width="100%" height="100%">
<mx:Tree id="myTree" width="30%" height="100%"
labelField="@label"
showRoot="false" dataProvider="{treeData}"
change="treeChanged(event);"
dragEnabled="true"
dropEnabled="true"
dragMoveEnabled="true"/>
<mx:Canvas height="100%" width="70%">
<mx:Image id="img0" visible="false"
source="@Embed(source='Alexander.jpg')" />
<mx:Image id="img1" visible="false"
source="@Embed(source='Map.jpg')" />
<mx:Image id="img2" visible="false"
source="@Embed(source='Document.jpg')" />
</mx:Canvas>
</mx:HDividedBox>
</mx:Panel>
</mx:Application>

Similar Messages

  • Opening animated gif in PSE 8 for Mac

    I am switching from PSE for PC to PSE 8 for Mac.
    I have always been able to open animated gif as layers and work with them, then resave as an updated animated gif.
    WIth PSE 8 for Mac, I get a pop up that the file is animated and can only see the top frame. Any ideas on how to open up all of the frames in layers?

    Do I need to enable this process for my Mac? Maybe I'm missing a plug-in or update?
    I have been opening these files from others, tweeking and resaving for almost 2 years in PSE. It definitely will not shuffle the individual panels on an animated gif into the layers box.
    My tweeking usually involves adjusting frame speed. Is that what you mean by 'frame rate'?
    Thank you for your help.

  • How to open animated .GIF files in Photoshop CS3 and newer

    Q: Since ImageReady is long gone from Photoshop, how can I open animated GIF files in Photoshop CS3 and newer?
    A: File -> import-> video to layers.
    In the dialogue box type "*.*" to show all file types.
    Select your GIF file and which frames to import.
    They will now be available in your animation palette.

    Zeno
    curt y, sorry for the late reply, I tried that but I doesn't work. I have to choose at least two files in the Load Layers window in order for the OK button to be available and then some action script uses the different files to make layers and merges them but not from the frames of the gif file. I can undo through the script to see what it did but it never accessed the frames of the gif file, just the first frame. Choosing "make frames from layers" in the animation palette only puts the original files into layers - that is only the first frame of the gif file.
    I guess I'm out of luck with the 64  bit version of Photoshop as Zeno suggested :-(
    What program would you people suggest for opening each frame from gif files?

  • Can't open animated GIF, even with secret trick (psd cs3)

    Hi
    I know a lot of people have had trouble with opening animated .gifs in photoshop cs3. I had that problem until I learned the little "trick" you could do (type *.* in "import video frames to layers") and then simply open the gif. This has worked one my computer for some time, but then all of a sudden it stopped working. I thought it was odd and then I formatted my computer and installed a few windows updates and then installed adobe photoshop cs3 and then quicktime. But it still won't open GIF as it used to do. And it's very odd, as my laptop can do it (and it has just been newly reformatted too). I know Adobe's own solution, which is to use fireworks, but I find it to be a crappy program, so I'm not going to use that. I want to be able to import GIFs into photoshop as I used to :/
    Hope someone has encountered this problem too. I know a lot of people had been able to use the trick, but I havn't been able to find anyone who has the crash problem.
    Know of this?

    sounds like you might have a conflict with QuickTime, seeing as the error is in MODNAME quicktime.qts
    first, try resetting the PS prefs. hold CTRL+ALT+SHIFT on launch and then click Yes when prompted. if you have any preferences that you would prefer not to reset, close PS, move the preference files, then launch PS to create new ones. if it's not the problem, you can put them back later. Use the info in kb401600 if you don't know where the preference files are.
    http://www.adobe.com/go/kb401600
    if resetting the prefs doesn't fix it, make sure you have the latest version of QuickTime installed (7.4.5) and that it can launch without problems. if you have problems using QT, let us know or post on Apple discussions to find a solution.
    if you do have the latest version and the problem recently started, it may be that Apple broke something that PS uses in a recent update. uninstall the version you have, delete /program files/quicktime/ folder if it still exists, reboot, download an older version (apple has archived installers; search for "download quicktime 7.3.1 windows" OR "download quicktime 7.1.6 windows" on google to find it), then install it and reboot before trying PS.

  • CS4 - Getting error when opening a .gif file - file-format module cannot parse the file.

    I am getting this popup error when trying to open a .gif file:
    "Could not complete your request because the file-format module cannot parse the file."
    This comes up every time I try to open a .gif file.  Even if I make a .gif file (like the image included in this post), save it and then try to open it again, I get the same error.  I tried reinstalling CS4, but the error is still there.  I have also done the reset on start-up and nothing.  Some have suggested that I open it in (Windows XP Pro) MS Paint and then save it again.  Did it and this does NOT work for me, either. 
    I know it's a Photoshop problem because I can see this file everywhere, except Photoshop.  It will open here, there and everywhere, except for Photoshop.
    I've searched the Adobe Commmunity and it looks like no one has come up with a fix for this.  I'm just currious after 5 years with this problem, has there been a solution?
    Scott

    One of the files that has the error is in my first post.
    Adobe Photoshop Version: 11.0
    Operating System: Windows XP 32-bit
    Version: 5.1 Service Pack 3
    System architecture: AMD CPU Family:15, Model:10, Stepping:0 with MMX, SSE Integer, SSE FP, SSE2
    Physical processor count: 6
    Processor speed: 3210 MHz
    Video Card: NVIDIA GeForce GTX 460
    Video Mode: 1280 x 1024 x 4294967296 colors
    Video Card Driver: nv4_disp.dll
    Driver Version: 6.14.13.0623
    Built-in memory: 3289 MB
    Free memory: 257 MB
    Memory available to Photoshop: 1677 MB
    Memory used by Photoshop: 69 %
    Image cache levels: 4
    Serial number: xxxxxxxxxxxxxxx
    Application folder: C:\Program Files\Adobe\Adobe Photoshop CS4\
    Temporary file path: C:\DOCUME~1\xxxxxx\LOCALS~1\Temp\
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
      F:\, 233.7G, 145.7G free
    Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS4\Plug-ins\
    Additional Plug-ins folder: not set
    Installed components:
       ACE.dll   ACE 2008/08/27-18:10:41     
       AdobeLinguistic.dll   Adobe Linguisitc Library   4.0.0  
       AdobeLM.dll   AdobeLM   3.0.11.10077    53.352460
       AdobeLM_libFNP.dll   FLEXnet Publisher (32 bit)   11.5.0.1 build 57427  
       AdobeOwl.dll   Adobe Owl
       AdobeOwlCanvas.dll   Adobe Owl Canvas  
       AdobePDFL.dll   PDFL 2008/08/20-20:15:08  
       AdobeUpdater.dll   Adobe Updater Library   
       AdobeXMP.dll   Adobe XMP Core 
       AdobeXMPFiles.dll   Adobe XMP Files   4.2.2   53.352624
       AdobeXMPScript.dll   Adobe XMP Script   4.2.2   53.352624
       adobe_caps.dll   Adobe CAPS   2,0,99,0   2.135373
       adobe_epic.dll   Adobe EPIC   3.0.1.10077    53.352460
       adobe_eula.dll   Adobe EPIC EULA   3.0.1.10077
       AFlamingo.dll   AFlamingo
       AGM.dll   AGM      
       ahclient.dll    AdobeHelp Dynamic Link Library   1, 3, 12, 0  
       aif_core.dll   AIF   1.0 
       aif_ogl.dll   AIF   1.0  
       amtlib.dll   AMTLib   2.0.1.10077    53.352460
       amtservices.dll   AMTServices   2.0.1.10077    53.352460
       ARE.dll   ARE 2008/08/27-18:10:41     
       asneu.dll    AsnEndUser Dynamic Link Library   1, 6, 0, 8  
       authplay.dll        
       AXE8SharedExpat.dll   AXE8SharedExpat
       AXEDOMCore.dll   AXEDOMCore
       Bib.dll   BIB      
       BIBUtils.dll   BIBUtils      
       cg.dll   NVIDIA Cg Runtime   2.0.0015  
       cgGL.dll   NVIDIA Cg Runtime   2.0.0015  
       CoolType.dll   CoolType 2008/08/27-18:10:41     
       data_flow.dll   AIF   1.0   53.352475
       ExtendScript.dll   ExtendScript      
       FileInfo.dll   Adobe XMP FileInfo   4.2.2  
       FNP_Act_Installer.dll   FLEXnet Publisher (32 bit)     
       icucnv36.dll 
       icudt36.dll     
       image_flow.dll   AIF   1.0   53.352475
       image_runtime.dll   AIF   1.0   53.352475
       JP2KLib.dll   JP2KLib 2008/06/11-20:19:53   53.100857   53.100857
       libifcoremd.dll   Intel(r) Visual Fortran Compiler   10.0 (Update A)  
       libmmd.dll   Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler   10.0  
       MPS.dll   MPS 2008/07/07-10:33:04   53.350311   53.350311
       msvcp71.dll   Microsoft® Visual Studio .NET   7.10.3077.0  
       msvcr71.dll   Microsoft® Visual Studio .NET   7.10.3052.4  
       pdfsettings.dll   Adobe PDFSettings   1.04  
       Photoshop.dll   Adobe Photoshop CS4   CS4  
       Plugin.dll   Adobe Photoshop CS4   CS4  
       PlugPlug.dll   Adobe(R) CSXS PlugPlug Standard Dll (32 bit)   1.0.0.73  
       PSArt.dll   Adobe Photoshop CS4   CS4  
       PSViews.dll   Adobe Photoshop CS4   CS4  
       registration.dll   Registration   
       SCCore.dll   ScCore      
       shfolder.dll   Microsoft(R) Windows (R) 2000 Operating System     
       WRServices.dll   WRServices
    Installed plug-ins:
       3D Studio 11.0
       ADM 3.11x01
       Accented Edges 11.0
       Angled Strokes 11.0
       Average 11.0
       BMP 11.0
       Bas Relief 11.0
       Camera Raw 5.0
       Chalk & Charcoal 11.0
       Charcoal 11.0
       Chrome 11.0
       Cineon 11.0   
       Clouds 11.0
       Collada 11.0
       Color Halftone 11.0
       Colored Pencil 11.0
       CompuServe GIF 11.0
       Conté Crayon 11.0
       Craquelure 11.0
       Crop and Straighten Photos 11.0
       Crop and Straighten Photos Filter 11.0
       Crosshatch 11.0
       Crystallize 11.0
       Cutout 11.0
       Dark Strokes 11.0
       De-Interlace 11.0
       Dicom 11.0
       Difference Clouds 11.0
       Diffuse Glow 11.0
       Displace 11.0
       Dry Brush 11.0
       Embed Watermark 3.0
       Entropy 11.0
       Extrude 11.0
       FXG 11.0
       FastCore Routines 11.0
       Fibers 11.0
       Film Grain 11.0
       Filmstrip 11.0
       Filter Gallery 11.0
       Fresco 11.0
       Glass 11.0
       Glowing Edges 11.0
       Google Earth 4 11.0
       Grain 11.0
       Graphic Pen 11.0
       HDRMergeUI 11.0
       Halftone Pattern 11.0
       IFF Format 11.0
       Ink Outlines 11.0
       Kurtosis 11.0
       Lens Blur 11.0
       Lens Correction 11.0
       Lens Flare 11.0
       Lighting Effects 11.0
       Liquify 11.0
       MMXCore Routines 11.0
       Matlab Operation 11.0
       Maximum 11.0
       Mean 11.0
       Measurement Core 11.0
       Median 11.0
       Mezzotint 11.0
       Minimum 11.0
       Mosaic Tiles 11.0
       Multiprocessor Support 11.0
       NTSC Colors 11.0
       Neon Glow 11.0
       Note Paper 11.0
       Ocean Ripple 11.0
       OpenEXR 11.0
       PCX 11.0
       PNG 11.0
       Paint Daubs 11.0
       Palette Knife 11.0
       Patchwork 11.0
       Paths to Illustrator 11.0
       Photocopy 11.0
       Photoshop 3D Engine 11.0
       Picture Package Filter 11.0
       Pinch 11.0
       Pixar 11.0
       Plaster 11.0
       Plastic Wrap 11.0
       Pointillize 11.0
       Polar Coordinates 11.0
       Portable Bit Map 11.0
       Poster Edges 11.0
       Radial Blur 11.0
       Radiance 11.0
       Range 11.0
       Read Watermark 3.0
       Reticulation 11.0
       Ripple 11.0
       Rough Pastels 11.0
       Save for Web & Devices 11.0
       ScriptingSupport 11.0
       Send Video Preview to Device 11.0
       Shear 11.0
       Skewness 11.0
       Smart Blur 11.0
       Smudge Stick 11.0
       Solarize 11.0
       Spatter 11.0
       Spherize 11.0
       Sponge 11.0
       Sprayed Strokes 11.0
       Stained Glass 11.0
       Stamp 11.0
       Standard Deviation 11.0
       Sumi-e 11.0
       Summation 11.0
       Targa 11.0
       Texturizer 11.0
       Tiles 11.0
       Torn Edges 11.0
       Twain Acquire 11.0
       Twain Select 11.0
       Twirl 11.0
       U3D 11.0
       Underpainting 11.0
       Vanishing Point 11.0
       Variance 11.0
       Variations 11.0 (11.0x001)
       Video Preview 11.0
       WIA Support 11.0
       Water Paper 11.0
       Watercolor 11.0
       Wave 11.0
       Wavefront|OBJ 11.0
       Wind 11.0
       Wireless Bitmap 11.0
       ZigZag 11.0
    Plug-ins that failed to load: NONE
    Flash:
       Connections
       Kuler
    Installed TWAIN devices:
       WIA-hp officejet 6100 series
       hp officejet 6100 series TWAIN

  • Cannot create a new layer when opening a gif

    Using Photoshop Elements 8, I open a gif that I want to change the text for. I open the file and the first thing I want to do is create a new layer, but I am not able to. the New Layer button in the layers area is disabled, as is the Layers menu.  How do fix this?

    Since, animated .gif has got changed when opening in PSE9 so here is the alternative
    You can always save your layered psd file which you convert to animated gif so in case you want to modify anything you can do it in .psd file and then create another animated .gif for your use.
    -Garry

  • Please help--I am trying to open a Gif file and can't manage it.  I was told to try iPhoto.  When I tried to open iPhoto, I could not without first upgrading it.  After doing this it still will not open.  Just this week I upgraded to Yosemite, I have

    Please help,  I am trying to open a GIF file and I am told it may be damaged or use a file format that preview does not recognize.  Is there another path I can take to be successful?      Many Thanks    John

    Please log out or restart the computer and try again.

  • Open a gif file in ibook

    Hi everybody,
    Could someone please help me understand how I can open a gif file in an iBook downloaded from Ibooks?
    For example, in "history of the art of photography" free downloaded from IBooks, at page 26 there is a gif file as "Fig.2" that I can't open simply by touching it.l
    Do I maybe need any more software to read a gif file?
    Thanks in avance.

    Or maybe the image isn't there and all you have in that case is a placeholder with the name of the image file...

  • Opening a .gif file.

    Is there an app out there that I need in order to open a .gif file?

    Naah-uh!
    Preview very often refuses to open .gif files for me. I wish someone would tell me what I can use to open those .gif files that give me the "can't open this file type" error message?
    Can someone please help out here?
    Thanks!

  • Is it possible and how to open animated gif files in Photoshop CS4

    I made a Google search and I found tips that Photoshop can open frames from animated gif files by using File->Import->Video Frames to Layers. But this menu is missing from Photoshop CS4 on the computer I'm using it. Searching this forum for "Import animated gif" didn't return any result. Any ideas?

    Zeno
    curt y, sorry for the late reply, I tried that but I doesn't work. I have to choose at least two files in the Load Layers window in order for the OK button to be available and then some action script uses the different files to make layers and merges them but not from the frames of the gif file. I can undo through the script to see what it did but it never accessed the frames of the gif file, just the first frame. Choosing "make frames from layers" in the animation palette only puts the original files into layers - that is only the first frame of the gif file.
    I guess I'm out of luck with the 64  bit version of Photoshop as Zeno suggested :-(
    What program would you people suggest for opening each frame from gif files?

  • WebDynpro editor issue: Clicking on UI element does not open up defn in UI tree

    Hello,
    We are facing a strange issue with webdynpro editor on one of our SAP Landscape. In change mode when i double click on an UI element in webdynpro layout editor( SE80) the corresponding UI element definition does not open up in the left hand side ROOTUIELEMENTCONTAINER tree. This functionality works in our ERP system which is on a lower service pack.
    I recently discussed this problem with an onsite trainer ( from  SAP ) who suggested this feature was taken away in NW Ehp 7.3 onwards to avoid some javascript error in the webdypro layout editor. Can someone confirm this? I have already tried searching servicemarketplace without success. If this feature has been removed i dont want to waste time creating OSS note.
    Regards.
    Vivek.
    System details SAP PPM system :
    SAP_BASIS
    731
    0006
    SAPKB73106
    SAP Basis Component
    SAP_ABA
    731
    0006
    SAPKA73106
    Cross-Application Component
    CPRXRPM
    500_702
    0009
    SAPK-50009INCPRXRPM
    SAP Portfolio and Project Management 5.0 (ABAP)
    Attached is a screenshot of the editor( just for clarity).

    Vivek,
    We're experiencing the same behaviour since a couple of weeks. Did you already create a message to SAP ? If so I'll wait for you to post the feedback from SAP in answer to this message. If not I'll create one because it becomes hard finding your way in the navigation tree for large views...
    Kind Regards,
    Igor.

  • CS5 Suddenly Stops Saving and Opening PNG & GIF Files

    CS5, windoze 7, 64 bit.
    Inexplicably, CS5 just stops working with PNG & GIF format files.
    Fine, this morning; but not after lunch! Indigestion?
    Bridge says it's missing a/the java plug-in. Huh? Java is up to
    date at OS level.
    Very puzzling. Anyone got a fix for this?

    Kind of you to reply and offer assistance - thanks.
    First, I'm inquiring for my wife. I.e. I'm not the user. She's not all that comfortable with using Forums.
    I use Photo Impact - now part of Corel, as I understand it.
    She says she can't open or save those formats, as she used to be able to. But she can open PNGs
    in Illustrator.
    The bridge error message is generated on clicking bridge, when no other task is running:
    Adobe Photshop CS5 Extended
    Could not complete your request because
    Photoshop was unable to find the javascript
    plug-in.
    The mini bridge also gives an error message when clicked on, with no other task is running:
    Adobe Photshop CS5 Extended
    Cannot complete command because the
    extension could not be loaded.
    She reports that a lot of Save As options have disappeared. If this was Photoimpact, I'd be
    checking the FIO folder for the necessary fio files, but I don't know how PS manages the
    way in which various file formats become interchangeable for saving/opening. What that
    has to do with bridge, I know not. I don't know the first thing about PS.
    That said, chronologically, the problem seems to have occurred after the installation of
    a number of pre-sets. That makes me suspicious of them. Or rather, the installation
    process that they involved. But I don't know for sure, nor do I know how that installation
    of presets process might be reversed, to check if that caused the problem. (see below)
    Oh, she has executed an update, but that didn't fix the problem either.
    If there's no easy way to achieve a remedy to the problem, I'm contemplating doing a system
    restore. She's presently moving (backing-up) those pre-sets before any roll-back is attempted.

  • How to open the file in a tree control

    I use a tree control to list all files in a selected directory, I checked the sample with LV (Directory hierarchy in tree control.vi) and want to add a function like following:
    Atfer listing all files, if I click a file listed in the tree control, the computer can open the file automaticly.

    Hi,
    you can use the "Open URL in Default Browser.vi" to open all the files you select in your tree.
    Mike
    Attachments:
    Directory Hierarchy in Tree Control_LV85.vi ‏35 KB

  • PSE7 crashes when I open two gif files. Any ideas?

    Hi,
    I've just installed PSE7. Works fine with one image open. However when I open a second image (gif or jpg) it crashes. Every time. Even if all I do is open one image then immediately open the second, it crashes. I've tried different images and accessing them on a different disk, but repeatedly, reproducibly I can crash the application by opening a second image file.
    Since this doesn't happen on my home machine (where I have a second licensed copy) I can only assume there's some problem in the configuration on my work system: Windows XP Pro SP3 plus latest updates, Intel Core2 Quad CPU 2.4GHz, 3.25Gb memory. eSet antivirus.
    Any ideas?
    Thanks

    You may need to change your default printer.   To quickly diagnose that, try solution 3 of this tech note:
    http://kb2.adobe.com/cps/402/kb402704.html
    If that's the problem, then solutions 1 and 2 may apply.

  • Download just opens 1x1 gif

    Sometimes when I click on a download link in Safari (e.g. to a .dmg file), all I am able to download is a 1x1 gif. Is this a problem with Safari, the site I am downloading from, or something else? Here is an example of a link that does not download for me:
    h**p://downloads.cepstral.com/cepstral/macosx/CepstralLawrence_macosx3.4.1.dmg
    Instead, it downloads a .dmg.gif file
    Thanks for any info,
    Bill

    Hi Bill,
    Are you running NetBarrier by any chance?
    Todd Stack, "gif instead of dmg" #13, 08:39pm Jul 12, 2005 CDT

Maybe you are looking for